keyring-chatbot-agent-sdk-test 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".chat-button{cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s ease;border-radius:16px}.chat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.chat-button:active{transform:scale(.95)}.chat-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;z-index:9999;pointer-events:all;animation:fadeIn .2s ease}#chat-modal-title{color:#0b3988;font-weight:900;font-style:Regular;font-size:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.chat-modal-overlay.chat-modal-overlay--left{justify-content:flex-start}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-modal{width:90%;max-width:480px;height:700px;max-height:calc(100dvh - 64px);background:#f5f5f7;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;margin:20px;pointer-events:all;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.chat-modal-header{background:#fff;padding:8px 8px 8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7;flex-flow:column}.chat-modal-header-title{width:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.chat-modal-header-left{display:flex;align-items:center;gap:6px;overflow:hidden}.keyring-logo{width:22px;height:30px;display:flex;align-items:center;justify-content:center}.chat-modal-header h3{margin:0;font-size:18px;font-weight:700;color:#1a1a1d}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:8px;color:#666;transition:all .2s}.close-button:hover{background:#f5f5f7;color:#000}.chat-user-info{display:flex;align-items:center;gap:6px;width:100%}.user-wallet,.user-wallet a{font-size:14px;font-weight:500;color:#0b3988}.copy-address-btn{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:3px;color:#999;border-radius:4px;transition:color .15s,background .15s;line-height:0}@media(min-width:640px){.copy-address-btn:hover{color:#1a1a1d;background:#f0f0f0}}.chat-modal-messages-wrapper{position:relative;flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-modal-messages{flex:1;padding:8px 16px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;align-self:center;width:fit-content;margin:0 auto 8px}.message{display:flex;animation:messageSlide .3s ease;position:relative}@media(min-width:640px){.message:hover .message-reply-button{opacity:1}}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-reply-button{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e5e5e7;border-radius:8px;padding:6px;cursor:pointer;opacity:0;transition:all .2s;box-shadow:0 2px 8px #0000001a;z-index:10}.message-bot .message-reply-button{right:20px}.message-user .message-reply-button{left:20px}.message-reply-button:hover{background:#f5f5f7;transform:translateY(-50%) scale(1.1)}.message-reply-button svg{display:block;width:16px;height:16px;color:#666}.message-bot{justify-content:flex-start}.message-user{justify-content:flex-end}.message-bubble{max-width:85%;padding:8px 16px;border-radius:20px}.message-bot .message-bubble{background:#fff;box-shadow:0 2px 8px #0000000f;border-bottom-left-radius:4px}.message-user .message-bubble{background:#5b7fff;color:#fff;border-bottom-right-radius:4px}.message-user .message-bubble a{color:#fff}.message-reply-to{background:#0000000d;padding:8px 12px;border-radius:6px;margin-bottom:8px;border-left:3px solid #5b7fff}.message-bot .message-reply-to{background:#f5f5f7}.message-user .message-reply-to{background:#ffffff26;border-left-color:#ffffff80}.message-reply-to-label{font-size:11px;font-weight:600;margin-bottom:4px}.message-bot .message-reply-to-label{color:#5b7fff}.message-user .message-reply-to-label{color:#ffffffe6}.message-reply-to-text{font-size:12px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-text{font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-line}.message-bot .message-text{color:#1a1a1d}.message-user .message-text{color:#fff}.message-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;margin-bottom:8px}.message-button{flex:1 1 calc(50% - 4px);min-width:100px;padding:6px 12px;background:#fffffff2;border:1px solid #e0e0e0;border-radius:12px;font-size:13px;font-weight:500;color:#1a1a1d;cursor:pointer;transition:all .2s ease;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-button.full-width{flex:1 1 100%;text-align:center;white-space:normal;font-size:14px}@media(min-width:640px){.message-button:hover{background:#fff;border-color:#007aff;color:#007aff;transform:translateY(-1px);box-shadow:0 2px 8px #007aff26}.message-button:active{transform:translateY(0);box-shadow:0 1px 4px #007aff1a}}.message-user .message-button{background:#fff3;border-color:#ffffff4d;color:#fff}.message-user .message-button:hover{background:#ffffff4d;border-color:#ffffff80}.message-timestamp{line-height:1;font-size:11px;color:#999;display:flex;align-items:center;gap:4px;justify-content:flex-end}.message-user .message-timestamp{color:#ffffffb3}.check-icon{width:14px;height:14px}.typing-indicator .message-bubble{padding:12px 18px;display:flex;gap:6px;min-width:60px}.typing-dot{width:8px;height:8px;border-radius:50%;background:#999;animation:typingDot 1.4s infinite ease-in-out}.typing-dot:nth-child(1){animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-8px);opacity:1}}.suggestions-container{display:flex;flex-direction:column;gap:10px;margin-top:8px}.suggestion-button{background:#d4d8f0;border:none;padding:6px 12px;border-radius:12px;display:flex;gap:12px;cursor:pointer;transition:all .2s;font-size:14px;font-weight:500;color:#1a1a1d;width:100%;text-align:center;align-items:center;justify-content:center}.suggestion-button:hover{background:#c5caeb;transform:translateY(-1px)}.suggestion-icon{font-size:18px}.chat-modal-input{padding:8px 16px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:8px;box-shadow:0 -5px 8px 4px #0000000d;border-radius:12px 12px 0 0}.reply-preview{background:#f5f5f7;padding:6px 6px 6px 12px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-preview-text{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-preview-close{background:transparent;border:none;cursor:pointer;padding:2px;color:#999;transition:color .2s;flex-shrink:0}.reply-preview-close:hover{color:#666}.chat-modal-input-row{display:flex;gap:12px;align-items:center}.chat-modal-input input{flex:1;padding:14px 18px;border:1px solid #e5e5e7;border-radius:12px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s;height:44px}.chat-modal-input input::placeholder{color:#999}.chat-modal-input input:focus{border-color:#5b7fff;box-shadow:0 0 0 3px #5b7fff1a}.chat-modal-input input:disabled{opacity:.6;cursor:not-allowed;background:#f5f5f7}.send-button{width:40px;height:40px;border-radius:50%;background:#5b7fff;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.send-button:hover:not(:disabled){background:#4a6fee;transform:scale(1.05)}.send-button:disabled{opacity:.4;cursor:not-allowed}.chat-modal-messages::-webkit-scrollbar{width:6px}.chat-modal-messages::-webkit-scrollbar-thumb{background:#d1d1d6;border-radius:3px}@media(max-width:640px){.chat-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:12px 12px 0 0;margin:0}}.action-status{margin-top:8px;padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top:8px;margin-bottom:8px}.action-form-title{font-weight:600;font-size:.9em;margin-bottom:10px;color:#1a1a2e;display:flex;align-items:center;gap:6px}.action-form-general-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;margin-bottom:10px;font-size:.8em;color:#dc2626;font-weight:500;display:flex;align-items:center;gap:6px}.action-form-fields{display:flex;flex-direction:column;gap:8px}.action-form-field{display:flex;flex-direction:column;gap:3px}.action-form-field label{font-size:.75em;font-weight:500;color:#6b7280}.action-form-field input,.action-form-field textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;background:#fff;color:#1a1a2e;outline:none;transition:border-color .2s;font-family:inherit}.action-form-field textarea{resize:none;word-break:break-all}.action-form-field input:focus,.action-form-field textarea:focus{border-color:#0b3988;box-shadow:0 0 0 2px #6c5ce726}.action-form-field input.error,.action-form-field textarea.error{border-color:#ef4444}.action-form-field input.readonly,.action-form-field textarea.readonly{background:#f3f4f6;color:#6b7280;cursor:not-allowed;border-color:#e5e7eb}.action-form-field .field-error{font-size:.7em;color:#ef4444;margin-top:1px}.action-form-actions{display:flex;gap:8px;margin-top:10px}.action-form-submit{flex:1;padding:8px 14px;background:#0b3988;color:#fff;border:none;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:background .2s}.action-form-submit:hover:not(:disabled){background:#5a4bd1}.action-form-submit:disabled{background:#a5b4fc;cursor:not-allowed}.action-form-cancel{padding:8px 14px;background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:all .2s}.action-form-cancel:hover{background:#f3f4f6;color:#374151}.action-form-token-info{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:8px 10px;margin-bottom:10px}.token-info-row{display:flex;align-items:center;gap:8px}.token-info-logo{border-radius:50%;flex-shrink:0}.token-info-details{display:flex;flex-direction:column;gap:2px;min-width:0}.token-info-name{font-size:.8em;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.token-info-balance{font-size:.75em;color:#4b5563}.token-info-usd{color:#0b3988;font-weight:500}.action-form-field-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.action-form-field-header .action-form-field-label{margin-bottom:0;font-size:12px}.action-form-pct-btns{display:inline-flex;gap:4px}.action-form-pct-btn{padding:1px 6px;font-size:.7em;font-weight:600;color:#0b3988;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;cursor:pointer;transition:all .15s}@media(min-width:640px){.action-form-pct-btn:hover:not(:disabled){background:#0b3988;color:#fff}}.action-form-pct-btn:disabled{opacity:.5;cursor:not-allowed}.action-form-max-btn{font-weight:700}.action-form-nft-info{margin-bottom:10px;text-align:center;display:flex;align-items:center;justify-content:center}.nft-info-image{width:80px;height:80px;border-radius:8px;object-fit:contain;background:#e5e7eb;padding:4px}.scroll-to-bottom-btn{position:absolute;bottom:16px;right:20px;background:#1a1a1dd6;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000040;z-index:20;transition:background .15s,transform .15s,box-shadow .15s;animation:fadeInUp .18s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:640px){.scroll-to-bottom-btn:hover{background:#2d2d35;box-shadow:0 6px 16px #0000004d;transform:scale(1.08)}}.scroll-to-bottom-btn:active{transform:scale(.96)}.message-content{display:block;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden;font-size:inherit;line-height:1.5}.mc-line{min-height:1.2em;word-break:break-word}.mc-empty-line{height:.5em}.mc-heading{font-weight:600;margin:.3em 0;word-break:break-word}.mc-h1{font-size:1.4em}.mc-h2{font-size:1.2em}.mc-h3{font-size:1.05em}.mc-inline-code{background:#afb8c133;padding:1px 5px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.88em}.mc-codeblock{background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:6px 0;overflow:hidden;max-width:100%}.mc-codeblock-lang{background:#e8ecf0;padding:3px 10px;font-size:.75em;font-weight:600;color:#57606a;text-transform:uppercase;font-family:Monaco,Menlo,monospace;border-bottom:1px solid #d0d7de}.mc-codeblock pre{margin:0;padding:10px;overflow-x:auto}.mc-codeblock code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85em;line-height:1.5;color:#24292f;white-space:pre}.mc-link{color:#0969da;text-decoration:none;word-break:break-word}.mc-link:hover{text-decoration:underline}.mc-image{max-width:150px;width:150px;height:150px;object-fit:contain;border-radius:8px;margin:8px 0;display:block}.mc-image-inline{width:20px;height:20px;border-radius:50%;margin:0 4px;display:inline-block;vertical-align:middle;object-fit:cover}.mc-blockquote{margin:4px 0;padding:2px 0 2px 12px;color:#57606a;border-left:3px solid #d0d7de}.mc-hr{height:1px;border:0;background:#d0d7de;margin:.4em 0}.message-content strong{font-weight:600}.message-content del{text-decoration:line-through}.mc-link-previews{display:flex;flex-direction:column;gap:6px;margin-top:6px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
2
  import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import o,{useState as i,useEffect as r,useCallback as a,createContext as s,useContext as c,memo as l,useMemo as u,useRef as d}from"react";const h={en:{chatTitle:"Keyring Agent",closeChat:"Close chat",messagePlaceholder:"Message ....",sendMessage:"Send message",botIsTyping:"Bot is typing",canIHelpYou:"Can I help you with anything?",replyToMessage:"Reply to message",replyingTo:"Replying to",replyingToYou:"You",replyingToAgent:"Keyring Agent",cancelReply:"Cancel reply",suggestionAskText:"Ask a question",suggestionAskUserMessage:"I have a question",suggestionAskBotReply:"Ask me anything",suggestionBuyText:"Buy trending token",walletConnectedChainUnsupported:"Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.",walletNotConnected:"Please connect your wallet to see trending tokens.",actionProcessing:"⏳ Processing transaction...",actionSuccess:"✅ Transaction completed",actionFail:"❌ Action cancelled or failed",txSubmitted:"⏳ Transaction submitted. Waiting for confirmation...",txConfirmed:"✅ Transaction confirmed!",txReverted:"❌ Transaction reverted on-chain.",txTimeout:"⚠️ Transaction submitted but confirmation timed out. Please check manually.",txSuccessful:"✅ Transaction successful!",txFailed:"❌ Transaction failed. Please try again.",txNoHandler:"⚠️ No transaction handler configured.",txInsufficientGas:"⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.",txError:"❌ Error: {message}",swapConfirmButton:"Confirm",swapConfirmValue:"Confirm swap",swapReadyToProceed:"Ready to proceed with the swap?",swapEstimationError:"⚠️ Unable to get swap estimation. Error: {error}",formCancel:"Cancel",formExecute:"Execute",formProcessing:"⏳ Processing...",formBalance:"Balance:",formTokenNotFound:"Token not found in your wallet.",formNoBalance:"You have no {symbol} balance in your wallet.",formInsufficientBalance:"Insufficient balance. Spendable: {balance} {symbol}",formFieldRequired:"{field} is required",formInvalidAddress:"Invalid address (Must contain 0x and 40 hex chars)",formMustBePositive:"Must be a positive number",formMustBeValidNumber:"Must be a valid number",openChat:"Open chat",openChatTitle:"Open chat support",walletBalanceSpendable:"This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.",walletNoTokensFound:"Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.",walletFetchFailed:"Sorry, I could not fetch your wallet balance. Please try again.",walletFetchError:"Sorry, I encountered an error fetching your wallet balance.",insufficientFeeToken:"Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.",selectAmountOf:"Select the amount of {symbol} to use:\n\nSpendable: {balance} {symbol}",swapFeeWarning:"\n⚠️ **Insufficient {symbol} for fees!**\n You have {balance} {symbol} but need ~{needed} {symbol}.\n",swapNeedApprove:"You need to approve {symbol} first before swapping.",swapApproveButton:"Approve {symbol}",swapApproveValue:"Approve {symbol} for swap",swapNoSourceToken:"⚠️ You don't have the source token in your wallet or balance is 0.",swapSelectAmount:"Swap {from} → {to}\n\nSelect the amount of {from} to swap:\n\nSpendable: {balance} {from}",swapApprovalRequired:"⚠️ Token approval required before swapping.\n\nStep 1: Approve {symbol}\nStep 2: Confirm Swap",swapEstimationFailed:"⚠️ Failed to get swap estimation. Please try again.",swapInsufficientNativeBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please top up your wallet or reduce the amount.",swapTokenNotInWallet:"⚠️ You don't have {symbol} in your wallet. Please acquire some first before swapping.",swapInsufficientTokenBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please reduce the amount or add more tokens.",selectAmountToSwap:"Select the amount of {symbol} to swap:\n\nSpendable: {balance} {symbol}",couldNotLoadTokenList:"⚠️ Could not load token list. Please specify the destination token.",trendingTokensForReceive:"📈 Trending tokens on {chain} chain. Pick the token you want to receive or type the token you want to receive:",txProcessing:"⏳ Transaction processing... Please confirm in your wallet.",txConfirmedSwap:"✅ Transaction confirmed! Your swap has been completed.",txRevertedSwap:"❌ Transaction reverted on-chain. Please try again.",txSuccessfulSwap:"✅ Transaction successful! Your swap has been completed.",txSuccessfulSendToken:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNative:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNft:"✅ Sent successfully NFT **{name}** (#{tokenId}) to {to}",txSuccessfulWrapNative:"✅ Wrapped successfully **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ Unwrapped successfully **{amount} {from}** → **{to}**",txDataNotAvailable:"⚠️ Transaction data not available.",approvalDataNotAvailable:"⚠️ Approval data not available.",approving:"Approving {symbol}... Please confirm in your wallet.",approvalSuccess:"✅ {symbol} approved successfully!",approvalConfirmSwap:"Now you can execute the swap.",confirmSwapButton:"Confirm Swap",approvalFailed:"❌ Approval failed. Please try again.",couldNotFetchBalance:"⚠️ Could not fetch your wallet balance.",couldNotLoadBalance:"⚠️ Could not load balance. Please try again.",couldNotFetchBalanceRetry:"⚠️ Could not fetch your balance. Please try again.",nftSendReview:"📤 Send **{name}** ({standard} #{tokenId})\n\nPlease review and fill in the recipient address below:",nftCollectionHeader:"Your NFTs :\n\n{list}",nftMoreItems:"\n\nAnd {count} more NFTs...",nftSelectBelow:"\n\nSelect an NFT below to send",nftNoCollection:"You don't have any NFTs in your wallet on this chain.",nftMultipleMatchesForTokenId:"I found {count} NFTs with Token ID #{tokenId} in your wallet. Please select the one you want to send:",nftNotFoundInWallet:"I couldn't find \"{name}\" in your NFT collection. You don't own this NFT on this chain.",nftFetchError:"Sorry, I encountered an error fetching your NFTs.",trendingTokensHeader:"📈 Here is the list of tokens that are currently trending upwards on {chain} chain",trendingTokensQuestion:"\nIs there any token you want to buy?",trendingTokensError:"Sorry, I encountered an error fetching trending tokens.",errorProcessingRequest:"Sorry, I encountered an error processing your request.Please try again in a few moments.",buttonBuyWith:"Buy with {symbol}",buttonUsePercent:"Use {percent}% of {symbol}",buttonBuyToken:"Buy {name} ({symbol})",buttonSendNft:"Send {name}",buttonSwapTo:"Swap to {name} ({symbol})",buttonBuySymbol:"Buy {symbol}",viewBalancesLoading:"Fetching your wallet balances...",viewBalancesHeader:"Your token balances on {chain}:\n\n{list}",viewBalancesEmpty:"You don't have any tokens in your wallet on this chain.",viewBalancesFetchError:"Sorry, I encountered an error fetching your balances.",buttonSendToken:"Send {symbol}",formMax:"MAX",buttonSwapToken:"Swap {symbol}",buttonBuyMoreToken:"Buy more {symbol}",actionSendNativeLabel:"Send Native Token",actionSendNativeDesc:"Send native token (ETH, BNB, MATIC, etc.) to an address",actionSendTokenLabel:"Send Token (ERC20)",actionSendTokenDesc:"Send an ERC20 token to an address",actionSwapTokenLabel:"Swap Token",actionSwapTokenDesc:"Swap one token for another",actionApproveTokenLabel:"Approve Token",actionApproveTokenDesc:"Approve a spender to use your tokens",actionWrapNativeLabel:"Wrap Native Token",actionWrapNativeDesc:"Wrap native token (ETH → WETH)",actionUnwrapNativeLabel:"Unwrap Native Token",actionUnwrapNativeDesc:"Unwrap native token (WETH → ETH)",actionSendNftLabel:"Send NFT",actionSendNftDesc:"Transfer an ERC721 or ERC1155 NFT to another address",fieldToAddress:"Recipient Address",fieldAmount:"Amount",fieldTokenContract:"Token Contract",fieldTokenSymbol:"Token Symbol",fieldDecimals:"Decimals",fieldTokenIn:"From Token",fieldTokenInSymbol:"From Symbol",fieldTokenOut:"To Token",fieldTokenOutSymbol:"To Symbol",fieldTokenInDecimals:"From Decimals",fieldTokenOutDecimals:"To Decimals",fieldSpenderAddress:"Spender Address",fieldAmountUnlimited:"Amount (empty = unlimited)",fieldNftContract:"NFT Contract",fieldTokenId:"Token ID",fieldTokenStandard:"Token Standard",fieldNftName:"NFT Name",formMustBePositiveInteger:"Must be a positive integer",formAmountExceedsNft:"Amount cannot exceed available balance {max}",receivedButtonValue:"Received: {value}",actionExecutedFor:'Action "{action}" executed for: {value}',buyTokenHelp:"I'll help you buy {symbol}. Let me show your available tokens to trade with.",tokenNotFoundOnChain:'I couldn\'t find the token "{symbol}" on this chain. Here are the trending tokens you can buy',swapPreparing:"Preparing your swap...",swapConfirmYes:"Yes",swapChooseFrom:"Please choose which token you want to swap from:",swapChooseTo:"You want to swap {symbol}. Please choose which token you want to receive:",swapNeedDetails:'I need more details for your swap. Please specify which tokens you want to swap (e.g. "Swap 1 ETH to USDC").',viewNftsLoading:"Let me show you your NFT collection!",sendTokenNotInWallet:"You don't have {symbol} in your wallet on this chain. Please acquire some first before sending.",sendTokenChoose:"Which token would you like to send?",sendNftChoose:"Which NFT would you like to send?",swapChooseToken:"Which token would you like to swap? Here are your current balances:",spendable:"Spendable",welcomeMessage:"**Welcome! 🚀**\nYou’re now connected and ready to explore the world of Blockchain. I can assist you anytime with NFT insights, trading, price tracking, and portfolio analysis.",sendOtherNfts:"\nIf the NFT you want to send is not in the list above, please visit our website to send it.",sendNftViaWebsite:"Please select the NFT you would like to send from the list and proceed via this website.",sendNftViaWebsiteWithLink:"Please select the NFT you would like to send from the list and proceed via [this website]({link}).",viewNftViaWebsite:"Please view your NFT collection on this website for more details.",viewNftViaWebsiteWithLink:"Please view your NFT collection on [this website]({link}) for more details.",buyingOnChain:"Buying {symbol} on {chain}",viewOnExplorer:"View on Explorer",copyWalletAddress:"Copy wallet address",copied:"Copied!",copyAddress:"Copy address",poolGeneralInfoIntro:"💧 **Liquidity Pools** are smart contracts where users deposit token pairs to provide liquidity for DEX trading (like Uniswap). Liquidity providers (LPs) earn trading fees from each swap.",poolGeneralInfoMetricsTitle:"**Key Metrics:**",poolGeneralInfoMetricTVL:"**TVL** - Total Value Locked in the pool",poolGeneralInfoMetricAPR:"**APR** - Estimated annual return from fees",poolGeneralInfoMetricVol24h:"**Volume 24h** - Trading volume in last 24 hours",poolGeneralInfoMetricFeeTier:"**Fee Tier** - Trading fee (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'Try asking something specific, like: *"ETH/USDC pools on Base"* or *"Highest APR pools"*.',poolNoMatch:"❌ No matching pools found.",poolNoMatchForTokenOnChain:"❌ No matching pools found for **{token}** on **{chain}**.",poolSuggestionsTitle:"💡 **Suggestions:**",poolSuggestionTryChain:"Try a different chain (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"Try a more popular pair (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"Remove filters if too narrow",poolHeaderBest:"🏆 Best Pool",poolHeaderSafe:"🛡️ Safest Pools",poolHeaderTrending:"🔥 Trending Pools",poolHeaderHighApr:"📈 Highest APR Pools",poolHeaderLowFee:"💰 Lowest Fee Pools",poolHeaderCompare:"⚖️ Pool Comparison",poolHeaderDetail:"🔎 Pool Details",poolHeaderGeneral:"💧 Pool Info",poolHeaderSearch:"🔍 Search Results",poolTableMetric:"Metric",poolTableValue:"Value",poolTableLink:"Link",poolLinkView:"View on Uniswap",poolRecommendationHighApr:"👉 **Recommended:** [{pair}]({link}) - Highest APR at **{apr}%**. _Note: Higher APR may come with higher risk._",poolRecommendationLowFee:"👉 **Recommended:** [{pair}]({link}) - Lowest fee at **{fee}%**, ideal for frequent trading.",poolRecommendationSafe:"👉 **Recommended:** [{pair}]({link}) - Highest TVL at **{tvl}**, deep liquidity and stable.",poolRecommendationTrending:"👉 **Most Active:** [{pair}]({link}) - 24h Volume **{volume}**, highest trading activity.",poolRecommendationTopPick:"👉 **Top pick:** [{pair}]({link}) - TVL **{tvl}**, best match for your criteria.",sendPositionNoId:'Please provide your LP position ID to send it. For example: "send position 12345 to 0x...".',sendPositionNotFound:"Position #{id} was not found in your wallet on {chain}. Please make sure you own this position.",sendPositionReview:"📤 Send LP Position **#{positionId}** ({pair})\n\nPlease enter the recipient address below:",sendPositionFetchError:"Error fetching your positions. Please try again."},ja:{chatTitle:"Keyring Agent",closeChat:"チャットを閉じる",messagePlaceholder:"メッセージを入力...",sendMessage:"メッセージを送信",botIsTyping:"ボットが入力中...",canIHelpYou:"何かお手伝いできることはございますか?",replyToMessage:"メッセージに返信",replyingTo:"返信先:",replyingToYou:"あなた",replyingToAgent:"Keyring Agent",cancelReply:"返信をキャンセル",suggestionAskText:"質問・調査のお願い",suggestionAskUserMessage:"質問があります",suggestionAskBotReply:"何でも聞いてください",suggestionBuyText:"トレンドトークンを購入",walletConnectedChainUnsupported:"ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。",walletNotConnected:"トレンドのトークンを表示するには、ウォレットを接続してください。",actionProcessing:"⏳ トランザクションを処理中...",actionSuccess:"✅ トランザクションが完了しました",actionFail:"❌ アクションがキャンセルされたか、失敗しました",txSubmitted:"⏳ トランザクションを送信しました。確認を待機中...",txConfirmed:"✅ トランザクションが確認されました!",txReverted:"❌ オンチェーンでトランザクションがリバートされました。",txTimeout:"⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。",txSuccessful:"✅ トランザクションに成功しました!",txFailed:"❌ トランザクションに失敗しました。もう一度お試しください。",txNoHandler:"⚠️ トランザクションハンドラーが設定されていません。",txInsufficientGas:"⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。",txError:"❌ エラー: {message}",swapConfirmButton:"確定",swapConfirmValue:"スワップを確定する",swapReadyToProceed:"スワップを実行しますか?",swapEstimationError:"⚠️ スワップの見積もりを取得できません。エラー: {error}",formCancel:"キャンセル",formExecute:"実行",formProcessing:"⏳ 処理中...",formBalance:"残高:",formTokenNotFound:"ウォレット内にトークンが見つかりません。",formNoBalance:"ウォレットに {symbol} の残高がありません。",formInsufficientBalance:"残高不足です。利用可能: {balance} {symbol}",formFieldRequired:"{field} は必須項目です",formInvalidAddress:"無効なアドレスです(0x + 40文字である必要があります)",formMustBePositive:"正の数値を入力してください",formMustBeValidNumber:"有効な数値を入力してください",openChat:"チャットを開く",openChatTitle:"チャットサポートを開く",walletBalanceSpendable:"これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。",walletNoTokensFound:"申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。",walletFetchFailed:"ウォレット残高を取得できませんでした。もう一度お試しください。",walletFetchError:"ウォレット残高の取得中にエラーが発生しました。",insufficientFeeToken:"手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。",selectAmountOf:"使用する {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手数料の {symbol} が不足しています!**\n 保有量は {balance} {symbol} ですが、~{needed} {symbol} 必要です。\n",swapNeedApprove:"スワップを行う前に、まず {symbol} の承認が必要です。",swapApproveButton:"{symbol} を承認する",swapApproveValue:"スワップのために {symbol} を承認",swapNoSourceToken:"⚠️ ウォレットにソーストークンがないか、残高が 0 です。",swapSelectAmount:"スワップ {from} → {to}\n\nスワップする {from} の数量を選択してください:\n\n利用可能: {balance} {from}",swapApprovalRequired:"⚠️ スワップの前にトークンの承認が必要です。\n\nステップ 1: {symbol} を承認\nステップ 2: スワップを確定",swapEstimationFailed:"⚠️ スワップの見積もり取得に失敗しました。もう一度お試しください。",swapInsufficientNativeBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。ウォレットにチャージするか、数量を減らしてください。",swapTokenNotInWallet:"⚠️ ウォレットに {symbol} がありません。スワップする前にまず入手してください。",swapInsufficientTokenBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。数量を減らすか、トークンを追加してください。",selectAmountToSwap:"スwaップする {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",couldNotLoadTokenList:"⚠️ トークンリストを読み込めませんでした。受け取り希望のトークンを指定してください。",trendingTokensForReceive:"📈 {chain} チェーンのトレンドトークン。受け取りたいトークンを選択するか、入力してください:",txProcessing:"⏳ トランザクション処理中... ウォレットで承認してください。",txConfirmedSwap:"✅ トランザクションが確認されました!スワップが完了しました。",txRevertedSwap:"❌ オンチェーンでトランザクションがリバートされました。もう一度お試しください。",txSuccessfulSwap:"✅ トランザクションに成功しました!スワップが完了しました。",txSuccessfulSendToken:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulSendNative:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulWrapNative:"✅ **{amount} {from}** を **{to}** にラップしました",txSuccessfulUnwrapNative:"✅ **{amount} {from}** を **{to}** にアンラップしました",txSuccessfulSendNft:"✅ NFT **{name}** (#{tokenId}) を {to} に送信しました",txDataNotAvailable:"⚠️ トランザクションデータが利用できません。",approvalDataNotAvailable:"⚠️ 承認データが利用できません。",approving:"{symbol} を承認中... ウォレットで確認してください。",approvalSuccess:"✅ {symbol} の承認に成功しました!",approvalConfirmSwap:"これでスワップを実行できます。",confirmSwapButton:"スワップを確定する",approvalFailed:"❌ 承認に失敗しました。もう一度お試しください。",couldNotFetchBalance:"⚠️ ウォレット残高を取得できませんでした。",couldNotLoadBalance:"⚠️ 残高を読み込めませんでした。もう一度お試しください。",couldNotFetchBalanceRetry:"⚠️ 残高を取得できませんでした。もう一度お試しください。",nftSendReview:"📤 **{name}** ({standard} #{tokenId}) を送信\n\n内容を確認し、以下に受信者のアドレスを入力してください:",nftCollectionHeader:"您的 NFT 资产:\n\n{list}",nftMoreItems:"\n\n以及其他 {count} 件 NFT...",nftSelectBelow:"\n\n请在下方选择要发送的 NFT",nftNoCollection:"このチェーン上のウォレットにNFTは見つかりませんでした。",nftMultipleMatchesForTokenId:"ウォレット内にToken ID #{tokenId} のNFTが{count}件見つかりました。送信したいNFTを選択してください:",nftNotFoundInWallet:'あなたのNFTコレクションに "{name}" が見つかりませんでした。このチェーンでこのNFTを所有していません。',nftFetchError:"申し訳ありませんが、NFTの取得中にエラーが発生しました。",trendingTokensHeader:"📈 {chain} チェーンで現在価格が上昇中のトレンドトークン一覧です:",trendingTokensQuestion:"\n購入したいトークンはありますか?",trendingTokensError:"トレンドトークンの取得中にエラーが発生しました。",errorProcessingRequest:"リクエストの処理中にエラーが発生しました。しばらく時間を置いてからもう一度お試しください。",buttonBuyWith:"{symbol} で購入",buttonUsePercent:"{symbol}の{percent}%を使用",buttonBuyToken:"{name} ({symbol}) を購入",buttonSendNft:"{name} を送信",buttonSwapTo:"{name} ({symbol}) にスワップ",buttonBuySymbol:"{symbol} を購入",viewBalancesLoading:"ウォレットの残高を取得中...",viewBalancesHeader:"{chain} 上のトークン残高:\n\n{list}",viewBalancesEmpty:"このチェーン上のウォレットにトークンは見つかりませんでした。",viewBalancesFetchError:"残高の取得中にエラーが発生しました。",buttonSendToken:"{symbol} を送信",formMax:"最大",buttonSwapToken:"{symbol} をスワップ",buttonBuyMoreToken:"{symbol} をさらに入手",actionSendNativeLabel:"ネイティブトークンを送信",actionSendNativeDesc:"ネイティブトークン (ETH, BNB, MATIC など) をアドレスに送信します",actionSendTokenLabel:"トークンを送信 (ERC20)",actionSendTokenDesc:"ERC20トークンをアドレスに送信します",actionSwapTokenLabel:"トークンをスワップ",actionSwapTokenDesc:"トークンを別のトークンに交換します",actionApproveTokenLabel:"トークンを承認",actionApproveTokenDesc:"支出元(Spender)によるトークンの使用を許可します",actionWrapNativeLabel:"ネイティブトークンをラップ",actionWrapNativeDesc:"ネイティブトークンをラップします (ETH → WETH)",actionUnwrapNativeLabel:"ネイティブトークンをアンラップ",actionUnwrapNativeDesc:"ネイティブトークンをアンラップします (WETH → ETH)",actionSendNftLabel:"NFTを送信",actionSendNftDesc:"ERC721またはERC1155 NFTを別のアドレスに転送します",fieldToAddress:"受信者アドレス",fieldAmount:"数量",fieldTokenContract:"トークンコントラクト",fieldTokenSymbol:"トークンシンボル",fieldDecimals:"デシマル (小数桁数)",fieldTokenIn:"元のトークン",fieldTokenInSymbol:"元のシンボル",fieldTokenOut:"先のトークン",fieldTokenOutSymbol:"先のシンボル",fieldTokenInDecimals:"元のデシマル",fieldTokenOutDecimals:"先のデシマル",fieldSpenderAddress:"支出元 (Spender) アドレス",fieldAmountUnlimited:"数量 (空欄 = 無制限)",fieldNftContract:"NFTコントラクト",fieldTokenId:"トークンID",fieldTokenStandard:"トークン規格",fieldNftName:"NFT名",formMustBePositiveInteger:"正の整数を入力してください",formAmountExceedsNft:"数量は利用可能な残高 {max} を超えることはできません",receivedButtonValue:"受取額: {value}",actionExecutedFor:"アクション「{action}」が {value} に対して実行されました",buyTokenHelp:"{symbol} の購入をお手伝いします。まず、交換に使用可能なトークンを表示します。",tokenNotFoundOnChain:"このチェーン上でトークン「{symbol}」が見つかりませんでした。購入可能なトレンドトークンはこちらです",swapPreparing:"スワップの準備中...",swapConfirmYes:"はい",swapChooseFrom:"交換元(支払う)トークンを選択してください:",swapChooseTo:"{symbol} をスワップします。受け取りたいトークンを選択してください:",swapNeedDetails:"スワップの詳細が必要です。交換したいトークンを指定してください(例:「1 ETH を USDC にスワップ」)。",viewNftsLoading:"あなたのNFTコレクションを表示します!",sendTokenNotInWallet:"このチェーンのウォレットに {symbol} がありません。送信する前にまず入手してください。",sendTokenChoose:"どのトークンを送信しますか?",sendNftChoose:"どのNFTを送信しますか?",swapChooseToken:"どのトークンをスワップしますか?現在の残高はこちらです:",spendable:"利用可能",welcomeMessage:"**ようこそ! 🚀**\n次世代のブロックチェーンへ。NFT情報、トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。",sendOtherNfts:"\n送信したいNFTが上記のリストにない場合は、当ウェブサイトにアクセスして送信してください。",sendNftViaWebsite:"送信したいNFTをリストから選択し、当ウェブサイトで手続きを進めてください。",sendNftViaWebsiteWithLink:"送信したいNFTをリストから選択し、[当ウェブサイト]({link})で手続きを進めてください。",viewNftViaWebsite:"NFTコレクションの詳細は、当ウェブサイトでご確認ください。",viewNftViaWebsiteWithLink:"NFTコレクションの詳細は、[当ウェブサイト]({link})でご確認ください。",buyingOnChain:"{chain} チェーンで {symbol} を購入中",viewOnExplorer:"エクスプローラーで見る",copyWalletAddress:"ウォレットアドレスをコピー",copied:"コピーしました!",copyAddress:"アドレスをコピー",poolGeneralInfoIntro:"💧 **流動性プール** は、ユーザーがトークンペアを預けてDEX取引(Uniswap など)の流動性を提供するスマートコントラクトです。LP は各スワップの手数料を獲得します。",poolGeneralInfoMetricsTitle:"**主要メトリクス:**",poolGeneralInfoMetricTVL:"**TVL** - プールにロックされている総価値",poolGeneralInfoMetricAPR:"**APR** - 手数料に基づく年間想定利回り",poolGeneralInfoMetricVol24h:"**24時間出来高** - 直近24時間の取引量",poolGeneralInfoMetricFeeTier:"**手数料ティア** - 取引手数料 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'例: *"Base の ETH/USDC プール"* や *"APR が高いプール"* のように聞いてみてください。',poolNoMatch:"❌ 条件に一致するプールが見つかりませんでした。",poolNoMatchForTokenOnChain:"❌ **{chain}** 上で **{token}** に一致するプールが見つかりませんでした。",poolSuggestionsTitle:"💡 **提案:**",poolSuggestionTryChain:"別のチェーンを試す (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"より一般的なペアを試す (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"フィルター条件を緩める",poolHeaderBest:"🏆 最適なプール",poolHeaderSafe:"🛡️ 安全性の高いプール",poolHeaderTrending:"🔥 トレンドプール",poolHeaderHighApr:"📈 APRの高いプール",poolHeaderLowFee:"💰 手数料の低いプール",poolHeaderCompare:"⚖️ プール比較",poolHeaderDetail:"🔎 プール詳細",poolHeaderGeneral:"💧 プール情報",poolHeaderSearch:"🔍 検索結果",poolTableMetric:"指標",poolTableValue:"値",poolTableLink:"リンク",poolLinkView:"Uniswapで表示",poolRecommendationHighApr:"👉 **おすすめ:** [{pair}]({link}) - APR は **{apr}%** で最も高いです。_注意: APR が高いほどリスクも高い可能性があります。_",poolRecommendationLowFee:"👉 **おすすめ:** [{pair}]({link}) - 手数料 **{fee}%** で、頻繁な取引に適しています。",poolRecommendationSafe:"👉 **おすすめ:** [{pair}]({link}) - TVL **{tvl}** で流動性が厚く安定しています。",poolRecommendationTrending:"👉 **最も活発:** [{pair}]({link}) - 24時間出来高 **{volume}** で取引が最も活発です。",poolRecommendationTopPick:"👉 **トップ候補:** [{pair}]({link}) - TVL **{tvl}**、条件に最も適合しています。",sendPositionNoId:'LP ポジション ID を提供してください。例:"ポジション 12345 を 0x... に送信"。',sendPositionNotFound:"{chain} 上のウォレットにポジション #{id} が見つかりませんでした。このポジションを所有していることを確認してください。",sendPositionReview:"📤 LP ポジション **#{positionId}** ({pair}) を送信\n\n受取人アドレスを以下に入力してください:",sendPositionFetchError:"ポジションの取得中にエラーが発生しました。もう一度お試しください。"},cn:{chatTitle:"Keyring Agent",closeChat:"关闭聊天",messagePlaceholder:"请输入消息....",sendMessage:"发送消息",botIsTyping:"机器人正在输入",canIHelpYou:"有什么我可以帮您的吗?",replyToMessage:"回复消息",replyingTo:"正在回复",replyingToYou:"您",replyingToAgent:"Keyring Agent",cancelReply:"取消回复",suggestionAskText:"提问",suggestionAskUserMessage:"我有一个问题",suggestionAskBotReply:"随便问我任何事情",suggestionBuyText:"购买热门代币",walletConnectedChainUnsupported:"您的钱包已连接,但当前链不支持交易。请切换到支持的链以查看热门代币。",walletNotConnected:"请连接您的钱包以查看热门代币。",actionProcessing:"⏳ 正在处理交易...",actionSuccess:"✅ 交易已完成",actionFail:"❌ 操作取消或失败",txSubmitted:"⏳ 交易已提交。正在等待确认...",txConfirmed:"✅ 交易已确认!",txReverted:"❌ 交易在链上被退回(Reverted)。",txTimeout:"⚠️ 交易已提交但确认超时。请手动检查。",txSuccessful:"✅ 交易成功!",txFailed:"❌ 交易失败。请重试。",txNoHandler:"⚠️ 未配置交易处理器。",txInsufficientGas:"⚠️ **{symbol} 余额不足以支付 Gas 费!** 您当前有 {balance} {symbol},但交易费预计需要 ~{fee} {symbol}。请充值钱包后重试。",txError:"❌ 错误: {message}",swapConfirmButton:"确认",swapConfirmValue:"确认兑换",swapReadyToProceed:"准备好进行兑换了吗?",swapEstimationError:"⚠️ 无法获取兑换估算。错误: {error}",formCancel:"取消",formExecute:"执行",formProcessing:"⏳ 正在处理...",formBalance:"余额:",formTokenNotFound:"您的钱包中未找到该代币。",formNoBalance:"您的钱包中没有 {symbol} 余额。",formInsufficientBalance:"余额不足。可用余额: {balance} {symbol}",formFieldRequired:"{field} 是必填项",formInvalidAddress:"无效地址(必须是 0x + 40 个字符)",formMustBePositive:"必须为正数",formMustBeValidNumber:"必须为有效数字",openChat:"打开聊天",openChatTitle:"打开聊天支持",walletBalanceSpendable:"这是您在 {chain} 链上钱包的可选余额。请选择您想用于此次交易的代币。",walletNoTokensFound:"抱歉,我在 {chain} 链上的钱包中没找到任何代币。请确保您有代币可以进行交易。",walletFetchFailed:"抱歉,无法获取您的钱包余额。请重试。",walletFetchError:"抱歉,获取钱包余额时出错。",insufficientFeeToken:"手续费不足。请确保您有足够的 {symbol} 来支付交易费用,或选择其他代币。",selectAmountOf:"选择要使用的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手续费所需的 {symbol} 不足!**\n 您当前有 {balance} {symbol},但需要 ~{needed} {symbol}。\n",swapNeedApprove:"在兑换之前,您需要先授权 {symbol}。",swapApproveButton:"授权 {symbol}",swapApproveValue:"授权 {symbol} 以进行兑换",swapNoSourceToken:"⚠️ 您的钱包中没有源代币或余额为 0。",swapSelectAmount:"兑换 {from} → {to}\n\n选择要兑换的 {from} 数量:\n\n可用余额: {balance} {from}",swapApprovalRequired:"⚠️ 兑换前需要代币授权。\n\n第 1 步:授权 {symbol}\n第 2 步:确认兑换",swapEstimationFailed:"⚠️ 获取兑换估算失败。请重试。",swapInsufficientNativeBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请充值钱包或减少金额。",swapTokenNotInWallet:"⚠️ 您的钱包中没有 {symbol}。请在兑换前先获取一些代币。",swapInsufficientTokenBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请减少金额或添加更多代币。",selectAmountToSwap:"选择要兑换的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",couldNotLoadTokenList:"⚠️ 无法加载代币列表。请指定目标代币。",trendingTokensForReceive:"📈 {chain} 链上的热门代币。请选择您想收到的代币或输入代币名称:",txProcessing:"⏳ 交易处理中... 请在钱包中确认。",txConfirmedSwap:"✅ 交易已确认!您的兑换已完成。",txRevertedSwap:"❌ 交易在链上被退回。请重试。",txSuccessfulSwap:"✅ 交易成功!您的兑换已完成。",txSuccessfulSendToken:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulSendNative:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulWrapNative:"✅ 成功封装 **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ 成功解封装 **{amount} {from}** → **{to}**",txSuccessfulSendNft:"✅ 已成功发送 NFT **{name}** (#{tokenId}) 至 {to}",txDataNotAvailable:"⚠️ 交易数据不可用。",approvalDataNotAvailable:"⚠️ 授权数据不可用。",approving:"正在授权 {symbol}... 请在钱包中确认。",approvalSuccess:"✅ {symbol} 授权成功!",approvalConfirmSwap:"现在您可以执行兑换了。",confirmSwapButton:"确认兑换",approvalFailed:"❌ 授权失败。请重试。",couldNotFetchBalance:"⚠️ 无法获取您的钱包余额。",couldNotLoadBalance:"⚠️ 无法加载余额。请重试。",couldNotFetchBalanceRetry:"⚠️ 无法获取您的余额。请重试。",nftSendReview:"📤 发送 **{name}** ({standard} #{tokenId})\n\n请核对并在下方填写接收者地址:",nftCollectionHeader:"保有中のNFT一覧 :\n\n{list}",nftMoreItems:"\n\n他 {count} 件のNFT...",nftSelectBelow:"\n\n送信するNFTを以下から選択してください",nftNoCollection:"您在该链的钱包中没有任何 NFT。",nftMultipleMatchesForTokenId:"在您的钱包中找到了 {count} 个 Token ID #{tokenId} 的 NFT。请选择您要发送的 NFT:",nftNotFoundInWallet:'我在您的 NFT 收藏中没找到 "{name}"。您在此链上不拥有此 NFT。',nftFetchError:"抱歉,获取您的 NFT 时出错。",trendingTokensHeader:"📈 以下是 {chain} 链上目前呈上升趋势的热门代币列表",trendingTokensQuestion:"\n有您想购买的代币吗?",trendingTokensError:"抱歉,获取热门代币时出错。",errorProcessingRequest:"抱歉,处理您的请求时出错。请稍后再试。",buttonBuyWith:"使用 {symbol} 购买",buttonUsePercent:"使用{percent}%的{symbol}",buttonBuyToken:"购买 {name} ({symbol})",buttonSendNft:"发送 {name}",buttonSwapTo:"兑换为 {name} ({symbol})",buttonBuySymbol:"购买 {symbol}",viewBalancesLoading:"正在获取您的钱包余额...",viewBalancesHeader:"您在 {chain} 上的代币余额:\n\n{list}",viewBalancesEmpty:"您在该链的钱包中没有任何代币。",viewBalancesFetchError:"抱歉,获取您的余额时出错。",buttonSendToken:"发送 {symbol}",formMax:"最多",buttonSwapToken:"兑换 {symbol}",buttonBuyMoreToken:"购买更多 {symbol}",actionSendNativeLabel:"发送原生代币",actionSendNativeDesc:"将原生代币 (ETH, BNB, MATIC 等) 发送到指定地址",actionSendTokenLabel:"发送代币 (ERC20)",actionSendTokenDesc:"将 ERC20 代币发送到指定地址",actionSwapTokenLabel:"兑换代币",actionSwapTokenDesc:"将一种代币兑换为另一种",actionApproveTokenLabel:"授权代币",actionApproveTokenDesc:"授权支出方使用您的代币",actionWrapNativeLabel:"包装 (Wrap) 原生代币",actionWrapNativeDesc:"包装原生代币 (例如 ETH → WETH)",actionUnwrapNativeLabel:"解包 (Unwrap) 原生代币",actionUnwrapNativeDesc:"解包原生代币 (例如 WETH → ETH)",actionSendNftLabel:"发送 NFT",actionSendNftDesc:"将 ERC721 或 ERC1155 NFT 转移到另一个地址",fieldToAddress:"接收者地址",fieldAmount:"金额",fieldTokenContract:"代币合约",fieldTokenSymbol:"代币符号",fieldDecimals:"精度 (Decimals)",fieldTokenIn:"源代币 (From)",fieldTokenInSymbol:"源代币符号",fieldTokenOut:"目标代币 (To)",fieldTokenOutSymbol:"目标代币符号",fieldTokenInDecimals:"源代币精度",fieldTokenOutDecimals:"目标代币精度",fieldSpenderAddress:"支出方 (Spender) 地址",fieldAmountUnlimited:"金额 (留空 = 无限制)",fieldNftContract:"NFT 合约",fieldTokenId:"代币 ID",fieldTokenStandard:"代币标准",fieldNftName:"NFT 名称",formMustBePositiveInteger:"必须为正整数",formAmountExceedsNft:"金额不能超过可用余额 {max}",receivedButtonValue:"收到: {value}",actionExecutedFor:'操作 "{action}" 已执行,对象为: {value}',buyTokenHelp:"我会帮您购买 {symbol}。让我为您显示可用于交易的代币。",tokenNotFoundOnChain:'我在该链上没找到代币 "{symbol}"。以下是您可以购买的热门代币',swapPreparing:"正在准备兑换...",swapConfirmYes:"是",swapChooseFrom:"请选择您想从哪个代币进行兑换:",swapChooseTo:"您想兑换 {symbol}。请选择您想收到的代币:",swapNeedDetails:"我需要更多关于兑换的细节。请指定您想兑换的代币(例如 “将 1 ETH 兑换为 USDC”)。",viewNftsLoading:"正在为您展示 NFT 收藏!",sendTokenNotInWallet:"您的钱包中在此链上没有 {symbol}。请在发送前先获取一些代币。",sendTokenChoose:"您想发送哪个代币?",sendNftChoose:"您想发送哪个 NFT?",swapChooseToken:"您想兑换哪个代币?以下是您的当前余额:",spendable:"可用余额",welcomeMessage:"**欢迎您!🚀**\n带你一起探索新一代区块链世界。我可以随时为您提供NFT资讯、交易支持、价格查询以及投资组合分析等服务。",sendOtherNfts:"\n如果您想发送的NFT不在上述列表中,请访问我们的网站进行发送。",sendNftViaWebsite:"请从列表中选择您想发送的NFT,并通过这个网站继续操作。",sendNftViaWebsiteWithLink:"请从列表中选择您想发送的NFT,并通过[这个网站]({link})继续操作。",viewNftViaWebsite:"如需查看更多详情,请在这个网站查看您的NFT收藏。",viewNftViaWebsiteWithLink:"如需查看更多详情,请在[这个网站]({link})查看您的NFT收藏。",buyingOnChain:"正在 {chain} 链上购买 {symbol}",viewOnExplorer:"在区块浏览器查看",copyWalletAddress:"复制钱包地址",copied:"已复制!",copyAddress:"复制地址",poolGeneralInfoIntro:"💧 **流动性池** 是用户存入代币对、为 DEX(如 Uniswap)提供流动性的智能合约。流动性提供者(LP)可从每笔兑换中获得手续费收益。",poolGeneralInfoMetricsTitle:"**关键指标:**",poolGeneralInfoMetricTVL:"**TVL** - 池中锁仓总价值",poolGeneralInfoMetricAPR:"**APR** - 基于手续费估算的年化收益",poolGeneralInfoMetricVol24h:"**24小时成交量** - 最近24小时交易量",poolGeneralInfoMetricFeeTier:"**费率档位** - 交易费率 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'你可以更具体地提问,例如:*"Base 上的 ETH/USDC 池"* 或 *"APR 最高的池"*。',poolNoMatch:"❌ 未找到匹配的流动性池。",poolNoMatchForTokenOnChain:"❌ 在 **{chain}** 上未找到 **{token}** 的匹配池。",poolSuggestionsTitle:"💡 **建议:**",poolSuggestionTryChain:"尝试其他链(Ethereum、Base、Arbitrum...)",poolSuggestionTryPair:"尝试更热门的交易对(ETH/USDC、ETH/USDT)",poolSuggestionRelaxFilters:"放宽筛选条件",poolHeaderBest:"🏆 最佳流动性池",poolHeaderSafe:"🛡️ 更稳健的流动性池",poolHeaderTrending:"🔥 热门流动性池",poolHeaderHighApr:"📈 高 APR 流动性池",poolHeaderLowFee:"💰 低费率流动性池",poolHeaderCompare:"⚖️ 流动性池对比",poolHeaderDetail:"🔎 流动性池详情",poolHeaderGeneral:"💧 流动性池信息",poolHeaderSearch:"🔍 搜索结果",poolTableMetric:"指标",poolTableValue:"数值",poolTableLink:"链接",poolLinkView:"在 Uniswap 查看",poolRecommendationHighApr:"👉 **推荐:**[{pair}]({link}) - APR 最高,为 **{apr}%**。_注意:APR 越高通常风险也越高。_",poolRecommendationLowFee:"👉 **推荐:**[{pair}]({link}) - 费率仅 **{fee}%**,适合高频交易。",poolRecommendationSafe:"👉 **推荐:**[{pair}]({link}) - TVL 达 **{tvl}**,流动性更充足且相对稳定。",poolRecommendationTrending:"👉 **最活跃:**[{pair}]({link}) - 24 小时成交量 **{volume}**,交易最活跃。",poolRecommendationTopPick:"👉 **首选:**[{pair}]({link}) - TVL **{tvl}**,最符合你的筛选条件。",sendPositionNoId:'请提供您的 LP 仓位 ID 以便转出。例如:"发送仓位 12345 至 0x..."。',sendPositionNotFound:"在 {chain} 上的钱包中未找到仓位 #{id}。请确认您拥有该仓位。",sendPositionReview:"📤 发送 LP 仓位 **#{positionId}** ({pair})\n\n请在下方填写接收者地址:",sendPositionFetchError:"获取您的仓位时出错。请重试。"}};function f(e,t){return h[t]?.[e]??h.en[e]??e}const p=s(void 0),m=({children:t,initialLanguage:n="en"})=>{const[o,s]=i(n);r(()=>{n&&s(n)},[n]);const c=a(e=>f(e,o),[o]),l=a((e,t)=>function(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??`{${n}}`)}(f(e,o),t),[o]);/* @__PURE__ */
3
3
  return e(p.Provider,{value:{language:o,setLanguage:s,t:c,ti:l},children:t})},w=()=>{const e=c(p);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e},g=l(({onClick:t,buttonSize:n=56,customIcon:o})=>{const{t:i}=w();/* @__PURE__ */
4
- return e("button",{className:"chat-button",onClick:t,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},"aria-label":i("openChat"),title:i("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:/* @__PURE__ */e("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:o||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2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OH+H2Xrkiy8a6/hdiHC0uAsQokMdUOsD0SD8vFd7GaYBIixNVKIrqK1w1KU2LUksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),b={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",webAppUrl:"https://nft-demo.keyring.app",isPackageTest:!0},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",webAppUrl:"https://nft.keyring.app"},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:{data:[{question:{en:"Unveiling the Truth of Liquidity Pools & Earn Over 20% APR. How Is This Possible?"},answer:{en:"The high APR of liquidity pools like Uniswap comes from: Trading fees, Compensation for impermanent loss, Yieldfarming incentives, Market volatility in high-trading-volume pools"}},{question:{en:"What Is a Liquidity Pool?"},answer:{en:"A liquidity pool is a smart contract that holds two tokens and facilitates swaps using an AMM model. Liquidity providers (LPs) deposit tokens and earn trading fees from transactions in the pool."}},{question:{en:"What Are the Benefits of Liquidity Providers?"},answer:{en:"Liquidity providers (LPs) earn passive income by supplying tokens to pools, benefiting from trading fees, improved capital efficiency, yield farming rewards, and permissionless participation, while also potentially increasing their total coin holdings over time."}},{question:{en:"Are There Any Risks?"},answer:{en:"Liquidity providers (LPs) face several key risks when providing liquidity: out-of-range risk, where prices move outside the set range causing liquidity to become inactive and stop earning fees; impermanent loss, where large price fluctuations reduce the value compared to simply holding assets; and asset imbalance, where one token becomes dominant, leaving the portfolio unbalanced."}},{question:{en:"What is CoinPool?"},answer:{en:"Simply access CoinPool to find the best high-APR pairs easily. Normally, before adding liquidity, users must swap assets to balance their holdings, but CoinPool simplifies this process."}},{question:{en:"How Do I Get Started?"},answer:{en:"For example, if you hold USDC and select the ETH/WBTC pair, CoinPool will automatically swap USDC into ETH and WBTC, then create a liquidity position for you, making it easy to provide liquidity to the pool."}},{question:{en:"Why Should You Use CoinPool?"},answer:{en:"CoinPool simplifies and optimizes earning potential by prioritizing high-APR pools to maximize returns, while handling all liquidity provisioning automatically—eliminating the need for manual swaps or rebalancing. With just a single asset deposit, CoinPool seamlessly manages the process to generate efficient passive income."}},{question:{en:"How It Works"},answer:{en:"CoinPool allows users to create an LP position with a single token, eliminating the need for direct access and manual operations on sites like Uniswap."}},{question:{en:"How do you manage Liquidity Positions (LPs)?"},answer:{en:"You can manage your LP position directly using the KEYRING PRO app. Since your LP NFT is linked to your wallet, CoinPool only provides smooth access to manage your position but does not hold or control your assets."}},{question:{en:"Why Should I Use the ‘High APR Pairs’ Feature?"},answer:{en:"The ‘High APR Pairs’ feature helps users quickly add liquidity to high-yield pools without needing to create a new pair, streamlining the liquidity provision process. Notice: Always select pairs from verified and reliable creators to ensure the best security and returns."}},{question:{en:"What is the Earnings Overview Dashboard?"},answer:{en:"The Earnings Overview Dashboard provides a clear summary of your liquidity value and earnings from providing liquidity, along with the average APR. It also allows you to view other users’ LP earnings and follow their strategies for insight and inspiration."}},{question:{en:"What tokens can I use to add liquidity?"},answer:{en:"CoinPool supports ETH. Users can use any of these assets, and CoinPool will automatically swap them into the required token pairs for liquidity provision."}},{question:{en:"How does CoinPool simplify liquidity provision?"},answer:{en:"Instead of manually swapping and balancing tokens, CoinPool automates the entire process. Users can simply deposit a single asset, and CoinPool will convert, balance, and provide liquidity in the selected pool, prioritizing those with the best APRs."}},{question:{en:"Can I create my own liquidity pool?"},answer:{en:"Yes! CoinPool allows users to create custom liquidity pools instead of joining existing ones. Users can also invite others to contribute liquidity to their pools."}},{question:{en:"How do I earn from providing liquidity?"},answer:{en:"Liquidity providers earn a share of trading fees generated by the pool.\nTrading volume of the pool – Higher activity means more fees.\nYour liquidity share – The more you contribute, the more you earn.\nFee tier selection – Pools with higher fee tiers may generate higher earnings but attract fewer trades."}},{question:{en:"How do I choose the right fee tier when adding liquidity?"},answer:{en:"0.01% → Best for stablecoin pairs (e.g., USDT/USDC).\n0.05% → Best for low-volatility tokens.\n0.3% (Default) → Best for most trading pairs.\n1% → Best for high-volatility, low-liquidity pairs.\nIf unsure, check existing pools to see the most commonly used fee rate."}},{question:{en:"Can I lose money by providing liquidity?"},answer:{en:"Yes, the biggest risk is impermanent loss, which happens when token prices change significantly after you deposit them. However, this loss can be offset by the trading fees earned from the pool."}},{question:{en:"What happens if my liquidity goes out of range?"},answer:{en:"If you provide liquidity within a specific price range (Uniswap V3 model), your position can become inactive when the market price moves beyond your set range.\nYou stop earning fees.\nYour balance shifts toward one of the two tokens in the pair.\nTo reactivate, you need to remove and re-add liquidity at a new range."}},{question:{en:"What is the difference between 'Collect Profit' and 'Delete the Pair and Collect Profit'?"},answer:{en:"'Collect Profit' – Withdraw only profit.\n'Delete the Pair and Collect Profit' – Withdraw both initial liquidity and profit."}},{question:{en:"What is the URL of the CoinPool website?"},answer:{en:"The official website URL is https://coinpool.app/"}},{question:{en:"Where can I find pools with high volume-to-liquidity ratio?"},answer:{en:"You can find pools with a high volume-to-liquidity ratio on this page: https://coinpool.app/pool-ranking"}},{question:{en:"Where can I see my earnings or liquidity profits?"},answer:{en:"You can track your earnings and liquidity performance here: https://coinpool.app/earnings-overview"}},{question:{en:"Where can I view my NFT pools?"},answer:{en:"You can check your NFT pools on this page:https://coinpool.app/my-liquidity"}},{question:{en:"Where can I create or choose a pair to create a pool?"},answer:{en:"You can create or choose a pair to create a pool here: https://coinpool.app/pair"}}]},linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"}}},y=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz"],v=/^tuple(?<array>(\[(\d*)\])*)$/;function A(e){let t=e.type;if(v.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++)t+=A(e.components[i]),i<n-1&&(t+=", ");const o=function(e,t){const n=e.exec(t);return n?.groups}(v,e.type);return t+=`)${o?.array||""}`,A({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function k(e){let t="";const n=e.length;for(let o=0;o<n;o++)t+=A(e[o]),o!==n-1&&(t+=", ");return t}function x(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new F(e.type);return`${e.name}(${T(e.inputs,{includeName:t})})`}function T(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${T(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}function E(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function C(e){return E(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const I="2.47.0";let S=`viem@${I}`;class N extends Error{constructor(e,t={}){const n=t.cause instanceof N?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof N&&t.cause.docsPath||t.docsPath,i=(({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0)?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...n?[`Details: ${n}`]:[],...S?[`Version: ${S}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=I}walk(e){return B(this,e)}}function B(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?B(e.cause,t):t?null:e}class M extends N{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class R extends N{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${C(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class P extends N{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class U extends N{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class O extends N{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${x(e.abiItem)}\`, and`,`\`${t.type}\` in \`${x(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class L extends N{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class D extends N{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class F extends N{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class H extends N{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class q extends N{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function V(e,{dir:t,size:n=32}={}){return"string"==typeof e?z(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new q({size:e.length,targetSize:n,type:"bytes"});const o=new Uint8Array(n);for(let i=0;i<n;i++){const r="right"===t;o[r?i:n-i-1]=e[r?i:e.length-i-1]}return o}(e,{dir:t,size:n})}function z(e,{dir:t,size:n=32}={}){if(null===n)return e;const o=e.replace("0x","");if(o.length>2*n)throw new q({size:Math.ceil(o.length/2),targetSize:n,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*n,"0")}`}class W extends N{constructor({max:e,min:t,signed:n,size:o,value:i}){super(`Number "${i}" is not in safe ${o?`${8*o}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class j extends N{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function G(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,o=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)o++;return n="left"===t?n.slice(o):n.slice(0,n.length-o),"string"==typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function J(e,{size:t}){if(C(e)>t)throw new j({givenSize:C(e),maxSize:t})}function Y(e,t={}){const{signed:n}=t;t.size&&J(e,{size:t.size});const o=BigInt(e);if(!n)return o;const i=(e.length-2)/2;return o<=(1n<<8n*BigInt(i)-1n)-1n?o:o-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function X(e,t={}){const n=Y(e,t),o=Number(n);if(!Number.isSafeInteger(o))throw new W({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return o}const Q=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function K(e,t={}){return"number"==typeof e||"bigint"==typeof e?$(e,t):"string"==typeof e?te(e,t):"boolean"==typeof e?Z(e,t):_(e,t)}function Z(e,t={}){const n=`0x${Number(e)}`;return"number"==typeof t.size?(J(n,{size:t.size}),V(n,{size:t.size})):n}function _(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=Q[e[i]];const o=`0x${n}`;return"number"==typeof t.size?(J(o,{size:t.size}),V(o,{dir:"right",size:t.size})):o}function $(e,t={}){const{signed:n,size:o}=t,i=BigInt(e);let r;o?r=n?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"==typeof r&&n?-r-1n:0;if(r&&i>r||i<a){const t="bigint"==typeof e?"n":"";throw new W({max:r?`${r}${t}`:void 0,min:`${a}${t}`,signed:n,size:o,value:`${e}${t}`})}const s=`0x${(n&&i<0?(1n<<BigInt(8*o))+BigInt(i):i).toString(16)}`;return o?V(s,{size:o}):s}const ee=/* @__PURE__ */new TextEncoder;function te(e,t={}){return _(ee.encode(e),t)}const ne=/* @__PURE__ */new TextEncoder;function oe(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){return ae($(e,t))}(e,t):"boolean"==typeof e?function(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),"number"==typeof t.size?(J(n,{size:t.size}),V(n,{size:t.size})):n}(e,t):E(e)?ae(e,t):se(e,t)}const ie={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(e){return e>=ie.zero&&e<=ie.nine?e-ie.zero:e>=ie.A&&e<=ie.F?e-(ie.A-10):e>=ie.a&&e<=ie.f?e-(ie.a-10):void 0}function ae(e,t={}){let n=e;t.size&&(J(n,{size:t.size}),n=V(n,{dir:"right",size:t.size}));let o=n.slice(2);o.length%2&&(o=`0${o}`);const i=o.length/2,r=new Uint8Array(i);for(let a=0,s=0;a<i;a++){const e=re(o.charCodeAt(s++)),t=re(o.charCodeAt(s++));if(void 0===e||void 0===t)throw new N(`Invalid byte sequence ("${o[s-2]}${o[s-1]}" in "${o}").`);r[a]=16*e+t}return r}function se(e,t={}){const n=ne.encode(e);return"number"==typeof t.size?(J(n,{size:t.size}),V(n,{dir:"right",size:t.size})):n}const ce=/* @__PURE__ */BigInt(2**32-1),le=/* @__PURE__ */BigInt(32);function ue(e,t=!1){return t?{h:Number(e&ce),l:Number(e>>le&ce)}:{h:0|Number(e>>le&ce),l:0|Number(e&ce)}}function de(e,t=!1){const n=e.length;let o=new Uint32Array(n),i=new Uint32Array(n);for(let r=0;r<n;r++){const{h:n,l:a}=ue(e[r],t);[o[r],i[r]]=[n,a]}return[o,i]}const he=(e,t,n)=>e>>>n,fe=(e,t,n)=>e<<32-n|t>>>n,pe=(e,t,n)=>e>>>n|t<<32-n,me=(e,t,n)=>e<<32-n|t>>>n,we=(e,t,n)=>e<<64-n|t>>>n-32,ge=(e,t,n)=>e>>>n-32|t<<64-n;function be(e,t,n,o){const i=(t>>>0)+(o>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const ye=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),ve=(e,t,n,o)=>t+n+o+(e/2**32|0)|0,Ae=(e,t,n,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(o>>>0),ke=(e,t,n,o,i)=>t+n+o+i+(e/2**32|0)|0,xe=(e,t,n,o,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(o>>>0)+(i>>>0),Te=(e,t,n,o,i,r)=>t+n+o+i+r+(e/2**32|0)|0,Ee="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function Ce(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ie(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ne(e,t){Ie(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Be(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Me(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Re(e,t){return e<<32-t|e>>>t}function Pe(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Ue=/* @__PURE__ */(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Pe(e[t]);return e};function Oe(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e)),Ie(e),e}class Le{}function De(e){const t=t=>e().update(Oe(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Fe(e=32){if(Ee&&"function"==typeof Ee.getRandomValues)return Ee.getRandomValues(new Uint8Array(e));if(Ee&&"function"==typeof Ee.randomBytes)return Uint8Array.from(Ee.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const He=BigInt(0),qe=BigInt(1),Ve=BigInt(2),ze=BigInt(7),We=BigInt(256),je=BigInt(113),Ge=[],Je=[],Ye=[];for(let Up=0,Op=qe,Lp=1,Dp=0;Up<24;Up++){[Lp,Dp]=[Dp,(2*Lp+3*Dp)%5],Ge.push(2*(5*Dp+Lp)),Je.push((Up+1)*(Up+2)/2%64);let e=He;for(let t=0;t<7;t++)Op=(Op<<qe^(Op>>ze)*je)%We,Op&Ve&&(e^=qe<<(qe<</* @__PURE__ */BigInt(t))-qe);Ye.push(e)}const Xe=de(Ye,!0),Qe=Xe[0],Ke=Xe[1],Ze=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),_e=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class $e extends Le{constructor(e,t,n,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=o,this.rounds=i,Ce(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var r;this.state=new Uint8Array(200),this.state32=(r=this.state,new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4)))}clone(){return this.o()}keccak(){Ue(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let o=0;o<10;o++)n[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const t=(o+8)%10,i=(o+2)%10,r=n[i],a=n[i+1],s=Ze(r,a,1)^n[t],c=_e(r,a,1)^n[t+1];for(let n=0;n<50;n+=10)e[o+n]^=s,e[o+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){const o=Je[n],r=Ze(t,i,o),a=_e(t,i,o),s=Ge[n];t=e[s],i=e[s+1],e[s]=r,e[s+1]=a}for(let o=0;o<50;o+=10){for(let t=0;t<10;t++)n[t]=e[o+t];for(let t=0;t<10;t++)e[o+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=Qe[o],e[1]^=Ke[o]}Be(n)}(this.state32,this.rounds),Ue(this.state32),this.posOut=0,this.pos=0}update(e){Se(this),Ie(e=Oe(e));const{blockLen:t,state:n}=this,o=e.length;for(let i=0;i<o;){const r=Math.min(t-this.pos,o-i);for(let t=0;t<r;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:o}=this;e[n]^=t,128&t&&n===o-1&&this.keccak(),e[o-1]^=128,this.keccak()}writeInto(e){Se(this,!1),Ie(e),this.finish();const t=this.state,{blockLen:n}=this;for(let o=0,i=e.length;o<i;){this.posOut>=n&&this.keccak();const r=Math.min(n-this.posOut,i-o);e.set(t.subarray(this.posOut,this.posOut+r),o),this.posOut+=r,o+=r}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ce(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ne(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}o(e){const{blockLen:t,suffix:n,outputLen:o,rounds:i,enableXOF:r}=this;return e||(e=new $e(t,n,o,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=o,e.enableXOF=r,e.destroyed=this.destroyed,e}}const et=/* @__PURE__ */(()=>De(()=>new $e(136,1,32)))();function tt(e,t){const n=t||"hex",o=et(E(e,{strict:!1})?oe(e):e);return"bytes"===n?o:K(o)}function nt(e){return t=function(e){let t=!0,n="",o=0,i="",r=!1;for(let a=0;a<e.length;a++){const s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&o++,")"===s&&o--,t)if(0!==o)" "!==s?(i+=s,n+=s):","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){r=!0;break}}if(!r)throw new N("Unable to normalize signature.");return i}("string"==typeof(n=e)?n:"function"===(o=n).type?`function ${o.name}(${k(o.inputs)})${o.stateMutability&&"nonpayable"!==o.stateMutability?` ${o.stateMutability}`:""}${o.outputs?.length?` returns (${k(o.outputs)})`:""}`:"event"===o.type?`event ${o.name}(${k(o.inputs)})`:"error"===o.type?`error ${o.name}(${k(o.inputs)})`:"constructor"===o.type?`constructor(${k(o.inputs)})${"payable"===o.stateMutability?" payable":""}`:"fallback"===o.type?"fallback() external"+("payable"===o.stateMutability?" payable":""):"receive() external payable"),tt(oe(t));var t,n,o}const ot=nt;class it extends N{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class rt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}const at=/* @__PURE__ */new rt(8192),st=/^0x[a-fA-F0-9]{40}$/,ct=/* @__PURE__ */new rt(8192);function lt(e,t){const{strict:n=!0}=t??{},o=`${e}.${n}`;if(ct.has(o))return ct.get(o);const i=!(!st.test(e)||e.toLowerCase()!==e&&n&&function(e){if(at.has(`${e}.undefined`))return at.get(`${e}.undefined`);const t=e.substring(2).toLowerCase(),n=tt(se(t),"bytes"),o=t.split("");for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&o[r]&&(o[r]=o[r].toUpperCase()),(15&n[r>>1])>=8&&o[r+1]&&(o[r+1]=o[r+1].toUpperCase());const i=`0x${o.join("")}`;return at.set(`${e}.undefined`,i),i}(e)!==e);return ct.set(o,i),i}function ut(e){return"string"==typeof e[0]?dt(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let o=0;for(const i of e)n.set(i,o),o+=i.length;return n}(e)}function dt(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function ht(e,t,n,{strict:o}={}){return E(e,{strict:!1})?function(e,t,n,{strict:o}={}){ft(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;return o&&pt(i,t,n),i}(e,t,n,{strict:o}):function(e,t,n,{strict:o}={}){ft(e,t);const i=e.slice(t,n);return o&&pt(i,t,n),i}(e,t,n,{strict:o})}function ft(e,t){if("number"==typeof t&&t>0&&t>C(e)-1)throw new H({offset:t,position:"start",size:C(e)})}function pt(e,t,n){if("number"==typeof t&&"number"==typeof n&&C(e)!==n-t)throw new H({offset:n,position:"end",size:C(e)})}const mt=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function wt(e,t){if(e.length!==t.length)throw new P({expectedLength:e.length,givenLength:t.length});const n=function({params:e,values:t}){const n=[];for(let o=0;o<e.length;o++)n.push(gt({param:e[o],value:t[o]}));return n}({params:e,values:t}),o=bt(n);return 0===o.length?"0x":o}function gt({param:e,value:t}){const n=function(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(e.type);if(n){const[o,i]=n;return function(e,{length:t,param:n}){const o=null===t;if(!Array.isArray(e))throw new D(e);if(!o&&e.length!==t)throw new M({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const r=[];for(let a=0;a<e.length;a++){const t=gt({param:n,value:e[a]});t.dynamic&&(i=!0),r.push(t)}if(o||i){const e=bt(r);if(o){const t=$(r.length,{size:32});return{dynamic:!0,encoded:r.length>0?ut([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:ut(r.map(({encoded:e})=>e))}}(t,{length:o,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:t}){let n=!1;const o=[];for(let i=0;i<t.components.length;i++){const r=t.components[i],a=gt({param:r,value:e[Array.isArray(e)?i:r.name]});o.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?bt(o):ut(o.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!lt(e))throw new it({address:e});return{dynamic:!1,encoded:z(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new N(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:z(Z(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int"),[,,o="256"]=mt.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){const o=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-o-1n:0n;if(e>o||e<i)throw new W({max:o.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:$(e,{size:32,signed:t})}}(t,{signed:n,size:Number(o)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,n]=t.type.split("bytes"),o=C(e);if(!n){let t=e;return o%32!=0&&(t=z(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:ut([z($(o,{size:32})),t])}}if(o!==Number.parseInt(n,10))throw new R({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:z(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=te(e),n=Math.ceil(C(t)/32),o=[];for(let i=0;i<n;i++)o.push(z(ht(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:ut([z($(C(t),{size:32})),...o])}}(t);throw new L(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function bt(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:C(o)}const n=[],o=[];let i=0;for(let r=0;r<e.length;r++){const{dynamic:a,encoded:s}=e[r];a?(n.push($(t+i,{size:32})),o.push(s),i+=C(s)):n.push(s)}return ut([...n,...o])}const yt=e=>ht(nt(e),0,4);function vt(e,t){const n=typeof e,o=t.type;switch(o){case"address":return lt(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===o&&"components"in t?Object.values(t.components).every((t,o)=>"object"===n&&vt(Object.values(e)[o],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)&&Array.isArray(e)&&e.every(e=>vt(e,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")}))}}function At(e,t,n){for(const o in e){const i=e[o],r=t[o];if("tuple"===i.type&&"tuple"===r.type&&"components"in i&&"components"in r)return At(i.components,r.components,n[o]);const a=[i.type,r.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&lt(n[o],{strict:!1}))())return a}}function kt(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const xt="/docs/contract/encodeFunctionData";function Tt(e){const{args:t}=e,{abi:n,functionName:o}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){const{abi:t,args:n,functionName:o}=e;let i=t[0];if(o){const e=function(e){const{abi:t,args:n=[],name:o}=e,i=E(o,{strict:!1}),r=t.filter(e=>i?"function"===e.type?yt(e)===o:"event"===e.type&&ot(e)===o:"name"in e&&e.name===o);if(0===r.length)return;if(1===r.length)return r[0];let a;for(const s of r)if("inputs"in s)if(n&&0!==n.length){if(s.inputs&&0!==s.inputs.length&&s.inputs.length===n.length&&n.every((e,t)=>{const n="inputs"in s&&s.inputs[t];return!!n&&vt(e,n)})){if(a&&"inputs"in a&&a.inputs){const e=At(s.inputs,a.inputs,n);if(e)throw new O({abiItem:s,type:e[0]},{abiItem:a,type:e[1]})}a=s}}else if(!s.inputs||0===s.inputs.length)return s;return a||r[0]}({abi:t,args:n,name:o});if(!e)throw new U(o,{docsPath:xt});i=e}if("function"!==i.type)throw new U(void 0,{docsPath:xt});return{abi:[i],functionName:yt(x(i))}}(e),i=n[0];return dt([o,("inputs"in i&&i.inputs?wt(i.inputs,t??[]):void 0)??"0x"])}class Et extends N{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Ct extends N{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class It extends N{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const St={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:/* @__PURE__ */new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new It({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Ct({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Et({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Et({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this.i();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this.i();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this.i();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.i();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.i();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.i();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},i(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Nt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(St);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=/* @__PURE__ */new Map,n.recursiveReadLimit=t,n}const Bt={gwei:9,wei:18},Mt={ether:-9,wei:9};function Rt(e,t){let n=e.toString();const o=n.startsWith("-");o&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,r]=[n.slice(0,n.length-t),n.slice(n.length-t)];return r=r.replace(/(0+)$/,""),`${o?"-":""}${i||"0"}${r?`.${r}`:""}`}function Pt(e,t="wei"){return Rt(e,Bt[t])}function Ut(e,t="wei"){return Rt(e,Mt[t])}function Ot(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}\n`,"")}function Lt(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class Dt extends N{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Ft extends N{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Lt(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Ht extends N{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class qt extends N{constructor(e,{account:t,docsPath:n,chain:o,data:i,gas:r,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d,stateOverride:h}){const f=t?kt(t):void 0;let p=Lt({from:f?.address,to:u,value:void 0!==d&&`${Pt(d)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:r,gasPrice:void 0!==a&&`${Ut(a)} gwei`,maxFeePerGas:void 0!==s&&`${Ut(s)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Ut(c)} gwei`,nonce:l});h&&(p+=`\n${function(e){return e.reduce((e,{address:t,...n})=>{let o=`${e} ${t}:\n`;return n.nonce&&(o+=` nonce: ${n.nonce}\n`),n.balance&&(o+=` balance: ${n.balance}\n`),n.code&&(o+=` code: ${n.code}\n`),n.state&&(o+=" state:\n",o+=Ot(n.state)),n.stateDiff&&(o+=" stateDiff:\n",o+=Ot(n.stateDiff)),o}," State Override:\n").slice(0,-1)}(h)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}function Vt(e,t="hex"){const n=zt(e),o=Nt(new Uint8Array(n.length));return n.encode(o),"hex"===t?_(o.bytes):o.bytes}function zt(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=Wt(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),1===n?o.pushUint8(t):2===n?o.pushUint16(t):3===n?o.pushUint24(t):o.pushUint32(t));for(const{encode:t}of e)t(o)}}}(e.map(e=>zt(e))):function(e){const t="string"==typeof e?ae(e):e,n=Wt(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function Wt(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new N("Length is too large.")}class jt extends N{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(jt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(jt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Gt extends N{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ut(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Gt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Jt extends N{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ut(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Jt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Yt extends N{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Yt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Xt extends N{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(Xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Qt extends N{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Qt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Kt extends N{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Kt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Zt extends N{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Zt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class _t extends N{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(_t,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class $t extends N{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty($t,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class en extends N{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ut(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ut(n)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(en,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class tn extends N{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function nn(e,{format:t}){if(!t)return{};const n={};return function t(o){const i=Object.keys(o);for(const r of i)r in e&&(n[r]=e[r]),o[r]&&"object"==typeof o[r]&&!Array.isArray(o[r])&&t(o[r])}(t(e||{})),n}function on(e,t){return({exclude:n,format:o})=>({exclude:n,format:(e,i)=>{const r=t(e,i);if(n)for(const t of n)delete r[t];return{...r,...o(e,i)}},type:e})}const rn={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function an(e,t){const n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?$(BigInt(e.r)):e.r,s:e.s?$(BigInt(e.s)):e.s,chainId:$(e.chainId),nonce:$(e.nonce),...void 0!==e.yParity?{yParity:$(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:$(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>_(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=$(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=$(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=$(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=$(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=$(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=$(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=rn[e.type]),void 0!==e.value&&(n.value=$(e.value)),n}const sn=2n**256n-1n,cn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ln(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?X(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?X(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?cn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const un=/* @__PURE__ */on("transaction",ln);function dn(e,t){const n=(e.transactions??[]).map(e=>"string"==typeof e?e:ln(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const hn=/* @__PURE__ */on("block",dn);function fn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>ae(e)):e.blobs,i=[];for(const r of o)i.push(Uint8Array.from(t.blobToKzgCommitment(r)));return"bytes"===n?i:i.map(e=>_(e))}function pn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>ae(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>ae(e)):e.commitments,r=[];for(let a=0;a<o.length;a++){const e=o[a],n=i[a];r.push(Uint8Array.from(t.computeBlobKzgProof(e,n)))}return"bytes"===n?r:r.map(e=>_(e))}function mn(e,t,n){return e&t^~e&n}function wn(e,t,n){return e&t^e&n^t&n}class gn extends Le{constructor(e,t,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(e),this.view=Me(this.buffer)}update(e){Se(this),Ie(e=Oe(e));const{view:t,buffer:n,blockLen:o}=this,i=e.length;for(let r=0;r<i;){const a=Math.min(o-this.pos,i-r);if(a===o){const t=Me(e);for(;o<=i-r;r+=o)this.process(t,r);continue}n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Se(this),Ne(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:o,isLE:i}=this;let{pos:r}=this;t[r++]=128,Be(this.buffer.subarray(r)),this.padOffset>o-r&&(this.process(n,0),r=0);for(let u=r;u<o;u++)t[u]=0;!function(e,t,n,o){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,o);const i=BigInt(32),r=BigInt(4294967295),a=Number(n>>i&r),s=Number(n&r),c=o?4:0,l=o?0:4;e.setUint32(t+c,a,o),e.setUint32(t+l,s,o)}(n,o-8,BigInt(8*this.length),i),this.process(n,0);const a=Me(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=s/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<c;u++)a.setUint32(4*u,l[u],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}o(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:o,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=o,e.pos=a,o%t&&e.buffer.set(n),e}clone(){return this.o()}}const bn=/* @__PURE__ */Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yn=/* @__PURE__ */Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),vn=/* @__PURE__ */Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),An=/* @__PURE__ */new Uint32Array(64);class kn extends gn{constructor(e=32){super(64,e,8,!1),this.A=0|bn[0],this.B=0|bn[1],this.C=0|bn[2],this.D=0|bn[3],this.E=0|bn[4],this.F=0|bn[5],this.G=0|bn[6],this.H=0|bn[7]}get(){const{A:e,B:t,C:n,D:o,E:i,F:r,G:a,H:s}=this;return[e,t,n,o,i,r,a,s]}set(e,t,n,o,i,r,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|r,this.G=0|a,this.H=0|s}process(e,t){for(let u=0;u<16;u++,t+=4)An[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const e=An[u-15],t=An[u-2],n=Re(e,7)^Re(e,18)^e>>>3,o=Re(t,17)^Re(t,19)^t>>>10;An[u]=o+An[u-7]+n+An[u-16]|0}let{A:n,B:o,C:i,D:r,E:a,F:s,G:c,H:l}=this;for(let u=0;u<64;u++){const e=l+(Re(a,6)^Re(a,11)^Re(a,25))+mn(a,s,c)+vn[u]+An[u]|0,t=(Re(n,2)^Re(n,13)^Re(n,22))+wn(n,o,i)|0;l=c,c=s,s=a,a=r+e|0,r=i,i=o,o=n,n=e+t|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,o,i,r,a,s,c,l)}roundClean(){Be(An)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}}const xn=/* @__PURE__ */(()=>de(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),Tn=/* @__PURE__ */(()=>xn[0])(),En=/* @__PURE__ */(()=>xn[1])(),Cn=/* @__PURE__ */new Uint32Array(80),In=/* @__PURE__ */new Uint32Array(80);class Sn extends gn{constructor(e=64){super(128,e,16,!1),this.Ah=0|yn[0],this.Al=0|yn[1],this.Bh=0|yn[2],this.Bl=0|yn[3],this.Ch=0|yn[4],this.Cl=0|yn[5],this.Dh=0|yn[6],this.Dl=0|yn[7],this.Eh=0|yn[8],this.El=0|yn[9],this.Fh=0|yn[10],this.Fl=0|yn[11],this.Gh=0|yn[12],this.Gl=0|yn[13],this.Hh=0|yn[14],this.Hl=0|yn[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:o,Ch:i,Cl:r,Dh:a,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:m}=this;return[e,t,n,o,i,r,a,s,c,l,u,d,h,f,p,m]}set(e,t,n,o,i,r,a,s,c,l,u,d,h,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|o,this.Ch=0|i,this.Cl=0|r,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let b=0;b<16;b++,t+=4)Cn[b]=e.getUint32(t),In[b]=e.getUint32(t+=4);for(let b=16;b<80;b++){const e=0|Cn[b-15],t=0|In[b-15],n=pe(e,t,1)^pe(e,t,8)^he(e,0,7),o=me(e,t,1)^me(e,t,8)^fe(e,t,7),i=0|Cn[b-2],r=0|In[b-2],a=pe(i,r,19)^we(i,r,61)^he(i,0,6),s=me(i,r,19)^ge(i,r,61)^fe(i,r,6),c=Ae(o,s,In[b-7],In[b-16]),l=ke(c,n,a,Cn[b-7],Cn[b-16]);Cn[b]=0|l,In[b]=0|c}let{Ah:n,Al:o,Bh:i,Bl:r,Ch:a,Cl:s,Dh:c,Dl:l,Eh:u,El:d,Fh:h,Fl:f,Gh:p,Gl:m,Hh:w,Hl:g}=this;for(let b=0;b<80;b++){const e=pe(u,d,14)^pe(u,d,18)^we(u,d,41),t=me(u,d,14)^me(u,d,18)^ge(u,d,41),y=u&h^~u&p,v=xe(g,t,d&f^~d&m,En[b],In[b]),A=Te(v,w,e,y,Tn[b],Cn[b]),k=0|v,x=pe(n,o,28)^we(n,o,34)^we(n,o,39),T=me(n,o,28)^ge(n,o,34)^ge(n,o,39),E=n&i^n&a^i&a,C=o&r^o&s^r&s;w=0|p,g=0|m,p=0|h,m=0|f,h=0|u,f=0|d,({h:u,l:d}=be(0|c,0|l,0|A,0|k)),c=0|a,l=0|s,a=0|i,s=0|r,i=0|n,r=0|o;const I=ye(k,T,C);n=ve(I,A,x,E),o=0|I}({h:n,l:o}=be(0|this.Ah,0|this.Al,0|n,0|o)),({h:i,l:r}=be(0|this.Bh,0|this.Bl,0|i,0|r)),({h:a,l:s}=be(0|this.Ch,0|this.Cl,0|a,0|s)),({h:c,l:l}=be(0|this.Dh,0|this.Dl,0|c,0|l)),({h:u,l:d}=be(0|this.Eh,0|this.El,0|u,0|d)),({h:h,l:f}=be(0|this.Fh,0|this.Fl,0|h,0|f)),({h:p,l:m}=be(0|this.Gh,0|this.Gl,0|p,0|m)),({h:w,l:g}=be(0|this.Hh,0|this.Hl,0|w,0|g)),this.set(n,o,i,r,a,s,c,l,u,d,h,f,p,m,w,g)}roundClean(){Be(Cn,In)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Nn=/* @__PURE__ */De(()=>new kn),Bn=/* @__PURE__ */De(()=>new Sn),Mn=Nn;function Rn(e){const{commitment:t,version:n=1}=e,o=e.to??("string"==typeof t?"hex":"bytes"),i=Mn(E(r=t,{strict:!1})?oe(r):r);var r;return i.set([n],0),"bytes"===o?i:_(i)}const Pn=761855;class Un extends N{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class On extends N{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Ln extends N{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class Dn extends N{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}const Fn=/* @__PURE__ */BigInt(0),Hn=/* @__PURE__ */BigInt(1);function qn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function Vn(e){if(!qn(e))throw new Error("Uint8Array expected")}function zn(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)}function Wn(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function jn(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?Fn:BigInt("0x"+e)}const Gn="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Jn=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Yn(e){if(Vn(e),Gn)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Jn[e[n]];return t}function Xn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Qn(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Gn)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(n);for(let i=0,r=0;i<n;i++,r+=2){const t=Xn(e.charCodeAt(r)),n=Xn(e.charCodeAt(r+1));if(void 0===t||void 0===n){const t=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+r)}o[i]=16*t+n}return o}function Kn(e){return jn(Yn(e))}function Zn(e){return Vn(e),jn(Yn(Uint8Array.from(e).reverse()))}function _n(e,t){return Qn(e.toString(16).padStart(2*t,"0"))}function $n(e,t){return _n(e,t).reverse()}function eo(e,t,n){let o;if("string"==typeof t)try{o=Qn(t)}catch(r){throw new Error(e+" must be hex string or Uint8Array, cause: "+r)}else{if(!qn(t))throw new Error(e+" must be hex string or Uint8Array");o=Uint8Array.from(t)}const i=o.length;if("number"==typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return o}function to(...e){let t=0;for(let o=0;o<e.length;o++){const n=e[o];Vn(n),t+=n.length}const n=new Uint8Array(t);for(let o=0,i=0;o<e.length;o++){const t=e[o];n.set(t,i),i+=t.length}return n}const no=e=>"bigint"==typeof e&&Fn<=e;function oo(e,t,n){return no(e)&&no(t)&&no(n)&&t<=e&&e<n}function io(e,t,n,o){if(!oo(t,n,o))throw new Error("expected valid "+e+": "+n+" <= n < "+o+", got "+t)}const ro=e=>(Hn<<BigInt(e))-Hn,ao=e=>new Uint8Array(e),so=e=>Uint8Array.from(e),co={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||qn(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function lo(e,t,n={}){const o=(t,n,o)=>{const i=co[n];if("function"!=typeof i)throw new Error("invalid validator function");const r=e[t];if(!(o&&void 0===r||i(r,e)))throw new Error("param "+String(t)+" is invalid. Expected "+n+", got "+r)};for(const[i,r]of Object.entries(t))o(i,r,!1);for(const[i,r]of Object.entries(n))o(i,r,!0);return e}function uo(e){const t=/* @__PURE__ */new WeakMap;return(n,...o)=>{const i=t.get(n);if(void 0!==i)return i;const r=e(n,...o);return t.set(n,r),r}}class ho extends N{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class fo extends N{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}const po={"0x0":"reverted","0x1":"success"};function mo(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?X(e.transactionIndex):null,status:e.status?po[e.status]:null,type:e.type?cn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const wo=/* @__PURE__ */on("transactionReceipt",mo);function go(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:o,to:i}=e;if(t<=0)throw new ho({chainId:t});if(i&&!lt(i))throw new it({address:i});if(o&&o>sn)throw new Gt({maxFeePerGas:o});if(n&&o&&n>o)throw new en({maxFeePerGas:o,maxPriorityFeePerGas:n})}function bo(e){if(!e||0===e.length)return[];const t=[];for(let n=0;n<e.length;n++){const{address:o,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new Ht({storageKey:i[e]});if(!lt(o,{strict:!1}))throw new it({address:o});t.push([o,i])}return t}function yo(e,t){const n=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new Ft({transaction:e})}(e);return"eip1559"===n?function(e,t){const{chainId:n,gas:o,nonce:i,to:r,value:a,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:l,data:u}=e;go(e);const d=bo(l);return dt(["0x02",Vt([$(n),i?$(i):"0x",c?$(c):"0x",s?$(s):"0x",o?$(o):"0x",r??"0x",a?$(a):"0x",u??"0x",d,...vo(e,t)])])}(e,t):"eip2930"===n?function(e,t){const{chainId:n,gas:o,data:i,nonce:r,to:a,value:s,accessList:c,gasPrice:l}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:o,maxFeePerGas:i,to:r}=e;if(t<=0)throw new ho({chainId:t});if(r&&!lt(r))throw new it({address:r});if(n||i)throw new N("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>sn)throw new Gt({maxFeePerGas:o})}(e);const u=bo(c);return dt(["0x01",Vt([$(n),r?$(r):"0x",l?$(l):"0x",o?$(o):"0x",a??"0x",s?$(s):"0x",i??"0x",u,...vo(e,t)])])}(e,t):"eip4844"===n?function(e,t){const{chainId:n,gas:o,nonce:i,to:r,value:a,maxFeePerBlobGas:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new On;for(const e of t){const t=C(e),n=X(ht(e,0,1));if(32!==t)throw new Ln({hash:e,size:t});if(1!==n)throw new Dn({hash:e,version:n})}}go(e)}(e);let h=e.blobVersionedHashes,f=e.sidecars;if(e.blobs&&(void 0===h||void 0===f)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>_(e)),n=e.kzg,o=fn({blobs:t,kzg:n});void 0===h&&(h=function(e){const{commitments:t,version:n}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(const r of t)i.push(Rn({commitment:r,to:o,version:n}));return i}({commitments:o})),void 0===f&&(f=function(e){const{data:t,kzg:n,to:o}=e,i=e.blobs??function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?ae(e.data):e.data,o=C(n);if(!o)throw new On;if(o>Pn)throw new Un({maxSize:Pn,size:o});const i=[];let r=!0,a=0;for(;r;){const e=Nt(new Uint8Array(131072));let t=0;for(;t<4096;){const o=n.slice(a,a+31);if(e.pushByte(0),e.pushBytes(o),o.length<31){e.pushByte(128),r=!1;break}t++,a+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>_(e.bytes))}({data:t,to:o}),r=e.commitments??fn({blobs:i,kzg:n,to:o}),a=e.proofs??pn({blobs:i,commitments:r,kzg:n,to:o}),s=[];for(let c=0;c<i.length;c++)s.push({blob:i[c],commitment:r[c],proof:a[c]});return s}({blobs:t,commitments:o,proofs:pn({blobs:t,commitments:o,kzg:n})}))}const p=bo(u),m=[$(n),i?$(i):"0x",l?$(l):"0x",c?$(c):"0x",o?$(o):"0x",r??"0x",a?$(a):"0x",d??"0x",p,s?$(s):"0x",h??[],...vo(e,t)],w=[],g=[],b=[];if(f)for(let y=0;y<f.length;y++){const{blob:e,commitment:t,proof:n}=f[y];w.push(e),g.push(t),b.push(n)}return dt(["0x03",Vt(f?[m,w,g,b]:m)])}(e,t):"eip7702"===n?function(e,t){const{authorizationList:n,chainId:o,gas:i,nonce:r,to:a,value:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:e}=n,t=n.address;if(!lt(t))throw new it({address:t});if(e<0)throw new ho({chainId:e})}go(e)}(e);const h=bo(u),f=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const{chainId:e,nonce:o,...i}=n,r=n.address;t.push([e?K(e):"0x",r,o?K(o):"0x",...vo({},i)])}return t}(n);return dt(["0x04",Vt([$(o),r?$(r):"0x",l?$(l):"0x",c?$(c):"0x",i?$(i):"0x",a??"0x",s?$(s):"0x",d??"0x",h,f,...vo(e,t)])])}(e,t):function(e,t){const{chainId:n=0,gas:o,data:i,nonce:r,to:a,value:s,gasPrice:c}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:o,maxFeePerGas:i,to:r}=e;if(r&&!lt(r))throw new it({address:r});if(void 0!==t&&t<=0)throw new ho({chainId:t});if(n||i)throw new N("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>sn)throw new Gt({maxFeePerGas:o})}(e);let l=[r?$(r):"0x",c?$(c):"0x",o?$(o):"0x",a??"0x",s?$(s):"0x",i??"0x"];if(t){const e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new Dt({v:t.v});return e})(),o=G(t.r),i=G(t.s);l=[...l,$(e),"0x00"===o?"0x":o,"0x00"===i?"0x":i]}else n>0&&(l=[...l,$(n),"0x","0x"]);return Vt(l)}(e,t)}function vo(e,t){const n=t??e,{v:o,yParity:i}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===o&&void 0===i)return[];const r=G(n.r),a=G(n.s);return["number"==typeof i?i?$(1):"0x":0n===o?"0x":1n===o?$(1):27n===o?"0x":$(1),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}function Ao(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{const o="function"==typeof n?n(t):n,i={...t,...o};return Object.assign(i,{extend:e(i)})}}(t)})}class ko extends Le{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");Ce(e.outputLen),Ce(e.blockLen)}(e);const n=Oe(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?e.create().update(n).digest():n);for(let r=0;r<i.length;r++)i[r]^=54;this.iHash.update(i),this.oHash=e.create();for(let r=0;r<i.length;r++)i[r]^=106;this.oHash.update(i),Be(i)}update(e){return Se(this),this.iHash.update(e),this}digestInto(e){Se(this),Ie(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}o(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:o,destroyed:i,blockLen:r,outputLen:a}=this;return e.finished=o,e.destroyed=i,e.blockLen=r,e.outputLen=a,e.oHash=t.o(e.oHash),e.iHash=n.o(e.iHash),e}clone(){return this.o()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const xo=(e,t,n)=>new ko(e,t).update(n).digest();xo.create=(e,t)=>new ko(e,t);const To=BigInt(0),Eo=BigInt(1),Co=/* @__PURE__ */BigInt(2),Io=/* @__PURE__ */BigInt(3),So=/* @__PURE__ */BigInt(4),No=/* @__PURE__ */BigInt(5),Bo=/* @__PURE__ */BigInt(8);function Mo(e,t){const n=e%t;return n>=To?n:t+n}function Ro(e,t,n){let o=e;for(;t-- >To;)o*=o,o%=n;return o}function Po(e,t){if(e===To)throw new Error("invert: expected non-zero number");if(t<=To)throw new Error("invert: expected positive modulus, got "+t);let n=Mo(e,t),o=t,i=To,r=Eo;for(;n!==To;){const e=o%n,t=i-r*(o/n);o=n,n=e,i=r,r=t}if(o!==Eo)throw new Error("invert: does not exist");return Mo(i,t)}function Uo(e,t){const n=(e.ORDER+Eo)/So,o=e.pow(t,n);if(!e.eql(e.sqr(o),t))throw new Error("Cannot find square root");return o}function Oo(e,t){const n=(e.ORDER-No)/Bo,o=e.mul(t,Co),i=e.pow(o,n),r=e.mul(t,i),a=e.mul(e.mul(r,Co),i),s=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),t))throw new Error("Cannot find square root");return s}const Lo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Do(e,t,n=!1){const o=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(o[i]=t,e.mul(t,n)),e.ONE),r=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(o[i]=e.mul(t,o[i]),e.mul(t,n)),r),o}function Fo(e,t){const n=(e.ORDER-Eo)/Co,o=e.pow(t,n),i=e.eql(o,e.ONE),r=e.eql(o,e.ZERO),a=e.eql(o,e.neg(e.ONE));if(!i&&!r&&!a)throw new Error("invalid Legendre symbol result");return i?1:r?0:-1}function Ho(e,t){void 0!==t&&Ce(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function qo(e,t,n=!1,o={}){if(e<=To)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:r}=Ho(e,t);if(r>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:r,MASK:ro(i),ZERO:To,ONE:Eo,create:t=>Mo(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return To<=t&&t<e},is0:e=>e===To,isOdd:e=>(e&Eo)===Eo,neg:t=>Mo(-t,e),eql:(e,t)=>e===t,sqr:t=>Mo(t*t,e),add:(t,n)=>Mo(t+n,e),sub:(t,n)=>Mo(t-n,e),mul:(t,n)=>Mo(t*n,e),pow:(e,t)=>function(e,t,n){if(n<To)throw new Error("invalid exponent, negatives unsupported");if(n===To)return e.ONE;if(n===Eo)return t;let o=e.ONE,i=t;for(;n>To;)n&Eo&&(o=e.mul(o,i)),i=e.sqr(i),n>>=Eo;return o}(s,e,t),div:(t,n)=>Mo(t*Po(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Po(t,e),sqrt:o.sqrt||(t=>{return a||(a=(n=e)%So===Io?Uo:n%Bo===No?Oo:function(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Eo,n=0;for(;t%Co===To;)t/=Co,n++;let o=Co;const i=qo(e);for(;1===Fo(i,o);)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return Uo;let r=i.pow(o,t);const a=(t+Eo)/Co;return function(e,o){if(e.is0(o))return o;if(1!==Fo(e,o))throw new Error("Cannot find square root");let i=n,s=e.mul(e.ONE,r),c=e.pow(o,t),l=e.pow(o,a);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const o=Eo<<BigInt(i-t-1),r=e.pow(s,o);i=t,s=e.sqr(r),c=e.mul(c,s),l=e.mul(l,r)}return l}}(n)),a(s,t);var n}),toBytes:e=>n?$n(e,r):_n(e,r),fromBytes:e=>{if(e.length!==r)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+e.length);return n?Zn(e):Kn(e)},invertBatch:e=>Do(s,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(s)}function Vo(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function zo(e){const t=Vo(e);return t+Math.ceil(t/2)}const Wo=BigInt(0),jo=BigInt(1);function Go(e,t){const n=t.negate();return e?n:t}function Jo(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Yo(e,t){Jo(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:ro(e),maxNumber:n,shiftBy:BigInt(e)}}function Xo(e,t,n){const{windowSize:o,mask:i,maxNumber:r,shiftBy:a}=n;let s=Number(e&i),c=e>>a;s>o&&(s-=r,c+=jo);const l=t*o;return{nextN:c,offset:l+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:l}}const Qo=/* @__PURE__ */new WeakMap,Ko=/* @__PURE__ */new WeakMap;function Zo(e){return Ko.get(e)||1}function _o(e,t){return{constTimeNegate:Go,hasPrecomputes:e=>1!==Zo(e),unsafeLadder(t,n,o=e.ZERO){let i=t;for(;n>Wo;)n&jo&&(o=o.add(i)),i=i.double(),n>>=jo;return o},precomputeWindow(e,n){const{windows:o,windowSize:i}=Yo(n,t),r=[];let a=e,s=a;for(let t=0;t<o;t++){s=a,r.push(s);for(let e=1;e<i;e++)s=s.add(a),r.push(s);a=s.double()}return r},wNAF(n,o,i){let r=e.ZERO,a=e.BASE;const s=Yo(n,t);for(let e=0;e<s.windows;e++){const{nextN:t,offset:n,isZero:c,isNeg:l,isNegF:u,offsetF:d}=Xo(i,e,s);i=t,c?a=a.add(Go(u,o[d])):r=r.add(Go(l,o[n]))}return{p:r,f:a}},wNAFUnsafe(n,o,i,r=e.ZERO){const a=Yo(n,t);for(let e=0;e<a.windows&&i!==Wo;e++){const{nextN:t,offset:n,isZero:s,isNeg:c}=Xo(i,e,a);if(i=t,!s){const e=o[n];r=r.add(c?e.negate():e)}}return r},getPrecomputes(e,t,n){let o=Qo.get(t);return o||(o=this.precomputeWindow(t,e),1!==e&&Qo.set(t,n(o))),o},wNAFCached(e,t,n){const o=Zo(e);return this.wNAF(o,this.getPrecomputes(o,e,n),t)},wNAFCachedUnsafe(e,t,n,o){const i=Zo(e);return 1===i?this.unsafeLadder(e,t,o):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,o)},setWindowSize(e,n){Jo(n,t),Ko.set(e,n),Qo.delete(e)}}}function $o(e,t,n,o){!function(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}(o,t);const i=n.length,r=o.length;if(i!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=function(e){let t;for(t=0;e>Fn;e>>=Hn,t+=1);return t}(BigInt(i));let c=1;s>12?c=s-3:s>4?c=s-2:s>0&&(c=2);const l=ro(c),u=new Array(Number(l)+1).fill(a);let d=a;for(let h=Math.floor((t.BITS-1)/c)*c;h>=0;h-=c){u.fill(a);for(let t=0;t<r;t++){const e=o[t],i=Number(e>>BigInt(h)&l);u[i]=u[i].add(n[t])}let e=a;for(let t=u.length-1,n=a;t>0;t--)n=n.add(u[t]),e=e.add(n);if(d=d.add(e),0!==h)for(let t=0;t<c;t++)d=d.double()}return d}function ei(e){return lo(e.Fp,Lo.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),lo(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ho(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function ti(e){void 0!==e.lowS&&zn("lowS",e.lowS),void 0!==e.prehash&&zn("prehash",e.prehash)}class ni extends Error{constructor(e=""){super(e)}}const oi={Err:ni,u:{encode:(e,t)=>{const{Err:n}=oi;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const o=t.length/2,i=Wn(o);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const r=o>127?Wn(i.length/2|128):"";return Wn(e)+r+i+t},decode(e,t){const{Err:n}=oi;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[o++];let r=0;if(128&i){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const a=t.subarray(o,o+e);if(a.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===a[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of a)r=r<<8|t;if(o+=e,r<128)throw new n("tlv.decode(long): not minimal encoding")}else r=i;const a=t.subarray(o,o+r);if(a.length!==r)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(o+r)}}},T:{encode(e){const{Err:t}=oi;if(e<ri)throw new t("integer: negative integers are not allowed");let n=Wn(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=oi;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return Kn(e)}},toSig(e){const{Err:t,T:n,u:o}=oi,i=eo("signature",e),{v:r,l:a}=o.decode(48,i);if(a.length)throw new t("invalid signature: left bytes after parsing");const{v:s,l:c}=o.decode(2,r),{v:l,l:u}=o.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){const{u:t,T:n}=oi,o=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,o)}};function ii(e,t){return Yn(_n(e,t))}const ri=BigInt(0),ai=BigInt(1);BigInt(2);const si=BigInt(3),ci=BigInt(4);function li(e){const t=function(e){const t=ei(e);return lo(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:o,nByteLength:i,nBitLength:r}=t,a=n.BYTES+1,s=2*n.BYTES+1;function c(e){return Mo(e,o)}function l(e){return Po(e,o)}const{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:h,isWithinCurveOrder:f}=function(e){const t=function(e){const t=ei(e);lo(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:o,a:i}=t;if(n){if(!o.eql(i,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:n}=t,o=qo(t.n,t.nBitLength),i=t.toBytes||((e,t,o)=>{const i=t.toAffine();return to(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),r=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function a(e){const{a:o,b:i}=t,r=n.sqr(e),a=n.mul(r,e);return n.add(n.add(a,n.mul(e,o)),i)}function s(e,t){const o=n.sqr(t),i=a(e);return n.eql(o,i)}if(!s(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(t.a,si),ci),l=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(c,l)))throw new Error("bad curve params: a or b");function u(e){const{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:i,n:r}=t;if(n&&"bigint"!=typeof e){if(qn(e)&&(e=Yn(e)),"string"!=typeof e||!n.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*o,"0")}let a;try{a="bigint"==typeof e?e:Kn(eo("private key",e,o))}catch(s){throw new Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return i&&(a=Mo(a,r)),io("private key",a,ai,r),a}function d(e){if(!(e instanceof p))throw new Error("ProjectivePoint expected")}const h=uo((e,t)=>{const{px:o,py:i,pz:r}=e;if(n.eql(r,n.ONE))return{x:o,y:i};const a=e.is0();null==t&&(t=a?n.ONE:n.inv(r));const s=n.mul(o,t),c=n.mul(i,t),l=n.mul(r,t);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),f=uo(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:o,y:i}=e.toAffine();if(!n.isValid(o)||!n.isValid(i))throw new Error("bad point: x or y not FE");if(!s(o,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,t,o){if(null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t)||n.is0(t))throw new Error("y required");if(null==o||!n.isValid(o))throw new Error("z required");this.px=e,this.py=t,this.pz=o,Object.freeze(this)}static fromAffine(e){const{x:t,y:o}=e||{};if(!e||!n.isValid(t)||!n.isValid(o))throw new Error("invalid affine point");if(e instanceof p)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(o)?p.ZERO:new p(t,o,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=Do(n,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(p.fromAffine)}static fromHex(e){const t=p.fromAffine(r(eo("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(u(e))}static msm(e,t){return $o(p,o,e,t)}I(e){g.setWindowSize(this,e)}assertValidity(){f(this)}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){d(e);const{px:t,py:o,pz:i}=this,{px:r,py:a,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(r,i)),l=n.eql(n.mul(o,s),n.mul(a,i));return c&&l}negate(){return new p(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:o}=t,i=n.mul(o,si),{px:r,py:a,pz:s}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(r,r),h=n.mul(a,a),f=n.mul(s,s),m=n.mul(r,a);return m=n.add(m,m),u=n.mul(r,s),u=n.add(u,u),c=n.mul(e,u),l=n.mul(i,f),l=n.add(c,l),c=n.sub(h,l),l=n.add(h,l),l=n.mul(c,l),c=n.mul(m,c),u=n.mul(i,u),f=n.mul(e,f),m=n.sub(d,f),m=n.mul(e,m),m=n.add(m,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,f),d=n.mul(d,m),l=n.add(l,d),f=n.mul(a,s),f=n.add(f,f),d=n.mul(f,m),c=n.sub(c,d),u=n.mul(f,h),u=n.add(u,u),u=n.add(u,u),new p(c,l,u)}add(e){d(e);const{px:o,py:i,pz:r}=this,{px:a,py:s,pz:c}=e;let l=n.ZERO,u=n.ZERO,h=n.ZERO;const f=t.a,m=n.mul(t.b,si);let w=n.mul(o,a),g=n.mul(i,s),b=n.mul(r,c),y=n.add(o,i),v=n.add(a,s);y=n.mul(y,v),v=n.add(w,g),y=n.sub(y,v),v=n.add(o,r);let A=n.add(a,c);return v=n.mul(v,A),A=n.add(w,b),v=n.sub(v,A),A=n.add(i,r),l=n.add(s,c),A=n.mul(A,l),l=n.add(g,b),A=n.sub(A,l),h=n.mul(f,v),l=n.mul(m,b),h=n.add(l,h),l=n.sub(g,h),h=n.add(g,h),u=n.mul(l,h),g=n.add(w,w),g=n.add(g,w),b=n.mul(f,b),v=n.mul(m,v),g=n.add(g,b),b=n.sub(w,b),b=n.mul(f,b),v=n.add(v,b),w=n.mul(g,v),u=n.add(u,w),w=n.mul(A,v),l=n.mul(y,l),l=n.sub(l,w),w=n.mul(y,g),h=n.mul(A,h),h=n.add(h,w),new p(l,u,h)}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return g.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){const{endo:o,n:i}=t;io("scalar",e,ri,i);const r=p.ZERO;if(e===ri)return r;if(this.is0()||e===ai)return this;if(!o||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:c,k2:l}=o.splitScalar(e),u=r,d=r,h=this;for(;s>ri||l>ri;)s&ai&&(u=u.add(h)),l&ai&&(d=d.add(h)),h=h.double(),s>>=ai,l>>=ai;return a&&(u=u.negate()),c&&(d=d.negate()),d=new p(n.mul(d.px,o.beta),d.py,d.pz),u.add(d)}multiply(e){const{endo:o,n:i}=t;let r,a;if(io("scalar",e,ai,i),o){const{k1neg:t,k1:i,k2neg:s,k2:c}=o.splitScalar(e);let{p:l,f:u}=this.wNAF(i),{p:d,f:h}=this.wNAF(c);l=g.constTimeNegate(t,l),d=g.constTimeNegate(s,d),d=new p(n.mul(d.px,o.beta),d.py,d.pz),r=l.add(d),a=u.add(h)}else{const{p:t,f:n}=this.wNAF(e);r=t,a=n}return p.normalizeZ([r,a])[0]}multiplyAndAddUnsafe(e,t,n){const o=p.BASE,i=(e,t)=>t!==ri&&t!==ai&&e.equals(o)?e.multiply(t):e.multiplyUnsafe(t),r=i(this,t).add(i(e,n));return r.is0()?void 0:r}toAffine(e){return h(this,e)}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===ai)return!0;if(n)return n(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===ai?this:n?n(p,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return zn("isCompressed",e),this.assertValidity(),i(p,this,e)}toHex(e=!0){return zn("isCompressed",e),Yn(this.toRawBytes(e))}}p.BASE=new p(t.Gx,t.Gy,n.ONE),p.ZERO=new p(n.ZERO,n.ONE,n.ZERO);const{endo:m,nBitLength:w}=t,g=_o(p,m?Math.ceil(w/2):w);return{CURVE:t,ProjectivePoint:p,normPrivateKeyToScalar:u,weierstrassEquation:a,isWithinCurveOrder:function(e){return oo(e,ai,t.n)}}}({...t,toBytes(e,t,o){const i=t.toAffine(),r=n.toBytes(i.x),a=to;return zn("isCompressed",o),o?a(Uint8Array.from([t.hasEvenY()?2:3]),r):a(Uint8Array.from([4]),r,n.toBytes(i.y))},fromBytes(e){const t=e.length,o=e[0],i=e.subarray(1);if(t!==a||2!==o&&3!==o){if(t===s&&4===o)return{x:n.fromBytes(i.subarray(0,n.BYTES)),y:n.fromBytes(i.subarray(n.BYTES,2*n.BYTES))};throw new Error("invalid Point, expected length of "+a+", or uncompressed "+s+", got "+t)}{const e=Kn(i);if(!oo(e,ai,n.ORDER))throw new Error("Point is not on curve");const t=h(e);let a;try{a=n.sqrt(t)}catch(r){const e=r instanceof Error?": "+r.message:"";throw new Error("Point is not on curve"+e)}return!(1&~o)!=((a&ai)===ai)&&(a=n.neg(a)),{x:e,y:a}}}});function p(e){return e>o>>ai}const m=(e,t,n)=>Kn(e.slice(t,n));class w{constructor(e,t,n){io("r",e,ai,o),io("s",t,ai,o),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){const t=i;return e=eo("compactSignature",e,2*t),new w(m(e,0,t),m(e,t,2*t))}static fromDER(e){const{r:t,s:n}=oi.toSig(eo("DER",e));return new w(t,n)}assertValidity(){}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(e){const{r:o,s:i,recovery:r}=this,a=v(eo("msgHash",e));if(null==r||![0,1,2,3].includes(r))throw new Error("recovery id invalid");const s=2===r||3===r?o+t.n:o;if(s>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&r?"03":"02",h=u.fromHex(d+ii(s,n.BYTES)),f=l(s),p=c(-a*f),m=c(i*f),w=u.BASE.multiplyAndAddUnsafe(h,p,m);if(!w)throw new Error("point at infinify");return w.assertValidity(),w}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Qn(this.toDERHex())}toDERHex(){return oi.hexFromSig(this)}toCompactRawBytes(){return Qn(this.toCompactHex())}toCompactHex(){const e=i;return ii(this.r,e)+ii(this.s,e)}}const g={isValidPrivateKey(e){try{return d(e),!0}catch(t){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const e=zo(t.n);return function(e,t,n=!1){const o=e.length,i=Vo(t),r=zo(t);if(o<16||o<r||o>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+o);const a=Mo(n?Zn(e):Kn(e),t-Eo)+Eo;return n?$n(a,i):_n(a,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t.I(e),t.multiply(BigInt(3)),t)};function b(e){if("bigint"==typeof e)return!1;if(e instanceof u)return!0;const o=eo("key",e).length,r=n.BYTES,a=r+1,s=2*r+1;return t.allowedPrivateKeyLengths||i===a?void 0:o===a||o===s}const y=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=Kn(e),n=8*e.length-r;return n>0?t>>BigInt(n):t},v=t.bits2int_modN||function(e){return c(y(e))},A=ro(r);function k(e){return io("num < 2^"+r,e,ri,A),_n(e,i)}const x={lowS:t.lowS,prehash:!1},T={lowS:t.lowS,prehash:!1};return u.BASE.I(8),{CURVE:t,getPublicKey:function(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===b(e))throw new Error("first arg must be private key");if(!1===b(t))throw new Error("second arg must be public key");return u.fromHex(t).multiply(d(e)).toRawBytes(n)},sign:function(e,o,i=x){const{seed:r,k2sig:a}=function(e,o,i=x){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{hash:r,randomBytes:a}=t;let{lowS:s,prehash:h,extraEntropy:m}=i;null==s&&(s=!0),e=eo("msgHash",e),ti(i),h&&(e=eo("prehashed msgHash",r(e)));const g=v(e),b=d(o),A=[k(b),k(g)];if(null!=m&&!1!==m){const e=!0===m?a(n.BYTES):m;A.push(eo("extraEntropy",e))}const T=to(...A),E=g;return{seed:T,k2sig:function(e){const t=y(e);if(!f(t))return;const n=l(t),o=u.BASE.multiply(t).toAffine(),i=c(o.x);if(i===ri)return;const r=c(n*c(E+i*b));if(r===ri)return;let a=(o.x===i?0:2)|Number(o.y&ai),d=r;return s&&p(r)&&(d=function(e){return p(e)?c(-e):e}(r),a^=1),new w(i,d,a)}}}(e,o,i),s=t,h=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let o=ao(e),i=ao(e),r=0;const a=()=>{o.fill(1),i.fill(0),r=0},s=(...e)=>n(i,o,...e),c=(e=ao(0))=>{i=s(so([0]),e),o=s(),0!==e.length&&(i=s(so([1]),e),o=s())},l=()=>{if(r++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){o=s();const t=o.slice();n.push(t),e+=o.length}return to(...n)};return(e,t)=>{let n;for(a(),c(e);!(n=t(l()));)c();return a(),n}}(s.hash.outputLen,s.nByteLength,s.hmac);return h(r,a)},verify:function(e,n,o,i=T){const r=e;n=eo("msgHash",n),o=eo("publicKey",o);const{lowS:a,prehash:s,format:d}=i;if(ti(i),"strict"in i)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const h="string"==typeof r||qn(r),f=!h&&!d&&"object"==typeof r&&null!==r&&"bigint"==typeof r.r&&"bigint"==typeof r.s;if(!h&&!f)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(f&&(p=new w(r.r,r.s)),h){try{"compact"!==d&&(p=w.fromDER(r))}catch(C){if(!(C instanceof oi.Err))throw C}p||"der"===d||(p=w.fromCompact(r))}m=u.fromHex(o)}catch(I){return!1}if(!p)return!1;if(a&&p.hasHighS())return!1;s&&(n=t.hash(n));const{r:g,s:b}=p,y=v(n),A=l(b),k=c(y*A),x=c(g*A),E=u.BASE.multiplyAndAddUnsafe(m,k,x)?.toAffine();return!!E&&c(E.x)===g},ProjectivePoint:u,Signature:w,utils:g}}function ui(e){return{hash:e,hmac:(t,...n)=>xo(e,t,function(...e){let t=0;for(let o=0;o<e.length;o++){const n=e[o];Ie(n),t+=n.length}const n=new Uint8Array(t);for(let o=0,i=0;o<e.length;o++){const t=e[o];n.set(t,i),i+=t.length}return n}(...n)),randomBytes:Fe}}const di=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hi=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),fi=BigInt(0),pi=BigInt(1),mi=BigInt(2),wi=(e,t)=>(e+t/mi)/t,gi=qo(di,void 0,void 0,{sqrt:function(e){const t=di,n=BigInt(3),o=BigInt(6),i=BigInt(11),r=BigInt(22),a=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=Ro(u,n,t)*u%t,h=Ro(d,n,t)*u%t,f=Ro(h,mi,t)*l%t,p=Ro(f,i,t)*f%t,m=Ro(p,r,t)*p%t,w=Ro(m,s,t)*m%t,g=Ro(w,c,t)*w%t,b=Ro(g,s,t)*m%t,y=Ro(b,n,t)*u%t,v=Ro(y,a,t)*p%t,A=Ro(v,o,t)*l%t,k=Ro(A,mi,t);if(!gi.eql(gi.sqr(k),e))throw new Error("Cannot find square root");return k}}),bi=function(e){const t=t=>li({...e,...ui(t)});return{...t(Nn),create:t}}({a:fi,b:BigInt(7),Fp:gi,n:hi,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=hi,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-pi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=n,a=BigInt("0x100000000000000000000000000000000"),s=wi(r*e,t),c=wi(-o*e,t);let l=Mo(e-s*n-c*i,t),u=Mo(-s*o-c*r,t);const d=l>a,h=u>a;if(d&&(l=t-l),h&&(u=t-u),l>a||u>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:h,k2:u}}}});class yi extends N{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function vi(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new yi({value:e});let[n,o="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),o=o.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${o}`))&&(n=`${BigInt(n)+1n}`),o="";else if(o.length>t){const[e,i,r]=[o.slice(0,t-1),o.slice(t-1,t),o.slice(t)],a=Math.round(Number(`${i}.${r}`));o=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,o.length>t&&(o=o.slice(1),n=`${BigInt(n)+1n}`),o=o.slice(0,t)}else o=o.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${o}`)}const Ai="0x0000000000000000000000000000000000000000",ki={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:/* @__PURE__ */hn({format(e){const t=e.transactions?.map(e=>{if("string"==typeof e)return e;const t=ln(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Y(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:/* @__PURE__ */un({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Y(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:/* @__PURE__ */wo({format:e=>({l1GasPrice:e.l1GasPrice?Y(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Y(e.l1GasUsed):null,l1Fee:e.l1Fee?Y(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:function(e,t){return function(e){return"deposit"===e.type||void 0!==e.sourceHash}(e)?function(e){!function(e){const{from:t,to:n}=e;if(t&&!lt(t))throw new it({address:t});if(n&&!lt(n))throw new it({address:n})}(e);const{sourceHash:t,data:n,from:o,gas:i,isSystemTx:r,mint:a,to:s,value:c}=e;return dt(["0x7e",Vt([t,o,s??"0x",a?K(a):"0x",c?K(c):"0x",i?K(i):"0x",r?"0x1":"0x",n??"0x"])])}(e):yo(e,t)}}},xi=/* @__PURE__ */Ao({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Ti=/* @__PURE__ */Ao({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Ei=1,Ci=/* @__PURE__ */Ao({...ki,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...ki.contracts,disputeGameFactory:{[Ei]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Ei]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Ei]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Ei]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),Ii=/* @__PURE__ */Ao({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});async function Si(e,t){const{account:n=e.account}=t;if(!n)throw new fo;const o=kt(n);try{const{accessList:n,blockNumber:i,blockTag:r,data:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:h,value:f,...p}=t,m=("bigint"==typeof i?$(i):void 0)||r;!function(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:o,to:i}=e,r=t?kt(t):void 0;if(r&&!lt(r.address))throw new it({address:r.address});if(i&&!lt(i))throw new it({address:i});if(n&&n>sn)throw new Gt({maxFeePerGas:n});if(o&&n&&o>n)throw new en({maxFeePerGas:n,maxPriorityFeePerGas:o})}(t);const w=e.chain?.formatters?.transactionRequest?.format,g=(w||an)({...nn(p,{format:w}),account:o,accessList:n,data:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:h,value:f},"estimateGas"),{baseFeePerGas:b,gasLimit:y,priorityFeePerGas:v}=await e.request({method:"linea_estimateGas",params:m?[g,m]:[g]});return{baseFeePerGas:BigInt(b),gasLimit:BigInt(y),priorityFeePerGas:BigInt(v)}}catch(i){throw function(e,{docsPath:t,...n}){const o=(()=>{const t=function(e,t){const n=(e.details||"").toLowerCase(),o=e instanceof N?e.walk(e=>e?.code===jt.code):e;return o instanceof N?new jt({cause:e,message:o.details}):jt.nodeMessage.test(n)?new jt({cause:e,message:e.details}):Gt.nodeMessage.test(n)?new Gt({cause:e,maxFeePerGas:t?.maxFeePerGas}):Jt.nodeMessage.test(n)?new Jt({cause:e,maxFeePerGas:t?.maxFeePerGas}):Yt.nodeMessage.test(n)?new Yt({cause:e,nonce:t?.nonce}):Xt.nodeMessage.test(n)?new Xt({cause:e,nonce:t?.nonce}):Qt.nodeMessage.test(n)?new Qt({cause:e,nonce:t?.nonce}):Kt.nodeMessage.test(n)?new Kt({cause:e}):Zt.nodeMessage.test(n)?new Zt({cause:e,gas:t?.gas}):_t.nodeMessage.test(n)?new _t({cause:e,gas:t?.gas}):$t.nodeMessage.test(n)?new $t({cause:e}):en.nodeMessage.test(n)?new en({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new tn({cause:e})}(e,n);return t instanceof tn?e:t})();return new qt(o,{docsPath:t,...n})}(i,{...t,account:o,chain:e.chain})}}async function Ni({client:e,multiply:t,request:n,type:o}){try{const i=await Si(e,{...n,account:n?.account}),{priorityFeePerGas:r}=i,a=t(BigInt(i.baseFeePerGas))+r;return"legacy"===o?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:r}}catch{return null}}const Bi=/* @__PURE__ */Ao({fees:{estimateFeesPerGas:Ni,async maxPriorityFeePerGas({block:e,client:t,request:n}){const o=await Ni({block:e,client:t,multiply:e=>e,request:n,type:"eip1559"});return o?.maxPriorityFeePerGas?o.maxPriorityFeePerGas:null}},id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),Mi=1,Ri=1,Pi={1:{.../* @__PURE__ */Ao({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJalJREFUeAHVfQl4HNWZ4F/V96Vu3ZItS7IlMLLNEWTAGAwGAjmGhJ1JyHwQIGQ3B2ENhOwm2Xgg6xwfJGQIuwMTNiwTjswZhhyETABD4jiEK8YH2JIPWd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KfBAmVpwuVJ4k9fyAQCC5dfXtzXcvNdyFn/RdaxIc+PZNpa+ym8+nLjuW8Nc0Re3bOPyvwBHrnIN2Id6a748UCVw95zceV1Mgvhntf+/d3fnfnThDrB+gijplXXeMEi0WgTHlmQuEVOmvd/2iK1lx5cbh05SbkqCVcCVvW7xk7F/id9pHSAvkiuWza+ayKndSgguDclFhGZi6Hcwt98UU7kE4Mbe3Ycd8TfR3P90ej0anR0VHiFsN0nndd4wSLTSBzua66ujpPd3c3EYpf51/9k0si1ed/wu0OXsgkaQmZy3ys4TBgpd0LGUJxBZU5VYCLJ7ETTsshRCa9JOm79fh0RY+SGn1lbHDvS7tfuvVPIDbxJvQ7GQCLwjE5dYRTCPTNNv2zYO6KigovynUfKl4fhnubLrpvTTi6ck0gtvwqWXK1ICaX8CVf1PtpRdgMFzcIn53MlxXT9klM36uqibdSiaH2gSO/fqljx4NHMFo6EokkfD5fanBwkIhi7BVdNI7JqTecHiDpFycWXSUlJV5VVb04tiAl5Kmov6Z0WcsNq/yR5S0eT3gpWlQt4gO87qWI8QgawJFpPNLKGW1cYto4HbOGYrMXuRE5ZLxbSQ93d7f95M2+w7+hww/SNhcRhU+pwCngGCucLgSyAre5W1tb5d7eXk86nXZhj3Zj73ahV8JNx0jje5ff75dxnsUgroQ9XzKO18Rnhs+GvtDQMNFwzKJiHsr4+LhQRvpQALIJcsqJ8n4DiT6lrH/zmrjLMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",tokenTrendingDefault:["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"],isSupported:!0},10:{.../* @__PURE__ */Ao({...ki,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...ki.contracts,disputeGameFactory:{[Mi]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Mi]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Mi]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Mi]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjoUI2ohSBh05/mX+9wI80YF0D74cqS2vy5C95K0KYRMzJBlCtq0iGCEMTWUAcicWapRzfYtQU0AioXJHzCn+Qv/hE/Phzy/3UipAsszImqhalMELYIny3iPD+dps1ExcJYFyR2Tcf56WHazFQkjFVB2D0d4kxpttauKQ9xjPF6wQJZwoogm9Y9yWlzn2avDWtpkGGUVYzRbdq6YoBpPuFu83c17oaNWciWiRX5OcX9l0/JEEYEiV3Uj1SX/kTVILb0aJcJF1ZaECXGGF2vvIddNwyJUkoQFmMyFmNrZFHlQVFzV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kXZigxUc3WIL0dQWdcKvWtkZHG7EKe4ed5S7JZH0VJOrn+SBYJ4z/Itj4D6AE+p7jKvNCIxCt3TsPht86Ib1SOmOEtJ8liM6m6bt/bZTpT1lBQDuFuvmsLQrVdLX/SpDgCZxPbOvjqmbk5s5CpcHEica2/HzuN8fFu8gAxgfKXesOEfZpmxQvbWjiuIFyiHCHvgUqwsnRz3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x68f180fcce6836688e9084f035309e29bf0a2095","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},56:{...Ii,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZld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7Qld1Lljp4EJK3WQgPQZjY8ADKzncXT+zKqw9A56w1XzhJ6mbDNyTpHl+8+l9fxsHv94WN7LdDbxRgXURvctAJi1Ac2CSw/wvs7U3OuCR0GvshpCB0aG8GhBuVgKeCSUlhAwEt0+a9PeJQgbm+IvgGd9SQsmYFh3I1HlZ/QZd8dXjyuNLSigZOO6YFh3IVCF4nYQVPNElrqWEkoHguKNoqdiZ6/ba+EKPLi56XyFlCDpz5zcLv5g4cyppluADNF2I7UgJKYMPFlKe2VmaKQTDK1TThdiSEjgycL6V0qaUyvuH7IkRPHgcwe/HpPkKLQMYeXHuQldp7Xfl2e9Zrwv8Xerdj26khJaBvSpVGYiyEOx1iTbwEuf+Z6hIykqpgoyUkVKrC9RzyyOF5iu4DJHEU9dbHiH4BoQL64F6XsisSKmEDNDb01Brlzbks/Uk4aF3apsQKZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",tokenTrendingDefault:["0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"],isSupported:!0},137:{.../* @__PURE__ */Ao({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),rpcUrls:{default:{http:["https://polygon-bor-rpc.publicnode.com"]}},logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLkFL84tbRRHUaqklVpIeuLCn14wqMKOVCoiVVmnJypRrwVN7DYpCzHJ2njn5X3f7phde3bnzcyb2Z1hP9LKa7PGu/N97/f3zXuMGpz03q9SZN7rS7DkdpMKPYwS2znxFCPqJC4eTDzK4ZQTP8txYtniDwrTBiVmCqwwTfnlTHqyJ0cNDKMGAwIkON/PiQaJ88E1F9w/WfGxM4yzswWDptIXHs1SA9EQgqT33hhknEYYGfvFtykKlywn8xw32cn0pa0ZqjN1EyQ9ONNptLQeJWYeovBFqEaWcSNdz5kTuiByNpjsECO2PwBzpJOTJjNOhC1MaIKkd9/sY4bxLiPhF6JFqMIELog0TevWjYrw5zWKNqEIE6ggbw3PHeW8kG5w0+QG6WPevPjoKQqIQARB6Mo4/1MEzZMSIseZ5IwdDmK2GKQZzArDND+PqxgAn83g5udv7fnqIGlG2wyJka9wCRs/PvHY66QJLYIUTZR5RvxnffQAIqoKGc6MAzpMmG9BEM4aBjtDjZPc1YusiMKG/Iriy4dIMRi7TE0xQEr4lcu4JuQDzzNkRYz4hLS6yJkmH/JaF/MkSFMMRzyL4loQOHCEtU0xHMkJn/KUW5/iyodIM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caTpDVyK3QW5N9CZ7oNanQQ6VN68UFTZX2i6xMQIub6eREdzMn8iCM/lmDEjMFvjxLS4XJepkiVX4AbuLqSV+48XkAAAAASUVORK5CYII=",chainId:137,chainType:"matic",chainTypeMoralis:"polygon",tokenTrendingDefault:["0x7ceb23fd6bc0add59e62ac25578270cff1b9f619","0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"],isSupported:!0},8453:{...Ci,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoLQFYV4qC2BQiyiGET6WFrack60OBFyIHtBVtWi/tRN/djAsP8vEvvaanazFiY7QRgbAjzTjybKRabC+BfEuKYd/eoRyk0mwvgV5AvFGNFCsV3TNJgY80dwAE/4EaS87ikdSo/KFLZ8WEsI19AqQryqrBiE343fcV05d8PuLKQ6sWJa9vAi2IYj3AhiXNRhgeYTWRPpgL/swoXJBaEYIY6R/Qy7aDgRRSYIJ3lGjKqMoqR0uqJYr4/ZC5KzGI2P9Ae/rx+3h/+t86++XP8xzzkgEsVOkIzFaH4MLMwDiw3zmmKkgYKcRnr9/UyvHr41r6N3yAJrUaYXxMSMV/AsBk/8xrL+uPujrcAWCrOvL6WTt97FoSj3po0p0wniOYDzxD98oMfNn7kVYRwU58lfwNHf8MXUgX46Qda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ABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},42161:{...xi,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEuFJREFUeAHlXQ1sFOeZfmd2ba+NbWwwBv8QbAjY/BuKayeQsE5Acmp0NiRcepe0IVV71zvpjnA65VRdq8JdTydFOsXRnYh6rZqgUpoqTbDbEJwG4qUtDcZOMBiojQleEv5iSGPw7/7MfP3ez5717O7MzuzszOw6fSKz49lvN+N55n2f932/+d7hIMVR5m7KyxnzuQlxLBJ5sZwHWATAlXFA8gjh8oCDvLAPEBjiODJEgPPiryKQs7zIDwAJnh3JdnV7PS1DkMLgIMVQWVtf5hScjYQnVTwQNz2xZWAiCICXktlNyWwhxH/2Yue73ZBCSAlCVtXWu0XCNzkAGs0mQAtIEH3xcIJw4HxXmweSjKQRgq4oe8y/mx5CEz2KKkgBMHII7BX4tBO9p1q8kATYTsiK6q9UAQ+7eMI9E+X/UwiUnFcFLm2f3cTYRkhlbVOZkwReoZtumEGwmxjLCWFR0njg+/QPew5mMOwixgEWYlXNtt3pAaGF0u6GGQ565VZxIDYVliwbun29/yxYBEssZKa6pzjgCXJpz1phLaZbCFoFT4TXKNWV8MVFGQ/irnml9/tuX798CkyEaRbyRdGKeMGJ0NzTeWQPmARTCEEX5SCBw+hn4S8QmL9Qwa8zw4UlTMgUGe30i8rgLxhmkZIQIZjk8RzXnswEj6S5QMzMY6+Oe7eAC0xAEjEkiqTuYufbhutjhglJJhliVh4EFq4D/31VbFsOfmwInHe8kNHXzraTgIRIMURIsshAK/AvfgAmKt26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75y5c0soRPp+zqQZmHahWZI1t7z/5rgcshKUWIgcLj0XHXkrMMzCzYJl7UoJthEiYEcRggseRAyDCq4kkeUZgOyESkBgeeHeKaQytt3CtI66RZrPC2HiRNELkWFW7zU1Esgs4stlucnChEp3GauU5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",tokenTrendingDefault:["0x82af49447d8a07e3bd95bd0d56f35241523fbab1","0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],isSupported:!0},43114:{...Ti,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQHRvhuSfbbTv7gLNI76/BYcRcJCHntcAKicCSZ4geIMfugaa6i9vikD4Adp3Dvl+Cw7hjCgqGjwS4kwFYsmACEk0JYkVFUk/uyBQqaL86Xm1eSkvqKboYglCxCB8FZ0ri/6vqyiJUkThqBBCXFZv78FdVD6CT0FwxXb0WBVlQsQYRmDFpjhWRGH3pMT4fuLE6IMdnfpxbXF9/QoMY1QUN3NGYVqCxLLJnGNMlE5TJVV0hP2J/YfBJs2IKA+99y8Egq5h/9MiCs4rYXxoRKso+yF35EEILOvMNdpE4V54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2YQYoJwhReXscRIyiYJv8QahYVhNGy5lENrq2p5P/uy2yXCbS6o0EQZnrpcw3ETVblRasoEfe9U8uuXOrDLGH+OD9Y+FAUI6Iw3ajZKGvbKtNwL/3pmImqIhgTJWL/RY2Z6OjH+OYGh/z1ZaLgiPpDMhf5uQS7S+6X8by6SUE672WRvzyvMSPE1UkyAixGQOL6LoJrNvYc6LxnCXQvnKM6neVfFiSOMsR48d4lEl5HEoJzzglnDAGRLyHXnqC9aluMiFJF6edF9JQgkBKCIO4oT7Wio/NXFGdE6adzNerKCeJtxgV5vDEZ9NJSXXAlBO6o5mmtrIiIw0lRBmGR1AdYF6gcfo7gSLiPMqEGIWqq7a8NihY6JYgtFQHqwxZN1af4p7OBQ9Di5emuiTDI/4Da9NgV2sBcAAAAAElFTkSuQmCC",chainId:43114,chainType:"avax",chainTypeMoralis:"avalanche",tokenTrendingDefault:["0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB","0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"],isSupported:!0},59144:{...Bi,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABkCAYAAACWy14QAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABydJREFUeAHtnT1MHEcUxx8HEuAGYxdOY+fcpbBl6CJR+NI5FAR3oQJ6irhBiiiAKoEmRkIKXQgN7gwUyB1HgZLOh0SND2iSgs+GS3GQ/3+ZPR3H3bIfsx+3Nz9p2b1jl4/5z7z3Zm7mTZsklIcAp2x7e3vf9fV1H657cPD8sOqo5owH7i3y3NbWdoDzl6urq12cC2dAEkqbJAQWOgo8h0LM4eVruSlwnRR4QJx8uVzehiZFSQixisCCz2Qyoyj4YRROTiIEvzOP372cBEFiEQFln0OhT+OwzUus2IIcHx//KTEQqQiPHz8eg40ejbrWe6CIv20majEiEYGFj9o2jcusNAeRihGqC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IjhEhARgREoARIQEYERKAESEBGBESADtric2S2Cqws2ZEiBmaIyNCzFAETwufDfqwXYFpCfFyIwJ8guuV5wa9oOwtK5Qpl8tGhJi4urr6zDPNUVEMcXHTEtSqEdMaoufMTkJi95gDpQ8zeAeRUaXiWyIwnb0YIgVlvm5fWyLAOefFEClwynn72lqfQOPU29ubjyundVxrGC4uLuKa9FWsTkrVUfWN9bhEKBTiiQs4JTKqeafV1Jr/6qHsZTOiGg0wRQvVrysimFA1GmpNEcnU3DArhlBBGc/UvndLBC5k4/4yYggFtf3Yeu37mTo3xrK5TytAh1wvy8sdEXDPslLMoBk45Lrmvu4H/cY3hMJso4SEDVeHoPO21cQbEiUKWhYcDTe9yDg8aFqDJhgROaXlbJgNslQqFbu7u3tx+a0YfKP6BeNO9zhO/oIjmTG96GDQDN13j6MIDKfwQ96KwS+zbjY/ujdXtjFL/mCn9/T0dNzNva7moiqzZMaVXKKiIVcCEE+bWCBk3TKrPe9HZXwsur3f9axs/lD6B+OonYEA4143wfO0pw78wz9dXV3/ojWkMj+SBmbhB96LRzzvLgUhCp2dnQdGiDvMnpyczIgPfO2zZoS4g28BiO8dB5UQnEH2BmK08pZfgQQggdO72HuvtVrUxABFbZS9LAHRthVwK4Wvqh/w1steak5oWTjIkAxRwXNcLkjKUVvF9+sSgGjdHv7y8vITHTYu+9KWuITmB//Tz6hs7+APS6IRrSIQOmz0JTiRjONNqcivx3EgHN9DgE8SAqHmXWt2p61sP53vmoRIJMnvIMYYhJhuFjGU6VnAEMT7RjtC6STSDIRJFyPqwreJJQ0kM6arXUsSsWmGsvmzdhb3qIk1F6favSSH2jca9cwOFjx+53bUtb4eiUmIqnJ2s4UMo4BeVSf01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",tokenTrendingDefault:["0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f","0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4"],isSupported:!0},130:{.../* @__PURE__ */Ao({...ki,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...ki.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Ri]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Ri]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Ri]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg52x7CbykU7Zn1+xZTaz+cP6W/fYrDjiw72b3ilAujw52d+BWQfStGOJi380yiABxGABcmHYQH4rgZnHPZnBwby8svu3q8trb/7D82r2j8Xh9CVM/vRQuLeHnaHPwzG/uXROnrl5cxXVvb5146Mqw+tC5TnlABrBPd5gtbvtOEVz0AMHHGHPwkLmApI6Zcx3naAJhwAyg/yr6hnbhN6WLruqHYTnfDtuQUXdMjPIb7w733PTF4X/9pF0WP/5zOG87PMPbM8aAD068cfW+cfej1/k1Lz8+e+ELohsfADBaUoUKfKeDZA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aG/1s7mGwZPffzk9du4dbfsiWYvjcdsz33aNYsbJXdLtYB+jgSNtorilUoh/UbUXCox0veH4UIqYMKGzGgDqO8PshpubHiN2H24fb5+6vtjyIKOmO5ePeTbfGe274RHn+HSOYWP9MEb25/VwwYMftBbDfosWwdPGHDnvX7geu2H/dtmJuHchvpC5Dek9hjXkVeu4J1BVJZaDdwr9Yna+GWBLdgJ77p3mWbVpdLb77e3dfcfOZt/3dfYshm74UfjwLP2fb/wd5ICT31PZzFAAAAABJRU5ErkJggg==",chainId:130,chainType:"unichain",chainTypeMoralis:"unichain",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x0555e30da8f98308edb960aa94c0db47230d2b9c"],isSupported:!1},7565164:{id:7565164,name:"Solana",nativeCurrency:{decimals:18,name:"Solana",symbol:"SOL"},rpcUrls:{default:{http:[""]}},logo:"https://ipfs.pantograph.app/ipfs/QmZhKcFZVvw5r3cGLfSLsLcd1GzbQK5Vf7aoVYvgktzUUA?filename=Solana_logo.png",chainId:7565164,isSupported:!1}},Ui=e=>{const t=Object.values(Pi).find(t=>t.chainTypeMoralis===e);return t?.chainType||null};function Oi(e){return e&&e.S&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Li(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"S",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var Di,Fi,Hi,qi={},Vi={},zi={};function Wi(){return Hi||(Hi=1,function(e){const t=function(){if(Di)return Vi;Di=1,Vi.byteLength=function(e){var t=r(e),n=t[0],o=t[1];return 3*(n+o)/4-o},Vi.toByteArray=function(e){var o,i,a=r(e),s=a[0],c=a[1],l=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(i=0;i<d;i+=4)o=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],l[u++]=o>>16&255,l[u++]=o>>8&255,l[u++]=255&o;return 2===c&&(o=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,l[u++]=255&o),1===c&&(o=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,l[u++]=o>>8&255,l[u++]=255&o),l},Vi.fromByteArray=function(t){for(var n,o=t.length,i=o%3,r=[],a=16383,c=0,l=o-i;c<l;c+=a)r.push(s(t,c,c+a>l?l:c+a));return 1===i?(n=t[o-1],r.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[o-2]<<8)+t[o-1],r.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),r.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=o[i],t[o.charCodeAt(i)]=i;function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function a(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function s(e,t,n){for(var o,i=[],r=t;r<n;r+=3)o=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),i.push(a(o));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,Vi}(),n=(Fi||(Fi=1,zi.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=h,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===r)r=1-l;else{if(r===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),r-=l}return(f?-1:1)*a*Math.pow(2,r-o)},zi.write=function(e,t,n,o,i,r){var a,s,c,l=8*r-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,p=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+f]=255&a,f+=p,a/=256,l-=8);e[n+f-p]|=128*m}),zi),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function r(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=r(n);const i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return a.from(o,t,n);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),n=r(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?r(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),r(e<0?0:0|h(e))}function u(e){const t=e.length<0?0:0|h(e.length),n=r(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,a.prototype),o}function h(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return o?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function w(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){let r,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let o=-1;for(r=n;r<s;r++)if(l(e,r)===l(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===c)return o*a}else-1!==o&&(r-=r-o),o=-1}else for(n+c>s&&(n=s-c),r=n;r>=0;r--){let n=!0;for(let o=0;o<c;o++)if(l(e,r+o)!==l(t,o)){n=!1;break}if(n)return r}return-1}function b(e,t,n,o){n=Number(n)||0;const i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;const r=t.length;let a;for(o>r/2&&(o=r/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(X(o))return a;e[n+a]=o}return a}function y(e,t,n,o){return J(j(t,e.length-n),e,n,o)}function v(e,t,n,o){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function A(e,t,n,o){return J(G(t),e,n,o)}function k(e,t,n,o){return J(function(e,t){let n,o,i;const r=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function x(e,n,o){return 0===n&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,o))}function T(e,t,n){n=Math.min(e.length,n);const o=[];let i=t;for(;i<n;){const t=e[i];let r=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,o,s,c;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(r=c));break;case 3:n=e[i+1],o=e[i+2],128==(192&n)&&128==(192&o)&&(c=(15&t)<<12|(63&n)<<6|63&o,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:n=e[i+1],o=e[i+2],s=e[i+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=E));return n}(o)}e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?r(e):void 0!==t?"string"==typeof n?r(e).fill(t,n):r(e).fill(t):r(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e.N&&e!==a.prototype},a.compare=function(e,t){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=a.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>o.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},a.byteLength=f,a.prototype.N=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,o,i){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0);const c=Math.min(r,s),l=this.slice(o,i),u=e.slice(t,n);for(let a=0;a<c;++a)if(l[a]!==u[a]){r=l[a],s=u[a];break}return r<s?-1:s<r?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},a.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return v(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.M||this,0)}};const E=4096;function C(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function I(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function S(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function N(e,t,n){const o=e.slice(t,n);let i="";for(let r=0;r<o.length-1;r+=2)i+=String.fromCharCode(o[r]+256*o[r+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,o,i,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function R(e,t,n,o,i){q(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function P(e,t,n,o,i){q(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,o,i,r){return t=+t,o>>>=0,r||U(e,0,o,4),n.write(e,t,o,i,23,4),o+4}function L(e,t,o,i,r){return t=+t,o>>>=0,r||U(e,0,o,8),n.write(e,t,o,i,52,8),o+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,a.prototype),o},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return o},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=t,i=1,r=this[e+--o];for(;o>0&&(i*=256);)r+=this[e+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),a.prototype.readBigInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=K(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=K(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}let i=0,r=1,a=0;for(this[t]=255&e;++i<n&&(r*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/r|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}let i=n-1,r=1,a=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/r|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(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]=255&e,t+4},a.prototype.writeBigInt64LE=K(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=K(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,o){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);const i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},a.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!a.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const r=a.isBuffer(e)?e:a.from(e,o),s=r.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=r[i%s]}return this};const D={};function F(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,o,i,r){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(r+1)}${n}`:`>= -(2${n} ** ${8*(r+1)-1}${n}) and < 2 ** ${8*(r+1)-1}${n}`,new D.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(o,i,r)}function V(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function j(e,t){let n;t=t||1/0;const o=e.length;let i=null;const r=[];for(let a=0;a<o;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function G(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(qi)),qi}var ji=Wi();const Gi=BigInt(0),Ji=BigInt(1),Yi=BigInt(2),Xi=BigInt(8),Qi={zip215:!0};const Ki=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Zi=/* @__PURE__ */BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const _i=BigInt(1),$i=BigInt(2);BigInt(3);const er=BigInt(5),tr=BigInt(8);function nr(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function or(e,t){const n=Ki,o=Mo(t*t*t,n),i=function(e){const t=BigInt(10),n=BigInt(20),o=BigInt(40),i=BigInt(80),r=Ki,a=e*e%r*e%r,s=Ro(a,$i,r)*a%r,c=Ro(s,_i,r)*e%r,l=Ro(c,er,r)*c%r,u=Ro(l,t,r)*l%r,d=Ro(u,n,r)*u%r,h=Ro(d,o,r)*d%r,f=Ro(h,i,r)*h%r,p=Ro(f,i,r)*h%r,m=Ro(p,t,r)*l%r;return{pow_p_5_8:Ro(m,$i,r)*e%r,b2:a}}(e*Mo(o*o*t,n)).pow_p_5_8;let r=Mo(e*o*i,n);const a=Mo(t*r*r,n),s=r,c=Mo(r*Zi,n),l=a===e,u=a===Mo(-e,n),d=a===Mo(-e*Zi,n);return l&&(r=s),(u||d)&&(r=c),(Mo(r,n)&Eo)===Eo&&(r=Mo(-r,n)),{isValid:l||u,value:r}}const ir=/* @__PURE__ */(()=>qo(Ki,void 0,!0))(),rr=/* @__PURE__ */(()=>({a:ir.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ir,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:tr,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Bn,randomBytes:Fe,adjustScalarBytes:nr,uvRatio:or}))(),ar=/* @__PURE__ */(()=>function(e){const t=function(e){const t=ei(e);return lo(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:o,prehash:i,hash:r,randomBytes:a,nByteLength:s,h:c}=t,l=Yi<<BigInt(8*s)-Ji,u=n.create,d=qo(t.n,t.nBitLength);if(!function(e,o){const i=n.sqr(e),r=n.sqr(o),a=n.add(n.mul(t.a,i),r),s=n.add(n.ONE,n.mul(t.d,n.mul(i,r)));return n.eql(a,s)}(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const h=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch(o){return{isValid:!1,value:Gi}}}),f=t.adjustScalarBytes||(e=>e),p=t.domain||((e,t,n)=>{if(zn("phflag",n),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function m(e,t,n=!1){io("coordinate "+e,t,n?Ji:Gi,l)}function w(e){if(!(e instanceof y))throw new Error("ExtendedPoint expected")}const g=uo((e,t)=>{const{ex:o,ey:i,ez:r}=e,a=e.is0();null==t&&(t=a?Xi:n.inv(r));const s=u(o*t),c=u(i*t),l=u(r*t);if(a)return{x:Gi,y:Ji};if(l!==Ji)throw new Error("invZ was invalid");return{x:s,y:c}}),b=uo(e=>{const{a:n,d:o}=t;if(e.is0())throw new Error("bad point: ZERO");const{ex:i,ey:r,ez:a,et:s}=e,c=u(i*i),l=u(r*r),d=u(a*a),h=u(d*d),f=u(c*n);if(u(d*u(f+l))!==u(h+u(o*u(c*l))))throw new Error("bad point: equation left != right (1)");if(u(i*r)!==u(a*s))throw new Error("bad point: equation left != right (2)");return!0});class y{constructor(e,t,n,o){m("x",e),m("y",t),m("z",n,!0),m("t",o),this.ex=e,this.ey=t,this.ez=n,this.et=o,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof y)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return m("x",t),m("y",n),new y(t,n,Ji,u(t*n))}static normalizeZ(e){const t=Do(n,e.map(e=>e.ez));return e.map((e,n)=>e.toAffine(t[n])).map(y.fromAffine)}static msm(e,t){return $o(y,d,e,t)}I(e){k.setWindowSize(this,e)}assertValidity(){b(this)}equals(e){w(e);const{ex:t,ey:n,ez:o}=this,{ex:i,ey:r,ez:a}=e,s=u(t*a),c=u(i*o),l=u(n*a),d=u(r*o);return s===c&&l===d}is0(){return this.equals(y.ZERO)}negate(){return new y(u(-this.ex),this.ey,this.ez,u(-this.et))}double(){const{a:e}=t,{ex:n,ey:o,ez:i}=this,r=u(n*n),a=u(o*o),s=u(Yi*u(i*i)),c=u(e*r),l=n+o,d=u(u(l*l)-r-a),h=c+a,f=h-s,p=c-a,m=u(d*f),w=u(h*p),g=u(d*p),b=u(f*h);return new y(m,w,b,g)}add(e){w(e);const{a:n,d:o}=t,{ex:i,ey:r,ez:a,et:s}=this,{ex:c,ey:l,ez:d,et:h}=e,f=u(i*c),p=u(r*l),m=u(s*o*h),g=u(a*d),b=u((i+r)*(c+l)-f-p),v=g-m,A=g+m,k=u(p-n*f),x=u(b*v),T=u(A*k),E=u(b*k),C=u(v*A);return new y(x,T,C,E)}subtract(e){return this.add(e.negate())}wNAF(e){return k.wNAFCached(this,e,y.normalizeZ)}multiply(e){const t=e;io("scalar",t,Ji,o);const{p:n,f:i}=this.wNAF(t);return y.normalizeZ([n,i])[0]}multiplyUnsafe(e,t=y.ZERO){const n=e;return io("scalar",n,Gi,o),n===Gi?A:this.is0()||n===Ji?this:k.wNAFCachedUnsafe(this,n,y.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return k.unsafeLadder(this,o).is0()}toAffine(e){return g(this,e)}clearCofactor(){const{h:e}=t;return e===Ji?this:this.multiplyUnsafe(e)}static fromHex(e,o=!1){const{d:i,a:r}=t,a=n.BYTES;e=eo("pointHex",e,a),zn("zip215",o);const s=e.slice(),c=e[a-1];s[a-1]=-129&c;const d=Zn(s),f=o?l:n.ORDER;io("pointHex.y",d,Gi,f);const p=u(d*d),m=u(p-Ji),w=u(i*p-r);let{isValid:g,value:b}=h(m,w);if(!g)throw new Error("Point.fromHex: invalid y coordinate");const v=(b&Ji)===Ji,A=!!(128&c);if(!o&&b===Gi&&A)throw new Error("Point.fromHex: x=0 and x_0=1");return A!==v&&(b=u(-b)),y.fromAffine({x:b,y:d})}static fromPrivateKey(e){const{scalar:t}=E(e);return v.multiply(t)}toRawBytes(){const{x:e,y:t}=this.toAffine(),o=$n(t,n.BYTES);return o[o.length-1]|=e&Ji?128:0,o}toHex(){return Yn(this.toRawBytes())}}y.BASE=new y(t.Gx,t.Gy,Ji,u(t.Gx*t.Gy)),y.ZERO=new y(Gi,Ji,Ji,Gi);const{BASE:v,ZERO:A}=y,k=_o(y,8*s);function x(e){return Mo(e,o)}function T(e){return x(Zn(e))}function E(e){const t=n.BYTES;e=eo("private key",e,t);const o=eo("hashed private key",r(e),2*t),i=f(o.slice(0,t));return{head:i,prefix:o.slice(t,2*t),scalar:T(i)}}function C(e){const{head:t,prefix:n,scalar:o}=E(e),i=v.multiply(o),r=i.toRawBytes();return{head:t,prefix:n,scalar:o,point:i,pointBytes:r}}function I(e=Uint8Array.of(),...t){const n=to(...t);return T(r(p(n,eo("context",e),!!i)))}const S=Qi;return v.I(8),{CURVE:t,getPublicKey:function(e){return C(e).pointBytes},sign:function(e,t,r={}){e=eo("message",e),i&&(e=i(e));const{prefix:a,scalar:s,pointBytes:c}=C(t),l=I(r.context,a,e),u=v.multiply(l).toRawBytes(),d=x(l+I(r.context,u,c,e)*s);return io("signature.s",d,Gi,o),eo("result",to(u,$n(d,n.BYTES)),2*n.BYTES)},verify:function(e,t,o,r=S){const{context:a,zip215:s}=r,c=n.BYTES;e=eo("signature",e,2*c),t=eo("message",t),o=eo("publicKey",o,c),void 0!==s&&zn("zip215",s),i&&(t=i(t));const l=Zn(e.slice(c,2*c));let u,d,h;try{u=y.fromHex(o,s),d=y.fromHex(e.slice(0,c),s),h=v.multiplyUnsafe(l)}catch(p){return!1}if(!s&&u.isSmallOrder())return!1;const f=I(a,d.toRawBytes(),u.toRawBytes(),t);return d.add(u.multiplyUnsafe(f)).subtract(h).clearCofactor().equals(y.ZERO)},ExtendedPoint:y,utils:{getExtendedPublicKey:C,randomPrivateKey:()=>a(n.BYTES),precompute:(e=8,t=y.BASE)=>(t.I(e),t.multiply(BigInt(3)),t)}}}(rr))();var sr={exports:{}};const cr=/* @__PURE__ */Li(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lr,ur=sr.exports;function dr(){return lr||(lr=1,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this.R(e||0,t||10,n||"be"))}var r;"object"==typeof sr?sr.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{r="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:cr.Buffer}catch(C){}function a(e,t){var o=e.charCodeAt(t);return o>=48&&o<=57?o-48:o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var o=a(e,n);return n-1>=t&&(o|=a(e,n-1)<<4),o}function c(e,t,o,i){for(var r=0,a=0,s=Math.min(e.length,o),c=t;c<s;c++){var l=e.charCodeAt(c)-48;r*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a<i,"Invalid character"),r+=a}return r}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype.R=function(e,t,o){if("number"==typeof e)return this.P(e,t,o);if("object"==typeof e)return this.U(e,t,o);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this.O(e,i,o):(this.L(e,t,i),"le"===o&&this.U(this.toArray(),t,o)))},i.prototype.P=function(e,t,o){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===o&&this.U(this.toArray(),t,o)},i.prototype.U=function(e,t,o){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,a,s=0;if("be"===o)for(i=e.length-1,r=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===o)for(i=0,r=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.q()},i.prototype.O=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,r=0,a=0;if("be"===n)for(o=e.length-1;o>=t;o-=2)i=s(e,t,o)<<r,this.words[a]|=67108863&i,r>=18?(r-=18,a+=1,this.words[a]|=i>>>26):r+=8;else for(o=(e.length-t)%2==0?t+1:t;o<e.length;o+=2)i=s(e,t,o)<<r,this.words[a]|=67108863&i,r>=18?(r-=18,a+=1,this.words[a]|=i>>>26):r+=8;this.q()},i.prototype.L=function(e,t,n){this.words=[0],this.length=1;for(var o=0,i=1;i<=67108863;i*=t)o++;o--,i=i/t|0;for(var r=e.length-n,a=r%o,s=Math.min(r,r-a)+n,l=0,u=n;u<s;u+=o)l=c(e,u,u+o,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this.V(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this.V(l)}this.q()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.W=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype.j=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.q=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.J()},i.prototype.J=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=u}catch(C){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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"],h=[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],f=[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];function p(e,t,n){n.negative=t.negative^e.negative;var o=e.length+t.length|0;n.length=o,o=o-1|0;var i=0|e.words[0],r=0|t.words[0],a=i*r,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<o;l++){for(var u=c>>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(r=0|t.words[f])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.q()}i.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var i=0,r=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|r)).toString(16);r=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),o=0!==r||a!==this.length-1?d[6-c.length]+c+o:c+o}for(0!==r&&(o=r.toString(16)+o);o.length%t!==0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],u=f[e];o="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);o=(p=p.idivn(u)).isZero()?m+o:d[l-m.length]+m+o}for(this.isZero()&&(o="0"+o);o.length%t!==0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},r&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(r,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,o){this.q();var i=this.byteLength(),r=o||Math.max(1,i);n(i<=r,"byte array longer than desired length"),n(r>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,r);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype.Y=function(e,t){for(var n=0,o=0,i=0,r=0;i<this.length;i++){var a=this.words[i]<<r|o;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===r?(n<e.length&&(e[n++]=a>>24&255),o=0,r=0):(o=a>>>24,r+=2)}if(n<e.length)for(e[n++]=o;n<e.length;)e[n++]=0},i.prototype.X=function(e,t){for(var n=e.length-1,o=0,i=0,r=0;i<this.length;i++){var a=this.words[i]<<r|o;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===r?(n>=0&&(e[n--]=a>>24&255),o=0,r=0):(o=a>>>24,r+=2)}if(n>=0)for(e[n--]=o;n>=0;)e[n--]=0},Math.clz32?i.prototype.K=function(e){return 32-Math.clz32(e)}:i.prototype.K=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype.Z=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this.K(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this.Z(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.q()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.q()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var o=0;o<n.length;o++)this.words[o]=t.words[o]^n.words[o];if(this!==t)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=t.length,this.q()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this.j(t),o>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return o>0&&(this.words[i]=~this.words[i]&67108863>>26-o),this.q()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var o=e/26|0,i=e%26;return this.j(o+1),this.words[o]=t?this.words[o]|1<<i:this.words[o]&~(1<<i),this.q()},i.prototype.iadd=function(e){var t,n,o;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this.J();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t.J();this.length>e.length?(n=this,o=e):(n=e,o=this);for(var i=0,r=0;r<o.length;r++)t=(0|n.words[r])+(0|o.words[r])+i,this.words[r]=67108863&t,i=t>>>26;for(;0!==i&&r<n.length;r++)t=(0|n.words[r])+i,this.words[r]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t.J()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.J();var n,o,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,o=e):(n=e,o=this);for(var r=0,a=0;a<o.length;a++)r=(t=(0|n.words[a])-(0|o.words[a])+r)>>26,this.words[a]=67108863&t;for(;0!==r&&a<n.length;a++)r=(t=(0|n.words[a])+r)>>26,this.words[a]=67108863&t;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.q()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var o,i,r,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,w=0|a[2],g=8191&w,b=w>>>13,y=0|a[3],v=8191&y,A=y>>>13,k=0|a[4],x=8191&k,T=k>>>13,E=0|a[5],C=8191&E,I=E>>>13,S=0|a[6],N=8191&S,B=S>>>13,M=0|a[7],R=8191&M,P=M>>>13,U=0|a[8],O=8191&U,L=U>>>13,D=0|a[9],F=8191&D,H=D>>>13,q=0|s[0],V=8191&q,z=q>>>13,W=0|s[1],j=8191&W,G=W>>>13,J=0|s[2],Y=8191&J,X=J>>>13,Q=0|s[3],K=8191&Q,Z=Q>>>13,_=0|s[4],$=8191&_,ee=_>>>13,te=0|s[5],ne=8191&te,oe=te>>>13,ie=0|s[6],re=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var we=(l+(o=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,V)|0))<<13)|0;l=((r=Math.imul(h,z))+(i>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(p,V),i=(i=Math.imul(p,z))+Math.imul(m,V)|0,r=Math.imul(m,z);var ge=(l+(o=o+Math.imul(d,j)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,j)|0))<<13)|0;l=((r=r+Math.imul(h,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,o=Math.imul(g,V),i=(i=Math.imul(g,z))+Math.imul(b,V)|0,r=Math.imul(b,z),o=o+Math.imul(p,j)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,j)|0,r=r+Math.imul(m,G)|0;var be=(l+(o=o+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Y)|0))<<13)|0;l=((r=r+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(v,V),i=(i=Math.imul(v,z))+Math.imul(A,V)|0,r=Math.imul(A,z),o=o+Math.imul(g,j)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,j)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,r=r+Math.imul(m,X)|0;var ye=(l+(o=o+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(h,K)|0))<<13)|0;l=((r=r+Math.imul(h,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(x,V),i=(i=Math.imul(x,z))+Math.imul(T,V)|0,r=Math.imul(T,z),o=o+Math.imul(v,j)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(A,j)|0,r=r+Math.imul(A,G)|0,o=o+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(b,Y)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var ve=(l+(o=o+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;l=((r=r+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(C,V),i=(i=Math.imul(C,z))+Math.imul(I,V)|0,r=Math.imul(I,z),o=o+Math.imul(x,j)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(T,j)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(A,Y)|0,r=r+Math.imul(A,X)|0,o=o+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,o=o+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,r=r+Math.imul(m,ee)|0;var Ae=(l+(o=o+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(h,ne)|0))<<13)|0;l=((r=r+Math.imul(h,oe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(N,V),i=(i=Math.imul(N,z))+Math.imul(B,V)|0,r=Math.imul(B,z),o=o+Math.imul(C,j)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(I,j)|0,r=r+Math.imul(I,G)|0,o=o+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,Y)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(A,K)|0,r=r+Math.imul(A,Z)|0,o=o+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,$)|0,r=r+Math.imul(b,ee)|0,o=o+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ne)|0,r=r+Math.imul(m,oe)|0;var ke=(l+(o=o+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,re)|0))<<13)|0;l=((r=r+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(R,V),i=(i=Math.imul(R,z))+Math.imul(P,V)|0,r=Math.imul(P,z),o=o+Math.imul(N,j)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(B,j)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,Y)|0,r=r+Math.imul(I,X)|0,o=o+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(T,K)|0,r=r+Math.imul(T,Z)|0,o=o+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(A,$)|0,r=r+Math.imul(A,ee)|0,o=o+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(b,ne)|0,r=r+Math.imul(b,oe)|0,o=o+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,ae)|0;var xe=(l+(o=o+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((r=r+Math.imul(h,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(O,V),i=(i=Math.imul(O,z))+Math.imul(L,V)|0,r=Math.imul(L,z),o=o+Math.imul(R,j)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(P,j)|0,r=r+Math.imul(P,G)|0,o=o+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(B,Y)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,K)|0,r=r+Math.imul(I,Z)|0,o=o+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,$)|0,r=r+Math.imul(T,ee)|0,o=o+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(A,ne)|0,r=r+Math.imul(A,oe)|0,o=o+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,ae)|0,o=o+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,r=r+Math.imul(m,le)|0;var Te=(l+(o=o+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((r=r+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,V),i=(i=Math.imul(F,z))+Math.imul(H,V)|0,r=Math.imul(H,z),o=o+Math.imul(O,j)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(L,j)|0,r=r+Math.imul(L,G)|0,o=o+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(P,Y)|0,r=r+Math.imul(P,X)|0,o=o+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(B,K)|0,r=r+Math.imul(B,Z)|0,o=o+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,r=r+Math.imul(I,ee)|0,o=o+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(T,ne)|0,r=r+Math.imul(T,oe)|0,o=o+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(A,re)|0,r=r+Math.imul(A,ae)|0,o=o+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(b,ce)|0,r=r+Math.imul(b,le)|0,o=o+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,he)|0;var Ee=(l+(o=o+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((r=r+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,j),i=(i=Math.imul(F,G))+Math.imul(H,j)|0,r=Math.imul(H,G),o=o+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(L,Y)|0,r=r+Math.imul(L,X)|0,o=o+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(P,K)|0,r=r+Math.imul(P,Z)|0,o=o+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(B,$)|0,r=r+Math.imul(B,ee)|0,o=o+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(I,ne)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(T,re)|0,r=r+Math.imul(T,ae)|0,o=o+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(A,ce)|0,r=r+Math.imul(A,le)|0,o=o+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,he)|0;var Ce=(l+(o=o+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((r=r+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(H,Y)|0,r=Math.imul(H,X),o=o+Math.imul(O,K)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,o=o+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,$)|0,r=r+Math.imul(P,ee)|0,o=o+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(B,ne)|0,r=r+Math.imul(B,oe)|0,o=o+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,re)|0,r=r+Math.imul(I,ae)|0,o=o+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(T,ce)|0,r=r+Math.imul(T,le)|0,o=o+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(A,de)|0,r=r+Math.imul(A,he)|0;var Ie=(l+(o=o+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((r=r+Math.imul(b,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,K),i=(i=Math.imul(F,Z))+Math.imul(H,K)|0,r=Math.imul(H,Z),o=o+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(L,$)|0,r=r+Math.imul(L,ee)|0,o=o+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(P,ne)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(B,re)|0,r=r+Math.imul(B,ae)|0,o=o+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ce)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(T,de)|0,r=r+Math.imul(T,he)|0;var Se=(l+(o=o+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((r=r+Math.imul(A,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(H,$)|0,r=Math.imul(H,ee),o=o+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(L,ne)|0,r=r+Math.imul(L,oe)|0,o=o+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(P,re)|0,r=r+Math.imul(P,ae)|0,o=o+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(B,ce)|0,r=r+Math.imul(B,le)|0,o=o+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,de)|0,r=r+Math.imul(I,he)|0;var Ne=(l+(o=o+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(T,pe)|0))<<13)|0;l=((r=r+Math.imul(T,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,o=Math.imul(F,ne),i=(i=Math.imul(F,oe))+Math.imul(H,ne)|0,r=Math.imul(H,oe),o=o+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,ae)|0,o=o+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(P,ce)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(N,de)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(B,de)|0,r=r+Math.imul(B,he)|0;var Be=(l+(o=o+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((r=r+Math.imul(I,me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,o=Math.imul(F,re),i=(i=Math.imul(F,ae))+Math.imul(H,re)|0,r=Math.imul(H,ae),o=o+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(L,ce)|0,r=r+Math.imul(L,le)|0,o=o+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(P,de)|0,r=r+Math.imul(P,he)|0;var Me=(l+(o=o+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(B,pe)|0))<<13)|0;l=((r=r+Math.imul(B,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,ce),i=(i=Math.imul(F,le))+Math.imul(H,ce)|0,r=Math.imul(H,le),o=o+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,he)|0;var Re=(l+(o=o+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((r=r+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,de),i=(i=Math.imul(F,he))+Math.imul(H,de)|0,r=Math.imul(H,he);var Pe=(l+(o=o+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((r=r+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ue=(l+(o=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(H,pe)|0))<<13)|0;return l=((r=Math.imul(H,me))+(i>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,c[0]=we,c[1]=ge,c[2]=be,c[3]=ye,c[4]=ve,c[5]=Ae,c[6]=ke,c[7]=xe,c[8]=Te,c[9]=Ee,c[10]=Ce,c[11]=Ie,c[12]=Se,c[13]=Ne,c[14]=Be,c[15]=Me,c[16]=Re,c[17]=Pe,c[18]=Ue,0!==l&&(c[19]=l,n.length++),n};function w(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var o=0,i=0,r=0;r<n.length-1;r++){var a=i;i=0;for(var s=67108863&o,c=Math.min(r,t.length-1),l=Math.max(0,r-e.length+1);l<=c;l++){var u=r-l,d=(0|e.words[u])*(0|t.words[l]),h=67108863&d;s=67108863&(h=h+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,o=a,a=i}return 0!==o?n.words[r]=o:n.length--,n.q()}function g(e,t,n){return w(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?w(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var o=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,a=(67108863&r)+(67108863&o);o>>=26,o+=r/67108864|0,o+=a>>>26,this.words[i]=67108863&a}return 0!==o&&(this.words[i]=o,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var o=n/26|0,i=n%26;t[n]=e.words[o]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,o=0;o<t.length&&0===t[o];o++,n=n.sqr());if(++o<t.length)for(var r=n.sqr();o<t.length;o++,r=r.sqr())0!==t[o]&&(n=n.mul(r));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,o=e%26,i=(e-o)/26,r=67108863>>>26-o<<26-o;if(0!==o){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&r,c=(0|this.words[t])-s<<o;this.words[t]=c|a,a=s>>>26-o}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.q()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,o){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var r=e%26,a=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<<r,c=o;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-r|d>>>r,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.ishrn=function(e,t,o){return n(0===this.negative),this.iushrn(e,t,o)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,i=1<<t;return!(this.length<=o||!(this.words[o]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this.V(e)},i.prototype.V=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.q()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._=function(e,t,o){var i,r,a=e.length+o;this.j(a);var s=0;for(i=0;i<e.length;i++){r=(0|this.words[i+o])+s;var c=(0|e.words[i])*t;s=((r-=67108863&c)>>26)-(c/67108864|0),this.words[i+o]=67108863&r}for(;i<this.length-o;i++)s=(r=(0|this.words[i+o])+s)>>26,this.words[i+o]=67108863&r;if(0===s)return this.q();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(r=-(0|this.words[i])+s)>>26,this.words[i]=67108863&r;return this.negative=1,this.q()},i.prototype.$=function(e,t){var n=(this.length,e.length),o=this.clone(),r=e,a=0|r.words[r.length-1];0!=(n=26-this.K(a))&&(r=r.ushln(n),o.iushln(n),a=0|r.words[r.length-1]);var s,c=o.length-r.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=o.clone()._(r,1,c);0===u.negative&&(o=u,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|o.words[r.length+d])+(0|o.words[r.length+d-1]);for(h=Math.min(h/a|0,67108863),o._(r,h,d);0!==o.negative;)h--,o.negative=0,o._(r,1,d),o.isZero()||(o.negative^=1);s&&(s.words[d]=h)}return s&&s.q(),o.q(),"div"!==t&&0!==n&&o.iushrn(n),{div:s||null,mod:o}},i.prototype.divmod=function(e,t,o){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),o&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),o&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this.$(e,t);var r,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),i=e.andln(1),r=n.cmp(o);return r<0||1===i&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var o=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(o*i+(0|this.words[r]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var o=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*o;this.words[i]=r/e|0,o=r%e}return this.q(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new i(1),a=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++l;for(var u=o.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(d)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(o.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(o.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(s),a.isub(c)):(o.isub(t),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:o.iushln(l)}},i.prototype.ee=function(e){n(0===e.negative),n(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,a=new i(1),s=new i(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(o.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(o.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(o)>=0?(t.isub(o),a.isub(s)):(o.isub(t),s.isub(a))}return(r=0===t.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(e),r},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var o=0;t.isEven()&&n.isEven();o++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var r=t;t=n,n=r}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(o)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,o=(e-t)/26,i=1<<t;if(this.length<=o)return this.j(o+1),this.words[o]|=i,this;for(var r=i,a=o;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.q(),this.length>1)t=1;else{o&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var o=0|this.words[n],i=0|e.words[n];if(o!==i){o<i?t=-1:o>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this).te(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype.te=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this.te(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ne(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ne(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red.oe(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red.oe(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red.oe(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red.oe(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red.oe(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red.oe(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this.ie()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i.re(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.ee(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)}y.prototype.ie=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t<this.n?-1:n.ucmp(this.p);return 0===o?(n.words[0]=0,n.length=1):o>0?n.isub(this.p):void 0!==n.strip?n.strip():n.q(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},o(v,y),v.prototype.split=function(e,t){for(var n=4194303,o=Math.min(e.length,9),i=0;i<o;i++)t.words[i]=e.words[i];if(t.length=o,e.length<=9)return e.words[0]=0,void(e.length=1);var r=e.words[9];for(t.words[t.length++]=r&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&n)<<4|r>>>22,r=a}r>>>=22,e.words[i-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var o=0|e.words[n];t+=977*o,e.words[n]=67108863&t,t=64*o+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(A,y),o(k,y),o(x,y),x.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var o=19*(0|e.words[n])+t,i=67108863&o;o>>>=26,e.words[n]=i,t=o}return 0!==t&&(e.words[e.length++]=t),e},i.re=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return b[e]=t,t},T.prototype.oe=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype.ne=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e).te(this):(l(e,e.umod(this.m).te(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e).te(this)},T.prototype.add=function(e,t){this.ne(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n.te(this)},T.prototype.iadd=function(e,t){this.ne(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this.ne(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n.te(this)},T.prototype.isub=function(e,t){this.ne(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this.oe(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this.ne(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this.ne(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var o=this.m.add(new i(1)).iushrn(2);return this.pow(e,o)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=a;0!==f.cmp(s);){for(var m=f,w=0;0!==m.cmp(s);w++)m=m.redSqr();n(w<p);var g=this.pow(d,new i(1).iushln(p-w-1));h=h.redMul(g),d=g.redSqr(),f=f.redMul(d),p=w}return h},T.prototype.invm=function(e){var t=e.ee(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var o=2;o<n.length;o++)n[o]=this.mul(n[o-1],e);var r=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),o=t.length-1;o>=0;o--){for(var l=t.words[o],u=c-1;u>=0;u--){var d=l>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===o&&0===u)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},o(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(o).iushrn(this.shift),r=i;return i.cmp(this.m)>=0?r=i.isub(this.m):i.cmpn(0)<0&&(r=i.iadd(this.m)),r.te(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0).te(this);var n=e.mul(t),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(o).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a.te(this)},E.prototype.invm=function(e){return this.imod(e.ee(this.m).mul(this.r2)).te(this)}}(0,ur)),sr.exports}const hr=/* @__PURE__ */Oi(dr());var fr,pr,mr,wr,gr,br={exports:{}};function yr(){if(gr)return wr;gr=1;var e=function(){if(mr)return pr;mr=1;var e=(fr||(fr=1,function(e,t){var n=Wi(),o=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function r(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=r),r.prototype=Object.create(o.prototype),i(o,r),r.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},r.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(br,br.exports)),br.exports).Buffer;return pr=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),o=0;o<n.length;o++)n[o]=255;for(var i=0;i<t.length;i++){var r=t.charAt(i),a=r.charCodeAt(0);if(255!==n[a])throw new TypeError(r+" is ambiguous");n[a]=i}var s=t.length,c=t.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return e.alloc(0);for(var o=0,i=0,r=0;t[o]===c;)i++,o++;for(var a=(t.length-o)*l+1>>>0,u=new Uint8Array(a);o<t.length;){var d=t.charCodeAt(o);if(d>255)return;var h=n[d];if(255===h)return;for(var f=0,p=a-1;(0!==h||f<r)&&-1!==p;p--,f++)h+=s*u[p]>>>0,u[p]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");r=f,o++}for(var m=a-r;m!==a&&0===u[m];)m++;var w=e.allocUnsafe(i+(a-m));w.fill(0,0,i);for(var g=i;m!==a;)w[g++]=u[m++];return w}return{encode:function(n){if((Array.isArray(n)||n instanceof Uint8Array)&&(n=e.from(n)),!e.isBuffer(n))throw new TypeError("Expected Buffer");if(0===n.length)return"";for(var o=0,i=0,r=0,a=n.length;r!==a&&0===n[r];)r++,o++;for(var l=(a-r)*u+1>>>0,d=new Uint8Array(l);r!==a;){for(var h=n[r],f=0,p=l-1;(0!==h||f<i)&&-1!==p;p--,f++)h+=256*d[p]>>>0,d[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=f,r++}for(var m=l-i;m!==l&&0===d[m];)m++;for(var w=c.repeat(o);m<l;++m)w+=t.charAt(d[m]);return w},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw new Error("Non-base"+s+" character")}}},pr}();return wr=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const vr=/* @__PURE__ */Oi(yr());var Ar={};function kr(e,t,n){return t<=e&&e<=n}function xr(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Tr(e){this.tokens=[].slice.call(e)}Tr.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Er=-1;function Cr(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Ir="utf-8";function Sr(e,t){if(!(this instanceof Sr))return new Sr(e,t);if((e=void 0!==e?String(e).toLowerCase():Ir)!==Ir)throw new Error("Encoding not supported. Only utf-8 is supported");t=xr(t),this.ae=!1,this.se=!1,this.ce=null,this.le=Boolean(t.fatal),this.ue=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.le}),Object.defineProperty(this,"ignoreBOM",{value:this.ue})}function Nr(e,t){if(!(this instanceof Nr))return new Nr(e,t);if((e=void 0!==e?String(e).toLowerCase():Ir)!==Ir)throw new Error("Encoding not supported. Only utf-8 is supported");t=xr(t),this.ae=!1,this.de=null,this.he={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function Br(e){var t=e.fatal,n=0,o=0,i=0,r=128,a=191;this.handler=function(e,s){if(-1===s&&0!==i)return i=0,Cr(t);if(-1===s)return Er;if(0===i){if(kr(s,0,127))return s;if(kr(s,194,223))i=1,n=s-192;else if(kr(s,224,239))224===s&&(r=160),237===s&&(a=159),i=2,n=s-224;else{if(!kr(s,240,244))return Cr(t);240===s&&(r=144),244===s&&(a=143),i=3,n=s-240}return n<<=6*i,null}if(!kr(s,r,a))return n=i=o=0,r=128,a=191,e.prepend(s),Cr(t);if(r=128,a=191,n+=s-128<<6*(i-(o+=1)),o!==i)return null;var c=n;return n=i=o=0,c}}function Mr(e){e.fatal,this.handler=function(e,t){if(-1===t)return Er;if(kr(t,0,127))return t;var n,o;kr(t,128,2047)?(n=1,o=192):kr(t,2048,65535)?(n=2,o=224):kr(t,65536,1114111)&&(n=3,o=240);for(var i=[(t>>6*n)+o];n>0;){var r=t>>6*(n-1);i.push(128|63&r),n-=1}return i}}Sr.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=xr(t),this.ae||(this.ce=new Br({fatal:this.le}),this.se=!1),this.ae=Boolean(t.stream);for(var o,i=new Tr(n),r=[];!i.endOfStream()&&(o=this.ce.handler(i,i.read()))!==Er;)null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o));if(!this.ae){do{if((o=this.ce.handler(i,i.read()))===Er)break;null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o))}while(!i.endOfStream());this.ce=null}return r.length&&(-1===["utf-8"].indexOf(this.encoding)||this.ue||this.se||(65279===r[0]?(this.se=!0,r.shift()):this.se=!0)),function(e){for(var t="",n=0;n<e.length;++n){var o=e[n];o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o)))}return t}(r)}},Nr.prototype={encode:function(e,t){e=e?String(e):"",t=xr(t),this.ae||(this.de=new Mr(this.he)),this.ae=Boolean(t.stream);for(var n,o=[],i=new Tr(function(e){for(var t=String(e),n=t.length,o=0,i=[];o<n;){var r=t.charCodeAt(o);if(r<55296||r>57343)i.push(r);else if(56320<=r&&r<=57343)i.push(65533);else if(55296<=r&&r<=56319)if(o===n-1)i.push(65533);else{var a=e.charCodeAt(o+1);if(56320<=a&&a<=57343){var s=1023&r,c=1023&a;i.push(65536+(s<<10)+c),o+=1}else i.push(65533)}o+=1}return i}(e));!i.endOfStream()&&(n=this.de.handler(i,i.read()))!==Er;)Array.isArray(n)?o.push.apply(o,n):o.push(n);if(!this.ae){for(;(n=this.de.handler(i,i.read()))!==Er;)Array.isArray(n)?o.push.apply(o,n):o.push(n);this.de=null}return new Uint8Array(o)}};const Rr=/* @__PURE__ */Li(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,TextDecoder:Sr,TextEncoder:Nr},Symbol.toStringTag,{value:"Module"})));var Pr,Ur,Or=function(){if(Pr)return Ar;Pr=1;var e=Ar&&Ar.fe||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),t=Ar&&Ar.pe||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ar&&Ar.me||function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},o=Ar&&Ar.we||function(n){if(n&&n.S)return n;var o={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(o,n,i);return t(o,n),o},i=Ar&&Ar.ge||function(e){return e&&e.S?e:{default:e}};Object.defineProperty(Ar,"S",{value:!0}),Ar.deserializeUnchecked=Ar.deserialize=Ar.serialize=Ar.BinaryReader=Ar.BinaryWriter=Ar.BorshError=Ar.baseDecode=Ar.baseEncode=void 0;const r=i(dr()),a=i(yr()),s=o(Rr),c=new("function"!=typeof TextDecoder?s.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Ar.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),a.default.encode(Buffer.from(e))},Ar.baseDecode=function(e){return Buffer.from(a.default.decode(e))};const l=1024;class u extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ar.BorshError=u;class d{constructor(){this.buf=Buffer.alloc(l),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(l)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(l)]),this.length+=e.length}writeString(e){this.maybeResize();const t=Buffer.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const n of e)this.maybeResize(),t(n)}toArray(){return this.buf.subarray(0,this.length)}}function h(e,t,n){const o=n.value;n.value=function(...e){try{return o.apply(this,e)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new u("Reached the end of buffer when deserializing")}throw t}}}Ar.BinaryWriter=d;class f{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new r.default(e,"le")}readU128(){const e=this.readBuffer(16);return new r.default(e,"le")}readU256(){const e=this.readBuffer(32);return new r.default(e,"le")}readU512(){const e=this.readBuffer(64);return new r.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new u(`Expected buffer length ${e} isn't within bounds`);const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return c.decode(t)}catch(n){throw new u(`Error decoding UTF-8 string: ${n}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),n=Array();for(let o=0;o<t;++o)n.push(e());return n}}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,n,o,i){try{if("string"==typeof o)i[`write${p(o)}`](n);else if(o instanceof Array)if("number"==typeof o[0]){if(n.length!==o[0])throw new u(`Expecting byte array of length ${o[0]}, but got ${n.length} bytes`);i.writeFixedArray(n)}else if(2===o.length&&"number"==typeof o[1]){if(n.length!==o[1])throw new u(`Expecting byte array of length ${o[1]}, but got ${n.length} bytes`);for(let t=0;t<o[1];t++)m(e,null,n[t],o[0],i)}else i.writeArray(n,n=>{m(e,t,n,o[0],i)});else if(void 0!==o.kind)switch(o.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),m(e,t,n,o.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,r)=>{m(e,t,r,o.key,i),m(e,t,n,o.value,i)});break;default:throw new u(`FieldType ${o} unrecognized`)}else w(e,n,i)}catch(r){throw r instanceof u&&r.addToFieldPath(t),r}}function w(e,t,n){if("function"==typeof t.borshSerialize)return void t.borshSerialize(n);const o=e.get(t.constructor);if(!o)throw new u(`Class ${t.constructor.name} is missing in schema`);if("struct"===o.kind)o.fields.map(([o,i])=>{m(e,o,t[o],i,n)});else{if("enum"!==o.kind)throw new u(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`);{const i=t[o.field];for(let r=0;r<o.values.length;++r){const[a,s]=o.values[r];if(a===i){n.writeU8(r),m(e,a,t[a],s,n);break}}}}}function g(e,t,n,o){try{if("string"==typeof n)return o[`read${p(n)}`]();if(n instanceof Array){if("number"==typeof n[0])return o.readFixedArray(n[0]);if("number"==typeof n[1]){const t=[];for(let i=0;i<n[1];i++)t.push(g(e,null,n[0],o));return t}return o.readArray(()=>g(e,t,n[0],o))}if("option"===n.kind)return o.readU8()?g(e,t,n.type,o):void 0;if("map"===n.kind){let i=/* @__PURE__ */new Map;const r=o.readU32();for(let a=0;a<r;a++){const r=g(e,t,n.key,o),a=g(e,t,n.value,o);i.set(r,a)}return i}return b(e,n,o)}catch(i){throw i instanceof u&&i.addToFieldPath(t),i}}function b(e,t,n){if("function"==typeof t.borshDeserialize)return t.borshDeserialize(n);const o=e.get(t);if(!o)throw new u(`Class ${t.name} is missing in schema`);if("struct"===o.kind){const o={};for(const[i,r]of e.get(t).fields)o[i]=g(e,i,r,n);return new t(o)}if("enum"===o.kind){const i=n.readU8();if(i>=o.values.length)throw new u(`Enum index: ${i} is out of range`);const[r,a]=o.values[i],s=g(e,r,a,n);return new t({[r]:s})}throw new u(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`)}return n([h],f.prototype,"readU8",null),n([h],f.prototype,"readU16",null),n([h],f.prototype,"readU32",null),n([h],f.prototype,"readU64",null),n([h],f.prototype,"readU128",null),n([h],f.prototype,"readU256",null),n([h],f.prototype,"readU512",null),n([h],f.prototype,"readString",null),n([h],f.prototype,"readFixedArray",null),n([h],f.prototype,"readArray",null),Ar.BinaryReader=f,Ar.serialize=function(e,t,n=d){const o=new n;return w(e,t,o),o.toArray()},Ar.deserialize=function(e,t,n,o=f){const i=new o(n),r=b(e,t,i);if(i.offset<n.length)throw new u(`Unexpected ${n.length-i.offset} bytes after deserialized data`);return r},Ar.deserializeUnchecked=function(e,t,n,o=f){return b(e,t,new o(n))},Ar}(),Lr={},Dr=function(){if(Ur)return Lr;Ur=1,Object.defineProperty(Lr,"S",{value:!0}),Lr.s16=Lr.s8=Lr.nu64be=Lr.u48be=Lr.u40be=Lr.u32be=Lr.u24be=Lr.u16be=Lr.nu64=Lr.u48=Lr.u40=Lr.u32=Lr.u24=Lr.u16=Lr.u8=Lr.offset=Lr.greedy=Lr.Constant=Lr.UTF8=Lr.CString=Lr.Blob=Lr.Boolean=Lr.BitField=Lr.BitStructure=Lr.VariantLayout=Lr.Union=Lr.UnionLayoutDiscriminator=Lr.UnionDiscriminator=Lr.Structure=Lr.Sequence=Lr.DoubleBE=Lr.Double=Lr.FloatBE=Lr.Float=Lr.NearInt64BE=Lr.NearInt64=Lr.NearUInt64BE=Lr.NearUInt64=Lr.IntBE=Lr.Int=Lr.UIntBE=Lr.UInt=Lr.OffsetLayout=Lr.GreedyCount=Lr.ExternalLayout=Lr.bindConstructorLayout=Lr.nameWithProperty=Lr.Layout=Lr.uint8ArrayToBuffer=Lr.checkUint8Array=void 0,Lr.constant=Lr.utf8=Lr.cstr=Lr.blob=Lr.unionLayoutDiscriminator=Lr.union=Lr.seq=Lr.bits=Lr.struct=Lr.f64be=Lr.f64=Lr.f32be=Lr.f32=Lr.ns64be=Lr.s48be=Lr.s40be=Lr.s32be=Lr.s24be=Lr.s16be=Lr.ns64=Lr.s48=Lr.s40=Lr.s32=Lr.s24=void 0;const e=Wi();function t(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function n(n){return t(n),e.Buffer.from(n.buffer,n.byteOffset,n.length)}Lr.checkUint8Array=t,Lr.uint8ArrayToBuffer=n;let o=class{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}};function i(e,t){return t.property?e+"["+t.property+"]":e}Lr.Layout=o,Lr.nameWithProperty=i,Lr.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof o))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,n)=>t.decode(e,n),writable:!0})};class r extends o{isCount(){throw new Error("ExternalLayout is abstract")}}Lr.ExternalLayout=r;class a extends r{constructor(e=1,t){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,n=0){t(e);const o=e.length-n;return Math.floor(o/this.elementSpan)}encode(e,t,n){return 0}}Lr.GreedyCount=a;class s extends r{constructor(e,t=0,n){if(!(e instanceof o))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,n||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof c||this.layout instanceof l}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,n=0){return this.layout.encode(e,t,n+this.offset)}}Lr.OffsetLayout=s;class c extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntLE(t,this.span)}encode(e,t,o=0){return n(t).writeUIntLE(e,o,this.span),this.span}}Lr.UInt=c;class l extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntBE(t,this.span)}encode(e,t,o=0){return n(t).writeUIntBE(e,o,this.span),this.span}}Lr.UIntBE=l;class u extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntLE(t,this.span)}encode(e,t,o=0){return n(t).writeIntLE(e,o,this.span),this.span}}Lr.Int=u;class d extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntBE(t,this.span)}encode(e,t,o=0){return n(t).writeIntBE(e,o,this.span),this.span}}Lr.IntBE=d;const h=Math.pow(2,32);function f(e){const t=Math.floor(e/h);return{hi32:t,lo32:e-t*h}}function p(e,t){return e*h+t}class m extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e),i=o.readUInt32LE(t);return p(o.readUInt32LE(t+4),i)}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32LE(i.lo32,o),r.writeUInt32LE(i.hi32,o+4),8}}Lr.NearUInt64=m;class w extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e);return p(o.readUInt32BE(t),o.readUInt32BE(t+4))}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32BE(i.hi32,o),r.writeUInt32BE(i.lo32,o+4),8}}Lr.NearUInt64BE=w;class g extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e),i=o.readUInt32LE(t);return p(o.readInt32LE(t+4),i)}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32LE(i.lo32,o),r.writeInt32LE(i.hi32,o+4),8}}Lr.NearInt64=g;class b extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e);return p(o.readInt32BE(t),o.readUInt32BE(t+4))}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeInt32BE(i.hi32,o),r.writeUInt32BE(i.lo32,o+4),8}}Lr.NearInt64BE=b;class y extends o{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatLE(t)}encode(e,t,o=0){return n(t).writeFloatLE(e,o),4}}Lr.Float=y;class v extends o{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatBE(t)}encode(e,t,o=0){return n(t).writeFloatBE(e,o),4}}Lr.FloatBE=v;class A extends o{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleLE(t)}encode(e,t,o=0){return n(t).writeDoubleLE(e,o),8}}Lr.Double=A;class k extends o{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleBE(t)}encode(e,t,o=0){return n(t).writeDoubleBE(e,o),8}}Lr.DoubleBE=k;class x extends o{constructor(e,t,n){if(!(e instanceof o))throw new TypeError("elementLayout must be a Layout");if(!(t instanceof r&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;!(t instanceof r)&&0<e.span&&(i=t*e.span),super(i,n),this.elementLayout=e,this.count=t}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0,o=this.count;if(o instanceof r&&(o=o.decode(e,t)),0<this.elementLayout.span)n=o*this.elementLayout.span;else{let i=0;for(;i<o;)n+=this.elementLayout.getSpan(e,t+n),++i}return n}decode(e,t=0){const n=[];let o=0,i=this.count;for(i instanceof r&&(i=i.decode(e,t));o<i;)n.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),o+=1;return n}encode(e,t,n=0){const o=this.elementLayout,i=e.reduce((e,i)=>e+o.encode(i,t,n+e),0);return this.count instanceof r&&this.count.encode(e.length,t,n),i}}Lr.Sequence=x;class T extends o{constructor(e,t,n){if(!Array.isArray(e)||!e.reduce((e,t)=>e&&t instanceof o,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===n&&(n=t,t=void 0);for(const o of e)if(0>o.span&&void 0===o.property)throw new Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=e.reduce((e,t)=>e+t.getSpan(),0)}catch(r){}super(i,t),this.fields=e,this.decodePrefixes=!!n}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,o)=>{const i=o.getSpan(e,t);return t+=i,n+i},0)}catch(o){throw new RangeError("indeterminate span")}return n}decode(e,n=0){t(e);const o=this.makeDestinationObject();for(const t of this.fields)if(void 0!==t.property&&(o[t.property]=t.decode(e,n)),n+=t.getSpan(e,n),this.decodePrefixes&&e.length===n)break;return o}encode(e,t,n=0){const o=n;let i=0,r=0;for(const a of this.fields){let o=a.span;if(r=0<o?o:0,void 0!==a.property){const i=e[a.property];void 0!==i&&(r=a.encode(i,t,n),0>o&&(o=a.getSpan(t,n)))}i=n,n+=o}return i+r-o}fromArray(e){const t=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<e.length&&(t[n.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw new TypeError("property must be string");let t=0;for(const n of this.fields){if(n.property===e)return t;0>n.span?t=-1:0<=t&&(t+=n.span)}}}Lr.Structure=T;class E{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,n){throw new Error("UnionDiscriminator is abstract")}}Lr.UnionDiscriminator=E;class C extends E{constructor(e,t){if(!(e instanceof r&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,n){return this.layout.encode(e,t,n)}}Lr.UnionLayoutDiscriminator=C;class I extends o{constructor(e,t,n){let i;if(e instanceof c||e instanceof l)i=new C(new s(e));else if(e instanceof r&&e.isCount())i=new C(e);else{if(!(e instanceof E))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===t&&(t=null),!(null===t||t instanceof o))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let a=-1;t&&(a=t.span,0<=a&&(e instanceof c||e instanceof l)&&(a+=i.layout.span)),super(a,n),this.discriminator=i,this.usesPrefixDiscriminator=e instanceof c||e instanceof l,this.defaultLayout=t,this.registry={};let u=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return u(e)},this.configGetSourceVariant=function(e){u=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;const n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const n=this.registry[t];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}decode(e,t=0){let n;const o=this.discriminator,i=o.decode(e,t),r=this.registry[i];if(void 0===r){const r=this.defaultLayout;let a=0;this.usesPrefixDiscriminator&&(a=o.layout.span),n=this.makeDestinationObject(),n[o.property]=i,n[r.property]=r.decode(e,t+a)}else n=r.decode(e,t);return n}encode(e,t,n=0){const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,i=this.defaultLayout;let r=0;return this.usesPrefixDiscriminator&&(r=o.layout.span),o.encode(e[o.property],t,n),r+i.encode(e[i.property],t,n+r)}return o.encode(e,t,n)}addVariant(e,t,n){const o=new S(this,e,t,n);return this.registry[e]=o,o}getVariant(e,t=0){let n;return n=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[n]}}Lr.Union=I;class S extends o{constructor(e,t,n,i){if(!(e instanceof I))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof o))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}let r=e.span;0>e.span&&(r=n?n.span:0,0<=r&&e.usesPrefixDiscriminator&&(r+=e.discriminator.layout.span)),super(r,i),this.union=e,this.variant=t,this.layout=n||null}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let o=0;return this.layout&&(o=this.layout.getSpan(e,t+n)),n+o}decode(e,t=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+o):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(e,t,n=0){let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);let i=o;if(this.layout&&(this.layout.encode(e[this.property],t,n+o),i+=this.layout.getSpan(t,n+o),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function N(e){return 0>e&&(e+=4294967296),e}Lr.VariantLayout=S;class B extends o{constructor(e,t,n){if(!(e instanceof c||e instanceof l))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===n&&(n=t,t=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,n),this.word=e,this.msb=!!t,this.fields=[];let o=0;this.be=function(e){return o=N(e),this},this.ye=function(){return o}}decode(e,t=0){const n=this.makeDestinationObject(),o=this.word.decode(e,t);this.be(o);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(e));return n}encode(e,t,n=0){const o=this.word.decode(t,n);this.be(o);for(const i of this.fields)if(void 0!==i.property){const t=e[i.property];void 0!==t&&i.encode(t)}return this.word.encode(this.ye(),t,n)}addField(e,t){const n=new M(this,e,t);return this.fields.push(n),n}addBoolean(e){const t=new R(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}}Lr.BitStructure=B;class M{constructor(e,t,n){if(!(e instanceof B))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw new TypeError("bits must be positive integer");const o=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>o)throw new Error("bits too long for span remainder ("+(o-i)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=o-i-t),this.wordMask=N(this.valueMask<<this.start),this.property=n}decode(e,t){return N(this.container.ye()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==N(e&this.valueMask))throw new TypeError(i("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container.ye(),n=N(e<<this.start);this.container.be(N(t&~this.wordMask)|n)}}Lr.BitField=M;class R extends M{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}Lr.Boolean=R;class P extends o{constructor(e,t){if(!(e instanceof r&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;e instanceof r||(n=e),super(n,t),this.length=e}getSpan(e,t){let n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}decode(e,t=0){let o=this.span;return 0>o&&(o=this.length.decode(e,t)),n(e).slice(t,t+o)}encode(e,t,o){let a=this.length;if(this.length instanceof r&&(a=e.length),!(e instanceof Uint8Array&&a===e.length))throw new TypeError(i("Blob.encode",this)+" requires (length "+a+") Uint8Array as src");if(o+a>t.length)throw new RangeError("encoding overruns Uint8Array");const s=n(e);return n(t).write(s.toString("hex"),o,a,"hex"),this.length instanceof r&&this.length.encode(a,t,o),a}}Lr.Blob=P;class U extends o{constructor(e){super(-1,e)}getSpan(e,n=0){t(e);let o=n;for(;o<e.length&&0!==e[o];)o+=1;return 1+o-n}decode(e,t=0){const o=this.getSpan(e,t);return n(e).slice(t,t+o-1).toString("utf-8")}encode(t,o,i=0){"string"!=typeof t&&(t=String(t));const r=e.Buffer.from(t,"utf8"),a=r.length;if(i+a>o.length)throw new RangeError("encoding overruns Buffer");const s=n(o);return r.copy(s,i),s[i+a]=0,a+1}}Lr.CString=U;class O extends o{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,n=0){return t(e),e.length-n}decode(e,t=0){const o=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");return n(e).slice(t,t+o).toString("utf-8")}encode(t,o,i=0){"string"!=typeof t&&(t=String(t));const r=e.Buffer.from(t,"utf8"),a=r.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(i+a>o.length)throw new RangeError("encoding overruns Buffer");return r.copy(n(o),i),a}}Lr.UTF8=O;class L extends o{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,n){return 0}}return Lr.Constant=L,Lr.greedy=(e,t)=>new a(e,t),Lr.offset=(e,t,n)=>new s(e,t,n),Lr.u8=e=>new c(1,e),Lr.u16=e=>new c(2,e),Lr.u24=e=>new c(3,e),Lr.u32=e=>new c(4,e),Lr.u40=e=>new c(5,e),Lr.u48=e=>new c(6,e),Lr.nu64=e=>new m(e),Lr.u16be=e=>new l(2,e),Lr.u24be=e=>new l(3,e),Lr.u32be=e=>new l(4,e),Lr.u40be=e=>new l(5,e),Lr.u48be=e=>new l(6,e),Lr.nu64be=e=>new w(e),Lr.s8=e=>new u(1,e),Lr.s16=e=>new u(2,e),Lr.s24=e=>new u(3,e),Lr.s32=e=>new u(4,e),Lr.s40=e=>new u(5,e),Lr.s48=e=>new u(6,e),Lr.ns64=e=>new g(e),Lr.s16be=e=>new d(2,e),Lr.s24be=e=>new d(3,e),Lr.s32be=e=>new d(4,e),Lr.s40be=e=>new d(5,e),Lr.s48be=e=>new d(6,e),Lr.ns64be=e=>new b(e),Lr.f32=e=>new y(e),Lr.f32be=e=>new v(e),Lr.f64=e=>new A(e),Lr.f64be=e=>new k(e),Lr.struct=(e,t,n)=>new T(e,t,n),Lr.bits=(e,t,n)=>new B(e,t,n),Lr.seq=(e,t,n)=>new x(e,t,n),Lr.union=(e,t,n)=>new I(e,t,n),Lr.unionLayoutDiscriminator=(e,t)=>new C(e,t),Lr.blob=(e,t)=>new P(e,t),Lr.cstr=e=>new U(e),Lr.utf8=(e,t)=>new O(e,t),Lr.constant=(e,t)=>new L(e,t),Lr}(),Fr=1,Hr=2,qr=3,Vr=4,zr=5,Wr=6,jr=7,Gr=8,Jr=9,Yr=10,Xr=-32700,Qr=-32603,Kr=-32602,Zr=-32601,_r=-32600,$r=-32016,ea=-32015,ta=-32014,na=-32013,oa=-32012,ia=-32011,ra=-32010,aa=-32009,sa=-32008,ca=-32007,la=-32006,ua=-32005,da=-32004,ha=-32003,fa=-32002,pa=-32001,ma=28e5,wa=2800001,ga=2800002,ba=2800003,ya=2800004,va=2800005,Aa=2800006,ka=2800007,xa=2800008,Ta=2800009,Ea=2800010,Ca=2800011,Ia=323e4,Sa=32300001,Na=3230002,Ba=3230003,Ma=3230004,Ra=361e4,Pa=3610001,Ua=3610002,Oa=3610003,La=3610004,Da=3610005,Fa=3610006,Ha=3610007,qa=3611e3,Va=3704e3,za=3704001,Wa=3704002,ja=3704003,Ga=3704004,Ja=4128e3,Ya=4128001,Xa=4128002,Qa=4615e3,Ka=4615001,Za=4615002,_a=4615003,$a=4615004,es=4615005,ts=4615006,ns=4615007,os=4615008,is=4615009,rs=4615010,as=4615011,ss=4615012,cs=4615013,ls=4615014,us=4615015,ds=4615016,hs=4615017,fs=4615018,ps=4615019,ms=4615020,ws=4615021,gs=4615022,bs=4615023,ys=4615024,vs=4615025,As=4615026,ks=4615027,xs=4615028,Ts=4615029,Es=4615030,Cs=4615031,Is=4615032,Ss=4615033,Ns=4615034,Bs=4615035,Ms=4615036,Rs=4615037,Ps=4615038,Us=4615039,Os=4615040,Ls=4615041,Ds=4615042,Fs=4615043,Hs=4615044,qs=4615045,Vs=4615046,zs=4615047,Ws=4615048,js=4615049,Gs=4615050,Js=4615051,Ys=4615052,Xs=4615053,Qs=4615054,Ks=5508e3,Zs=5508001,_s=5508002,$s=5508003,ec=5508004,tc=5508005,nc=5508006,oc=5508007,ic=5508008,rc=5508009,ac=5508010,sc=5508011,cc=5663e3,lc=5663001,uc=5663002,dc=5663003,hc=5663004,fc=5663005,pc=5663006,mc=5663007,wc=5663008,gc=5663009,bc=5663010,yc=5663011,vc=5663012,Ac=5663013,kc=5663014,xc=5663015,Tc=5663016,Ec=5663017,Cc=5663018,Ic=5663019,Sc=5663020,Nc=705e4,Bc=7050001,Mc=7050002,Rc=7050003,Pc=7050004,Uc=7050005,Oc=7050006,Lc=7050007,Dc=7050008,Fc=7050009,Hc=7050010,qc=7050011,Vc=7050012,zc=7050013,Wc=7050014,jc=7050015,Gc=7050016,Jc=7050017,Yc=7050018,Xc=7050019,Qc=7050020,Kc=7050021,Zc=7050022,_c=7050023,$c=7050024,el=7050025,tl=7050026,nl=7050027,ol=7050028,il=7050029,rl=7050030,al=7050031,sl=7050032,cl=7050033,ll=7050034,ul=7050035,dl=7050036,hl=8078e3,fl=8078001,pl=8078002,ml=8078003,wl=8078004,gl=8078005,bl=8078006,yl=8078007,vl=8078008,Al=8078009,kl=8078010,xl=8078011,Tl=8078012,El=8078013,Cl=8078014,Il=8078015,Sl=8078016,Nl=8078017,Bl=8078018,Ml=8078019,Rl=8078020,Pl=8078021,Ul=8078022,Ol=81e5,Ll=8100001,Dl=8100002,Fl=8100003,Hl=819e4,ql=8190001,Vl=8190002,zl=8190003,Wl=8190004,jl=99e5,Gl=9900001,Jl=9900002,Yl=9900003,Xl=9900004;function Ql(e){return Array.isArray(e)?"%5B"+e.map(Ql).join("%2C%20")+"%5D":"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function Kl([e,t]){return`${e}=${Ql(t)}`}var Zl={[Ia]:"Account not found at address: $address",[Ma]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Ba]:"Expected decoded account at address: $address",[Na]:"Failed to decode account data at address: $address",[Sa]:"Accounts not found at addresses: $addresses",[Ta]:"Unable to find a viable program address bump seed.",[ga]:"$putativeAddress is not a base58-encoded address.",[ma]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[ba]:"The `CryptoKey` must be an `Ed25519` public key.",[Ca]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[xa]:"Invalid seeds; point must fall off the Ed25519 curve.",[ya]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Aa]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[ka]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[va]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Ea]:"Program address cannot end with PDA marker.",[wa]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Vr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Fr]:"The network has progressed past the last block for which this transaction could have been committed.",[hl]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ul]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Rl]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[gl]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[bl]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[wl]:"Encoder and decoder must either both be fixed-size or variable-size.",[vl]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[pl]:"Expected a fixed-size codec, got a variable-size one.",[El]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[ml]:"Expected a variable-size codec, got a fixed-size one.",[Ml]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[fl]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Bl]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Al]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[kl]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Il]:"Invalid literal union variant. Expected one of [$variants], got $value.",[yl]:"Expected [$codecDescription] to have $expected items, got $actual.",[Tl]:"Invalid value $value for base $base with alphabet $alphabet.",[Sl]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[xl]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Cl]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Pl]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Nl]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[qa]:"No random values implementation could be found.",[is]:"instruction requires an uninitialized account",[bs]:"instruction tries to borrow reference for an account which is already borrowed",[ys]:"instruction left account with an outstanding borrowed reference",[ws]:"program other than the account's owner changed the size of the account data",[es]:"account data too small for instruction",[gs]:"instruction expected an executable account",[Vs]:"An account does not have enough lamports to be rent-exempt",[Ws]:"Program arithmetic overflowed",[qs]:"Failed to serialize or deserialize account data: $encodedData",[Qs]:"Builtin programs must consume compute units",[Is]:"Cross-program invocation call depth too deep",[Ps]:"Computational budget exceeded",[As]:"custom program error: #$code",[hs]:"instruction contains duplicate accounts",[vs]:"instruction modifications of multiply-passed account differ",[Es]:"executable accounts must be rent exempt",[xs]:"instruction changed executable accounts data",[Ts]:"instruction changed the balance of an executable account",[fs]:"instruction changed executable bit of an account",[ls]:"instruction modified data of an account it does not own",[cs]:"instruction spent from the balance of an account it does not own",[Ka]:"generic instruction error",[Gs]:"Provided owner is not allowed",[Fs]:"Account is immutable",[Hs]:"Incorrect authority provided",[ns]:"incorrect program id for instruction",[ts]:"insufficient funds for instruction",[$a]:"invalid account data for instruction",[zs]:"Invalid account owner",[Za]:"invalid program argument",[ks]:"program returned invalid error code",[_a]:"invalid instruction data",[Rs]:"Failed to reallocate account data",[Ms]:"Provided seeds do not result in a valid address",[Js]:"Accounts data allocations exceeded the maximum allowed per transaction",[Ys]:"Max accounts exceeded",[Xs]:"Max instruction trace length exceeded",[Bs]:"Length of the seed is too long for address generation",[Ss]:"An account required by the instruction is missing",[os]:"missing required signature for instruction",[ss]:"instruction illegally modified the program id of an account",[ms]:"insufficient account keys for instruction",[Us]:"Cross-program invocation with unauthorized signer or writable account",[Os]:"Failed to create program execution environment",[Ds]:"Program failed to compile",[Ls]:"Program failed to complete",[ds]:"instruction modified data of a read-only account",[us]:"instruction changed the balance of a read-only account",[Ns]:"Cross-program invocation reentrancy not allowed for this instruction",[ps]:"instruction modified rent epoch of an account",[as]:"sum of account balances before and after instruction do not match",[rs]:"instruction requires an initialized account",[Qa]:"",[Cs]:"Unsupported program id",[js]:"Unsupported sysvar",[Ja]:"The instruction does not have any accounts.",[Ya]:"The instruction does not have any data.",[Xa]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[zr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Hr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Jl]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Xl]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Gl]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jl]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yl]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Qr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Kr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[_r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Zr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Xr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[oa]:"$__serverMessage",[pa]:"$__serverMessage",[da]:"$__serverMessage",[ta]:"$__serverMessage",[ra]:"$__serverMessage",[aa]:"$__serverMessage",[$r]:"Minimum context slot has not been reached",[ua]:"Node is unhealthy; behind by $numSlotsBehind slots",[sa]:"No snapshot",[fa]:"Transaction simulation failed",[ca]:"$__serverMessage",[ia]:"Transaction history is not available from this node",[la]:"$__serverMessage",[na]:"Transaction signature length mismatch",[ha]:"Transaction signature verification failure",[ea]:"$__serverMessage",[Va]:"Key pair bytes must be of length 64, got $byteLength.",[za]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Wa]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Ga]:"The provided private key does not match the provided public key.",[ja]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Wr]:"Lamports value must be in the range [0, 2e64-1]",[jr]:"`$value` cannot be parsed as a `BigInt`",[Yr]:"$message",[Gr]:"`$value` cannot be parsed as a `Number`",[qr]:"No nonce account could be found at address `$nonceAccountAddress`",[Hl]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Vl]:"WebSocket was closed before payload could be added to the send buffer",[zl]:"WebSocket connection closed",[Wl]:"WebSocket failed to connect",[ql]:"Failed to obtain a subscription id from the server",[Fl]:"Could not find an API plan for RPC method: `$method`",[Ol]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Dl]:"HTTP error ($statusCode): $message",[Ll]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Ks]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Zs]:"The provided value does not implement the `KeyPairSigner` interface",[$s]:"The provided value does not implement the `MessageModifyingSigner` interface",[ec]:"The provided value does not implement the `MessagePartialSigner` interface",[_s]:"The provided value does not implement any of the `MessageSigner` interfaces",[nc]:"The provided value does not implement the `TransactionModifyingSigner` interface",[oc]:"The provided value does not implement the `TransactionPartialSigner` interface",[ic]:"The provided value does not implement the `TransactionSendingSigner` interface",[tc]:"The provided value does not implement any of the `TransactionSigner` interfaces",[rc]:"More than one `TransactionSendingSigner` was identified.",[ac]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[sc]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Ha]:"Cannot export a non-extractable key.",[Pa]:"No digest implementation could be found.",[Ra]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Ua]:"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",[Oa]:"No signature verification implementation could be found.",[La]:"No key generation implementation could be found.",[Da]:"No signing implementation could be found.",[Fa]:"No key export implementation could be found.",[Jr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Gc]:"Transaction processing left an account with an outstanding borrowed reference",[Bc]:"Account in use",[Mc]:"Account loaded twice",[Rc]:"Attempt to debit an account but found no record of a prior credit.",[_c]:"Transaction loads an address table account that doesn't exist",[Lc]:"This transaction has already been processed",[Dc]:"Blockhash not found",[Fc]:"Loader call chain is too deep",[jc]:"Transactions are currently disabled due to cluster maintenance",[rl]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Uc]:"Insufficient funds for fee",[al]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Oc]:"This account may not be used to pay transaction fees",[qc]:"Transaction contains an invalid account reference",[el]:"Transaction loads an address table account with invalid data",[tl]:"Transaction address table lookup uses an invalid index",[$c]:"Transaction loads an address table account with an invalid owner",[cl]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[zc]:"This program may not be used for executing instructions",[nl]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Xc]:"Transaction loads a writable account that cannot be written",[sl]:"Transaction exceeded max loaded accounts data size cap",[Hc]:"Transaction requires a fee but has no signature present",[Pc]:"Attempt to load a program that does not exist",[ul]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ll]:"ResanitizationNeeded",[Wc]:"Transaction failed to sanitize accounts offsets correctly",[Vc]:"Transaction did not pass signature verification",[Zc]:"Transaction locked too many accounts",[dl]:"Sum of account balances before and after transaction do not match",[Nc]:"The transaction failed with the error `$errorName`",[Yc]:"Transaction version is unsupported",[Kc]:"Transaction would exceed account data limit within the block",[il]:"Transaction would exceed total account data limit",[Qc]:"Transaction would exceed max account limit within the block",[Jc]:"Transaction would exceed max Block Cost Limit",[ol]:"Transaction would exceed max Vote Cost Limit",[xc]:"Attempted to sign a transaction with an address that is not a signer for it",[bc]:"Transaction is missing an address at index: $index.",[Tc]:"Transaction has no expected signers therefore it cannot be encoded",[Sc]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[uc]:"Transaction does not have a blockhash lifetime",[dc]:"Transaction is not a durable nonce transaction",[fc]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[pc]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[wc]:"No fee payer set in CompiledTransaction",[mc]:"Could not find program address at index $index",[Cc]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Ic]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[yc]:"Transaction is missing a fee payer.",[vc]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[kc]:"Transaction first instruction is not advance nonce account instruction.",[Ac]:"Transaction with no instructions cannot be durable nonce transaction.",[cc]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[lc]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Ec]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[gc]:"Transaction is missing signatures for addresses: $addresses.",[hc]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},_l="i",$l="t";var eu=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,o;if(t){const{cause:e,...i}=t;e&&(o={cause:e}),Object.keys(i).length>0&&(n=i)}super(function(e,t={}){if("production"!==process.env.NODE_ENV)return function(e,t={}){const n=Zl[e];if(0===n.length)return"";let o;function i(e){if(2===o[$l]){const i=n.slice(o[_l]+1,e);r.push(i in t?`${t[i]}`:`$${i}`)}else 1===o[$l]&&r.push(n.slice(o[_l],e))}const r=[];return n.split("").forEach((e,t)=>{if(0===t)return void(o={[_l]:0,[$l]:"\\"===n[0]?0:"$"===n[0]?2:1});let r;switch(o[$l]){case 0:r={[_l]:t,[$l]:1};break;case 1:"\\"===e?r={[_l]:t,[$l]:0}:"$"===e&&(r={[_l]:t,[$l]:2});break;case 2:"\\"===e?r={[_l]:t,[$l]:0}:"$"===e?r={[_l]:t,[$l]:2}:e.match(/\w/)||(r={[_l]:t,[$l]:1})}r&&(o!==r&&i(t),o=r)}),i(),r.join("")}(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${function(e){const t=Object.entries(e).map(Kl).join("&");return btoa(t)}(t)}'`),`${n}\``}}(e,n),o),this.context={ve:e,...n},this.name="SolanaError"}};function tu(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function nu(e){return 1!==e?.endian}var ou=(e={})=>function(e,t){if(tu(e)!==tu(t))throw new eu(wl);if(tu(e)&&tu(t)&&e.fixedSize!==t.fixedSize)throw new eu(gl,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!tu(e)&&!tu(t)&&e.maxSize!==t.maxSize)throw new eu(bl,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}(((e={})=>{return t={config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,n)=>e.setBigUint64(0,BigInt(t),n),size:8},n={fixedSize:t.size,write(e,n,o){t.range&&function(e,t,n,o){if(o<t||o>n)throw new eu(xl,{codecDescription:e,max:n,min:t,value:o})}(t.name,t.range[0],t.range[1],e);const i=new ArrayBuffer(t.size);return t.set(new DataView(i),e,nu(t.config)),n.set(new Uint8Array(i),o),o+t.size}},Object.freeze({...n,encode:e=>{const t=new Uint8Array(function(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}(e,n));return n.write(e,t,0),t}});var t,n})(e),((e={})=>{return n={fixedSize:(t={config:e,get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8}).size,read(e,n=0){!function(e,t,n=0){if(t.length-n<=0)throw new eu(hl,{codecDescription:e})}(t.name,e,n),function(e,t,n,o=0){const i=n.length-o;if(i<t)throw new eu(fl,{bytesLength:i,codecDescription:e,expected:t})}(t.name,t.size,e,n);const o=new DataView(function(e,t,n){const o=e.byteOffset+(t??0),i=n??e.byteLength;return e.buffer.slice(o,o+i)}(e,n,t.size));return[t.get(o,nu(t.config)),n+t.size]}},Object.freeze({...n,decode:(e,t=0)=>n.read(e,t)[0]});var t,n})(e));class iu extends TypeError{constructor(e,t){let n;const{message:o,explanation:i,...r}=e,{path:a}=e,s=0===a.length?o:`At path: ${a.join(".")} -- ${o}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,r),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function ru(e){return"object"==typeof e&&null!=e}function au(e){return ru(e)&&!Array.isArray(e)}function su(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function cu(e,t,n,o){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:r}=t,{type:a}=n,{refinement:s,message:c=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${su(o)}\``}=e;return{value:o,type:a,refinement:s,key:i[i.length-1],path:i,branch:r,...e,message:c}}function*lu(e,t,n,o){var i;ru(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const r of e){const e=cu(r,t,n,o);e&&(yield e)}}function*uu(e,t,n={}){const{path:o=[],branch:i=[e],coerce:r=!1,mask:a=!1}=n,s={path:o,branch:i,mask:a};r&&(e=t.coercer(e,s));let c="valid";for(const l of t.validator(e,s))l.explanation=n.message,c="not_valid",yield[l,void 0];for(let[l,u,d]of t.entries(e,s)){const t=uu(u,d,{path:void 0===l?o:[...o,l],branch:void 0===l?i:[...i,u],coerce:r,mask:a,message:n.message});for(const n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):r&&(u=n[1],void 0===l?e=u:e instanceof Map?e.set(l,u):e instanceof Set?e.add(u):ru(e)&&(void 0!==u||l in e)&&(e[l]=u))}if("not_valid"!==c)for(const l of t.refiner(e,s))l.explanation=n.message,c="not_refined",yield[l,void 0];"valid"===c&&(yield[void 0,e])}let du=class{constructor(e){const{type:t,schema:n,validator:o,refiner:i,coercer:r=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=r,this.validator=o?(e,t)=>lu(o(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>lu(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const o=pu(e,t,{message:n});if(o[0])throw o[0]}(e,this,t)}create(e,t){return hu(e,this,t)}is(e){return fu(e,this)}mask(e,t){return function(e,t,n){const o=pu(e,t,{coerce:!0,mask:!0,message:n});if(o[0])throw o[0];return o[1]}(e,this,t)}validate(e,t={}){return pu(e,this,t)}};function hu(e,t,n){const o=pu(e,t,{coerce:!0,message:n});if(o[0])throw o[0];return o[1]}function fu(e,t){return!pu(e,t)[0]}function pu(e,t,n={}){const o=uu(e,t,n),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(o);return i[0]?[new iu(i[0],function*(){for(const e of o)e[0]&&(yield e[0])}),void 0]:[void 0,i[1]]}function mu(e,t){return new du({type:e,schema:null,validator:t})}function wu(e){return new du({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,o]of t.entries())yield[n,o,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${su(e)}`})}function gu(){return mu("boolean",e=>"boolean"==typeof e)}function bu(e){return mu("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${su(t)}`)}function yu(e){const t=su(e),n=typeof e;return new du({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${su(n)}`})}function vu(e){return new du({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function Au(){return mu("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${su(e)}`)}function ku(e){return new du({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function xu(e,t){return new du({type:"record",schema:null,*entries(n){if(ru(n))for(const o in n){const i=n[o];yield[o,o,e],yield[o,i,t]}},validator:e=>au(e)||`Expected an object, but received: ${su(e)}`,coercer:e=>au(e)?{...e}:e})}function Tu(){return mu("string",e=>"string"==typeof e||`Expected a string, but received: ${su(e)}`)}function Eu(e){const t=mu("never",()=>!1);return new du({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const o=Math.max(e.length,n.length);for(let i=0;i<o;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${su(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function Cu(e){const t=Object.keys(e);return new du({type:"type",schema:e,*entries(n){if(ru(n))for(const o of t)yield[o,n[o],e[o]]},validator:e=>au(e)||`Expected an object, but received: ${su(e)}`,coercer:e=>au(e)?{...e}:e})}function Iu(e){const t=e.map(e=>e.type).join(" | ");return new du({type:"union",schema:null,coercer(t,n){for(const o of e){const[e,i]=o.validate(t,{coerce:!0,mask:n.mask});if(!e)return i}return t},validator(n,o){const i=[];for(const t of e){const[...e]=uu(n,t,o),[r]=e;if(!r[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${su(n)}`,...i]}})}function Su(){return mu("unknown",()=>!0)}function Nu(e,t,n){return new du({...e,coercer:(o,i)=>fu(o,t)?e.coercer(n(o,i),i):e.coercer(o,i)})}var Bu,Mu=new Uint8Array(16);function Ru(){if(!Bu&&!(Bu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bu(Mu)}const Pu=/^(?:[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;function Uu(e){return"string"==typeof e&&Pu.test(e)}for(var Ou,Lu,Du=[],Fu=0;Fu<256;++Fu)Du.push((Fu+256).toString(16).substr(1));function Hu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Du[e[t+0]]+Du[e[t+1]]+Du[e[t+2]]+Du[e[t+3]]+"-"+Du[e[t+4]]+Du[e[t+5]]+"-"+Du[e[t+6]]+Du[e[t+7]]+"-"+Du[e[t+8]]+Du[e[t+9]]+"-"+Du[e[t+10]]+Du[e[t+11]]+Du[e[t+12]]+Du[e[t+13]]+Du[e[t+14]]+Du[e[t+15]]).toLowerCase();if(!Uu(n))throw TypeError("Stringified UUID is invalid");return n}var qu=0,Vu=0;function zu(e){if(!Uu(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Wu(e,t,n){function o(e,o,i,r){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof o&&(o=zu(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(o),a.set(e,o.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){r=r||0;for(var s=0;s<16;++s)i[r+s]=a[s];return i}return Hu(a)}try{o.name=e}catch(i){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function ju(e){return 14+(e+64>>>9<<4)+1}function Gu(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ju(e,t,n,o,i,r){return Gu((a=Gu(Gu(t,e),Gu(o,r)))<<(s=i)|a>>>32-s,n);var a,s}function Yu(e,t,n,o,i,r,a){return Ju(t&n|~t&o,e,t,i,r,a)}function Xu(e,t,n,o,i,r,a){return Ju(t&o|n&~o,e,t,i,r,a)}function Qu(e,t,n,o,i,r,a){return Ju(t^n^o,e,t,i,r,a)}function Ku(e,t,n,o,i,r,a){return Ju(n^(t|~o),e,t,i,r,a)}var Zu=Wu("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,o="0123456789abcdef",i=0;i<n;i+=8){var r=e[i>>5]>>>i%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[ju(t)-1]=t;for(var n=1732584193,o=-271733879,i=-1732584194,r=271733878,a=0;a<e.length;a+=16){var s=n,c=o,l=i,u=r;n=Yu(n,o,i,r,e[a],7,-680876936),r=Yu(r,n,o,i,e[a+1],12,-389564586),i=Yu(i,r,n,o,e[a+2],17,606105819),o=Yu(o,i,r,n,e[a+3],22,-1044525330),n=Yu(n,o,i,r,e[a+4],7,-176418897),r=Yu(r,n,o,i,e[a+5],12,1200080426),i=Yu(i,r,n,o,e[a+6],17,-1473231341),o=Yu(o,i,r,n,e[a+7],22,-45705983),n=Yu(n,o,i,r,e[a+8],7,1770035416),r=Yu(r,n,o,i,e[a+9],12,-1958414417),i=Yu(i,r,n,o,e[a+10],17,-42063),o=Yu(o,i,r,n,e[a+11],22,-1990404162),n=Yu(n,o,i,r,e[a+12],7,1804603682),r=Yu(r,n,o,i,e[a+13],12,-40341101),i=Yu(i,r,n,o,e[a+14],17,-1502002290),n=Xu(n,o=Yu(o,i,r,n,e[a+15],22,1236535329),i,r,e[a+1],5,-165796510),r=Xu(r,n,o,i,e[a+6],9,-1069501632),i=Xu(i,r,n,o,e[a+11],14,643717713),o=Xu(o,i,r,n,e[a],20,-373897302),n=Xu(n,o,i,r,e[a+5],5,-701558691),r=Xu(r,n,o,i,e[a+10],9,38016083),i=Xu(i,r,n,o,e[a+15],14,-660478335),o=Xu(o,i,r,n,e[a+4],20,-405537848),n=Xu(n,o,i,r,e[a+9],5,568446438),r=Xu(r,n,o,i,e[a+14],9,-1019803690),i=Xu(i,r,n,o,e[a+3],14,-187363961),o=Xu(o,i,r,n,e[a+8],20,1163531501),n=Xu(n,o,i,r,e[a+13],5,-1444681467),r=Xu(r,n,o,i,e[a+2],9,-51403784),i=Xu(i,r,n,o,e[a+7],14,1735328473),n=Qu(n,o=Xu(o,i,r,n,e[a+12],20,-1926607734),i,r,e[a+5],4,-378558),r=Qu(r,n,o,i,e[a+8],11,-2022574463),i=Qu(i,r,n,o,e[a+11],16,1839030562),o=Qu(o,i,r,n,e[a+14],23,-35309556),n=Qu(n,o,i,r,e[a+1],4,-1530992060),r=Qu(r,n,o,i,e[a+4],11,1272893353),i=Qu(i,r,n,o,e[a+7],16,-155497632),o=Qu(o,i,r,n,e[a+10],23,-1094730640),n=Qu(n,o,i,r,e[a+13],4,681279174),r=Qu(r,n,o,i,e[a],11,-358537222),i=Qu(i,r,n,o,e[a+3],16,-722521979),o=Qu(o,i,r,n,e[a+6],23,76029189),n=Qu(n,o,i,r,e[a+9],4,-640364487),r=Qu(r,n,o,i,e[a+12],11,-421815835),i=Qu(i,r,n,o,e[a+15],16,530742520),n=Ku(n,o=Qu(o,i,r,n,e[a+2],23,-995338651),i,r,e[a],6,-198630844),r=Ku(r,n,o,i,e[a+7],10,1126891415),i=Ku(i,r,n,o,e[a+14],15,-1416354905),o=Ku(o,i,r,n,e[a+5],21,-57434055),n=Ku(n,o,i,r,e[a+12],6,1700485571),r=Ku(r,n,o,i,e[a+3],10,-1894986606),i=Ku(i,r,n,o,e[a+10],15,-1051523),o=Ku(o,i,r,n,e[a+1],21,-2054922799),n=Ku(n,o,i,r,e[a+8],6,1873313359),r=Ku(r,n,o,i,e[a+15],10,-30611744),i=Ku(i,r,n,o,e[a+6],15,-1560198380),o=Ku(o,i,r,n,e[a+13],21,1309151649),n=Ku(n,o,i,r,e[a+4],6,-145523070),r=Ku(r,n,o,i,e[a+11],10,-1120210379),i=Ku(i,r,n,o,e[a+2],15,718787259),o=Ku(o,i,r,n,e[a+9],21,-343485551),n=Gu(n,s),o=Gu(o,c),i=Gu(i,l),r=Gu(r,u)}return[n,o,i,r]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(ju(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))});function _u(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o}}function $u(e,t){return e<<t|e>>>32-t}var ed=Wu("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var i=0;i<o.length;++i)e.push(o.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var r=e.length/4+2,a=Math.ceil(r/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var p=16;p<80;++p)h[p]=$u(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var m=n[0],w=n[1],g=n[2],b=n[3],y=n[4],v=0;v<80;++v){var A=Math.floor(v/20),k=$u(m,5)+_u(A,w,g,b)+y+t[A]+h[v]>>>0;y=b,b=g,g=$u(w,30)>>>0,w=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+w>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});const td=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:zu,stringify:Hu,v1:function(e,t,n){var o=t&&n||0,i=t||new Array(16),r=(e=e||{}).node||Ou,a=void 0!==e.clockseq?e.clockseq:Lu;if(null==r||null==a){var s=e.random||(e.rng||Ru)();null==r&&(r=Ou=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Lu=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Vu+1,u=c-qu+(l-Vu)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>qu)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");qu=c,Vu=l,Lu=a;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;i[o++]=d>>>24&255,i[o++]=d>>>16&255,i[o++]=d>>>8&255,i[o++]=255&d;var h=c/4294967296*1e4&268435455;i[o++]=h>>>8&255,i[o++]=255&h,i[o++]=h>>>24&15|16,i[o++]=h>>>16&255,i[o++]=a>>>8|128,i[o++]=255&a;for(var f=0;f<6;++f)i[o+f]=r[f];return t||Hu(i)},v3:Zu,v4:function(e,t,n){var o=(e=e||{}).random||(e.rng||Ru)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return Hu(o)},v5:ed,validate:Uu,version:function(e){if(!Uu(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})),nd=/* @__PURE__ */Li(td);var od,id,rd,ad;!function(){if(ad)return rd;ad=1;const e=nd.v4,t=function(){if(id)return od;id=1;const e=nd.v4;return od=function(t,n,o,i){if("string"!=typeof t)throw new TypeError(t+" must be a string");const r="number"==typeof(i=i||{}).version?i.version:2;if(1!==r&&2!==r)throw new TypeError(r+" must be 1 or 2");const a={method:t};if(2===r&&(a.jsonrpc="2.0"),n){if("object"!=typeof n&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");a.params=n}if(void 0===o){const t="function"==typeof i.generator?i.generator:function(){return e()};a.id=t(a,i)}else 2===r&&null===o?i.notificationIdNull&&(a.id=null):a.id=o;return a}}(),n=function(t,o){if(!(this instanceof n))return new n(t,o);o||(o={}),this.options={reviver:void 0!==o.reviver?o.reviver:null,replacer:void 0!==o.replacer?o.replacer:null,generator:void 0!==o.generator?o.generator:function(){return e()},version:void 0!==o.version?o.version:2,notificationIdNull:"boolean"==typeof o.notificationIdNull&&o.notificationIdNull},this.callServer=t};rd=n,n.prototype.request=function(e,n,o,i){const r=this;let a=null;const s=Array.isArray(e)&&"function"==typeof n;if(1===this.options.version&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&e&&"object"==typeof e&&"function"==typeof n)i=n,a=e;else{"function"==typeof o&&(i=o,o=void 0);const r="function"==typeof i;try{a=t(e,n,o,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(r)return void i(l);throw l}if(!r)return a}let c;try{c=JSON.stringify(a,this.options.replacer)}catch(l){return void i(l)}return this.callServer(c,function(e,t){r.Ae(e,t,i)}),a},n.prototype.Ae=function(e,t,n){if(e)return void n(e);if(!t)return void n();let o;try{o=JSON.parse(t,this.options.reviver)}catch(i){return void n(i)}if(3!==n.length)n(null,o);else{if(Array.isArray(o)){const e=function(e){return void 0!==e.error},t=function(t){return!e(t)};return void n(null,o.filter(e),o.filter(t))}n(null,o.error,o.result)}}}();var sd;function cd(e){try{return ar.ExtendedPoint.fromHex(e),!0}catch{return!1}}sd||(sd=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function r(e,t,o,r,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new i(o,r||e,a),c=n?n+t:t;return e.ke[c]?e.ke[c].fn?e.ke[c]=[e.ke[c],s]:e.ke[c].push(s):(e.ke[c]=s,e.xe++),e}function a(e,t){0===--e.xe?e.ke=new o:delete e.ke[t]}function s(){this.ke=new o,this.xe=0}Object.create&&(o.prototype=/* @__PURE__ */Object.create(null),(new o).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,o,i=[];if(0===this.xe)return i;for(o in e=this.ke)t.call(e,o)&&i.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,o=this.ke[t];if(!o)return[];if(o.fn)return[o.fn];for(var i=0,r=o.length,a=new Array(r);i<r;i++)a[i]=o[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,o=this.ke[t];return o?o.fn?1:o.length:0},s.prototype.emit=function(e,t,o,i,r,a){var s=n?n+e:e;if(!this.ke[s])return!1;var c,l,u=this.ke[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,o),!0;case 4:return u.fn.call(u.context,t,o,i),!0;case 5:return u.fn.call(u.context,t,o,i,r),!0;case 6:return u.fn.call(u.context,t,o,i,r,a),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,o);break;case 4:u[l].fn.call(u[l].context,t,o,i);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return r(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return r(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,o,i){var r=n?n+e:e;if(!this.ke[r])return this;if(!t)return a(this,r),this;var s=this.ke[r];if(s.fn)s.fn!==t||i&&!s.once||o&&s.context!==o||a(this,r);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||i&&!s[c].once||o&&s[c].context!==o)&&l.push(s[c]);l.length?this.ke[r]=1===l.length?l[0]:l:a(this,r)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this.ke[t]&&a(this,t)):(this.ke=new o,this.xe=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({exports:{}}));class ld{constructor(e){Object.assign(this,e)}encode(){return ji.Buffer.from(Or.serialize(ud,this))}static decode(e){return Or.deserialize(ud,this,e)}static decodeUnchecked(e){return Or.deserializeUnchecked(ud,this,e)}}const ud=/* @__PURE__ */new Map;var dd;let hd=1;class fd extends ld{constructor(e){if(super({}),this.Te=void 0,function(e){return void 0!==e.Te}(e))this.Te=e.Te;else{if("string"==typeof e){const t=vr.decode(e);if(32!=t.length)throw new Error("Invalid public key input");this.Te=new hr(t)}else this.Te=new hr(e);if(this.Te.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new fd(hd);return hd+=1,new fd(e.toBuffer())}equals(e){return this.Te.eq(e.Te)}toBase58(){return vr.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this.Te.toArrayLike(ji.Buffer);if(32===e.length)return e;const t=ji.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,n){const o=ji.Buffer.concat([e.toBuffer(),ji.Buffer.from(t),n.toBuffer()]),i=Mn(o);return new fd(i)}static createProgramAddressSync(e,t){let n=ji.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var t;n=ji.Buffer.concat([n,(t=e,ji.Buffer.isBuffer(t)?t:t instanceof Uint8Array?ji.Buffer.from(t.buffer,t.byteOffset,t.byteLength):ji.Buffer.from(t))])}),n=ji.Buffer.concat([n,t.toBuffer(),ji.Buffer.from("ProgramDerivedAddress")]);const o=Mn(n);if(cd(o))throw new Error("Invalid seeds, address must fall off the curve");return new fd(o)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let n,o=255;for(;0!=o;){try{const i=e.concat(ji.Buffer.from([o]));n=this.createProgramAddressSync(i,t)}catch(i){if(i instanceof TypeError)throw i;o--;continue}return[n,o]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return cd(new fd(e).toBytes())}}dd=fd,fd.default=new dd("11111111111111111111111111111111"),ud.set(fd,{kind:"struct",fields:[["_bn","u256"]]}),new fd("BPFLoader1111111111111111111111111111111111");const pd=(e="publicKey")=>Dr.blob(32,e),md=(e="string")=>{const t=Dr.struct([Dr.u32("length"),Dr.u32("lengthPadding"),Dr.blob(Dr.offset(Dr.u32(),-8),"chars")],e),n=t.decode.bind(t),o=t.encode.bind(t),i=t;return i.decode=(e,t)=>n(e,t).chars.toString(),i.encode=(e,t,n)=>{const i={chars:ji.Buffer.from(e,"utf8")};return o(i,t,n)},i.alloc=e=>Dr.u32().span+Dr.u32().span+ji.Buffer.from(e,"utf8").length,i};ji.Buffer.alloc(64).fill(0),new fd("SysvarC1ock11111111111111111111111111111111"),new fd("SysvarEpochSchedu1e111111111111111111111111"),new fd("Sysvar1nstructions1111111111111111111111111"),new fd("SysvarRecentB1ockHashes11111111111111111111"),new fd("SysvarRent111111111111111111111111111111111"),new fd("SysvarRewards111111111111111111111111111111"),new fd("SysvarS1otHashes111111111111111111111111111"),new fd("SysvarS1otHistory11111111111111111111111111"),new fd("SysvarStakeHistory1111111111111111111111111");const wd=Dr.nu64("lamportsPerSignature");function gd(e){const t=Dr.blob(8,e),n=t.decode.bind(t),o=t.encode.bind(t),i=t,r=ou();return i.decode=(e,t)=>{const o=n(e,t);return r.decode(o)},i.encode=(e,t,n)=>{const i=r.encode(e);return o(i,t,n)},i}Dr.struct([Dr.u32("version"),Dr.u32("state"),pd("authorizedPubkey"),pd("nonce"),Dr.struct([wd],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports"),Dr.ns64("space"),pd("programId")])},Assign:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("programId")])},Transfer:{index:2,layout:Dr.struct([Dr.u32("instruction"),gd("lamports")])},CreateWithSeed:{index:3,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),Dr.ns64("lamports"),Dr.ns64("space"),pd("programId")])},AdvanceNonceAccount:{index:4,layout:Dr.struct([Dr.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:Dr.struct([Dr.u32("instruction"),pd("authorized")])},AuthorizeNonceAccount:{index:7,layout:Dr.struct([Dr.u32("instruction"),pd("authorized")])},Allocate:{index:8,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("space")])},AllocateWithSeed:{index:9,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),Dr.ns64("space"),pd("programId")])},AssignWithSeed:{index:10,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),pd("programId")])},TransferWithSeed:{index:11,layout:Dr.struct([Dr.u32("instruction"),gd("lamports"),md("seed"),pd("programId")])},UpgradeNonceAccount:{index:12,layout:Dr.struct([Dr.u32("instruction")])}}),new fd("11111111111111111111111111111111"),new fd("BPFLoader2111111111111111111111111111111111"),Dr.struct([Dr.u32("typeIndex"),gd("deactivationSlot"),Dr.nu64("lastExtendedSlot"),Dr.u8("lastExtendedStartIndex"),Dr.u8(),Dr.seq(pd(),Dr.offset(Dr.u8(),-1),"authority")]);const bd=Nu(bu(fd),Tu(),e=>new fd(e)),yd=Eu([Tu(),yu("base64")]),vd=Nu(bu(ji.Buffer),yd,e=>ji.Buffer.from(e[0],"base64"));function Ad(e){return Iu([Cu({jsonrpc:yu("2.0"),id:Tu(),result:e}),Cu({jsonrpc:yu("2.0"),id:Tu(),error:Cu({code:Su(),message:Tu(),data:ku(mu("any",()=>!0))})})])}const kd=Ad(Su());function xd(e){return Nu(Ad(e),kd,t=>"error"in t?t:{...t,result:hu(t.result,e)})}function Td(e){return xd(Cu({context:Cu({slot:Au()}),value:e}))}function Ed(e){return Cu({context:Cu({slot:Au()}),value:e})}const Cd=Cu({foundation:Au(),foundationTerm:Au(),initial:Au(),taper:Au(),terminal:Au()});xd(wu(vu(Cu({epoch:Au(),effectiveSlot:Au(),amount:Au(),postBalance:Au(),commission:ku(vu(Au()))}))));const Id=wu(Cu({slot:Au(),prioritizationFee:Au()})),Sd=Cu({total:Au(),validator:Au(),foundation:Au(),epoch:Au()}),Nd=Cu({epoch:Au(),slotIndex:Au(),slotsInEpoch:Au(),absoluteSlot:Au(),blockHeight:ku(Au()),transactionCount:ku(Au())}),Bd=Cu({slotsPerEpoch:Au(),leaderScheduleSlotOffset:Au(),warmup:gu(),firstNormalEpoch:Au(),firstNormalSlot:Au()}),Md=xu(Tu(),wu(Au())),Rd=vu(Iu([Cu({}),Tu()])),Pd=Cu({err:Rd}),Ud=yu("receivedSignature");Cu({"solana-core":Tu(),"feature-set":ku(Au())});const Od=Cu({program:Tu(),programId:bd,parsed:Su()}),Ld=Cu({programId:bd,accounts:wu(bd),data:Tu()});Td(Cu({err:vu(Iu([Cu({}),Tu()])),logs:vu(wu(Tu())),accounts:ku(vu(wu(vu(Cu({executable:gu(),owner:Tu(),lamports:Au(),data:wu(Tu()),rentEpoch:ku(Au())}))))),unitsConsumed:ku(Au()),returnData:ku(vu(Cu({programId:Tu(),data:Eu([Tu(),yu("base64")])}))),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(Iu([Od,Ld]))}))))})),Td(Cu({byIdentity:xu(Tu(),wu(Au())),range:Cu({firstSlot:Au(),lastSlot:Au()})})),xd(Cd),xd(Sd),xd(Id),xd(Nd),xd(Bd),xd(Md),xd(Au()),Td(Cu({total:Au(),circulating:Au(),nonCirculating:Au(),nonCirculatingAccounts:wu(bd)}));const Dd=Cu({amount:Tu(),uiAmount:vu(Au()),decimals:Au(),uiAmountString:ku(Tu())});Td(wu(Cu({address:bd,amount:Tu(),uiAmount:vu(Au()),decimals:Au(),uiAmountString:ku(Tu())}))),Td(wu(Cu({pubkey:bd,account:Cu({executable:gu(),owner:bd,lamports:Au(),data:vd,rentEpoch:Au()})})));const Fd=Cu({program:Tu(),parsed:Su(),space:Au()});Td(wu(Cu({pubkey:bd,account:Cu({executable:gu(),owner:bd,lamports:Au(),data:Fd,rentEpoch:Au()})}))),Td(wu(Cu({lamports:Au(),address:bd})));const Hd=Cu({executable:gu(),owner:bd,lamports:Au(),data:vd,rentEpoch:Au()});Cu({pubkey:bd,account:Hd});const qd=Nu(Iu([bu(ji.Buffer),Fd]),Iu([yd,Fd]),e=>Array.isArray(e)?hu(e,vd):e),Vd=Cu({executable:gu(),owner:bd,lamports:Au(),data:qd,rentEpoch:Au()});Cu({pubkey:bd,account:Vd}),Cu({state:Iu([yu("active"),yu("inactive"),yu("activating"),yu("deactivating")]),active:Au(),inactive:Au()}),xd(wu(Cu({signature:Tu(),slot:Au(),err:Rd,memo:vu(Tu()),blockTime:ku(vu(Au()))}))),xd(wu(Cu({signature:Tu(),slot:Au(),err:Rd,memo:vu(Tu()),blockTime:ku(vu(Au()))}))),Cu({subscription:Au(),result:Ed(Hd)});const zd=Cu({pubkey:bd,account:Hd});Cu({subscription:Au(),result:Ed(zd)});const Wd=Cu({parent:Au(),slot:Au(),root:Au()});Cu({subscription:Au(),result:Wd});const jd=Iu([Cu({type:Iu([yu("firstShredReceived"),yu("completed"),yu("optimisticConfirmation"),yu("root")]),slot:Au(),timestamp:Au()}),Cu({type:yu("createdBank"),parent:Au(),slot:Au(),timestamp:Au()}),Cu({type:yu("frozen"),slot:Au(),timestamp:Au(),stats:Cu({numTransactionEntries:Au(),numSuccessfulTransactions:Au(),numFailedTransactions:Au(),maxTransactionsPerEntry:Au()})}),Cu({type:yu("dead"),slot:Au(),timestamp:Au(),err:Tu()})]);Cu({subscription:Au(),result:jd}),Cu({subscription:Au(),result:Ed(Iu([Pd,Ud]))}),Cu({subscription:Au(),result:Au()}),Cu({pubkey:Tu(),gossip:vu(Tu()),tpu:vu(Tu()),rpc:vu(Tu()),version:vu(Tu())});const Gd=Cu({votePubkey:Tu(),nodePubkey:Tu(),activatedStake:Au(),epochVoteAccount:gu(),epochCredits:wu(Eu([Au(),Au(),Au()])),commission:Au(),lastVote:Au(),rootSlot:vu(Au())});xd(Cu({current:wu(Gd),delinquent:wu(Gd)}));const Jd=Iu([yu("processed"),yu("confirmed"),yu("finalized")]),Yd=Cu({slot:Au(),confirmations:vu(Au()),err:Rd,confirmationStatus:ku(Jd)});Td(wu(vu(Yd))),xd(Au());const Xd=Cu({accountKey:bd,writableIndexes:wu(Au()),readonlyIndexes:wu(Au())}),Qd=Cu({signatures:wu(Tu()),message:Cu({accountKeys:wu(Tu()),header:Cu({numRequiredSignatures:Au(),numReadonlySignedAccounts:Au(),numReadonlyUnsignedAccounts:Au()}),instructions:wu(Cu({accounts:wu(Au()),data:Tu(),programIdIndex:Au()})),recentBlockhash:Tu(),addressTableLookups:ku(wu(Xd))})}),Kd=Cu({pubkey:bd,signer:gu(),writable:gu(),source:ku(Iu([yu("transaction"),yu("lookupTable")]))}),Zd=Cu({accountKeys:wu(Kd),signatures:wu(Tu())}),_d=Cu({parsed:Su(),program:Tu(),programId:bd}),$d=Cu({accounts:wu(bd),data:Tu(),programId:bd}),eh=Nu(Iu([$d,_d]),Iu([Cu({parsed:Su(),program:Tu(),programId:Tu()}),Cu({accounts:wu(Tu()),data:Tu(),programId:Tu()})]),e=>hu(e,"accounts"in e?$d:_d)),th=Cu({signatures:wu(Tu()),message:Cu({accountKeys:wu(Kd),instructions:wu(eh),recentBlockhash:Tu(),addressTableLookups:ku(vu(wu(Xd)))})}),nh=Cu({accountIndex:Au(),mint:Tu(),owner:ku(Tu()),programId:ku(Tu()),uiTokenAmount:Dd}),oh=Cu({writable:wu(bd),readonly:wu(bd)}),ih=Cu({err:Rd,fee:Au(),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(Cu({accounts:wu(Au()),data:Tu(),programIdIndex:Au()}))})))),preBalances:wu(Au()),postBalances:wu(Au()),logMessages:ku(vu(wu(Tu()))),preTokenBalances:ku(vu(wu(nh))),postTokenBalances:ku(vu(wu(nh))),loadedAddresses:ku(oh),computeUnitsConsumed:ku(Au()),costUnits:ku(Au())}),rh=Cu({err:Rd,fee:Au(),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(eh)})))),preBalances:wu(Au()),postBalances:wu(Au()),logMessages:ku(vu(wu(Tu()))),preTokenBalances:ku(vu(wu(nh))),postTokenBalances:ku(vu(wu(nh))),loadedAddresses:ku(oh),computeUnitsConsumed:ku(Au()),costUnits:ku(Au())}),ah=Iu([yu(0),yu("legacy")]),sh=Cu({pubkey:Tu(),lamports:Au(),postBalance:vu(Au()),rewardType:vu(Tu()),commission:ku(vu(Au()))});xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Qd,meta:vu(ih),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Zd,meta:vu(ih),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:th,meta:vu(rh),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Zd,meta:vu(rh),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Qd,meta:vu(ih)})),rewards:ku(wu(sh)),blockTime:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),signatures:wu(Tu()),blockTime:vu(Au())}))),xd(vu(Cu({slot:Au(),meta:vu(ih),blockTime:ku(vu(Au())),transaction:Qd,version:ku(ah)}))),xd(vu(Cu({slot:Au(),transaction:th,meta:vu(rh),blockTime:ku(vu(Au())),version:ku(ah)}))),Td(Cu({blockhash:Tu(),lastValidBlockHeight:Au()})),Td(gu()),xd(wu(Cu({slot:Au(),numTransactions:Au(),numSlots:Au(),samplePeriodSecs:Au()}))),Td(vu(Cu({feeCalculator:Cu({lamportsPerSignature:Au()})}))),xd(Tu()),xd(Tu());const ch=Cu({err:Rd,logs:wu(Tu()),signature:Tu()});var lh;Cu({result:Ed(ch),subscription:Au()}),Object.freeze({CreateLookupTable:{index:0,layout:Dr.struct([Dr.u32("instruction"),gd("recentSlot"),Dr.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:Dr.struct([Dr.u32("instruction")])},ExtendLookupTable:{index:2,layout:Dr.struct([Dr.u32("instruction"),gd(),Dr.seq(pd(),Dr.offset(Dr.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Dr.struct([Dr.u32("instruction")])},CloseLookupTable:{index:4,layout:Dr.struct([Dr.u32("instruction")])}}),new fd("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("units"),Dr.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("units")])},SetComputeUnitPrice:{index:3,layout:Dr.struct([Dr.u8("instruction"),gd("microLamports")])}}),new fd("ComputeBudget111111111111111111111111111111"),Dr.struct([Dr.u8("numSignatures"),Dr.u8("padding"),Dr.u16("signatureOffset"),Dr.u16("signatureInstructionIndex"),Dr.u16("publicKeyOffset"),Dr.u16("publicKeyInstructionIndex"),Dr.u16("messageDataOffset"),Dr.u16("messageDataSize"),Dr.u16("messageInstructionIndex")]),new fd("Ed25519SigVerify111111111111111111111111111"),bi.utils.isValidPrivateKey,Dr.struct([Dr.u8("numSignatures"),Dr.u16("signatureOffset"),Dr.u8("signatureInstructionIndex"),Dr.u16("ethAddressOffset"),Dr.u8("ethAddressInstructionIndex"),Dr.u16("messageDataOffset"),Dr.u16("messageDataSize"),Dr.u8("messageInstructionIndex"),Dr.blob(20,"ethAddress"),Dr.blob(64,"signature"),Dr.u8("recoveryId")]),new fd("KeccakSecp256k11111111111111111111111111111"),new fd("StakeConfig11111111111111111111111111111111");class uh{constructor(e,t,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=n}}lh=uh,uh.default=new lh(0,0,fd.default),Object.freeze({Initialize:{index:0,layout:Dr.struct([Dr.u32("instruction"),((e="authorized")=>Dr.struct([pd("staker"),pd("withdrawer")],e))(),((e="lockup")=>Dr.struct([Dr.ns64("unixTimestamp"),Dr.ns64("epoch"),pd("custodian")],e))()])},Authorize:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:Dr.struct([Dr.u32("instruction")])},Split:{index:3,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},Withdraw:{index:4,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},Deactivate:{index:5,layout:Dr.struct([Dr.u32("instruction")])},Merge:{index:7,layout:Dr.struct([Dr.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("stakeAuthorizationType"),md("authoritySeed"),pd("authorityOwner")])}}),new fd("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:Dr.struct([Dr.u32("instruction"),((e="voteInit")=>Dr.struct([pd("nodePubkey"),pd("authorizedVoter"),pd("authorizedWithdrawer"),Dr.u8("commission")],e))()])},Authorize:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:Dr.struct([Dr.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:Dr.struct([Dr.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>Dr.struct([Dr.u32("voteAuthorizationType"),pd("currentAuthorityDerivedKeyOwnerPubkey"),md("currentAuthorityDerivedKeySeed"),pd("newAuthorized")],e))()])}}),new fd("Vote111111111111111111111111111111111111111"),new fd("Va1idator1nfo111111111111111111111111111111"),Cu({name:Tu(),website:ku(Tu()),details:ku(Tu()),iconUrl:ku(Tu()),keybaseUsername:ku(Tu())}),new fd("Vote111111111111111111111111111111111111111"),Dr.struct([pd("nodePubkey"),pd("authorizedWithdrawer"),Dr.u8("commission"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("slot"),Dr.u32("confirmationCount")]),Dr.offset(Dr.u32(),-8),"votes"),Dr.u8("rootSlotValid"),Dr.nu64("rootSlot"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("epoch"),pd("authorizedVoter")]),Dr.offset(Dr.u32(),-8),"authorizedVoters"),Dr.struct([Dr.seq(Dr.struct([pd("authorizedPubkey"),Dr.nu64("epochOfLastAuthorizedSwitch"),Dr.nu64("targetEpoch")]),32,"buf"),Dr.nu64("idx"),Dr.u8("isEmpty")],"priorVoters"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("epoch"),Dr.nu64("credits"),Dr.nu64("prevCredits")]),Dr.offset(Dr.u32(),-8),"epochCredits"),Dr.struct([Dr.nu64("slot"),Dr.nu64("timestamp")],"lastTimestamp")]);const dh=e=>{const t=/* @__PURE__ */new Date,n=new Date(t);n.setDate(n.getDate()-1);const o=new Date(e);return o.setHours(0,0,0,0),t.setHours(0,0,0,0),n.setHours(0,0,0,0),o.getTime()===t.getTime()?"Today":o.getTime()===n.getTime()?"Yesterday":o.toLocaleDateString("en-US",{month:"short",day:"numeric",year:o.getFullYear()!==t.getFullYear()?"numeric":void 0})},hh=e=>new Promise(t=>setTimeout(t,e||0)),fh=(e,t=5,n=5)=>(e=e||"",e?.length<=t+n?e:`${e.substr(0,t)}...${e.substr(e.length-n,n)}`),ph=e=>{if(!e)return"";const t=Pi[e];return t?t.chainTypeMoralis:""},mh=e=>{if(!e)return"";const t=Pi[e];return t?t.chainType:""},wh={getItem(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,t){if("undefined"!=typeof window)try{window.localStorage.setItem(e,t)}catch{}},removeItem(e){if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}},get length(){if("undefined"==typeof window)return 0;try{return window.localStorage.length}catch{return 0}},key(e){if("undefined"==typeof window)return null;try{return window.localStorage.key(e)}catch{return null}}};function gh(e){if(lt(e))return!0;try{return new fd(e),!0}catch{return!1}}function bh(){const e=String("keyring-chatbot-coinpool-test").trim().replace(/^['"]|['"]$/g,"").replace(/^['"]|['"]$/g,"").replace(/[;,]$/,"");return b[e||"keyring-chatbot-agent"]||b["keyring-chatbot-agent"]}const yh=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,ellipsisAddress:fh,formatDate:dh,getChainType:mh,getChainTypeMoralis:ph,getDataPackage:bh,isValidAddress:gh,safeStorage:wh,sleep:hh},Symbol.toStringTag,{value:"Module"})),vh=s(void 0),Ah=()=>{const e=c(vh);if(!e)throw new Error("useConnect must be used within ConnectProvider");return{...e,chainData:Pi[e?.account?.chainId]||void 0,chainId:e.account?.chainId||void 0,chainType:mh(e.account?.chainId||void 0),chainTypeMoralis:ph(e.account?.chainId||void 0),isChainSupported:!!Pi[e?.account?.chainId]?.isSupported||!1}},kh=({children:t,initialAccount:n})=>/* @__PURE__ */e(vh.Provider,{value:{account:n||null},children:t}),xh=({address:o,chainId:r})=>{const[s,c]=i(!1),{isChainSupported:l}=Ah(),{t:u}=w(),d=a(()=>{if(!o)return;const e=o,t=()=>{c(!0),setTimeout(()=>c(!1),2e3)};try{navigator.clipboard.writeText(e).then(t).catch(()=>{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()})}catch{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()}},[o]);/* @__PURE__ */
4
+ return e("button",{className:"chat-button",onClick:t,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},"aria-label":i("openChat"),title:i("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:/* @__PURE__ */e("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:o||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5fZu3dDRVcJYfH5uVv/0tTdZbr/JEeuIHoyjxV5CA4+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5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),b={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",webAppUrl:"https://nft-demo.keyring.app",isPackageTest:!0},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",webAppUrl:"https://nft.keyring.app",faqUrl:"https://api.coinpool.app/faq",faqInternal:{data:[{question:{en:"Unveiling the Truth of Liquidity Pools & Earn Over 20% APR. How Is This Possible?"},answer:{en:"The high APR of liquidity pools like Uniswap comes from: Trading fees, Compensation for impermanent loss, Yieldfarming incentives, Market volatility in high-trading-volume pools"}},{question:{en:"What Is a Liquidity Pool?"},answer:{en:"A liquidity pool is a smart contract that holds two tokens and facilitates swaps using an AMM model. Liquidity providers (LPs) deposit tokens and earn trading fees from transactions in the pool."}},{question:{en:"What Are the Benefits of Liquidity Providers?"},answer:{en:"Liquidity providers (LPs) earn passive income by supplying tokens to pools, benefiting from trading fees, improved capital efficiency, yield farming rewards, and permissionless participation, while also potentially increasing their total coin holdings over time."}},{question:{en:"Are There Any Risks?"},answer:{en:"Liquidity providers (LPs) face several key risks when providing liquidity: out-of-range risk, where prices move outside the set range causing liquidity to become inactive and stop earning fees; impermanent loss, where large price fluctuations reduce the value compared to simply holding assets; and asset imbalance, where one token becomes dominant, leaving the portfolio unbalanced."}},{question:{en:"What is CoinPool?"},answer:{en:"Simply access CoinPool to find the best high-APR pairs easily. Normally, before adding liquidity, users must swap assets to balance their holdings, but CoinPool simplifies this process."}},{question:{en:"How Do I Get Started?"},answer:{en:"For example, if you hold USDC and select the ETH/WBTC pair, CoinPool will automatically swap USDC into ETH and WBTC, then create a liquidity position for you, making it easy to provide liquidity to the pool."}},{question:{en:"Why Should You Use CoinPool?"},answer:{en:"CoinPool simplifies and optimizes earning potential by prioritizing high-APR pools to maximize returns, while handling all liquidity provisioning automatically—eliminating the need for manual swaps or rebalancing. With just a single asset deposit, CoinPool seamlessly manages the process to generate efficient passive income."}},{question:{en:"How It Works"},answer:{en:"CoinPool allows users to create an LP position with a single token, eliminating the need for direct access and manual operations on sites like Uniswap."}},{question:{en:"How do you manage Liquidity Positions (LPs)?"},answer:{en:"You can manage your LP position directly using the KEYRING PRO app. Since your LP NFT is linked to your wallet, CoinPool only provides smooth access to manage your position but does not hold or control your assets."}},{question:{en:"Why Should I Use the ‘High APR Pairs’ Feature?"},answer:{en:"The ‘High APR Pairs’ feature helps users quickly add liquidity to high-yield pools without needing to create a new pair, streamlining the liquidity provision process. Notice: Always select pairs from verified and reliable creators to ensure the best security and returns."}},{question:{en:"What is the Earnings Overview Dashboard?"},answer:{en:"The Earnings Overview Dashboard provides a clear summary of your liquidity value and earnings from providing liquidity, along with the average APR. It also allows you to view other users’ LP earnings and follow their strategies for insight and inspiration."}},{question:{en:"What tokens can I use to add liquidity?"},answer:{en:"CoinPool supports ETH. Users can use any of these assets, and CoinPool will automatically swap them into the required token pairs for liquidity provision."}},{question:{en:"How does CoinPool simplify liquidity provision?"},answer:{en:"Instead of manually swapping and balancing tokens, CoinPool automates the entire process. Users can simply deposit a single asset, and CoinPool will convert, balance, and provide liquidity in the selected pool, prioritizing those with the best APRs."}},{question:{en:"Can I create my own liquidity pool?"},answer:{en:"Yes! CoinPool allows users to create custom liquidity pools instead of joining existing ones. Users can also invite others to contribute liquidity to their pools."}},{question:{en:"How do I earn from providing liquidity?"},answer:{en:"Liquidity providers earn a share of trading fees generated by the pool.\nTrading volume of the pool – Higher activity means more fees.\nYour liquidity share – The more you contribute, the more you earn.\nFee tier selection – Pools with higher fee tiers may generate higher earnings but attract fewer trades."}},{question:{en:"How do I choose the right fee tier when adding liquidity?"},answer:{en:"0.01% → Best for stablecoin pairs (e.g., USDT/USDC).\n0.05% → Best for low-volatility tokens.\n0.3% (Default) → Best for most trading pairs.\n1% → Best for high-volatility, low-liquidity pairs.\nIf unsure, check existing pools to see the most commonly used fee rate."}},{question:{en:"Can I lose money by providing liquidity?"},answer:{en:"Yes, the biggest risk is impermanent loss, which happens when token prices change significantly after you deposit them. However, this loss can be offset by the trading fees earned from the pool."}},{question:{en:"What happens if my liquidity goes out of range?"},answer:{en:"If you provide liquidity within a specific price range (Uniswap V3 model), your position can become inactive when the market price moves beyond your set range.\nYou stop earning fees.\nYour balance shifts toward one of the two tokens in the pair.\nTo reactivate, you need to remove and re-add liquidity at a new range."}},{question:{en:"What is the difference between 'Collect Profit' and 'Delete the Pair and Collect Profit'?"},answer:{en:"'Collect Profit' – Withdraw only profit.\n'Delete the Pair and Collect Profit' – Withdraw both initial liquidity and profit."}},{question:{en:"What is the URL of the CoinPool website?"},answer:{en:"The official website URL is https://coinpool.app/"}},{question:{en:"Where can I find pools with high volume-to-liquidity ratio?"},answer:{en:"You can find pools with a high volume-to-liquidity ratio on this page: https://coinpool.app/pool-ranking"}},{question:{en:"Where can I see my earnings or liquidity profits?"},answer:{en:"You can track your earnings and liquidity performance here: https://coinpool.app/earnings-overview"}},{question:{en:"Where can I view my NFT pools?"},answer:{en:"You can check your NFT pools on this page:https://coinpool.app/my-liquidity"}},{question:{en:"Where can I create or choose a pair to create a pool?"},answer:{en:"You can create or choose a pair to create a pool here: https://coinpool.app/pair"}}]},linkViewNft:"https://nft.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create",modal:{title:"COINPOOL Agent",icon:"https://coinpool.app/favicon.ico"}},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",webAppUrl:"https://nft.keyring.app"}},y=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz"],v=/^tuple(?<array>(\[(\d*)\])*)$/;function A(e){let t=e.type;if(v.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++)t+=A(e.components[i]),i<n-1&&(t+=", ");const o=function(e,t){const n=e.exec(t);return n?.groups}(v,e.type);return t+=`)${o?.array||""}`,A({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function k(e){let t="";const n=e.length;for(let o=0;o<n;o++)t+=A(e[o]),o!==n-1&&(t+=", ");return t}function x(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new F(e.type);return`${e.name}(${T(e.inputs,{includeName:t})})`}function T(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${T(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}function E(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function C(e){return E(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const I="2.47.0";let S=`viem@${I}`;class N extends Error{constructor(e,t={}){const n=t.cause instanceof N?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof N&&t.cause.docsPath||t.docsPath,i=(({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0)?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...n?[`Details: ${n}`]:[],...S?[`Version: ${S}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=I}walk(e){return B(this,e)}}function B(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?B(e.cause,t):t?null:e}class M extends N{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class R extends N{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${C(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class P extends N{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class U extends N{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class O extends N{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${x(e.abiItem)}\`, and`,`\`${t.type}\` in \`${x(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class L extends N{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class D extends N{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class F extends N{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class H extends N{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class q extends N{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function V(e,{dir:t,size:n=32}={}){return"string"==typeof e?z(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new q({size:e.length,targetSize:n,type:"bytes"});const o=new Uint8Array(n);for(let i=0;i<n;i++){const r="right"===t;o[r?i:n-i-1]=e[r?i:e.length-i-1]}return o}(e,{dir:t,size:n})}function z(e,{dir:t,size:n=32}={}){if(null===n)return e;const o=e.replace("0x","");if(o.length>2*n)throw new q({size:Math.ceil(o.length/2),targetSize:n,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*n,"0")}`}class W extends N{constructor({max:e,min:t,signed:n,size:o,value:i}){super(`Number "${i}" is not in safe ${o?`${8*o}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class j extends N{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function G(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,o=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)o++;return n="left"===t?n.slice(o):n.slice(0,n.length-o),"string"==typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function J(e,{size:t}){if(C(e)>t)throw new j({givenSize:C(e),maxSize:t})}function Y(e,t={}){const{signed:n}=t;t.size&&J(e,{size:t.size});const o=BigInt(e);if(!n)return o;const i=(e.length-2)/2;return o<=(1n<<8n*BigInt(i)-1n)-1n?o:o-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function X(e,t={}){const n=Y(e,t),o=Number(n);if(!Number.isSafeInteger(o))throw new W({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return o}const Q=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function K(e,t={}){return"number"==typeof e||"bigint"==typeof e?$(e,t):"string"==typeof e?te(e,t):"boolean"==typeof e?Z(e,t):_(e,t)}function Z(e,t={}){const n=`0x${Number(e)}`;return"number"==typeof t.size?(J(n,{size:t.size}),V(n,{size:t.size})):n}function _(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=Q[e[i]];const o=`0x${n}`;return"number"==typeof t.size?(J(o,{size:t.size}),V(o,{dir:"right",size:t.size})):o}function $(e,t={}){const{signed:n,size:o}=t,i=BigInt(e);let r;o?r=n?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"==typeof r&&n?-r-1n:0;if(r&&i>r||i<a){const t="bigint"==typeof e?"n":"";throw new W({max:r?`${r}${t}`:void 0,min:`${a}${t}`,signed:n,size:o,value:`${e}${t}`})}const s=`0x${(n&&i<0?(1n<<BigInt(8*o))+BigInt(i):i).toString(16)}`;return o?V(s,{size:o}):s}const ee=/* @__PURE__ */new TextEncoder;function te(e,t={}){return _(ee.encode(e),t)}const ne=/* @__PURE__ */new TextEncoder;function oe(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){return ae($(e,t))}(e,t):"boolean"==typeof e?function(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),"number"==typeof t.size?(J(n,{size:t.size}),V(n,{size:t.size})):n}(e,t):E(e)?ae(e,t):se(e,t)}const ie={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(e){return e>=ie.zero&&e<=ie.nine?e-ie.zero:e>=ie.A&&e<=ie.F?e-(ie.A-10):e>=ie.a&&e<=ie.f?e-(ie.a-10):void 0}function ae(e,t={}){let n=e;t.size&&(J(n,{size:t.size}),n=V(n,{dir:"right",size:t.size}));let o=n.slice(2);o.length%2&&(o=`0${o}`);const i=o.length/2,r=new Uint8Array(i);for(let a=0,s=0;a<i;a++){const e=re(o.charCodeAt(s++)),t=re(o.charCodeAt(s++));if(void 0===e||void 0===t)throw new N(`Invalid byte sequence ("${o[s-2]}${o[s-1]}" in "${o}").`);r[a]=16*e+t}return r}function se(e,t={}){const n=ne.encode(e);return"number"==typeof t.size?(J(n,{size:t.size}),V(n,{dir:"right",size:t.size})):n}const ce=/* @__PURE__ */BigInt(2**32-1),le=/* @__PURE__ */BigInt(32);function ue(e,t=!1){return t?{h:Number(e&ce),l:Number(e>>le&ce)}:{h:0|Number(e>>le&ce),l:0|Number(e&ce)}}function de(e,t=!1){const n=e.length;let o=new Uint32Array(n),i=new Uint32Array(n);for(let r=0;r<n;r++){const{h:n,l:a}=ue(e[r],t);[o[r],i[r]]=[n,a]}return[o,i]}const he=(e,t,n)=>e>>>n,fe=(e,t,n)=>e<<32-n|t>>>n,pe=(e,t,n)=>e>>>n|t<<32-n,me=(e,t,n)=>e<<32-n|t>>>n,we=(e,t,n)=>e<<64-n|t>>>n-32,ge=(e,t,n)=>e>>>n-32|t<<64-n;function be(e,t,n,o){const i=(t>>>0)+(o>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const ye=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),ve=(e,t,n,o)=>t+n+o+(e/2**32|0)|0,Ae=(e,t,n,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(o>>>0),ke=(e,t,n,o,i)=>t+n+o+i+(e/2**32|0)|0,xe=(e,t,n,o,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(o>>>0)+(i>>>0),Te=(e,t,n,o,i,r)=>t+n+o+i+r+(e/2**32|0)|0,Ee="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function Ce(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ie(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ne(e,t){Ie(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Be(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Me(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Re(e,t){return e<<32-t|e>>>t}function Pe(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Ue=/* @__PURE__ */(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Pe(e[t]);return e};function Oe(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e)),Ie(e),e}class Le{}function De(e){const t=t=>e().update(Oe(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Fe(e=32){if(Ee&&"function"==typeof Ee.getRandomValues)return Ee.getRandomValues(new Uint8Array(e));if(Ee&&"function"==typeof Ee.randomBytes)return Uint8Array.from(Ee.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const He=BigInt(0),qe=BigInt(1),Ve=BigInt(2),ze=BigInt(7),We=BigInt(256),je=BigInt(113),Ge=[],Je=[],Ye=[];for(let Up=0,Op=qe,Lp=1,Dp=0;Up<24;Up++){[Lp,Dp]=[Dp,(2*Lp+3*Dp)%5],Ge.push(2*(5*Dp+Lp)),Je.push((Up+1)*(Up+2)/2%64);let e=He;for(let t=0;t<7;t++)Op=(Op<<qe^(Op>>ze)*je)%We,Op&Ve&&(e^=qe<<(qe<</* @__PURE__ */BigInt(t))-qe);Ye.push(e)}const Xe=de(Ye,!0),Qe=Xe[0],Ke=Xe[1],Ze=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),_e=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class $e extends Le{constructor(e,t,n,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=o,this.rounds=i,Ce(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var r;this.state=new Uint8Array(200),this.state32=(r=this.state,new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4)))}clone(){return this.o()}keccak(){Ue(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let o=0;o<10;o++)n[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const t=(o+8)%10,i=(o+2)%10,r=n[i],a=n[i+1],s=Ze(r,a,1)^n[t],c=_e(r,a,1)^n[t+1];for(let n=0;n<50;n+=10)e[o+n]^=s,e[o+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){const o=Je[n],r=Ze(t,i,o),a=_e(t,i,o),s=Ge[n];t=e[s],i=e[s+1],e[s]=r,e[s+1]=a}for(let o=0;o<50;o+=10){for(let t=0;t<10;t++)n[t]=e[o+t];for(let t=0;t<10;t++)e[o+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=Qe[o],e[1]^=Ke[o]}Be(n)}(this.state32,this.rounds),Ue(this.state32),this.posOut=0,this.pos=0}update(e){Se(this),Ie(e=Oe(e));const{blockLen:t,state:n}=this,o=e.length;for(let i=0;i<o;){const r=Math.min(t-this.pos,o-i);for(let t=0;t<r;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:o}=this;e[n]^=t,128&t&&n===o-1&&this.keccak(),e[o-1]^=128,this.keccak()}writeInto(e){Se(this,!1),Ie(e),this.finish();const t=this.state,{blockLen:n}=this;for(let o=0,i=e.length;o<i;){this.posOut>=n&&this.keccak();const r=Math.min(n-this.posOut,i-o);e.set(t.subarray(this.posOut,this.posOut+r),o),this.posOut+=r,o+=r}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ce(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ne(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}o(e){const{blockLen:t,suffix:n,outputLen:o,rounds:i,enableXOF:r}=this;return e||(e=new $e(t,n,o,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=o,e.enableXOF=r,e.destroyed=this.destroyed,e}}const et=/* @__PURE__ */(()=>De(()=>new $e(136,1,32)))();function tt(e,t){const n=t||"hex",o=et(E(e,{strict:!1})?oe(e):e);return"bytes"===n?o:K(o)}function nt(e){return t=function(e){let t=!0,n="",o=0,i="",r=!1;for(let a=0;a<e.length;a++){const s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&o++,")"===s&&o--,t)if(0!==o)" "!==s?(i+=s,n+=s):","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){r=!0;break}}if(!r)throw new N("Unable to normalize signature.");return i}("string"==typeof(n=e)?n:"function"===(o=n).type?`function ${o.name}(${k(o.inputs)})${o.stateMutability&&"nonpayable"!==o.stateMutability?` ${o.stateMutability}`:""}${o.outputs?.length?` returns (${k(o.outputs)})`:""}`:"event"===o.type?`event ${o.name}(${k(o.inputs)})`:"error"===o.type?`error ${o.name}(${k(o.inputs)})`:"constructor"===o.type?`constructor(${k(o.inputs)})${"payable"===o.stateMutability?" payable":""}`:"fallback"===o.type?"fallback() external"+("payable"===o.stateMutability?" payable":""):"receive() external payable"),tt(oe(t));var t,n,o}const ot=nt;class it extends N{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class rt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}const at=/* @__PURE__ */new rt(8192),st=/^0x[a-fA-F0-9]{40}$/,ct=/* @__PURE__ */new rt(8192);function lt(e,t){const{strict:n=!0}=t??{},o=`${e}.${n}`;if(ct.has(o))return ct.get(o);const i=!(!st.test(e)||e.toLowerCase()!==e&&n&&function(e){if(at.has(`${e}.undefined`))return at.get(`${e}.undefined`);const t=e.substring(2).toLowerCase(),n=tt(se(t),"bytes"),o=t.split("");for(let r=0;r<40;r+=2)n[r>>1]>>4>=8&&o[r]&&(o[r]=o[r].toUpperCase()),(15&n[r>>1])>=8&&o[r+1]&&(o[r+1]=o[r+1].toUpperCase());const i=`0x${o.join("")}`;return at.set(`${e}.undefined`,i),i}(e)!==e);return ct.set(o,i),i}function ut(e){return"string"==typeof e[0]?dt(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let o=0;for(const i of e)n.set(i,o),o+=i.length;return n}(e)}function dt(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function ht(e,t,n,{strict:o}={}){return E(e,{strict:!1})?function(e,t,n,{strict:o}={}){ft(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;return o&&pt(i,t,n),i}(e,t,n,{strict:o}):function(e,t,n,{strict:o}={}){ft(e,t);const i=e.slice(t,n);return o&&pt(i,t,n),i}(e,t,n,{strict:o})}function ft(e,t){if("number"==typeof t&&t>0&&t>C(e)-1)throw new H({offset:t,position:"start",size:C(e)})}function pt(e,t,n){if("number"==typeof t&&"number"==typeof n&&C(e)!==n-t)throw new H({offset:n,position:"end",size:C(e)})}const mt=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function wt(e,t){if(e.length!==t.length)throw new P({expectedLength:e.length,givenLength:t.length});const n=function({params:e,values:t}){const n=[];for(let o=0;o<e.length;o++)n.push(gt({param:e[o],value:t[o]}));return n}({params:e,values:t}),o=bt(n);return 0===o.length?"0x":o}function gt({param:e,value:t}){const n=function(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(e.type);if(n){const[o,i]=n;return function(e,{length:t,param:n}){const o=null===t;if(!Array.isArray(e))throw new D(e);if(!o&&e.length!==t)throw new M({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const r=[];for(let a=0;a<e.length;a++){const t=gt({param:n,value:e[a]});t.dynamic&&(i=!0),r.push(t)}if(o||i){const e=bt(r);if(o){const t=$(r.length,{size:32});return{dynamic:!0,encoded:r.length>0?ut([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:ut(r.map(({encoded:e})=>e))}}(t,{length:o,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:t}){let n=!1;const o=[];for(let i=0;i<t.components.length;i++){const r=t.components[i],a=gt({param:r,value:e[Array.isArray(e)?i:r.name]});o.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?bt(o):ut(o.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!lt(e))throw new it({address:e});return{dynamic:!1,encoded:z(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new N(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:z(Z(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int"),[,,o="256"]=mt.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){const o=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-o-1n:0n;if(e>o||e<i)throw new W({max:o.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:$(e,{size:32,signed:t})}}(t,{signed:n,size:Number(o)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,n]=t.type.split("bytes"),o=C(e);if(!n){let t=e;return o%32!=0&&(t=z(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:ut([z($(o,{size:32})),t])}}if(o!==Number.parseInt(n,10))throw new R({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:z(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=te(e),n=Math.ceil(C(t)/32),o=[];for(let i=0;i<n;i++)o.push(z(ht(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:ut([z($(C(t),{size:32})),...o])}}(t);throw new L(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function bt(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:C(o)}const n=[],o=[];let i=0;for(let r=0;r<e.length;r++){const{dynamic:a,encoded:s}=e[r];a?(n.push($(t+i,{size:32})),o.push(s),i+=C(s)):n.push(s)}return ut([...n,...o])}const yt=e=>ht(nt(e),0,4);function vt(e,t){const n=typeof e,o=t.type;switch(o){case"address":return lt(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===o&&"components"in t?Object.values(t.components).every((t,o)=>"object"===n&&vt(Object.values(e)[o],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)&&Array.isArray(e)&&e.every(e=>vt(e,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")}))}}function At(e,t,n){for(const o in e){const i=e[o],r=t[o];if("tuple"===i.type&&"tuple"===r.type&&"components"in i&&"components"in r)return At(i.components,r.components,n[o]);const a=[i.type,r.type];if((()=>!(!a.includes("address")||!a.includes("bytes20"))||(a.includes("address")&&a.includes("string")||!(!a.includes("address")||!a.includes("bytes")))&&lt(n[o],{strict:!1}))())return a}}function kt(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const xt="/docs/contract/encodeFunctionData";function Tt(e){const{args:t}=e,{abi:n,functionName:o}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){const{abi:t,args:n,functionName:o}=e;let i=t[0];if(o){const e=function(e){const{abi:t,args:n=[],name:o}=e,i=E(o,{strict:!1}),r=t.filter(e=>i?"function"===e.type?yt(e)===o:"event"===e.type&&ot(e)===o:"name"in e&&e.name===o);if(0===r.length)return;if(1===r.length)return r[0];let a;for(const s of r)if("inputs"in s)if(n&&0!==n.length){if(s.inputs&&0!==s.inputs.length&&s.inputs.length===n.length&&n.every((e,t)=>{const n="inputs"in s&&s.inputs[t];return!!n&&vt(e,n)})){if(a&&"inputs"in a&&a.inputs){const e=At(s.inputs,a.inputs,n);if(e)throw new O({abiItem:s,type:e[0]},{abiItem:a,type:e[1]})}a=s}}else if(!s.inputs||0===s.inputs.length)return s;return a||r[0]}({abi:t,args:n,name:o});if(!e)throw new U(o,{docsPath:xt});i=e}if("function"!==i.type)throw new U(void 0,{docsPath:xt});return{abi:[i],functionName:yt(x(i))}}(e),i=n[0];return dt([o,("inputs"in i&&i.inputs?wt(i.inputs,t??[]):void 0)??"0x"])}class Et extends N{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Ct extends N{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class It extends N{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const St={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:/* @__PURE__ */new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new It({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Ct({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Et({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Et({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this.i();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this.i();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this.i();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.i();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.i();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.i();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},i(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Nt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(St);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=/* @__PURE__ */new Map,n.recursiveReadLimit=t,n}const Bt={gwei:9,wei:18},Mt={ether:-9,wei:9};function Rt(e,t){let n=e.toString();const o=n.startsWith("-");o&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,r]=[n.slice(0,n.length-t),n.slice(n.length-t)];return r=r.replace(/(0+)$/,""),`${o?"-":""}${i||"0"}${r?`.${r}`:""}`}function Pt(e,t="wei"){return Rt(e,Bt[t])}function Ut(e,t="wei"){return Rt(e,Mt[t])}function Ot(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}\n`,"")}function Lt(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class Dt extends N{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Ft extends N{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Lt(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Ht extends N{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class qt extends N{constructor(e,{account:t,docsPath:n,chain:o,data:i,gas:r,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d,stateOverride:h}){const f=t?kt(t):void 0;let p=Lt({from:f?.address,to:u,value:void 0!==d&&`${Pt(d)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:r,gasPrice:void 0!==a&&`${Ut(a)} gwei`,maxFeePerGas:void 0!==s&&`${Ut(s)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Ut(c)} gwei`,nonce:l});h&&(p+=`\n${function(e){return e.reduce((e,{address:t,...n})=>{let o=`${e} ${t}:\n`;return n.nonce&&(o+=` nonce: ${n.nonce}\n`),n.balance&&(o+=` balance: ${n.balance}\n`),n.code&&(o+=` code: ${n.code}\n`),n.state&&(o+=" state:\n",o+=Ot(n.state)),n.stateDiff&&(o+=" stateDiff:\n",o+=Ot(n.stateDiff)),o}," State Override:\n").slice(0,-1)}(h)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}function Vt(e,t="hex"){const n=zt(e),o=Nt(new Uint8Array(n.length));return n.encode(o),"hex"===t?_(o.bytes):o.bytes}function zt(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=Wt(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),1===n?o.pushUint8(t):2===n?o.pushUint16(t):3===n?o.pushUint24(t):o.pushUint32(t));for(const{encode:t}of e)t(o)}}}(e.map(e=>zt(e))):function(e){const t="string"==typeof e?ae(e):e,n=Wt(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function Wt(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new N("Length is too large.")}class jt extends N{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(jt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(jt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Gt extends N{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ut(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(Gt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Jt extends N{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Ut(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(Jt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Yt extends N{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Yt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Xt extends N{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(Xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Qt extends N{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Qt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Kt extends N{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Kt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Zt extends N{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Zt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class _t extends N{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(_t,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class $t extends N{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty($t,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class en extends N{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Ut(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Ut(n)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(en,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class tn extends N{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function nn(e,{format:t}){if(!t)return{};const n={};return function t(o){const i=Object.keys(o);for(const r of i)r in e&&(n[r]=e[r]),o[r]&&"object"==typeof o[r]&&!Array.isArray(o[r])&&t(o[r])}(t(e||{})),n}function on(e,t){return({exclude:n,format:o})=>({exclude:n,format:(e,i)=>{const r=t(e,i);if(n)for(const t of n)delete r[t];return{...r,...o(e,i)}},type:e})}const rn={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function an(e,t){const n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?$(BigInt(e.r)):e.r,s:e.s?$(BigInt(e.s)):e.s,chainId:$(e.chainId),nonce:$(e.nonce),...void 0!==e.yParity?{yParity:$(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:$(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>_(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=$(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=$(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=$(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=$(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=$(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=$(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=rn[e.type]),void 0!==e.value&&(n.value=$(e.value)),n}const sn=2n**256n-1n,cn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ln(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?X(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?X(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?cn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const un=/* @__PURE__ */on("transaction",ln);function dn(e,t){const n=(e.transactions??[]).map(e=>"string"==typeof e?e:ln(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const hn=/* @__PURE__ */on("block",dn);function fn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>ae(e)):e.blobs,i=[];for(const r of o)i.push(Uint8Array.from(t.blobToKzgCommitment(r)));return"bytes"===n?i:i.map(e=>_(e))}function pn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>ae(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>ae(e)):e.commitments,r=[];for(let a=0;a<o.length;a++){const e=o[a],n=i[a];r.push(Uint8Array.from(t.computeBlobKzgProof(e,n)))}return"bytes"===n?r:r.map(e=>_(e))}function mn(e,t,n){return e&t^~e&n}function wn(e,t,n){return e&t^e&n^t&n}class gn extends Le{constructor(e,t,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(e),this.view=Me(this.buffer)}update(e){Se(this),Ie(e=Oe(e));const{view:t,buffer:n,blockLen:o}=this,i=e.length;for(let r=0;r<i;){const a=Math.min(o-this.pos,i-r);if(a===o){const t=Me(e);for(;o<=i-r;r+=o)this.process(t,r);continue}n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Se(this),Ne(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:o,isLE:i}=this;let{pos:r}=this;t[r++]=128,Be(this.buffer.subarray(r)),this.padOffset>o-r&&(this.process(n,0),r=0);for(let u=r;u<o;u++)t[u]=0;!function(e,t,n,o){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,o);const i=BigInt(32),r=BigInt(4294967295),a=Number(n>>i&r),s=Number(n&r),c=o?4:0,l=o?0:4;e.setUint32(t+c,a,o),e.setUint32(t+l,s,o)}(n,o-8,BigInt(8*this.length),i),this.process(n,0);const a=Me(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=s/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<c;u++)a.setUint32(4*u,l[u],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}o(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:o,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=o,e.pos=a,o%t&&e.buffer.set(n),e}clone(){return this.o()}}const bn=/* @__PURE__ */Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yn=/* @__PURE__ */Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),vn=/* @__PURE__ */Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),An=/* @__PURE__ */new Uint32Array(64);class kn extends gn{constructor(e=32){super(64,e,8,!1),this.A=0|bn[0],this.B=0|bn[1],this.C=0|bn[2],this.D=0|bn[3],this.E=0|bn[4],this.F=0|bn[5],this.G=0|bn[6],this.H=0|bn[7]}get(){const{A:e,B:t,C:n,D:o,E:i,F:r,G:a,H:s}=this;return[e,t,n,o,i,r,a,s]}set(e,t,n,o,i,r,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|r,this.G=0|a,this.H=0|s}process(e,t){for(let u=0;u<16;u++,t+=4)An[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const e=An[u-15],t=An[u-2],n=Re(e,7)^Re(e,18)^e>>>3,o=Re(t,17)^Re(t,19)^t>>>10;An[u]=o+An[u-7]+n+An[u-16]|0}let{A:n,B:o,C:i,D:r,E:a,F:s,G:c,H:l}=this;for(let u=0;u<64;u++){const e=l+(Re(a,6)^Re(a,11)^Re(a,25))+mn(a,s,c)+vn[u]+An[u]|0,t=(Re(n,2)^Re(n,13)^Re(n,22))+wn(n,o,i)|0;l=c,c=s,s=a,a=r+e|0,r=i,i=o,o=n,n=e+t|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,o,i,r,a,s,c,l)}roundClean(){Be(An)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}}const xn=/* @__PURE__ */(()=>de(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),Tn=/* @__PURE__ */(()=>xn[0])(),En=/* @__PURE__ */(()=>xn[1])(),Cn=/* @__PURE__ */new Uint32Array(80),In=/* @__PURE__ */new Uint32Array(80);class Sn extends gn{constructor(e=64){super(128,e,16,!1),this.Ah=0|yn[0],this.Al=0|yn[1],this.Bh=0|yn[2],this.Bl=0|yn[3],this.Ch=0|yn[4],this.Cl=0|yn[5],this.Dh=0|yn[6],this.Dl=0|yn[7],this.Eh=0|yn[8],this.El=0|yn[9],this.Fh=0|yn[10],this.Fl=0|yn[11],this.Gh=0|yn[12],this.Gl=0|yn[13],this.Hh=0|yn[14],this.Hl=0|yn[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:o,Ch:i,Cl:r,Dh:a,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:m}=this;return[e,t,n,o,i,r,a,s,c,l,u,d,h,f,p,m]}set(e,t,n,o,i,r,a,s,c,l,u,d,h,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|o,this.Ch=0|i,this.Cl=0|r,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let b=0;b<16;b++,t+=4)Cn[b]=e.getUint32(t),In[b]=e.getUint32(t+=4);for(let b=16;b<80;b++){const e=0|Cn[b-15],t=0|In[b-15],n=pe(e,t,1)^pe(e,t,8)^he(e,0,7),o=me(e,t,1)^me(e,t,8)^fe(e,t,7),i=0|Cn[b-2],r=0|In[b-2],a=pe(i,r,19)^we(i,r,61)^he(i,0,6),s=me(i,r,19)^ge(i,r,61)^fe(i,r,6),c=Ae(o,s,In[b-7],In[b-16]),l=ke(c,n,a,Cn[b-7],Cn[b-16]);Cn[b]=0|l,In[b]=0|c}let{Ah:n,Al:o,Bh:i,Bl:r,Ch:a,Cl:s,Dh:c,Dl:l,Eh:u,El:d,Fh:h,Fl:f,Gh:p,Gl:m,Hh:w,Hl:g}=this;for(let b=0;b<80;b++){const e=pe(u,d,14)^pe(u,d,18)^we(u,d,41),t=me(u,d,14)^me(u,d,18)^ge(u,d,41),y=u&h^~u&p,v=xe(g,t,d&f^~d&m,En[b],In[b]),A=Te(v,w,e,y,Tn[b],Cn[b]),k=0|v,x=pe(n,o,28)^we(n,o,34)^we(n,o,39),T=me(n,o,28)^ge(n,o,34)^ge(n,o,39),E=n&i^n&a^i&a,C=o&r^o&s^r&s;w=0|p,g=0|m,p=0|h,m=0|f,h=0|u,f=0|d,({h:u,l:d}=be(0|c,0|l,0|A,0|k)),c=0|a,l=0|s,a=0|i,s=0|r,i=0|n,r=0|o;const I=ye(k,T,C);n=ve(I,A,x,E),o=0|I}({h:n,l:o}=be(0|this.Ah,0|this.Al,0|n,0|o)),({h:i,l:r}=be(0|this.Bh,0|this.Bl,0|i,0|r)),({h:a,l:s}=be(0|this.Ch,0|this.Cl,0|a,0|s)),({h:c,l:l}=be(0|this.Dh,0|this.Dl,0|c,0|l)),({h:u,l:d}=be(0|this.Eh,0|this.El,0|u,0|d)),({h:h,l:f}=be(0|this.Fh,0|this.Fl,0|h,0|f)),({h:p,l:m}=be(0|this.Gh,0|this.Gl,0|p,0|m)),({h:w,l:g}=be(0|this.Hh,0|this.Hl,0|w,0|g)),this.set(n,o,i,r,a,s,c,l,u,d,h,f,p,m,w,g)}roundClean(){Be(Cn,In)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Nn=/* @__PURE__ */De(()=>new kn),Bn=/* @__PURE__ */De(()=>new Sn),Mn=Nn;function Rn(e){const{commitment:t,version:n=1}=e,o=e.to??("string"==typeof t?"hex":"bytes"),i=Mn(E(r=t,{strict:!1})?oe(r):r);var r;return i.set([n],0),"bytes"===o?i:_(i)}const Pn=761855;class Un extends N{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class On extends N{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Ln extends N{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class Dn extends N{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}const Fn=/* @__PURE__ */BigInt(0),Hn=/* @__PURE__ */BigInt(1);function qn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function Vn(e){if(!qn(e))throw new Error("Uint8Array expected")}function zn(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)}function Wn(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function jn(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?Fn:BigInt("0x"+e)}const Gn="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Jn=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Yn(e){if(Vn(e),Gn)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Jn[e[n]];return t}function Xn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Qn(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Gn)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(n);for(let i=0,r=0;i<n;i++,r+=2){const t=Xn(e.charCodeAt(r)),n=Xn(e.charCodeAt(r+1));if(void 0===t||void 0===n){const t=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+r)}o[i]=16*t+n}return o}function Kn(e){return jn(Yn(e))}function Zn(e){return Vn(e),jn(Yn(Uint8Array.from(e).reverse()))}function _n(e,t){return Qn(e.toString(16).padStart(2*t,"0"))}function $n(e,t){return _n(e,t).reverse()}function eo(e,t,n){let o;if("string"==typeof t)try{o=Qn(t)}catch(r){throw new Error(e+" must be hex string or Uint8Array, cause: "+r)}else{if(!qn(t))throw new Error(e+" must be hex string or Uint8Array");o=Uint8Array.from(t)}const i=o.length;if("number"==typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return o}function to(...e){let t=0;for(let o=0;o<e.length;o++){const n=e[o];Vn(n),t+=n.length}const n=new Uint8Array(t);for(let o=0,i=0;o<e.length;o++){const t=e[o];n.set(t,i),i+=t.length}return n}const no=e=>"bigint"==typeof e&&Fn<=e;function oo(e,t,n){return no(e)&&no(t)&&no(n)&&t<=e&&e<n}function io(e,t,n,o){if(!oo(t,n,o))throw new Error("expected valid "+e+": "+n+" <= n < "+o+", got "+t)}const ro=e=>(Hn<<BigInt(e))-Hn,ao=e=>new Uint8Array(e),so=e=>Uint8Array.from(e),co={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||qn(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function lo(e,t,n={}){const o=(t,n,o)=>{const i=co[n];if("function"!=typeof i)throw new Error("invalid validator function");const r=e[t];if(!(o&&void 0===r||i(r,e)))throw new Error("param "+String(t)+" is invalid. Expected "+n+", got "+r)};for(const[i,r]of Object.entries(t))o(i,r,!1);for(const[i,r]of Object.entries(n))o(i,r,!0);return e}function uo(e){const t=/* @__PURE__ */new WeakMap;return(n,...o)=>{const i=t.get(n);if(void 0!==i)return i;const r=e(n,...o);return t.set(n,r),r}}class ho extends N{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class fo extends N{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}const po={"0x0":"reverted","0x1":"success"};function mo(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?X(e.transactionIndex):null,status:e.status?po[e.status]:null,type:e.type?cn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const wo=/* @__PURE__ */on("transactionReceipt",mo);function go(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:o,to:i}=e;if(t<=0)throw new ho({chainId:t});if(i&&!lt(i))throw new it({address:i});if(o&&o>sn)throw new Gt({maxFeePerGas:o});if(n&&o&&n>o)throw new en({maxFeePerGas:o,maxPriorityFeePerGas:n})}function bo(e){if(!e||0===e.length)return[];const t=[];for(let n=0;n<e.length;n++){const{address:o,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new Ht({storageKey:i[e]});if(!lt(o,{strict:!1}))throw new it({address:o});t.push([o,i])}return t}function yo(e,t){const n=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new Ft({transaction:e})}(e);return"eip1559"===n?function(e,t){const{chainId:n,gas:o,nonce:i,to:r,value:a,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:l,data:u}=e;go(e);const d=bo(l);return dt(["0x02",Vt([$(n),i?$(i):"0x",c?$(c):"0x",s?$(s):"0x",o?$(o):"0x",r??"0x",a?$(a):"0x",u??"0x",d,...vo(e,t)])])}(e,t):"eip2930"===n?function(e,t){const{chainId:n,gas:o,data:i,nonce:r,to:a,value:s,accessList:c,gasPrice:l}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:o,maxFeePerGas:i,to:r}=e;if(t<=0)throw new ho({chainId:t});if(r&&!lt(r))throw new it({address:r});if(n||i)throw new N("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>sn)throw new Gt({maxFeePerGas:o})}(e);const u=bo(c);return dt(["0x01",Vt([$(n),r?$(r):"0x",l?$(l):"0x",o?$(o):"0x",a??"0x",s?$(s):"0x",i??"0x",u,...vo(e,t)])])}(e,t):"eip4844"===n?function(e,t){const{chainId:n,gas:o,nonce:i,to:r,value:a,maxFeePerBlobGas:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new On;for(const e of t){const t=C(e),n=X(ht(e,0,1));if(32!==t)throw new Ln({hash:e,size:t});if(1!==n)throw new Dn({hash:e,version:n})}}go(e)}(e);let h=e.blobVersionedHashes,f=e.sidecars;if(e.blobs&&(void 0===h||void 0===f)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>_(e)),n=e.kzg,o=fn({blobs:t,kzg:n});void 0===h&&(h=function(e){const{commitments:t,version:n}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(const r of t)i.push(Rn({commitment:r,to:o,version:n}));return i}({commitments:o})),void 0===f&&(f=function(e){const{data:t,kzg:n,to:o}=e,i=e.blobs??function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?ae(e.data):e.data,o=C(n);if(!o)throw new On;if(o>Pn)throw new Un({maxSize:Pn,size:o});const i=[];let r=!0,a=0;for(;r;){const e=Nt(new Uint8Array(131072));let t=0;for(;t<4096;){const o=n.slice(a,a+31);if(e.pushByte(0),e.pushBytes(o),o.length<31){e.pushByte(128),r=!1;break}t++,a+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>_(e.bytes))}({data:t,to:o}),r=e.commitments??fn({blobs:i,kzg:n,to:o}),a=e.proofs??pn({blobs:i,commitments:r,kzg:n,to:o}),s=[];for(let c=0;c<i.length;c++)s.push({blob:i[c],commitment:r[c],proof:a[c]});return s}({blobs:t,commitments:o,proofs:pn({blobs:t,commitments:o,kzg:n})}))}const p=bo(u),m=[$(n),i?$(i):"0x",l?$(l):"0x",c?$(c):"0x",o?$(o):"0x",r??"0x",a?$(a):"0x",d??"0x",p,s?$(s):"0x",h??[],...vo(e,t)],w=[],g=[],b=[];if(f)for(let y=0;y<f.length;y++){const{blob:e,commitment:t,proof:n}=f[y];w.push(e),g.push(t),b.push(n)}return dt(["0x03",Vt(f?[m,w,g,b]:m)])}(e,t):"eip7702"===n?function(e,t){const{authorizationList:n,chainId:o,gas:i,nonce:r,to:a,value:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;!function(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:e}=n,t=n.address;if(!lt(t))throw new it({address:t});if(e<0)throw new ho({chainId:e})}go(e)}(e);const h=bo(u),f=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const{chainId:e,nonce:o,...i}=n,r=n.address;t.push([e?K(e):"0x",r,o?K(o):"0x",...vo({},i)])}return t}(n);return dt(["0x04",Vt([$(o),r?$(r):"0x",l?$(l):"0x",c?$(c):"0x",i?$(i):"0x",a??"0x",s?$(s):"0x",d??"0x",h,f,...vo(e,t)])])}(e,t):function(e,t){const{chainId:n=0,gas:o,data:i,nonce:r,to:a,value:s,gasPrice:c}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:o,maxFeePerGas:i,to:r}=e;if(r&&!lt(r))throw new it({address:r});if(void 0!==t&&t<=0)throw new ho({chainId:t});if(n||i)throw new N("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>sn)throw new Gt({maxFeePerGas:o})}(e);let l=[r?$(r):"0x",c?$(c):"0x",o?$(o):"0x",a??"0x",s?$(s):"0x",i??"0x"];if(t){const e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new Dt({v:t.v});return e})(),o=G(t.r),i=G(t.s);l=[...l,$(e),"0x00"===o?"0x":o,"0x00"===i?"0x":i]}else n>0&&(l=[...l,$(n),"0x","0x"]);return Vt(l)}(e,t)}function vo(e,t){const n=t??e,{v:o,yParity:i}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===o&&void 0===i)return[];const r=G(n.r),a=G(n.s);return["number"==typeof i?i?$(1):"0x":0n===o?"0x":1n===o?$(1):27n===o?"0x":$(1),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}function Ao(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{const o="function"==typeof n?n(t):n,i={...t,...o};return Object.assign(i,{extend:e(i)})}}(t)})}class ko extends Le{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");Ce(e.outputLen),Ce(e.blockLen)}(e);const n=Oe(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?e.create().update(n).digest():n);for(let r=0;r<i.length;r++)i[r]^=54;this.iHash.update(i),this.oHash=e.create();for(let r=0;r<i.length;r++)i[r]^=106;this.oHash.update(i),Be(i)}update(e){return Se(this),this.iHash.update(e),this}digestInto(e){Se(this),Ie(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}o(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:o,destroyed:i,blockLen:r,outputLen:a}=this;return e.finished=o,e.destroyed=i,e.blockLen=r,e.outputLen=a,e.oHash=t.o(e.oHash),e.iHash=n.o(e.iHash),e}clone(){return this.o()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const xo=(e,t,n)=>new ko(e,t).update(n).digest();xo.create=(e,t)=>new ko(e,t);const To=BigInt(0),Eo=BigInt(1),Co=/* @__PURE__ */BigInt(2),Io=/* @__PURE__ */BigInt(3),So=/* @__PURE__ */BigInt(4),No=/* @__PURE__ */BigInt(5),Bo=/* @__PURE__ */BigInt(8);function Mo(e,t){const n=e%t;return n>=To?n:t+n}function Ro(e,t,n){let o=e;for(;t-- >To;)o*=o,o%=n;return o}function Po(e,t){if(e===To)throw new Error("invert: expected non-zero number");if(t<=To)throw new Error("invert: expected positive modulus, got "+t);let n=Mo(e,t),o=t,i=To,r=Eo;for(;n!==To;){const e=o%n,t=i-r*(o/n);o=n,n=e,i=r,r=t}if(o!==Eo)throw new Error("invert: does not exist");return Mo(i,t)}function Uo(e,t){const n=(e.ORDER+Eo)/So,o=e.pow(t,n);if(!e.eql(e.sqr(o),t))throw new Error("Cannot find square root");return o}function Oo(e,t){const n=(e.ORDER-No)/Bo,o=e.mul(t,Co),i=e.pow(o,n),r=e.mul(t,i),a=e.mul(e.mul(r,Co),i),s=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),t))throw new Error("Cannot find square root");return s}const Lo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Do(e,t,n=!1){const o=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(o[i]=t,e.mul(t,n)),e.ONE),r=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(o[i]=e.mul(t,o[i]),e.mul(t,n)),r),o}function Fo(e,t){const n=(e.ORDER-Eo)/Co,o=e.pow(t,n),i=e.eql(o,e.ONE),r=e.eql(o,e.ZERO),a=e.eql(o,e.neg(e.ONE));if(!i&&!r&&!a)throw new Error("invalid Legendre symbol result");return i?1:r?0:-1}function Ho(e,t){void 0!==t&&Ce(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function qo(e,t,n=!1,o={}){if(e<=To)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:r}=Ho(e,t);if(r>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let a;const s=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:r,MASK:ro(i),ZERO:To,ONE:Eo,create:t=>Mo(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return To<=t&&t<e},is0:e=>e===To,isOdd:e=>(e&Eo)===Eo,neg:t=>Mo(-t,e),eql:(e,t)=>e===t,sqr:t=>Mo(t*t,e),add:(t,n)=>Mo(t+n,e),sub:(t,n)=>Mo(t-n,e),mul:(t,n)=>Mo(t*n,e),pow:(e,t)=>function(e,t,n){if(n<To)throw new Error("invalid exponent, negatives unsupported");if(n===To)return e.ONE;if(n===Eo)return t;let o=e.ONE,i=t;for(;n>To;)n&Eo&&(o=e.mul(o,i)),i=e.sqr(i),n>>=Eo;return o}(s,e,t),div:(t,n)=>Mo(t*Po(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Po(t,e),sqrt:o.sqrt||(t=>{return a||(a=(n=e)%So===Io?Uo:n%Bo===No?Oo:function(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Eo,n=0;for(;t%Co===To;)t/=Co,n++;let o=Co;const i=qo(e);for(;1===Fo(i,o);)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return Uo;let r=i.pow(o,t);const a=(t+Eo)/Co;return function(e,o){if(e.is0(o))return o;if(1!==Fo(e,o))throw new Error("Cannot find square root");let i=n,s=e.mul(e.ONE,r),c=e.pow(o,t),l=e.pow(o,a);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const o=Eo<<BigInt(i-t-1),r=e.pow(s,o);i=t,s=e.sqr(r),c=e.mul(c,s),l=e.mul(l,r)}return l}}(n)),a(s,t);var n}),toBytes:e=>n?$n(e,r):_n(e,r),fromBytes:e=>{if(e.length!==r)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+e.length);return n?Zn(e):Kn(e)},invertBatch:e=>Do(s,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(s)}function Vo(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function zo(e){const t=Vo(e);return t+Math.ceil(t/2)}const Wo=BigInt(0),jo=BigInt(1);function Go(e,t){const n=t.negate();return e?n:t}function Jo(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Yo(e,t){Jo(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:ro(e),maxNumber:n,shiftBy:BigInt(e)}}function Xo(e,t,n){const{windowSize:o,mask:i,maxNumber:r,shiftBy:a}=n;let s=Number(e&i),c=e>>a;s>o&&(s-=r,c+=jo);const l=t*o;return{nextN:c,offset:l+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:l}}const Qo=/* @__PURE__ */new WeakMap,Ko=/* @__PURE__ */new WeakMap;function Zo(e){return Ko.get(e)||1}function _o(e,t){return{constTimeNegate:Go,hasPrecomputes:e=>1!==Zo(e),unsafeLadder(t,n,o=e.ZERO){let i=t;for(;n>Wo;)n&jo&&(o=o.add(i)),i=i.double(),n>>=jo;return o},precomputeWindow(e,n){const{windows:o,windowSize:i}=Yo(n,t),r=[];let a=e,s=a;for(let t=0;t<o;t++){s=a,r.push(s);for(let e=1;e<i;e++)s=s.add(a),r.push(s);a=s.double()}return r},wNAF(n,o,i){let r=e.ZERO,a=e.BASE;const s=Yo(n,t);for(let e=0;e<s.windows;e++){const{nextN:t,offset:n,isZero:c,isNeg:l,isNegF:u,offsetF:d}=Xo(i,e,s);i=t,c?a=a.add(Go(u,o[d])):r=r.add(Go(l,o[n]))}return{p:r,f:a}},wNAFUnsafe(n,o,i,r=e.ZERO){const a=Yo(n,t);for(let e=0;e<a.windows&&i!==Wo;e++){const{nextN:t,offset:n,isZero:s,isNeg:c}=Xo(i,e,a);if(i=t,!s){const e=o[n];r=r.add(c?e.negate():e)}}return r},getPrecomputes(e,t,n){let o=Qo.get(t);return o||(o=this.precomputeWindow(t,e),1!==e&&Qo.set(t,n(o))),o},wNAFCached(e,t,n){const o=Zo(e);return this.wNAF(o,this.getPrecomputes(o,e,n),t)},wNAFCachedUnsafe(e,t,n,o){const i=Zo(e);return 1===i?this.unsafeLadder(e,t,o):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,o)},setWindowSize(e,n){Jo(n,t),Ko.set(e,n),Qo.delete(e)}}}function $o(e,t,n,o){!function(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}(o,t);const i=n.length,r=o.length;if(i!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=function(e){let t;for(t=0;e>Fn;e>>=Hn,t+=1);return t}(BigInt(i));let c=1;s>12?c=s-3:s>4?c=s-2:s>0&&(c=2);const l=ro(c),u=new Array(Number(l)+1).fill(a);let d=a;for(let h=Math.floor((t.BITS-1)/c)*c;h>=0;h-=c){u.fill(a);for(let t=0;t<r;t++){const e=o[t],i=Number(e>>BigInt(h)&l);u[i]=u[i].add(n[t])}let e=a;for(let t=u.length-1,n=a;t>0;t--)n=n.add(u[t]),e=e.add(n);if(d=d.add(e),0!==h)for(let t=0;t<c;t++)d=d.double()}return d}function ei(e){return lo(e.Fp,Lo.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),lo(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ho(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function ti(e){void 0!==e.lowS&&zn("lowS",e.lowS),void 0!==e.prehash&&zn("prehash",e.prehash)}class ni extends Error{constructor(e=""){super(e)}}const oi={Err:ni,u:{encode:(e,t)=>{const{Err:n}=oi;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const o=t.length/2,i=Wn(o);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const r=o>127?Wn(i.length/2|128):"";return Wn(e)+r+i+t},decode(e,t){const{Err:n}=oi;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[o++];let r=0;if(128&i){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const a=t.subarray(o,o+e);if(a.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===a[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of a)r=r<<8|t;if(o+=e,r<128)throw new n("tlv.decode(long): not minimal encoding")}else r=i;const a=t.subarray(o,o+r);if(a.length!==r)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(o+r)}}},T:{encode(e){const{Err:t}=oi;if(e<ri)throw new t("integer: negative integers are not allowed");let n=Wn(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=oi;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return Kn(e)}},toSig(e){const{Err:t,T:n,u:o}=oi,i=eo("signature",e),{v:r,l:a}=o.decode(48,i);if(a.length)throw new t("invalid signature: left bytes after parsing");const{v:s,l:c}=o.decode(2,r),{v:l,l:u}=o.decode(2,c);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(l)}},hexFromSig(e){const{u:t,T:n}=oi,o=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,o)}};function ii(e,t){return Yn(_n(e,t))}const ri=BigInt(0),ai=BigInt(1);BigInt(2);const si=BigInt(3),ci=BigInt(4);function li(e){const t=function(e){const t=ei(e);return lo(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:o,nByteLength:i,nBitLength:r}=t,a=n.BYTES+1,s=2*n.BYTES+1;function c(e){return Mo(e,o)}function l(e){return Po(e,o)}const{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:h,isWithinCurveOrder:f}=function(e){const t=function(e){const t=ei(e);lo(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:o,a:i}=t;if(n){if(!o.eql(i,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:n}=t,o=qo(t.n,t.nBitLength),i=t.toBytes||((e,t,o)=>{const i=t.toAffine();return to(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),r=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function a(e){const{a:o,b:i}=t,r=n.sqr(e),a=n.mul(r,e);return n.add(n.add(a,n.mul(e,o)),i)}function s(e,t){const o=n.sqr(t),i=a(e);return n.eql(o,i)}if(!s(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(t.a,si),ci),l=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(c,l)))throw new Error("bad curve params: a or b");function u(e){const{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:i,n:r}=t;if(n&&"bigint"!=typeof e){if(qn(e)&&(e=Yn(e)),"string"!=typeof e||!n.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*o,"0")}let a;try{a="bigint"==typeof e?e:Kn(eo("private key",e,o))}catch(s){throw new Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return i&&(a=Mo(a,r)),io("private key",a,ai,r),a}function d(e){if(!(e instanceof p))throw new Error("ProjectivePoint expected")}const h=uo((e,t)=>{const{px:o,py:i,pz:r}=e;if(n.eql(r,n.ONE))return{x:o,y:i};const a=e.is0();null==t&&(t=a?n.ONE:n.inv(r));const s=n.mul(o,t),c=n.mul(i,t),l=n.mul(r,t);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),f=uo(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:o,y:i}=e.toAffine();if(!n.isValid(o)||!n.isValid(i))throw new Error("bad point: x or y not FE");if(!s(o,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class p{constructor(e,t,o){if(null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t)||n.is0(t))throw new Error("y required");if(null==o||!n.isValid(o))throw new Error("z required");this.px=e,this.py=t,this.pz=o,Object.freeze(this)}static fromAffine(e){const{x:t,y:o}=e||{};if(!e||!n.isValid(t)||!n.isValid(o))throw new Error("invalid affine point");if(e instanceof p)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(o)?p.ZERO:new p(t,o,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=Do(n,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(p.fromAffine)}static fromHex(e){const t=p.fromAffine(r(eo("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(u(e))}static msm(e,t){return $o(p,o,e,t)}I(e){g.setWindowSize(this,e)}assertValidity(){f(this)}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){d(e);const{px:t,py:o,pz:i}=this,{px:r,py:a,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(r,i)),l=n.eql(n.mul(o,s),n.mul(a,i));return c&&l}negate(){return new p(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:o}=t,i=n.mul(o,si),{px:r,py:a,pz:s}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(r,r),h=n.mul(a,a),f=n.mul(s,s),m=n.mul(r,a);return m=n.add(m,m),u=n.mul(r,s),u=n.add(u,u),c=n.mul(e,u),l=n.mul(i,f),l=n.add(c,l),c=n.sub(h,l),l=n.add(h,l),l=n.mul(c,l),c=n.mul(m,c),u=n.mul(i,u),f=n.mul(e,f),m=n.sub(d,f),m=n.mul(e,m),m=n.add(m,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,f),d=n.mul(d,m),l=n.add(l,d),f=n.mul(a,s),f=n.add(f,f),d=n.mul(f,m),c=n.sub(c,d),u=n.mul(f,h),u=n.add(u,u),u=n.add(u,u),new p(c,l,u)}add(e){d(e);const{px:o,py:i,pz:r}=this,{px:a,py:s,pz:c}=e;let l=n.ZERO,u=n.ZERO,h=n.ZERO;const f=t.a,m=n.mul(t.b,si);let w=n.mul(o,a),g=n.mul(i,s),b=n.mul(r,c),y=n.add(o,i),v=n.add(a,s);y=n.mul(y,v),v=n.add(w,g),y=n.sub(y,v),v=n.add(o,r);let A=n.add(a,c);return v=n.mul(v,A),A=n.add(w,b),v=n.sub(v,A),A=n.add(i,r),l=n.add(s,c),A=n.mul(A,l),l=n.add(g,b),A=n.sub(A,l),h=n.mul(f,v),l=n.mul(m,b),h=n.add(l,h),l=n.sub(g,h),h=n.add(g,h),u=n.mul(l,h),g=n.add(w,w),g=n.add(g,w),b=n.mul(f,b),v=n.mul(m,v),g=n.add(g,b),b=n.sub(w,b),b=n.mul(f,b),v=n.add(v,b),w=n.mul(g,v),u=n.add(u,w),w=n.mul(A,v),l=n.mul(y,l),l=n.sub(l,w),w=n.mul(y,g),h=n.mul(A,h),h=n.add(h,w),new p(l,u,h)}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return g.wNAFCached(this,e,p.normalizeZ)}multiplyUnsafe(e){const{endo:o,n:i}=t;io("scalar",e,ri,i);const r=p.ZERO;if(e===ri)return r;if(this.is0()||e===ai)return this;if(!o||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,e,p.normalizeZ);let{k1neg:a,k1:s,k2neg:c,k2:l}=o.splitScalar(e),u=r,d=r,h=this;for(;s>ri||l>ri;)s&ai&&(u=u.add(h)),l&ai&&(d=d.add(h)),h=h.double(),s>>=ai,l>>=ai;return a&&(u=u.negate()),c&&(d=d.negate()),d=new p(n.mul(d.px,o.beta),d.py,d.pz),u.add(d)}multiply(e){const{endo:o,n:i}=t;let r,a;if(io("scalar",e,ai,i),o){const{k1neg:t,k1:i,k2neg:s,k2:c}=o.splitScalar(e);let{p:l,f:u}=this.wNAF(i),{p:d,f:h}=this.wNAF(c);l=g.constTimeNegate(t,l),d=g.constTimeNegate(s,d),d=new p(n.mul(d.px,o.beta),d.py,d.pz),r=l.add(d),a=u.add(h)}else{const{p:t,f:n}=this.wNAF(e);r=t,a=n}return p.normalizeZ([r,a])[0]}multiplyAndAddUnsafe(e,t,n){const o=p.BASE,i=(e,t)=>t!==ri&&t!==ai&&e.equals(o)?e.multiply(t):e.multiplyUnsafe(t),r=i(this,t).add(i(e,n));return r.is0()?void 0:r}toAffine(e){return h(this,e)}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===ai)return!0;if(n)return n(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===ai?this:n?n(p,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return zn("isCompressed",e),this.assertValidity(),i(p,this,e)}toHex(e=!0){return zn("isCompressed",e),Yn(this.toRawBytes(e))}}p.BASE=new p(t.Gx,t.Gy,n.ONE),p.ZERO=new p(n.ZERO,n.ONE,n.ZERO);const{endo:m,nBitLength:w}=t,g=_o(p,m?Math.ceil(w/2):w);return{CURVE:t,ProjectivePoint:p,normPrivateKeyToScalar:u,weierstrassEquation:a,isWithinCurveOrder:function(e){return oo(e,ai,t.n)}}}({...t,toBytes(e,t,o){const i=t.toAffine(),r=n.toBytes(i.x),a=to;return zn("isCompressed",o),o?a(Uint8Array.from([t.hasEvenY()?2:3]),r):a(Uint8Array.from([4]),r,n.toBytes(i.y))},fromBytes(e){const t=e.length,o=e[0],i=e.subarray(1);if(t!==a||2!==o&&3!==o){if(t===s&&4===o)return{x:n.fromBytes(i.subarray(0,n.BYTES)),y:n.fromBytes(i.subarray(n.BYTES,2*n.BYTES))};throw new Error("invalid Point, expected length of "+a+", or uncompressed "+s+", got "+t)}{const e=Kn(i);if(!oo(e,ai,n.ORDER))throw new Error("Point is not on curve");const t=h(e);let a;try{a=n.sqrt(t)}catch(r){const e=r instanceof Error?": "+r.message:"";throw new Error("Point is not on curve"+e)}return!(1&~o)!=((a&ai)===ai)&&(a=n.neg(a)),{x:e,y:a}}}});function p(e){return e>o>>ai}const m=(e,t,n)=>Kn(e.slice(t,n));class w{constructor(e,t,n){io("r",e,ai,o),io("s",t,ai,o),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){const t=i;return e=eo("compactSignature",e,2*t),new w(m(e,0,t),m(e,t,2*t))}static fromDER(e){const{r:t,s:n}=oi.toSig(eo("DER",e));return new w(t,n)}assertValidity(){}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(e){const{r:o,s:i,recovery:r}=this,a=v(eo("msgHash",e));if(null==r||![0,1,2,3].includes(r))throw new Error("recovery id invalid");const s=2===r||3===r?o+t.n:o;if(s>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&r?"03":"02",h=u.fromHex(d+ii(s,n.BYTES)),f=l(s),p=c(-a*f),m=c(i*f),w=u.BASE.multiplyAndAddUnsafe(h,p,m);if(!w)throw new Error("point at infinify");return w.assertValidity(),w}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Qn(this.toDERHex())}toDERHex(){return oi.hexFromSig(this)}toCompactRawBytes(){return Qn(this.toCompactHex())}toCompactHex(){const e=i;return ii(this.r,e)+ii(this.s,e)}}const g={isValidPrivateKey(e){try{return d(e),!0}catch(t){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const e=zo(t.n);return function(e,t,n=!1){const o=e.length,i=Vo(t),r=zo(t);if(o<16||o<r||o>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+o);const a=Mo(n?Zn(e):Kn(e),t-Eo)+Eo;return n?$n(a,i):_n(a,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t.I(e),t.multiply(BigInt(3)),t)};function b(e){if("bigint"==typeof e)return!1;if(e instanceof u)return!0;const o=eo("key",e).length,r=n.BYTES,a=r+1,s=2*r+1;return t.allowedPrivateKeyLengths||i===a?void 0:o===a||o===s}const y=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=Kn(e),n=8*e.length-r;return n>0?t>>BigInt(n):t},v=t.bits2int_modN||function(e){return c(y(e))},A=ro(r);function k(e){return io("num < 2^"+r,e,ri,A),_n(e,i)}const x={lowS:t.lowS,prehash:!1},T={lowS:t.lowS,prehash:!1};return u.BASE.I(8),{CURVE:t,getPublicKey:function(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===b(e))throw new Error("first arg must be private key");if(!1===b(t))throw new Error("second arg must be public key");return u.fromHex(t).multiply(d(e)).toRawBytes(n)},sign:function(e,o,i=x){const{seed:r,k2sig:a}=function(e,o,i=x){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{hash:r,randomBytes:a}=t;let{lowS:s,prehash:h,extraEntropy:m}=i;null==s&&(s=!0),e=eo("msgHash",e),ti(i),h&&(e=eo("prehashed msgHash",r(e)));const g=v(e),b=d(o),A=[k(b),k(g)];if(null!=m&&!1!==m){const e=!0===m?a(n.BYTES):m;A.push(eo("extraEntropy",e))}const T=to(...A),E=g;return{seed:T,k2sig:function(e){const t=y(e);if(!f(t))return;const n=l(t),o=u.BASE.multiply(t).toAffine(),i=c(o.x);if(i===ri)return;const r=c(n*c(E+i*b));if(r===ri)return;let a=(o.x===i?0:2)|Number(o.y&ai),d=r;return s&&p(r)&&(d=function(e){return p(e)?c(-e):e}(r),a^=1),new w(i,d,a)}}}(e,o,i),s=t,h=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let o=ao(e),i=ao(e),r=0;const a=()=>{o.fill(1),i.fill(0),r=0},s=(...e)=>n(i,o,...e),c=(e=ao(0))=>{i=s(so([0]),e),o=s(),0!==e.length&&(i=s(so([1]),e),o=s())},l=()=>{if(r++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){o=s();const t=o.slice();n.push(t),e+=o.length}return to(...n)};return(e,t)=>{let n;for(a(),c(e);!(n=t(l()));)c();return a(),n}}(s.hash.outputLen,s.nByteLength,s.hmac);return h(r,a)},verify:function(e,n,o,i=T){const r=e;n=eo("msgHash",n),o=eo("publicKey",o);const{lowS:a,prehash:s,format:d}=i;if(ti(i),"strict"in i)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const h="string"==typeof r||qn(r),f=!h&&!d&&"object"==typeof r&&null!==r&&"bigint"==typeof r.r&&"bigint"==typeof r.s;if(!h&&!f)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(f&&(p=new w(r.r,r.s)),h){try{"compact"!==d&&(p=w.fromDER(r))}catch(C){if(!(C instanceof oi.Err))throw C}p||"der"===d||(p=w.fromCompact(r))}m=u.fromHex(o)}catch(I){return!1}if(!p)return!1;if(a&&p.hasHighS())return!1;s&&(n=t.hash(n));const{r:g,s:b}=p,y=v(n),A=l(b),k=c(y*A),x=c(g*A),E=u.BASE.multiplyAndAddUnsafe(m,k,x)?.toAffine();return!!E&&c(E.x)===g},ProjectivePoint:u,Signature:w,utils:g}}function ui(e){return{hash:e,hmac:(t,...n)=>xo(e,t,function(...e){let t=0;for(let o=0;o<e.length;o++){const n=e[o];Ie(n),t+=n.length}const n=new Uint8Array(t);for(let o=0,i=0;o<e.length;o++){const t=e[o];n.set(t,i),i+=t.length}return n}(...n)),randomBytes:Fe}}const di=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hi=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),fi=BigInt(0),pi=BigInt(1),mi=BigInt(2),wi=(e,t)=>(e+t/mi)/t,gi=qo(di,void 0,void 0,{sqrt:function(e){const t=di,n=BigInt(3),o=BigInt(6),i=BigInt(11),r=BigInt(22),a=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=Ro(u,n,t)*u%t,h=Ro(d,n,t)*u%t,f=Ro(h,mi,t)*l%t,p=Ro(f,i,t)*f%t,m=Ro(p,r,t)*p%t,w=Ro(m,s,t)*m%t,g=Ro(w,c,t)*w%t,b=Ro(g,s,t)*m%t,y=Ro(b,n,t)*u%t,v=Ro(y,a,t)*p%t,A=Ro(v,o,t)*l%t,k=Ro(A,mi,t);if(!gi.eql(gi.sqr(k),e))throw new Error("Cannot find square root");return k}}),bi=function(e){const t=t=>li({...e,...ui(t)});return{...t(Nn),create:t}}({a:fi,b:BigInt(7),Fp:gi,n:hi,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=hi,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-pi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=n,a=BigInt("0x100000000000000000000000000000000"),s=wi(r*e,t),c=wi(-o*e,t);let l=Mo(e-s*n-c*i,t),u=Mo(-s*o-c*r,t);const d=l>a,h=u>a;if(d&&(l=t-l),h&&(u=t-u),l>a||u>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:h,k2:u}}}});class yi extends N{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function vi(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new yi({value:e});let[n,o="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),o=o.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${o}`))&&(n=`${BigInt(n)+1n}`),o="";else if(o.length>t){const[e,i,r]=[o.slice(0,t-1),o.slice(t-1,t),o.slice(t)],a=Math.round(Number(`${i}.${r}`));o=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,o.length>t&&(o=o.slice(1),n=`${BigInt(n)+1n}`),o=o.slice(0,t)}else o=o.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${o}`)}const Ai="0x0000000000000000000000000000000000000000",ki={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:/* @__PURE__ */hn({format(e){const t=e.transactions?.map(e=>{if("string"==typeof e)return e;const t=ln(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Y(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:/* @__PURE__ */un({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Y(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:/* @__PURE__ */wo({format:e=>({l1GasPrice:e.l1GasPrice?Y(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Y(e.l1GasUsed):null,l1Fee:e.l1Fee?Y(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:function(e,t){return function(e){return"deposit"===e.type||void 0!==e.sourceHash}(e)?function(e){!function(e){const{from:t,to:n}=e;if(t&&!lt(t))throw new it({address:t});if(n&&!lt(n))throw new it({address:n})}(e);const{sourceHash:t,data:n,from:o,gas:i,isSystemTx:r,mint:a,to:s,value:c}=e;return dt(["0x7e",Vt([t,o,s??"0x",a?K(a):"0x",c?K(c):"0x",i?K(i):"0x",r?"0x1":"0x",n??"0x"])])}(e):yo(e,t)}}},xi=/* @__PURE__ */Ao({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Ti=/* @__PURE__ */Ao({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Ei=1,Ci=/* @__PURE__ */Ao({...ki,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...ki.contracts,disputeGameFactory:{[Ei]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Ei]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Ei]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Ei]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),Ii=/* @__PURE__ */Ao({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});async function Si(e,t){const{account:n=e.account}=t;if(!n)throw new fo;const o=kt(n);try{const{accessList:n,blockNumber:i,blockTag:r,data:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:h,value:f,...p}=t,m=("bigint"==typeof i?$(i):void 0)||r;!function(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:o,to:i}=e,r=t?kt(t):void 0;if(r&&!lt(r.address))throw new it({address:r.address});if(i&&!lt(i))throw new it({address:i});if(n&&n>sn)throw new Gt({maxFeePerGas:n});if(o&&n&&o>n)throw new en({maxFeePerGas:n,maxPriorityFeePerGas:o})}(t);const w=e.chain?.formatters?.transactionRequest?.format,g=(w||an)({...nn(p,{format:w}),account:o,accessList:n,data:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:h,value:f},"estimateGas"),{baseFeePerGas:b,gasLimit:y,priorityFeePerGas:v}=await e.request({method:"linea_estimateGas",params:m?[g,m]:[g]});return{baseFeePerGas:BigInt(b),gasLimit:BigInt(y),priorityFeePerGas:BigInt(v)}}catch(i){throw function(e,{docsPath:t,...n}){const o=(()=>{const t=function(e,t){const n=(e.details||"").toLowerCase(),o=e instanceof N?e.walk(e=>e?.code===jt.code):e;return o instanceof N?new jt({cause:e,message:o.details}):jt.nodeMessage.test(n)?new jt({cause:e,message:e.details}):Gt.nodeMessage.test(n)?new Gt({cause:e,maxFeePerGas:t?.maxFeePerGas}):Jt.nodeMessage.test(n)?new Jt({cause:e,maxFeePerGas:t?.maxFeePerGas}):Yt.nodeMessage.test(n)?new Yt({cause:e,nonce:t?.nonce}):Xt.nodeMessage.test(n)?new Xt({cause:e,nonce:t?.nonce}):Qt.nodeMessage.test(n)?new Qt({cause:e,nonce:t?.nonce}):Kt.nodeMessage.test(n)?new Kt({cause:e}):Zt.nodeMessage.test(n)?new Zt({cause:e,gas:t?.gas}):_t.nodeMessage.test(n)?new _t({cause:e,gas:t?.gas}):$t.nodeMessage.test(n)?new $t({cause:e}):en.nodeMessage.test(n)?new en({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new tn({cause:e})}(e,n);return t instanceof tn?e:t})();return new qt(o,{docsPath:t,...n})}(i,{...t,account:o,chain:e.chain})}}async function Ni({client:e,multiply:t,request:n,type:o}){try{const i=await Si(e,{...n,account:n?.account}),{priorityFeePerGas:r}=i,a=t(BigInt(i.baseFeePerGas))+r;return"legacy"===o?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:r}}catch{return null}}const Bi=/* @__PURE__ */Ao({fees:{estimateFeesPerGas:Ni,async maxPriorityFeePerGas({block:e,client:t,request:n}){const o=await Ni({block:e,client:t,multiply:e=>e,request:n,type:"eip1559"});return o?.maxPriorityFeePerGas?o.maxPriorityFeePerGas:null}},id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),Mi=1,Ri=1,Pi={1:{.../* @__PURE__ */Ao({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAJalJREFUeAHVfQl4HNWZ4F/V96Vu3ZItS7IlMLLNEWTAGAwGAjmGhJ1JyHwQIGQ3B2ENhOwm2Xgg6xwfJGQIuwMTNiwTjswZhhyETABD4jiEK8YH2JIPWdjWZVmybqmvqnrz/+9Vtaqrq7pbp81vl6r61Tv///3H+99REry/QTLdmSXc+M3gfQwSnP5AdZTufrwrFpHClwOTGyUJGpmmNYDGGpnEYvg+yhjemaank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fnfnThDrB+gijplXXeMEi0WgTHlmQuEVOmvd/2iK1lx5cbh05SbkqCVcCVvW7xk7F/id9pHSAvkiuWza+ayKndSgguDclFhGZi6Hcwt98UU7kE4Mbe3Ycd8TfR3P90ej0anR0VHiFsN0nndd4wSLTSBzua66ujpPd3c3EYpf51/9k0si1ed/wu0OXsgkaQmZy3ys4TBgpd0LGUJxBZU5VYCLJ7ETTsshRCa9JOm79fh0RY+SGn1lbHDvS7tfuvVPIDbxJvQ7GQCLwjE5dYRTCPTNNv2zYO6KigovynUfKl4fhnubLrpvTTi6ck0gtvwqWXK1ICaX8CVf1PtpRdgMFzcIn53MlxXT9klM36uqibdSiaH2gSO/fqljx4NHMFo6EokkfD5fanBwkIhi7BVdNI7JqTecHiDpFycWXSUlJV5VVb04tiAl5Kmov6Z0WcsNq/yR5S0eT3gpWlQt4gO87qWI8QgawJFpPNLKGW1cYto4HbOGYrMXuRE5ZLxbSQ93d7f95M2+w7+hww/SNhcRhU+pwCngGCucLgSyAre5W1tb5d7eXk86nXZhj3Zj73ahV8JNx0jje5ff75dxnsUgroQ9XzKO18Rnhs+GvtDQMNFwzKJiHsr4+LhQRvpQALIJcsqJ8n4DiT6lrH/zmrjLMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",tokenTrendingDefault:["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"],isSupported:!0},10:{.../* @__PURE__ */Ao({...ki,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...ki.contracts,disputeGameFactory:{[Mi]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Mi]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Mi]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Mi]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjoUI2ohSBh05/mX+9wI80YF0D74cqS2vy5C95K0KYRMzJBlCtq0iGCEMTWUAcicWapRzfYtQU0AioXJHzCn+Qv/hE/Phzy/3UipAsszImqhalMELYIny3iPD+dps1ExcJYFyR2Tcf56WHazFQkjFVB2D0d4kxpttauKQ9xjPF6wQJZwoogm9Y9yWlzn2avDWtpkGGUVYzRbdq6YoBpPuFu83c17oaNWciWiRX5OcX9l0/JEEYEiV3Uj1SX/kTVILb0aJcJF1ZaECXGGF2vvIddNwyJUkoQFmMyFmNrZFHlQVFzV5n6WGFBnBiplBKlkCBODC2FRcktSBwzbjsxtCxzX+XlvDElVz8kEcCdGHowsHZdtVkOcllIOObf3/bZVH46bCm7pCOVYgvhQaSvnRiFmIw7zCJEg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T1lBQDuFuvmsLQrVdLX/SpDgCZxPbOvjqmbk5s5CpcHEica2/HzuN8fFu8gAxgfKXesOEfZpmxQvbWjiuIFyiHCHvgUqwsnRz3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x68f180fcce6836688e9084f035309e29bf0a2095","0xc47da4cb96ce65a96844a01bfae509f9d5454534"],isSupported:!0},56:{...Ii,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZldQvmNHqOb8+e7XagQlRCyfTNpxym7yClZti1gFsNI6vQIuTb/RLcDgQkmBJuiuMmeAU4uirsJVIBMDuUrvR59ff7J7hYEwLuQ7fUkiRm7DBF56k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vshpCB0aG8GhBuVgKeCSUlhAwEt0+a9PeJQgbm+IvgGd9SQsmYFh3I1HlZ/QZd8dXjyuNLSigZOO6YFh3IVCF4nYQVPNElrqWEkoHguKNoqdiZ6/ba+EKPLi56XyFlCDpz5zcLv5g4cyppluADNF2I7UgJKYMPFlKe2VmaKQTDK1TThdiSEjgycL6V0qaUyvuH7IkRPHgcwe/HpPkKLQMYeXHuQldp7Xfl2e9Zrwv8Xerdj26khJaBvSpVGYiyEOx1iTbwEuf+Z6hIykqpgoyUkVKrC9RzyyOF5iu4DJHEU9dbHiH4BoQL64F6XsisSKmEDNDb01Brlzbks/Uk4aF3apsQKZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",tokenTrendingDefault:["0x2170ed0880ac9a755fd29b2688956bd959f933f8","0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"],isSupported:!0},137:{.../* @__PURE__ */Ao({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),rpcUrls:{default:{http:["https://polygon-bor-rpc.publicnode.com"]}},logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLkFL84tbRRHUaqklVpIeuLCn14wqMKOVCoiVVmnJypRrwVN7DYpCzHJ2njn5X3f7phde3bnzcyb2Z1hP9LKa7PGu/N97/f3zXuMGpz03q9SZN7rS7DkdpMKPYwS2znxFCPqJC4eTDzK4ZQTP8txYtniDwrTBiVmCqwwTfnlTHqyJ0cNDKMGAwIkON/PiQaJ88E1F9w/WfGxM4yzswWDptIXHs1SA9EQgqT33hhknEYYGfvFtykKlywn8xw32cn0pa0ZqjN1EyQ9ONNptLQeJWYeovBFqEaWcSNdz5kTuiByNpjsECO2PwBzpJOTJjNOhC1MaIKkd9/sY4bxLiPhF6JFqMIELog0TevWjYrw5zWKNqEIE6ggbw3PHeW8kG5w0+QG6WPevPjoKQqIQARB6Mo4/1MEzZMSIseZ5IwdDmK2GKQZzArDND+PqxgAn83g5udv7fnqIGlG2wyJka9wCRs/PvHY66QJLYIUTZR5RvxnffQAIqoKGc6MAzpMmG9BEM4aBjtDjZPc1YusiMKG/Iriy4dIMRi7TE0xQEr4lcu4JuQDzzNkRYz4hLS6yJkmH/JaF/MkSFMMRzyL4loQOHCEtU0xHMkJn/KUW5/iyodIMYSdbIqhRKf0KWiwuUBZEJlnQIymA3eDTAfc/IKyIMWkrymGW5CbjQ1/+a6L1zsji4RUGKcmnmHMOPTmBeeipKMgYTjx7U+2iMc6+Xz2i0X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137,chainType:"matic",chainTypeMoralis:"polygon",tokenTrendingDefault:["0x7ceb23fd6bc0add59e62ac25578270cff1b9f619","0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6"],isSupported:!0},8453:{...Ci,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoLQFYV4qC2BQiyiGET6WFrack60OBFyIHtBVtWi/tRN/djAsP8vEvvaanazFiY7QRgbAjzTjybKRabC+BfEuKYd/eoRyk0mwvgV5AvFGNFCsV3TNJgY80dwAE/4EaS87ikdSo/KFLZ8WEsI19AqQryqrBiE343fcV05d8PuLKQ6sWJa9vAi2IYj3AhiXNRhgeYTWRPpgL/swoXJBaEYIY6R/Qy7aDgRRSYIJ3lGjKqMoqR0uqJYr4/ZC5KzGI2P9Ae/rx+3h/+t86++XP8xzzkgEsVOkIzFaH4MLMwDiw3zmmKkgYKcRnr9/UyvHr41r6N3yAJrUaYXxMSMV/AsBk/8xrL+uPujrcAWCrOvL6WTt97FoSj3po0p0wniOYDzxD98oMfNn7kVYRwU58lfwNHf8MXUgX46QdaVNn73YtAFtb40FpEHtJTWc+DgGO5R+maYikVJdacyvSDr6jEcT/qytohJnOrLbe1nL64s9eQxnSBmkXAPDmGMePZt+gCdJbSW3d/hmm0tysRzOFkQD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Ipv8GVSBzWxRDfLWUiLgSnbSqw8A29H5BLuMiZaKmWdwqPCvzkmXRFtkuF/1zwH5BOGtX1/7Mlq1fq++66AkcFDfbH6x3MnxPXekfEsIDXfsJlYVD3JabAjS7g28NC8LxsJItOBLOWrdLmkh3E7zYtp7CBfvpqwGxWYkDGE88FJPMjaQOoxN3PMI6yGhBqJzCEzjAU4XPzHFcFHN/XDHM8XlZpneUkzalZRfFsRjROOsg4wUx90nG/uK0lFUUxsJ73zssF8t5xw2lYifX7V1Tx3DYT6pMBTG5FOQ0w5+DpcPgxky2yamkJsA7cV2E9+Bp/kVeHWbQ5rDd8XaLTprB0mRBjHk5c12E5r/51AwfM+rnkRpaxfw3XjompGpKOdllJaypPf3TD+EYui5uoHFWrNgSxgrGOC85AhyxHgapGhmkF4QFBgIcw1MnNgrDEuQr97ONL16FMER4EaTem5teEJJRRzYWs9lo+stSZ4xIGrkI03Ym4bmhC8mo5RGhpbBcBa2GmzRtLSfpRXXyppslk01SRgYtjxJy6tDGLccUhpvz5+8AH942Gyx7SbYCnL/rJq6d55JdmWFTsIS6h+E4cmibl1CLMkiOjSUT6tarCU5ar8o3ffIAeCCCvK7Sw+QQR82J3ezC5YFwrO1oyb5U8DsrN2IQucsaxLT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0xc47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HiRNELkWFW7zU1Esgs4stlucnChEp3GauU5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",tokenTrendingDefault:["0x82af49447d8a07e3bd95bd0d56f35241523fbab1","0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],isSupported:!0},43114:{...Ti,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQHRvhuSfbbTv7gLNI76/BYcRcJCHntcAKicCSZ4geIMfugaa6i9vikD4Adp3Dvl+Cw7hjCgqGjwS4kwFYsmACEk0JYkVFUk/uyBQqaL86Xm1eSkvqKboYglCxCB8FZ0ri/6vqyiJUkThqBBCXFZv78FdVD6CT0FwxXb0WBVlQsQYRmDFpjhWRGH3pMT4fuLE6IMdnfpxbXF9/QoMY1QUN3NGYVqCxLLJnGNMlE5TJVV0hP2J/YfBJs2IKA+99y8Egq5h/9MiCs4rYXxoRKso+yF35EEILOvMNdpE4V54IOQt7NfmKgmBtZ0gOK9jCEeLKH9775+ZEfT9PkrmeeHm7GTRPFNYlAeet0RCrmBKRGFhJArwwDt1eSrIECqvyg3Or8hJ7khxxWHNnz2LmaN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NwL/3pmImqIhgTJWL/RY2Z6OjH+OYGh/z1ZaLgiPpDMhf5uQS7S+6X8by6SUE672WRvzyvMSPE1UkyAixGQOL6LoJrNvYc6LxnCXQvnKM6neVfFiSOMsR48d4lEl5HEoJzzglnDAGRLyHXnqC9aluMiFJF6edF9JQgkBKCIO4oT7Wio/NXFGdE6adzNerKCeJtxgV5vDEZ9NJSXXAlBO6o5mmtrIiIw0lRBmGR1AdYF6gcfo7gSLiPMqEGIWqq7a8NihY6JYgtFQHqwxZN1af4p7OBQ9Di5emuiTDI/4Da9NgV2sBcAAAAAElFTkSuQmCC",chainId:43114,chainType:"avax",chainTypeMoralis:"avalanche",tokenTrendingDefault:["0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB","0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"],isSupported:!0},59144:{...Bi,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABkCAYAAACWy14QAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABydJREFUeAHtnT1MHEcUxx8HEuAGYxdOY+fcpbBl6CJR+NI5FAR3oQJ6irhBiiiAKoEmRkIKXQgN7gwUyB1HgZLOh0SND2iSgs+GS3GQ/3+ZPR3H3bIfsx+3Nz9p2b1jl4/5z7z3Zm7mTZsklIcAp2x7e3vf9fV1H657cPD8sOqo5owH7i3y3NbWdoDzl6urq12cC2dAEkqbJAQWOgo8h0LM4eVruSlwnRR4QJx8uVzehiZFSQixisCCz2Qyoyj4YRROTiIEvzOP372cBEFiEQFln0OhT+OwzUus2IIcHx//KTEQqQiPHz8eg40ejbrWe6CIv20majEiEYGFj9o2jcusNAeRihGqCFVmJyfNSSRihCKCcris+T9JCkArXsPxLiwH3i6aYe2HAH/hMicpAa3hGxxj3d3d/11eXv4tmtEmAmv/gwcPfsEfu4SXXZI++D+9gRDZzs7O3VKpp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XHTEtSqEdMaoufMTkJi95gDpQ8zeAeRUaXiWyIwnb0YIgVlvm5fWyLAOefFEClwynn72lqfQOPU29ubjyundVxrGC4uLuKa9FWsTkrVUfWN9bhEKBTiiQs4JTKqeafV1Jr/6qHsZTOiGg0wRQvVrysimFA1GmpNEcnU3DArhlBBGc/UvndLBC5k4/4yYggFtf3Yeu37mTo3xrK5TytAh1wvy8sdEXDPslLMoBk45Lrmvu4H/cY3hMJso4SEDVeHoPO21cQbEiUKWhYcDTe9yDg8aFqDJhgROaXlbJgNslQqFbu7u3tx+a0YfKP6BeNO9zhO/oIjmTG96GDQDN13j6MIDKfwQ96KwS+zbjY/ujdXtjFL/mCn9/T0dNzNva7moiqzZMaVXKKiIVcCEE+bWCBk3TKrPe9HZXwsur3f9axs/lD6B+OonYEA4143wfO0pw78wz9dXV3/ojWkMj+SBmbhB96LRzzvLgUhCp2dnQdGiDvMnpyczIgPfO2zZoS4g28BiO8dB5UQnEH2BmK08pZfgQQggdO72HuvtVrUxABFbZS9LAHRthVwK4Wvqh/w1steak5oWTjIkAxRwXNcLkjKUVvF9+sSgGjdHv7y8vITHTYu+9KWuITmB//Tz6hs7+APS6IRrSIQOmz0JTiRjONNqcivx3EgHN9DgE8SAqHmXWt2p61sP53vmoRIJMnvIMYYhJhuFjGU6VnAEMT7RjtC6STSDIRJFyPqwreJJQ0kM6arXUsSsWmGsvmzdhb3qIk1F6favSSH2jca9cwOFjx+53bUtb4eiUmIqnJ2s4UMo4BeVSf01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",tokenTrendingDefault:["0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f","0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4"],isSupported:!0},130:{.../* @__PURE__ */Ao({...ki,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...ki.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Ri]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Ri]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Ri]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1}),logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg52x7CbykU7Zn1+xZTaz+cP6W/fYrDjiw72b3ilAujw52d+BWQfStGOJi380yiABxGABcmHYQH4rgZnHPZnBwby8svu3q8trb/7D82r2j8Xh9CVM/vRQuLeHnaHPwzG/uXROnrl5cxXVvb5146Mqw+tC5TnlABrBPd5gtbvtOEVz0AMHHGHPwkLmApI6Zcx3naAJhwAyg/yr6hnbhN6WLruqHYTnfDtuQUXdMjPIb7w733PTF4X/9pF0WP/5zOG87PMPbM8aAD068cfW+cfej1/k1Lz8+e+ELohsfADBaUoUKfKeDZAwwHM3jCD2g5CPdQxqxI6mHDFwH+UL0HkSiPR9HE4r8PW2oD8FDuzvBO8P8EHJf4HHtTXiNGy4YXXLN/WHzf90wvP+Kv4XzZuEZ2H6mD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ePeTbfGe274RHn+HSOYWP9MEb25/VwwYMftBbDfosWwdPGHDnvX7geu2H/dtmJuHchvpC5Dek9hjXkVeu4J1BVJZaDdwr9Yna+GWBLdgJ77p3mWbVpdLb77e3dfcfOZt/3dfYshm74UfjwLP2fb/wd5ICT31PZzFAAAAABJRU5ErkJggg==",chainId:130,chainType:"unichain",chainTypeMoralis:"unichain",tokenTrendingDefault:["0x4200000000000000000000000000000000000006","0x0555e30da8f98308edb960aa94c0db47230d2b9c"],isSupported:!1},7565164:{id:7565164,name:"Solana",nativeCurrency:{decimals:18,name:"Solana",symbol:"SOL"},rpcUrls:{default:{http:[""]}},logo:"https://ipfs.pantograph.app/ipfs/QmZhKcFZVvw5r3cGLfSLsLcd1GzbQK5Vf7aoVYvgktzUUA?filename=Solana_logo.png",chainId:7565164,isSupported:!1}},Ui=e=>{const t=Object.values(Pi).find(t=>t.chainTypeMoralis===e);return t?.chainType||null};function Oi(e){return e&&e.S&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Li(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"S",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var Di,Fi,Hi,qi={},Vi={},zi={};function Wi(){return Hi||(Hi=1,function(e){const t=function(){if(Di)return Vi;Di=1,Vi.byteLength=function(e){var t=r(e),n=t[0],o=t[1];return 3*(n+o)/4-o},Vi.toByteArray=function(e){var o,i,a=r(e),s=a[0],c=a[1],l=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(i=0;i<d;i+=4)o=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],l[u++]=o>>16&255,l[u++]=o>>8&255,l[u++]=255&o;return 2===c&&(o=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,l[u++]=255&o),1===c&&(o=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,l[u++]=o>>8&255,l[u++]=255&o),l},Vi.fromByteArray=function(t){for(var n,o=t.length,i=o%3,r=[],a=16383,c=0,l=o-i;c<l;c+=a)r.push(s(t,c,c+a>l?l:c+a));return 1===i?(n=t[o-1],r.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[o-2]<<8)+t[o-1],r.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),r.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=o[i],t[o.charCodeAt(i)]=i;function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function a(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function s(e,t,n){for(var o,i=[],r=t;r<n;r+=3)o=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(255&e[r+2]),i.push(a(o));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,Vi}(),n=(Fi||(Fi=1,zi.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=h,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===r)r=1-l;else{if(r===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),r-=l}return(f?-1:1)*a*Math.pow(2,r-o)},zi.write=function(e,t,n,o,i,r){var a,s,c,l=8*r-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,p=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+f]=255&a,f+=p,a/=256,l-=8);e[n+f-p]|=128*m}),zi),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function r(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=r(n);const i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return a.from(o,t,n);const i=function(e){if(a.isBuffer(e)){const t=0|h(e.length),n=r(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?r(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),r(e<0?0:0|h(e))}function u(e){const t=e.length<0?0:0|h(e.length),n=r(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,a.prototype),o}function h(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return o?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function w(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){let r,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let o=-1;for(r=n;r<s;r++)if(l(e,r)===l(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===c)return o*a}else-1!==o&&(r-=r-o),o=-1}else for(n+c>s&&(n=s-c),r=n;r>=0;r--){let n=!0;for(let o=0;o<c;o++)if(l(e,r+o)!==l(t,o)){n=!1;break}if(n)return r}return-1}function b(e,t,n,o){n=Number(n)||0;const i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;const r=t.length;let a;for(o>r/2&&(o=r/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(X(o))return a;e[n+a]=o}return a}function y(e,t,n,o){return J(j(t,e.length-n),e,n,o)}function v(e,t,n,o){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function A(e,t,n,o){return J(G(t),e,n,o)}function k(e,t,n,o){return J(function(e,t){let n,o,i;const r=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function x(e,n,o){return 0===n&&o===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,o))}function T(e,t,n){n=Math.min(e.length,n);const o=[];let i=t;for(;i<n;){const t=e[i];let r=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,o,s,c;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(r=c));break;case 3:n=e[i+1],o=e[i+2],128==(192&n)&&128==(192&o)&&(c=(15&t)<<12|(63&n)<<6|63&o,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:n=e[i+1],o=e[i+2],s=e[i+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=E));return n}(o)}e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?r(e):void 0!==t?"string"==typeof n?r(e).fill(t,n):r(e).fill(t):r(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e.N&&e!==a.prototype},a.compare=function(e,t){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=a.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>o.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},a.byteLength=f,a.prototype.N=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,o,i){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(i>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0);const c=Math.min(r,s),l=this.slice(o,i),u=e.slice(t,n);for(let a=0;a<c;++a)if(l[a]!==u[a]){r=l[a],s=u[a];break}return r<s?-1:s<r?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},a.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return v(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.M||this,0)}};const E=4096;function C(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function I(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function S(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function N(e,t,n){const o=e.slice(t,n);let i="";for(let r=0;r<o.length-1;r+=2)i+=String.fromCharCode(o[r]+256*o[r+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,o,i,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function R(e,t,n,o,i){q(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function P(e,t,n,o,i){q(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,o,i,r){return t=+t,o>>>=0,r||U(e,0,o,4),n.write(e,t,o,i,23,4),o+4}function L(e,t,o,i,r){return t=+t,o>>>=0,r||U(e,0,o,8),n.write(e,t,o,i,52,8),o+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,a.prototype),o},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return o},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let o=t,i=1,r=this[e+--o];for(;o>0&&(i*=256);)r+=this[e+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),a.prototype.readBigInt64BE=K(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=K(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=K(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}let i=0,r=1,a=0;for(this[t]=255&e;++i<n&&(r*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/r|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}let i=n-1,r=1,a=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/r|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(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]=255&e,t+4},a.prototype.writeBigInt64LE=K(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=K(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,o){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);const i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},a.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!a.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const r=a.isBuffer(e)?e:a.from(e,o),s=r.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=r[i%s]}return this};const D={};function F(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,o,i,r){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(r+1)}${n}`:`>= -(2${n} ** ${8*(r+1)-1}${n}) and < 2 ** ${8*(r+1)-1}${n}`,new D.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(o,i,r)}function V(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function j(e,t){let n;t=t||1/0;const o=e.length;let i=null;const r=[];for(let a=0;a<o;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function G(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(qi)),qi}var ji=Wi();const Gi=BigInt(0),Ji=BigInt(1),Yi=BigInt(2),Xi=BigInt(8),Qi={zip215:!0};const Ki=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),Zi=/* @__PURE__ */BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const _i=BigInt(1),$i=BigInt(2);BigInt(3);const er=BigInt(5),tr=BigInt(8);function nr(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function or(e,t){const n=Ki,o=Mo(t*t*t,n),i=function(e){const t=BigInt(10),n=BigInt(20),o=BigInt(40),i=BigInt(80),r=Ki,a=e*e%r*e%r,s=Ro(a,$i,r)*a%r,c=Ro(s,_i,r)*e%r,l=Ro(c,er,r)*c%r,u=Ro(l,t,r)*l%r,d=Ro(u,n,r)*u%r,h=Ro(d,o,r)*d%r,f=Ro(h,i,r)*h%r,p=Ro(f,i,r)*h%r,m=Ro(p,t,r)*l%r;return{pow_p_5_8:Ro(m,$i,r)*e%r,b2:a}}(e*Mo(o*o*t,n)).pow_p_5_8;let r=Mo(e*o*i,n);const a=Mo(t*r*r,n),s=r,c=Mo(r*Zi,n),l=a===e,u=a===Mo(-e,n),d=a===Mo(-e*Zi,n);return l&&(r=s),(u||d)&&(r=c),(Mo(r,n)&Eo)===Eo&&(r=Mo(-r,n)),{isValid:l||u,value:r}}const ir=/* @__PURE__ */(()=>qo(Ki,void 0,!0))(),rr=/* @__PURE__ */(()=>({a:ir.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ir,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:tr,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Bn,randomBytes:Fe,adjustScalarBytes:nr,uvRatio:or}))(),ar=/* @__PURE__ */(()=>function(e){const t=function(e){const t=ei(e);return lo(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:o,prehash:i,hash:r,randomBytes:a,nByteLength:s,h:c}=t,l=Yi<<BigInt(8*s)-Ji,u=n.create,d=qo(t.n,t.nBitLength);if(!function(e,o){const i=n.sqr(e),r=n.sqr(o),a=n.add(n.mul(t.a,i),r),s=n.add(n.ONE,n.mul(t.d,n.mul(i,r)));return n.eql(a,s)}(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const h=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch(o){return{isValid:!1,value:Gi}}}),f=t.adjustScalarBytes||(e=>e),p=t.domain||((e,t,n)=>{if(zn("phflag",n),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function m(e,t,n=!1){io("coordinate "+e,t,n?Ji:Gi,l)}function w(e){if(!(e instanceof y))throw new Error("ExtendedPoint expected")}const g=uo((e,t)=>{const{ex:o,ey:i,ez:r}=e,a=e.is0();null==t&&(t=a?Xi:n.inv(r));const s=u(o*t),c=u(i*t),l=u(r*t);if(a)return{x:Gi,y:Ji};if(l!==Ji)throw new Error("invZ was invalid");return{x:s,y:c}}),b=uo(e=>{const{a:n,d:o}=t;if(e.is0())throw new Error("bad point: ZERO");const{ex:i,ey:r,ez:a,et:s}=e,c=u(i*i),l=u(r*r),d=u(a*a),h=u(d*d),f=u(c*n);if(u(d*u(f+l))!==u(h+u(o*u(c*l))))throw new Error("bad point: equation left != right (1)");if(u(i*r)!==u(a*s))throw new Error("bad point: equation left != right (2)");return!0});class y{constructor(e,t,n,o){m("x",e),m("y",t),m("z",n,!0),m("t",o),this.ex=e,this.ey=t,this.ez=n,this.et=o,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof y)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return m("x",t),m("y",n),new y(t,n,Ji,u(t*n))}static normalizeZ(e){const t=Do(n,e.map(e=>e.ez));return e.map((e,n)=>e.toAffine(t[n])).map(y.fromAffine)}static msm(e,t){return $o(y,d,e,t)}I(e){k.setWindowSize(this,e)}assertValidity(){b(this)}equals(e){w(e);const{ex:t,ey:n,ez:o}=this,{ex:i,ey:r,ez:a}=e,s=u(t*a),c=u(i*o),l=u(n*a),d=u(r*o);return s===c&&l===d}is0(){return this.equals(y.ZERO)}negate(){return new y(u(-this.ex),this.ey,this.ez,u(-this.et))}double(){const{a:e}=t,{ex:n,ey:o,ez:i}=this,r=u(n*n),a=u(o*o),s=u(Yi*u(i*i)),c=u(e*r),l=n+o,d=u(u(l*l)-r-a),h=c+a,f=h-s,p=c-a,m=u(d*f),w=u(h*p),g=u(d*p),b=u(f*h);return new y(m,w,b,g)}add(e){w(e);const{a:n,d:o}=t,{ex:i,ey:r,ez:a,et:s}=this,{ex:c,ey:l,ez:d,et:h}=e,f=u(i*c),p=u(r*l),m=u(s*o*h),g=u(a*d),b=u((i+r)*(c+l)-f-p),v=g-m,A=g+m,k=u(p-n*f),x=u(b*v),T=u(A*k),E=u(b*k),C=u(v*A);return new y(x,T,C,E)}subtract(e){return this.add(e.negate())}wNAF(e){return k.wNAFCached(this,e,y.normalizeZ)}multiply(e){const t=e;io("scalar",t,Ji,o);const{p:n,f:i}=this.wNAF(t);return y.normalizeZ([n,i])[0]}multiplyUnsafe(e,t=y.ZERO){const n=e;return io("scalar",n,Gi,o),n===Gi?A:this.is0()||n===Ji?this:k.wNAFCachedUnsafe(this,n,y.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return k.unsafeLadder(this,o).is0()}toAffine(e){return g(this,e)}clearCofactor(){const{h:e}=t;return e===Ji?this:this.multiplyUnsafe(e)}static fromHex(e,o=!1){const{d:i,a:r}=t,a=n.BYTES;e=eo("pointHex",e,a),zn("zip215",o);const s=e.slice(),c=e[a-1];s[a-1]=-129&c;const d=Zn(s),f=o?l:n.ORDER;io("pointHex.y",d,Gi,f);const p=u(d*d),m=u(p-Ji),w=u(i*p-r);let{isValid:g,value:b}=h(m,w);if(!g)throw new Error("Point.fromHex: invalid y coordinate");const v=(b&Ji)===Ji,A=!!(128&c);if(!o&&b===Gi&&A)throw new Error("Point.fromHex: x=0 and x_0=1");return A!==v&&(b=u(-b)),y.fromAffine({x:b,y:d})}static fromPrivateKey(e){const{scalar:t}=E(e);return v.multiply(t)}toRawBytes(){const{x:e,y:t}=this.toAffine(),o=$n(t,n.BYTES);return o[o.length-1]|=e&Ji?128:0,o}toHex(){return Yn(this.toRawBytes())}}y.BASE=new y(t.Gx,t.Gy,Ji,u(t.Gx*t.Gy)),y.ZERO=new y(Gi,Ji,Ji,Gi);const{BASE:v,ZERO:A}=y,k=_o(y,8*s);function x(e){return Mo(e,o)}function T(e){return x(Zn(e))}function E(e){const t=n.BYTES;e=eo("private key",e,t);const o=eo("hashed private key",r(e),2*t),i=f(o.slice(0,t));return{head:i,prefix:o.slice(t,2*t),scalar:T(i)}}function C(e){const{head:t,prefix:n,scalar:o}=E(e),i=v.multiply(o),r=i.toRawBytes();return{head:t,prefix:n,scalar:o,point:i,pointBytes:r}}function I(e=Uint8Array.of(),...t){const n=to(...t);return T(r(p(n,eo("context",e),!!i)))}const S=Qi;return v.I(8),{CURVE:t,getPublicKey:function(e){return C(e).pointBytes},sign:function(e,t,r={}){e=eo("message",e),i&&(e=i(e));const{prefix:a,scalar:s,pointBytes:c}=C(t),l=I(r.context,a,e),u=v.multiply(l).toRawBytes(),d=x(l+I(r.context,u,c,e)*s);return io("signature.s",d,Gi,o),eo("result",to(u,$n(d,n.BYTES)),2*n.BYTES)},verify:function(e,t,o,r=S){const{context:a,zip215:s}=r,c=n.BYTES;e=eo("signature",e,2*c),t=eo("message",t),o=eo("publicKey",o,c),void 0!==s&&zn("zip215",s),i&&(t=i(t));const l=Zn(e.slice(c,2*c));let u,d,h;try{u=y.fromHex(o,s),d=y.fromHex(e.slice(0,c),s),h=v.multiplyUnsafe(l)}catch(p){return!1}if(!s&&u.isSmallOrder())return!1;const f=I(a,d.toRawBytes(),u.toRawBytes(),t);return d.add(u.multiplyUnsafe(f)).subtract(h).clearCofactor().equals(y.ZERO)},ExtendedPoint:y,utils:{getExtendedPublicKey:C,randomPrivateKey:()=>a(n.BYTES),precompute:(e=8,t=y.BASE)=>(t.I(e),t.multiply(BigInt(3)),t)}}}(rr))();var sr={exports:{}};const cr=/* @__PURE__ */Li(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lr,ur=sr.exports;function dr(){return lr||(lr=1,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this.R(e||0,t||10,n||"be"))}var r;"object"==typeof sr?sr.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{r="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:cr.Buffer}catch(C){}function a(e,t){var o=e.charCodeAt(t);return o>=48&&o<=57?o-48:o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var o=a(e,n);return n-1>=t&&(o|=a(e,n-1)<<4),o}function c(e,t,o,i){for(var r=0,a=0,s=Math.min(e.length,o),c=t;c<s;c++){var l=e.charCodeAt(c)-48;r*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a<i,"Invalid character"),r+=a}return r}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype.R=function(e,t,o){if("number"==typeof e)return this.P(e,t,o);if("object"==typeof e)return this.U(e,t,o);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this.O(e,i,o):(this.L(e,t,i),"le"===o&&this.U(this.toArray(),t,o)))},i.prototype.P=function(e,t,o){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===o&&this.U(this.toArray(),t,o)},i.prototype.U=function(e,t,o){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,a,s=0;if("be"===o)for(i=e.length-1,r=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===o)for(i=0,r=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.q()},i.prototype.O=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,r=0,a=0;if("be"===n)for(o=e.length-1;o>=t;o-=2)i=s(e,t,o)<<r,this.words[a]|=67108863&i,r>=18?(r-=18,a+=1,this.words[a]|=i>>>26):r+=8;else for(o=(e.length-t)%2==0?t+1:t;o<e.length;o+=2)i=s(e,t,o)<<r,this.words[a]|=67108863&i,r>=18?(r-=18,a+=1,this.words[a]|=i>>>26):r+=8;this.q()},i.prototype.L=function(e,t,n){this.words=[0],this.length=1;for(var o=0,i=1;i<=67108863;i*=t)o++;o--,i=i/t|0;for(var r=e.length-n,a=r%o,s=Math.min(r,r-a)+n,l=0,u=n;u<s;u+=o)l=c(e,u,u+o,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this.V(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this.V(l)}this.q()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.W=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype.j=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.q=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.J()},i.prototype.J=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[/* @__PURE__ */Symbol.for("nodejs.util.inspect.custom")]=u}catch(C){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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"],h=[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],f=[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];function p(e,t,n){n.negative=t.negative^e.negative;var o=e.length+t.length|0;n.length=o,o=o-1|0;var i=0|e.words[0],r=0|t.words[0],a=i*r,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<o;l++){for(var u=c>>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(r=0|t.words[f])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.q()}i.prototype.toString=function(e,t){var o;if(t=0|t||1,16===(e=e||10)||"hex"===e){o="";for(var i=0,r=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|r)).toString(16);r=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),o=0!==r||a!==this.length-1?d[6-c.length]+c+o:c+o}for(0!==r&&(o=r.toString(16)+o);o.length%t!==0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],u=f[e];o="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);o=(p=p.idivn(u)).isZero()?m+o:d[l-m.length]+m+o}for(this.isZero()&&(o="0"+o);o.length%t!==0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},r&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(r,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,o){this.q();var i=this.byteLength(),r=o||Math.max(1,i);n(i<=r,"byte array longer than desired length"),n(r>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,r);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype.Y=function(e,t){for(var n=0,o=0,i=0,r=0;i<this.length;i++){var a=this.words[i]<<r|o;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===r?(n<e.length&&(e[n++]=a>>24&255),o=0,r=0):(o=a>>>24,r+=2)}if(n<e.length)for(e[n++]=o;n<e.length;)e[n++]=0},i.prototype.X=function(e,t){for(var n=e.length-1,o=0,i=0,r=0;i<this.length;i++){var a=this.words[i]<<r|o;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===r?(n>=0&&(e[n--]=a>>24&255),o=0,r=0):(o=a>>>24,r+=2)}if(n>=0)for(e[n--]=o;n>=0;)e[n--]=0},Math.clz32?i.prototype.K=function(e){return 32-Math.clz32(e)}:i.prototype.K=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype.Z=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this.K(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this.Z(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.q()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.q()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var o=0;o<n.length;o++)this.words[o]=t.words[o]^n.words[o];if(this!==t)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=t.length,this.q()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),o=e%26;this.j(t),o>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return o>0&&(this.words[i]=~this.words[i]&67108863>>26-o),this.q()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var o=e/26|0,i=e%26;return this.j(o+1),this.words[o]=t?this.words[o]|1<<i:this.words[o]&~(1<<i),this.q()},i.prototype.iadd=function(e){var t,n,o;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this.J();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t.J();this.length>e.length?(n=this,o=e):(n=e,o=this);for(var i=0,r=0;r<o.length;r++)t=(0|n.words[r])+(0|o.words[r])+i,this.words[r]=67108863&t,i=t>>>26;for(;0!==i&&r<n.length;r++)t=(0|n.words[r])+i,this.words[r]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t.J()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.J();var n,o,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,o=e):(n=e,o=this);for(var r=0,a=0;a<o.length;a++)r=(t=(0|n.words[a])-(0|o.words[a])+r)>>26,this.words[a]=67108863&t;for(;0!==r&&a<n.length;a++)r=(t=(0|n.words[a])+r)>>26,this.words[a]=67108863&t;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.q()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var o,i,r,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,w=0|a[2],g=8191&w,b=w>>>13,y=0|a[3],v=8191&y,A=y>>>13,k=0|a[4],x=8191&k,T=k>>>13,E=0|a[5],C=8191&E,I=E>>>13,S=0|a[6],N=8191&S,B=S>>>13,M=0|a[7],R=8191&M,P=M>>>13,U=0|a[8],O=8191&U,L=U>>>13,D=0|a[9],F=8191&D,H=D>>>13,q=0|s[0],V=8191&q,z=q>>>13,W=0|s[1],j=8191&W,G=W>>>13,J=0|s[2],Y=8191&J,X=J>>>13,Q=0|s[3],K=8191&Q,Z=Q>>>13,_=0|s[4],$=8191&_,ee=_>>>13,te=0|s[5],ne=8191&te,oe=te>>>13,ie=0|s[6],re=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var we=(l+(o=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,V)|0))<<13)|0;l=((r=Math.imul(h,z))+(i>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(p,V),i=(i=Math.imul(p,z))+Math.imul(m,V)|0,r=Math.imul(m,z);var ge=(l+(o=o+Math.imul(d,j)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,j)|0))<<13)|0;l=((r=r+Math.imul(h,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,o=Math.imul(g,V),i=(i=Math.imul(g,z))+Math.imul(b,V)|0,r=Math.imul(b,z),o=o+Math.imul(p,j)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,j)|0,r=r+Math.imul(m,G)|0;var be=(l+(o=o+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Y)|0))<<13)|0;l=((r=r+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,o=Math.imul(v,V),i=(i=Math.imul(v,z))+Math.imul(A,V)|0,r=Math.imul(A,z),o=o+Math.imul(g,j)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(b,j)|0,r=r+Math.imul(b,G)|0,o=o+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,r=r+Math.imul(m,X)|0;var ye=(l+(o=o+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(h,K)|0))<<13)|0;l=((r=r+Math.imul(h,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(x,V),i=(i=Math.imul(x,z))+Math.imul(T,V)|0,r=Math.imul(T,z),o=o+Math.imul(v,j)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(A,j)|0,r=r+Math.imul(A,G)|0,o=o+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(b,Y)|0,r=r+Math.imul(b,X)|0,o=o+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var ve=(l+(o=o+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,$)|0))<<13)|0;l=((r=r+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(C,V),i=(i=Math.imul(C,z))+Math.imul(I,V)|0,r=Math.imul(I,z),o=o+Math.imul(x,j)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(T,j)|0,r=r+Math.imul(T,G)|0,o=o+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(A,Y)|0,r=r+Math.imul(A,X)|0,o=o+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,o=o+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,r=r+Math.imul(m,ee)|0;var Ae=(l+(o=o+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(h,ne)|0))<<13)|0;l=((r=r+Math.imul(h,oe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(N,V),i=(i=Math.imul(N,z))+Math.imul(B,V)|0,r=Math.imul(B,z),o=o+Math.imul(C,j)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(I,j)|0,r=r+Math.imul(I,G)|0,o=o+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(T,Y)|0,r=r+Math.imul(T,X)|0,o=o+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(A,K)|0,r=r+Math.imul(A,Z)|0,o=o+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,$)|0,r=r+Math.imul(b,ee)|0,o=o+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ne)|0,r=r+Math.imul(m,oe)|0;var ke=(l+(o=o+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,re)|0))<<13)|0;l=((r=r+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(R,V),i=(i=Math.imul(R,z))+Math.imul(P,V)|0,r=Math.imul(P,z),o=o+Math.imul(N,j)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(B,j)|0,r=r+Math.imul(B,G)|0,o=o+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(I,Y)|0,r=r+Math.imul(I,X)|0,o=o+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(T,K)|0,r=r+Math.imul(T,Z)|0,o=o+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(A,$)|0,r=r+Math.imul(A,ee)|0,o=o+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(b,ne)|0,r=r+Math.imul(b,oe)|0,o=o+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,ae)|0;var xe=(l+(o=o+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((r=r+Math.imul(h,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,o=Math.imul(O,V),i=(i=Math.imul(O,z))+Math.imul(L,V)|0,r=Math.imul(L,z),o=o+Math.imul(R,j)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(P,j)|0,r=r+Math.imul(P,G)|0,o=o+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(B,Y)|0,r=r+Math.imul(B,X)|0,o=o+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,K)|0,r=r+Math.imul(I,Z)|0,o=o+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(T,$)|0,r=r+Math.imul(T,ee)|0,o=o+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(A,ne)|0,r=r+Math.imul(A,oe)|0,o=o+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,ae)|0,o=o+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,r=r+Math.imul(m,le)|0;var Te=(l+(o=o+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((r=r+Math.imul(h,he)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,o=Math.imul(F,V),i=(i=Math.imul(F,z))+Math.imul(H,V)|0,r=Math.imul(H,z),o=o+Math.imul(O,j)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(L,j)|0,r=r+Math.imul(L,G)|0,o=o+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(P,Y)|0,r=r+Math.imul(P,X)|0,o=o+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(B,K)|0,r=r+Math.imul(B,Z)|0,o=o+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,$)|0,r=r+Math.imul(I,ee)|0,o=o+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(T,ne)|0,r=r+Math.imul(T,oe)|0,o=o+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(A,re)|0,r=r+Math.imul(A,ae)|0,o=o+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(b,ce)|0,r=r+Math.imul(b,le)|0,o=o+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,he)|0;var Ee=(l+(o=o+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((r=r+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(F,j),i=(i=Math.imul(F,G))+Math.imul(H,j)|0,r=Math.imul(H,G),o=o+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(L,Y)|0,r=r+Math.imul(L,X)|0,o=o+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(P,K)|0,r=r+Math.imul(P,Z)|0,o=o+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(B,$)|0,r=r+Math.imul(B,ee)|0,o=o+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(I,ne)|0,r=r+Math.imul(I,oe)|0,o=o+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(T,re)|0,r=r+Math.imul(T,ae)|0,o=o+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(A,ce)|0,r=r+Math.imul(A,le)|0,o=o+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,he)|0;var Ce=(l+(o=o+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((r=r+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(H,Y)|0,r=Math.imul(H,X),o=o+Math.imul(O,K)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,o=o+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,$)|0,r=r+Math.imul(P,ee)|0,o=o+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(B,ne)|0,r=r+Math.imul(B,oe)|0,o=o+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(I,re)|0,r=r+Math.imul(I,ae)|0,o=o+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(T,ce)|0,r=r+Math.imul(T,le)|0,o=o+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(A,de)|0,r=r+Math.imul(A,he)|0;var Ie=(l+(o=o+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;l=((r=r+Math.imul(b,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,o=Math.imul(F,K),i=(i=Math.imul(F,Z))+Math.imul(H,K)|0,r=Math.imul(H,Z),o=o+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(L,$)|0,r=r+Math.imul(L,ee)|0,o=o+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(P,ne)|0,r=r+Math.imul(P,oe)|0,o=o+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(B,re)|0,r=r+Math.imul(B,ae)|0,o=o+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ce)|0,r=r+Math.imul(I,le)|0,o=o+Math.imul(x,de)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(T,de)|0,r=r+Math.imul(T,he)|0;var Se=(l+(o=o+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((r=r+Math.imul(A,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,o=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(H,$)|0,r=Math.imul(H,ee),o=o+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(L,ne)|0,r=r+Math.imul(L,oe)|0,o=o+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(P,re)|0,r=r+Math.imul(P,ae)|0,o=o+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(B,ce)|0,r=r+Math.imul(B,le)|0,o=o+Math.imul(C,de)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(I,de)|0,r=r+Math.imul(I,he)|0;var Ne=(l+(o=o+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(T,pe)|0))<<13)|0;l=((r=r+Math.imul(T,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,o=Math.imul(F,ne),i=(i=Math.imul(F,oe))+Math.imul(H,ne)|0,r=Math.imul(H,oe),o=o+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,ae)|0,o=o+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(P,ce)|0,r=r+Math.imul(P,le)|0,o=o+Math.imul(N,de)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(B,de)|0,r=r+Math.imul(B,he)|0;var Be=(l+(o=o+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((r=r+Math.imul(I,me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,o=Math.imul(F,re),i=(i=Math.imul(F,ae))+Math.imul(H,re)|0,r=Math.imul(H,ae),o=o+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(L,ce)|0,r=r+Math.imul(L,le)|0,o=o+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(P,de)|0,r=r+Math.imul(P,he)|0;var Me=(l+(o=o+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(B,pe)|0))<<13)|0;l=((r=r+Math.imul(B,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,o=Math.imul(F,ce),i=(i=Math.imul(F,le))+Math.imul(H,ce)|0,r=Math.imul(H,le),o=o+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,he)|0;var Re=(l+(o=o+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((r=r+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(F,de),i=(i=Math.imul(F,he))+Math.imul(H,de)|0,r=Math.imul(H,he);var Pe=(l+(o=o+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((r=r+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ue=(l+(o=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(H,pe)|0))<<13)|0;return l=((r=Math.imul(H,me))+(i>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,c[0]=we,c[1]=ge,c[2]=be,c[3]=ye,c[4]=ve,c[5]=Ae,c[6]=ke,c[7]=xe,c[8]=Te,c[9]=Ee,c[10]=Ce,c[11]=Ie,c[12]=Se,c[13]=Ne,c[14]=Be,c[15]=Me,c[16]=Re,c[17]=Pe,c[18]=Ue,0!==l&&(c[19]=l,n.length++),n};function w(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var o=0,i=0,r=0;r<n.length-1;r++){var a=i;i=0;for(var s=67108863&o,c=Math.min(r,t.length-1),l=Math.max(0,r-e.length+1);l<=c;l++){var u=r-l,d=(0|e.words[u])*(0|t.words[l]),h=67108863&d;s=67108863&(h=h+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,o=a,a=i}return 0!==o?n.words[r]=o:n.length--,n.q()}function g(e,t,n){return w(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?w(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var o=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,a=(67108863&r)+(67108863&o);o>>=26,o+=r/67108864|0,o+=a>>>26,this.words[i]=67108863&a}return 0!==o&&(this.words[i]=o,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var o=n/26|0,i=n%26;t[n]=e.words[o]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,o=0;o<t.length&&0===t[o];o++,n=n.sqr());if(++o<t.length)for(var r=n.sqr();o<t.length;o++,r=r.sqr())0!==t[o]&&(n=n.mul(r));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,o=e%26,i=(e-o)/26,r=67108863>>>26-o<<26-o;if(0!==o){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&r,c=(0|this.words[t])-s<<o;this.words[t]=c|a,a=s>>>26-o}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.q()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,o){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var r=e%26,a=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<<r,c=o;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-r|d>>>r,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.ishrn=function(e,t,o){return n(0===this.negative),this.iushrn(e,t,o)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26,i=1<<t;return!(this.length<=o||!(this.words[o]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,o=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==t&&o++,this.length=Math.min(o,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this.V(e)},i.prototype.V=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.q()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._=function(e,t,o){var i,r,a=e.length+o;this.j(a);var s=0;for(i=0;i<e.length;i++){r=(0|this.words[i+o])+s;var c=(0|e.words[i])*t;s=((r-=67108863&c)>>26)-(c/67108864|0),this.words[i+o]=67108863&r}for(;i<this.length-o;i++)s=(r=(0|this.words[i+o])+s)>>26,this.words[i+o]=67108863&r;if(0===s)return this.q();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(r=-(0|this.words[i])+s)>>26,this.words[i]=67108863&r;return this.negative=1,this.q()},i.prototype.$=function(e,t){var n=(this.length,e.length),o=this.clone(),r=e,a=0|r.words[r.length-1];0!=(n=26-this.K(a))&&(r=r.ushln(n),o.iushln(n),a=0|r.words[r.length-1]);var s,c=o.length-r.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=o.clone()._(r,1,c);0===u.negative&&(o=u,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|o.words[r.length+d])+(0|o.words[r.length+d-1]);for(h=Math.min(h/a|0,67108863),o._(r,h,d);0!==o.negative;)h--,o.negative=0,o._(r,1,d),o.isZero()||(o.negative^=1);s&&(s.words[d]=h)}return s&&s.q(),o.q(),"div"!==t&&0!==n&&o.iushrn(n),{div:s||null,mod:o}},i.prototype.divmod=function(e,t,o){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),o&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),o&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this.$(e,t);var r,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),i=e.andln(1),r=n.cmp(o);return r<0||1===i&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var o=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(o*i+(0|this.words[r]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var o=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*o;this.words[i]=r/e|0,o=r%e}return this.q(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new i(1),a=new i(0),s=new i(0),c=new i(1),l=0;t.isEven()&&o.isEven();)t.iushrn(1),o.iushrn(1),++l;for(var u=o.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(d)),r.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(o.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(o.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(o)>=0?(t.isub(o),r.isub(s),a.isub(c)):(o.isub(t),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:o.iushln(l)}},i.prototype.ee=function(e){n(0===e.negative),n(!e.isZero());var t=this,o=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,a=new i(1),s=new i(0),c=o.clone();t.cmpn(1)>0&&o.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(o.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(o.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(o)>=0?(t.isub(o),a.isub(s)):(o.isub(t),s.isub(a))}return(r=0===t.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(e),r},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var o=0;t.isEven()&&n.isEven();o++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var r=t;t=n,n=r}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(o)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,o=(e-t)/26,i=1<<t;if(this.length<=o)return this.j(o+1),this.words[o]|=i,this;for(var r=i,a=o;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,o=e<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.q(),this.length>1)t=1;else{o&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var o=0|this.words[n],i=0|e.words[n];if(o!==i){o<i?t=-1:o>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this).te(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype.te=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this.te(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ne(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ne(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red.oe(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red.oe(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red.oe(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red.oe(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red.oe(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red.oe(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this.ie()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i.re(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.ee(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)}y.prototype.ie=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t<this.n?-1:n.ucmp(this.p);return 0===o?(n.words[0]=0,n.length=1):o>0?n.isub(this.p):void 0!==n.strip?n.strip():n.q(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},o(v,y),v.prototype.split=function(e,t){for(var n=4194303,o=Math.min(e.length,9),i=0;i<o;i++)t.words[i]=e.words[i];if(t.length=o,e.length<=9)return e.words[0]=0,void(e.length=1);var r=e.words[9];for(t.words[t.length++]=r&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&n)<<4|r>>>22,r=a}r>>>=22,e.words[i-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var o=0|e.words[n];t+=977*o,e.words[n]=67108863&t,t=64*o+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(A,y),o(k,y),o(x,y),x.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var o=19*(0|e.words[n])+t,i=67108863&o;o>>>=26,e.words[n]=i,t=o}return 0!==t&&(e.words[e.length++]=t),e},i.re=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return b[e]=t,t},T.prototype.oe=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype.ne=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e).te(this):(l(e,e.umod(this.m).te(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e).te(this)},T.prototype.add=function(e,t){this.ne(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n.te(this)},T.prototype.iadd=function(e,t){this.ne(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this.ne(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n.te(this)},T.prototype.isub=function(e,t){this.ne(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this.oe(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this.ne(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this.ne(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var o=this.m.add(new i(1)).iushrn(2);return this.pow(e,o)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);n(!r.isZero());var s=new i(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,r),h=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),p=a;0!==f.cmp(s);){for(var m=f,w=0;0!==m.cmp(s);w++)m=m.redSqr();n(w<p);var g=this.pow(d,new i(1).iushln(p-w-1));h=h.redMul(g),d=g.redSqr(),f=f.redMul(d),p=w}return h},T.prototype.invm=function(e){var t=e.ee(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var o=2;o<n.length;o++)n[o]=this.mul(n[o-1],e);var r=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),o=t.length-1;o>=0;o--){for(var l=t.words[o],u=c-1;u>=0;u--){var d=l>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===o&&0===u)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},o(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(o).iushrn(this.shift),r=i;return i.cmp(this.m)>=0?r=i.isub(this.m):i.cmpn(0)<0&&(r=i.iadd(this.m)),r.te(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0).te(this);var n=e.mul(t),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(o).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a.te(this)},E.prototype.invm=function(e){return this.imod(e.ee(this.m).mul(this.r2)).te(this)}}(0,ur)),sr.exports}const hr=/* @__PURE__ */Oi(dr());var fr,pr,mr,wr,gr,br={exports:{}};function yr(){if(gr)return wr;gr=1;var e=function(){if(mr)return pr;mr=1;var e=(fr||(fr=1,function(e,t){var n=Wi(),o=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function r(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=r),r.prototype=Object.create(o.prototype),i(o,r),r.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},r.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(br,br.exports)),br.exports).Buffer;return pr=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),o=0;o<n.length;o++)n[o]=255;for(var i=0;i<t.length;i++){var r=t.charAt(i),a=r.charCodeAt(0);if(255!==n[a])throw new TypeError(r+" is ambiguous");n[a]=i}var s=t.length,c=t.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return e.alloc(0);for(var o=0,i=0,r=0;t[o]===c;)i++,o++;for(var a=(t.length-o)*l+1>>>0,u=new Uint8Array(a);o<t.length;){var d=t.charCodeAt(o);if(d>255)return;var h=n[d];if(255===h)return;for(var f=0,p=a-1;(0!==h||f<r)&&-1!==p;p--,f++)h+=s*u[p]>>>0,u[p]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");r=f,o++}for(var m=a-r;m!==a&&0===u[m];)m++;var w=e.allocUnsafe(i+(a-m));w.fill(0,0,i);for(var g=i;m!==a;)w[g++]=u[m++];return w}return{encode:function(n){if((Array.isArray(n)||n instanceof Uint8Array)&&(n=e.from(n)),!e.isBuffer(n))throw new TypeError("Expected Buffer");if(0===n.length)return"";for(var o=0,i=0,r=0,a=n.length;r!==a&&0===n[r];)r++,o++;for(var l=(a-r)*u+1>>>0,d=new Uint8Array(l);r!==a;){for(var h=n[r],f=0,p=l-1;(0!==h||f<i)&&-1!==p;p--,f++)h+=256*d[p]>>>0,d[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=f,r++}for(var m=l-i;m!==l&&0===d[m];)m++;for(var w=c.repeat(o);m<l;++m)w+=t.charAt(d[m]);return w},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw new Error("Non-base"+s+" character")}}},pr}();return wr=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const vr=/* @__PURE__ */Oi(yr());var Ar={};function kr(e,t,n){return t<=e&&e<=n}function xr(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Tr(e){this.tokens=[].slice.call(e)}Tr.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Er=-1;function Cr(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Ir="utf-8";function Sr(e,t){if(!(this instanceof Sr))return new Sr(e,t);if((e=void 0!==e?String(e).toLowerCase():Ir)!==Ir)throw new Error("Encoding not supported. Only utf-8 is supported");t=xr(t),this.ae=!1,this.se=!1,this.ce=null,this.le=Boolean(t.fatal),this.ue=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.le}),Object.defineProperty(this,"ignoreBOM",{value:this.ue})}function Nr(e,t){if(!(this instanceof Nr))return new Nr(e,t);if((e=void 0!==e?String(e).toLowerCase():Ir)!==Ir)throw new Error("Encoding not supported. Only utf-8 is supported");t=xr(t),this.ae=!1,this.de=null,this.he={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function Br(e){var t=e.fatal,n=0,o=0,i=0,r=128,a=191;this.handler=function(e,s){if(-1===s&&0!==i)return i=0,Cr(t);if(-1===s)return Er;if(0===i){if(kr(s,0,127))return s;if(kr(s,194,223))i=1,n=s-192;else if(kr(s,224,239))224===s&&(r=160),237===s&&(a=159),i=2,n=s-224;else{if(!kr(s,240,244))return Cr(t);240===s&&(r=144),244===s&&(a=143),i=3,n=s-240}return n<<=6*i,null}if(!kr(s,r,a))return n=i=o=0,r=128,a=191,e.prepend(s),Cr(t);if(r=128,a=191,n+=s-128<<6*(i-(o+=1)),o!==i)return null;var c=n;return n=i=o=0,c}}function Mr(e){e.fatal,this.handler=function(e,t){if(-1===t)return Er;if(kr(t,0,127))return t;var n,o;kr(t,128,2047)?(n=1,o=192):kr(t,2048,65535)?(n=2,o=224):kr(t,65536,1114111)&&(n=3,o=240);for(var i=[(t>>6*n)+o];n>0;){var r=t>>6*(n-1);i.push(128|63&r),n-=1}return i}}Sr.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=xr(t),this.ae||(this.ce=new Br({fatal:this.le}),this.se=!1),this.ae=Boolean(t.stream);for(var o,i=new Tr(n),r=[];!i.endOfStream()&&(o=this.ce.handler(i,i.read()))!==Er;)null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o));if(!this.ae){do{if((o=this.ce.handler(i,i.read()))===Er)break;null!==o&&(Array.isArray(o)?r.push.apply(r,o):r.push(o))}while(!i.endOfStream());this.ce=null}return r.length&&(-1===["utf-8"].indexOf(this.encoding)||this.ue||this.se||(65279===r[0]?(this.se=!0,r.shift()):this.se=!0)),function(e){for(var t="",n=0;n<e.length;++n){var o=e[n];o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o)))}return t}(r)}},Nr.prototype={encode:function(e,t){e=e?String(e):"",t=xr(t),this.ae||(this.de=new Mr(this.he)),this.ae=Boolean(t.stream);for(var n,o=[],i=new Tr(function(e){for(var t=String(e),n=t.length,o=0,i=[];o<n;){var r=t.charCodeAt(o);if(r<55296||r>57343)i.push(r);else if(56320<=r&&r<=57343)i.push(65533);else if(55296<=r&&r<=56319)if(o===n-1)i.push(65533);else{var a=e.charCodeAt(o+1);if(56320<=a&&a<=57343){var s=1023&r,c=1023&a;i.push(65536+(s<<10)+c),o+=1}else i.push(65533)}o+=1}return i}(e));!i.endOfStream()&&(n=this.de.handler(i,i.read()))!==Er;)Array.isArray(n)?o.push.apply(o,n):o.push(n);if(!this.ae){for(;(n=this.de.handler(i,i.read()))!==Er;)Array.isArray(n)?o.push.apply(o,n):o.push(n);this.de=null}return new Uint8Array(o)}};const Rr=/* @__PURE__ */Li(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,TextDecoder:Sr,TextEncoder:Nr},Symbol.toStringTag,{value:"Module"})));var Pr,Ur,Or=function(){if(Pr)return Ar;Pr=1;var e=Ar&&Ar.fe||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),t=Ar&&Ar.pe||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ar&&Ar.me||function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a},o=Ar&&Ar.we||function(n){if(n&&n.S)return n;var o={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(o,n,i);return t(o,n),o},i=Ar&&Ar.ge||function(e){return e&&e.S?e:{default:e}};Object.defineProperty(Ar,"S",{value:!0}),Ar.deserializeUnchecked=Ar.deserialize=Ar.serialize=Ar.BinaryReader=Ar.BinaryWriter=Ar.BorshError=Ar.baseDecode=Ar.baseEncode=void 0;const r=i(dr()),a=i(yr()),s=o(Rr),c=new("function"!=typeof TextDecoder?s.TextDecoder:TextDecoder)("utf-8",{fatal:!0});Ar.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),a.default.encode(Buffer.from(e))},Ar.baseDecode=function(e){return Buffer.from(a.default.decode(e))};const l=1024;class u extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ar.BorshError=u;class d{constructor(){this.buf=Buffer.alloc(l),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(l)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new r.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(l)]),this.length+=e.length}writeString(e){this.maybeResize();const t=Buffer.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const n of e)this.maybeResize(),t(n)}toArray(){return this.buf.subarray(0,this.length)}}function h(e,t,n){const o=n.value;n.value=function(...e){try{return o.apply(this,e)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new u("Reached the end of buffer when deserializing")}throw t}}}Ar.BinaryWriter=d;class f{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new r.default(e,"le")}readU128(){const e=this.readBuffer(16);return new r.default(e,"le")}readU256(){const e=this.readBuffer(32);return new r.default(e,"le")}readU512(){const e=this.readBuffer(64);return new r.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new u(`Expected buffer length ${e} isn't within bounds`);const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return c.decode(t)}catch(n){throw new u(`Error decoding UTF-8 string: ${n}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),n=Array();for(let o=0;o<t;++o)n.push(e());return n}}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,n,o,i){try{if("string"==typeof o)i[`write${p(o)}`](n);else if(o instanceof Array)if("number"==typeof o[0]){if(n.length!==o[0])throw new u(`Expecting byte array of length ${o[0]}, but got ${n.length} bytes`);i.writeFixedArray(n)}else if(2===o.length&&"number"==typeof o[1]){if(n.length!==o[1])throw new u(`Expecting byte array of length ${o[1]}, but got ${n.length} bytes`);for(let t=0;t<o[1];t++)m(e,null,n[t],o[0],i)}else i.writeArray(n,n=>{m(e,t,n,o[0],i)});else if(void 0!==o.kind)switch(o.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),m(e,t,n,o.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,r)=>{m(e,t,r,o.key,i),m(e,t,n,o.value,i)});break;default:throw new u(`FieldType ${o} unrecognized`)}else w(e,n,i)}catch(r){throw r instanceof u&&r.addToFieldPath(t),r}}function w(e,t,n){if("function"==typeof t.borshSerialize)return void t.borshSerialize(n);const o=e.get(t.constructor);if(!o)throw new u(`Class ${t.constructor.name} is missing in schema`);if("struct"===o.kind)o.fields.map(([o,i])=>{m(e,o,t[o],i,n)});else{if("enum"!==o.kind)throw new u(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`);{const i=t[o.field];for(let r=0;r<o.values.length;++r){const[a,s]=o.values[r];if(a===i){n.writeU8(r),m(e,a,t[a],s,n);break}}}}}function g(e,t,n,o){try{if("string"==typeof n)return o[`read${p(n)}`]();if(n instanceof Array){if("number"==typeof n[0])return o.readFixedArray(n[0]);if("number"==typeof n[1]){const t=[];for(let i=0;i<n[1];i++)t.push(g(e,null,n[0],o));return t}return o.readArray(()=>g(e,t,n[0],o))}if("option"===n.kind)return o.readU8()?g(e,t,n.type,o):void 0;if("map"===n.kind){let i=/* @__PURE__ */new Map;const r=o.readU32();for(let a=0;a<r;a++){const r=g(e,t,n.key,o),a=g(e,t,n.value,o);i.set(r,a)}return i}return b(e,n,o)}catch(i){throw i instanceof u&&i.addToFieldPath(t),i}}function b(e,t,n){if("function"==typeof t.borshDeserialize)return t.borshDeserialize(n);const o=e.get(t);if(!o)throw new u(`Class ${t.name} is missing in schema`);if("struct"===o.kind){const o={};for(const[i,r]of e.get(t).fields)o[i]=g(e,i,r,n);return new t(o)}if("enum"===o.kind){const i=n.readU8();if(i>=o.values.length)throw new u(`Enum index: ${i} is out of range`);const[r,a]=o.values[i],s=g(e,r,a,n);return new t({[r]:s})}throw new u(`Unexpected schema kind: ${o.kind} for ${t.constructor.name}`)}return n([h],f.prototype,"readU8",null),n([h],f.prototype,"readU16",null),n([h],f.prototype,"readU32",null),n([h],f.prototype,"readU64",null),n([h],f.prototype,"readU128",null),n([h],f.prototype,"readU256",null),n([h],f.prototype,"readU512",null),n([h],f.prototype,"readString",null),n([h],f.prototype,"readFixedArray",null),n([h],f.prototype,"readArray",null),Ar.BinaryReader=f,Ar.serialize=function(e,t,n=d){const o=new n;return w(e,t,o),o.toArray()},Ar.deserialize=function(e,t,n,o=f){const i=new o(n),r=b(e,t,i);if(i.offset<n.length)throw new u(`Unexpected ${n.length-i.offset} bytes after deserialized data`);return r},Ar.deserializeUnchecked=function(e,t,n,o=f){return b(e,t,new o(n))},Ar}(),Lr={},Dr=function(){if(Ur)return Lr;Ur=1,Object.defineProperty(Lr,"S",{value:!0}),Lr.s16=Lr.s8=Lr.nu64be=Lr.u48be=Lr.u40be=Lr.u32be=Lr.u24be=Lr.u16be=Lr.nu64=Lr.u48=Lr.u40=Lr.u32=Lr.u24=Lr.u16=Lr.u8=Lr.offset=Lr.greedy=Lr.Constant=Lr.UTF8=Lr.CString=Lr.Blob=Lr.Boolean=Lr.BitField=Lr.BitStructure=Lr.VariantLayout=Lr.Union=Lr.UnionLayoutDiscriminator=Lr.UnionDiscriminator=Lr.Structure=Lr.Sequence=Lr.DoubleBE=Lr.Double=Lr.FloatBE=Lr.Float=Lr.NearInt64BE=Lr.NearInt64=Lr.NearUInt64BE=Lr.NearUInt64=Lr.IntBE=Lr.Int=Lr.UIntBE=Lr.UInt=Lr.OffsetLayout=Lr.GreedyCount=Lr.ExternalLayout=Lr.bindConstructorLayout=Lr.nameWithProperty=Lr.Layout=Lr.uint8ArrayToBuffer=Lr.checkUint8Array=void 0,Lr.constant=Lr.utf8=Lr.cstr=Lr.blob=Lr.unionLayoutDiscriminator=Lr.union=Lr.seq=Lr.bits=Lr.struct=Lr.f64be=Lr.f64=Lr.f32be=Lr.f32=Lr.ns64be=Lr.s48be=Lr.s40be=Lr.s32be=Lr.s24be=Lr.s16be=Lr.ns64=Lr.s48=Lr.s40=Lr.s32=Lr.s24=void 0;const e=Wi();function t(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function n(n){return t(n),e.Buffer.from(n.buffer,n.byteOffset,n.length)}Lr.checkUint8Array=t,Lr.uint8ArrayToBuffer=n;let o=class{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}};function i(e,t){return t.property?e+"["+t.property+"]":e}Lr.Layout=o,Lr.nameWithProperty=i,Lr.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof o))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,n)=>t.decode(e,n),writable:!0})};class r extends o{isCount(){throw new Error("ExternalLayout is abstract")}}Lr.ExternalLayout=r;class a extends r{constructor(e=1,t){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,n=0){t(e);const o=e.length-n;return Math.floor(o/this.elementSpan)}encode(e,t,n){return 0}}Lr.GreedyCount=a;class s extends r{constructor(e,t=0,n){if(!(e instanceof o))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,n||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof c||this.layout instanceof l}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,n=0){return this.layout.encode(e,t,n+this.offset)}}Lr.OffsetLayout=s;class c extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntLE(t,this.span)}encode(e,t,o=0){return n(t).writeUIntLE(e,o,this.span),this.span}}Lr.UInt=c;class l extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntBE(t,this.span)}encode(e,t,o=0){return n(t).writeUIntBE(e,o,this.span),this.span}}Lr.UIntBE=l;class u extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntLE(t,this.span)}encode(e,t,o=0){return n(t).writeIntLE(e,o,this.span),this.span}}Lr.Int=u;class d extends o{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntBE(t,this.span)}encode(e,t,o=0){return n(t).writeIntBE(e,o,this.span),this.span}}Lr.IntBE=d;const h=Math.pow(2,32);function f(e){const t=Math.floor(e/h);return{hi32:t,lo32:e-t*h}}function p(e,t){return e*h+t}class m extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e),i=o.readUInt32LE(t);return p(o.readUInt32LE(t+4),i)}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32LE(i.lo32,o),r.writeUInt32LE(i.hi32,o+4),8}}Lr.NearUInt64=m;class w extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e);return p(o.readUInt32BE(t),o.readUInt32BE(t+4))}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32BE(i.hi32,o),r.writeUInt32BE(i.lo32,o+4),8}}Lr.NearUInt64BE=w;class g extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e),i=o.readUInt32LE(t);return p(o.readInt32LE(t+4),i)}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeUInt32LE(i.lo32,o),r.writeInt32LE(i.hi32,o+4),8}}Lr.NearInt64=g;class b extends o{constructor(e){super(8,e)}decode(e,t=0){const o=n(e);return p(o.readInt32BE(t),o.readUInt32BE(t+4))}encode(e,t,o=0){const i=f(e),r=n(t);return r.writeInt32BE(i.hi32,o),r.writeUInt32BE(i.lo32,o+4),8}}Lr.NearInt64BE=b;class y extends o{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatLE(t)}encode(e,t,o=0){return n(t).writeFloatLE(e,o),4}}Lr.Float=y;class v extends o{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatBE(t)}encode(e,t,o=0){return n(t).writeFloatBE(e,o),4}}Lr.FloatBE=v;class A extends o{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleLE(t)}encode(e,t,o=0){return n(t).writeDoubleLE(e,o),8}}Lr.Double=A;class k extends o{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleBE(t)}encode(e,t,o=0){return n(t).writeDoubleBE(e,o),8}}Lr.DoubleBE=k;class x extends o{constructor(e,t,n){if(!(e instanceof o))throw new TypeError("elementLayout must be a Layout");if(!(t instanceof r&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;!(t instanceof r)&&0<e.span&&(i=t*e.span),super(i,n),this.elementLayout=e,this.count=t}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0,o=this.count;if(o instanceof r&&(o=o.decode(e,t)),0<this.elementLayout.span)n=o*this.elementLayout.span;else{let i=0;for(;i<o;)n+=this.elementLayout.getSpan(e,t+n),++i}return n}decode(e,t=0){const n=[];let o=0,i=this.count;for(i instanceof r&&(i=i.decode(e,t));o<i;)n.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),o+=1;return n}encode(e,t,n=0){const o=this.elementLayout,i=e.reduce((e,i)=>e+o.encode(i,t,n+e),0);return this.count instanceof r&&this.count.encode(e.length,t,n),i}}Lr.Sequence=x;class T extends o{constructor(e,t,n){if(!Array.isArray(e)||!e.reduce((e,t)=>e&&t instanceof o,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===n&&(n=t,t=void 0);for(const o of e)if(0>o.span&&void 0===o.property)throw new Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=e.reduce((e,t)=>e+t.getSpan(),0)}catch(r){}super(i,t),this.fields=e,this.decodePrefixes=!!n}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,o)=>{const i=o.getSpan(e,t);return t+=i,n+i},0)}catch(o){throw new RangeError("indeterminate span")}return n}decode(e,n=0){t(e);const o=this.makeDestinationObject();for(const t of this.fields)if(void 0!==t.property&&(o[t.property]=t.decode(e,n)),n+=t.getSpan(e,n),this.decodePrefixes&&e.length===n)break;return o}encode(e,t,n=0){const o=n;let i=0,r=0;for(const a of this.fields){let o=a.span;if(r=0<o?o:0,void 0!==a.property){const i=e[a.property];void 0!==i&&(r=a.encode(i,t,n),0>o&&(o=a.getSpan(t,n)))}i=n,n+=o}return i+r-o}fromArray(e){const t=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<e.length&&(t[n.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw new TypeError("property must be string");let t=0;for(const n of this.fields){if(n.property===e)return t;0>n.span?t=-1:0<=t&&(t+=n.span)}}}Lr.Structure=T;class E{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,n){throw new Error("UnionDiscriminator is abstract")}}Lr.UnionDiscriminator=E;class C extends E{constructor(e,t){if(!(e instanceof r&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,n){return this.layout.encode(e,t,n)}}Lr.UnionLayoutDiscriminator=C;class I extends o{constructor(e,t,n){let i;if(e instanceof c||e instanceof l)i=new C(new s(e));else if(e instanceof r&&e.isCount())i=new C(e);else{if(!(e instanceof E))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===t&&(t=null),!(null===t||t instanceof o))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let a=-1;t&&(a=t.span,0<=a&&(e instanceof c||e instanceof l)&&(a+=i.layout.span)),super(a,n),this.discriminator=i,this.usesPrefixDiscriminator=e instanceof c||e instanceof l,this.defaultLayout=t,this.registry={};let u=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return u(e)},this.configGetSourceVariant=function(e){u=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;const n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const n=this.registry[t];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}decode(e,t=0){let n;const o=this.discriminator,i=o.decode(e,t),r=this.registry[i];if(void 0===r){const r=this.defaultLayout;let a=0;this.usesPrefixDiscriminator&&(a=o.layout.span),n=this.makeDestinationObject(),n[o.property]=i,n[r.property]=r.decode(e,t+a)}else n=r.decode(e,t);return n}encode(e,t,n=0){const o=this.getSourceVariant(e);if(void 0===o){const o=this.discriminator,i=this.defaultLayout;let r=0;return this.usesPrefixDiscriminator&&(r=o.layout.span),o.encode(e[o.property],t,n),r+i.encode(e[i.property],t,n+r)}return o.encode(e,t,n)}addVariant(e,t,n){const o=new S(this,e,t,n);return this.registry[e]=o,o}getVariant(e,t=0){let n;return n=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[n]}}Lr.Union=I;class S extends o{constructor(e,t,n,i){if(!(e instanceof I))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof o))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}let r=e.span;0>e.span&&(r=n?n.span:0,0<=r&&e.usesPrefixDiscriminator&&(r+=e.discriminator.layout.span)),super(r,i),this.union=e,this.variant=t,this.layout=n||null}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let o=0;return this.layout&&(o=this.layout.getSpan(e,t+n)),n+o}decode(e,t=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+o):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(e,t,n=0){let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);let i=o;if(this.layout&&(this.layout.encode(e[this.property],t,n+o),i+=this.layout.getSpan(t,n+o),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function N(e){return 0>e&&(e+=4294967296),e}Lr.VariantLayout=S;class B extends o{constructor(e,t,n){if(!(e instanceof c||e instanceof l))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===n&&(n=t,t=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,n),this.word=e,this.msb=!!t,this.fields=[];let o=0;this.be=function(e){return o=N(e),this},this.ye=function(){return o}}decode(e,t=0){const n=this.makeDestinationObject(),o=this.word.decode(e,t);this.be(o);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(e));return n}encode(e,t,n=0){const o=this.word.decode(t,n);this.be(o);for(const i of this.fields)if(void 0!==i.property){const t=e[i.property];void 0!==t&&i.encode(t)}return this.word.encode(this.ye(),t,n)}addField(e,t){const n=new M(this,e,t);return this.fields.push(n),n}addBoolean(e){const t=new R(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}}Lr.BitStructure=B;class M{constructor(e,t,n){if(!(e instanceof B))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw new TypeError("bits must be positive integer");const o=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>o)throw new Error("bits too long for span remainder ("+(o-i)+" of "+o+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=o-i-t),this.wordMask=N(this.valueMask<<this.start),this.property=n}decode(e,t){return N(this.container.ye()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==N(e&this.valueMask))throw new TypeError(i("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container.ye(),n=N(e<<this.start);this.container.be(N(t&~this.wordMask)|n)}}Lr.BitField=M;class R extends M{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}Lr.Boolean=R;class P extends o{constructor(e,t){if(!(e instanceof r&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;e instanceof r||(n=e),super(n,t),this.length=e}getSpan(e,t){let n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}decode(e,t=0){let o=this.span;return 0>o&&(o=this.length.decode(e,t)),n(e).slice(t,t+o)}encode(e,t,o){let a=this.length;if(this.length instanceof r&&(a=e.length),!(e instanceof Uint8Array&&a===e.length))throw new TypeError(i("Blob.encode",this)+" requires (length "+a+") Uint8Array as src");if(o+a>t.length)throw new RangeError("encoding overruns Uint8Array");const s=n(e);return n(t).write(s.toString("hex"),o,a,"hex"),this.length instanceof r&&this.length.encode(a,t,o),a}}Lr.Blob=P;class U extends o{constructor(e){super(-1,e)}getSpan(e,n=0){t(e);let o=n;for(;o<e.length&&0!==e[o];)o+=1;return 1+o-n}decode(e,t=0){const o=this.getSpan(e,t);return n(e).slice(t,t+o-1).toString("utf-8")}encode(t,o,i=0){"string"!=typeof t&&(t=String(t));const r=e.Buffer.from(t,"utf8"),a=r.length;if(i+a>o.length)throw new RangeError("encoding overruns Buffer");const s=n(o);return r.copy(s,i),s[i+a]=0,a+1}}Lr.CString=U;class O extends o{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,n=0){return t(e),e.length-n}decode(e,t=0){const o=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");return n(e).slice(t,t+o).toString("utf-8")}encode(t,o,i=0){"string"!=typeof t&&(t=String(t));const r=e.Buffer.from(t,"utf8"),a=r.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(i+a>o.length)throw new RangeError("encoding overruns Buffer");return r.copy(n(o),i),a}}Lr.UTF8=O;class L extends o{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,n){return 0}}return Lr.Constant=L,Lr.greedy=(e,t)=>new a(e,t),Lr.offset=(e,t,n)=>new s(e,t,n),Lr.u8=e=>new c(1,e),Lr.u16=e=>new c(2,e),Lr.u24=e=>new c(3,e),Lr.u32=e=>new c(4,e),Lr.u40=e=>new c(5,e),Lr.u48=e=>new c(6,e),Lr.nu64=e=>new m(e),Lr.u16be=e=>new l(2,e),Lr.u24be=e=>new l(3,e),Lr.u32be=e=>new l(4,e),Lr.u40be=e=>new l(5,e),Lr.u48be=e=>new l(6,e),Lr.nu64be=e=>new w(e),Lr.s8=e=>new u(1,e),Lr.s16=e=>new u(2,e),Lr.s24=e=>new u(3,e),Lr.s32=e=>new u(4,e),Lr.s40=e=>new u(5,e),Lr.s48=e=>new u(6,e),Lr.ns64=e=>new g(e),Lr.s16be=e=>new d(2,e),Lr.s24be=e=>new d(3,e),Lr.s32be=e=>new d(4,e),Lr.s40be=e=>new d(5,e),Lr.s48be=e=>new d(6,e),Lr.ns64be=e=>new b(e),Lr.f32=e=>new y(e),Lr.f32be=e=>new v(e),Lr.f64=e=>new A(e),Lr.f64be=e=>new k(e),Lr.struct=(e,t,n)=>new T(e,t,n),Lr.bits=(e,t,n)=>new B(e,t,n),Lr.seq=(e,t,n)=>new x(e,t,n),Lr.union=(e,t,n)=>new I(e,t,n),Lr.unionLayoutDiscriminator=(e,t)=>new C(e,t),Lr.blob=(e,t)=>new P(e,t),Lr.cstr=e=>new U(e),Lr.utf8=(e,t)=>new O(e,t),Lr.constant=(e,t)=>new L(e,t),Lr}(),Fr=1,Hr=2,qr=3,Vr=4,zr=5,Wr=6,jr=7,Gr=8,Jr=9,Yr=10,Xr=-32700,Qr=-32603,Kr=-32602,Zr=-32601,_r=-32600,$r=-32016,ea=-32015,ta=-32014,na=-32013,oa=-32012,ia=-32011,ra=-32010,aa=-32009,sa=-32008,ca=-32007,la=-32006,ua=-32005,da=-32004,ha=-32003,fa=-32002,pa=-32001,ma=28e5,wa=2800001,ga=2800002,ba=2800003,ya=2800004,va=2800005,Aa=2800006,ka=2800007,xa=2800008,Ta=2800009,Ea=2800010,Ca=2800011,Ia=323e4,Sa=32300001,Na=3230002,Ba=3230003,Ma=3230004,Ra=361e4,Pa=3610001,Ua=3610002,Oa=3610003,La=3610004,Da=3610005,Fa=3610006,Ha=3610007,qa=3611e3,Va=3704e3,za=3704001,Wa=3704002,ja=3704003,Ga=3704004,Ja=4128e3,Ya=4128001,Xa=4128002,Qa=4615e3,Ka=4615001,Za=4615002,_a=4615003,$a=4615004,es=4615005,ts=4615006,ns=4615007,os=4615008,is=4615009,rs=4615010,as=4615011,ss=4615012,cs=4615013,ls=4615014,us=4615015,ds=4615016,hs=4615017,fs=4615018,ps=4615019,ms=4615020,ws=4615021,gs=4615022,bs=4615023,ys=4615024,vs=4615025,As=4615026,ks=4615027,xs=4615028,Ts=4615029,Es=4615030,Cs=4615031,Is=4615032,Ss=4615033,Ns=4615034,Bs=4615035,Ms=4615036,Rs=4615037,Ps=4615038,Us=4615039,Os=4615040,Ls=4615041,Ds=4615042,Fs=4615043,Hs=4615044,qs=4615045,Vs=4615046,zs=4615047,Ws=4615048,js=4615049,Gs=4615050,Js=4615051,Ys=4615052,Xs=4615053,Qs=4615054,Ks=5508e3,Zs=5508001,_s=5508002,$s=5508003,ec=5508004,tc=5508005,nc=5508006,oc=5508007,ic=5508008,rc=5508009,ac=5508010,sc=5508011,cc=5663e3,lc=5663001,uc=5663002,dc=5663003,hc=5663004,fc=5663005,pc=5663006,mc=5663007,wc=5663008,gc=5663009,bc=5663010,yc=5663011,vc=5663012,Ac=5663013,kc=5663014,xc=5663015,Tc=5663016,Ec=5663017,Cc=5663018,Ic=5663019,Sc=5663020,Nc=705e4,Bc=7050001,Mc=7050002,Rc=7050003,Pc=7050004,Uc=7050005,Oc=7050006,Lc=7050007,Dc=7050008,Fc=7050009,Hc=7050010,qc=7050011,Vc=7050012,zc=7050013,Wc=7050014,jc=7050015,Gc=7050016,Jc=7050017,Yc=7050018,Xc=7050019,Qc=7050020,Kc=7050021,Zc=7050022,_c=7050023,$c=7050024,el=7050025,tl=7050026,nl=7050027,ol=7050028,il=7050029,rl=7050030,al=7050031,sl=7050032,cl=7050033,ll=7050034,ul=7050035,dl=7050036,hl=8078e3,fl=8078001,pl=8078002,ml=8078003,wl=8078004,gl=8078005,bl=8078006,yl=8078007,vl=8078008,Al=8078009,kl=8078010,xl=8078011,Tl=8078012,El=8078013,Cl=8078014,Il=8078015,Sl=8078016,Nl=8078017,Bl=8078018,Ml=8078019,Rl=8078020,Pl=8078021,Ul=8078022,Ol=81e5,Ll=8100001,Dl=8100002,Fl=8100003,Hl=819e4,ql=8190001,Vl=8190002,zl=8190003,Wl=8190004,jl=99e5,Gl=9900001,Jl=9900002,Yl=9900003,Xl=9900004;function Ql(e){return Array.isArray(e)?"%5B"+e.map(Ql).join("%2C%20")+"%5D":"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function Kl([e,t]){return`${e}=${Ql(t)}`}var Zl={[Ia]:"Account not found at address: $address",[Ma]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Ba]:"Expected decoded account at address: $address",[Na]:"Failed to decode account data at address: $address",[Sa]:"Accounts not found at addresses: $addresses",[Ta]:"Unable to find a viable program address bump seed.",[ga]:"$putativeAddress is not a base58-encoded address.",[ma]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[ba]:"The `CryptoKey` must be an `Ed25519` public key.",[Ca]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[xa]:"Invalid seeds; point must fall off the Ed25519 curve.",[ya]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Aa]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[ka]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[va]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Ea]:"Program address cannot end with PDA marker.",[wa]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Vr]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Fr]:"The network has progressed past the last block for which this transaction could have been committed.",[hl]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ul]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Rl]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[gl]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[bl]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[wl]:"Encoder and decoder must either both be fixed-size or variable-size.",[vl]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[pl]:"Expected a fixed-size codec, got a variable-size one.",[El]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[ml]:"Expected a variable-size codec, got a fixed-size one.",[Ml]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[fl]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Bl]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Al]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[kl]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Il]:"Invalid literal union variant. Expected one of [$variants], got $value.",[yl]:"Expected [$codecDescription] to have $expected items, got $actual.",[Tl]:"Invalid value $value for base $base with alphabet $alphabet.",[Sl]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[xl]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Cl]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Pl]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Nl]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[qa]:"No random values implementation could be found.",[is]:"instruction requires an uninitialized account",[bs]:"instruction tries to borrow reference for an account which is already borrowed",[ys]:"instruction left account with an outstanding borrowed reference",[ws]:"program other than the account's owner changed the size of the account data",[es]:"account data too small for instruction",[gs]:"instruction expected an executable account",[Vs]:"An account does not have enough lamports to be rent-exempt",[Ws]:"Program arithmetic overflowed",[qs]:"Failed to serialize or deserialize account data: $encodedData",[Qs]:"Builtin programs must consume compute units",[Is]:"Cross-program invocation call depth too deep",[Ps]:"Computational budget exceeded",[As]:"custom program error: #$code",[hs]:"instruction contains duplicate accounts",[vs]:"instruction modifications of multiply-passed account differ",[Es]:"executable accounts must be rent exempt",[xs]:"instruction changed executable accounts data",[Ts]:"instruction changed the balance of an executable account",[fs]:"instruction changed executable bit of an account",[ls]:"instruction modified data of an account it does not own",[cs]:"instruction spent from the balance of an account it does not own",[Ka]:"generic instruction error",[Gs]:"Provided owner is not allowed",[Fs]:"Account is immutable",[Hs]:"Incorrect authority provided",[ns]:"incorrect program id for instruction",[ts]:"insufficient funds for instruction",[$a]:"invalid account data for instruction",[zs]:"Invalid account owner",[Za]:"invalid program argument",[ks]:"program returned invalid error code",[_a]:"invalid instruction data",[Rs]:"Failed to reallocate account data",[Ms]:"Provided seeds do not result in a valid address",[Js]:"Accounts data allocations exceeded the maximum allowed per transaction",[Ys]:"Max accounts exceeded",[Xs]:"Max instruction trace length exceeded",[Bs]:"Length of the seed is too long for address generation",[Ss]:"An account required by the instruction is missing",[os]:"missing required signature for instruction",[ss]:"instruction illegally modified the program id of an account",[ms]:"insufficient account keys for instruction",[Us]:"Cross-program invocation with unauthorized signer or writable account",[Os]:"Failed to create program execution environment",[Ds]:"Program failed to compile",[Ls]:"Program failed to complete",[ds]:"instruction modified data of a read-only account",[us]:"instruction changed the balance of a read-only account",[Ns]:"Cross-program invocation reentrancy not allowed for this instruction",[ps]:"instruction modified rent epoch of an account",[as]:"sum of account balances before and after instruction do not match",[rs]:"instruction requires an initialized account",[Qa]:"",[Cs]:"Unsupported program id",[js]:"Unsupported sysvar",[Ja]:"The instruction does not have any accounts.",[Ya]:"The instruction does not have any data.",[Xa]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[zr]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Hr]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Jl]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Xl]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Gl]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jl]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yl]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Qr]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Kr]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[_r]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Zr]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Xr]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[oa]:"$__serverMessage",[pa]:"$__serverMessage",[da]:"$__serverMessage",[ta]:"$__serverMessage",[ra]:"$__serverMessage",[aa]:"$__serverMessage",[$r]:"Minimum context slot has not been reached",[ua]:"Node is unhealthy; behind by $numSlotsBehind slots",[sa]:"No snapshot",[fa]:"Transaction simulation failed",[ca]:"$__serverMessage",[ia]:"Transaction history is not available from this node",[la]:"$__serverMessage",[na]:"Transaction signature length mismatch",[ha]:"Transaction signature verification failure",[ea]:"$__serverMessage",[Va]:"Key pair bytes must be of length 64, got $byteLength.",[za]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Wa]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Ga]:"The provided private key does not match the provided public key.",[ja]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Wr]:"Lamports value must be in the range [0, 2e64-1]",[jr]:"`$value` cannot be parsed as a `BigInt`",[Yr]:"$message",[Gr]:"`$value` cannot be parsed as a `Number`",[qr]:"No nonce account could be found at address `$nonceAccountAddress`",[Hl]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Vl]:"WebSocket was closed before payload could be added to the send buffer",[zl]:"WebSocket connection closed",[Wl]:"WebSocket failed to connect",[ql]:"Failed to obtain a subscription id from the server",[Fl]:"Could not find an API plan for RPC method: `$method`",[Ol]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Dl]:"HTTP error ($statusCode): $message",[Ll]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Ks]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Zs]:"The provided value does not implement the `KeyPairSigner` interface",[$s]:"The provided value does not implement the `MessageModifyingSigner` interface",[ec]:"The provided value does not implement the `MessagePartialSigner` interface",[_s]:"The provided value does not implement any of the `MessageSigner` interfaces",[nc]:"The provided value does not implement the `TransactionModifyingSigner` interface",[oc]:"The provided value does not implement the `TransactionPartialSigner` interface",[ic]:"The provided value does not implement the `TransactionSendingSigner` interface",[tc]:"The provided value does not implement any of the `TransactionSigner` interfaces",[rc]:"More than one `TransactionSendingSigner` was identified.",[ac]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[sc]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Ha]:"Cannot export a non-extractable key.",[Pa]:"No digest implementation could be found.",[Ra]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Ua]:"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",[Oa]:"No signature verification implementation could be found.",[La]:"No key generation implementation could be found.",[Da]:"No signing implementation could be found.",[Fa]:"No key export implementation could be found.",[Jr]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Gc]:"Transaction processing left an account with an outstanding borrowed reference",[Bc]:"Account in use",[Mc]:"Account loaded twice",[Rc]:"Attempt to debit an account but found no record of a prior credit.",[_c]:"Transaction loads an address table account that doesn't exist",[Lc]:"This transaction has already been processed",[Dc]:"Blockhash not found",[Fc]:"Loader call chain is too deep",[jc]:"Transactions are currently disabled due to cluster maintenance",[rl]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Uc]:"Insufficient funds for fee",[al]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Oc]:"This account may not be used to pay transaction fees",[qc]:"Transaction contains an invalid account reference",[el]:"Transaction loads an address table account with invalid data",[tl]:"Transaction address table lookup uses an invalid index",[$c]:"Transaction loads an address table account with an invalid owner",[cl]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[zc]:"This program may not be used for executing instructions",[nl]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Xc]:"Transaction loads a writable account that cannot be written",[sl]:"Transaction exceeded max loaded accounts data size cap",[Hc]:"Transaction requires a fee but has no signature present",[Pc]:"Attempt to load a program that does not exist",[ul]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ll]:"ResanitizationNeeded",[Wc]:"Transaction failed to sanitize accounts offsets correctly",[Vc]:"Transaction did not pass signature verification",[Zc]:"Transaction locked too many accounts",[dl]:"Sum of account balances before and after transaction do not match",[Nc]:"The transaction failed with the error `$errorName`",[Yc]:"Transaction version is unsupported",[Kc]:"Transaction would exceed account data limit within the block",[il]:"Transaction would exceed total account data limit",[Qc]:"Transaction would exceed max account limit within the block",[Jc]:"Transaction would exceed max Block Cost Limit",[ol]:"Transaction would exceed max Vote Cost Limit",[xc]:"Attempted to sign a transaction with an address that is not a signer for it",[bc]:"Transaction is missing an address at index: $index.",[Tc]:"Transaction has no expected signers therefore it cannot be encoded",[Sc]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[uc]:"Transaction does not have a blockhash lifetime",[dc]:"Transaction is not a durable nonce transaction",[fc]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[pc]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[wc]:"No fee payer set in CompiledTransaction",[mc]:"Could not find program address at index $index",[Cc]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Ic]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[yc]:"Transaction is missing a fee payer.",[vc]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[kc]:"Transaction first instruction is not advance nonce account instruction.",[Ac]:"Transaction with no instructions cannot be durable nonce transaction.",[cc]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[lc]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Ec]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[gc]:"Transaction is missing signatures for addresses: $addresses.",[hc]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},_l="i",$l="t";var eu=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,o;if(t){const{cause:e,...i}=t;e&&(o={cause:e}),Object.keys(i).length>0&&(n=i)}super(function(e,t={}){if("production"!==process.env.NODE_ENV)return function(e,t={}){const n=Zl[e];if(0===n.length)return"";let o;function i(e){if(2===o[$l]){const i=n.slice(o[_l]+1,e);r.push(i in t?`${t[i]}`:`$${i}`)}else 1===o[$l]&&r.push(n.slice(o[_l],e))}const r=[];return n.split("").forEach((e,t)=>{if(0===t)return void(o={[_l]:0,[$l]:"\\"===n[0]?0:"$"===n[0]?2:1});let r;switch(o[$l]){case 0:r={[_l]:t,[$l]:1};break;case 1:"\\"===e?r={[_l]:t,[$l]:0}:"$"===e&&(r={[_l]:t,[$l]:2});break;case 2:"\\"===e?r={[_l]:t,[$l]:0}:"$"===e?r={[_l]:t,[$l]:2}:e.match(/\w/)||(r={[_l]:t,[$l]:1})}r&&(o!==r&&i(t),o=r)}),i(),r.join("")}(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${function(e){const t=Object.entries(e).map(Kl).join("&");return btoa(t)}(t)}'`),`${n}\``}}(e,n),o),this.context={ve:e,...n},this.name="SolanaError"}};function tu(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function nu(e){return 1!==e?.endian}var ou=(e={})=>function(e,t){if(tu(e)!==tu(t))throw new eu(wl);if(tu(e)&&tu(t)&&e.fixedSize!==t.fixedSize)throw new eu(gl,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!tu(e)&&!tu(t)&&e.maxSize!==t.maxSize)throw new eu(bl,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}(((e={})=>{return t={config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,n)=>e.setBigUint64(0,BigInt(t),n),size:8},n={fixedSize:t.size,write(e,n,o){t.range&&function(e,t,n,o){if(o<t||o>n)throw new eu(xl,{codecDescription:e,max:n,min:t,value:o})}(t.name,t.range[0],t.range[1],e);const i=new ArrayBuffer(t.size);return t.set(new DataView(i),e,nu(t.config)),n.set(new Uint8Array(i),o),o+t.size}},Object.freeze({...n,encode:e=>{const t=new Uint8Array(function(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}(e,n));return n.write(e,t,0),t}});var t,n})(e),((e={})=>{return n={fixedSize:(t={config:e,get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8}).size,read(e,n=0){!function(e,t,n=0){if(t.length-n<=0)throw new eu(hl,{codecDescription:e})}(t.name,e,n),function(e,t,n,o=0){const i=n.length-o;if(i<t)throw new eu(fl,{bytesLength:i,codecDescription:e,expected:t})}(t.name,t.size,e,n);const o=new DataView(function(e,t,n){const o=e.byteOffset+(t??0),i=n??e.byteLength;return e.buffer.slice(o,o+i)}(e,n,t.size));return[t.get(o,nu(t.config)),n+t.size]}},Object.freeze({...n,decode:(e,t=0)=>n.read(e,t)[0]});var t,n})(e));class iu extends TypeError{constructor(e,t){let n;const{message:o,explanation:i,...r}=e,{path:a}=e,s=0===a.length?o:`At path: ${a.join(".")} -- ${o}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,r),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function ru(e){return"object"==typeof e&&null!=e}function au(e){return ru(e)&&!Array.isArray(e)}function su(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function cu(e,t,n,o){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:r}=t,{type:a}=n,{refinement:s,message:c=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${su(o)}\``}=e;return{value:o,type:a,refinement:s,key:i[i.length-1],path:i,branch:r,...e,message:c}}function*lu(e,t,n,o){var i;ru(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const r of e){const e=cu(r,t,n,o);e&&(yield e)}}function*uu(e,t,n={}){const{path:o=[],branch:i=[e],coerce:r=!1,mask:a=!1}=n,s={path:o,branch:i,mask:a};r&&(e=t.coercer(e,s));let c="valid";for(const l of t.validator(e,s))l.explanation=n.message,c="not_valid",yield[l,void 0];for(let[l,u,d]of t.entries(e,s)){const t=uu(u,d,{path:void 0===l?o:[...o,l],branch:void 0===l?i:[...i,u],coerce:r,mask:a,message:n.message});for(const n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):r&&(u=n[1],void 0===l?e=u:e instanceof Map?e.set(l,u):e instanceof Set?e.add(u):ru(e)&&(void 0!==u||l in e)&&(e[l]=u))}if("not_valid"!==c)for(const l of t.refiner(e,s))l.explanation=n.message,c="not_refined",yield[l,void 0];"valid"===c&&(yield[void 0,e])}let du=class{constructor(e){const{type:t,schema:n,validator:o,refiner:i,coercer:r=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=r,this.validator=o?(e,t)=>lu(o(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>lu(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const o=pu(e,t,{message:n});if(o[0])throw o[0]}(e,this,t)}create(e,t){return hu(e,this,t)}is(e){return fu(e,this)}mask(e,t){return function(e,t,n){const o=pu(e,t,{coerce:!0,mask:!0,message:n});if(o[0])throw o[0];return o[1]}(e,this,t)}validate(e,t={}){return pu(e,this,t)}};function hu(e,t,n){const o=pu(e,t,{coerce:!0,message:n});if(o[0])throw o[0];return o[1]}function fu(e,t){return!pu(e,t)[0]}function pu(e,t,n={}){const o=uu(e,t,n),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(o);return i[0]?[new iu(i[0],function*(){for(const e of o)e[0]&&(yield e[0])}),void 0]:[void 0,i[1]]}function mu(e,t){return new du({type:e,schema:null,validator:t})}function wu(e){return new du({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,o]of t.entries())yield[n,o,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${su(e)}`})}function gu(){return mu("boolean",e=>"boolean"==typeof e)}function bu(e){return mu("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${su(t)}`)}function yu(e){const t=su(e),n=typeof e;return new du({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${su(n)}`})}function vu(e){return new du({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function Au(){return mu("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${su(e)}`)}function ku(e){return new du({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function xu(e,t){return new du({type:"record",schema:null,*entries(n){if(ru(n))for(const o in n){const i=n[o];yield[o,o,e],yield[o,i,t]}},validator:e=>au(e)||`Expected an object, but received: ${su(e)}`,coercer:e=>au(e)?{...e}:e})}function Tu(){return mu("string",e=>"string"==typeof e||`Expected a string, but received: ${su(e)}`)}function Eu(e){const t=mu("never",()=>!1);return new du({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const o=Math.max(e.length,n.length);for(let i=0;i<o;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${su(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function Cu(e){const t=Object.keys(e);return new du({type:"type",schema:e,*entries(n){if(ru(n))for(const o of t)yield[o,n[o],e[o]]},validator:e=>au(e)||`Expected an object, but received: ${su(e)}`,coercer:e=>au(e)?{...e}:e})}function Iu(e){const t=e.map(e=>e.type).join(" | ");return new du({type:"union",schema:null,coercer(t,n){for(const o of e){const[e,i]=o.validate(t,{coerce:!0,mask:n.mask});if(!e)return i}return t},validator(n,o){const i=[];for(const t of e){const[...e]=uu(n,t,o),[r]=e;if(!r[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${su(n)}`,...i]}})}function Su(){return mu("unknown",()=>!0)}function Nu(e,t,n){return new du({...e,coercer:(o,i)=>fu(o,t)?e.coercer(n(o,i),i):e.coercer(o,i)})}var Bu,Mu=new Uint8Array(16);function Ru(){if(!Bu&&!(Bu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bu(Mu)}const Pu=/^(?:[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;function Uu(e){return"string"==typeof e&&Pu.test(e)}for(var Ou,Lu,Du=[],Fu=0;Fu<256;++Fu)Du.push((Fu+256).toString(16).substr(1));function Hu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Du[e[t+0]]+Du[e[t+1]]+Du[e[t+2]]+Du[e[t+3]]+"-"+Du[e[t+4]]+Du[e[t+5]]+"-"+Du[e[t+6]]+Du[e[t+7]]+"-"+Du[e[t+8]]+Du[e[t+9]]+"-"+Du[e[t+10]]+Du[e[t+11]]+Du[e[t+12]]+Du[e[t+13]]+Du[e[t+14]]+Du[e[t+15]]).toLowerCase();if(!Uu(n))throw TypeError("Stringified UUID is invalid");return n}var qu=0,Vu=0;function zu(e){if(!Uu(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Wu(e,t,n){function o(e,o,i,r){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof o&&(o=zu(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(o),a.set(e,o.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){r=r||0;for(var s=0;s<16;++s)i[r+s]=a[s];return i}return Hu(a)}try{o.name=e}catch(i){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function ju(e){return 14+(e+64>>>9<<4)+1}function Gu(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ju(e,t,n,o,i,r){return Gu((a=Gu(Gu(t,e),Gu(o,r)))<<(s=i)|a>>>32-s,n);var a,s}function Yu(e,t,n,o,i,r,a){return Ju(t&n|~t&o,e,t,i,r,a)}function Xu(e,t,n,o,i,r,a){return Ju(t&o|n&~o,e,t,i,r,a)}function Qu(e,t,n,o,i,r,a){return Ju(t^n^o,e,t,i,r,a)}function Ku(e,t,n,o,i,r,a){return Ju(n^(t|~o),e,t,i,r,a)}var Zu=Wu("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,o="0123456789abcdef",i=0;i<n;i+=8){var r=e[i>>5]>>>i%32&255,a=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[ju(t)-1]=t;for(var n=1732584193,o=-271733879,i=-1732584194,r=271733878,a=0;a<e.length;a+=16){var s=n,c=o,l=i,u=r;n=Yu(n,o,i,r,e[a],7,-680876936),r=Yu(r,n,o,i,e[a+1],12,-389564586),i=Yu(i,r,n,o,e[a+2],17,606105819),o=Yu(o,i,r,n,e[a+3],22,-1044525330),n=Yu(n,o,i,r,e[a+4],7,-176418897),r=Yu(r,n,o,i,e[a+5],12,1200080426),i=Yu(i,r,n,o,e[a+6],17,-1473231341),o=Yu(o,i,r,n,e[a+7],22,-45705983),n=Yu(n,o,i,r,e[a+8],7,1770035416),r=Yu(r,n,o,i,e[a+9],12,-1958414417),i=Yu(i,r,n,o,e[a+10],17,-42063),o=Yu(o,i,r,n,e[a+11],22,-1990404162),n=Yu(n,o,i,r,e[a+12],7,1804603682),r=Yu(r,n,o,i,e[a+13],12,-40341101),i=Yu(i,r,n,o,e[a+14],17,-1502002290),n=Xu(n,o=Yu(o,i,r,n,e[a+15],22,1236535329),i,r,e[a+1],5,-165796510),r=Xu(r,n,o,i,e[a+6],9,-1069501632),i=Xu(i,r,n,o,e[a+11],14,643717713),o=Xu(o,i,r,n,e[a],20,-373897302),n=Xu(n,o,i,r,e[a+5],5,-701558691),r=Xu(r,n,o,i,e[a+10],9,38016083),i=Xu(i,r,n,o,e[a+15],14,-660478335),o=Xu(o,i,r,n,e[a+4],20,-405537848),n=Xu(n,o,i,r,e[a+9],5,568446438),r=Xu(r,n,o,i,e[a+14],9,-1019803690),i=Xu(i,r,n,o,e[a+3],14,-187363961),o=Xu(o,i,r,n,e[a+8],20,1163531501),n=Xu(n,o,i,r,e[a+13],5,-1444681467),r=Xu(r,n,o,i,e[a+2],9,-51403784),i=Xu(i,r,n,o,e[a+7],14,1735328473),n=Qu(n,o=Xu(o,i,r,n,e[a+12],20,-1926607734),i,r,e[a+5],4,-378558),r=Qu(r,n,o,i,e[a+8],11,-2022574463),i=Qu(i,r,n,o,e[a+11],16,1839030562),o=Qu(o,i,r,n,e[a+14],23,-35309556),n=Qu(n,o,i,r,e[a+1],4,-1530992060),r=Qu(r,n,o,i,e[a+4],11,1272893353),i=Qu(i,r,n,o,e[a+7],16,-155497632),o=Qu(o,i,r,n,e[a+10],23,-1094730640),n=Qu(n,o,i,r,e[a+13],4,681279174),r=Qu(r,n,o,i,e[a],11,-358537222),i=Qu(i,r,n,o,e[a+3],16,-722521979),o=Qu(o,i,r,n,e[a+6],23,76029189),n=Qu(n,o,i,r,e[a+9],4,-640364487),r=Qu(r,n,o,i,e[a+12],11,-421815835),i=Qu(i,r,n,o,e[a+15],16,530742520),n=Ku(n,o=Qu(o,i,r,n,e[a+2],23,-995338651),i,r,e[a],6,-198630844),r=Ku(r,n,o,i,e[a+7],10,1126891415),i=Ku(i,r,n,o,e[a+14],15,-1416354905),o=Ku(o,i,r,n,e[a+5],21,-57434055),n=Ku(n,o,i,r,e[a+12],6,1700485571),r=Ku(r,n,o,i,e[a+3],10,-1894986606),i=Ku(i,r,n,o,e[a+10],15,-1051523),o=Ku(o,i,r,n,e[a+1],21,-2054922799),n=Ku(n,o,i,r,e[a+8],6,1873313359),r=Ku(r,n,o,i,e[a+15],10,-30611744),i=Ku(i,r,n,o,e[a+6],15,-1560198380),o=Ku(o,i,r,n,e[a+13],21,1309151649),n=Ku(n,o,i,r,e[a+4],6,-145523070),r=Ku(r,n,o,i,e[a+11],10,-1120210379),i=Ku(i,r,n,o,e[a+2],15,718787259),o=Ku(o,i,r,n,e[a+9],21,-343485551),n=Gu(n,s),o=Gu(o,c),i=Gu(i,l),r=Gu(r,u)}return[n,o,i,r]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(ju(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))});function _u(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:case 3:return t^n^o;case 2:return t&n^t&o^n&o}}function $u(e,t){return e<<t|e>>>32-t}var ed=Wu("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var i=0;i<o.length;++i)e.push(o.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var r=e.length/4+2,a=Math.ceil(r/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var p=16;p<80;++p)h[p]=$u(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var m=n[0],w=n[1],g=n[2],b=n[3],y=n[4],v=0;v<80;++v){var A=Math.floor(v/20),k=$u(m,5)+_u(A,w,g,b)+y+t[A]+h[v]>>>0;y=b,b=g,g=$u(w,30)>>>0,w=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+w>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});const td=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:zu,stringify:Hu,v1:function(e,t,n){var o=t&&n||0,i=t||new Array(16),r=(e=e||{}).node||Ou,a=void 0!==e.clockseq?e.clockseq:Lu;if(null==r||null==a){var s=e.random||(e.rng||Ru)();null==r&&(r=Ou=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Lu=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Vu+1,u=c-qu+(l-Vu)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>qu)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");qu=c,Vu=l,Lu=a;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;i[o++]=d>>>24&255,i[o++]=d>>>16&255,i[o++]=d>>>8&255,i[o++]=255&d;var h=c/4294967296*1e4&268435455;i[o++]=h>>>8&255,i[o++]=255&h,i[o++]=h>>>24&15|16,i[o++]=h>>>16&255,i[o++]=a>>>8|128,i[o++]=255&a;for(var f=0;f<6;++f)i[o+f]=r[f];return t||Hu(i)},v3:Zu,v4:function(e,t,n){var o=(e=e||{}).random||(e.rng||Ru)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return Hu(o)},v5:ed,validate:Uu,version:function(e){if(!Uu(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})),nd=/* @__PURE__ */Li(td);var od,id,rd,ad;!function(){if(ad)return rd;ad=1;const e=nd.v4,t=function(){if(id)return od;id=1;const e=nd.v4;return od=function(t,n,o,i){if("string"!=typeof t)throw new TypeError(t+" must be a string");const r="number"==typeof(i=i||{}).version?i.version:2;if(1!==r&&2!==r)throw new TypeError(r+" must be 1 or 2");const a={method:t};if(2===r&&(a.jsonrpc="2.0"),n){if("object"!=typeof n&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");a.params=n}if(void 0===o){const t="function"==typeof i.generator?i.generator:function(){return e()};a.id=t(a,i)}else 2===r&&null===o?i.notificationIdNull&&(a.id=null):a.id=o;return a}}(),n=function(t,o){if(!(this instanceof n))return new n(t,o);o||(o={}),this.options={reviver:void 0!==o.reviver?o.reviver:null,replacer:void 0!==o.replacer?o.replacer:null,generator:void 0!==o.generator?o.generator:function(){return e()},version:void 0!==o.version?o.version:2,notificationIdNull:"boolean"==typeof o.notificationIdNull&&o.notificationIdNull},this.callServer=t};rd=n,n.prototype.request=function(e,n,o,i){const r=this;let a=null;const s=Array.isArray(e)&&"function"==typeof n;if(1===this.options.version&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&e&&"object"==typeof e&&"function"==typeof n)i=n,a=e;else{"function"==typeof o&&(i=o,o=void 0);const r="function"==typeof i;try{a=t(e,n,o,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(r)return void i(l);throw l}if(!r)return a}let c;try{c=JSON.stringify(a,this.options.replacer)}catch(l){return void i(l)}return this.callServer(c,function(e,t){r.Ae(e,t,i)}),a},n.prototype.Ae=function(e,t,n){if(e)return void n(e);if(!t)return void n();let o;try{o=JSON.parse(t,this.options.reviver)}catch(i){return void n(i)}if(3!==n.length)n(null,o);else{if(Array.isArray(o)){const e=function(e){return void 0!==e.error},t=function(t){return!e(t)};return void n(null,o.filter(e),o.filter(t))}n(null,o.error,o.result)}}}();var sd;function cd(e){try{return ar.ExtendedPoint.fromHex(e),!0}catch{return!1}}sd||(sd=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function r(e,t,o,r,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new i(o,r||e,a),c=n?n+t:t;return e.ke[c]?e.ke[c].fn?e.ke[c]=[e.ke[c],s]:e.ke[c].push(s):(e.ke[c]=s,e.xe++),e}function a(e,t){0===--e.xe?e.ke=new o:delete e.ke[t]}function s(){this.ke=new o,this.xe=0}Object.create&&(o.prototype=/* @__PURE__ */Object.create(null),(new o).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,o,i=[];if(0===this.xe)return i;for(o in e=this.ke)t.call(e,o)&&i.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,o=this.ke[t];if(!o)return[];if(o.fn)return[o.fn];for(var i=0,r=o.length,a=new Array(r);i<r;i++)a[i]=o[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,o=this.ke[t];return o?o.fn?1:o.length:0},s.prototype.emit=function(e,t,o,i,r,a){var s=n?n+e:e;if(!this.ke[s])return!1;var c,l,u=this.ke[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,o),!0;case 4:return u.fn.call(u.context,t,o,i),!0;case 5:return u.fn.call(u.context,t,o,i,r),!0;case 6:return u.fn.call(u.context,t,o,i,r,a),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,o);break;case 4:u[l].fn.call(u[l].context,t,o,i);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return r(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return r(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,o,i){var r=n?n+e:e;if(!this.ke[r])return this;if(!t)return a(this,r),this;var s=this.ke[r];if(s.fn)s.fn!==t||i&&!s.once||o&&s.context!==o||a(this,r);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||i&&!s[c].once||o&&s[c].context!==o)&&l.push(s[c]);l.length?this.ke[r]=1===l.length?l[0]:l:a(this,r)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this.ke[t]&&a(this,t)):(this.ke=new o,this.xe=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({exports:{}}));class ld{constructor(e){Object.assign(this,e)}encode(){return ji.Buffer.from(Or.serialize(ud,this))}static decode(e){return Or.deserialize(ud,this,e)}static decodeUnchecked(e){return Or.deserializeUnchecked(ud,this,e)}}const ud=/* @__PURE__ */new Map;var dd;let hd=1;class fd extends ld{constructor(e){if(super({}),this.Te=void 0,function(e){return void 0!==e.Te}(e))this.Te=e.Te;else{if("string"==typeof e){const t=vr.decode(e);if(32!=t.length)throw new Error("Invalid public key input");this.Te=new hr(t)}else this.Te=new hr(e);if(this.Te.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new fd(hd);return hd+=1,new fd(e.toBuffer())}equals(e){return this.Te.eq(e.Te)}toBase58(){return vr.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this.Te.toArrayLike(ji.Buffer);if(32===e.length)return e;const t=ji.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,n){const o=ji.Buffer.concat([e.toBuffer(),ji.Buffer.from(t),n.toBuffer()]),i=Mn(o);return new fd(i)}static createProgramAddressSync(e,t){let n=ji.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var t;n=ji.Buffer.concat([n,(t=e,ji.Buffer.isBuffer(t)?t:t instanceof Uint8Array?ji.Buffer.from(t.buffer,t.byteOffset,t.byteLength):ji.Buffer.from(t))])}),n=ji.Buffer.concat([n,t.toBuffer(),ji.Buffer.from("ProgramDerivedAddress")]);const o=Mn(n);if(cd(o))throw new Error("Invalid seeds, address must fall off the curve");return new fd(o)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let n,o=255;for(;0!=o;){try{const i=e.concat(ji.Buffer.from([o]));n=this.createProgramAddressSync(i,t)}catch(i){if(i instanceof TypeError)throw i;o--;continue}return[n,o]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return cd(new fd(e).toBytes())}}dd=fd,fd.default=new dd("11111111111111111111111111111111"),ud.set(fd,{kind:"struct",fields:[["_bn","u256"]]}),new fd("BPFLoader1111111111111111111111111111111111");const pd=(e="publicKey")=>Dr.blob(32,e),md=(e="string")=>{const t=Dr.struct([Dr.u32("length"),Dr.u32("lengthPadding"),Dr.blob(Dr.offset(Dr.u32(),-8),"chars")],e),n=t.decode.bind(t),o=t.encode.bind(t),i=t;return i.decode=(e,t)=>n(e,t).chars.toString(),i.encode=(e,t,n)=>{const i={chars:ji.Buffer.from(e,"utf8")};return o(i,t,n)},i.alloc=e=>Dr.u32().span+Dr.u32().span+ji.Buffer.from(e,"utf8").length,i};ji.Buffer.alloc(64).fill(0),new fd("SysvarC1ock11111111111111111111111111111111"),new fd("SysvarEpochSchedu1e111111111111111111111111"),new fd("Sysvar1nstructions1111111111111111111111111"),new fd("SysvarRecentB1ockHashes11111111111111111111"),new fd("SysvarRent111111111111111111111111111111111"),new fd("SysvarRewards111111111111111111111111111111"),new fd("SysvarS1otHashes111111111111111111111111111"),new fd("SysvarS1otHistory11111111111111111111111111"),new fd("SysvarStakeHistory1111111111111111111111111");const wd=Dr.nu64("lamportsPerSignature");function gd(e){const t=Dr.blob(8,e),n=t.decode.bind(t),o=t.encode.bind(t),i=t,r=ou();return i.decode=(e,t)=>{const o=n(e,t);return r.decode(o)},i.encode=(e,t,n)=>{const i=r.encode(e);return o(i,t,n)},i}Dr.struct([Dr.u32("version"),Dr.u32("state"),pd("authorizedPubkey"),pd("nonce"),Dr.struct([wd],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports"),Dr.ns64("space"),pd("programId")])},Assign:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("programId")])},Transfer:{index:2,layout:Dr.struct([Dr.u32("instruction"),gd("lamports")])},CreateWithSeed:{index:3,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),Dr.ns64("lamports"),Dr.ns64("space"),pd("programId")])},AdvanceNonceAccount:{index:4,layout:Dr.struct([Dr.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:Dr.struct([Dr.u32("instruction"),pd("authorized")])},AuthorizeNonceAccount:{index:7,layout:Dr.struct([Dr.u32("instruction"),pd("authorized")])},Allocate:{index:8,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("space")])},AllocateWithSeed:{index:9,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),Dr.ns64("space"),pd("programId")])},AssignWithSeed:{index:10,layout:Dr.struct([Dr.u32("instruction"),pd("base"),md("seed"),pd("programId")])},TransferWithSeed:{index:11,layout:Dr.struct([Dr.u32("instruction"),gd("lamports"),md("seed"),pd("programId")])},UpgradeNonceAccount:{index:12,layout:Dr.struct([Dr.u32("instruction")])}}),new fd("11111111111111111111111111111111"),new fd("BPFLoader2111111111111111111111111111111111"),Dr.struct([Dr.u32("typeIndex"),gd("deactivationSlot"),Dr.nu64("lastExtendedSlot"),Dr.u8("lastExtendedStartIndex"),Dr.u8(),Dr.seq(pd(),Dr.offset(Dr.u8(),-1),"authority")]);const bd=Nu(bu(fd),Tu(),e=>new fd(e)),yd=Eu([Tu(),yu("base64")]),vd=Nu(bu(ji.Buffer),yd,e=>ji.Buffer.from(e[0],"base64"));function Ad(e){return Iu([Cu({jsonrpc:yu("2.0"),id:Tu(),result:e}),Cu({jsonrpc:yu("2.0"),id:Tu(),error:Cu({code:Su(),message:Tu(),data:ku(mu("any",()=>!0))})})])}const kd=Ad(Su());function xd(e){return Nu(Ad(e),kd,t=>"error"in t?t:{...t,result:hu(t.result,e)})}function Td(e){return xd(Cu({context:Cu({slot:Au()}),value:e}))}function Ed(e){return Cu({context:Cu({slot:Au()}),value:e})}const Cd=Cu({foundation:Au(),foundationTerm:Au(),initial:Au(),taper:Au(),terminal:Au()});xd(wu(vu(Cu({epoch:Au(),effectiveSlot:Au(),amount:Au(),postBalance:Au(),commission:ku(vu(Au()))}))));const Id=wu(Cu({slot:Au(),prioritizationFee:Au()})),Sd=Cu({total:Au(),validator:Au(),foundation:Au(),epoch:Au()}),Nd=Cu({epoch:Au(),slotIndex:Au(),slotsInEpoch:Au(),absoluteSlot:Au(),blockHeight:ku(Au()),transactionCount:ku(Au())}),Bd=Cu({slotsPerEpoch:Au(),leaderScheduleSlotOffset:Au(),warmup:gu(),firstNormalEpoch:Au(),firstNormalSlot:Au()}),Md=xu(Tu(),wu(Au())),Rd=vu(Iu([Cu({}),Tu()])),Pd=Cu({err:Rd}),Ud=yu("receivedSignature");Cu({"solana-core":Tu(),"feature-set":ku(Au())});const Od=Cu({program:Tu(),programId:bd,parsed:Su()}),Ld=Cu({programId:bd,accounts:wu(bd),data:Tu()});Td(Cu({err:vu(Iu([Cu({}),Tu()])),logs:vu(wu(Tu())),accounts:ku(vu(wu(vu(Cu({executable:gu(),owner:Tu(),lamports:Au(),data:wu(Tu()),rentEpoch:ku(Au())}))))),unitsConsumed:ku(Au()),returnData:ku(vu(Cu({programId:Tu(),data:Eu([Tu(),yu("base64")])}))),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(Iu([Od,Ld]))}))))})),Td(Cu({byIdentity:xu(Tu(),wu(Au())),range:Cu({firstSlot:Au(),lastSlot:Au()})})),xd(Cd),xd(Sd),xd(Id),xd(Nd),xd(Bd),xd(Md),xd(Au()),Td(Cu({total:Au(),circulating:Au(),nonCirculating:Au(),nonCirculatingAccounts:wu(bd)}));const Dd=Cu({amount:Tu(),uiAmount:vu(Au()),decimals:Au(),uiAmountString:ku(Tu())});Td(wu(Cu({address:bd,amount:Tu(),uiAmount:vu(Au()),decimals:Au(),uiAmountString:ku(Tu())}))),Td(wu(Cu({pubkey:bd,account:Cu({executable:gu(),owner:bd,lamports:Au(),data:vd,rentEpoch:Au()})})));const Fd=Cu({program:Tu(),parsed:Su(),space:Au()});Td(wu(Cu({pubkey:bd,account:Cu({executable:gu(),owner:bd,lamports:Au(),data:Fd,rentEpoch:Au()})}))),Td(wu(Cu({lamports:Au(),address:bd})));const Hd=Cu({executable:gu(),owner:bd,lamports:Au(),data:vd,rentEpoch:Au()});Cu({pubkey:bd,account:Hd});const qd=Nu(Iu([bu(ji.Buffer),Fd]),Iu([yd,Fd]),e=>Array.isArray(e)?hu(e,vd):e),Vd=Cu({executable:gu(),owner:bd,lamports:Au(),data:qd,rentEpoch:Au()});Cu({pubkey:bd,account:Vd}),Cu({state:Iu([yu("active"),yu("inactive"),yu("activating"),yu("deactivating")]),active:Au(),inactive:Au()}),xd(wu(Cu({signature:Tu(),slot:Au(),err:Rd,memo:vu(Tu()),blockTime:ku(vu(Au()))}))),xd(wu(Cu({signature:Tu(),slot:Au(),err:Rd,memo:vu(Tu()),blockTime:ku(vu(Au()))}))),Cu({subscription:Au(),result:Ed(Hd)});const zd=Cu({pubkey:bd,account:Hd});Cu({subscription:Au(),result:Ed(zd)});const Wd=Cu({parent:Au(),slot:Au(),root:Au()});Cu({subscription:Au(),result:Wd});const jd=Iu([Cu({type:Iu([yu("firstShredReceived"),yu("completed"),yu("optimisticConfirmation"),yu("root")]),slot:Au(),timestamp:Au()}),Cu({type:yu("createdBank"),parent:Au(),slot:Au(),timestamp:Au()}),Cu({type:yu("frozen"),slot:Au(),timestamp:Au(),stats:Cu({numTransactionEntries:Au(),numSuccessfulTransactions:Au(),numFailedTransactions:Au(),maxTransactionsPerEntry:Au()})}),Cu({type:yu("dead"),slot:Au(),timestamp:Au(),err:Tu()})]);Cu({subscription:Au(),result:jd}),Cu({subscription:Au(),result:Ed(Iu([Pd,Ud]))}),Cu({subscription:Au(),result:Au()}),Cu({pubkey:Tu(),gossip:vu(Tu()),tpu:vu(Tu()),rpc:vu(Tu()),version:vu(Tu())});const Gd=Cu({votePubkey:Tu(),nodePubkey:Tu(),activatedStake:Au(),epochVoteAccount:gu(),epochCredits:wu(Eu([Au(),Au(),Au()])),commission:Au(),lastVote:Au(),rootSlot:vu(Au())});xd(Cu({current:wu(Gd),delinquent:wu(Gd)}));const Jd=Iu([yu("processed"),yu("confirmed"),yu("finalized")]),Yd=Cu({slot:Au(),confirmations:vu(Au()),err:Rd,confirmationStatus:ku(Jd)});Td(wu(vu(Yd))),xd(Au());const Xd=Cu({accountKey:bd,writableIndexes:wu(Au()),readonlyIndexes:wu(Au())}),Qd=Cu({signatures:wu(Tu()),message:Cu({accountKeys:wu(Tu()),header:Cu({numRequiredSignatures:Au(),numReadonlySignedAccounts:Au(),numReadonlyUnsignedAccounts:Au()}),instructions:wu(Cu({accounts:wu(Au()),data:Tu(),programIdIndex:Au()})),recentBlockhash:Tu(),addressTableLookups:ku(wu(Xd))})}),Kd=Cu({pubkey:bd,signer:gu(),writable:gu(),source:ku(Iu([yu("transaction"),yu("lookupTable")]))}),Zd=Cu({accountKeys:wu(Kd),signatures:wu(Tu())}),_d=Cu({parsed:Su(),program:Tu(),programId:bd}),$d=Cu({accounts:wu(bd),data:Tu(),programId:bd}),eh=Nu(Iu([$d,_d]),Iu([Cu({parsed:Su(),program:Tu(),programId:Tu()}),Cu({accounts:wu(Tu()),data:Tu(),programId:Tu()})]),e=>hu(e,"accounts"in e?$d:_d)),th=Cu({signatures:wu(Tu()),message:Cu({accountKeys:wu(Kd),instructions:wu(eh),recentBlockhash:Tu(),addressTableLookups:ku(vu(wu(Xd)))})}),nh=Cu({accountIndex:Au(),mint:Tu(),owner:ku(Tu()),programId:ku(Tu()),uiTokenAmount:Dd}),oh=Cu({writable:wu(bd),readonly:wu(bd)}),ih=Cu({err:Rd,fee:Au(),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(Cu({accounts:wu(Au()),data:Tu(),programIdIndex:Au()}))})))),preBalances:wu(Au()),postBalances:wu(Au()),logMessages:ku(vu(wu(Tu()))),preTokenBalances:ku(vu(wu(nh))),postTokenBalances:ku(vu(wu(nh))),loadedAddresses:ku(oh),computeUnitsConsumed:ku(Au()),costUnits:ku(Au())}),rh=Cu({err:Rd,fee:Au(),innerInstructions:ku(vu(wu(Cu({index:Au(),instructions:wu(eh)})))),preBalances:wu(Au()),postBalances:wu(Au()),logMessages:ku(vu(wu(Tu()))),preTokenBalances:ku(vu(wu(nh))),postTokenBalances:ku(vu(wu(nh))),loadedAddresses:ku(oh),computeUnitsConsumed:ku(Au()),costUnits:ku(Au())}),ah=Iu([yu(0),yu("legacy")]),sh=Cu({pubkey:Tu(),lamports:Au(),postBalance:vu(Au()),rewardType:vu(Tu()),commission:ku(vu(Au()))});xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Qd,meta:vu(ih),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Zd,meta:vu(ih),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:th,meta:vu(rh),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Zd,meta:vu(rh),version:ku(ah)})),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),rewards:ku(wu(sh)),blockTime:vu(Au()),blockHeight:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),transactions:wu(Cu({transaction:Qd,meta:vu(ih)})),rewards:ku(wu(sh)),blockTime:vu(Au())}))),xd(vu(Cu({blockhash:Tu(),previousBlockhash:Tu(),parentSlot:Au(),signatures:wu(Tu()),blockTime:vu(Au())}))),xd(vu(Cu({slot:Au(),meta:vu(ih),blockTime:ku(vu(Au())),transaction:Qd,version:ku(ah)}))),xd(vu(Cu({slot:Au(),transaction:th,meta:vu(rh),blockTime:ku(vu(Au())),version:ku(ah)}))),Td(Cu({blockhash:Tu(),lastValidBlockHeight:Au()})),Td(gu()),xd(wu(Cu({slot:Au(),numTransactions:Au(),numSlots:Au(),samplePeriodSecs:Au()}))),Td(vu(Cu({feeCalculator:Cu({lamportsPerSignature:Au()})}))),xd(Tu()),xd(Tu());const ch=Cu({err:Rd,logs:wu(Tu()),signature:Tu()});var lh;Cu({result:Ed(ch),subscription:Au()}),Object.freeze({CreateLookupTable:{index:0,layout:Dr.struct([Dr.u32("instruction"),gd("recentSlot"),Dr.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:Dr.struct([Dr.u32("instruction")])},ExtendLookupTable:{index:2,layout:Dr.struct([Dr.u32("instruction"),gd(),Dr.seq(pd(),Dr.offset(Dr.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Dr.struct([Dr.u32("instruction")])},CloseLookupTable:{index:4,layout:Dr.struct([Dr.u32("instruction")])}}),new fd("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("units"),Dr.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:Dr.struct([Dr.u8("instruction"),Dr.u32("units")])},SetComputeUnitPrice:{index:3,layout:Dr.struct([Dr.u8("instruction"),gd("microLamports")])}}),new fd("ComputeBudget111111111111111111111111111111"),Dr.struct([Dr.u8("numSignatures"),Dr.u8("padding"),Dr.u16("signatureOffset"),Dr.u16("signatureInstructionIndex"),Dr.u16("publicKeyOffset"),Dr.u16("publicKeyInstructionIndex"),Dr.u16("messageDataOffset"),Dr.u16("messageDataSize"),Dr.u16("messageInstructionIndex")]),new fd("Ed25519SigVerify111111111111111111111111111"),bi.utils.isValidPrivateKey,Dr.struct([Dr.u8("numSignatures"),Dr.u16("signatureOffset"),Dr.u8("signatureInstructionIndex"),Dr.u16("ethAddressOffset"),Dr.u8("ethAddressInstructionIndex"),Dr.u16("messageDataOffset"),Dr.u16("messageDataSize"),Dr.u8("messageInstructionIndex"),Dr.blob(20,"ethAddress"),Dr.blob(64,"signature"),Dr.u8("recoveryId")]),new fd("KeccakSecp256k11111111111111111111111111111"),new fd("StakeConfig11111111111111111111111111111111");class uh{constructor(e,t,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=n}}lh=uh,uh.default=new lh(0,0,fd.default),Object.freeze({Initialize:{index:0,layout:Dr.struct([Dr.u32("instruction"),((e="authorized")=>Dr.struct([pd("staker"),pd("withdrawer")],e))(),((e="lockup")=>Dr.struct([Dr.ns64("unixTimestamp"),Dr.ns64("epoch"),pd("custodian")],e))()])},Authorize:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:Dr.struct([Dr.u32("instruction")])},Split:{index:3,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},Withdraw:{index:4,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},Deactivate:{index:5,layout:Dr.struct([Dr.u32("instruction")])},Merge:{index:7,layout:Dr.struct([Dr.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("stakeAuthorizationType"),md("authoritySeed"),pd("authorityOwner")])}}),new fd("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:Dr.struct([Dr.u32("instruction"),((e="voteInit")=>Dr.struct([pd("nodePubkey"),pd("authorizedVoter"),pd("authorizedWithdrawer"),Dr.u8("commission")],e))()])},Authorize:{index:1,layout:Dr.struct([Dr.u32("instruction"),pd("newAuthorized"),Dr.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:Dr.struct([Dr.u32("instruction"),Dr.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:Dr.struct([Dr.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:Dr.struct([Dr.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>Dr.struct([Dr.u32("voteAuthorizationType"),pd("currentAuthorityDerivedKeyOwnerPubkey"),md("currentAuthorityDerivedKeySeed"),pd("newAuthorized")],e))()])}}),new fd("Vote111111111111111111111111111111111111111"),new fd("Va1idator1nfo111111111111111111111111111111"),Cu({name:Tu(),website:ku(Tu()),details:ku(Tu()),iconUrl:ku(Tu()),keybaseUsername:ku(Tu())}),new fd("Vote111111111111111111111111111111111111111"),Dr.struct([pd("nodePubkey"),pd("authorizedWithdrawer"),Dr.u8("commission"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("slot"),Dr.u32("confirmationCount")]),Dr.offset(Dr.u32(),-8),"votes"),Dr.u8("rootSlotValid"),Dr.nu64("rootSlot"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("epoch"),pd("authorizedVoter")]),Dr.offset(Dr.u32(),-8),"authorizedVoters"),Dr.struct([Dr.seq(Dr.struct([pd("authorizedPubkey"),Dr.nu64("epochOfLastAuthorizedSwitch"),Dr.nu64("targetEpoch")]),32,"buf"),Dr.nu64("idx"),Dr.u8("isEmpty")],"priorVoters"),Dr.nu64(),Dr.seq(Dr.struct([Dr.nu64("epoch"),Dr.nu64("credits"),Dr.nu64("prevCredits")]),Dr.offset(Dr.u32(),-8),"epochCredits"),Dr.struct([Dr.nu64("slot"),Dr.nu64("timestamp")],"lastTimestamp")]);const dh=e=>{const t=/* @__PURE__ */new Date,n=new Date(t);n.setDate(n.getDate()-1);const o=new Date(e);return o.setHours(0,0,0,0),t.setHours(0,0,0,0),n.setHours(0,0,0,0),o.getTime()===t.getTime()?"Today":o.getTime()===n.getTime()?"Yesterday":o.toLocaleDateString("en-US",{month:"short",day:"numeric",year:o.getFullYear()!==t.getFullYear()?"numeric":void 0})},hh=e=>new Promise(t=>setTimeout(t,e||0)),fh=(e,t=5,n=5)=>(e=e||"",e?.length<=t+n?e:`${e.substr(0,t)}...${e.substr(e.length-n,n)}`),ph=e=>{if(!e)return"";const t=Pi[e];return t?t.chainTypeMoralis:""},mh=e=>{if(!e)return"";const t=Pi[e];return t?t.chainType:""},wh={getItem(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,t){if("undefined"!=typeof window)try{window.localStorage.setItem(e,t)}catch{}},removeItem(e){if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}},get length(){if("undefined"==typeof window)return 0;try{return window.localStorage.length}catch{return 0}},key(e){if("undefined"==typeof window)return null;try{return window.localStorage.key(e)}catch{return null}}};function gh(e){if(lt(e))return!0;try{return new fd(e),!0}catch{return!1}}function bh(){const e=String("keyring-chatbot-agent-sdk-test").trim().replace(/^['"]|['"]$/g,"").replace(/^['"]|['"]$/g,"").replace(/[;,]$/,"");return b[e||"keyring-chatbot-agent"]||b["keyring-chatbot-agent"]}const yh=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,ellipsisAddress:fh,formatDate:dh,getChainType:mh,getChainTypeMoralis:ph,getDataPackage:bh,isValidAddress:gh,safeStorage:wh,sleep:hh},Symbol.toStringTag,{value:"Module"})),vh=s(void 0),Ah=()=>{const e=c(vh);if(!e)throw new Error("useConnect must be used within ConnectProvider");return{...e,chainData:Pi[e?.account?.chainId]||void 0,chainId:e.account?.chainId||void 0,chainType:mh(e.account?.chainId||void 0),chainTypeMoralis:ph(e.account?.chainId||void 0),isChainSupported:!!Pi[e?.account?.chainId]?.isSupported||!1}},kh=({children:t,initialAccount:n})=>/* @__PURE__ */e(vh.Provider,{value:{account:n||null},children:t}),xh=({address:o,chainId:r})=>{const[s,c]=i(!1),{isChainSupported:l}=Ah(),{t:u}=w(),d=a(()=>{if(!o)return;const e=o,t=()=>{c(!0),setTimeout(()=>c(!1),2e3)};try{navigator.clipboard.writeText(e).then(t).catch(()=>{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()})}catch{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()}},[o]);/* @__PURE__ */
5
5
  return e(t,{children:gh(o||"")&&/* @__PURE__ */n("div",{className:"chat-user-info",children:[
6
6
  /* @__PURE__ */n("span",{className:"user-wallet",children:[
7
7
  /* @__PURE__ */n("span",{className:"mr-2",children:[Pi[r]?.customName||Pi[r]?.name||`Chain ${r}`,":"]}),