@voidaisdk/bridge-sdk 0.0.2 → 0.0.3

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,2 +1,2 @@
1
1
  /*! For license information please see voidai-sdk.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VoidAISDK=t():e.VoidAISDK=t()}(this,()=>(()=>{"use strict";var e={44:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=function(e,t){const{abi:r,args:a,bytecode:i,...s}=t,c=(0,n.encodeDeployData)({abi:r,args:a,bytecode:i});return(0,o.sendTransaction)(e,{...s,...s.authorizationList?{to:null}:{},data:c})};const n=r(4687),o=r(6687)},48:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEventLogs=function(e){const{abi:t,args:r,logs:c,strict:u=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return c.map(e=>{const c=t.filter(t=>"event"===t.type&&e.topics[0]===(0,i.toEventSelector)(t));if(0===c.length)return null;let l,f;for(const t of c)try{l=(0,s.decodeEventLog)({...e,abi:[t],strict:!0}),f=t;break}catch{}if(!l&&!u){f=c[0];try{l=(0,s.decodeEventLog)({...e,abi:[f],strict:!1})}catch{const t=f.inputs?.some(e=>!("name"in e&&e.name));return{...e,args:t?[]:{},eventName:f.name}}}return l&&f?d&&!d.includes(l.eventName)?null:function(e){const{args:t,inputs:r,matchArgs:i}=e;if(!i)return!0;if(!t)return!1;function s(e,t,r){try{return"address"===e.type?(0,n.isAddressEqual)(t,r):"string"===e.type||"bytes"===e.type?(0,a.keccak256)((0,o.toBytes)(t))===r:t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(i)?i.every((e,n)=>{if(null==e)return!0;const o=r[n];return!!o&&(Array.isArray(e)?e:[e]).some(e=>s(o,e,t[n]))}):"object"==typeof t&&!Array.isArray(t)&&"object"==typeof i&&!Array.isArray(i)&&Object.entries(i).every(([e,n])=>{if(null==n)return!0;const o=r.find(t=>t.name===e);return!!o&&(Array.isArray(n)?n:[n]).some(r=>s(o,r,t[e]))})}({args:l.args,inputs:f.inputs,matchArgs:r})?{...l,...e}:null:null}).filter(Boolean)};const n=r(4324),o=r(7655),a=r(3625),i=r(7144),s=r(8182)},79:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=async function(e){return e.request({method:`${e.mode}_dumpState`})}},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=function(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}},102:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc6492Signature=function(e){if(!(0,o.isErc6492Signature)(e))return{signature:e};const[t,r,a]=(0,n.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],e);return{address:t,data:r,signature:a}};const n=r(4612),o=r(2803)},120:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeStateMapping=c,t.serializeAccountStateOverride=u,t.serializeStateOverride=function(e){if(!e)return;const t={};for(const{address:r,...o}of e){if(!(0,i.isAddress)(r,{strict:!1}))throw new n.InvalidAddressError({address:r});if(t[r])throw new a.AccountStateConflictError({address:r});t[r]=u(o)}return t};const n=r(6311),o=r(5375),a=r(6254),i=r(9742),s=r(985);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new o.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new o.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function u(e){const{balance:t,nonce:r,state:n,stateDiff:o,code:i}=e,u={};if(void 0!==i&&(u.code=i),void 0!==t&&(u.balance=(0,s.numberToHex)(t)),void 0!==r&&(u.nonce=(0,s.numberToHex)(r)),void 0!==n&&(u.state=c(n)),void 0!==o){if(u.state)throw new a.StateAssignmentConflictError;u.stateDiff=c(o)}return u}},138:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForCallsStatusTimeoutError=void 0,t.waitForCallsStatus=async function(e,t){const{id:r,pollingInterval:n=e.pollingInterval,status:p=({statusCode:e})=>200===e||e>=300,retryCount:m=4,retryDelay:b=({count:e})=>200*(1<<e),timeout:y=6e4,throwOnFailure:h=!1}=t,g=(0,d.stringify)(["waitForCallsStatus",e.uid,r]),{promise:v,resolve:E,reject:w}=(0,c.withResolvers)();let x;const P=(0,i.observe)(g,{resolve:E,reject:w},t=>{const i=(0,s.poll)(async()=>{const n=e=>{clearTimeout(x),i(),e(),P()};try{const i=await(0,u.withRetry)(async()=>{const t=await(0,a.getAction)(e,l.getCallsStatus,"getCallsStatus")({id:r});if(h&&"failure"===t.status)throw new o.BundleFailedError(t);return t},{retryCount:m,delay:b});if(!p(i))return;n(()=>t.resolve(i))}catch(e){n(()=>t.reject(e))}},{interval:n,emitOnBegin:!0});return i});return x=y?setTimeout(()=>{P(),clearTimeout(x),w(new f({id:r}))},y):void 0,await v};const n=r(6246),o=r(2034),a=r(6207),i=r(2093),s=r(3940),c=r(2344),u=r(1525),d=r(4900),l=r(230);class f extends n.BaseError{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}t.WaitForCallsStatusTimeoutError=f},155:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCompactSignature=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(t)).toCompactHex()}`};const n=r(8510),o=r(294)},181:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=async function(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}},230:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallsStatus=async function(e,t){const{atomic:r=!1,chainId:c,receipts:u,version:d="2.0.0",...l}=await async function(t){if(t.endsWith(s.fallbackMagicIdentifier.slice(2))){const r=(0,o.trim)((0,n.sliceHex)(t,-64,-32)),i=(0,n.sliceHex)(t,0,-64).slice(2).match(/.{1,64}/g),c=await Promise.all(i.map(t=>s.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),u=c.some(e=>null===e)?100:c.every(e=>"0x1"===e?.status)?200:c.every(e=>"0x0"===e?.status)?500:600;return{atomic:!1,chainId:(0,a.hexToNumber)(r),receipts:c.filter(Boolean),status:u,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}(t.id),[f,p]=(()=>{const e=l.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...l,atomic:r,chainId:c?(0,a.hexToNumber)(c):void 0,receipts:u?.map(e=>({...e,blockNumber:(0,a.hexToBigInt)(e.blockNumber),gasUsed:(0,a.hexToBigInt)(e.gasUsed),status:i.receiptStatuses[e.status]}))??[],statusCode:p,status:f,version:d}};const n=r(7688),o=r(7488),a=r(294),i=r(4537),s=r(8018)},233:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidDecimalNumberError=void 0;const n=r(6246);class o extends n.BaseError{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}t.InvalidDecimalNumberError=o},253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateBlocks=async function(e,t){const{blockNumber:r,blockTag:v=e.experimental_blockTag??"latest",blocks:E,returnFullTransactions:w,traceTransfers:x,validation:P}=t;try{const t=[];for(const e of E){const r=e.blockOverrides?n.toRpc(e.blockOverrides):void 0,a=e.calls.map(e=>{const t=e,r=t.account?(0,o.parseAccount)(t.account):void 0,n=t.abi?(0,u.encodeFunctionData)(t):t.data,a={...t,account:r,data:t.dataSuffix?(0,d.concat)([n||"0x",t.dataSuffix]):n,from:t.from??r?.address};return(0,g.assertRequest)(a),(0,y.formatTransactionRequest)(a)}),i=e.stateOverrides?(0,h.serializeStateOverride)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:a,stateOverrides:i})}const s=("bigint"==typeof r?(0,l.numberToHex)(r):void 0)||v;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:w,traceTransfers:x,validation:P},s]})).map((e,t)=>({...(0,m.formatBlock)(e),calls:e.calls.map((e,r)=>{const{abi:n,args:o,functionName:s,to:u}=E[t].calls[r],d=e.error?.data??e.returnData,l=BigInt(e.gasUsed),p=e.logs?.map(e=>(0,b.formatLog)(e)),m="0x1"===e.status?"success":"failure",y=n&&"success"===m&&"0x"!==d?(0,c.decodeFunctionResult)({abi:n,data:d,functionName:s}):null,h=(()=>{if("success"===m)return;let t;return"0x"===e.error?.data?t=new a.AbiDecodingZeroDataError:e.error&&(t=new i.RawContractError(e.error)),t?(0,f.getContractError)(t,{abi:n??[],address:u??"0x",args:o,functionName:s??"<unknown>"}):void 0})();return{data:d,gasUsed:l,logs:p,status:m,..."success"===m?{result:y}:{error:h}}})}))}catch(e){const t=e,r=(0,p.getNodeError)(t,{});if(r instanceof s.UnknownNodeError)throw t;throw r}};const n=r(5709),o=r(9006),a=r(6953),i=r(7677),s=r(2731),c=r(7541),u=r(6144),d=r(6776),l=r(985),f=r(6173),p=r(6339),m=r(8900),b=r(95),y=r(4712),h=r(120),g=r(4969)},294:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=s,t.fromHex=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?d(e,r):"bigint"===n?c(e,r):"string"===n?l(e,r):"boolean"===n?u(e,r):(0,i.hexToBytes)(e,r)},t.hexToBigInt=c,t.hexToBool=u,t.hexToNumber=d,t.hexToString=l;const n=r(5366),o=r(2285),a=r(7488),i=r(7655);function s(e,{size:t}){if((0,o.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,o.size)(e),maxSize:t})}function c(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const o=(e.length-2)/2;return n<=(1n<<8n*BigInt(o)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function u(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r)),"0x00"===(0,a.trim)(r))return!1;if("0x01"===(0,a.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function d(e,t={}){const r=c(e,t),o=Number(r);if(!Number.isSafeInteger(o))throw new n.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return o}function l(e,t={}){let r=(0,i.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventHash=void 0;var n=r(3239);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},347:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,o.keccak_256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.ripemd160=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,o=(0,n.ripemd160)(i.from(e));return"Bytes"===r?o:s.fromBytes(o)},t.sha256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,a.sha256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.validate=function(e){return s.validate(e)&&32===s.size(e)};const n=r(3238),o=r(2955),a=r(2623),i=r(3516),s=r(9274)},378:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=function(e){const{abi:t,eventName:r,args:o}=e;let a=t[0];if(r){const e=(0,d.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiEventNotFoundError(r,{docsPath:l});a=e}if("event"!==a.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:l});const i=(0,u.formatAbiItem)(a),c=(0,s.toEventSelector)(i);let p=[];if(o&&"inputs"in a){const e=a.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(o)?o:Object.values(o).length>0?e?.map(e=>o[e.name])??[]:[];t.length>0&&(p=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,o)=>f({param:e,value:t[r][o]})):void 0!==t[r]&&null!==t[r]?f({param:e,value:t[r]}):null)??[])}return[c,...p]};const n=r(6953),o=r(6861),a=r(7655),i=r(3625),s=r(7144),c=r(2732),u=r(4520),d=r(775),l="/docs/contract/encodeEventTopics";function f({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,i.keccak256)((0,a.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new o.FilterTypeNotSupportedError(e.type);return(0,c.encodeAbiParameters)([e],[t])}},405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEip712Domain=async function(e,t){const{address:r,factory:s,factoryData:c}=t;try{const[t,n,u,d,l,f,p]=await(0,o.getAction)(e,a.readContract,"readContract")({abi:i,address:r,functionName:"eip712Domain",factory:s,factoryData:c});return{domain:{name:n,version:u,chainId:Number(d),verifyingContract:l,salt:f},extensions:p,fields:t}}catch(e){const t=e;if("ContractFunctionExecutionError"===t.name&&"ContractFunctionZeroDataError"===t.cause.name)throw new n.Eip712DomainNotFoundError({address:r});throw t}};const n=r(5339),o=r(6207),a=r(5275),i=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}]},436:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VoidAIBridgeClient=void 0;const o=n(r(6425));t.VoidAIBridgeClient=class{constructor(e){this.validatedApiKeyData=null,this.accessToken=null,this.config=e,this.client=o.default.create({timeout:1e4,headers:{"Content-Type":"application/json"}}),this.ready=this.authenticate().then(()=>{})}async authenticate(){try{const e=await this.login();this.setAccessToken(e),this.validatedApiKeyData=this.tryDecodeTokenToValidationData(e)}catch(e){try{await this.validateApiKey()}catch(t){throw e}}}setAccessToken(e){this.accessToken=e,this.client.defaults.headers.common.Authorization=`Bearer ${e}`}getAccessToken(){return this.accessToken}getLoginUrl(){return`${this.config.getBaseUrl().replace(/\/$/,"")}/api/v1/auth/login`}getBridgeContractAddress(){return this.config.bridgeContractAddress}async login(){const e=this.getLoginUrl(),t={apiKey:this.config.apiKey,...this.config.secretKey?{secretKey:this.config.secretKey}:{}};try{const r=await o.default.post(e,t,{headers:{"Content-Type":"application/json"},timeout:1e4});if(r.data&&r.data.success&&r.data.accessToken)return r.data.accessToken;const n=r.data;throw new Error(n?.error?.message||n?.message||"Failed to login")}catch(e){if(o.default.isAxiosError(e)){const t=e.response?.data,r=t?.error?.message||t?.message||e.message||"Failed to login";throw new Error(r)}throw e}}tryDecodeTokenToValidationData(e){try{const t=e.split(".");if(t.length<2)return null;const r=t[1],n=this.base64UrlDecode(r),o=JSON.parse(n);return o?.keyId&&o?.name?{keyId:String(o.keyId),tenantId:String(o.sub||o.id||""),name:String(o.name)}:null}catch{return null}}base64UrlDecode(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4,n=r?t+"=".repeat(4-r):t;return"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("utf8"):atob(n)}async validateApiKey(){try{const e=this.getValidationUrl(),t=await o.default.get(e,{headers:{"api-key":this.config.apiKey},timeout:1e4});if(t.data.success)return this.validatedApiKeyData=t.data.data,t.data.data;{const e=new Error(t.data.error.message);throw e.code=t.data.error.code,e}}catch(e){if(this.validatedApiKeyData=null,o.default.isAxiosError(e)){if(401===e.response?.status){const t=e.response.data,r=new Error(t.error?.message||"API key is invalid or inactive");throw r.code=t.error?.code||"INVALID_API_KEY",r}throw new Error(`Failed to validate API key: ${e.message}`)}throw e}}getValidationUrl(){return`${this.config.getBaseUrl().replace(/\/$/,"")}/api/v1/auth/validate-api-key`}getValidatedApiKeyData(){return this.validatedApiKeyData}getUrl(e){return`${this.config.getBaseUrl().replace(/\/$/,"")}/${e.replace(/^\//,"")}`}async get(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.get(n,{params:t})).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.get(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async post(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.post(n,t)).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.post(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async delete(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.delete(n,{params:t})).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.delete(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async patch(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.patch(n,t)).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.patch(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async bridgeSwap(e){return this.post("api/v1/bridge/swap",e)}async routeTransaction(e){const t={...e,amount:String(e.amount)};return this.post("api/v1/bridge/route-transaction",t)}async cancelCcip(e){const t={operationType:e.operationType,fromToken:e.fromToken,toToken:e.toToken,uuid:e.uuid};return this.delete("api/v1/bridge/cancel-ccip",t)}async cancelRouterSwap(e){const t={uuid:e.uuid};return this.delete("api/v1/bridge/cancel-router-swap",t)}async cancelBridgeSwap(e){return this.patch("api/v1/bridge/swap/cancel",e)}async getApiTransactions(e=1,t=20){const r={page:String(e),limit:String(t)};return this.get("api/v1/bridge/api-transactions",r)}async validateBurn(e){return this.post("api/v1/bridge/validate-burn",e)}async confirmCcipTransaction(e){const t=`api/v1/bridge/transactions/${encodeURIComponent(e.transactionId)}/tx`,r={txnHash:e.txnHash,operationType:e.operationType,txnStatus:e.txnStatus};return this.patch(t,r)}async getSupportedChains(e){const t={};void 0!==e?.isActive&&(t.is_active=String(e.isActive)),void 0!==e?.isCcipSupported&&(t.is_ccip_supported=String(e.isCcipSupported)),void 0!==e?.chainId&&(t.chain_id=e.chainId);const r=await this.get("api/v1/chain/chains",t);if(!r.success||!r.data)throw new Error(r.message||"Failed to fetch chains");return r.data.chains}async getAssetList(e){const t=await this.get("api/v1/asset/assets");if(!t.success||!t.data)throw new Error(t.message||"Failed to fetch assets");let r=t.data.assets;return void 0!==e&&(r=r.filter(t=>t.chainId===e)),r}async getBridgeFeeEstimate(e){const t={fromToken:e.fromToken,toToken:e.toToken,amount:String(e.amount)};return this.get("api/v1/bridge/call-fee",t)}async getRouterSwapFeeEstimate(e){const t={originAssetId:String(e.originAssetId),destinationAssetId:String(e.destinationAssetId),amount:String(e.amount),operationType:e.operationType,toAddress:e.toAddress};return this.get("api/v1/router-swap/call-fee",t)}handleError(e){if(o.default.isAxiosError(e)){const t=e.response?.status,r=e.response?.data;let n=r?.error?.message||r?.message||("string"==typeof r?.error?r.error:void 0)||(!1===r?.success&&r?.message?r.message:void 0);401!==t||"Unauthorized"!==n&&401!==r?.statusCode&&"Unauthorized"!==r?.message||(n="Session expired or unauthorized. Please verify your API key/secret and try again.");const o=n||e.message||(t?`Request failed with status ${t}`:"Request failed");throw new Error(o)}throw new Error(e?.message||"Unexpected error")}}},449:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:o=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${o&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`};const n=r(4900)},498:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=async function(e,t){const{account:r=e.account,domain:i,message:s,primaryType:c}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const u=(0,n.parseAccount)(r),d={EIP712Domain:(0,a.getTypesForEIP712Domain)({domain:i}),...t.types};if((0,a.validateTypedData)({domain:i,message:s,primaryType:c,types:d}),u.signTypedData)return u.signTypedData({domain:i,message:s,primaryType:c,types:d});const l=(0,a.serializeTypedData)({domain:i,message:s,primaryType:c,types:d});return e.request({method:"eth_signTypedData_v4",params:[u.address,l]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(8377)},527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc8010Signature=function(e){return n.SignatureErc8010.validate(e)};const n=r(2873)},552:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}},570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BittensorWallet=void 0,t.BittensorWallet=class{constructor(){this.extension=null,this.account=null,this.extensionName=null}async connect(e){if("undefined"==typeof window)throw new Error("BittensorWallet: Browser environment required for wallet connection");if(void 0===window.injectedWeb3)throw new Error("No compatible wallet extension found. Please install Talisman, Subwallet, or Polkadot.js extension.");const t=window.injectedWeb3,r=["talisman","subwallet-js","polkadot-js"];let n,o,a=null,i="";if(e&&t[e])a=t[e],i=e;else{for(const e of r)if(t[e]){a=t[e],i=e;break}if(!a){const e=Object.keys(t);if(!(e.length>0))throw new Error("No compatible wallet extension found.");i=e[0],a=t[i]}}try{n=await a.enable("VoidAI Bridge SDK")}catch(e){if(e.message&&e.message.includes("authorised"))throw new Error("No accounts are authorized. Please authorize accounts in your wallet extension and try again.");throw new Error(`Failed to enable wallet extension: ${e.message||e}`)}if(!n)throw new Error("Failed to enable wallet extension. Please try again.");try{o=await n.accounts.get()}catch(e){throw new Error(`Failed to get accounts: ${e.message||e}`)}if(0===o.length)throw new Error("No accounts found. Please authorize at least one account in your wallet extension and try again.");this.extension=n;const s=o[0];return this.account=s,this.extensionName=i,s}getAccount(){return this.account}getExtensionName(){return this.extensionName}isConnected(){return null!==this.account&&null!==this.extension}disconnect(){this.extension=null,this.account=null,this.extensionName=null}static isExtensionAvailable(e){if("undefined"==typeof window)return!1;const t=window.injectedWeb3;return!!t&&(e?!!t[e]:["talisman","subwallet-js","polkadot-js"].some(e=>!!t[e])||Object.keys(t).length>0)}getExtension(){return this.extension}}},593:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=async function({message:e,signature:t}){return(0,o.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})};const n=r(5336),o=r(2374)},595:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc8010Signature=function(e){const{address:t,data:r,signature:a,to:i="hex"}=e,s=n.SignatureErc8010.wrap({authorization:{address:e.authorization.address,chainId:e.authorization.chainId,nonce:BigInt(e.authorization.nonce),r:BigInt(e.authorization.r),s:BigInt(e.authorization.s),yParity:e.authorization.yParity},data:r,signature:a,to:t});return"hex"===i?s:(0,o.hexToBytes)(s)};const n=r(2873),o=r(7655)},629:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[r]})}},665:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVError=t.InvalidYParityError=t.InvalidSError=t.InvalidRError=t.MissingPropertiesError=t.InvalidSerializedSizeError=void 0,t.assert=u,t.fromBytes=d,t.fromHex=l,t.extract=function(e){return void 0===e.r||void 0===e.s?void 0:f(e)},t.from=f,t.fromDerBytes=function(e){return p(i.fromBytes(e))},t.fromDerHex=p,t.fromLegacy=m,t.fromRpc=b,t.fromTuple=function(e){const[t,r,n]=e;return f({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})},t.toBytes=function(e){return o.fromHex(y(e))},t.toHex=y,t.toDerBytes=function(e){return new n.secp256k1.Signature(e.r,e.s).toDERRawBytes()},t.toDerHex=function(e){return`0x${new n.secp256k1.Signature(e.r,e.s).toDERHex()}`},t.toLegacy=function(e){return{r:e.r,s:e.s,v:g(e.yParity)}},t.toRpc=function(e){const{r:t,s:r,yParity:n}=e;return{r:i.fromNumber(t,{size:32}),s:i.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}},t.toTuple=function(e){const{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":i.trimLeft(i.fromNumber(t)),0n===r?"0x":i.trimLeft(i.fromNumber(r))]},t.validate=function(e,t={}){try{return u(e,t),!0}catch{return!1}},t.vToYParity=h,t.yParityToV=g;const n=r(8510),o=r(3516),a=r(7560),i=r(9274),s=r(5665),c=r(6625);function u(e,t={}){const{recovered:r}=t;if(void 0===e.r)throw new E({signature:e});if(void 0===e.s)throw new E({signature:e});if(r&&void 0===e.yParity)throw new E({signature:e});if(e.r<0n||e.r>c.maxUint256)throw new w({value:e.r});if(e.s<0n||e.s>c.maxUint256)throw new x({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new P({value:e.yParity})}function d(e){return l(i.fromBytes(e))}function l(e){if(130!==e.length&&132!==e.length)throw new v({signature:e});const t=BigInt(i.slice(e,0,32)),r=BigInt(i.slice(e,32,64)),n=(()=>{const t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return h(t)}catch{throw new P({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function f(e){const t="string"==typeof e?l(e):e instanceof Uint8Array?d(e):"string"==typeof e.r?b(e):e.v?m(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return u(t),t}function p(e){const{r:t,s:r}=n.secp256k1.Signature.fromDER(i.from(e).slice(2));return{r:t,s:r}}function m(e){return{r:e.r,s:e.s,yParity:h(e.v)}}function b(e){const t=(()=>{const t=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=h(t)),"number"!=typeof r)throw new P({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function y(e){u(e);const t=e.r,r=e.s;return i.concat(i.fromNumber(t,{size:32}),i.fromNumber(r,{size:32}),"number"==typeof e.yParity?i.fromNumber(g(e.yParity),{size:1}):"0x")}function h(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new I({value:e})}function g(e){if(0===e)return 27;if(1===e)return 28;throw new P({value:e})}class v extends a.BaseError{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${i.size(i.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=v;class E extends a.BaseError{constructor({signature:e}){super(`Signature \`${s.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}t.MissingPropertiesError=E;class w extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}t.InvalidRError=w;class x extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}t.InvalidSError=x;class P extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}t.InvalidYParityError=P;class I extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}t.InvalidVError=I},666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=function(e){return e},t.getVersion=function(){return n.version},t.prettyPrint=function(e){if(!e)return"";const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")};const n=r(3119)},670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.charCodeMap=void 0,t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.charCodeToBase16=function(e){return e>=t.charCodeMap.zero&&e<=t.charCodeMap.nine?e-t.charCodeMap.zero:e>=t.charCodeMap.A&&e<=t.charCodeMap.F?e-(t.charCodeMap.A-10):e>=t.charCodeMap.a&&e<=t.charCodeMap.f?e-(t.charCodeMap.a-10):void 0},t.pad=function(e,t={}){const{dir:r,size:o=32}=t;if(0===o)return e;if(e.length>o)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:o,type:"Bytes"});const a=new Uint8Array(o);for(let t=0;t<o;t++){const n="right"===r;a[n?t:o-t-1]=e[n?t:e.length-t-1]}return a},t.trim=function(e,t={}){const{dir:r="left"}=t;let n=e,o=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)o++;return n="left"===r?n.slice(o):n.slice(0,n.length-o),n};const n=r(3516);t.charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102}},775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAbiItem=function(e){const{abi:t,args:r=[],name:a}=e,d=(0,o.isHex)(a,{strict:!1}),l=t.filter(e=>d?"function"===e.type?(0,s.toFunctionSelector)(e)===a:"event"===e.type&&(0,i.toEventSelector)(e)===a:"name"in e&&e.name===a);if(0===l.length)return;if(1===l.length)return l[0];let f;for(const e of l)if("inputs"in e)if(r&&0!==r.length){if(e.inputs&&0!==e.inputs.length&&e.inputs.length===r.length&&r.every((t,r)=>{const n="inputs"in e&&e.inputs[r];return!!n&&c(t,n)})){if(f&&"inputs"in f&&f.inputs){const t=u(e.inputs,f.inputs,r);if(t)throw new n.AbiItemAmbiguityError({abiItem:e,type:t[0]},{abiItem:f,type:t[1]})}f=e}}else if(!e.inputs||0===e.inputs.length)return e;return f||l[0]},t.isArgOfType=c,t.getAmbiguousTypes=u;const n=r(6953),o=r(6015),a=r(9742),i=r(7144),s=r(1456);function c(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,a.isAddress)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every((t,n)=>"object"===r&&c(Object.values(e)[n],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(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&Array.isArray(e)&&e.every(e=>c(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))}}function u(e,t,r){for(const n in e){const o=e[n],i=t[n];if("tuple"===o.type&&"tuple"===i.type&&"components"in o&&"components"in i)return u(o.components,i.components,r[n]);const s=[o.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,a.isAddress)(r[n],{strict:!1}))())return s}}},796:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e,{format:t}){if(!t)return{};const r={};return function t(n){const o=Object.keys(n);for(const a of o)a in e&&(r[a]=e[a]),n[a]&&"object"==typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(t(e||{})),r}},821:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(1656);class o extends Error{constructor(e,t={}){const r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=o},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=function(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2);let i=0;const s=t.split(".");for(let e=0;e<s.length;e++){let t=(0,n.stringToBytes)(s[e]);t.byteLength>255&&(t=(0,n.stringToBytes)((0,o.encodeLabelhash)((0,a.labelhash)(s[e])))),r[i]=t.length,r.set(t,i+1),i+=t.length+1}return r.byteLength!==i+1?r.slice(0,i+1):r};const n=r(7655),o=r(8050),a=r(3484)},922:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=function({key:e,methods:t,name:r,request:a,retryCount:i=3,retryDelay:s=150,timeout:c,type:u},d){const l=(0,o.uid)();return{config:{key:e,methods:t,name:r,request:a,retryCount:i,retryDelay:s,timeout:c,type:u},request:(0,n.buildRequest)(a,{methods:t,retryCount:i,retryDelay:s,uid:l}),value:d}};const n=r(5e3),o=r(1667)},924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},937:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=t.ethAddress=void 0,t.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",t.zeroAddress="0x0000000000000000000000000000000000000000"},975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionedHashVersionKzg=void 0,t.versionedHashVersionKzg=1},985:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?l(e,t):"boolean"==typeof e?s(e,t):c(e,t)},t.boolToHex=s,t.bytesToHex=c,t.numberToHex=u,t.stringToHex=l;const n=r(5366),o=r(8987),a=r(294),i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=i[e[t]];const n=`0x${r}`;return"number"==typeof t.size?((0,a.assertSize)(n,{size:t.size}),(0,o.pad)(n,{dir:"right",size:t.size})):n}function u(e,t={}){const{signed:r,size:a}=t,i=BigInt(e);let s;a?s=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));const c="bigint"==typeof s&&r?-s-1n:0;if(s&&i>s||i<c){const t="bigint"==typeof e?"n":"";throw new n.IntegerOutOfRangeError({max:s?`${s}${t}`:void 0,min:`${c}${t}`,signed:r,size:a,value:`${e}${t}`})}const u=`0x${(r&&i<0?(1n<<BigInt(8*a))+BigInt(i):i).toString(16)}`;return a?(0,o.pad)(u,{size:a}):u}const d=new TextEncoder;function l(e,t={}){return c(d.encode(e),t)}},1059:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0,t.create=function(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(o);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};const n=r(7560),o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new a({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 a({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class a extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}t.NegativeOffsetError=a;class i extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=i;class s extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=s},1093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=async function(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.hexToNumber)(t)};const n=r(294)},1184:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAuthorizationAddress=async function(e){const{authorization:t,signature:r}=e;return(0,n.recoverAddress)({hash:(0,o.hashAuthorization)(t),signature:r??t})};const n=r(2374),o=r(7474)},1208:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=function(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;r>0&&(i=setTimeout(()=>{n?s.abort():a(t)},r)),o(await e({signal:s?.signal||null}))}catch(e){"AbortError"===e?.name&&a(t),a(e)}finally{clearTimeout(i)}})()})}},1246:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=async function(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}},1270:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=function(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r<e.length;r++){const{address:i,storageKeys:s}=e[r];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new o.InvalidStorageKeySizeError({storageKey:s[e]});if(!(0,a.isAddress)(i,{strict:!1}))throw new n.InvalidAddressError({address:i});t.push([i,s])}return t};const n=r(6311),o=r(3727),a=r(9742)},1348:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=async function(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]},{retryCount:0})};const n=r(985)},1370:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getWebSocketRpcClient=async function(e,t={}){const{keepAlive:a,reconnect:i}=t;return(0,o.getSocketRpcClient)({async getSocket({onClose:t,onError:o,onOpen:a,onResponse:i}){const s=await Promise.resolve().then(()=>r(8626)).then(e=>e.WebSocket),c=new s(e);function u(){c.removeEventListener("close",u),c.removeEventListener("message",d),c.removeEventListener("error",o),c.removeEventListener("open",a),t()}function d({data:e}){if("string"!=typeof e||0!==e.trim().length)try{const t=JSON.parse(e);i(t)}catch(e){o(e)}}c.addEventListener("close",u),c.addEventListener("message",d),c.addEventListener("error",o),c.addEventListener("open",a),c.readyState===s.CONNECTING&&await new Promise((e,t)=>{c&&(c.onopen=e,c.onerror=t)});const{close:l}=c;return Object.assign(c,{close(){l.bind(c)(),u()},ping(){try{if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new n.WebSocketRequestError({url:c.url,cause:new n.SocketClosedError({url:c.url})});const e={jsonrpc:"2.0",id:null,method:"net_version",params:[]};c.send(JSON.stringify(e))}catch(e){o(e)}},request({body:e}){if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new n.WebSocketRequestError({body:e,url:c.url,cause:new n.SocketClosedError({url:c.url})});return c.send(JSON.stringify(e))}})},keepAlive:a,reconnect:i,url:e})};const n=r(2202),o=r(6228)},1372:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=async function(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}},1403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof o.UnknownNodeError?e:t})();return new n.CallExecutionError(i,{docsPath:t,...r})};const n=r(7677),o=r(2731),a=r(6339)},1439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signAuthorization=async function(e,t){const{account:r=e.account}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const i=(0,n.parseAccount)(r);if(!i.signAuthorization)throw new o.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:i.type});const s=await(0,a.prepareAuthorization)(e,t);return i.signAuthorization(s)};const n=r(9006),o=r(2540),a=r(5805)},1449:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mine=async function(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})};const n=r(985)},1456:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSelector=void 0;const n=r(7688),o=r(3239);t.toFunctionSelector=e=>(0,n.slice)((0,o.toSignatureHash)(e),0,4)},1484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=o,t.abytes=a,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=i,t.hexToNumber=s,t.bytesToHex=d,t.hexToBytes=p,t.bytesToNumberBE=function(e){return s(d(e))},t.bytesToNumberLE=function(e){return a(e),s(d(Uint8Array.from(e).reverse()))},t.numberToBytesBE=m,t.numberToBytesLE=function(e,t){return m(e,t).reverse()},t.numberToVarBytesBE=function(e){return p(i(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!o(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const a=n.length;if("number"==typeof r&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return n},t.concatBytes=b,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=h,t.aInRange=function(e,t,r,n){if(!h(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,o){return e|(o?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){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 r)throw new Error("hmacFn must be a function");let n=g(e),o=g(e),a=0;const i=()=>{n.fill(1),o.fill(0),a=0},s=(...e)=>r(o,n,...e),c=(e=g(0))=>{o=s(v([0]),e),n=s(),0!==e.length&&(o=s(v([1]),e),n=s())},u=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=s();const t=n.slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(i(),c(e);!(r=t(u()));)c();return i(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const o=E[r];if("function"!=typeof o)throw new Error("invalid validator function");const a=e[t];if(!(n&&void 0===a||o(a,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(void 0!==o)return o;const a=e(r,...n);return t.set(r,a),a}};const r=BigInt(0),n=BigInt(1);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!o(e))throw new Error("Uint8Array expected")}function i(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){if(a(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t}const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=l._0&&e<=l._9?e-l._0:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function p(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=f(e.charCodeAt(o)),a=f(e.charCodeAt(o+1));if(void 0===r||void 0===a){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}n[t]=16*r+a}return n}function m(e,t){return p(e.toString(16).padStart(2*t,"0"))}function b(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];a(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r}const y=e=>"bigint"==typeof e&&r<=e;function h(e,t,r){return y(e)&&y(t)&&y(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;const g=e=>new Uint8Array(e),v=e=>Uint8Array.from(e),E={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||o(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)};t.notImplemented=()=>{throw new Error("not implemented")}},1496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=async function(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})};const n=r(985)},1519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nonceManager=void 0,t.createNonceManager=a,t.jsonRpc=i;const n=r(1998),o=r(7848);function a(e){const{source:t}=e,r=new Map,n=new o.LruMap(8192),a=new Map,i=({address:e,chainId:t})=>`${e}.${t}`;return{async consume({address:e,chainId:r,client:o}){const a=i({address:e,chainId:r}),s=this.get({address:e,chainId:r,client:o});this.increment({address:e,chainId:r});const c=await s;return await t.set({address:e,chainId:r},c),n.set(a,c),c},async increment({address:e,chainId:t}){const n=i({address:e,chainId:t}),o=r.get(n)??0;r.set(n,o+1)},async get({address:e,chainId:o,client:s}){const c=i({address:e,chainId:o});let u=a.get(c);return u||(u=(async()=>{try{const r=await t.get({address:e,chainId:o,client:s}),a=n.get(c)??0;return a>0&&r<=a?a+1:(n.delete(c),r)}finally{this.reset({address:e,chainId:o})}})(),a.set(c,u)),(r.get(c)??0)+await u},reset({address:e,chainId:t}){const n=i({address:e,chainId:t});r.delete(n),a.delete(n)}}}function i(){return{async get(e){const{address:t,client:r}=e;return(0,n.getTransactionCount)(r,{address:t,blockTag:"pending"})},set(){}}}t.nonceManager=a({source:i()})},1525:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((a,i)=>{const s=async({count:c=0}={})=>{try{const t=await e();a(t)}catch(e){if(c<r&&await o({count:c,error:e}))return(async({error:e})=>{const r="function"==typeof t?t({count:c,error:e}):t;r&&await(0,n.wait)(r),s({count:c+1})})({error:e});i(e)}};s()})};const n=r(8664)},1541:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=async function(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}},1547:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,o)=>{const a=t(e,o);if(r)for(const e of r)delete a[e];return{...a,...n(e,o)}},type:e})}},1644:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksum=void 0,t.clear=function(){for(const e of Object.values(n))e.clear()};const n={checksum:new(r(4552).LruMap)(8192)};t.checksum=n.checksum},1656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.2.3"},1667:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uid=function(e=11){if(!n||o+e>2*r){n="",o=0;for(let e=0;e<r;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(o,o+++e)};const r=256;let n,o=r},1684:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=async function(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}},1692:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifySiweMessage=async function(e,t){const{address:r,domain:s,message:c,nonce:u,scheme:d,signature:l,time:f=new Date,...p}=t,m=(0,o.parseSiweMessage)(c);if(!m.address)return!1;if(!(0,a.validateSiweMessage)({address:r,domain:s,message:m,nonce:u,scheme:d,time:f}))return!1;const b=(0,n.hashMessage)(c);return(0,i.verifyHash)(e,{address:m.address,hash:b,signature:l,...p})};const n=r(5336),o=r(9694),a=r(6491),i=r(8868)},1705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=m,t.weierstrass=function(e){const r=function(e){const t=(0,n.validateBasic)(e);return(0,a.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:l,nByteLength:f,nBitLength:p}=r,b=s.BYTES+1,y=2*s.BYTES+1;function h(e){return(0,o.mod)(e,l)}function g(e){return(0,o.invert)(e,l)}const{ProjectivePoint:v,normPrivateKeyToScalar:E,weierstrassEquation:w,isWithinCurveOrder:x}=m({...r,toBytes(e,t,r){const n=t.toAffine(),o=s.toBytes(n.x),i=a.concatBytes;return(0,a.abool)("isCompressed",r),r?i(Uint8Array.from([t.hasEvenY()?2:3]),o):i(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==b||2!==r&&3!==r){if(t===y&&4===r)return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))};throw new Error("invalid Point, expected length of "+b+", or uncompressed "+y+", got "+t)}{const e=(0,a.bytesToNumberBE)(n);if(!(0,a.inRange)(e,d,s.ORDER))throw new Error("Point is not on curve");const t=w(e);let o;try{o=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~r)!=((o&d)===d)&&(o=s.neg(o)),{x:e,y:o}}}});function P(e){return e>l>>d}const I=(e,t,r)=>(0,a.bytesToNumberBE)(e.slice(t,r));class T{constructor(e,t,r){(0,a.aInRange)("r",e,d,l),(0,a.aInRange)("s",t,d,l),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){const t=f;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new T(I(e,0,t),I(e,t,2*t))}static fromDER(e){const{r,s:n}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new T(r,n)}assertValidity(){}addRecoveryBit(e){return new T(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:o}=this,i=B((0,a.ensureBytes)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?t+r.n:t;if(u>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&o?"03":"02",l=v.fromHex(d+c(u,s.BYTES)),f=g(u),p=h(-i*f),m=h(n*f),b=v.BASE.multiplyAndAddUnsafe(l,p,m);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return(0,a.hexToBytes)(this.toDERHex())}toDERHex(){return t.DER.hexFromSig(this)}toCompactRawBytes(){return(0,a.hexToBytes)(this.toCompactHex())}toCompactHex(){const e=f;return c(this.r,e)+c(this.s,e)}}const A={isValidPrivateKey(e){try{return E(e),!0}catch(e){return!1}},normPrivateKeyToScalar:E,randomPrivateKey:()=>{const e=(0,o.getMinHashLength)(r.n);return(0,o.mapHashToField)(r.randomBytes(e),r.n)},precompute:(e=8,t=v.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function O(e){if("bigint"==typeof e)return!1;if(e instanceof v)return!0;const t=(0,a.ensureBytes)("key",e).length,n=s.BYTES,o=n+1,i=2*n+1;return r.allowedPrivateKeyLengths||f===o?void 0:t===o||t===i}const S=r.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,a.bytesToNumberBE)(e),r=8*e.length-p;return r>0?t>>BigInt(r):t},B=r.bits2int_modN||function(e){return h(S(e))},j=(0,a.bitMask)(p);function R(e){return(0,a.aInRange)("num < 2^"+p,e,u,j),(0,a.numberToBytesBE)(e,f)}const _={lowS:r.lowS,prehash:!1},C={lowS:r.lowS,prehash:!1};return v.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return v.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===O(e))throw new Error("first arg must be private key");if(!1===O(t))throw new Error("second arg must be public key");return v.fromHex(t).multiply(E(e)).toRawBytes(r)},sign:function(e,t,n=_){const{seed:o,k2sig:c}=function(e,t,n=_){if(["recovered","canonical"].some(e=>e in n))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:l,prehash:f,extraEntropy:p}=n;null==l&&(l=!0),e=(0,a.ensureBytes)("msgHash",e),i(n),f&&(e=(0,a.ensureBytes)("prehashed msgHash",o(e)));const m=B(e),b=E(t),y=[R(b),R(m)];if(null!=p&&!1!==p){const e=!0===p?c(s.BYTES):p;y.push((0,a.ensureBytes)("extraEntropy",e))}const w=(0,a.concatBytes)(...y),I=m;return{seed:w,k2sig:function(e){const t=S(e);if(!x(t))return;const r=g(t),n=v.BASE.multiply(t).toAffine(),o=h(n.x);if(o===u)return;const a=h(r*h(I+o*b));if(a===u)return;let i=(n.x===o?0:2)|Number(n.y&d),s=a;return l&&P(a)&&(s=function(e){return P(e)?h(-e):e}(a),i^=1),new T(o,s,i)}}}(e,t,n),l=r;return(0,a.createHmacDrbg)(l.hash.outputLen,l.nByteLength,l.hmac)(o,c)},verify:function(e,n,o,s=C){const c=e;n=(0,a.ensureBytes)("msgHash",n),o=(0,a.ensureBytes)("publicKey",o);const{lowS:u,prehash:d,format:l}=s;if(i(s),"strict"in s)throw new Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw new Error("format must be compact or der");const f="string"==typeof c||(0,a.isBytes)(c),p=!f&&!l&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!f&&!p)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let m,b;try{if(p&&(m=new T(c.r,c.s)),f){try{"compact"!==l&&(m=T.fromDER(c))}catch(e){if(!(e instanceof t.DER.Err))throw e}m||"der"===l||(m=T.fromCompact(c))}b=v.fromHex(o)}catch(e){return!1}if(!m)return!1;if(u&&m.hasHighS())return!1;d&&(n=r.hash(n));const{r:y,s:E}=m,w=B(n),x=g(E),P=h(w*x),I=h(y*x),A=v.BASE.multiplyAndAddUnsafe(b,P,I)?.toAffine();return!!A&&h(A.x)===y},ProjectivePoint:v,Signature:T,utils:A}},t.SWUFpSqrtRatio=b,t.mapToCurveSimpleSWU=function(e,t){if((0,o.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,c,u,d,l,f;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),c=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),c=e.mul(c,t.A),i=e.sqr(s),d=e.sqr(c),u=e.mul(d,t.A),i=e.add(i,u),i=e.mul(i,s),d=e.mul(d,c),u=e.mul(d,t.B),i=e.add(i,u),l=e.mul(a,s);const{isValid:p,value:m}=r(i,d);f=e.mul(a,n),f=e.mul(f,m),l=e.cmov(l,s,p),f=e.cmov(f,m,p);const b=e.isOdd(n)===e.isOdd(f);f=e.cmov(e.neg(f),f,b);const y=(0,o.FpInvertBatch)(e,[c],!0)[0];return l=e.mul(l,y),{x:l,y:f}}};const n=r(2422),o=r(4967),a=r(1484);function i(e){void 0!==e.lowS&&(0,a.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,a.abool)("prehash",e.prehash)}class s extends Error{constructor(e=""){super(e)}}function c(e,t){return(0,a.bytesToHex)((0,a.numberToBytesBE)(e,t))}t.DERErr=s,t.DER={Err:s,_tlv:{encode:(e,r)=>{const{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");const o=r.length/2,i=(0,a.numberToHexUnpadded)(o);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const s=o>127?(0,a.numberToHexUnpadded)(i.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+i+r},decode(e,r){const{Err:n}=t.DER;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[o++]!==e)throw new n("tlv.decode: wrong tlv");const a=r[o++];let i=0;if(128&a){const e=127&a;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 t=r.subarray(o,o+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of t)i=i<<8|e;if(o+=e,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=a;const s=r.subarray(o,o+i);if(s.length!==i)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(o+i)}}},_int:{encode(e){const{Err:r}=t.DER;if(e<u)throw new r("integer: negative integers are not allowed");let n=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){const{Err:r,_int:n,_tlv:o}=t.DER,i=(0,a.ensureBytes)("signature",e),{v:s,l:c}=o.decode(48,i);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:u,l:d}=o.decode(2,s),{v:l,l:f}=o.decode(2,d);if(f.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(l)}},hexFromSig(e){const{_tlv:r,_int:n}=t.DER,o=r.encode(2,n.encode(e.r))+r.encode(2,n.encode(e.s));return r.encode(48,o)}};const u=BigInt(0),d=BigInt(1),l=BigInt(2),f=BigInt(3),p=BigInt(4);function m(e){const t=function(e){const t=(0,n.validateBasic)(e);(0,a.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:o,a:i}=t;if(r){if(!o.eql(i,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=t,i=(0,o.Field)(t.n,t.nBitLength),s=t.toBytes||((e,t,n)=>{const o=t.toAffine();return(0,a.concatBytes)(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){const{a:n,b:o}=t,a=r.sqr(e),i=r.mul(a,e);return r.add(r.add(i,r.mul(e,n)),o)}function m(e,t){const n=r.sqr(t),o=l(e);return r.eql(n,o)}if(!m(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const b=r.mul(r.pow(t.a,f),p),y=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(b,y)))throw new Error("bad curve params: a or b");function h(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:i,n:s}=t;if(r&&"bigint"!=typeof e){if((0,a.isBytes)(e)&&(e=(0,a.bytesToHex)(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*n,"0")}let c;try{c="bigint"==typeof e?e:(0,a.bytesToNumberBE)((0,a.ensureBytes)("private key",e,n))}catch(t){throw new Error("invalid private key, expected hex or "+n+" bytes, got "+typeof e)}return i&&(c=(0,o.mod)(c,s)),(0,a.aInRange)("private key",c,d,s),c}function g(e){if(!(e instanceof w))throw new Error("ProjectivePoint expected")}const v=(0,a.memoized)((e,t)=>{const{px:n,py:o,pz:a}=e;if(r.eql(a,r.ONE))return{x:n,y:o};const i=e.is0();null==t&&(t=i?r.ONE:r.inv(a));const s=r.mul(n,t),c=r.mul(o,t),u=r.mul(a,t);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),E=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:o}=e.toAffine();if(!r.isValid(n)||!r.isValid(o))throw new Error("bad point: x or y not FE");if(!m(n,o))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class w{constructor(e,t,n){if(null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof w)throw new Error("projective point not allowed");const o=e=>r.eql(e,r.ZERO);return o(t)&&o(n)?w.ZERO:new w(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=(0,o.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(w.fromAffine)}static fromHex(e){const t=w.fromAffine(c((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return w.BASE.multiply(h(e))}static msm(e,t){return(0,n.pippenger)(w,i,e,t)}_setWindowSize(e){I.setWindowSize(this,e)}assertValidity(){E(this)}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){g(e);const{px:t,py:n,pz:o}=this,{px:a,py:i,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(a,o)),u=r.eql(r.mul(n,s),r.mul(i,o));return c&&u}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,o=r.mul(n,f),{px:a,py:i,pz:s}=this;let c=r.ZERO,u=r.ZERO,d=r.ZERO,l=r.mul(a,a),p=r.mul(i,i),m=r.mul(s,s),b=r.mul(a,i);return b=r.add(b,b),d=r.mul(a,s),d=r.add(d,d),c=r.mul(e,d),u=r.mul(o,m),u=r.add(c,u),c=r.sub(p,u),u=r.add(p,u),u=r.mul(c,u),c=r.mul(b,c),d=r.mul(o,d),m=r.mul(e,m),b=r.sub(l,m),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,m),l=r.mul(l,b),u=r.add(u,l),m=r.mul(i,s),m=r.add(m,m),l=r.mul(m,b),c=r.sub(c,l),d=r.mul(m,p),d=r.add(d,d),d=r.add(d,d),new w(c,u,d)}add(e){g(e);const{px:n,py:o,pz:a}=this,{px:i,py:s,pz:c}=e;let u=r.ZERO,d=r.ZERO,l=r.ZERO;const p=t.a,m=r.mul(t.b,f);let b=r.mul(n,i),y=r.mul(o,s),h=r.mul(a,c),v=r.add(n,o),E=r.add(i,s);v=r.mul(v,E),E=r.add(b,y),v=r.sub(v,E),E=r.add(n,a);let x=r.add(i,c);return E=r.mul(E,x),x=r.add(b,h),E=r.sub(E,x),x=r.add(o,a),u=r.add(s,c),x=r.mul(x,u),u=r.add(y,h),x=r.sub(x,u),l=r.mul(p,E),u=r.mul(m,h),l=r.add(u,l),u=r.sub(y,l),l=r.add(y,l),d=r.mul(u,l),y=r.add(b,b),y=r.add(y,b),h=r.mul(p,h),E=r.mul(m,E),y=r.add(y,h),h=r.sub(b,h),h=r.mul(p,h),E=r.add(E,h),b=r.mul(y,E),d=r.add(d,b),b=r.mul(x,E),u=r.mul(v,u),u=r.sub(u,b),b=r.mul(v,y),l=r.mul(x,l),l=r.add(l,b),new w(u,d,l)}subtract(e){return this.add(e.negate())}is0(){return this.equals(w.ZERO)}wNAF(e){return I.wNAFCached(this,e,w.normalizeZ)}multiplyUnsafe(e){const{endo:n,n:o}=t;(0,a.aInRange)("scalar",e,u,o);const i=w.ZERO;if(e===u)return i;if(this.is0()||e===d)return this;if(!n||I.hasPrecomputes(this))return I.wNAFCachedUnsafe(this,e,w.normalizeZ);let{k1neg:s,k1:c,k2neg:l,k2:f}=n.splitScalar(e),p=i,m=i,b=this;for(;c>u||f>u;)c&d&&(p=p.add(b)),f&d&&(m=m.add(b)),b=b.double(),c>>=d,f>>=d;return s&&(p=p.negate()),l&&(m=m.negate()),m=new w(r.mul(m.px,n.beta),m.py,m.pz),p.add(m)}multiply(e){const{endo:n,n:o}=t;let i,s;if((0,a.aInRange)("scalar",e,d,o),n){const{k1neg:t,k1:o,k2neg:a,k2:c}=n.splitScalar(e);let{p:u,f:d}=this.wNAF(o),{p:l,f}=this.wNAF(c);u=I.constTimeNegate(t,u),l=I.constTimeNegate(a,l),l=new w(r.mul(l.px,n.beta),l.py,l.pz),i=u.add(l),s=d.add(f)}else{const{p:t,f:r}=this.wNAF(e);i=t,s=r}return w.normalizeZ([i,s])[0]}multiplyAndAddUnsafe(e,t,r){const n=w.BASE,o=(e,t)=>t!==u&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),a=o(this,t).add(o(e,r));return a.is0()?void 0:a}toAffine(e){return v(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===d?this:r?r(w,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,a.abool)("isCompressed",e),this.assertValidity(),s(w,this,e)}toHex(e=!0){return(0,a.abool)("isCompressed",e),(0,a.bytesToHex)(this.toRawBytes(e))}}w.BASE=new w(t.Gx,t.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const{endo:x,nBitLength:P}=t,I=(0,n.wNAF)(w,x?Math.ceil(P/2):P);return{CURVE:t,ProjectivePoint:w,normPrivateKeyToScalar:h,weierstrassEquation:l,isWithinCurveOrder:function(e){return(0,a.inRange)(e,d,t.n)}}}function b(e,t){const r=e.ORDER;let n=u;for(let e=r-d;e%l===u;e/=l)n+=d;const o=n,a=l<<o-d-d,i=a*l,s=(r-d)/i,c=(s-d)/l,m=i-d,b=a,y=e.pow(t,s),h=e.pow(t,(s+d)/l);let g=(t,r)=>{let n=y,a=e.pow(r,m),i=e.sqr(a);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,c),s=e.mul(s,a),a=e.mul(s,r),i=e.mul(s,t);let u=e.mul(i,a);s=e.pow(u,b);let f=e.eql(s,e.ONE);a=e.mul(i,h),s=e.mul(u,n),i=e.cmov(a,i,f),u=e.cmov(s,u,f);for(let t=o;t>d;t--){let r=t-l;r=l<<r-d;let o=e.pow(u,r);const s=e.eql(o,e.ONE);a=e.mul(i,n),n=e.mul(n,n),o=e.mul(u,n),i=e.cmov(a,i,s),u=e.cmov(o,u,s)}return{isValid:f,value:i}};if(e.ORDER%p===f){const r=(e.ORDER-f)/p,n=e.sqrt(e.neg(t));g=(t,o)=>{let a=e.sqr(o);const i=e.mul(t,o);a=e.mul(a,i);let s=e.pow(a,r);s=e.mul(s,i);const c=e.mul(s,n),u=e.mul(e.sqr(s),o),d=e.eql(u,t);return{isValid:d,value:e.cmov(c,s,d)}}}return g}},1707:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map(e=>({...e,value:BigInt(e.value)}))):void 0};var t};const n=r(4661)},1714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransactionSync=async function(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:i}){const s=await e.request({method:"eth_sendRawTransactionSync",params:i?[t,(0,a.numberToHex)(i)]:[t]},{retryCount:0}),c=(e.chain?.formatters?.transactionReceipt?.format||o.formatTransactionReceipt)(s);if("reverted"===c.status&&r)throw new n.TransactionReceiptRevertedError({receipt:c});return c};const n=r(3727),o=r(4537),a=r(4661)},1716:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=async function(e,{filter:t}){const r=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,o.formatLog)(e));return t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:a,strict:r}):a};const n=r(48),o=r(95)},1761:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=d,t.hash_to_field=l,t.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,o)=>{const[a,i,s,c]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[u,d]=(0,n.FpInvertBatch)(e,[i,c],!0);return t=e.mul(a,u),o=e.mul(o,e.mul(s,d)),{x:t,y:o}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function n(r){return e.fromAffine(t(r))}function o(t){const r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){const a=l(e,2,{...r,DST:r.DST,...t}),i=n(a[0]),s=n(a[1]);return o(i.add(s))},encodeToCurve:(e,t)=>o(n(l(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return o(n(e))}}};const n=r(4967),o=r(1484),a=o.bytesToNumberBE;function i(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function u(e,t,r,n){(0,o.abytes)(e),(0,o.abytes)(t),c(r),t.length>255&&(t=n((0,o.concatBytes)((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:u}=n,d=Math.ceil(r/a);if(r>65535||d>255)throw new Error("expand_message_xmd: invalid lenInBytes");const l=(0,o.concatBytes)(t,i(t.length,1)),f=i(0,u),p=i(r,2),m=new Array(d),b=n((0,o.concatBytes)(f,e,p,i(0,1),l));m[0]=n((0,o.concatBytes)(b,i(1,1),l));for(let e=1;e<=d;e++){const t=[s(b,m[e-1]),i(e+1,1),l];m[e]=n((0,o.concatBytes)(...t))}return(0,o.concatBytes)(...m).slice(0,r)}function d(e,t,r,n,a){if((0,o.abytes)(e),(0,o.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*n/8);t=a.create({dkLen:e}).update((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function l(e,t,r){(0,o.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:s,m:l,hash:f,expand:p,DST:m}=r;(0,o.abytes)(e),c(t);const b="string"==typeof m?(0,o.utf8ToBytes)(m):m,y=i.toString(2).length,h=Math.ceil((y+s)/8),g=t*l*h;let v;if("xmd"===p)v=u(e,b,g,f);else if("xof"===p)v=d(e,b,g,s,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=e}const E=new Array(t);for(let e=0;e<t;e++){const t=new Array(l);for(let r=0;r<l;r++){const o=h*(r+e*l),s=v.subarray(o,o+h);t[r]=(0,n.mod)(a(s),i)}E[e]=t}return E}},1769:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=async function({address:e,authorization:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverAuthorizationAddress)({authorization:t,signature:r}))};const n=r(8728),o=r(4324),a=r(1184)},1792:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.custom=function(e,t={}){const{key:r="custom",methods:o,name:a="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,n.createTransport)({key:r,methods:o,name:a,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})};const n=r(922)},1839:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;const n=r(7202),o=r(9175),a=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),i=new Uint32Array(80);class s extends n.HashMD{constructor(){super(64,20,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4]}get(){const{A:e,B:t,C:r,D:n,E:o}=this;return[e,t,r,n,o]}set(e,t,r,n,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)i[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)i[e]=(0,o.rotl)(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let{A:r,B:a,C:s,D:c,E:u}=this;for(let e=0;e<80;e++){let t,d;e<20?(t=(0,n.Chi)(a,s,c),d=1518500249):e<40?(t=a^s^c,d=1859775393):e<60?(t=(0,n.Maj)(a,s,c),d=2400959708):(t=a^s^c,d=3395469782);const l=(0,o.rotl)(r,5)+t+u+d+i[e]|0;u=c,c=s,s=(0,o.rotl)(a,30),a=r,r=l}r=r+this.A|0,a=a+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,this.set(r,a,s,c,u)}roundClean(){(0,o.clean)(i)}destroy(){this.set(0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,o.createHasher)(()=>new s);const c=Math.pow(2,32),u=Array.from({length:64},(e,t)=>Math.floor(c*Math.abs(Math.sin(t+1)))),d=a.slice(0,4),l=new Uint32Array(16);class f extends n.HashMD{constructor(){super(64,16,8,!0),this.A=0|d[0],this.B=0|d[1],this.C=0|d[2],this.D=0|d[3]}get(){const{A:e,B:t,C:r,D:n}=this;return[e,t,r,n]}set(e,t,r,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!0);let{A:r,B:a,C:i,D:s}=this;for(let e=0;e<64;e++){let t,c,d;e<16?(t=(0,n.Chi)(a,i,s),c=e,d=[7,12,17,22]):e<32?(t=(0,n.Chi)(s,a,i),c=(5*e+1)%16,d=[5,9,14,20]):e<48?(t=a^i^s,c=(3*e+5)%16,d=[4,11,16,23]):(t=i^(a|~s),c=7*e%16,d=[6,10,15,21]),t=t+r+u[e]+l[c],r=s,s=i,i=a,a+=(0,o.rotl)(t,d[e%4])}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,this.set(r,a,i,s)}roundClean(){(0,o.clean)(l)}destroy(){this.set(0,0,0,0),(0,o.clean)(this.buffer)}}t.MD5=f,t.md5=(0,o.createHasher)(()=>new f);const p=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),m=(()=>Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)))(),b=(()=>m.map(e=>(9*e+5)%16))(),y=(()=>{const e=[[m],[b]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>p[e]));return e})(),h=(()=>y[0])(),g=(()=>y[1])(),v=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),E=h.map((e,t)=>e.map(e=>v[t][e])),w=g.map((e,t)=>e.map(e=>v[t][e])),x=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),P=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function I(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}const T=new Uint32Array(16);class A extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:n,h4:o}=this;return[e,t,r,n,o]}set(e,t,r,n,o){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)T[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,i=a,s=0|this.h2,c=s,u=0|this.h3,d=u,l=0|this.h4,f=l;for(let e=0;e<5;e++){const t=4-e,p=x[e],m=P[e],b=h[e],y=g[e],v=E[e],A=w[e];for(let t=0;t<16;t++){const n=(0,o.rotl)(r+I(e,a,s,u)+T[b[t]]+p,v[t])+l|0;r=l,l=u,u=0|(0,o.rotl)(s,10),s=a,a=n}for(let e=0;e<16;e++){const r=(0,o.rotl)(n+I(t,i,c,d)+T[y[e]]+m,A[e])+f|0;n=f,f=d,d=0|(0,o.rotl)(c,10),c=i,i=r}}this.set(this.h1+s+d|0,this.h2+u+f|0,this.h3+l+n|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){(0,o.clean)(T)}destroy(){this.destroyed=!0,(0,o.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=A,t.ripemd160=(0,o.createHasher)(()=>new A)},1851:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noble=void 0,t.createKeyPair=function(e={}){const{as:t="Hex"}=e,r=d({as:t});return{privateKey:r,publicKey:u({privateKey:r})}},t.getPublicKey=u,t.getSharedSecret=function(e){const{as:t="Hex",privateKey:r,publicKey:o}=e,a=n.secp256k1.ProjectivePoint.fromHex(c.toHex(o).slice(2)).multiply(n.secp256k1.utils.normPrivateKeyToScalar(i.from(r).slice(2))).toRawBytes(!0);return"Hex"===t?i.fromBytes(a):a},t.randomPrivateKey=d,t.recoverAddress=l,t.recoverPublicKey=f,t.sign=function(e){const{extraEntropy:t=s.extraEntropy,hash:r,payload:o,privateKey:c}=e,{r:u,s:d,recovery:l}=n.secp256k1.sign(a.from(o),a.from(c),{extraEntropy:"boolean"==typeof t?t:i.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:u,s:d,yParity:l}},t.verify=function(e){const{address:t,hash:r,payload:i,publicKey:s,signature:u}=e;return t?o.isEqual(t,l({payload:i,signature:u})):n.secp256k1.verify(u,a.from(i),c.toBytes(s),...r?[{prehash:!0,lowS:!0}]:[])};const n=r(8510),o=r(7179),a=r(3516),i=r(9274),s=r(8588),c=r(6259);function u(e){const{privateKey:t}=e,r=n.secp256k1.ProjectivePoint.fromPrivateKey(i.from(t).slice(2));return c.from(r)}function d(e={}){const{as:t="Hex"}=e,r=n.secp256k1.utils.randomPrivateKey();return"Hex"===t?i.fromBytes(r):r}function l(e){return o.fromPublicKey(f(e))}function f(e){const{payload:t,signature:r}=e,{r:o,s:a,yParity:s}=r,u=new n.secp256k1.Signature(BigInt(o),BigInt(a)).addRecoveryBit(s).recoverPublicKey(i.from(t).substring(2));return c.from(u)}t.noble=n.secp256k1},1861:(e,t)=>{function r(e){const r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),o=r(e,t.responseCache);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.responseCache=t.promiseCache=void 0,t.getCache=r,t.withCache=async function(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const o=r(t),a=o.response.get();if(a&&n>0&&Date.now()-a.created.getTime()<n)return a.data;let i=o.promise.get();i||(i=e(),o.promise.set(i));try{const e=await i;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}},t.promiseCache=new Map,t.responseCache=new Map},1877:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContract=function({abi:e,address:t,client:r}){const p=r,[m,b]=p?"public"in p&&"wallet"in p?[p.public,p.wallet]:"public"in p?[p.public,void 0]:"wallet"in p?[void 0,p.wallet]:[p,p]:[void 0,void 0],y=null!=m,h=null!=b,g={};let v=!1,E=!1,w=!1;for(const t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?v=!0:E=!0:"event"===t.type&&(w=!0),v&&E&&w)break;return y&&(v&&(g.read=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(m,s.readContract,"readContract")({abi:e,address:t,functionName:o,args:a,...i})}})),E&&(g.simulate=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(m,c.simulateContract,"simulateContract")({abi:e,address:t,functionName:o,args:a,...i})}})),w&&(g.createEventFilter=new Proxy({},{get:(r,a)=>(...r)=>{const i=e.find(e=>"event"===e.type&&e.name===a),{args:s,options:c}=f(r,i);return(0,n.getAction)(m,o.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:a,args:s,...c})}}),g.getEvents=new Proxy({},{get:(r,o)=>(...r)=>{const a=e.find(e=>"event"===e.type&&e.name===o),{args:s,options:c}=f(r,a);return(0,n.getAction)(m,i.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:o,args:s,...c})}}),g.watchEvent=new Proxy({},{get:(r,o)=>(...r)=>{const a=e.find(e=>"event"===e.type&&e.name===o),{args:i,options:s}=f(r,a);return(0,n.getAction)(m,u.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:o,args:i,...s})}}))),h&&E&&(g.write=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(b,d.writeContract,"writeContract")({abi:e,address:t,functionName:o,args:a,...i})}})),(y||h)&&E&&(g.estimateGas=new Proxy({},{get:(r,o)=>(...r)=>{const{args:i,options:s}=l(r),c=m??b;return(0,n.getAction)(c,a.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:o,args:i,...s,account:s.account??b.account})}})),g.address=t,g.abi=e,g},t.getFunctionParameters=l,t.getEventParameters=f;const n=r(6207),o=r(2349),a=r(5304),i=r(7962),s=r(5275),c=r(6705),u=r(8714),d=r(6160);function l(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;return Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0),{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}},1881:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=async function(e){return await e.request({method:"txpool_content"})}},1902:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=function(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[o,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${o||"0"}${a?`.${a}`:""}`}},1923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;const n=r(821);class o extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=a;class i extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=i},1926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignature=function({r:e,s:t,to:r="hex",v:i,yParity:s}){const c=(()=>{if(0===s||1===s)return s;if(i&&(27n===i||28n===i||i>=35n))return i%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),u=`0x${new n.secp256k1.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(t)).toCompactHex()}${0===c?"1b":"1c"}`;return"hex"===r?u:(0,a.hexToBytes)(u)};const n=r(8510),o=r(294),a=r(7655)},1967:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumWallet=void 0;class r{constructor(){this.account=null,this.chainId=null}static isMetaMaskInstalled(){return"undefined"!=typeof window&&void 0!==window.ethereum&&window.ethereum.isMetaMask}async connect(){if("undefined"==typeof window)throw new Error("EthereumWallet: Browser environment required");if(!r.isMetaMaskInstalled())throw new Error("MetaMask is not installed. Please install MetaMask extension from https://metamask.io/");const e=window.ethereum;try{const t=await e.request({method:"eth_requestAccounts"});if(!t||0===t.length)throw new Error("No accounts found. Please unlock MetaMask and try again.");const r=await e.request({method:"eth_chainId"});return this.account={address:t[0],chainId:r},this.chainId=r,e.on("accountsChanged",this.handleAccountsChanged.bind(this)),e.on("chainChanged",this.handleChainChanged.bind(this)),this.account}catch(e){if(4001===e.code)throw new Error("User rejected the connection request");throw new Error(`Failed to connect to MetaMask: ${e.message||e}`)}}getAccount(){return this.account}getChainId(){return this.chainId}isConnected(){return null!==this.account}disconnect(){this.account=null,this.chainId=null}getProvider(){return"undefined"==typeof window?null:window.ethereum}handleAccountsChanged(e){0===e.length?this.disconnect():this.account&&e[0]!==this.account.address&&(this.account.address=e[0])}handleChainChanged(e){this.chainId=e,this.account&&(this.account.chainId=e)}}t.EthereumWallet=r},1980:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCode=async function(e,{address:t,blockNumber:r,blockTag:o="latest"}){const a=void 0!==r?(0,n.numberToHex)(r):void 0,i=await e.request({method:"eth_getCode",params:[t,a||o]},{dedupe:Boolean(a)});return"0x"===i?void 0:i};const n=r(985)},1998:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=async function(e,{address:t,blockTag:r="latest",blockNumber:a}){const i=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof a?(0,o.numberToHex)(a):r]},{dedupe:Boolean(a)});return(0,n.hexToNumber)(i)};const n=r(294),o=r(985)},2026:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=function(e){let t="";const r=e.length;for(let o=0;o<r;o++){const a=e[o];t+=(0,n.formatAbiParameter)(a),o!==r-1&&(t+=", ")}return t};const n=r(7087)},2034:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleFailedError=void 0;const n=r(6246);class o extends n.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}t.BundleFailedError=o},2037:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTypeError=t.InvalidArrayError=t.LengthMismatchError=t.BytesSizeMismatchError=t.ArrayLengthMismatchError=t.ZeroDataError=t.DataSizeTooSmallError=void 0,t.decode=function(e,t,r={}){const{as:n="Array",checksumAddress:o=!1}=r,i="string"==typeof t?a.fromHex(t):t,d=u.create(i);if(0===a.size(i)&&e.length>0)throw new p;if(a.size(i)&&a.size(i)<32)throw new f({data:"string"==typeof t?t:s.fromBytes(t),parameters:e,size:a.size(i)});let l=0;const m="Array"===n?[]:{};for(let t=0;t<e.length;++t){const r=e[t];d.setPosition(l);const[a,i]=c.decodeParameter(d,r,{checksumAddress:o,staticPosition:0});l+=i,"Array"===n?m.push(a):m[r.name??t]=a}return m},t.encode=function(e,t,r){const{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});const o=c.prepareParameters({checksumAddress:n,parameters:e,values:t}),a=c.encode(o);return 0===a.length?"0x":a},t.encodePacked=l,t.format=function(e){return n.formatAbiParameters(e)},t.from=function(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?n.parseAbiParameters(e):e};const n=r(6524),o=r(7179),a=r(3516),i=r(7560),s=r(9274),c=r(9495),u=r(1059),d=r(6625);function l(e,t){if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const o=e[n],a=t[n];r.push(l.encode(o,a))}return s.concat(...r)}!function(e){e.encode=function e(t,r,n=!1){if("address"===t){const e=r;return o.assert(e),s.padLeft(e.toLowerCase(),n?32:0)}if("string"===t)return s.fromString(r);if("bytes"===t)return r;if("bool"===t)return s.padLeft(s.fromBoolean(r),n?32:1);const a=t.match(d.integerRegex);if(a){const[e,t,o="256"]=a,i=Number.parseInt(o,10)/8;return s.fromNumber(r,{size:n?32:i,signed:"int"===t})}const i=t.match(d.bytesRegex);if(i){const[e,t]=i;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new b({expectedSize:Number.parseInt(t,10),value:r});return s.padRight(r,n?32:0)}const c=t.match(d.arrayRegex);if(c&&Array.isArray(r)){const[t,n]=c,o=[];for(let t=0;t<r.length;t++)o.push(e(n,r[t],!0));return 0===o.length?"0x":s.concat(...o)}throw new g(t)}}(l||(t.encodePacked=l={}));class f extends i.BaseError{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n.formatAbiParameters(t)})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}t.DataSizeTooSmallError=f;class p extends i.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}t.ZeroDataError=p;class m extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}t.ArrayLengthMismatchError=m;class b extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${s.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}t.BytesSizeMismatchError=b;class y extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}t.LengthMismatchError=y;class h extends i.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}t.InvalidArrayError=h;class g extends i.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}t.InvalidTypeError=g},2057:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=function({chains:e,id:t}){return e.find(e=>e.id===t)}},2071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=async function(e,{blockHash:t,blockNumber:r,blockTag:a="latest"}={}){const i=void 0!==r?(0,o.numberToHex)(r):void 0;let s;return s=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||a]},{dedupe:Boolean(i)}),(0,n.hexToNumber)(s)};const n=r(294),o=r(985)},2093:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupCache=t.listenersCache=void 0,t.observe=function(e,n,o){const a=++r,i=()=>t.listenersCache.get(e)||[],s=()=>{const r=i();if(!r.some(e=>e.id===a))return;const n=t.cleanupCache.get(e);if(1===r.length&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}(()=>{const r=i();t.listenersCache.set(e,r.filter(e=>e.id!==a))})()},c=i();if(t.listenersCache.set(e,[...c,{id:a,fns:n}]),c&&c.length>0)return s;const u={};for(const e in n)u[e]=(...t)=>{const r=i();if(0!==r.length)for(const n of r)n.fns[e]?.(...t)};const d=o(u);return"function"==typeof d&&t.cleanupCache.set(e,d),s},t.listenersCache=new Map,t.cleanupCache=new Map;let r=0},2162:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},2202:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;const n=r(4900),o=r(6246),a=r(9382);class i extends o.BaseError{constructor({body:e,cause:t,details:r,headers:o,status:i,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,a.getUrl)(s)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=i,this.url=s}}t.HttpRequestError=i;class s extends o.BaseError{constructor({body:e,cause:t,details:r,url:o}){super("WebSocket request failed.",{cause:t,details:r,metaMessages:[`URL: ${(0,a.getUrl)(o)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=o}}t.WebSocketRequestError=s;class c extends o.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=r}}t.RpcRequestError=c;class u extends o.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,a.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}t.SocketClosedError=u;class d extends o.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}t.TimeoutError=d},2254:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateCalls=async function(e,t){const{blockNumber:r,blockTag:m,calls:b,stateOverrides:y,traceAssetChanges:h,traceTransfers:g,validation:v}=t,E=t.account?(0,a.parseAccount)(t.account):void 0;if(h&&!E)throw new c.BaseError("`account` is required when `traceAssetChanges` is true");const w=E?n.encode(n.from("constructor(bytes, bytes)"),{bytecode:s.deploylessCallViaBytecodeBytecode,args:[p,o.encodeData(o.from("function getBalance(address)"),[E.address])]}):void 0,x=h?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;const{accessList:r}=await(0,l.createAccessList)(e,{account:E.address,...t,data:t.abi?(0,u.encodeFunctionData)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],P=await(0,f.simulateBlocks)(e,{blockNumber:r,blockTag:m,blocks:[...h?[{calls:[{data:w}],stateOverrides:y},{calls:x.map((e,t)=>({abi:[o.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[E.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[],{calls:[...b,{}].map(e=>({...e,from:E?.address})),stateOverrides:y},...h?[{calls:[{data:w}]},{calls:x.map((e,t)=>({abi:[o.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[E.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function decimals() returns (uint256)")],functionName:"decimals",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function symbol() returns (string)")],functionName:"symbol",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[]],traceTransfers:g,validation:v}),I=h?P[2]:P[0],[T,A,,O,S,B,j,R]=h?P:[],{calls:_,...C}=I,M=_.slice(0,-1)??[],k=[...T?.calls??[],...A?.calls??[]].map(e=>"success"===e.status?(0,d.hexToBigInt)(e.data):null),F=[...O?.calls??[],...S?.calls??[]].map(e=>"success"===e.status?(0,d.hexToBigInt)(e.data):null),N=(B?.calls??[]).map(e=>"success"===e.status?e.result:null),U=(R?.calls??[]).map(e=>"success"===e.status?e.result:null),z=(j?.calls??[]).map(e=>"success"===e.status?e.result:null),H=[];for(const[e,t]of F.entries()){const r=k[e];if("bigint"!=typeof t)continue;if("bigint"!=typeof r)continue;const n=N[e-1],o=U[e-1],a=z[e-1],s=(()=>0===e?{address:i.ethAddress,decimals:18,symbol:"ETH"}:{address:x[e-1],decimals:a||n?Number(n??1):void 0,symbol:o??void 0})();H.some(e=>e.token.address===s.address)||H.push({token:s,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:H,block:C,results:M}};const n=r(2565),o=r(8609),a=r(9006),i=r(937),s=r(6590),c=r(6246),u=r(6144),d=r(4661),l=r(8907),f=r(253),p="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033"},2262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.localBatchGatewayUrl=void 0,t.localBatchGatewayRequest=async function e(r){const{data:c,ccipRequest:u}=r,{args:[d]}=(0,a.decodeFunctionData)({abi:n.batchGatewayAbi,data:c}),l=[],f=[];return await Promise.all(d.map(async(r,a)=>{try{f[a]=r.urls.includes(t.localBatchGatewayUrl)?await e({data:r.data,ccipRequest:u}):await u(r),l[a]=!1}catch(e){l[a]=!0,f[a]="HttpRequestError"===(s=e).name&&s.status?(0,i.encodeErrorResult)({abi:n.batchGatewayAbi,errorName:"HttpError",args:[s.status,s.shortMessage]}):(0,i.encodeErrorResult)({abi:[o.solidityError],errorName:"Error",args:["shortMessage"in s?s.shortMessage:s.message]})}var s})),(0,s.encodeFunctionResult)({abi:n.batchGatewayAbi,functionName:"query",result:[l,f]})};const n=r(3302),o=r(924),a=r(3064),i=r(7757),s=r(4829);t.localBatchGatewayUrl="x-batch-gateway:true"},2285:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length};const n=r(6015)},2318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=v,t.fromBig=o,t.split=a;const r=BigInt(2**32-1),n=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function a(e,t=!1){const r=e.length;let n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:r,l:s}=o(e[i],t);[n[i],a[i]]=[r,s]}return[n,a]}const i=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=i;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const d=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=d;const l=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=l;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const p=(e,t)=>t;t.rotr32H=p;const m=(e,t)=>e;t.rotr32L=m;const b=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=b;const y=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=y;const h=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=h;const g=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}t.rotlBL=g;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=E;const w=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=w;const x=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=x;const P=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;t.add4H=P;const I=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);t.add5L=I;const T=(e,t,r,n,o,a)=>t+r+n+o+a+(e/2**32|0)|0;t.add5H=T;const A={fromBig:o,split:a,toBig:i,shrSH:s,shrSL:c,rotrSH:u,rotrSL:d,rotrBH:l,rotrBL:f,rotr32H:p,rotr32L:m,rotlSH:b,rotlSL:y,rotlBH:h,rotlBL:g,add:v,add3L:E,add3H:w,add4L:x,add4H:P,add5H:T,add5L:I};t.default=A},2325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),a=Number(`0x${e.slice(130)}`),[i,s]=(()=>{if(0===a||1===a)return[void 0,a];if(27===a)return[BigInt(a),0];if(28===a)return[BigInt(a),1];throw new Error("Invalid yParityOrV value")})();return void 0!==i?{r:(0,o.numberToHex)(t,{size:32}),s:(0,o.numberToHex)(r,{size:32}),v:i,yParity:s}:{r:(0,o.numberToHex)(t,{size:32}),s:(0,o.numberToHex)(r,{size:32}),yParity:s}};const n=r(8510),o=r(985)},2326:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobs=function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,s.hexToBytes)(e.data):e.data,u=(0,i.size)(r);if(!u)throw new o.EmptyBlobError;if(u>n.maxBytesPerTransaction)throw new o.BlobSizeTooLargeError({maxSize:n.maxBytesPerTransaction,size:u});const d=[];let l=!0,f=0;for(;l;){const e=(0,a.createCursor)(new Uint8Array(n.bytesPerBlob));let t=0;for(;t<n.fieldElementsPerBlob;){const o=r.slice(f,f+(n.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(o),o.length<31){e.pushByte(128),l=!1;break}t++,f+=31}d.push(e)}return"bytes"===t?d.map(e=>e.bytes):d.map(e=>(0,c.bytesToHex)(e.bytes))};const n=r(9617),o=r(2592),a=r(6323),i=r(2285),s=r(7655),c=r(985)},2344:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withResolvers=function(){let e=()=>{},t=()=>{};return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}},2349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=async function(e,t){const{address:r,abi:i,args:s,eventName:c,fromBlock:u,strict:d,toBlock:l}=t,f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"}),p=c?(0,n.encodeEventTopics)({abi:i,args:s,eventName:c}):void 0,m=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,o.numberToHex)(l):l,topics:p}]});return{abi:i,args:s,eventName:c,id:m,request:f(m),strict:Boolean(d),type:"event"}};const n=r(378),o=r(985),a=r(3044)},2373:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=function(e){const{key:t="test",name:r="Test Client",mode:a}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend(e=>({mode:a,...(0,o.testActions)({mode:a})(e)}))};const n=r(8693),o=r(5079)},2374:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=async function({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await(0,o.recoverPublicKey)({hash:e,signature:t}))};const n=r(7911),o=r(3874)},2401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=async function(e,{blockHash:t,blockNumber:r,blockTag:i,hash:s,index:c,sender:u,nonce:d}){const l=i||"latest",f=void 0!==r?(0,o.numberToHex)(r):void 0;let p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,o.numberToHex)(c)]},{dedupe:!0}):(f||l)&&"number"==typeof c?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||l,(0,o.numberToHex)(c)]},{dedupe:Boolean(f)}):u&&"number"==typeof d&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[u,(0,o.numberToHex)(d)]},{dedupe:!0})),!p)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:l,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||a.formatTransaction)(p,"getTransaction")};const n=r(3727),o=r(985),a=r(9473)},2403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof n.UnknownNodeError?e:t})();return new o.TransactionExecutionError(i,{docsPath:t,...r})};const n=r(2731),o=r(3727),a=r(6339)},2407:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=async function(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})};const n=r(985)},2422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:s,hasPrecomputes:e=>1!==b(e),unsafeLadder(t,r,n=e.ZERO){let o=t;for(;r>a;)r&i&&(n=n.add(o)),o=o.double(),r>>=i;return n},precomputeWindow(e,r){const{windows:n,windowSize:o}=u(r,t),a=[];let i=e,s=i;for(let e=0;e<n;e++){s=i,a.push(s);for(let e=1;e<o;e++)s=s.add(i),a.push(s);i=s.double()}return a},wNAF(r,n,o){let a=e.ZERO,i=e.BASE;const c=u(r,t);for(let e=0;e<c.windows;e++){const{nextN:t,offset:r,isZero:u,isNeg:l,isNegF:f,offsetF:p}=d(o,e,c);o=t,u?i=i.add(s(f,n[p])):a=a.add(s(l,n[r]))}return{p:a,f:i}},wNAFUnsafe(r,n,o,i=e.ZERO){const s=u(r,t);for(let e=0;e<s.windows&&o!==a;e++){const{nextN:t,offset:r,isZero:a,isNeg:c}=d(o,e,s);if(o=t,!a){const e=n[r];i=i.add(c?e.negate():e)}}return i},getPrecomputes(e,t,r){let n=p.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&p.set(t,r(n))),n},wNAFCached(e,t,r){const n=b(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){const o=b(e);return 1===o?this.unsafeLadder(e,t,n):this.wNAFUnsafe(o,this.getPrecomputes(o,e,r),t,n)},setWindowSize(e,r){c(r,t),m.set(e,r),p.delete(e)}}},t.pippenger=function(e,t,r,n){l(r,e),f(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,c=(0,o.bitLen)(BigInt(a));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const d=(0,o.bitMask)(u),p=new Array(Number(d)+1).fill(s);let m=s;for(let e=Math.floor((t.BITS-1)/u)*u;e>=0;e-=u){p.fill(s);for(let t=0;t<i;t++){const o=n[t],a=Number(o>>BigInt(e)&d);p[a]=p[a].add(r[t])}let t=s;for(let e=p.length-1,r=s;e>0;e--)r=r.add(p[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<u;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,n){c(n,t.BITS),l(r,e);const a=e.ZERO,i=2**n-1,s=Math.ceil(t.BITS/n),u=(0,o.bitMask)(n),d=r.map(e=>{const t=[];for(let r=0,n=e;r<i;r++)t.push(n),n=n.add(e);return t});return e=>{if(f(e,t),e.length>r.length)throw new Error("array of scalars must be smaller than array of points");let o=a;for(let t=0;t<s;t++){if(o!==a)for(let e=0;e<n;e++)o=o.double();const r=BigInt(s*n-(t+1)*n);for(let t=0;t<e.length;t++){const n=e[t],a=Number(n>>r&u);a&&(o=o.add(d[t][a-1]))}}return o}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,o.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const n=r(4967),o=r(1484),a=BigInt(0),i=BigInt(1);function s(e,t){const r=t.negate();return e?r:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function u(e,t){c(e,t);const r=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,o.bitMask)(e),maxNumber:r,shiftBy:BigInt(e)}}function d(e,t,r){const{windowSize:n,mask:o,maxNumber:a,shiftBy:s}=r;let c=Number(e&o),u=e>>s;c>n&&(c-=a,u+=i);const d=t*n;return{nextN:u,offset:d+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:d}}function l(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)})}function f(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)})}const p=new WeakMap,m=new WeakMap;function b(e){return m.get(e)||1}},2461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionHash=void 0;var n=r(3239);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},2534:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCompactSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,o.numberToHex)(t,{size:32}),yParityAndS:(0,o.numberToHex)(r,{size:32})}};const n=r(8510),o=r(985)},2540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccountTypeNotSupportedError=t.AccountNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{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"})}}t.AccountNotFoundError=o;class a extends n.BaseError{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}t.AccountTypeNotSupportedError=a},2543:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.http=function(e,t={}){const{batch:r,fetchFn:c,fetchOptions:u,key:d="http",methods:l,name:f="HTTP JSON-RPC",onFetchRequest:p,onFetchResponse:m,retryDelay:b,raw:y}=t;return({chain:h,retryCount:g,timeout:v})=>{const{batchSize:E=1e3,wait:w=0}="object"==typeof r?r:{},x=t.retryCount??g,P=v??t.timeout??1e4,I=e||h?.rpcUrls.default.http[0];if(!I)throw new o.UrlRequiredError;const T=(0,i.getHttpRpcClient)(I,{fetchFn:c,fetchOptions:u,onRequest:p,onResponse:m,timeout:P});return(0,s.createTransport)({key:d,methods:l,name:f,async request({method:e,params:t}){const o={method:e,params:t},{schedule:i}=(0,a.createBatchScheduler)({id:I,wait:w,shouldSplitBatch:e=>e.length>E,fn:e=>T.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:s,result:c}]=await(async e=>r?i(e):[await T.request({body:e})])(o);if(y)return{error:s,result:c};if(s)throw new n.RpcRequestError({body:o,error:s,url:I});return c},retryCount:x,retryDelay:b,timeout:P,type:"http"},{fetchOptions:u,url:I})}};const n=r(2202),o=r(5446),a=r(5290),i=r(4017),s=r(922)},2550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=function(e){return{call:t=>(0,c.call)(e,t),createAccessList:t=>(0,u.createAccessList)(e,t),createBlockFilter:()=>(0,d.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,f.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,p.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,m.estimateContractGas)(e,t),estimateGas:t=>(0,y.estimateGas)(e,t),getBalance:t=>(0,v.getBalance)(e,t),getBlobBaseFee:()=>(0,E.getBlobBaseFee)(e),getBlock:t=>(0,w.getBlock)(e,t),getBlockNumber:t=>(0,x.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,P.getBlockTransactionCount)(e,t),getBytecode:t=>(0,T.getCode)(e,t),getChainId:()=>(0,I.getChainId)(e),getCode:t=>(0,T.getCode)(e,t),getContractEvents:t=>(0,A.getContractEvents)(e,t),getEip712Domain:t=>(0,O.getEip712Domain)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,o.getEnsAvatar)(e,t),getEnsName:t=>(0,a.getEnsName)(e,t),getEnsResolver:t=>(0,i.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,S.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,b.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,B.getFilterChanges)(e,t),getFilterLogs:t=>(0,j.getFilterLogs)(e,t),getGasPrice:()=>(0,R.getGasPrice)(e),getLogs:t=>(0,_.getLogs)(e,t),getProof:t=>(0,C.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,h.estimateMaxPriorityFeePerGas)(e,t),fillTransaction:t=>(0,g.fillTransaction)(e,t),getStorageAt:t=>(0,M.getStorageAt)(e,t),getTransaction:t=>(0,k.getTransaction)(e,t),getTransactionConfirmations:t=>(0,F.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,N.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,U.getTransactionReceipt)(e,t),multicall:t=>(0,z.multicall)(e,t),prepareTransactionRequest:t=>(0,te.prepareTransactionRequest)(e,t),readContract:t=>(0,H.readContract)(e,t),sendRawTransaction:t=>(0,re.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,ne.sendRawTransactionSync)(e,t),simulate:t=>(0,L.simulateBlocks)(e,t),simulateBlocks:t=>(0,L.simulateBlocks)(e,t),simulateCalls:t=>(0,D.simulateCalls)(e,t),simulateContract:t=>(0,$.simulateContract)(e,t),verifyHash:t=>(0,G.verifyHash)(e,t),verifyMessage:t=>(0,V.verifyMessage)(e,t),verifySiweMessage:t=>(0,ee.verifySiweMessage)(e,t),verifyTypedData:t=>(0,W.verifyTypedData)(e,t),uninstallFilter:t=>(0,q.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,K.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,J.watchBlocks)(e,t),watchBlockNumber:t=>(0,Z.watchBlockNumber)(e,t),watchContractEvent:t=>(0,Y.watchContractEvent)(e,t),watchEvent:t=>(0,X.watchEvent)(e,t),watchPendingTransactions:t=>(0,Q.watchPendingTransactions)(e,t)}};const n=r(4096),o=r(2899),a=r(4401),i=r(7112),s=r(3433),c=r(7141),u=r(8907),d=r(6194),l=r(2349),f=r(3383),p=r(9358),m=r(5304),b=r(8470),y=r(4678),h=r(4313),g=r(4158),v=r(7609),E=r(7403),w=r(5364),x=r(5729),P=r(2071),I=r(1093),T=r(1980),A=r(7962),O=r(405),S=r(6589),B=r(3590),j=r(1716),R=r(5651),_=r(9914),C=r(8171),M=r(7469),k=r(2401),F=r(6659),N=r(1998),U=r(6873),z=r(5996),H=r(5275),L=r(253),D=r(2254),$=r(6705),q=r(1541),G=r(8868),V=r(6377),W=r(9242),K=r(2917),Z=r(9828),J=r(5176),Y=r(8714),X=r(6047),Q=r(7150),ee=r(1692),te=r(8807),re=r(9085),ne=r(1714)},2565:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[s(t),r]}return e})(),{bytecode:n}=r;if(0===t.inputs?.length)return;const o=r.data.replace(n,"0x");return a.decode(t.inputs,o)},t.encode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[s(t),r]}return e})(),{bytecode:n,args:o}=r;return i.concat(n,t.inputs?.length&&o?.length?a.encode(t.inputs,o):"0x")},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e){return o.from(e)},t.fromAbi=s;const n=r(6524),o=r(9626),a=r(2037),i=r(9274);function s(e){const t=e.find(e=>"constructor"===e.type);if(!t)throw new o.NotFoundError({name:"constructor"});return t}},2592:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersionedHashVersionError=t.InvalidVersionedHashSizeError=t.EmptyBlobError=t.BlobSizeTooLargeError=void 0;const n=r(975),o=r(6246);class a extends o.BaseError{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}t.BlobSizeTooLargeError=a;class i extends o.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}t.EmptyBlobError=i;class s extends o.BaseError{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}t.InvalidVersionedHashSizeError=s;class c extends o.BaseError{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.versionedHashVersionKzg}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}t.InvalidVersionedHashVersionError=c},2599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc6492Signature=function(e){const{address:t,data:r,signature:s,to:c="hex"}=e,u=(0,a.concatHex)([(0,o.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,s]),n.erc6492MagicBytes]);return"hex"===c?u:(0,i.hexToBytes)(u)};const n=r(9494),o=r(2732),a=r(6776),i=r(7655)},2603:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt8=t.universalSignatureValidatorByteCode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=t.zeroHash=t.zeroAddress=t.ethAddress=t.multicall3Abi=t.universalSignatureValidatorAbi=t.erc6492SignatureValidatorAbi=t.erc4626Abi=t.erc1155Abi=t.erc721Abi=t.erc20Abi_bytes32=t.erc20Abi=t.webSocket=t.http=t.shouldThrow=t.fallback=t.custom=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createWalletClient=t.createTestClient=t.createPublicClient=t.rpcSchema=t.createClient=t.WaitForCallsStatusTimeoutError=t.getContract=t.UnknownTypeError=t.UnknownSignatureError=t.SolidityProtectedKeywordError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.InvalidAbiItemError=t.CircularReferenceError=void 0,t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=void 0,t.AbiConstructorNotFoundError=t.weiUnits=t.gweiUnits=t.etherUnits=t.presignMessagePrefix=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=void 0,t.EnsAvatarUriResolutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.BundleFailedError=t.BlockNotFoundError=t.setErrorConfig=t.BaseError=t.InvalidAddressError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=void 0,t.UnsupportedProviderMethodError=t.UnsupportedNonOptionalCapabilityError=t.UnsupportedChainIdError=t.UnknownRpcError=t.UnknownBundleIdError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.DuplicateIdError=t.ChainDisconnectedError=t.BundleTooLargeError=t.AtomicReadyWalletRejectedUpgradeError=t.AtomicityNotSupportedError=t.WebSocketRequestError=t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.HttpRequestError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.FilterTypeNotSupportedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.EstimateGasExecutionError=t.EnsInvalidChainIdError=void 0,t.toBlobs=t.toBlobSidecars=t.sidecarsToVersionedHashes=t.fromBlobs=t.commitmentToVersionedHash=t.commitmentsToVersionedHashes=t.blobsToProofs=t.blobsToCommitments=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.checksumAddress=t.prepareEncodeFunctionData=t.parseEventLogs=t.getAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.EIP1193ProviderRpcError=t.InvalidDecimalNumberError=t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=t.UrlRequiredError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.StateAssignmentConflictError=t.AccountStateConflictError=t.UserRejectedRequestError=void 0,t.toCoinType=t.namehash=t.labelhash=t.toRlp=t.hexToRlp=t.bytesToRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.extendSchema=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=void 0,t.recoverTransactionAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseSignature=t.hexToSignature=t.parseErc8010Signature=t.parseErc6492Signature=t.parseCompactSignature=t.hexToCompactSignature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashDomain=t.hashMessage=t.compactSignatureToSignature=t.withTimeout=t.withRetry=t.withCache=t.nonceManager=t.createNonceManager=t.setupKzg=t.defineKzg=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=t.ripemd160=t.keccak256=t.isHash=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.formatBlock=t.defineBlock=t.getContractError=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=t.validateTypedData=t.serializeTypedData=t.getTypesForEIP712Domain=t.domainSeparator=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.toPrefixedMessage=t.signatureToCompactSignature=t.serializeSignature=t.signatureToHex=t.serializeErc8010Signature=t.serializeErc6492Signature=t.serializeCompactSignature=t.compactSignatureToHex=t.recoverTypedDataAddress=void 0;var n=r(6524);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}});var o=r(1877);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return o.getContract}});var a=r(138);Object.defineProperty(t,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return a.WaitForCallsStatusTimeoutError}});var i=r(8693);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return i.createClient}}),Object.defineProperty(t,"rpcSchema",{enumerable:!0,get:function(){return i.rpcSchema}});var s=r(5208);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var c=r(2373);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return c.createTestClient}});var u=r(3756);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return u.createWalletClient}});var d=r(2550);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var l=r(5079);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return l.testActions}});var f=r(7106);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var p=r(922);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var m=r(1792);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return m.custom}});var b=r(3801);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return b.fallback}}),Object.defineProperty(t,"shouldThrow",{enumerable:!0,get:function(){return b.shouldThrow}});var y=r(2543);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return y.http}});var h=r(8612);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return h.webSocket}});var g=r(3302);Object.defineProperty(t,"erc20Abi",{enumerable:!0,get:function(){return g.erc20Abi}}),Object.defineProperty(t,"erc20Abi_bytes32",{enumerable:!0,get:function(){return g.erc20Abi_bytes32}}),Object.defineProperty(t,"erc721Abi",{enumerable:!0,get:function(){return g.erc721Abi}}),Object.defineProperty(t,"erc1155Abi",{enumerable:!0,get:function(){return g.erc1155Abi}}),Object.defineProperty(t,"erc4626Abi",{enumerable:!0,get:function(){return g.erc4626Abi}}),Object.defineProperty(t,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return g.multicall3Abi}});var v=r(937);Object.defineProperty(t,"ethAddress",{enumerable:!0,get:function(){return v.ethAddress}}),Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return v.zeroAddress}});var E=r(9494);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return E.zeroHash}});var w=r(6590);Object.defineProperty(t,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return w.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(t,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return w.deploylessCallViaFactoryBytecode}}),Object.defineProperty(t,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return w.erc6492SignatureValidatorByteCode}}),Object.defineProperty(t,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return w.erc6492SignatureValidatorByteCode}});var x=r(2856);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return x.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return x.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return x.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return x.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return x.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return x.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return x.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return x.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return x.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return x.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return x.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return x.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return x.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return x.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return x.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return x.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return x.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return x.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return x.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return x.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return x.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return x.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return x.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return x.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return x.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return x.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return x.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return x.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return x.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return x.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return x.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return x.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return x.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return x.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return x.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return x.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return x.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return x.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return x.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return x.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return x.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return x.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return x.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return x.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return x.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return x.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return x.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return x.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return x.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return x.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return x.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return x.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return x.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return x.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return x.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return x.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return x.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return x.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return x.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return x.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return x.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return x.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return x.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return x.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return x.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return x.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return x.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return x.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return x.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return x.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return x.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return x.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return x.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return x.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return x.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return x.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return x.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return x.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return x.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return x.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return x.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return x.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return x.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return x.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return x.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return x.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return x.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return x.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return x.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return x.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return x.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return x.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return x.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return x.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return x.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return x.minInt256}});var P=r(4019);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return P.presignMessagePrefix}});var I=r(4839);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return I.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return I.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return I.weiUnits}});var T=r(6953);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return T.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return T.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return T.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return T.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return T.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return T.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return T.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return T.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return T.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return T.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return T.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return T.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return T.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return T.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return T.UnsupportedPackedAbiType}});var A=r(6311);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return A.InvalidAddressError}});var O=r(6246);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return O.BaseError}}),Object.defineProperty(t,"setErrorConfig",{enumerable:!0,get:function(){return O.setErrorConfig}});var S=r(9642);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return S.BlockNotFoundError}});var B=r(2034);Object.defineProperty(t,"BundleFailedError",{enumerable:!0,get:function(){return B.BundleFailedError}});var j=r(4698);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return j.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return j.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return j.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return j.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return j.InvalidChainIdError}});var R=r(7677);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return R.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return R.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return R.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return R.ContractFunctionZeroDataError}}),Object.defineProperty(t,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return R.CounterfactualDeploymentFailedError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return R.RawContractError}});var _=r(5375);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return _.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return _.SliceOffsetOutOfBoundsError}});var C=r(5366);Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return C.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return C.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return C.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return C.InvalidHexValueError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return C.SizeOverflowError}});var M=r(8047);Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return M.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return M.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return M.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return M.EnsInvalidChainIdError}});var k=r(5772);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return k.EstimateGasExecutionError}});var F=r(9143);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return F.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return F.Eip1559FeesNotSupportedError}}),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return F.MaxFeePerGasTooLowError}});var N=r(6861);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return N.FilterTypeNotSupportedError}});var U=r(2731);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return U.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return U.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return U.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return U.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return U.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return U.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return U.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return U.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return U.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return U.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return U.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return U.UnknownNodeError}});var z=r(2202);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return z.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return z.RpcRequestError}}),Object.defineProperty(t,"SocketClosedError",{enumerable:!0,get:function(){return z.SocketClosedError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return z.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return z.WebSocketRequestError}});var H=r(7992);Object.defineProperty(t,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return H.AtomicityNotSupportedError}}),Object.defineProperty(t,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return H.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(t,"BundleTooLargeError",{enumerable:!0,get:function(){return H.BundleTooLargeError}}),Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return H.ChainDisconnectedError}}),Object.defineProperty(t,"DuplicateIdError",{enumerable:!0,get:function(){return H.DuplicateIdError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return H.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return H.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return H.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return H.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return H.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return H.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return H.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return H.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return H.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return H.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return H.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return H.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return H.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return H.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return H.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return H.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return H.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownBundleIdError",{enumerable:!0,get:function(){return H.UnknownBundleIdError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return H.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedChainIdError",{enumerable:!0,get:function(){return H.UnsupportedChainIdError}}),Object.defineProperty(t,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return H.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return H.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return H.UserRejectedRequestError}});var L=r(6254);Object.defineProperty(t,"AccountStateConflictError",{enumerable:!0,get:function(){return L.AccountStateConflictError}}),Object.defineProperty(t,"StateAssignmentConflictError",{enumerable:!0,get:function(){return L.StateAssignmentConflictError}});var D=r(3727);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return D.FeeConflictError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return D.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return D.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return D.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return D.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return D.InvalidStorageKeySizeError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return D.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return D.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return D.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return D.WaitForTransactionReceiptTimeoutError}});var $=r(5446);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return $.UrlRequiredError}});var q=r(6651);Object.defineProperty(t,"InvalidDomainError",{enumerable:!0,get:function(){return q.InvalidDomainError}}),Object.defineProperty(t,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return q.InvalidPrimaryTypeError}}),Object.defineProperty(t,"InvalidStructTypeError",{enumerable:!0,get:function(){return q.InvalidStructTypeError}});var G=r(233);Object.defineProperty(t,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return G.InvalidDecimalNumberError}});var V=r(6825);Object.defineProperty(t,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return V.ProviderRpcError}});var W=r(4612);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return W.decodeAbiParameters}});var K=r(7575);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return K.decodeDeployData}});var Z=r(8181);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return Z.decodeErrorResult}});var J=r(8182);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return J.decodeEventLog}});var Y=r(3064);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return Y.decodeFunctionData}});var X=r(7541);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return X.decodeFunctionResult}});var Q=r(2732);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Q.encodeAbiParameters}});var ee=r(4687);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return ee.encodeDeployData}});var te=r(7757);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return te.encodeErrorResult}});var re=r(378);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return re.encodeEventTopics}});var ne=r(6144);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return ne.encodeFunctionData}});var oe=r(4829);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return oe.encodeFunctionResult}});var ae=r(5020);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return ae.encodePacked}});var ie=r(775);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return ie.getAbiItem}});var se=r(48);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return se.parseEventLogs}});var ce=r(5913);Object.defineProperty(t,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return ce.prepareEncodeFunctionData}});var ue=r(8728);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return ue.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return ue.getAddress}});var de=r(8666);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return de.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return de.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return de.getCreateAddress}});var le=r(9742);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return le.isAddress}});var fe=r(4324);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return fe.isAddressEqual}});var pe=r(5956);Object.defineProperty(t,"blobsToCommitments",{enumerable:!0,get:function(){return pe.blobsToCommitments}});var me=r(3611);Object.defineProperty(t,"blobsToProofs",{enumerable:!0,get:function(){return me.blobsToProofs}});var be=r(4445);Object.defineProperty(t,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return be.commitmentsToVersionedHashes}});var ye=r(4143);Object.defineProperty(t,"commitmentToVersionedHash",{enumerable:!0,get:function(){return ye.commitmentToVersionedHash}});var he=r(5201);Object.defineProperty(t,"fromBlobs",{enumerable:!0,get:function(){return he.fromBlobs}});var ge=r(7919);Object.defineProperty(t,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return ge.sidecarsToVersionedHashes}});var ve=r(3339);Object.defineProperty(t,"toBlobSidecars",{enumerable:!0,get:function(){return ve.toBlobSidecars}});var Ee=r(2326);Object.defineProperty(t,"toBlobs",{enumerable:!0,get:function(){return Ee.toBlobs}});var we=r(5678);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return we.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return we.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return we.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return we.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return we.offchainLookupSignature}});var xe=r(2779);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return xe.assertCurrentChain}});var Pe=r(5731);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return Pe.defineChain}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return Pe.extendSchema}});var Ie=r(2057);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return Ie.extractChain}});var Te=r(3454);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return Te.getChainContractAddress}});var Ae=r(6776);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return Ae.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return Ae.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return Ae.concatHex}});var Oe=r(7085);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return Oe.isBytes}});var Se=r(6015);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return Se.isHex}});var Be=r(8987);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return Be.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return Be.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return Be.padHex}});var je=r(2285);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return je.size}});var Re=r(7688);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return Re.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return Re.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return Re.sliceHex}});var _e=r(7488);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return _e.trim}});var Ce=r(4592);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return Ce.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return Ce.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return Ce.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return Ce.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return Ce.fromBytes}});var Me=r(294);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Me.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Me.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Me.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Me.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Me.hexToString}});var ke=r(7349);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return ke.fromRlp}});var Fe=r(7655);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Fe.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Fe.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Fe.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Fe.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Fe.toBytes}});var Ne=r(985);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Ne.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Ne.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Ne.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Ne.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Ne.toHex}});var Ue=r(7926);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return Ue.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return Ue.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return Ue.toRlp}});var ze=r(3484);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return ze.labelhash}});var He=r(4931);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return He.namehash}});var Le=r(5448);Object.defineProperty(t,"toCoinType",{enumerable:!0,get:function(){return Le.toCoinType}});var De=r(6173);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return De.getContractError}});var $e=r(8900);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return $e.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return $e.formatBlock}});var qe=r(95);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return qe.formatLog}});var Ge=r(9473);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return Ge.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return Ge.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return Ge.transactionType}});var Ve=r(4537);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return Ve.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return Ve.formatTransactionReceipt}});var We=r(4712);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return We.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return We.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return We.rpcTransactionType}});var Ke=r(4624);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return Ke.isHash}});var Ze=r(3625);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return Ze.keccak256}});var Je=r(2830);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return Je.ripemd160}});var Ye=r(7415);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return Ye.sha256}});var Xe=r(325);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return Xe.toEventHash}});var Qe=r(7144);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return Qe.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return Qe.toEventSelector}});var et=r(3467);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return et.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return et.toEventSignature}});var tt=r(2461);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return tt.toFunctionHash}});var rt=r(1456);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return rt.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return rt.toFunctionSelector}});var nt=r(8611);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return nt.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return nt.toFunctionSignature}});var ot=r(2843);Object.defineProperty(t,"defineKzg",{enumerable:!0,get:function(){return ot.defineKzg}});var at=r(8287);Object.defineProperty(t,"setupKzg",{enumerable:!0,get:function(){return at.setupKzg}});var it=r(1519);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return it.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return it.nonceManager}});var st=r(1861);Object.defineProperty(t,"withCache",{enumerable:!0,get:function(){return st.withCache}});var ct=r(1525);Object.defineProperty(t,"withRetry",{enumerable:!0,get:function(){return ct.withRetry}});var ut=r(1208);Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return ut.withTimeout}});var dt=r(5970);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return dt.compactSignatureToSignature}});var lt=r(5336);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return lt.hashMessage}});var ft=r(9984);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return ft.hashDomain}}),Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return ft.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ft.hashTypedData}});var pt=r(2803);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return pt.isErc6492Signature}});var mt=r(527);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return mt.isErc8010Signature}});var bt=r(2534);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return bt.parseCompactSignature}}),Object.defineProperty(t,"parseCompactSignature",{enumerable:!0,get:function(){return bt.parseCompactSignature}});var yt=r(102);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return yt.parseErc6492Signature}});var ht=r(3198);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return ht.parseErc8010Signature}});var gt=r(2325);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return gt.parseSignature}}),Object.defineProperty(t,"parseSignature",{enumerable:!0,get:function(){return gt.parseSignature}});var vt=r(2374);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return vt.recoverAddress}});var Et=r(593);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return Et.recoverMessageAddress}});var wt=r(3874);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return wt.recoverPublicKey}});var xt=r(7572);Object.defineProperty(t,"recoverTransactionAddress",{enumerable:!0,get:function(){return xt.recoverTransactionAddress}});var Pt=r(7948);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Pt.recoverTypedDataAddress}});var It=r(155);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return It.serializeCompactSignature}}),Object.defineProperty(t,"serializeCompactSignature",{enumerable:!0,get:function(){return It.serializeCompactSignature}});var Tt=r(2599);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return Tt.serializeErc6492Signature}});var At=r(595);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return At.serializeErc8010Signature}});var Ot=r(1926);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return Ot.serializeSignature}}),Object.defineProperty(t,"serializeSignature",{enumerable:!0,get:function(){return Ot.serializeSignature}});var St=r(5190);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return St.signatureToCompactSignature}});var Bt=r(7707);Object.defineProperty(t,"toPrefixedMessage",{enumerable:!0,get:function(){return Bt.toPrefixedMessage}});var jt=r(5599);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return jt.verifyHash}});var Rt=r(8428);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Rt.verifyMessage}});var _t=r(4803);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return _t.verifyTypedData}});var Ct=r(4900);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return Ct.stringify}});var Mt=r(4969);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Mt.assertRequest}});var kt=r(7964);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return kt.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return kt.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return kt.assertTransactionLegacy}});var Ft=r(8465);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return Ft.getSerializedTransactionType}});var Nt=r(9788);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return Nt.getTransactionType}});var Ut=r(8057);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return Ut.parseTransaction}});var zt=r(1270);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return zt.serializeAccessList}});var Ht=r(5886);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return Ht.serializeTransaction}});var Lt=r(8377);Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return Lt.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Lt.getTypesForEIP712Domain}}),Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return Lt.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return Lt.validateTypedData}});var Dt=r(6117);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Dt.formatEther}});var $t=r(5277);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return $t.formatGwei}});var qt=r(1902);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return qt.formatUnits}});var Gt=r(2819);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return Gt.parseEther}});var Vt=r(7723);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Vt.parseGwei}});var Wt=r(4800);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return Wt.parseUnits}})},2623:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;const n=r(7076);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},2627:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=function(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null};const n=r(6015)},2731:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;const n=r(5277),o=r(6246);class a extends o.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}t.ExecutionRevertedError=a,Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class i extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}t.FeeCapTooHighError=i,Object.defineProperty(i,"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 s extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}t.FeeCapTooLowError=s,Object.defineProperty(s,"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 c extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}t.NonceTooHighError=c,Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends o.BaseError{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"})}}t.NonceTooLowError=u,Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class d extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}t.NonceMaxValueError=d,Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class l extends o.BaseError{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"})}}t.InsufficientFundsError=l,Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends o.BaseError{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"})}}t.IntrinsicGasTooHighError=f,Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends o.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}t.IntrinsicGasTooLowError=p,Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class m extends o.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}t.TransactionTypeNotSupportedError=m,Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends o.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}t.TipAboveFeeCapError=b,Object.defineProperty(b,"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 y extends o.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}t.UnknownNodeError=y},2732:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAbiParameters=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const r=b(function({params:e,values:t}){const r=[];for(let n=0;n<e.length;n++)r.push(m({param:e[n],value:t[n]}));return r}({params:e,values:t}));return 0===r.length?"0x":r},t.getArrayComponents=y;const n=r(6953),o=r(6311),a=r(6246),i=r(5366),s=r(9742),c=r(6776),u=r(8987),d=r(2285),l=r(7688),f=r(985),p=r(2162);function m({param:e,value:t}){const r=y(e.type);if(r){const[o,a]=r;return function(e,{length:t,param:r}){const o=null===t;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!o&&e.length!==t)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let a=!1;const i=[];for(let t=0;t<e.length;t++){const n=m({param:r,value:e[t]});n.dynamic&&(a=!0),i.push(n)}if(o||a){const e=b(i);if(o){const t=(0,f.numberToHex)(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?(0,c.concat)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.concat)(i.map(({encoded:e})=>e))}}(t,{length:o,param:{...e,type:a}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let o=0;o<t.components.length;o++){const a=t.components[o],i=m({param:a,value:e[Array.isArray(e)?o:a.name]});n.push(i),i.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(n):(0,c.concat)(n.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,s.isAddress)(e))throw new o.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,u.padHex)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new a.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.padHex)((0,f.boolToHex)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,n="256"]=p.integerRegex.exec(e.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new i.IntegerOutOfRangeError({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.numberToHex)(e,{size:32,signed:t})}}(t,{signed:r,size:Number(n)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,r]=t.type.split("bytes"),o=(0,d.size)(e);if(!r){let t=e;return o%32!=0&&(t=(0,u.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.concat)([(0,u.padHex)((0,f.numberToHex)(o,{size:32})),t])}}if(o!==Number.parseInt(r,10))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,u.padHex)(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=(0,f.stringToHex)(e),r=Math.ceil((0,d.size)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,u.padHex)((0,l.slice)(t,32*e,32*(e+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,c.concat)([(0,u.padHex)((0,f.numberToHex)((0,d.size)(t),{size:32})),...n])}}(t);throw new n.InvalidAbiEncodingTypeError(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function b(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:(0,d.size)(o)}const r=[],n=[];let o=0;for(let a=0;a<e.length;a++){const{dynamic:i,encoded:s}=e[a];i?(r.push((0,f.numberToHex)(t+o,{size:32})),n.push(s),o+=(0,d.size)(s)):r.push(s)}return(0,c.concat)([...r,...n])}function y(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},2779:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})};const n=r(4698)},2803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc6492Signature=function(e){return(0,o.sliceHex)(e,-32)===n.erc6492MagicBytes};const n=r(9494),o=r(7688)},2819:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=function(e,t="wei"){return(0,o.parseUnits)(e,n.etherUnits[t])};const n=r(4839),o=r(4800)},2820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=async function(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}},2830:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=function(e,t){const r=t||"hex",s=(0,n.ripemd160)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(3238),o=r(6015),a=r(7655),i=r(985)},2843:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineKzg=function({blobToKzgCommitment:e,computeBlobKzgProof:t}){return{blobToKzgCommitment:e,computeBlobKzgProof:t}}},2856:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},2873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc8010=void 0,t.SignatureErc8010=r(3502)},2897:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showCallsStatus=async function(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}},2899:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=async function(e,{blockNumber:t,blockTag:r,assetGatewayUrls:i,name:s,gatewayUrls:c,strict:u,universalResolverAddress:d}){const l=await(0,o.getAction)(e,a.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:d,gatewayUrls:c,strict:u});if(!l)return null;try{return await(0,n.parseAvatarRecord)(e,{record:l,gatewayUrls:i})}catch{return null}};const n=r(6545),o=r(6207),a=r(3433)},2917:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=async function(e,t){const{checkReplacement:r=!0,confirmations:m=1,hash:b,onReplaced:y,retryCount:h=6,retryDelay:g=({count:e})=>200*(1<<e),timeout:v=18e4}=t,E=(0,u.stringify)(["waitForTransactionReceipt",e.uid,b]),w=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval;let x,P,I,T,A,O=!1;const{promise:S,resolve:B,reject:j}=(0,s.withResolvers)(),R=v?setTimeout(()=>{A?.(),T?.(),j(new o.WaitForTransactionReceiptTimeoutError({hash:b}))},v):void 0;return T=(0,i.observe)(E,{onReplaced:y,resolve:B,reject:j},async t=>{if(I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:b}).catch(()=>{}),I&&m<=1)return clearTimeout(R),t.resolve(I),void T?.();A=(0,a.getAction)(e,p.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:w,async onBlockNumber(i){const s=e=>{clearTimeout(R),A?.(),e(),T?.()};let u=i;if(!O)try{if(I){if(m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;return void s(()=>t.resolve(I))}if(r&&!x&&(O=!0,await(0,c.withRetry)(async()=>{x=await(0,a.getAction)(e,l.getTransaction,"getTransaction")({hash:b}),x.blockNumber&&(u=x.blockNumber)},{delay:g,retryCount:h}),O=!1),I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:b}),m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;s(()=>t.resolve(I))}catch(r){if(r instanceof o.TransactionNotFoundError||r instanceof o.TransactionReceiptNotFoundError){if(!x)return void(O=!1);try{P=x,O=!0;const r=await(0,c.withRetry)(()=>(0,a.getAction)(e,d.getBlock,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:g,retryCount:h,shouldRetry:({error:e})=>e instanceof n.BlockNotFoundError});O=!1;const o=r.transactions.find(({from:e,nonce:t})=>e===P.from&&t===P.nonce);if(!o)return;if(I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:o.hash}),m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;let i="replaced";o.to===P.to&&o.value===P.value&&o.input===P.input?i="repriced":o.from===o.to&&0n===o.value&&(i="cancelled"),s(()=>{t.onReplaced?.({reason:i,replacedTransaction:P,transaction:o,transactionReceipt:I}),t.resolve(I)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(r))}}})}),S};const n=r(9642),o=r(3727),a=r(6207),i=r(2093),s=r(2344),c=r(1525),u=r(4900),d=r(5364),l=r(2401),f=r(6873),p=r(9828)},2926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.from=s,t.fromRpc=c,t.fromRpcList=function(e){return e.map(c)},t.fromTuple=u,t.fromTupleList=function(e){const t=[];for(const r of e)t.push(u(r));return t},t.getSignPayload=function(e){return d(e,{presign:!0})},t.hash=d,t.toRpc=l,t.toRpcList=function(e){return e.map(l)},t.toTuple=f,t.toTupleList=function(e){if(!e||0===e.length)return[];const t=[];for(const r of e)t.push(f(r));return t};const n=r(347),o=r(9274),a=r(3401),i=r(665);function s(e,t={}){return"string"==typeof e.chainId?c(e):{...e,...t.signature}}function c(e){const{address:t,chainId:r,nonce:n}=e,o=i.extract(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function u(e){const[t,r,n,o,a,c]=e;let u={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return o&&a&&c&&(u={...u,...i.fromTuple([o,a,c])}),s(u)}function d(e,t={}){const{presign:r}=t;return n.keccak256(o.concat("0x05",a.fromHex(f(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function l(e){const{address:t,chainId:r,nonce:n,...a}=e;return{address:t,chainId:o.fromNumber(r),nonce:o.fromNumber(n),...i.toRpc(a)}}function f(e){const{address:t,chainId:r,nonce:n}=e,a=i.extract(e);return[r?o.fromNumber(r):"0x",t,n?o.fromNumber(n):"0x",...a?i.toTuple(a):[]]}},2940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAuthorizationList=function(e){if(!e||0===e.length)return[];const t=[];for(const r of e){const{chainId:e,nonce:a,...i}=r,s=r.address;t.push([e?(0,n.toHex)(e):"0x",s,a?(0,n.toHex)(a):"0x",...(0,o.toYParitySignatureArray)({},i)])}return t};const n=r(985),o=r(5886)},2955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;const n=r(2318),o=r(9175),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),d=BigInt(113),l=[],f=[],p=[];for(let e=0,t=i,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],l.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let o=a;for(let e=0;e<7;e++)t=(t<<i^(t>>c)*d)%u,t&s&&(o^=i<<(i<<BigInt(e))-i);p.push(o)}const m=(0,n.split)(p,!0),b=m[0],y=m[1],h=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),g=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,o=(t+2)%10,a=r[o],i=r[o+1],s=h(a,i,1)^r[n],c=g(a,i,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],o=e[3];for(let r=0;r<24;r++){const n=f[r],a=h(t,o,n),i=g(t,o,n),s=l[r];t=e[s],o=e[s+1],e[s]=a,e[s+1]=i}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=y[n]}(0,o.clean)(r)}class E extends o.Hash{constructor(e,t,r,n=!1,a=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=r,this.enableXOF=n,this.rounds=a,(0,o.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,o.swap32IfBE)(this.state32),v(this.state32,this.rounds),(0,o.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,o.aexists)(this),e=(0,o.toBytes)(e),(0,o.abytes)(e);const{blockLen:t,state:r}=this,n=e.length;for(let o=0;o<n;){const a=Math.min(t-this.pos,n-o);for(let t=0;t<a;t++)r[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,o.aexists)(this,!1),(0,o.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,o=e.length;n<o;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,o-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,o.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,o.aoutput)(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,(0,o.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:o,enableXOF:a}=this;return e||(e=new E(t,r,n,a,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=n,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=E;const w=(e,t,r)=>(0,o.createHasher)(()=>new E(t,e,r));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);const x=(e,t,r)=>(0,o.createXOFer)((n={})=>new E(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},2967:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignature=void 0;const n=r(6524),o=r(4519);t.toSignature=e=>{const t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,o.normalizeSignature)(t)}},3044:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=function(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:o,transport:a})=>{"success"===o&&t===e&&(r[n]=a.request)}),t=>r[t]||e.request}},3064:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=function(e){const{abi:t,data:r}=e,c=(0,o.slice)(r,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,i.decodeAbiParameters)(u.inputs,(0,o.slice)(r,4)):void 0}};const n=r(6953),o=r(7688),a=r(1456),i=r(4612),s=r(4520)},3069:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;const n=r(6246);class o extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}t.NegativeOffsetError=o;class a extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=a;class i extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=i},3075:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isImageUri=u,t.getGateway=d,t.resolveAvatarUri=l,t.getJsonImage=f,t.getMetadataAvatarUri=async function({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(e=>e.json());return await p({gatewayUrls:e,uri:f(r)})}catch{throw new o.EnsAvatarUriResolutionError({uri:t})}},t.parseAvatarUri=p,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,a]=t.split("/"),[i,s]=r.split(":"),[c,u]=n.split(":");if(!i||"eip155"!==i.toLowerCase())throw new o.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new o.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!u)throw new o.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!a)throw new o.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!c)throw new o.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:c.toLowerCase(),contractAddress:u,tokenID:a}},t.getNftTokenUri=async function(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new o.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})};const n=r(5275),o=r(8047),a=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,i=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,c=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function u(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){return("object"!=typeof t||void 0===t.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(t=>{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function d(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function l({uri:e,gatewayUrls:t}){const r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=d(t?.ipfs,"https://ipfs.io"),u=d(t?.arweave,"https://arweave.net"),l=e.match(a),{protocol:f,subpath:p,target:m,subtarget:b=""}=l?.groups||{},y="ipns:/"===f||"ipns/"===p,h="ipfs:/"===f||"ipfs/"===p||i.test(e);if(e.startsWith("http")&&!y&&!h){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((y||h)&&m)return{uri:`${n}/${y?"ipns":"ipfs"}/${m}${b}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&m)return{uri:`${u}/${m}${b||""}`,isOnChain:!1,isEncoded:!1};let g=e.replace(c,"");if(g.startsWith("<svg")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith("data:")||g.startsWith("{"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new o.EnsAvatarUriResolutionError({uri:e})}function f(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o.EnsAvatarInvalidMetadataError({data:e});return e.image||e.image_url||e.image_data}async function p({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=l({uri:t,gatewayUrls:e});if(n)return r;if(await u(r))return r;throw new o.EnsAvatarUriResolutionError({uri:t})}},3119:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.1.1"},3137:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=async function(e,{account:t=e.account,message:r}){if(!t)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,n.parseAccount)(t);if(i.signMessage)return i.signMessage({message:r});const s="string"==typeof r?(0,a.stringToHex)(r):r.raw instanceof Uint8Array?(0,a.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,i.address]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(985)},3198:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc8010Signature=function(e){if(!(0,a.isErc8010Signature)(e))return{signature:e};const{authorization:t,to:r,...i}=n.SignatureErc8010.unwrap(e);return{authorization:{address:t.address,chainId:t.chainId,nonce:Number(t.nonce),r:(0,o.numberToHex)(t.r,{size:32}),s:(0,o.numberToHex)(t.s,{size:32}),yParity:t.yParity},...r?{address:r}:{},...i}};const n=r(2873),o=r(985),a=r(527)},3200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;const n=r(821);class o extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=a;class i extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=i},3238:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(1839);t.RIPEMD160=n.RIPEMD160,t.ripemd160=n.ripemd160},3239:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignatureHash=function(e){return(0,n.hashSignature)((0,o.toSignature)(e))};const n=r(8992),o=r(2967)},3302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.erc4626Abi=t.erc721Abi=t.erc1155Abi=t.erc20Abi_bytes32=t.erc20Abi=t.erc6492SignatureValidatorAbi=t.erc1271Abi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.batchGatewayAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],t.batchGatewayAbi=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}];const r=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.erc1271Abi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.erc6492SignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],t.erc20Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],t.erc20Abi_bytes32=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],t.erc1155Abi=[{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],t.erc721Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],t.erc4626Abi=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]},3339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobSidecars=function(e){const{data:t,kzg:r,to:i}=e,s=e.blobs??(0,a.toBlobs)({data:t,to:i}),c=e.commitments??(0,n.blobsToCommitments)({blobs:s,kzg:r,to:i}),u=e.proofs??(0,o.blobsToProofs)({blobs:s,commitments:c,kzg:r,to:i}),d=[];for(let e=0;e<s.length;e++)d.push({blob:s[e],commitment:c[e],proof:u[e]});return d};const n=r(5956),o=r(3611),a=r(2326)},3383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=async function(e,{address:t,args:r,event:i,events:s,fromBlock:c,strict:u,toBlock:d}={}){const l=s??(i?[i]:void 0),f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"});let p=[];if(l){const e=l.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}));p=[e],i&&(p=p[0])}const m=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,o.numberToHex)(c):c,toBlock:"bigint"==typeof d?(0,o.numberToHex)(d):d,...p.length?{topics:p}:{}}]});return{abi:l,args:r,eventName:i?i.name:void 0,fromBlock:c,id:m,request:f(m),strict:Boolean(u),toBlock:d,type:"event"}};const n=r(378),o=r(985),a=r(3044)},3401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e){return s(e,"Bytes")},t.toHex=function(e){return s(e,"Hex")},t.to=s,t.decodeRlpCursor=c,t.readLength=u,t.readList=d,t.from=l,t.fromBytes=function(e,t={}){const{as:r="Bytes"}=t;return l(e,{as:r})},t.fromHex=function(e,t={}){const{as:r="Hex"}=t;return l(e,{as:r})};const n=r(3516),o=r(7560),a=r(9274),i=r(1059);function s(e,t){const r=t??("string"==typeof e?"Hex":"Bytes"),o=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new a.InvalidLengthError(e);return n.fromHex(e)}return e})();return c(i.create(o,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r)}function c(e,t="Hex"){if(0===e.bytes.length)return"Hex"===t?a.fromBytes(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=u(e,r,128),o=e.readBytes(n);return"Hex"===t?a.fromBytes(o):o}return d(e,u(e,r,192),t)}function u(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new o.BaseError("Invalid RLP prefix")}function d(e,t,r){const n=e.position,o=[];for(;e.position-n<t;)o.push(c(e,r));return o}function l(e,t){const{as:r}=t,n=f(e),o=i.create(new Uint8Array(n.length));return n.encode(o),"Hex"===r?a.fromBytes(o.bytes):o.bytes}function f(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=p(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>f(e))):function(e){const t="string"==typeof e?n.fromHex(e):e,r=p(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+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+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function p(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new o.BaseError("Length is too large.")}},3433:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=async function(e,t){const{blockNumber:r,blockTag:m,key:b,name:y,gatewayUrls:h,strict:g}=t,{chain:v}=e,E=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),w=v?.ensTlds;if(w&&!w.some(e=>y.endsWith(e)))return null;try{const t={address:E,abi:n.universalResolverResolveAbi,args:[(0,s.toHex)((0,l.packetToBytes)(y)),(0,a.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,d.namehash)(y),b]}),h??[u.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:r,blockTag:m},i=(0,f.getAction)(e,p.readContract,"readContract"),c=await i(t);if("0x"===c[0])return null;const g=(0,o.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:c[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,c.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(7541),a=r(6144),i=r(3454),s=r(985),c=r(5971),u=r(2262),d=r(4931),l=r(846),f=r(6207),p=r(5275)},3454:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){const o=t?.contracts?.[r];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&o.blockCreated&&o.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:o.blockCreated}});return o.address};const n=r(4698)},3467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSignature=void 0;var n=r(2967);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return n.toSignature}})},3484:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=function(e){const t=new Uint8Array(32).fill(0);return e?(0,i.encodedLabelToLabelhash)(e)||(0,a.keccak256)((0,n.stringToBytes)(e)):(0,o.bytesToHex)(t)};const n=r(7655),o=r(985),a=r(3625),i=r(2627)},3502:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.suffixParameters=t.magicBytes=void 0,t.assert=u,t.from=function(e){return"string"==typeof e?d(e):e},t.unwrap=d,t.wrap=function(e){const{data:r,signature:a}=e;u(e);const d=s.recoverAddress({payload:o.getSignPayload(e.authorization),signature:c.from(e.authorization)}),l=n.encode(t.suffixParameters,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??d,r??"0x"]),f=i.fromNumber(i.size(l),{size:32});return i.concat(a,l,f,t.magicBytes)},t.validate=function(e){try{return u(e),!0}catch{return!1}};const n=r(2037),o=r(2926),a=r(7560),i=r(9274),s=r(1851),c=r(665);function u(e){if("string"==typeof e){if(i.slice(e,-32)!==t.magicBytes)throw new l(e)}else c.assert(e.authorization)}function d(e){u(e);const r=i.toNumber(i.slice(e,-64,-32)),a=i.slice(e,-r-64,-64),s=i.slice(e,0,-r-64),[c,d,l]=n.decode(t.suffixParameters,a);return{authorization:o.from({address:c.delegation,chainId:Number(c.chainId),nonce:c.nonce,yParity:c.yParity,r:c.r,s:c.s}),signature:s,...l&&"0x"!==l?{data:l,to:d}:{}}}t.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",t.suffixParameters=n.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");class l extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=l},3516:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidBytesTypeError=t.InvalidBytesBooleanError=void 0,t.assert=l,t.concat=function(...e){let t=0;for(const r of e)t+=r.length;const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r},t.from=function(e){return e instanceof Uint8Array?e:"string"==typeof e?p(e):f(e)},t.fromArray=f,t.fromBoolean=function(e,t={}){const{size:r}=t,n=new Uint8Array(1);return n[0]=Number(e),"number"==typeof r?(i.assertSize(n,r),m(n,r)):n},t.fromHex=p,t.fromNumber=function(e,t){return p(a.fromNumber(e,t))},t.fromString=function(e,t={}){const{size:r}=t,n=d.encode(e);return"number"==typeof r?(i.assertSize(n,r),b(n,r)):n},t.isEqual=function(e,t){return(0,n.equalBytes)(e,t)},t.padLeft=m,t.padRight=b,t.random=function(e){return crypto.getRandomValues(new Uint8Array(e))},t.size=function(e){return e.length},t.slice=function(e,t,r,n={}){const{strict:o}=n;i.assertStartOffset(e,t);const a=e.slice(t,r);return o&&i.assertEndOffset(a,t,r),a},t.toBigInt=function(e,t={}){const{size:r}=t;void 0!==r&&i.assertSize(e,r);const n=a.fromBytes(e,t);return a.toBigInt(n,t)},t.toBoolean=function(e,t={}){const{size:r}=t;let n=e;if(void 0!==r&&(i.assertSize(n,r),n=y(n)),n.length>1||n[0]>1)throw new g(n);return Boolean(n[0])},t.toHex=function(e,t={}){return a.fromBytes(e,t)},t.toNumber=function(e,t={}){const{size:r}=t;void 0!==r&&i.assertSize(e,r);const n=a.fromBytes(e,t);return a.toNumber(n,t)},t.toString=function(e,t={}){const{size:r}=t;let n=e;return void 0!==r&&(i.assertSize(n,r),n=h(n)),u.decode(n)},t.trimLeft=y,t.trimRight=h,t.validate=function(e){try{return l(e),!0}catch{return!1}};const n=r(1484),o=r(7560),a=r(9274),i=r(670),s=r(9588),c=r(5665),u=new TextDecoder,d=new TextEncoder;function l(e){if(!(e instanceof Uint8Array)){if(!e)throw new v(e);if("object"!=typeof e)throw new v(e);if(!("BYTES_PER_ELEMENT"in e))throw new v(e);if(1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name)throw new v(e)}}function f(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function p(e,t={}){const{size:r}=t;let n=e;r&&(s.assertSize(e,r),n=a.padRight(e,r));let c=n.slice(2);c.length%2&&(c=`0${c}`);const u=c.length/2,d=new Uint8Array(u);for(let e=0,t=0;e<u;e++){const r=i.charCodeToBase16(c.charCodeAt(t++)),n=i.charCodeToBase16(c.charCodeAt(t++));if(void 0===r||void 0===n)throw new o.BaseError(`Invalid byte sequence ("${c[t-2]}${c[t-1]}" in "${c}").`);d[e]=r<<4|n}return d}function m(e,t){return i.pad(e,{dir:"left",size:t})}function b(e,t){return i.pad(e,{dir:"right",size:t})}function y(e){return i.trim(e,{dir:"left"})}function h(e){return i.trim(e,{dir:"right"})}class g extends o.BaseError{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=g;class v extends o.BaseError{constructor(e){super(`Value \`${"object"==typeof e?c.stringify(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}t.InvalidBytesTypeError=v;class E extends o.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}t.SizeOverflowError=E;class w extends o.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=w;class x extends o.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=x},3562:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.createCurve=function(e,t){const r=t=>(0,a.weierstrass)({...e,...i(t)});return{...r(t),create:r}};const n=r(9615),o=r(9175),a=r(1705);function i(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,o.concatBytes)(...r)),randomBytes:o.randomBytes}}},3574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3590:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=async function(e,{filter:t}){const r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof a[0])return a;const i=a.map(e=>(0,o.formatLog)(e));return"abi"in t&&t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:i,strict:r}):i};const n=r(48),o=r(95)},3611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToProofs=function(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.hexToBytes)(e)):e.commitments,s=[];for(let e=0;e<a.length;e++){const r=a[e],n=i[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?s:s.map(e=>(0,o.bytesToHex)(e))};const n=r(7655),o=r(985)},3625:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t){const r=t||"hex",s=(0,n.keccak_256)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(2955),o=r(6015),a=r(7655),i=r(985)},3633:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc6492=void 0,t.SignatureErc6492=r(5118)},3642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof o.UnknownNodeError?e:t})();return new n.EstimateGasExecutionError(i,{docsPath:t,...r})};const n=r(5772),o=r(2731),a=r(6339)},3716:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseCache=void 0,t.withDedupe=function(e,{enabled:r=!0,id:n}){if(!r||!n)return e();if(t.promiseCache.get(n))return t.promiseCache.get(n);const o=e().finally(()=>t.promiseCache.delete(n));return t.promiseCache.set(n,o),o};const n=r(7848);t.promiseCache=new n.LruMap(8192)},3727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptRevertedError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=void 0,t.prettyPrint=i;const n=r(6117),o=r(5277),a=r(6246);function i(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends a.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}t.FeeConflictError=s;class c extends a.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class u extends a.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(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"})}}t.InvalidSerializableTransactionError=u;class d extends a.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=d;class l extends a.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=l;class f extends a.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class p extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:f,to:p,value:m}){const b=i({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:p,value:void 0!==m&&`${(0,n.formatEther)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",b].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.TransactionExecutionError=p;class m extends a.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:o}){let a="Transaction";r&&void 0!==o&&(a=`Transaction at block time "${r}" at index "${o}"`),e&&void 0!==o&&(a=`Transaction at block hash "${e}" at index "${o}"`),t&&void 0!==o&&(a=`Transaction at block number "${t}" at index "${o}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}t.TransactionNotFoundError=m;class b extends a.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=b;class y extends a.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}t.TransactionReceiptRevertedError=y;class h extends a.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=h},3756:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=function(e){const{key:t="wallet",name:r="Wallet Client",transport:a}=e;return(0,n.createClient)({...e,key:t,name:r,transport:a,type:"walletClient"}).extend(o.walletActions)};const n=r(8693),o=r(7106)},3801:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=function(e,t={}){const{key:r="fallback",name:n="Fallback",rank:o=!1,shouldThrow:a=s,retryCount:u,retryDelay:d}=t;return({chain:t,pollingInterval:s=4e3,timeout:l,...f})=>{let p=e,m=()=>{};const b=(0,i.createTransport)({key:r,name:n,async request({method:e,params:r}){let n;const o=async(i=0)=>{const s=p[i]({...f,chain:t,retryCount:0,timeout:l});try{const t=await s.request({method:e,params:r});return m({method:e,params:r,response:t,transport:s,status:"success"}),t}catch(c){if(m({error:c,method:e,params:r,transport:s,status:"error"}),a(c))throw c;if(i===p.length-1)throw c;if(n??=p.slice(i+1).some(r=>{const{include:n,exclude:o}=r({chain:t}).config.methods||{};return n?n.includes(e):!o||!o.includes(e)}),!n)throw c;return o(i+1)}};return o()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:e=>m=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(o){const e="object"==typeof o?o:{};c({chain:t,interval:e.interval??s,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return b}},t.shouldThrow=s,t.rankTransports=c;const n=r(2731),o=r(7992),a=r(8664),i=r(922);function s(e){return!(!("code"in e)||"number"!=typeof e.code||e.code!==o.TransactionRejectedRpcError.code&&e.code!==o.UserRejectedRequestError.code&&!n.ExecutionRevertedError.nodeMessage.test(e.message)&&5e3!==e.code)}function c({chain:e,interval:t=4e3,onTransports:r,ping:n,sampleCount:o=10,timeout:i=1e3,transports:s,weights:c={}}){const{stability:u=.7,latency:d=.3}=c,l=[],f=async()=>{const c=await Promise.all(s.map(async t=>{const r=t({chain:e,retryCount:0,timeout:i}),o=Date.now();let a,s;try{await(n?n({transport:r}):r.request({method:"net_listening"})),s=1}catch{s=0}finally{a=Date.now()}return{latency:a-o,success:s}}));l.push(c),l.length>o&&l.shift();const p=Math.max(...l.map(e=>Math.max(...e.map(({latency:e})=>e)))),m=s.map((e,t)=>{const r=l.map(e=>e[t].latency),n=1-r.reduce((e,t)=>e+t,0)/r.length/p,o=l.map(e=>e[t].success),a=o.reduce((e,t)=>e+t,0)/o.length;return 0===a?[0,t]:[d*n+u*a,t]}).sort((e,t)=>t[0]-e[0]);r(m.map(([,e])=>s[e])),await(0,a.wait)(t),f()};f()}},3874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=async function({hash:e,signature:t}){const c=(0,n.isHex)(e)?e:(0,i.toHex)(e),{secp256k1:u}=await Promise.resolve().then(()=>r(8510));return`0x${(()=>{if("object"==typeof t&&"r"in t&&"s"in t){const{r:e,s:r,v:n,yParity:o}=t,i=s(Number(o??n));return new u.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(r)).addRecoveryBit(i)}const e=(0,n.isHex)(t)?t:(0,i.toHex)(t);if(65!==(0,o.size)(e))throw new Error("invalid signature length");const r=s((0,a.hexToNumber)(`0x${e.slice(130)}`));return u.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(c.substring(2)).toHex(!1)}`};const n=r(6015),o=r(2285),a=r(294),i=r(985);function s(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error("Invalid yParityOrV value")}},3940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:o}){let a=!0;const i=()=>a=!1;return(async()=>{let s;t&&(s=await e({unpoll:i}));const c=await(r?.(s))??o;await(0,n.wait)(c);const u=async()=>{a&&(await e({unpoll:i}),await(0,n.wait)(o),u())};u()})(),i};const n=r(8664)},4017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHttpRpcClient=function(e,t={}){const{url:r,headers:c}=s(e);return{async request(e){const{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:d=t.onRequest,onResponse:l=t.onResponse,timeout:f=t.timeout??1e4}=e,p={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:m,method:b,signal:y}=p;try{const e=await(0,o.withTimeout)(async({signal:e})=>{const t={...p,body:Array.isArray(s)?(0,a.stringify)(s.map(e=>({jsonrpc:"2.0",id:e.id??i.idCache.take(),...e}))):(0,a.stringify)({jsonrpc:"2.0",id:s.id??i.idCache.take(),...s}),headers:{...c,"Content-Type":"application/json",...m},method:b||"POST",signal:y||(f>0?e:null)},n=new Request(r,t),o=await(d?.(n,t))??{...t,url:r};return await u(o.url??r,o)},{errorInstance:new n.TimeoutError({body:s,url:r}),timeout:f,signal:!0});let t;if(l&&await l(e),e.headers.get("Content-Type")?.startsWith("application/json"))t=await e.json();else{t=await e.text();try{t=JSON.parse(t||"{}")}catch(r){if(e.ok)throw r;t={error:t}}}if(!e.ok)throw new n.HttpRequestError({body:s,details:(0,a.stringify)(t.error)||e.statusText,headers:e.headers,status:e.status,url:r});return t}catch(e){if(e instanceof n.HttpRequestError)throw e;if(e instanceof n.TimeoutError)throw e;throw new n.HttpRequestError({body:s,cause:e,url:r})}}}},t.parseUrl=s;const n=r(2202),o=r(1208),a=r(4900),i=r(7440);function s(e){try{const t=new URL(e),r=(()=>{if(t.username){const e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}},4019:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="Ethereum Signed Message:\n"},4096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=async function(e,t){const{blockNumber:r,blockTag:b,coinType:y,name:h,gatewayUrls:g,strict:v}=t,{chain:E}=e,w=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!E)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:E,contract:"ensUniversalResolver"})})(),x=E?.ensTlds;if(x&&!x.some(e=>h.endsWith(e)))return null;const P=null!=y?[(0,l.namehash)(h),BigInt(y)]:[(0,l.namehash)(h)];try{const t=(0,a.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",args:P}),i={address:w,abi:n.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,c.toHex)((0,f.packetToBytes)(h)),t,g??[d.localBatchGatewayUrl]],blockNumber:r,blockTag:b},u=(0,p.getAction)(e,m.readContract,"readContract"),l=await u(i);if("0x"===l[0])return null;const y=(0,o.decodeFunctionResult)({abi:n.addressResolverAbi,args:P,functionName:"addr",data:l[0]});return"0x"===y||"0x00"===(0,s.trim)(y)?null:y}catch(e){if(v)throw e;if((0,u.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(7541),a=r(6144),i=r(3454),s=r(7488),c=r(985),u=r(5971),d=r(2262),l=r(4931),f=r(846),p=r(6207),m=r(5275)},4143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentToVersionedHash=function(e){const{commitment:t,version:r=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),i=(0,o.sha256)(t,"bytes");return i.set([r],0),"bytes"===a?i:(0,n.bytesToHex)(i)};const n=r(985),o=r(7415)},4158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fillTransaction=async function(e,t){const{account:r=e.account,accessList:p,authorizationList:m,chain:b=e.chain,blobVersionedHashes:y,blobs:h,data:g,gas:v,gasPrice:E,maxFeePerBlobGas:w,maxFeePerGas:x,maxPriorityFeePerGas:P,nonce:I,nonceManager:T,to:A,type:O,value:S,...B}=t,j=await(async()=>{if(!r)return I;if(!T)return I;if(void 0!==I)return I;const t=(0,n.parseAccount)(r),o=b?b.id:await(0,u.getAction)(e,f.getChainId,"getChainId")({});return await T.consume({address:t.address,chainId:o,client:e})})();(0,d.assertRequest)(t);const R=b?.formatters?.transactionRequest?.format,_=(R||c.formatTransactionRequest)({...(0,i.extract)(B,{format:R}),account:r?(0,n.parseAccount)(r):void 0,accessList:p,authorizationList:m,blobs:h,blobVersionedHashes:y,data:g,gas:v,gasPrice:E,maxFeePerBlobGas:w,maxFeePerGas:x,maxPriorityFeePerGas:P,nonce:j,to:A,type:O,value:S},"fillTransaction");try{const r=await e.request({method:"eth_fillTransaction",params:[_]}),n=(b?.formatters?.transaction?.format||s.formatTransaction)(r.tx);delete n.blockHash,delete n.blockNumber,delete n.r,delete n.s,delete n.transactionIndex,delete n.v,delete n.yParity,n.data=n.input,n.gas&&(n.gas=t.gas??n.gas),n.gasPrice&&(n.gasPrice=t.gasPrice??n.gasPrice),n.maxFeePerBlobGas&&(n.maxFeePerBlobGas=t.maxFeePerBlobGas??n.maxFeePerBlobGas),n.maxFeePerGas&&(n.maxFeePerGas=t.maxFeePerGas??n.maxFeePerGas),n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas??n.maxPriorityFeePerGas),n.nonce&&(n.nonce=t.nonce??n.nonce);const a=await(async()=>{if("function"==typeof b?.fees?.baseFeeMultiplier){const r=await(0,u.getAction)(e,l.getBlock,"getBlock")({});return b.fees.baseFeeMultiplier({block:r,client:e,request:t})}return b?.fees?.baseFeeMultiplier??1.2})();if(a<1)throw new o.BaseFeeScalarError;const i=10**(a.toString().split(".")[1]?.length??0),c=e=>e*BigInt(Math.ceil(a*i))/BigInt(i);return n.maxFeePerGas&&!t.maxFeePerGas&&(n.maxFeePerGas=c(n.maxFeePerGas)),n.gasPrice&&!t.gasPrice&&(n.gasPrice=c(n.gasPrice)),{raw:r.raw,transaction:{from:_.from,...n}}}catch(r){throw(0,a.getTransactionError)(r,{...t,chain:e.chain})}};const n=r(9006),o=r(9143),a=r(2403),i=r(796),s=r(9473),c=r(4712),u=r(6207),d=r(4969),l=r(5364),f=r(1093)},4178:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=function(e){const t=(0,o.parseStructs)(e),r=[],i=e.length;for(let o=0;o<i;o++){const i=e[o];(0,n.isStructSignature)(i)||r.push((0,a.parseSignature)(i,t))}return r};const n=r(6303),o=r(5324),a=r(6351)},4313:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateMaxPriorityFeePerGas=async function(e,t){return c(e,t)},t.internal_estimateMaxPriorityFeePerGas=c;const n=r(9143),o=r(294),a=r(6207),i=r(5364),s=r(5651);async function c(e,t){const{block:r,chain:c=e.chain,request:u}=t||{};try{const t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){const n=r||await(0,a.getAction)(e,i.getBlock,"getBlock")({}),o=await t({block:n,client:e,request:u});if(null===o)throw new Error;return o}if(void 0!==t)return t;const n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,o.hexToBigInt)(n)}catch{const[t,o]=await Promise.all([r?Promise.resolve(r):(0,a.getAction)(e,i.getBlock,"getBlock")({}),(0,a.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const c=o-t.baseFeePerGas;return c<0n?0n:c}}},4318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}},4324:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=function(e,t){if(!(0,o.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});if(!(0,o.isAddress)(t,{strict:!1}))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()};const n=r(6311),o=r(9742)},4401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=async function(e,t){const{address:r,blockNumber:u,blockTag:d,coinType:l=60n,gatewayUrls:f,strict:p}=t,{chain:m}=e,b=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!m)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,o.getChainContractAddress)({blockNumber:u,chain:m,contract:"ensUniversalResolver"})})();try{const t={address:b,abi:n.universalResolverReverseAbi,args:[r,l,f??[i.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:u,blockTag:d},o=(0,s.getAction)(e,c.readContract,"readContract"),[a]=await o(t);return a||null}catch(e){if(p)throw e;if((0,a.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(3454),a=r(5971),i=r(2262),s=r(6207),c=r(5275)},4445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentsToVersionedHashes=function(e){const{commitments:t,version:r}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),a=[];for(const e of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:o,version:r}));return a};const n=r(4143)},4519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",o=0,a="",i=!1;for(let n=0;n<e.length;n++){const s=e[n];if(["(",")",","].includes(s)&&(t=!0),"("===s&&o++,")"===s&&o--,t)if(0!==o)" "!==s?(a+=s,r+=s):","!==e[n-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===s&&["event","function",""].includes(a))a="";else if(a+=s,")"===s){i=!0;break}}if(!i)throw new n.BaseError("Unable to normalize signature.");return a};const n=r(6246)},4520:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`},t.formatAbiParams=o;const n=r(6953);function o(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}},4521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=async function(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}},4537:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.receiptStatuses=void 0,t.formatTransactionReceipt=s;const n=r(294),o=r(1547),a=r(95),i=r(9473);function s(e,r){const o={...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=>(0,a.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?t.receiptStatuses[e.status]:null,type:e.type?i.transactionType[e.type]||e.type:null};return e.blobGasPrice&&(o.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(o.blobGasUsed=BigInt(e.blobGasUsed)),o}t.receiptStatuses={"0x0":"reverted","0x1":"success"},t.defineTransactionReceipt=(0,o.defineFormatter)("transactionReceipt",s)},4548:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;const n=r(4900),o=r(6246),a=r(9382);class i extends o.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:o,urls:i}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(e=>` ${(0,a.getUrl)(e)}`)],` Sender: ${o}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}t.OffchainLookupError=i;class s extends o.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,a.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`],name:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class c extends o.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=c},4552:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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}}t.LruMap=r},4592:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBytes=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?u(e,r):"bigint"===n?s(e,r):"boolean"===n?c(e,r):"string"===n?d(e,r):(0,i.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=c,t.bytesToNumber=u,t.bytesToString=d;const n=r(5366),o=r(7488),a=r(294),i=r(985);function s(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});const r=(0,i.bytesToHex)(e,t);return(0,a.hexToBigInt)(r,t)}function c(e,t={}){let r=e;if(void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return Boolean(r[0])}function u(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});const r=(0,i.bytesToHex)(e,t);return(0,a.hexToNumber)(r,t)}function d(e,t={}){let r=e;return void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}},4593:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=async function(e){return"local"===e.account?.type?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,n.checksumAddress)(e))};const n=r(8728)},4612:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=function(e,t){const r="string"==typeof t?(0,d.hexToBytes)(t):t,o=(0,a.createCursor)(r);if(0===(0,i.size)(r)&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,i.size)(t)&&(0,i.size)(t)<32)throw new n.AbiDecodingDataSizeTooSmallError({data:"string"==typeof t?t:(0,l.bytesToHex)(t),params:e,size:(0,i.size)(t)});let s=0;const c=[];for(let t=0;t<e.length;++t){const r=e[t];o.setPosition(s);const[n,a]=p(o,r,{staticPosition:0});s+=a,c.push(n)}return c};const n=r(6953),o=r(8728),a=r(6323),i=r(2285),s=r(7688),c=r(7488),u=r(4592),d=r(7655),l=r(985),f=r(2732);function p(e,t,{staticPosition:r}){const a=(0,f.getArrayComponents)(t.type);if(a){const[n,o]=a;return function(e,t,{length:r,staticPosition:n}){if(!r){const r=n+(0,u.bytesToNumber)(e.readBytes(b)),o=r+m;e.setPosition(r);const a=(0,u.bytesToNumber)(e.readBytes(m)),i=y(t);let s=0;const c=[];for(let r=0;r<a;++r){e.setPosition(o+(i?32*r:s));const[n,a]=p(e,t,{staticPosition:o});s+=a,c.push(n)}return e.setPosition(n+32),[c,32]}if(y(t)){const o=n+(0,u.bytesToNumber)(e.readBytes(b)),a=[];for(let n=0;n<r;++n){e.setPosition(o+32*n);const[r]=p(e,t,{staticPosition:o});a.push(r)}return e.setPosition(n+32),[a,32]}let o=0;const a=[];for(let i=0;i<r;++i){const[r,i]=p(e,t,{staticPosition:n+o});o+=i,a.push(r)}return[a,o]}(e,{...t,type:o},{length:n,staticPosition:r})}if("tuple"===t.type)return function(e,t,{staticPosition:r}){const n=0===t.components.length||t.components.some(({name:e})=>!e),o=n?[]:{};let a=0;if(y(t)){const i=r+(0,u.bytesToNumber)(e.readBytes(b));for(let r=0;r<t.components.length;++r){const s=t.components[r];e.setPosition(i+a);const[c,u]=p(e,s,{staticPosition:i});a+=u,o[n?r:s?.name]=c}return e.setPosition(r+32),[o,32]}for(let i=0;i<t.components.length;++i){const s=t.components[i],[c,u]=p(e,s,{staticPosition:r});o[n?i:s?.name]=c,a+=u}return[o,a]}(e,t,{staticPosition:r});if("address"===t.type)return function(e){const t=e.readBytes(32);return[(0,o.checksumAddress)((0,l.bytesToHex)((0,s.sliceBytes)(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[(0,u.bytesToBool)(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){const[n,o]=t.type.split("bytes");if(!o){const t=(0,u.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);const n=(0,u.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const o=e.readBytes(n);return e.setPosition(r+32),[(0,l.bytesToHex)(o),32]}return[(0,l.bytesToHex)(e.readBytes(Number.parseInt(o,10),32)),32]}(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[n>48?(0,u.bytesToBigInt)(o,{signed:r}):(0,u.bytesToNumber)(o,{signed:r}),32]}(e,t);if("string"===t.type)return function(e,{staticPosition:t}){const r=t+(0,u.bytesToNumber)(e.readBytes(32));e.setPosition(r);const n=(0,u.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];const o=e.readBytes(n,32),a=(0,u.bytesToString)((0,c.trim)(o));return e.setPosition(t+32),[a,32]}(e,{staticPosition:r});throw new n.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const m=32,b=32;function y(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(y);const r=(0,f.getArrayComponents)(e.type);return!(!r||!y({...e,type:r[1]}))}},4624:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,o.size)(e)};const n=r(6015),o=r(2285)},4661:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=t.buildRequest=t.verifyAuthorization=t.serializeAuthorizationList=t.recoverAuthorizationAddress=t.hashAuthorization=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.parseEventLogs=t.getAbiItem=t.formatAbiItemWithArgs=t.formatAbiParams=t.formatAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.publicKeyToAddress=t.parseAccount=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=void 0,t.ripemd160=t.keccak256=t.isHash=t.getAction=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.defineFormatter=t.extract=t.formatBlock=t.defineBlock=t.getTransactionError=t.getNodeError=t.containsNodeError=t.getEstimateGasError=t.getContractError=t.getCallError=t.toRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=void 0,t.validateTypedData=t.serializeTypedData=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.serializeErc8010Signature=t.serializeErc6492Signature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseErc8010Signature=t.parseErc6492Signature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashMessage=t.getWebSocketRpcClient=t.socketClientCache=t.getSocketRpcClient=t.getHttpRpcClient=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.nonceManager=t.createNonceManager=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=void 0;var n=r(6524);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var o=r(9006);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return o.parseAccount}});var a=r(7911);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return a.publicKeyToAddress}});var i=r(4612);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return i.decodeAbiParameters}});var s=r(8181);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var c=r(8182);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return c.decodeEventLog}});var u=r(3064);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return u.decodeFunctionData}});var d=r(7541);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return d.decodeFunctionResult}});var l=r(2732);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return l.encodeAbiParameters}});var f=r(4687);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var p=r(7757);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return p.encodeErrorResult}});var m=r(378);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return m.encodeEventTopics}});var b=r(6144);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return b.encodeFunctionData}});var y=r(4829);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return y.encodeFunctionResult}});var h=r(5020);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return h.encodePacked}});var g=r(4520);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return g.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return g.formatAbiParams}});var v=r(449);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return v.formatAbiItemWithArgs}});var E=r(775);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return E.getAbiItem}});var w=r(48);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return w.parseEventLogs}});var x=r(8728);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return x.getAddress}});var P=r(8666);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return P.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return P.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return P.getCreateAddress}});var I=r(9742);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return I.isAddress}});var T=r(4324);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return T.isAddressEqual}});var A=r(7474);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return A.hashAuthorization}});var O=r(1184);Object.defineProperty(t,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return O.recoverAuthorizationAddress}});var S=r(2940);Object.defineProperty(t,"serializeAuthorizationList",{enumerable:!0,get:function(){return S.serializeAuthorizationList}});var B=r(1769);Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return B.verifyAuthorization}});var j=r(5e3);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return j.buildRequest}});var R=r(5678);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return R.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return R.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return R.offchainLookupSignature}});var _=r(2779);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return _.assertCurrentChain}});var C=r(5731);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return C.defineChain}});var M=r(2057);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return M.extractChain}});var k=r(3454);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return k.getChainContractAddress}});var F=r(6776);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return F.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return F.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return F.concatHex}});var N=r(7085);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return N.isBytes}});var U=r(6015);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return U.isHex}});var z=r(8987);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return z.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return z.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return z.padHex}});var H=r(2285);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return H.size}});var L=r(7688);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return L.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return L.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return L.sliceHex}});var D=r(7488);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return D.trim}});var $=r(4592);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return $.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return $.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return $.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return $.fromBytes}});var q=r(294);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return q.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return q.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return q.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return q.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return q.hexToString}});var G=r(7349);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return G.fromRlp}});var V=r(7655);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return V.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return V.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return V.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return V.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return V.toBytes}});var W=r(985);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return W.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return W.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return W.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return W.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return W.toHex}});var K=r(7926);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return K.toRlp}});var Z=r(1403);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return Z.getCallError}});var J=r(6173);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return J.getContractError}});var Y=r(3642);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return Y.getEstimateGasError}});var X=r(6339);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return X.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return X.getNodeError}});var Q=r(2403);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return Q.getTransactionError}});var ee=r(8900);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return ee.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return ee.formatBlock}});var te=r(796);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return te.extract}});var re=r(1547);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return re.defineFormatter}});var ne=r(95);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return ne.formatLog}});var oe=r(9473);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return oe.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return oe.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return oe.transactionType}});var ae=r(4537);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ae.defineTransactionReceipt}});var ie=r(4712);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return ie.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return ie.formatTransactionRequest}});var se=r(6207);Object.defineProperty(t,"getAction",{enumerable:!0,get:function(){return se.getAction}});var ce=r(4624);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ce.isHash}});var ue=r(3625);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return ue.keccak256}});var de=r(2830);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return de.ripemd160}});var le=r(7415);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return le.sha256}});var fe=r(325);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return fe.toEventHash}});var pe=r(7144);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return pe.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return pe.toEventSelector}});var me=r(3467);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return me.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return me.toEventSignature}});var be=r(2461);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return be.toFunctionHash}});var ye=r(1456);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return ye.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ye.toFunctionSelector}});var he=r(8611);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return he.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return he.toFunctionSignature}});var ge=r(1519);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return ge.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return ge.nonceManager}});var ve=r(2162);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return ve.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return ve.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return ve.integerRegex}});var Ee=r(8692);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return Ee.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return Ee.rpc}});var we=r(4017);Object.defineProperty(t,"getHttpRpcClient",{enumerable:!0,get:function(){return we.getHttpRpcClient}});var xe=r(6228);Object.defineProperty(t,"getSocketRpcClient",{enumerable:!0,get:function(){return xe.getSocketRpcClient}}),Object.defineProperty(t,"socketClientCache",{enumerable:!0,get:function(){return xe.socketClientCache}});var Pe=r(1370);Object.defineProperty(t,"getWebSocketRpcClient",{enumerable:!0,get:function(){return Pe.getWebSocketRpcClient}});var Ie=r(5336);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return Ie.hashMessage}});var Te=r(9984);Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return Te.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return Te.hashTypedData}});var Ae=r(2803);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return Ae.isErc6492Signature}});var Oe=r(527);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return Oe.isErc8010Signature}});var Se=r(102);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return Se.parseErc6492Signature}});var Be=r(3198);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return Be.parseErc8010Signature}});var je=r(2374);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return je.recoverAddress}});var Re=r(593);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return Re.recoverMessageAddress}});var _e=r(3874);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return _e.recoverPublicKey}});var Ce=r(7948);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Ce.recoverTypedDataAddress}});var Me=r(2599);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return Me.serializeErc6492Signature}});var ke=r(595);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return ke.serializeErc8010Signature}});var Fe=r(5599);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return Fe.verifyHash}});var Ne=r(8428);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Ne.verifyMessage}});var Ue=r(4803);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Ue.verifyTypedData}});var ze=r(4900);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return ze.stringify}});var He=r(4969);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return He.assertRequest}});var Le=r(7964);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Le.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Le.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return Le.assertTransactionLegacy}});var De=r(8465);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return De.getSerializedTransactionType}});var $e=r(9788);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return $e.getTransactionType}});var qe=r(8057);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return qe.parseTransaction}});var Ge=r(1270);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return Ge.serializeAccessList}});var Ve=r(5886);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return Ve.serializeTransaction}});var We=r(8377);Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return We.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return We.validateTypedData}});var Ke=r(6117);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Ke.formatEther}});var Ze=r(5277);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Ze.formatGwei}});var Je=r(1902);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Je.formatUnits}});var Ye=r(2819);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return Ye.parseEther}});var Xe=r(7723);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Xe.parseGwei}});var Qe=r(4800);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return Qe.parseUnits}})},4678:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=async function(e,t){const{account:r=e.account,prepare:p=!0}=t,m=r?(0,n.parseAccount)(r):void 0,b=Array.isArray(p)?p:"local"!==m?.type?["blobVersionedHashes"]:void 0;try{const r=await(async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await(0,a.recoverAuthorizationAddress)({authorization:t.authorizationList[0]}).catch(()=>{throw new o.BaseError("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:n,authorizationList:s,blobs:y,blobVersionedHashes:h,blockNumber:g,blockTag:v,data:E,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:A,value:O,stateOverride:S,...B}=p?await(0,f.prepareTransactionRequest)(e,{...t,parameters:b,to:r}):t;if(w&&t.gas!==w)return w;const j=("bigint"==typeof g?(0,i.numberToHex)(g):void 0)||v,R=(0,d.serializeStateOverride)(S);(0,l.assertRequest)(t);const _=e.chain?.formatters?.transactionRequest?.format,C=(_||u.formatTransactionRequest)({...(0,c.extract)(B,{format:_}),account:m,accessList:n,authorizationList:s,blobs:y,blobVersionedHashes:h,data:E,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:A,to:r,value:O},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:R?[C,j??e.experimental_blockTag??"latest",R]:j?[C,j]:[C]}))}catch(r){throw(0,s.getEstimateGasError)(r,{...t,account:m,chain:e.chain})}};const n=r(9006),o=r(6246),a=r(1184),i=r(985),s=r(3642),c=r(796),u=r(4712),d=r(120),l=r(4969),f=r(8807)},4687:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=function(e){const{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;const c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new n.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in c))throw new n.AbiConstructorParamsNotFoundError({docsPath:i});if(!c.inputs||0===c.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:i});const u=(0,a.encodeAbiParameters)(c.inputs,r);return(0,o.concatHex)([s,u])};const n=r(6953),o=r(6776),a=r(2732),i="/docs/contract/encodeDeployData"},4697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendCallsSync=async function(e,t){const{chain:r=e.chain}=t,a=t.timeout??Math.max(3*(r?.blockTime??0),5e3),i=await(0,n.sendCalls)(e,t);return await(0,o.waitForCallsStatus)(e,{...t,id:i.id,timeout:a})};const n=r(8018),o=r(138)},4698:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;const n=r(6246);class o extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=o;class a extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}t.ChainMismatchError=a;class i extends n.BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n"),{name:"ChainNotFoundError"})}}t.ChainNotFoundError=i;class s extends n.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class c extends n.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}t.InvalidChainIdError=c},4712:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.rpcTransactionType=void 0,t.formatTransactionRequest=a;const n=r(985),o=r(1547);function a(e,r){const o={};return void 0!==e.authorizationList&&(o.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,n.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,n.numberToHex)(BigInt(e.s)):e.s,chainId:(0,n.numberToHex)(e.chainId),nonce:(0,n.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(o.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(o.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?o.blobs=e.blobs.map(e=>(0,n.bytesToHex)(e)):o.blobs=e.blobs),void 0!==e.data&&(o.data=e.data),e.account&&(o.from=e.account.address),void 0!==e.from&&(o.from=e.from),void 0!==e.gas&&(o.gas=(0,n.numberToHex)(e.gas)),void 0!==e.gasPrice&&(o.gasPrice=(0,n.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(o.maxFeePerBlobGas=(0,n.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(o.maxFeePerGas=(0,n.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=(0,n.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(o.nonce=(0,n.numberToHex)(e.nonce)),void 0!==e.to&&(o.to=e.to),void 0!==e.type&&(o.type=t.rpcTransactionType[e.type]),void 0!==e.value&&(o.value=(0,n.numberToHex)(e.value)),o}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},t.defineTransactionRequest=(0,o.defineFormatter)("transactionRequest",a)},4800:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new n.InvalidDecimalNumberError({value:e});let[r,o="0"]=e.split(".");const a=r.startsWith("-");if(a&&(r=r.slice(1)),o=o.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${o}`))&&(r=`${BigInt(r)+1n}`),o="";else if(o.length>t){const[e,n,a]=[o.slice(0,t-1),o.slice(t-1,t),o.slice(t)],i=Math.round(Number(`${n}.${a}`));o=i>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${i}`,o.length>t&&(o=o.slice(1),r=`${BigInt(r)+1n}`),o=o.slice(0,t)}else o=o.padEnd(t,"0");return BigInt(`${a?"-":""}${r}${o}`)};const n=r(233)},4803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=async function(e){const{address:t,domain:r,message:i,primaryType:s,signature:c,types:u}=e;return(0,o.isAddressEqual)((0,n.getAddress)(t),await(0,a.recoverTypedDataAddress)({domain:r,message:i,primaryType:s,signature:c,types:u}))};const n=r(8728),o=r(4324),a=r(7948)},4829:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=function(e){const{abi:t,functionName:r,result:s}=e;let c=t[0];if(r){const e=(0,a.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:i});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:i});const u=(()=>{if(0===c.outputs.length)return[];if(1===c.outputs.length)return[s];if(Array.isArray(s))return s;throw new n.InvalidArrayError(s)})();return(0,o.encodeAbiParameters)(c.outputs,u)};const n=r(6953),o=r(2732),a=r(775),i="/docs/contract/encodeFunctionResult"},4839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},4900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=(e,t,r)=>JSON.stringify(e,(e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},4931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,a.bytesToHex)(t);const r=e.split(".");for(let e=r.length-1;e>=0;e-=1){const a=(0,s.encodedLabelToLabelhash)(r[e]),c=a?(0,o.toBytes)(a):(0,i.keccak256)((0,o.stringToBytes)(r[e]),"bytes");t=(0,i.keccak256)((0,n.concat)([t,c]),"bytes")}return(0,a.bytesToHex)(t)};const n=r(6776),o=r(7655),a=r(985),i=r(3625),s=r(2627)},4967:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=f,t.pow=function(e,t,r){return v(P(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},t.invert=p,t.tonelliShanks=y,t.FpSqrt=h,t.validateField=function(e){const t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,o.validateObject)(e,t)},t.FpPow=v,t.FpInvertBatch=E,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?p(r,e.ORDER):e.inv(r))},t.FpLegendre=w,t.FpIsSquare=function(e,t){return 1===w(e,t)},t.nLength=x,t.Field=P,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const n=(e=(0,o.ensureBytes)("privateHash",e)).length,a=x(t).nByteLength+8;if(a<24||n<a||n>1024)throw new Error("hashToPrivateScalar: expected "+a+"-1024 bytes of input, got "+n);return f(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=I,t.getMinHashLength=T,t.mapHashToField=function(e,t,r=!1){const n=e.length,a=I(t),s=T(t);if(n<16||n<s||n>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+n);const c=f(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-i)+i;return r?(0,o.numberToBytesLE)(c,a):(0,o.numberToBytesBE)(c,a)};const n=r(9175),o=r(1484),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(3),u=BigInt(4),d=BigInt(5),l=BigInt(8);function f(e,t){const r=e%t;return r>=a?r:t+r}function p(e,t){if(e===a)throw new Error("invert: expected non-zero number");if(t<=a)throw new Error("invert: expected positive modulus, got "+t);let r=f(e,t),n=t,o=a,s=i,c=i,u=a;for(;r!==a;){const e=n/r,t=n%r,a=o-c*e,i=s-u*e;n=r,r=t,o=c,s=u,c=a,u=i}if(n!==i)throw new Error("invert: does not exist");return f(o,t)}function m(e,t){const r=(e.ORDER+i)/u,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function b(e,t){const r=(e.ORDER-d)/l,n=e.mul(t,s),o=e.pow(n,r),a=e.mul(t,o),i=e.mul(e.mul(a,s),o),c=e.mul(a,e.sub(i,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function y(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-i,r=0;for(;t%s===a;)t/=s,r++;let n=s;const o=P(e);for(;1===w(o,n);)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return m;let c=o.pow(n,t);const u=(t+i)/s;return function(e,n){if(e.is0(n))return n;if(1!==w(e,n))throw new Error("Cannot find square root");let o=r,a=e.mul(e.ONE,c),s=e.pow(n,t),d=e.pow(n,u);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===o)throw new Error("Cannot find square root");const n=i<<BigInt(o-t-1),c=e.pow(a,n);o=t,a=e.sqr(c),s=e.mul(s,a),d=e.mul(d,c)}return d}}function h(e){return e%u===c?m:e%l===d?b:y(e)}t.isNegativeLE=(e,t)=>(f(e,t)&i)===i;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e,t,r){if(r<a)throw new Error("invalid exponent, negatives unsupported");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,o=t;for(;r>a;)r&i&&(n=e.mul(n,o)),o=e.sqr(o),r>>=i;return n}function E(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),o=t.reduce((t,r,o)=>e.is0(r)?t:(n[o]=t,e.mul(t,r)),e.ONE),a=e.inv(o);return t.reduceRight((t,r,o)=>e.is0(r)?t:(n[o]=e.mul(t,n[o]),e.mul(t,r)),a),n}function w(e,t){const r=(e.ORDER-i)/s,n=e.pow(t,r),o=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),c=e.eql(n,e.neg(e.ONE));if(!o&&!a&&!c)throw new Error("invalid Legendre symbol result");return o?1:a?0:-1}function x(e,t){void 0!==t&&(0,n.anumber)(t);const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function P(e,t,r=!1,n={}){if(e<=a)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:c}=x(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let u;const d=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:c,MASK:(0,o.bitMask)(s),ZERO:a,ONE:i,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return a<=t&&t<e},is0:e=>e===a,isOdd:e=>(e&i)===i,neg:t=>f(-t,e),eql:(e,t)=>e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>v(d,e,t),div:(t,r)=>f(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(t=>(u||(u=h(e)),u(d,t))),toBytes:e=>r?(0,o.numberToBytesLE)(e,c):(0,o.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e)},invertBatch:e=>E(d,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(d)}function I(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 T(e){const t=I(e);return t+Math.ceil(t/2)}},4969:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=function(e){const{account:t,maxFeePerGas:r,maxPriorityFeePerGas:c,to:u}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new a.InvalidAddressError({address:d.address});if(u&&!(0,s.isAddress)(u))throw new a.InvalidAddressError({address:u});if(r&&r>o.maxUint256)throw new i.FeeCapTooHighError({maxFeePerGas:r});if(c&&r&&c>r)throw new i.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:c})};const n=r(9006),o=r(2856),a=r(6311),i=r(2731),s=r(9742)},5e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=function(e,t={}){return async(r,l={})=>{const{dedupe:f=!1,methods:p,retryDelay:m=150,retryCount:b=3,uid:y}={...t,...l},{method:h}=r;if(p?.exclude?.includes(h))throw new a.MethodNotSupportedRpcError(new Error("method not supported"),{method:h});if(p?.include&&!p.include.includes(h))throw new a.MethodNotSupportedRpcError(new Error("method not supported"),{method:h});const g=f?(0,i.stringToHex)(`${y}.${(0,u.stringify)(r)}`):void 0;return(0,s.withDedupe)(()=>(0,c.withRetry)(async()=>{try{return await e(r)}catch(e){const t=e;switch(t.code){case a.ParseRpcError.code:throw new a.ParseRpcError(t);case a.InvalidRequestRpcError.code:throw new a.InvalidRequestRpcError(t);case a.MethodNotFoundRpcError.code:throw new a.MethodNotFoundRpcError(t,{method:r.method});case a.InvalidParamsRpcError.code:throw new a.InvalidParamsRpcError(t);case a.InternalRpcError.code:throw new a.InternalRpcError(t);case a.InvalidInputRpcError.code:throw new a.InvalidInputRpcError(t);case a.ResourceNotFoundRpcError.code:throw new a.ResourceNotFoundRpcError(t);case a.ResourceUnavailableRpcError.code:throw new a.ResourceUnavailableRpcError(t);case a.TransactionRejectedRpcError.code:throw new a.TransactionRejectedRpcError(t);case a.MethodNotSupportedRpcError.code:throw new a.MethodNotSupportedRpcError(t,{method:r.method});case a.LimitExceededRpcError.code:throw new a.LimitExceededRpcError(t);case a.JsonRpcVersionUnsupportedError.code:throw new a.JsonRpcVersionUnsupportedError(t);case a.UserRejectedRequestError.code:throw new a.UserRejectedRequestError(t);case a.UnauthorizedProviderError.code:throw new a.UnauthorizedProviderError(t);case a.UnsupportedProviderMethodError.code:throw new a.UnsupportedProviderMethodError(t);case a.ProviderDisconnectedError.code:throw new a.ProviderDisconnectedError(t);case a.ChainDisconnectedError.code:throw new a.ChainDisconnectedError(t);case a.SwitchChainError.code:throw new a.SwitchChainError(t);case a.UnsupportedNonOptionalCapabilityError.code:throw new a.UnsupportedNonOptionalCapabilityError(t);case a.UnsupportedChainIdError.code:throw new a.UnsupportedChainIdError(t);case a.DuplicateIdError.code:throw new a.DuplicateIdError(t);case a.UnknownBundleIdError.code:throw new a.UnknownBundleIdError(t);case a.BundleTooLargeError.code:throw new a.BundleTooLargeError(t);case a.AtomicReadyWalletRejectedUpgradeError.code:throw new a.AtomicReadyWalletRejectedUpgradeError(t);case a.AtomicityNotSupportedError.code:throw new a.AtomicityNotSupportedError(t);case 5e3:throw new a.UserRejectedRequestError(t);default:if(e instanceof n.BaseError)throw e;throw new a.UnknownRpcError(t)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.HttpRequestError){const e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return(1<<e)*m},retryCount:b,shouldRetry:({error:e})=>d(e)}),{enabled:f,id:g})}},t.shouldRetry=d;const n=r(6246),o=r(2202),a=r(7992),i=r(985),s=r(3716),c=r(1525),u=r(4900);function d(e){return"code"in e&&"number"==typeof e.code?-1===e.code||e.code===a.LimitExceededRpcError.code||e.code===a.InternalRpcError.code:!(e instanceof o.HttpRequestError&&e.status)||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}},5020:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const o=e[n],a=t[n];r.push(d(o,a))}return(0,i.concatHex)(r)};const n=r(6953),o=r(6311),a=r(9742),i=r(6776),s=r(8987),c=r(985),u=r(2162);function d(e,t,r=!1){if("address"===e){const e=t;if(!(0,a.isAddress)(e))throw new o.InvalidAddressError({address:e});return(0,s.pad)(e.toLowerCase(),{size:r?32:null})}if("string"===e)return(0,c.stringToHex)(t);if("bytes"===e)return t;if("bool"===e)return(0,s.pad)((0,c.boolToHex)(t),{size:r?32:1});const l=e.match(u.integerRegex);if(l){const[e,n,o="256"]=l,a=Number.parseInt(o,10)/8;return(0,c.numberToHex)(t,{size:r?32:a,signed:"int"===n})}const f=e.match(u.bytesRegex);if(f){const[e,o]=f;if(Number.parseInt(o,10)!==(t.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(o,10),givenSize:(t.length-2)/2});return(0,s.pad)(t,{dir:"right",size:r?32:null})}const p=e.match(u.arrayRegex);if(p&&Array.isArray(t)){const[e,r]=p,n=[];for(let e=0;e<t.length;e++)n.push(d(r,t[e],!0));return 0===n.length?"0x":(0,i.concatHex)(n)}throw new n.UnsupportedPackedAbiType(e)}},5079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=function({mode:e}){return t=>{const r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,o.dumpState)(r),getAutomine:()=>(0,a.getAutomine)(r),getTxpoolContent:()=>(0,i.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,c.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,d.inspectTxpool)(r),loadState:e=>(0,l.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,p.removeBlockTimestampInterval)(r),reset:e=>(0,m.reset)(r,e),revert:e=>(0,b.revert)(r,e),sendUnsignedTransaction:e=>(0,y.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,h.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,E.setBlockTimestampInterval)(r,e),setCode:e=>(0,w.setCode)(r,e),setCoinbase:e=>(0,x.setCoinbase)(r,e),setIntervalMining:e=>(0,P.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,I.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,T.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,A.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,O.setNextBlockTimestamp)(r,e),setNonce:e=>(0,S.setNonce)(r,e),setRpcUrl:e=>(0,B.setRpcUrl)(r,e),setStorageAt:e=>(0,j.setStorageAt)(r,e),snapshot:()=>(0,R.snapshot)(r),stopImpersonatingAccount:e=>(0,_.stopImpersonatingAccount)(r,e)}}};const n=r(9771),o=r(79),a=r(1684),i=r(1881),s=r(7200),c=r(4318),u=r(9283),d=r(6394),l=r(181),f=r(1449),p=r(1372),m=r(7039),b=r(9624),y=r(6839),h=r(5664),g=r(5669),v=r(2407),E=r(6998),w=r(7069),x=r(5616),P=r(629),I=r(1246),T=r(1496),A=r(6785),O=r(7174),S=r(7477),B=r(2820),j=r(6462),R=r(7238),_=r(552)},5118:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.universalSignatureValidatorAbi=t.universalSignatureValidatorBytecode=t.magicBytes=void 0,t.assert=i,t.from=function(e){return"string"==typeof e?s(e):e},t.unwrap=s,t.wrap=function(e){const{data:r,signature:o,to:i}=e;return a.concat(n.encode(n.from("address, bytes, bytes"),[i,r,o]),t.magicBytes)},t.validate=function(e){try{return i(e),!0}catch{return!1}};const n=r(2037),o=r(7560),a=r(9274);function i(e){if(a.slice(e,-32)!==t.magicBytes)throw new c(e)}function s(e){i(e);const[t,r,o]=n.decode(n.from("address, bytes, bytes"),e);return{data:r,signature:o,to:t}}t.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.universalSignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];class c extends o.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=c},5145:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5176:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:c=!1,onBlock:u,onError:d,includeTransactions:l,poll:f,pollingInterval:p=e.pollingInterval}){const m=void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),b=l??!1;let y;return m?(()=>{const l=(0,i.stringify)(["watchBlocks",e.uid,t,r,c,b,p]);return(0,o.observe)(l,{onBlock:u,onError:d},o=>(0,a.poll)(async()=>{try{const a=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:b});if(null!==a.number&&null!=y?.number){if(a.number===y.number)return;if(a.number-y.number>1&&r)for(let t=y?.number+1n;t<a.number;t++){const r=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t,includeTransactions:b});o.onBlock(r,y),y=r}}(null==y?.number||"pending"===t&&null==a?.number||null!==a.number&&a.number>y.number)&&(o.onBlock(a,y),y=a)}catch(e){o.onError?.(e)}},{emitOnBegin:c,interval:p}))})():(()=>{let r=!0,o=!0,a=()=>r=!1;return(async()=>{try{c&&(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:b}).then(e=>{r&&o&&(u(e,void 0),o=!1)}).catch(d);const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:l}=await i.subscribe({params:["newHeads"],async onData(t){if(!r)return;const a=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t.result?.number,includeTransactions:b}).catch(()=>{});r&&(u(a,y),o=!1,y=a)},onError(e){d?.(e)}});a=l,r||a()}catch(e){d?.(e)}})(),()=>a()})()};const n=r(6207),o=r(2093),a=r(3940),i=r(4900),s=r(5364)},5190:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=function(e){const{r:t,s:r,v:a,yParity:i}=e;let s=r;if(1===Number(i??a-27n)){const e=(0,n.hexToBytes)(r);e[0]|=128,s=(0,o.bytesToHex)(e)}return{r:t,yParityAndS:s}};const n=r(7655),o=r(985)},5195:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,i.parseAbiParameter)(e,{modifiers:o.modifiers});else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if(!(0,o.isStructSignature)(n)){t=(0,i.parseAbiParameter)(n,{modifiers:o.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t};const n=r(6992),o=r(6303),a=r(5324),i=r(6351)},5201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBlobs=function(e){const t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,o.hexToBytes)(e)):e.blobs,i=r.reduce((e,t)=>e+t.length,0),s=(0,n.createCursor)(new Uint8Array(i));let c=!0;for(const e of r){const t=(0,n.createCursor)(e);for(;c&&t.position<e.length;){t.incrementPosition(1);let r=31;e.length-t.position<31&&(r=e.length-t.position);for(const e in Array.from({length:r})){const e=t.readByte();if(128===e&&!t.inspectBytes(t.remaining).includes(128)){c=!1;break}s.pushByte(e)}}}const u=s.bytes.slice(0,s.position);return"hex"===t?(0,a.bytesToHex)(u):u};const n=r(6323),o=r(7655),a=r(985)},5208:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=function(e){const{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(o.publicActions)};const n=r(8693),o=r(2550)},5275:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=async function(e,t){const{abi:r,address:c,args:u,functionName:d,...l}=t,f=(0,o.encodeFunctionData)({abi:r,args:u,functionName:d});try{const{data:t}=await(0,i.getAction)(e,s.call,"call")({...l,data:f,to:c});return(0,n.decodeFunctionResult)({abi:r,args:u,functionName:d,data:t||"0x"})}catch(e){throw(0,a.getContractError)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:d})}};const n=r(7541),o=r(6144),a=r(6173),i=r(6207),s=r(7141)},5277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=function(e,t="wei"){return(0,o.formatUnits)(e,n.gweiUnits[t])};const n=r(4839),o=r(1902)},5290:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:r,wait:a=0,sort:i}){const s=async()=>{const t=u();c();const r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let r=0;r<t.length;r++){const{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){const{reject:n}=t[r];n?.(e)}})},c=()=>o.delete(t),u=()=>o.get(t)||[],d=e=>o.set(t,[...u(),e]);return{flush:c,async schedule(e){const{promise:t,resolve:o,reject:i}=(0,n.withResolvers)(),c=r?.([...u().map(({args:e})=>e),e]);return c&&s(),u().length>0?(d({args:e,resolve:o,reject:i}),t):(d({args:e,resolve:o,reject:i}),setTimeout(s,a),t)}}};const n=r(2344),o=new Map},5304:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=async function(e,t){const{abi:r,address:c,args:u,functionName:d,dataSuffix:l=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...f}=t,p=(0,o.encodeFunctionData)({abi:r,args:u,functionName:d});try{return await(0,i.getAction)(e,s.estimateGas,"estimateGas")({data:`${p}${l?l.replace("0x",""):""}`,to:c,...f})}catch(e){const t=f.account?(0,n.parseAccount)(f.account):void 0;throw(0,a.getContractError)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/estimateContractGas",functionName:d,sender:t?.address})}};const n=r(9006),o=r(6144),a=r(6173),i=r(6207),s=r(4678)},5324:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=function(e){const t={},r=e.length;for(let n=0;n<r;n++){const r=e[n];if(!(0,c.isStructSignature)(r))continue;const o=(0,c.execStructSignature)(r);if(!o)throw new i.InvalidSignatureError({signature:r,type:"struct"});const a=o.properties.split(";"),s=[],d=a.length;for(let e=0;e<d;e++){const t=a[e].trim();if(!t)continue;const r=(0,u.parseAbiParameter)(t,{type:"struct"});s.push(r)}if(!s.length)throw new i.InvalidStructSignatureError({signature:r});t[o.name]=s}const n={},o=Object.entries(t),a=o.length;for(let e=0;e<a;e++){const[r,a]=o[e];n[r]=l(a,t)}return n};const n=r(8651),o=r(3200),a=r(6992),i=r(1923),s=r(7872),c=r(6303),u=r(6351),d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function l(e=[],t={},r=new Set){const i=[],c=e.length;for(let f=0;f<c;f++){const c=e[f];if(n.isTupleRegex.test(c.type))i.push(c);else{const e=(0,n.execTyped)(d,c.type);if(!e?.type)throw new a.InvalidAbiTypeParameterError({abiParameter:c});const{array:f,type:p}=e;if(p in t){if(r.has(p))throw new s.CircularReferenceError({type:p});i.push({...c,type:`tuple${f??""}`,components:l(t[p],t,new Set([...r,p]))})}else{if(!(0,u.isSolidityType)(p))throw new o.UnknownTypeError({type:p});i.push(c)}}}return i}},5336:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=function(e,t){return(0,n.keccak256)((0,o.toPrefixedMessage)(e),t)};const n=r(3625),o=r(7707)},5339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Eip712DomainNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}t.Eip712DomainNotFoundError=o},5364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=async function(e,{blockHash:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest",includeTransactions:s}={}){const c=s??!1,u=void 0!==r?(0,o.numberToHex)(r):void 0;let d=null;if(d=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||i,c]},{dedupe:Boolean(u)}),!d)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||a.formatBlock)(d,"getBlock")};const n=r(9642),o=r(985),a=r(8900)},5366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=void 0;const n=r(6246);class o extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number "${o}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=o;class a extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=a;class i extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=i;class s extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}t.InvalidHexValueError=s;class c extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}t.SizeOverflowError=c},5375:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidBytesLengthError=t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;const n=r(6246);class o extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=o;class a extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=a;class i extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}t.InvalidBytesLengthError=i},5424:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e,amount:BigInt(e.amount),index:Number(e.index),validatorIndex:Number(e.validatorIndex)}},t.toRpc=function(e){return{address:e.address,amount:n.fromNumber(e.amount),index:n.fromNumber(e.index),validatorIndex:n.fromNumber(e.validatorIndex)}};const n=r(9274)},5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}},5446:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;const n=r(6246);class o extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}t.UrlRequiredError=o},5448:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toCoinType=function(e){if(1===e)return 60n;if(e>=o||e<0)throw new n.EnsInvalidChainIdError({chainId:e});return BigInt((2147483648|e)>>>0)};const n=r(8047),o=2147483648},5549:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},5599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=async function({address:e,hash:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverAddress)({hash:t,signature:r}))};const n=r(8728),o=r(4324),a=r(2374)},5603:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.45.0"},5616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=async function(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}},5617:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=function(e){return e}},5651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=async function(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}},5664:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=async function(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}},5665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return JSON.parse(e,(e,n)=>{const o=n;return"string"==typeof o&&o.endsWith(r)?BigInt(o.slice(0,-r.length)):"function"==typeof t?t(e,o):o})},t.stringify=function(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+r:n,n)};const r="#__bigint"},5669:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=async function(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})};const n=r(985)},5678:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.offchainLookupAbiItem=t.offchainLookupSignature=void 0,t.offchainLookup=async function(e,{blockNumber:r,blockTag:a,data:d,to:f}){const{args:m}=(0,i.decodeErrorResult)({data:d,abi:[t.offchainLookupAbiItem]}),[b,y,h,g,v]=m,{ccipRead:E}=e,w=E&&"function"==typeof E?.request?E.request:p;try{if(!(0,c.isAddressEqual)(f,b))throw new o.OffchainLookupSenderMismatchError({sender:b,to:f});const t=y.includes(l.localBatchGatewayUrl)?await(0,l.localBatchGatewayRequest)({data:h,ccipRequest:w}):await w({data:h,sender:b,urls:y}),{data:i}=await(0,n.call)(e,{blockNumber:r,blockTag:a,data:(0,u.concat)([g,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,v])]),to:f});return i}catch(e){throw new o.OffchainLookupError({callbackSelector:g,cause:e,data:d,extraData:v,sender:b,urls:y})}},t.ccipRequest=p;const n=r(7141),o=r(4548),a=r(2202),i=r(8181),s=r(2732),c=r(4324),u=r(6776),d=r(6015),l=r(2262),f=r(4900);async function p({data:e,sender:t,urls:r}){let n=new Error("An unknown error occurred.");for(let i=0;i<r.length;i++){const s=r[i],c=s.includes("{data}")?"GET":"POST",u="POST"===c?{data:e,sender:t}:void 0,l="POST"===c?{"Content-Type":"application/json"}:{};try{const r=await fetch(s.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(u),headers:l,method:c});let i;if(i=r.headers.get("Content-Type")?.startsWith("application/json")?(await r.json()).data:await r.text(),!r.ok){n=new a.HttpRequestError({body:u,details:i?.error?(0,f.stringify)(i.error):r.statusText,headers:r.headers,status:r.status,url:s});continue}if(!(0,d.isHex)(i)){n=new o.OffchainLookupResponseMalformedError({result:i,url:s});continue}return i}catch(e){n=new a.HttpRequestError({body:u,details:e.message,url:s})}}throw n}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]}},5709:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e.baseFeePerGas&&{baseFeePerGas:BigInt(e.baseFeePerGas)},...e.blobBaseFee&&{blobBaseFee:BigInt(e.blobBaseFee)},...e.feeRecipient&&{feeRecipient:e.feeRecipient},...e.gasLimit&&{gasLimit:BigInt(e.gasLimit)},...e.number&&{number:BigInt(e.number)},...e.prevRandao&&{prevRandao:BigInt(e.prevRandao)},...e.time&&{time:BigInt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(o.fromRpc)}}},t.toRpc=function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(o.toRpc)}}};const n=r(9274),o=r(5424)},5729:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumberCache=function(e){return(0,n.getCache)(o(e))},t.getBlockNumber=async function(e,{cacheTime:t=e.cacheTime}={}){const r=await(0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:t});return BigInt(r)};const n=r(1861),o=e=>`blockNumber.${e}`},5731:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=function(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return r=>{const n="function"==typeof r?r(t):r,o={...t,...n};return Object.assign(o,{extend:e(o)})}}(t)})},t.extendSchema=function(){return{}}},5772:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;const n=r(6117),o=r(5277),a=r(6246),i=r(3727);class s extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:f,to:p,value:m}){const b=(0,i.prettyPrint)({from:t?.address,to:p,value:void 0!==m&&`${(0,n.formatEther)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",b].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.EstimateGasExecutionError=s},5800:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",n=0,a="",i=!1;for(let o=0;o<e.length;o++){const s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t)if(0!==n)" "!==s?(a+=s,r+=s):","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===s&&["event","function","error",""].includes(a))a="";else if(a+=s,")"===s){i=!0;break}}if(!i)throw new o.BaseError("Unable to normalize signature.");return a},t.isArgOfType=function e(t,r){const o=typeof t,a=r.type;switch(a){case"address":return n.validate(t,{strict:!1});case"bool":return"boolean"===o;case"function":case"string":return"string"===o;default:return"tuple"===a&&"components"in r?Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r)):/^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(a)?"number"===o||"bigint"===o:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a)?"string"===o||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a)&&Array.isArray(t)&&t.every(t=>e(t,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")}))}},t.getAmbiguousTypes=function e(t,r,o){for(const a in t){const i=t[a],s=r[a];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,o[a]);const c=[i.type,s.type];if((()=>!(!c.includes("address")||!c.includes("bytes20"))||(c.includes("address")&&c.includes("string")||!(!c.includes("address")||!c.includes("bytes")))&&n.validate(o[a],{strict:!1}))())return c}};const n=r(7179),o=r(7560)},5805:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareAuthorization=async function(e,t){const{account:r=e.account,chainId:u,nonce:d}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const l=(0,n.parseAccount)(r),f=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,n.parseAccount)(t.executor)})(),p={address:t.contractAddress??t.address,chainId:u,nonce:d};return void 0===p.chainId&&(p.chainId=e.chain?.id??await(0,i.getAction)(e,s.getChainId,"getChainId")({})),void 0===p.nonce&&(p.nonce=await(0,i.getAction)(e,c.getTransactionCount,"getTransactionCount")({address:l.address,blockTag:"pending"}),("self"===f||f?.address&&(0,a.isAddressEqual)(f.address,l.address))&&(p.nonce+=1)),p};const n=r(9006),o=r(2540),a=r(4324),i=r(6207),s=r(1093),c=r(1998)},5886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=function(e,t){const r=(0,m.getTransactionType)(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:o,to:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:d,data:m}=e;(0,p.assertTransactionEIP1559)(e);const h=(0,b.serializeAccessList)(d),g=[(0,l.numberToHex)(r),o?(0,l.numberToHex)(o):"0x",c?(0,l.numberToHex)(c):"0x",s?(0,l.numberToHex)(s):"0x",n?(0,l.numberToHex)(n):"0x",a??"0x",i?(0,l.numberToHex)(i):"0x",m??"0x",h,...y(e,t)];return(0,u.concatHex)(["0x02",(0,f.toRlp)(g)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:o,nonce:a,to:i,value:s,accessList:c,gasPrice:d}=e;(0,p.assertTransactionEIP2930)(e);const m=(0,b.serializeAccessList)(c),h=[(0,l.numberToHex)(r),a?(0,l.numberToHex)(a):"0x",d?(0,l.numberToHex)(d):"0x",n?(0,l.numberToHex)(n):"0x",i??"0x",s?(0,l.numberToHex)(s):"0x",o??"0x",m,...y(e,t)];return(0,u.concatHex)(["0x01",(0,f.toRlp)(h)])}(e,t):"eip4844"===r?function(e,t){const{chainId:r,gas:n,nonce:o,to:d,value:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:v,accessList:E,data:w}=e;(0,p.assertTransactionEIP4844)(e);let x=e.blobVersionedHashes,P=e.sidecars;if(e.blobs&&(void 0===x||void 0===P)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,l.bytesToHex)(e)),r=e.kzg,n=(0,a.blobsToCommitments)({blobs:t,kzg:r});if(void 0===x&&(x=(0,s.commitmentsToVersionedHashes)({commitments:n})),void 0===P){const e=(0,i.blobsToProofs)({blobs:t,commitments:n,kzg:r});P=(0,c.toBlobSidecars)({blobs:t,commitments:n,proofs:e})}}const I=(0,b.serializeAccessList)(E),T=[(0,l.numberToHex)(r),o?(0,l.numberToHex)(o):"0x",v?(0,l.numberToHex)(v):"0x",g?(0,l.numberToHex)(g):"0x",n?(0,l.numberToHex)(n):"0x",d??"0x",m?(0,l.numberToHex)(m):"0x",w??"0x",I,h?(0,l.numberToHex)(h):"0x",x??[],...y(e,t)],A=[],O=[],S=[];if(P)for(let e=0;e<P.length;e++){const{blob:t,commitment:r,proof:n}=P[e];A.push(t),O.push(r),S.push(n)}return(0,u.concatHex)(["0x03",P?(0,f.toRlp)([T,A,O,S]):(0,f.toRlp)(T)])}(e,t):"eip7702"===r?function(e,t){const{authorizationList:r,chainId:n,gas:a,nonce:i,to:s,value:c,maxFeePerGas:d,maxPriorityFeePerGas:m,accessList:h,data:g}=e;(0,p.assertTransactionEIP7702)(e);const v=(0,b.serializeAccessList)(h),E=(0,o.serializeAuthorizationList)(r);return(0,u.concatHex)(["0x04",(0,f.toRlp)([(0,l.numberToHex)(n),i?(0,l.numberToHex)(i):"0x",m?(0,l.numberToHex)(m):"0x",d?(0,l.numberToHex)(d):"0x",a?(0,l.numberToHex)(a):"0x",s??"0x",c?(0,l.numberToHex)(c):"0x",g??"0x",v,E,...y(e,t)])])}(e,t):function(e,t){const{chainId:r=0,gas:o,data:a,nonce:i,to:s,value:c,gasPrice:u}=e;(0,p.assertTransactionLegacy)(e);let m=[i?(0,l.numberToHex)(i):"0x",u?(0,l.numberToHex)(u):"0x",o?(0,l.numberToHex)(o):"0x",s??"0x",c?(0,l.numberToHex)(c):"0x",a??"0x"];if(t){const e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})(),o=(0,d.trim)(t.r),a=(0,d.trim)(t.s);m=[...m,(0,l.numberToHex)(e),"0x00"===o?"0x":o,"0x00"===a?"0x":a]}else r>0&&(m=[...m,(0,l.numberToHex)(r),"0x","0x"]);return(0,f.toRlp)(m)}(e,t)},t.toYParitySignatureArray=y;const n=r(3727),o=r(2940),a=r(5956),i=r(3611),s=r(4445),c=r(3339),u=r(6776),d=r(7488),l=r(985),f=r(7926),p=r(7964),m=r(9788),b=r(1270);function y(e,t){const r=t??e,{v:n,yParity:o}=r;if(void 0===r.r)return[];if(void 0===r.s)return[];if(void 0===n&&void 0===o)return[];const a=(0,d.trim)(r.r),i=(0,d.trim)(r.s);return["number"==typeof o?o?(0,l.numberToHex)(1):"0x":0n===n?"0x":1n===n?(0,l.numberToHex)(1):27n===n?"0x":(0,l.numberToHex)(1),"0x00"===a?"0x":a,"0x00"===i?"0x":i]}},5913:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareEncodeFunctionData=function(e){const{abi:t,args:r,functionName:c}=e;let u=t[0];if(c){const e=(0,i.getAbiItem)({abi:t,args:r,name:c});if(!e)throw new n.AbiFunctionNotFoundError(c,{docsPath:s});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:s});return{abi:[u],functionName:(0,o.toFunctionSelector)((0,a.formatAbiItem)(u))}};const n=r(6953),o=r(1456),a=r(4520),i=r(775),s="/docs/contract/encodeFunctionData"},5956:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToCommitments=function(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i=[];for(const e of a)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,o.bytesToHex)(e))};const n=r(7655),o=r(985)},5970:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=function({r:e,yParityAndS:t}){const r=(0,n.hexToBytes)(t),a=128&r[0]?1:0,i=r;return 1===a&&(i[0]&=127),{r:e,s:(0,o.bytesToHex)(i),yParity:a}};const n=r(7655),o=r(985)},5971:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=function(e){if(!(e instanceof n.BaseError))return!1;const t=e.walk(e=>e instanceof o.ContractFunctionRevertedError);return t instanceof o.ContractFunctionRevertedError&&("HttpError"===t.data?.errorName||"ResolverError"===t.data?.errorName||"ResolverNotContract"===t.data?.errorName||"ResolverNotFound"===t.data?.errorName||"ReverseAddressMismatch"===t.data?.errorName||"UnsupportedResolverProfile"===t.data?.errorName)};const n=r(6246),o=r(7677)},5996:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=async function(e,t){const{account:r,authorizationList:m,allowFailure:b=!0,blockNumber:y,blockOverrides:h,blockTag:g,stateOverride:v}=t,E=t.contracts,{batchSize:w=t.batchSize??1024,deployless:x=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},P=(()=>{if(t.multicallAddress)return t.multicallAddress;if(x)return null;if(e.chain)return(0,d.getChainContractAddress)({blockNumber:y,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),I=[[]];let T=0,A=0;for(let e=0;e<E.length;e++){const{abi:t,address:n,args:o,functionName:a}=E[e];try{const e=(0,u.encodeFunctionData)({abi:t,args:o,functionName:a});A+=(e.length-2)/2,w>0&&A>w&&I[T].length>0&&(T++,A=(e.length-2)/2,I[T]=[]),I[T]=[...I[T],{allowFailure:!0,callData:e,target:n}]}catch(e){const i=(0,l.getContractError)(e,{abi:t,address:n,args:o,docsPath:"/docs/contract/multicall",functionName:a,sender:r});if(!b)throw i;I[T]=[...I[T],{allowFailure:!0,callData:"0x",target:n}]}}const O=await Promise.allSettled(I.map(t=>(0,f.getAction)(e,p.readContract,"readContract")({...null===P?{code:o.multicall3Bytecode}:{address:P},abi:n.multicall3Abi,account:r,args:[t],authorizationList:m,blockNumber:y,blockOverrides:h,blockTag:g,functionName:"aggregate3",stateOverride:v}))),S=[];for(let e=0;e<O.length;e++){const t=O[e];if("rejected"===t.status){if(!b)throw t.reason;for(let r=0;r<I[e].length;r++)S.push({status:"failure",error:t.reason,result:void 0});continue}const r=t.value;for(let t=0;t<r.length;t++){const{returnData:n,success:o}=r[t],{callData:i}=I[e][t],{abi:u,address:d,functionName:f,args:p}=E[S.length];try{if("0x"===i)throw new a.AbiDecodingZeroDataError;if(!o)throw new s.RawContractError({data:n});const e=(0,c.decodeFunctionResult)({abi:u,args:p,data:n,functionName:f});S.push(b?{result:e,status:"success"}:e)}catch(e){const t=(0,l.getContractError)(e,{abi:u,address:d,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!b)throw t;S.push({error:t,result:void 0,status:"failure"})}}}if(S.length!==E.length)throw new i.BaseError("multicall results mismatch");return S};const n=r(3302),o=r(6590),a=r(6953),i=r(6246),s=r(7677),c=r(7541),u=r(6144),d=r(3454),l=r(6173),f=r(6207),p=r(5275)},6015:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},6047:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=function(e,{address:t,args:r,batch:h=!0,event:g,events:v,fromBlock:E,onError:w,onLogs:x,poll:P,pollingInterval:I=e.pollingInterval,strict:T}){const A=void 0!==P?P:"bigint"==typeof E||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),O=T??!1;return A?(()=>{const n=(0,l.stringify)(["watchEvent",t,r,h,e.uid,g,I,E]);return(0,u.observe)(n,{onLogs:x,onError:w},n=>{let a,i;void 0!==E&&(a=E-1n);let s=!1;const u=(0,d.poll)(async()=>{if(s)try{let o;if(i)o=await(0,c.getAction)(e,m.getFilterChanges,"getFilterChanges")({filter:i});else{const n=await(0,c.getAction)(e,p.getBlockNumber,"getBlockNumber")({});o=a&&a!==n?await(0,c.getAction)(e,b.getLogs,"getLogs")({address:t,args:r,event:g,events:v,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===o.length)return;if(h)n.onLogs(o);else for(const e of o)n.onLogs([e])}catch(e){i&&e instanceof o.InvalidInputRpcError&&(s=!1),n.onError?.(e)}else{try{i=await(0,c.getAction)(e,f.createEventFilter,"createEventFilter")({address:t,args:r,event:g,events:v,strict:O,fromBlock:E})}catch{}s=!0}},{emitOnBegin:!0,interval:I});return async()=>{i&&await(0,c.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:i}),u()}})})():(()=>{let o=!0,c=()=>o=!1;return(async()=>{try{const u=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),d=v??(g?[g]:void 0);let l=[];if(d){const e=d.flatMap(e=>(0,i.encodeEventTopics)({abi:[e],eventName:e.name,args:r}));l=[e],g&&(l=l[0])}const{unsubscribe:f}=await u.subscribe({params:["logs",{address:t,topics:l}],onData(e){if(!o)return;const t=e.result;try{const{eventName:e,args:r}=(0,a.decodeEventLog)({abi:d??[],data:t.data,topics:t.topics,strict:O}),n=(0,s.formatLog)(t,{args:r,eventName:e});x([n])}catch(e){let r,o;if(e instanceof n.DecodeLogDataMismatch||e instanceof n.DecodeLogTopicsMismatch){if(T)return;r=e.abiItem.name,o=e.abiItem.inputs?.some(e=>!("name"in e&&e.name))}const a=(0,s.formatLog)(t,{args:o?[]:{},eventName:r});x([a])}},onError(e){w?.(e)}});c=f,o||c()}catch(e){w?.(e)}})(),()=>c()})()};const n=r(6953),o=r(7992),a=r(8182),i=r(378),s=r(95),c=r(6207),u=r(2093),d=r(3940),l=r(4900),f=r(3383),p=r(5729),m=r(3590),b=r(9914),y=r(1541)},6117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=function(e,t="wei"){return(0,o.formatUnits)(e,n.etherUnits[t])};const n=r(4839),o=r(1902)},6144:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=function(e){const{args:t}=e,{abi:r,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:(0,a.prepareEncodeFunctionData)(e),s=r[0],c=i,u="inputs"in s&&s.inputs?(0,o.encodeAbiParameters)(s.inputs,t??[]):void 0;return(0,n.concatHex)([c,u??"0x"])};const n=r(6776),o=r(2732),a=r(5913)},6155:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContractSync=async function(e,t){return o.writeContract.internal(e,n.sendTransactionSync,"sendTransactionSync",t)};const n=r(6968),o=r(6160)},6160:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=u;const n=r(9006),o=r(2540),a=r(6144),i=r(6173),s=r(6207),c=r(6687);async function u(e,t){return u.internal(e,c.sendTransaction,"sendTransaction",t)}!function(e){e.internal=async function(e,t,r,c){const{abi:u,account:d=e.account,address:l,args:f,functionName:p,...m}=c;if(void 0===d)throw new o.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});const b=d?(0,n.parseAccount)(d):null,y=(0,a.encodeFunctionData)({abi:u,args:f,functionName:p});try{return await(0,s.getAction)(e,t,r)({data:y,to:l,account:b,...m})}catch(e){throw(0,i.getContractError)(e,{abi:u,address:l,args:f,docsPath:"/docs/contract/writeContract",functionName:p,sender:b?.address})}}}(u||(t.writeContract=u={}))},6173:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=function(e,{abi:t,address:r,args:u,docsPath:d,functionName:l,sender:f}){const p=e instanceof a.RawContractError?e:e instanceof o.BaseError?e.walk(e=>"data"in e)||e.walk():{},{code:m,data:b,details:y,message:h,shortMessage:g}=p,v=e instanceof n.AbiDecodingZeroDataError?new a.ContractFunctionZeroDataError({functionName:l}):[c,s.InternalRpcError.code].includes(m)&&(b||y||h||g)||m===s.InvalidInputRpcError.code&&"execution reverted"===y&&b?new a.ContractFunctionRevertedError({abi:t,data:"object"==typeof b?b.data:b,functionName:l,message:p instanceof i.RpcRequestError?y:g??h}):e;return new a.ContractFunctionExecutionError(v,{abi:t,args:u,contractAddress:r,docsPath:d,functionName:l,sender:f})};const n=r(6953),o=r(6246),a=r(7677),i=r(2202),s=r(7992),c=3},6186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=async function(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,n.getAddress)(e))};const n=r(8728)},6194:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}};const n=r(3044)},6207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=function(e,t,r){const n=e[t.name];if("function"==typeof n)return n;const o=e[r];return"function"==typeof o?o:r=>t(e,r)}},6228:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.socketClientCache=void 0,t.getSocketRpcClient=async function(e){const{getSocket:r,keepAlive:s=!0,key:c="socket",reconnect:u=!0,url:d}=e,{interval:l=3e4}="object"==typeof s?s:{},{attempts:f=5,delay:p=2e3}="object"==typeof u?u:{},m=JSON.stringify({keepAlive:s,key:c,url:d,reconnect:u});let b=t.socketClientCache.get(m);if(b)return b;let y=0;const{schedule:h}=(0,o.createBatchScheduler)({id:m,fn:async()=>{const e=new Map,o=new Map;let c,h,g,v=!1;function E(){if(u&&y<f){if(v)return;v=!0,y++,h?.close(),setTimeout(async()=>{await w().catch(console.error),v=!1},p)}else e.clear(),o.clear()}async function w(){const t=await r({onClose(){for(const t of e.values())t.onError?.(new n.SocketClosedError({url:d}));for(const e of o.values())e.onError?.(new n.SocketClosedError({url:d}));E()},onError(t){c=t;for(const t of e.values())t.onError?.(c);for(const e of o.values())e.onError?.(c);E()},onOpen(){c=void 0,y=0},onResponse(t){const r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,a=r?o:e,i=a.get(n);i&&i.onResponse(t),r||a.delete(n)}});if(h=t,s&&(g&&clearInterval(g),g=setInterval(()=>h.ping?.(),l)),u&&o.size>0){const e=o.entries();for(const[t,{onResponse:r,body:n,onError:a}]of e)n&&(o.delete(t),b?.request({body:n,onResponse:r,onError:a}))}return t}return await w(),c=void 0,b={close(){g&&clearInterval(g),h.close(),t.socketClientCache.delete(m)},get socket(){return h},request({body:t,onError:r,onResponse:n}){c&&r&&r(c);const a=t.id??i.idCache.take(),s=e=>{"number"==typeof e.id&&a!==e.id||("eth_subscribe"===t.method&&"string"==typeof e.result&&o.set(e.result,{onResponse:s,onError:r,body:t}),n(e))};"eth_unsubscribe"===t.method&&o.delete(t.params?.[0]),e.set(a,{onResponse:s,onError:r});try{h.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){r?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,a.withTimeout)(()=>new Promise((t,r)=>this.request({body:e,onError:r,onResponse:t})),{errorInstance:new n.TimeoutError({body:e,url:d}),timeout:t})},requests:e,subscriptions:o,url:d},t.socketClientCache.set(m,b),[b]}}),[g,[v]]=await h();return v};const n=r(2202),o=r(5290),a=r(1208),i=r(7440);t.socketClientCache=new Map},6246:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0,t.setErrorConfig=function(e){o=e};const n=r(5603);let o={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n.version}`};class a extends Error{constructor(e,t={}){const r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof a&&t.cause.docsPath||t.docsPath,s=o.getDocsUrl?.({...t,docsPath:i});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...o.version?[`Version: ${o.version}`]:[]].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=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n.version}walk(e){return i(this,e)}}function i(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?i(e.cause,t):t?null:e}t.BaseError=a},6254:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateAssignmentConflictError=t.AccountStateConflictError=void 0,t.prettyStateMapping=i,t.prettyStateOverride=function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}:\n`;return r.nonce&&(n+=` nonce: ${r.nonce}\n`),r.balance&&(n+=` balance: ${r.balance}\n`),r.code&&(n+=` code: ${r.code}\n`),r.state&&(n+=" state:\n",n+=i(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=i(r.stateDiff)),n}," State Override:\n").slice(0,-1)};const n=r(6246);class o extends n.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}t.AccountStateConflictError=o;class a extends n.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r}\n`,"")}t.StateAssignmentConflictError=a},6259:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSerializedSizeError=t.InvalidUncompressedPrefixError=t.InvalidCompressedPrefixError=t.InvalidPrefixError=t.InvalidError=void 0,t.assert=s,t.compress=function(e){const{x:t,y:r}=e;return{prefix:r%2n==0n?2:3,x:t}},t.from=function(e){const t=(()=>{if(a.validate(e))return u(e);if(n.validate(e))return c(e);const{prefix:t,x:r,y:o}=e;return"bigint"==typeof r&&"bigint"==typeof o?{prefix:t??4,x:r,y:o}:{prefix:t,x:r}})();return s(t),t},t.fromBytes=c,t.fromHex=u,t.toBytes=function(e,t={}){return n.fromHex(d(e,t))},t.toHex=d,t.validate=function(e,t={}){try{return s(e,t),!0}catch(e){return!1}};const n=r(3516),o=r(7560),a=r(9274),i=r(5665);function s(e,t={}){const{compressed:r}=t,{prefix:n,x:o,y:a}=e;if(!1===r||"bigint"==typeof o&&"bigint"==typeof a){if(4!==n)throw new f({prefix:n,cause:new m})}else{if(!0!==r&&("bigint"!=typeof o||void 0!==a))throw new l({publicKey:e});if(3!==n&&2!==n)throw new f({prefix:n,cause:new p})}}function c(e){return u(a.fromBytes(e))}function u(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new b({publicKey:e});return 130===e.length?{prefix:4,x:BigInt(a.slice(e,0,32)),y:BigInt(a.slice(e,32,64))}:132===e.length?{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33)),y:BigInt(a.slice(e,33,65))}:{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33))}}function d(e,t={}){s(e);const{prefix:r,x:n,y:o}=e,{includePrefix:i=!0}=t;return a.concat(i?a.fromNumber(r,{size:1}):"0x",a.fromNumber(n,{size:32}),"bigint"==typeof o?a.fromNumber(o,{size:32}):"0x")}class l extends o.BaseError{constructor({publicKey:e}){super(`Value \`${i.stringify(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}t.InvalidError=l;class f extends o.BaseError{constructor({prefix:e,cause:t}){super(`Prefix "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}t.InvalidPrefixError=f;class p extends o.BaseError{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}t.InvalidCompressedPrefixError=p;class m extends o.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}t.InvalidUncompressedPrefixError=m;class b extends o.BaseError{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${a.size(a.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=b},6303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=void 0,t.isErrorSignature=function(e){return o.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(o,e)},t.isEventSignature=function(e){return a.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(a,e)},t.isFunctionSignature=function(e){return i.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(i,e)},t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)},t.isConstructorSignature=function(e){return c.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(c,e)},t.isFallbackSignature=function(e){return u.test(e)},t.execFallbackSignature=function(e){return(0,n.execTyped)(u,e)},t.isReceiveSignature=function(e){return d.test(e)};const n=r(8651),o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,c=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,u=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,d=/^receive\(\) external payable$/;t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},6311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;const n=r(6246);class o extends n.BaseError{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"})}}t.InvalidAddressError=o},6323:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=function(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(o);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};const n=r(3069),o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({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 n.NegativeOffsetError({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}},6339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.containsNodeError=function(e){return e instanceof i.TransactionRejectedRpcError||e instanceof i.InvalidInputRpcError||e instanceof a.RpcRequestError&&e.code===o.ExecutionRevertedError.code},t.getNodeError=function(e,t){const r=(e.details||"").toLowerCase(),a=e instanceof n.BaseError?e.walk(e=>e?.code===o.ExecutionRevertedError.code):e;return a instanceof n.BaseError?new o.ExecutionRevertedError({cause:e,message:a.details}):o.ExecutionRevertedError.nodeMessage.test(r)?new o.ExecutionRevertedError({cause:e,message:e.details}):o.FeeCapTooHighError.nodeMessage.test(r)?new o.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.FeeCapTooLowError.nodeMessage.test(r)?new o.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.NonceTooHighError.nodeMessage.test(r)?new o.NonceTooHighError({cause:e,nonce:t?.nonce}):o.NonceTooLowError.nodeMessage.test(r)?new o.NonceTooLowError({cause:e,nonce:t?.nonce}):o.NonceMaxValueError.nodeMessage.test(r)?new o.NonceMaxValueError({cause:e,nonce:t?.nonce}):o.InsufficientFundsError.nodeMessage.test(r)?new o.InsufficientFundsError({cause:e}):o.IntrinsicGasTooHighError.nodeMessage.test(r)?new o.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):o.IntrinsicGasTooLowError.nodeMessage.test(r)?new o.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):o.TransactionTypeNotSupportedError.nodeMessage.test(r)?new o.TransactionTypeNotSupportedError({cause:e}):o.TipAboveFeeCapError.nodeMessage.test(r)?new o.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new o.UnknownNodeError({cause:e})};const n=r(6246),o=r(2731),a=r(2202),i=r(7992)},6351:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e,t={}){if((0,u.isFunctionSignature)(e))return d(e,t);if((0,u.isEventSignature)(e))return l(e,t);if((0,u.isErrorSignature)(e))return f(e,t);if((0,u.isConstructorSignature)(e))return p(e,t);if((0,u.isFallbackSignature)(e))return m(e);if((0,u.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new i.UnknownSignatureError({signature:e})},t.parseFunctionSignature=d,t.parseEventSignature=l,t.parseErrorSignature=f,t.parseConstructorSignature=p,t.parseFallbackSignature=m,t.parseAbiParameter=g,t.splitParameters=v,t.isSolidityType=E,t.isSolidityKeyword=x,t.isValidDataLocation=P;const n=r(8651),o=r(3200),a=r(6992),i=r(1923),s=r(9361),c=r(9760),u=r(6303);function d(e,t={}){const r=(0,u.execFunctionSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"function"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{modifiers:u.functionModifiers,structs:t,type:"function"}));const s=[];if(r.returns){const e=v(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(g(e[r],{modifiers:u.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:o,outputs:s}}function l(e,t={}){const r=(0,u.execEventSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"event"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{modifiers:u.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:o}}function f(e,t={}){const r=(0,u.execErrorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"error"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:o}}function p(e,t={}){const r=(0,u.execConstructorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"constructor"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:o}}function m(e){const t=(0,u.execFallbackSignature)(e);if(!t)throw new i.InvalidSignatureError({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const b=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,y=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function g(e,t){const r=(0,c.getParameterCacheKey)(e,t?.type,t?.structs);if(c.parameterCache.has(r))return c.parameterCache.get(r);const i=n.isTupleRegex.test(e),s=(0,n.execTyped)(i?y:b,e);if(!s)throw new a.InvalidParameterError({param:e});if(s.name&&x(s.name))throw new a.SolidityProtectedKeywordError({param:e,name:s.name});const d=s.name?{name:s.name}:{},l="indexed"===s.modifier?{indexed:!0}:{},f=t?.structs??{};let p,m={};if(i){p="tuple";const e=v(s.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(g(e[n],{structs:f}));m={components:t}}else if(s.type in f)p="tuple",m={components:f[s.type]};else if(h.test(s.type))p=`${s.type}256`;else if("address payable"===s.type)p="address";else if(p=s.type,"struct"!==t?.type&&!E(p))throw new o.UnknownSolidityTypeError({type:p});if(s.modifier){if(!t?.modifiers?.has?.(s.modifier))throw new a.InvalidModifierError({param:e,type:t?.type,modifier:s.modifier});if(u.functionModifiers.has(s.modifier)&&!P(p,!!s.array))throw new a.InvalidFunctionModifierError({param:e,type:t?.type,modifier:s.modifier})}const w={type:`${p}${s.array??""}`,...d,...l,...m};return c.parameterCache.set(r,w),w}function v(e,t=[],r="",n=0){const o=e.trim().length;for(let a=0;a<o;a++){const o=e[a],i=e.slice(a+1);switch(o){case",":return 0===n?v(i,[...t,r.trim()]):v(i,t,`${r}${o}`,n);case"(":return v(i,t,`${r}${o}`,n+1);case")":return v(i,t,`${r}${o}`,n-1);default:return v(i,t,`${r}${o}`,n)}}if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function E(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}const w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function x(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||w.test(e)}function P(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}},6377:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=async function(e,{address:t,message:r,factory:i,factoryData:s,signature:c,...u}){const d=(0,o.hashMessage)(r);return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:t,factory:i,factoryData:s,hash:d,signature:c,...u})};const n=r(6207),o=r(5336),a=r(8868)},6394:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=async function(e){return await e.request({method:"txpool_inspect"})}},6423:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCapabilities=async function(e,t={}){const{account:r=e.account,chainId:a}=t,i=r?(0,n.parseAccount)(r):void 0,s=a?[i?.address,[(0,o.numberToHex)(a)]]:[i?.address],c=await e.request({method:"wallet_getCapabilities",params:s}),u={};for(const[e,t]of Object.entries(c)){u[Number(e)]={};for(let[r,n]of Object.entries(t))"addSubAccount"===r&&(r="unstable_addSubAccount"),u[Number(e)][r]=n}return"number"==typeof a?u[a]:u};const n=r(9006),o=r(985)},6425:(e,t,r)=>{function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,{iterator:i,toStringTag:s}=Symbol,c=(u=Object.create(null),e=>{const t=o.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:f}=Array,p=l("undefined");function m(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b=d("ArrayBuffer"),y=l("string"),h=l("function"),g=l("number"),v=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||i in e)},w=d("Date"),x=d("File"),P=d("Blob"),I=d("FileList"),T=d("URLSearchParams"),[A,O,S,B]=["ReadableStream","Request","Response","Headers"].map(d);function j(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),f(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(m(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function R(e,t){if(m(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,C=e=>!p(e)&&e!==_,M=(k="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>k&&e instanceof k);var k;const F=d("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),U=d("RegExp"),z=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};j(r,(r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)}),Object.defineProperties(e,n)},H=d("AsyncFunction"),L=(D="function"==typeof setImmediate,$=h(_.postMessage),D?setImmediate:$?(q=`axios@${Math.random()}`,G=[],_.addEventListener("message",({source:e,data:t})=>{e===_&&t===q&&G.length&&G.shift()()},!1),e=>{G.push(e),_.postMessage(q,"*")}):e=>setTimeout(e));var D,$,q,G;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!=typeof process&&process.nextTick||L;var W={isArray:f,isArrayBuffer:b,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=c(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t},isString:y,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:E,isEmptyObject:e=>{if(!v(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:A,isRequest:O,isResponse:S,isHeaders:B,isUndefined:p,isDate:w,isFile:x,isBlob:P,isRegExp:U,isFunction:h,isStream:e=>v(e)&&h(e.pipe),isURLSearchParams:T,isTypedArray:M,isFileList:I,forEach:j,merge:function e(){const{caseless:t,skipUndefined:r}=C(this)&&this||{},n={},o=(o,a)=>{const i=t&&R(n,a)||a;E(n[i])&&E(o)?n[i]=e(n[i],o):E(o)?n[i]=e({},o):f(o)?n[i]=o.slice():r&&p(o)||(n[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:o}={})=>(j(t,(t,o)=>{r&&h(t)?e[o]=n(t,r):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[i]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return f(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:_,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[s]&&e[i])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;const o=f(e)?[]:{};return j(e,(e,t)=>{const a=r(e,n+1);!p(a)&&(o[t]=a)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:H,isThenable:e=>e&&(v(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:L,asap:V,isIterable:e=>null!=e&&h(e[i])};function K(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=K.prototype,J={};function Y(e){return W.isPlainObject(e)||W.isArray(e)}function X(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map(function(e,t){return e=X(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{J[e]={value:e}}),Object.defineProperties(K,J),Object.defineProperty(Z,"isAxiosError",{value:!0}),K.from=(e,t,r,n,o,a)=>{const i=Object.create(Z);W.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return K.call(i,s,c,r,n,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};const ee=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function te(e,t,r){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,o=r.visitor||u,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(W.isBoolean(e))return e.toString();if(!s&&W.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(Y)}(e)||(W.isFileList(e)||W.endsWith(r,"[]"))&&(s=W.toArray(e)))return r=X(r),s.forEach(function(e,n){!W.isUndefined(e)&&null!==e&&t.append(!0===i?Q([r],n,a):null===i?r:r+"[]",c(e))}),!1;return!!Y(e)||(t.append(Q(o,r,a),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!W.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),W.forEach(r,function(r,a){!0===(!(W.isUndefined(r)||null===r)&&o.call(t,r,W.isString(a)?a.trim():a,n,l))&&e(r,n?n.concat(a):[a])}),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const oe=ne.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ie(e,t,r){if(!t)return e;const n=r&&r.encode||ae;W.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(a=o?o(t,r):W.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,fe=de&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=de&&window.location.href||"http://localhost";var be={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:fe,navigator:le,origin:me}),...ue};function ye(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&W.isArray(n)?n.length:a,s?(W.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i):(n[a]&&W.isObject(n[a])||(n[a]=[]),t(e,r,n[a],o)&&W.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}(n[a])),!i)}if(W.isFormData(e)&&W.isFunction(e.entries)){const r={};return W.forEachEntry(e,(e,n)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const he={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=W.isObject(e);if(o&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(ye(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new be.classes.URLSearchParams,{visitor:function(e,t,r,n){return be.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(W.isString(e))try{return(0,JSON.parse)(e),W.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{he.headers[e]={}});var ge=he;const ve=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:W.isArray(e)?e.map(xe):String(e)}function Pe(e,t,r,n,o){return W.isFunction(n)?n.call(this,t,r):(o&&(t=r),W.isString(t)?W.isString(n)?-1!==t.indexOf(n):W.isRegExp(n)?n.test(t):void 0:void 0)}class Ie{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=we(t);if(!o)throw new Error("header name must be a non-empty string");const a=W.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=xe(e))}const a=(e,t)=>W.forEach(e,(e,r)=>o(e,r,t));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(W.isObject(e)&&W.isIterable(e)){let r,n,o={};for(const t of e){if(!W.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?W.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=we(e)){const r=W.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(W.isFunction(t))return t.call(this,e,r);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const r=W.findKey(this,e);return!(!r||void 0===this[r]||t&&!Pe(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=we(e)){const o=W.findKey(r,e);!o||t&&!Pe(0,r[o],o,t)||(delete r[o],n=!0)}}return W.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Pe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return W.forEach(this,(n,o)=>{const a=W.findKey(r,o);if(a)return t[a]=xe(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();i!==o&&delete t[o],t[i]=xe(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&W.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=we(e);t[n]||(function(e,t){const r=W.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return W.isArray(e)?e.forEach(n):n(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Ie.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),W.freezeMethods(Ie);var Te=Ie;function Ae(e,t){const r=this||ge,n=t||r,o=Te.from(n.headers);let a=n.data;return W.forEach(e,function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Oe(e){return!(!e||!e.__CANCEL__)}function Se(e,t,r){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError"}function Be(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}W.inherits(Se,K,{__CANCEL__:!0});const je=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[i];o||(o=c),r[a]=s,n[a]=c;let d=i,l=0;for(;d!==a;)l+=r[d++],d%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*l/f):void 0}}(50,250);return function(r,a){let i,s,c=0,u=1e3/a;const d=(r,a=Date.now())=>{c=a,i=null,s&&(clearTimeout(s),s=null),(r=>{const a=r.loaded,i=r.lengthComputable?r.total:void 0,s=a-n,c=o(s);n=a,e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})})(...r)};return[(...e)=>{const t=Date.now(),r=t-c;r>=u?d(e,t):(i=e,s||(s=setTimeout(()=>{s=null,d(i)},u-r)))},()=>i&&d(i)]}(0,r)},Re=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_e=e=>(...t)=>W.asap(()=>e(...t));var Ce=be.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,be.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Me=be.hasStandardBrowserEnv?{write(e,t,r,n,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];W.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),W.isString(n)&&s.push(`path=${n}`),W.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),W.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ke(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Te?{...e}:e;function Ne(e,t){t=t||{};const r={};function n(e,t,r,n){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:n},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function o(e,t,r,o){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function a(e,t){if(!W.isUndefined(t))return n(void 0,t)}function i(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,r)=>o(Fe(e),Fe(t),0,!0)};return W.forEach(Object.keys({...e,...t}),function(n){const a=c[n]||o,i=a(e[n],t[n],n);W.isUndefined(i)&&a!==s||(r[n]=i)}),r}var Ue=e=>{const t=Ne({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Te.from(i),t.url=ie(ke(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),W.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(W.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)})}if(be.hasStandardBrowserEnv&&(n&&W.isFunction(n)&&(n=n(t)),n||!1!==n&&Ce(t.url))){const e=o&&a&&Me.read(a);e&&i.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ue(e);let o=n.data;const a=Te.from(n.headers).normalize();let i,s,c,u,d,{responseType:l,onUploadProgress:f,onDownloadProgress:p}=n;function m(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(i),n.signal&&n.signal.removeEventListener("abort",i)}let b=new XMLHttpRequest;function y(){if(!b)return;const n=Te.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Be(function(e){t(e),m()},function(e){r(e),m()},{data:l&&"text"!==l&&"json"!==l?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b}),b=null}b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout,"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(y)},b.onabort=function(){b&&(r(new K("Request aborted",K.ECONNABORTED,e,b)),b=null)},b.onerror=function(t){const n=new K(t&&t.message?t.message:"Network Error",K.ERR_NETWORK,e,b);n.event=t||null,r(n),b=null},b.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new K(t,o.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,b)),b=null},void 0===o&&a.setContentType(null),"setRequestHeader"in b&&W.forEach(a.toJSON(),function(e,t){b.setRequestHeader(t,e)}),W.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&"json"!==l&&(b.responseType=n.responseType),p&&([c,d]=je(p,!0),b.addEventListener("progress",c)),f&&b.upload&&([s,u]=je(f),b.upload.addEventListener("progress",s),b.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(i=t=>{b&&(r(!t||t.type?new Se(null,e,b):t),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(i),n.signal&&(n.signal.aborted?i():n.signal.addEventListener("abort",i)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);h&&-1===be.protocols.indexOf(h)?r(new K("Unsupported protocol "+h+":",K.ERR_BAD_REQUEST,e)):b.send(o||null)})},He=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof K?t:new Se(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>W.asap(i),s}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},De=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Le(r,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let a=n.byteLength;if(r){let e=i+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:$e}=W,qe=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:Ge,TextEncoder:Ve}=W.global,We=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=e=>{e=W.merge.call({skipUndefined:!0},qe,e);const{fetch:t,Request:r,Response:n}=e,o=t?$e(t):"function"==typeof fetch,a=$e(r),i=$e(n);if(!o)return!1;const s=o&&$e(Ge),c=o&&("function"==typeof Ve?(u=new Ve,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const d=a&&s&&We(()=>{let e=!1;const t=new r(be.origin,{body:new Ge,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&We(()=>W.isReadableStream(new n("").body)),f={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:o,method:i,data:s,signal:u,cancelToken:p,timeout:m,onDownloadProgress:b,onUploadProgress:y,responseType:h,headers:g,withCredentials:v="same-origin",fetchOptions:E}=Ue(e),w=t||fetch;h=h?(h+"").toLowerCase():"text";let x=He([u,p&&p.toAbortSignal()],m),P=null;const I=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let T;try{if(y&&d&&"get"!==i&&"head"!==i&&0!==(T=await(async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new r(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await c(e)).byteLength:void 0)})(t):n})(g,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(W.isFormData(s)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,r]=Re(T,je(_e(y)));s=De(t.body,65536,e,r)}}W.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in r.prototype,u={...E,signal:x,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};P=a&&new r(o,u);let p=await(a?w(P,E):w(o,u));const m=l&&("stream"===h||"response"===h);if(l&&(b||m&&I)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=W.toFiniteNumber(p.headers.get("content-length")),[r,o]=b&&Re(t,je(_e(b),!0))||[];p=new n(De(p.body,65536,r,()=>{o&&o(),I&&I()}),e)}h=h||"text";let A=await f[W.findKey(f,h)||"text"](p,e);return!m&&I&&I(),await new Promise((t,r)=>{Be(t,r,{data:A,headers:Te.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:P})})}catch(t){if(I&&I(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,P),{cause:t.cause||t});throw K.from(t,t&&t.code,e,P)}}},Ze=new Map,Je=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,a=[n,o,r];let i,s,c=a.length,u=Ze;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:Ke(t)),u=s;return s};Je();const Ye={http:null,xhr:ze,fetch:{get:Je}};W.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Qe=e=>W.isFunction(e)||null===e||!1===e;var et=function(e,t){e=W.isArray(e)?e:[e];const{length:r}=e;let n,o;const a={};for(let i=0;i<r;i++){let r;if(n=e[i],o=n,!Qe(n)&&(o=Ye[(r=String(n)).toLowerCase()],void 0===o))throw new K(`Unknown adapter '${r}'`);if(o&&(W.isFunction(o)||(o=o.get(t))))break;a[r||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new K("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function rt(e){return tt(e),e.headers=Te.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||ge.adapter,e)(e).then(function(t){return tt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t},function(t){return Oe(t)||(tt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)})}const nt="1.13.2",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ot.transitional=function(e,t,r){function n(e,t){return"[Axios v"+nt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>{if(!1===e)throw new K(n(o," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!at[o]&&(at[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}},ot.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new K("option "+a+" must be "+r,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new K("Unknown option "+a,K.ERR_BAD_OPTION)}},validators:ot};const st=it.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ne(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&it.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&(W.isFunction(n)?t.paramsSerializer={serialize:n}:it.assertOptions(n,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&W.merge(o.common,o[t.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Te.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift(...i),e.push(...c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=i.length;let f=t;for(;l<d;){const e=i[l++],t=i[l++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=rt.call(this,f)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(ke((e=Ne(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ne(r||{},{method:e,url:t,data:(r||{}).data}))}}),W.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Se(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ft).forEach(([e,t])=>{ft[t]=e});var pt=ft;const mt=function e(t){const r=new ut(t),o=n(ut.prototype.request,r);return W.extend(o,ut.prototype,r,{allOwnKeys:!0}),W.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return e(Ne(t,r))},o}(ge);mt.Axios=ut,mt.CanceledError=Se,mt.CancelToken=lt,mt.isCancel=Oe,mt.VERSION=nt,mt.toFormData=te,mt.AxiosError=K,mt.Cancel=mt.CanceledError,mt.all=function(e){return Promise.all(e)},mt.spread=function(e){return function(t){return e.apply(null,t)}},mt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},mt.mergeConfig=Ne,mt.AxiosHeaders=Te,mt.formToJSON=e=>ye(W.isHTMLForm(e)?new FormData(e):e),mt.getAdapter=et,mt.HttpStatusCode=pt,mt.default=mt,e.exports=mt},6462:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=async function(e,{address:t,index:r,value:o}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,o]})};const n=r(985)},6491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateSiweMessage=function(e){const{address:t,domain:r,message:a,nonce:i,scheme:s,time:c=new Date}=e;if(r&&a.domain!==r)return!1;if(i&&a.nonce!==i)return!1;if(s&&a.scheme!==s)return!1;if(a.expirationTime&&c>=a.expirationTime)return!1;if(a.notBefore&&c<a.notBefore)return!1;try{if(!a.address)return!1;if(!(0,n.isAddress)(a.address,{strict:!1}))return!1;if(t&&!(0,o.isAddressEqual)(a.address,t))return!1}catch{return!1}return!0};const n=r(9742),o=r(4324)},6524:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(821);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var o=r(5617);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return o.narrow}});var a=r(9150);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return a.formatAbi}});var i=r(7905);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return i.formatAbiItem}});var s=r(7087);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var c=r(2026);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return c.formatAbiParameters}});var u=r(4178);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return u.parseAbi}});var d=r(7341);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return d.parseAbiItem}});var l=r(5195);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return l.parseAbiParameter}});var f=r(7054);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var p=r(3200);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return p.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return p.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return p.UnknownSolidityTypeError}});var m=r(6992);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var b=r(1923);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return b.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return b.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return b.UnknownSignatureError}});var y=r(9361);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return y.InvalidParenthesisError}});var h=r(7872);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return h.CircularReferenceError}})},6532:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=async function(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}},6545:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=async function(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const o=(0,n.parseNftUri)(r),a=await(0,n.getNftTokenUri)(e,{nft:o}),{uri:i,isOnChain:s,isEncoded:c}=(0,n.resolveAvatarUri)({uri:a,gatewayUrls:t});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const e=c?atob(i.replace("data:application/json;base64,","")):i,r=JSON.parse(e);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(r),gatewayUrls:t})}let u=o.tokenID;return"erc1155"===o.namespace&&(u=u.replace("0x","").padStart(64,"0")),(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,u)})}(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})};const n=r(3075)},6589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=async function(e,{blockCount:t,blockNumber:r,blockTag:a="latest",rewardPercentiles:i}){const s="bigint"==typeof r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||a,i]},{dedupe:Boolean(s)});return(0,o.formatFeeHistory)(c)};const n=r(985),o=r(5549)},6590:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall3Bytecode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=void 0,t.deploylessCallViaBytecodeBytecode="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",t.deploylessCallViaFactoryBytecode="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",t.erc6492SignatureValidatorByteCode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.multicall3Bytecode="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},6625:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},6651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=void 0;const n=r(4900),o=r(6246);class a extends o.BaseError{constructor({domain:e}){super(`Invalid domain "${(0,n.stringify)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}t.InvalidDomainError=a;class i extends o.BaseError{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}t.InvalidPrimaryTypeError=i;class s extends o.BaseError{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}t.InvalidStructTypeError=s},6659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=async function(e,{hash:t,transactionReceipt:r}){const[i,s]=await Promise.all([(0,n.getAction)(e,o.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,a.getTransaction,"getTransaction")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?i-c+1n:0n};const n=r(6207),o=r(5729),a=r(2401)},6687:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=async function(e,t){const{account:r=e.account,assertChainId:p=!0,chain:v=e.chain,accessList:E,authorizationList:w,blobs:x,data:P,dataSuffix:I=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,type:R,value:_,...C}=t;if(void 0===r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const M=r?(0,n.parseAccount)(r):null;try{(0,m.assertRequest)(t);const r=await(async()=>t.to?t.to:null!==t.to&&w&&w.length>0?await(0,i.recoverAuthorizationAddress)({authorization:w[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===M?.type||null===M){let t;null!==v&&(t=await(0,f.getAction)(e,b.getChainId,"getChainId")({}),p&&(0,s.assertCurrentChain)({currentChainId:t,chain:v}));const n=e.chain?.formatters?.transactionRequest?.format,o=(n||l.formatTransactionRequest)({...(0,d.extract)(C,{format:n}),accessList:E,account:M,authorizationList:w,blobs:x,chainId:t,data:P?(0,c.concat)([P,I??"0x"]):P,gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,to:r,type:R,value:_},"sendTransaction"),a=g.get(e.uid),i=a?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:i,params:[o]},{retryCount:0})}catch(t){if(!1===a)throw t;const r=t;if("InvalidInputRpcError"===r.name||"InvalidParamsRpcError"===r.name||"MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)return await e.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(t=>(g.set(e.uid,!0),t)).catch(t=>{const n=t;if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw g.set(e.uid,!1),r;throw n});throw r}}if("local"===M?.type){const t=await(0,f.getAction)(e,y.prepareTransactionRequest,"prepareTransactionRequest")({account:M,accessList:E,authorizationList:w,blobs:x,chain:v,data:P?(0,c.concat)([P,I??"0x"]):P,gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,nonceManager:M.nonceManager,parameters:[...y.defaultParameters,"sidecars"],type:R,value:_,...C,to:r}),n=v?.serializers?.transaction,o=await M.signTransaction(t,{serializer:n});return await(0,f.getAction)(e,h.sendRawTransaction,"sendRawTransaction")({serializedTransaction:o})}if("smart"===M?.type)throw new o.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:M?.type})}catch(e){if(e instanceof o.AccountTypeNotSupportedError)throw e;throw(0,u.getTransactionError)(e,{...t,account:M,chain:t.chain||void 0})}};const n=r(9006),o=r(2540),a=r(6246),i=r(1184),s=r(2779),c=r(6776),u=r(2403),d=r(796),l=r(4712),f=r(6207),p=r(7848),m=r(4969),b=r(1093),y=r(8807),h=r(9085),g=new p.LruMap(128)},6705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=async function(e,t){const{abi:r,address:u,args:d,functionName:l,dataSuffix:f=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...p}=t,m=p.account?(0,n.parseAccount)(p.account):e.account,b=(0,a.encodeFunctionData)({abi:r,args:d,functionName:l});try{const{data:n}=await(0,s.getAction)(e,c.call,"call")({batch:!1,data:`${b}${f?f.replace("0x",""):""}`,to:u,...p,account:m});return{result:(0,o.decodeFunctionResult)({abi:r,args:d,functionName:l,data:n||"0x"}),request:{abi:r.filter(e=>"name"in e&&e.name===t.functionName),address:u,args:d,dataSuffix:f,functionName:l,...p,account:m}}}catch(e){throw(0,i.getContractError)(e,{abi:r,address:u,args:d,docsPath:"/docs/contract/simulateContract",functionName:l,sender:m?.address})}};const n=r(9006),o=r(7541),a=r(6144),i=r(6173),s=r(6207),c=r(7141)},6776:(e,t)=>{function r(e){let t=0;for(const r of e)t+=r.length;const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},6785:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=async function(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})};const n=r(985)},6825:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderRpcError=void 0;class r extends Error{constructor(e,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=t}}t.ProviderRpcError=r},6839:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=async function(e,t){const{accessList:r,data:a,from:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:l,to:f,value:p,...m}=t,b=e.chain?.formatters?.transactionRequest?.format,y=(b||o.formatTransactionRequest)({...(0,n.extract)(m,{format:b}),accessList:r,data:a,from:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:l,to:f,value:p},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[y]})};const n=r(796),o=r(4712)},6861:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;const n=r(6246);class o extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=o},6873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=async function(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||o.formatTransactionReceipt)(r,"getTransactionReceipt")};const n=r(3727),o=r(4537)},6953:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;const n=r(4520),o=r(2285),a=r(6246);class i extends a.BaseError{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e,name:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=i;class s extends a.BaseError{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class c extends a.BaseError{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join("\n"),{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=c;class u extends a.BaseError{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=u;class d extends a.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=d;class l extends a.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=l;class f extends a.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,o.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class p extends a.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=p;class m extends a.BaseError{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=m;class b extends a.BaseError{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t,name:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=b;class y extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=y;class h extends a.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=h;class g extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=g;class v extends a.BaseError{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t,name:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class E extends a.BaseError{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"})}}t.AbiFunctionNotFoundError=E;class w extends a.BaseError{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=w;class x extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=x;class P extends a.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=P;class I extends a.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=I;class T extends a.BaseError{constructor({abiItem:e,data:t,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${o} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=o}}t.DecodeLogDataMismatch=T;class A extends a.BaseError{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=A;class O extends a.BaseError{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"})}}t.InvalidAbiEncodingTypeError=O;class S extends a.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=S;class B extends a.BaseError{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}t.InvalidArrayError=B;class j extends a.BaseError{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=j;class R extends a.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=R},6968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransactionSync=async function(e,t){const{account:r=e.account,assertChainId:m=!0,chain:w=e.chain,accessList:x,authorizationList:P,blobs:I,data:T,dataSuffix:A=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,pollingInterval:C,throwOnReceiptRevert:M,type:k,value:F,...N}=t,U=t.timeout??Math.max(3*(w?.blockTime??0),5e3);if(void 0===r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});const z=r?(0,n.parseAccount)(r):null;try{(0,b.assertRequest)(t);const r=await(async()=>t.to?t.to:null!==t.to&&P&&P.length>0?await(0,s.recoverAuthorizationAddress)({authorization:P[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===z?.type||null===z){let t;null!==w&&(t=await(0,p.getAction)(e,y.getChainId,"getChainId")({}),m&&(0,c.assertCurrentChain)({currentChainId:t,chain:w}));const n=e.chain?.formatters?.transactionRequest?.format,o=(n||f.formatTransactionRequest)({...(0,l.extract)(N,{format:n}),accessList:x,account:z,authorizationList:P,blobs:I,chainId:t,data:T?(0,u.concat)([T,A??"0x"]):T,gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,to:r,type:k,value:F},"sendTransaction"),a=E.get(e.uid),s=a?"wallet_sendTransaction":"eth_sendTransaction",d=await(async()=>{try{return await e.request({method:s,params:[o]},{retryCount:0})}catch(t){if(!1===a)throw t;const r=t;if("InvalidInputRpcError"===r.name||"InvalidParamsRpcError"===r.name||"MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)return await e.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(t=>(E.set(e.uid,!0),t)).catch(t=>{const n=t;if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw E.set(e.uid,!1),r;throw n});throw r}})(),b=await(0,p.getAction)(e,h.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:d,pollingInterval:C,timeout:U});if(M&&"reverted"===b.status)throw new i.TransactionReceiptRevertedError({receipt:b});return b}if("local"===z?.type){const n=await(0,p.getAction)(e,g.prepareTransactionRequest,"prepareTransactionRequest")({account:z,accessList:x,authorizationList:P,blobs:I,chain:w,data:T?(0,u.concat)([T,A??"0x"]):T,gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,nonceManager:z.nonceManager,parameters:[...g.defaultParameters,"sidecars"],type:k,value:F,...N,to:r}),o=w?.serializers?.transaction,a=await z.signTransaction(n,{serializer:o});return await(0,p.getAction)(e,v.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:a,throwOnReceiptRevert:M,timeout:t.timeout})}if("smart"===z?.type)throw new o.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:z?.type})}catch(e){if(e instanceof o.AccountTypeNotSupportedError)throw e;throw(0,d.getTransactionError)(e,{...t,account:z,chain:t.chain||void 0})}};const n=r(9006),o=r(2540),a=r(6246),i=r(3727),s=r(1184),c=r(2779),u=r(6776),d=r(2403),l=r(796),f=r(4712),p=r(6207),m=r(7848),b=r(4969),y=r(1093),h=r(2917),g=r(8807),v=r(1714),E=new m.LruMap(128)},6992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;const n=r(821);class o extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=o;class a extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=a;class i extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=i;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=c;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=u;class d extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=d},6998:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}},7028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeConfig=void 0;class r{constructor(e){if(!e.apiKey)throw new Error("BridgeSDK: apiKey is required");this.apiKey=e.apiKey,this.secretKey="secretKey"in e?e.secretKey:void 0,this.environment=e.environment||"mainnet",["devnet","testnet","mainnet"].includes(this.environment)||(this.environment="mainnet");const t=r.DEFAULTS[this.environment];this.baseUrl=t.baseUrl,this.bridgeContractAddress=t.bridgeContractAddress}getBaseUrl(){return this.baseUrl}}t.BridgeConfig=r,r.DEFAULTS={devnet:{baseUrl:"https://api-sdk-dev.voidai.envistudios.com/",bridgeContractAddress:"0x6266ce15aC4f32F096Ff91881dd887a0F4bBa569"},testnet:{baseUrl:"https://sdk-backend.voidai.com/",bridgeContractAddress:"0x4aA4396BfD6F268b427077079800F420dF947b63"},mainnet:{baseUrl:"https://api-sdk.voidai.envistudios.com/",bridgeContractAddress:"0x604e8Ef901C0E69E79463D997ba7D0724A909b84"}}},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.reset=async function(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}},7054:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=function(e){const t=[];if("string"==typeof e){const r=(0,i.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:o.modifiers}))}else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if((0,o.isStructSignature)(n))continue;const c=(0,i.splitParameters)(n),u=c.length;for(let e=0;e<u;e++)t.push((0,s.parseAbiParameter)(c[e],{modifiers:o.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t};const n=r(6992),o=r(6303),a=r(5324),i=r(6351),s=r(6351)},7069:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=async function(e,{address:t,bytecode:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountCode",params:[t,r]}):await e.request({method:`${e.mode}_setCode`,params:[t,r]})}},7076:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const n=r(7202),o=r(2318),a=r(9175),i=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]),s=new Uint32Array(64);class c extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){const{A:e,B:t,C:r,D:n,E:o,F:a,G:i,H:s}=this;return[e,t,r,n,o,a,i,s]}set(e,t,r,n,o,a,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|a,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],r=s[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,o=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;s[e]=o+s[e-7]+n+s[e-16]|0}let{A:r,B:o,C:c,D:u,E:d,F:l,G:f,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,a.rotr)(d,6)^(0,a.rotr)(d,11)^(0,a.rotr)(d,25))+(0,n.Chi)(d,l,f)+i[e]+s[e]|0,m=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,o,c)|0;p=f,f=l,l=d,d=u+t|0,u=c,c=o,o=r,r=t+m|0}r=r+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,d=d+this.E|0,l=l+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,o,c,u,d,l,f,p)}roundClean(){(0,a.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,a.clean)(this.buffer)}}t.SHA256=c;class u extends c{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=u;const d=(()=>o.split(["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))))(),l=(()=>d[0])(),f=(()=>d[1])(),p=new Uint32Array(80),m=new Uint32Array(80);class b extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:o,Cl:a,Dh:i,Dl:s,Eh:c,El:u,Fh:d,Fl:l,Gh:f,Gl:p,Hh:m,Hl:b}=this;return[e,t,r,n,o,a,i,s,c,u,d,l,f,p,m,b]}set(e,t,r,n,o,a,i,s,c,u,d,l,f,p,m,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|o,this.Cl=0|a,this.Dh=0|i,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|l,this.Gh=0|f,this.Gl=0|p,this.Hh=0|m,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)p[r]=e.getUint32(t),m[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|p[e-15],r=0|m[e-15],n=o.rotrSH(t,r,1)^o.rotrSH(t,r,8)^o.shrSH(t,r,7),a=o.rotrSL(t,r,1)^o.rotrSL(t,r,8)^o.shrSL(t,r,7),i=0|p[e-2],s=0|m[e-2],c=o.rotrSH(i,s,19)^o.rotrBH(i,s,61)^o.shrSH(i,s,6),u=o.rotrSL(i,s,19)^o.rotrBL(i,s,61)^o.shrSL(i,s,6),d=o.add4L(a,u,m[e-7],m[e-16]),l=o.add4H(d,n,c,p[e-7],p[e-16]);p[e]=0|l,m[e]=0|d}let{Ah:r,Al:n,Bh:a,Bl:i,Ch:s,Cl:c,Dh:u,Dl:d,Eh:b,El:y,Fh:h,Fl:g,Gh:v,Gl:E,Hh:w,Hl:x}=this;for(let e=0;e<80;e++){const t=o.rotrSH(b,y,14)^o.rotrSH(b,y,18)^o.rotrBH(b,y,41),P=o.rotrSL(b,y,14)^o.rotrSL(b,y,18)^o.rotrBL(b,y,41),I=b&h^~b&v,T=y&g^~y&E,A=o.add5L(x,P,T,f[e],m[e]),O=o.add5H(A,w,t,I,l[e],p[e]),S=0|A,B=o.rotrSH(r,n,28)^o.rotrBH(r,n,34)^o.rotrBH(r,n,39),j=o.rotrSL(r,n,28)^o.rotrBL(r,n,34)^o.rotrBL(r,n,39),R=r&a^r&s^a&s,_=n&i^n&c^i&c;w=0|v,x=0|E,v=0|h,E=0|g,h=0|b,g=0|y,({h:b,l:y}=o.add(0|u,0|d,0|O,0|S)),u=0|s,d=0|c,s=0|a,c=0|i,a=0|r,i=0|n;const C=o.add3L(S,j,_);r=o.add3H(C,O,B,R),n=0|C}({h:r,l:n}=o.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:a,l:i}=o.add(0|this.Bh,0|this.Bl,0|a,0|i)),({h:s,l:c}=o.add(0|this.Ch,0|this.Cl,0|s,0|c)),({h:u,l:d}=o.add(0|this.Dh,0|this.Dl,0|u,0|d)),({h:b,l:y}=o.add(0|this.Eh,0|this.El,0|b,0|y)),({h,l:g}=o.add(0|this.Fh,0|this.Fl,0|h,0|g)),({h:v,l:E}=o.add(0|this.Gh,0|this.Gl,0|v,0|E)),({h:w,l:x}=o.add(0|this.Hh,0|this.Hl,0|w,0|x)),this.set(r,n,a,i,s,c,u,d,b,y,h,g,v,E,w,x)}roundClean(){(0,a.clean)(p,m)}destroy(){(0,a.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=b;class y extends b{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=y;const h=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),g=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class v extends b{constructor(){super(28),this.Ah=0|h[0],this.Al=0|h[1],this.Bh=0|h[2],this.Bl=0|h[3],this.Ch=0|h[4],this.Cl=0|h[5],this.Dh=0|h[6],this.Dl=0|h[7],this.Eh=0|h[8],this.El=0|h[9],this.Fh=0|h[10],this.Fl=0|h[11],this.Gh=0|h[12],this.Gl=0|h[13],this.Hh=0|h[14],this.Hl=0|h[15]}}t.SHA512_224=v;class E extends b{constructor(){super(32),this.Ah=0|g[0],this.Al=0|g[1],this.Bh=0|g[2],this.Bl=0|g[3],this.Ch=0|g[4],this.Cl=0|g[5],this.Dh=0|g[6],this.Dl=0|g[7],this.Eh=0|g[8],this.El=0|g[9],this.Fh=0|g[10],this.Fl=0|g[11],this.Gh=0|g[12],this.Gl=0|g[13],this.Hh=0|g[14],this.Hl=0|g[15]}}t.SHA512_256=E,t.sha256=(0,a.createHasher)(()=>new c),t.sha224=(0,a.createHasher)(()=>new u),t.sha512=(0,a.createHasher)(()=>new b),t.sha384=(0,a.createHasher)(()=>new y),t.sha512_256=(0,a.createHasher)(()=>new E),t.sha512_224=(0,a.createHasher)(()=>new v)},7085:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},7087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";const a=t.components.length;for(let n=0;n<a;n++){r+=e(t.components[n]),n<a-1&&(r+=", ")}const i=(0,n.execTyped)(o,t.type);return r+=`)${i?.array||""}`,e({...t,type:r})}return"indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name?`${r} ${t.name}`:r};const n=r(8651),o=/^tuple(?<array>(\[(\d*)\])*)$/},7106:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=function(e){return{addChain:t=>(0,a.addChain)(e,t),deployContract:t=>(0,i.deployContract)(e,t),fillTransaction:t=>(0,n.fillTransaction)(e,t),getAddresses:()=>(0,s.getAddresses)(e),getCallsStatus:t=>(0,c.getCallsStatus)(e,t),getCapabilities:t=>(0,u.getCapabilities)(e,t),getChainId:()=>(0,o.getChainId)(e),getPermissions:()=>(0,d.getPermissions)(e),prepareAuthorization:t=>(0,l.prepareAuthorization)(e,t),prepareTransactionRequest:t=>(0,f.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,p.requestAddresses)(e),requestPermissions:t=>(0,m.requestPermissions)(e,t),sendCalls:t=>(0,b.sendCalls)(e,t),sendCallsSync:t=>(0,y.sendCallsSync)(e,t),sendRawTransaction:t=>(0,h.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,g.sendRawTransactionSync)(e,t),sendTransaction:t=>(0,v.sendTransaction)(e,t),sendTransactionSync:t=>(0,E.sendTransactionSync)(e,t),showCallsStatus:t=>(0,w.showCallsStatus)(e,t),signAuthorization:t=>(0,x.signAuthorization)(e,t),signMessage:t=>(0,P.signMessage)(e,t),signTransaction:t=>(0,I.signTransaction)(e,t),signTypedData:t=>(0,T.signTypedData)(e,t),switchChain:t=>(0,A.switchChain)(e,t),waitForCallsStatus:t=>(0,O.waitForCallsStatus)(e,t),watchAsset:t=>(0,S.watchAsset)(e,t),writeContract:t=>(0,B.writeContract)(e,t),writeContractSync:t=>(0,j.writeContractSync)(e,t)}};const n=r(4158),o=r(1093),a=r(8101),i=r(44),s=r(4593),c=r(230),u=r(6423),d=r(4521),l=r(5805),f=r(8807),p=r(6186),m=r(5442),b=r(8018),y=r(4697),h=r(9085),g=r(1714),v=r(6687),E=r(6968),w=r(2897),x=r(1439),P=r(3137),I=r(9978),T=r(498),A=r(1348),O=r(138),S=r(6532),B=r(6160),j=r(6155)},7112:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=async function(e,t){const{blockNumber:r,blockTag:c,name:u}=t,{chain:d}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,n.getChainContractAddress)({blockNumber:r,chain:d,contract:"ensUniversalResolver"})})(),f=d?.ensTlds;if(f&&!f.some(e=>u.endsWith(e)))throw new Error(`${u} is not a valid ENS TLD (${f?.join(", ")}) for chain "${d.name}" (id: ${d.id}).`);const[p]=await(0,i.getAction)(e,s.readContract,"readContract")({address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,o.toHex)((0,a.packetToBytes)(u))],blockNumber:r,blockTag:c});return p};const n=r(3454),o=r(985),a=r(846),i=r(6207),s=r(5275)},7141:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.call=async function(e,t){const{account:T=e.account,authorizationList:A,batch:O=Boolean(e.batch?.multicall),blockNumber:S,blockTag:B=e.experimental_blockTag??"latest",accessList:j,blobs:R,blockOverrides:_,code:C,data:M,factory:k,factoryData:F,gas:N,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:H,maxPriorityFeePerGas:L,nonce:D,to:$,value:q,stateOverride:G,...V}=t,W=T?(0,a.parseAccount)(T):void 0;if(C&&(k||F))throw new u.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(C&&$)throw new u.BaseError("Cannot provide both `code` & `to` as parameters.");const K=C&&M,Z=k&&F&&$&&M,J=K||Z,Y=K?P({code:C,data:M}):Z?function(e){const{data:t,factory:r,factoryData:o,to:a}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:c.deploylessCallViaFactoryBytecode,args:[a,t,r,o]})}({data:M,factory:k,factoryData:F,to:$}):M;try{(0,x.assertRequest)(t);const r=("bigint"==typeof S?(0,y.numberToHex)(S):void 0)||B,n=_?o.toRpc(_):void 0,a=(0,w.serializeStateOverride)(G),u=e.chain?.formatters?.transactionRequest?.format,p=(u||v.formatTransactionRequest)({...(0,g.extract)(V,{format:u}),accessList:j,account:W,authorizationList:A,blobs:R,data:Y,gas:N,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:H,maxPriorityFeePerGas:L,nonce:D,to:J?void 0:$,value:q},"call");if(O&&function({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(s.aggregate3Signature)||!r||Object.values(n).filter(e=>void 0!==e).length>0)}({request:p})&&!a&&!n)try{return await async function(e,t){const{batchSize:r=1024,deployless:n=!1,wait:o=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:s=e.experimental_blockTag??"latest",data:u,to:p}=t,h=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,b.getChainContractAddress)({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new d.ClientChainNotConfiguredError})(),g=("bigint"==typeof a?(0,y.numberToHex)(a):void 0)||s,{schedule:v}=(0,E.createBatchScheduler)({id:`${e.uid}.${g}`,wait:o,shouldSplitBatch(e){const t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{const r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,m.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{...null===h?{data:P({code:c.multicall3Bytecode,data:n})}:{to:h,data:n}},g]});return(0,f.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:w,success:x}]=await v({data:u,to:p});if(!x)throw new l.RawContractError({data:w});return"0x"===w?{data:void 0}:{data:w}}(e,{...p,blockNumber:S,blockTag:B})}catch(e){if(!(e instanceof d.ClientChainNotConfiguredError||e instanceof d.ChainDoesNotSupportContract))throw e}const h=(()=>{const e=[p,r];return a&&n?[...e,a,n]:a?[...e,a]:n?[...e,{},n]:e})(),I=await e.request({method:"eth_call",params:h});return"0x"===I?{data:void 0}:{data:I}}catch(n){const o=I(n),{offchainLookup:a,offchainLookupSignature:i}=await Promise.resolve().then(()=>r(5678));if(!1!==e.ccipRead&&o?.slice(0,10)===i&&$)return{data:await a(e,{data:o,to:$})};if(J&&"0x101bb98d"===o?.slice(0,10))throw new l.CounterfactualDeploymentFailedError({factory:k});throw(0,h.getCallError)(n,{...t,account:W,chain:e.chain})}},t.getRevertErrorData=I;const n=r(6524),o=r(5709),a=r(9006),i=r(3302),s=r(7435),c=r(6590),u=r(6246),d=r(4698),l=r(7677),f=r(7541),p=r(4687),m=r(6144),b=r(3454),y=r(985),h=r(1403),g=r(796),v=r(4712),E=r(5290),w=r(120),x=r(4969);function P(e){const{code:t,data:r}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(bytes, bytes)"]),bytecode:c.deploylessCallViaBytecodeBytecode,args:[t,r]})}function I(e){if(!(e instanceof u.BaseError))return;const t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}},7144:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSelector=void 0;const n=r(3239);t.toEventSelector=n.toSignatureHash},7150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:d,poll:l,pollingInterval:f=e.pollingInterval}){return(void 0!==l?l:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{const l=(0,i.stringify)(["watchPendingTransactions",e.uid,t,f]);return(0,o.observe)(l,{onTransactions:d,onError:r},r=>{let o;const i=(0,a.poll)(async()=>{try{if(!o)try{return void(o=await(0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({}))}catch(e){throw i(),e}const a=await(0,n.getAction)(e,c.getFilterChanges,"getFilterChanges")({filter:o});if(0===a.length)return;if(t)r.onTransactions(a);else for(const e of a)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{o&&await(0,n.getAction)(e,u.uninstallFilter,"uninstallFilter")({filter:o}),i()}})})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;d([r])},onError(e){r?.(e)}});n=o,t||n()}catch(e){r?.(e)}})(),()=>n()})()};const n=r(6207),o=r(2093),a=r(3940),i=r(4900),s=r(9358),c=r(3590),u=r(1541)},7174:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=async function(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})};const n=r(985)},7179:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChecksumError=t.InvalidInputError=t.InvalidAddressError=void 0,t.assert=u,t.checksum=d,t.from=l,t.fromPublicKey=function(e,t={}){return l(`0x${i.keccak256(`0x${s.toHex(e).slice(4)}`).substring(26)}`,t)},t.isEqual=function(e,t){return u(e,{strict:!1}),u(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},t.validate=function(e,t={}){const{strict:r=!0}=t??{};try{return u(e,{strict:r}),!0}catch{return!1}};const n=r(3516),o=r(1644),a=r(7560),i=r(347),s=r(6259),c=/^0x[a-fA-F0-9]{40}$/;function u(e,t={}){const{strict:r=!0}=t;if(!c.test(e))throw new f({address:e,cause:new p});if(r){if(e.toLowerCase()===e)return;if(d(e)!==e)throw new f({address:e,cause:new m})}}function d(e){if(o.checksum.has(e))return o.checksum.get(e);u(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=i.keccak256(n.fromString(t),{as:"Bytes"}),a=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());const s=`0x${a.join("")}`;return o.checksum.set(e,s),s}function l(e,t={}){const{checksum:r=!1}=t;return u(e),r?d(e):e}class f extends a.BaseError{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}t.InvalidAddressError=f;class p extends a.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}t.InvalidInputError=p;class m extends a.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}t.InvalidChecksumError=m},7200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=async function(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}};const n=r(294)},7202:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=o,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};const n=r(9175);function o(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const o=BigInt(32),a=BigInt(4294967295),i=Number(r>>o&a),s=Number(r&a),c=n?4:0,u=n?0:4;e.setUint32(t+c,i,n),e.setUint32(t+u,s,n)}class a extends n.Hash{constructor(e,t,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);const{view:t,buffer:r,blockLen:o}=this,a=e.length;for(let i=0;i<a;){const s=Math.min(o-this.pos,a-i);if(s===o){const t=(0,n.createView)(e);for(;o<=a-i;i+=o)this.process(t,i);continue}r.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:a,isLE:i}=this;let{pos:s}=this;t[s++]=128,(0,n.clean)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;o(r,a-8,BigInt(8*this.length),i),this.process(r,0);const c=(0,n.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=u/4,l=this.get();if(d>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)c.setUint32(4*e,l[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=n,e.pos=i,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=a,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7238:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=async function(e){return await e.request({method:"evm_snapshot"})}},7318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaWallet=void 0;class r{constructor(){this.account=null}static isPhantomInstalled(){return"undefined"!=typeof window&&void 0!==window.solana&&window.solana.isPhantom}async connect(){if("undefined"==typeof window)throw new Error("SolanaWallet: Browser environment required");if(!r.isPhantomInstalled())throw new Error("Phantom is not installed. Please install Phantom extension from https://phantom.app/");const e=window.solana;try{const t=await e.connect();if(!t||!t.publicKey)throw new Error("Failed to connect to Phantom wallet");return this.account={address:t.publicKey.toString(),publicKey:t.publicKey.toString()},e.on("disconnect",this.handleDisconnect.bind(this)),this.account}catch(e){if(4001===e.code)throw new Error("User rejected the connection request");throw new Error(`Failed to connect to Phantom: ${e.message||e}`)}}getAccount(){return this.account}isConnected(){return null!==this.account}disconnect(){if(this.account&&"undefined"!=typeof window){const e=window.solana;if(e&&e.disconnect&&"function"==typeof e.disconnect)try{const t=e.disconnect();t&&"function"==typeof t.catch&&t.catch(()=>{})}catch(e){}}this.account=null}getProvider(){return"undefined"==typeof window?null:window.solana}handleDisconnect(){this.disconnect()}}t.SolanaWallet=r},7341:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,i.parseSignature)(e);else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if(!(0,o.isStructSignature)(n)){t=(0,i.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t};const n=r(3200),o=r(6303),a=r(5324),i=r(6351)},7349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=function(e,t="hex"){const r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new o.InvalidHexValueError(e);return(0,i.hexToBytes)(e)}return e})();return c((0,a.createCursor)(r,{recursiveReadLimit:Number.POSITIVE_INFINITY}),t)};const n=r(6246),o=r(5366),a=r(6323),i=r(7655),s=r(985);function c(e,t="hex"){if(0===e.bytes.length)return"hex"===t?(0,s.bytesToHex)(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=u(e,r,128),o=e.readBytes(n);return"hex"===t?(0,s.bytesToHex)(o):o}return function(e,t,r){const n=e.position,o=[];for(;e.position-n<t;)o.push(c(e,r));return o}(e,u(e,r,192),t)}function u(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new n.BaseError("Invalid RLP prefix")}},7403:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlobBaseFee=async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}},7415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=function(e,t){const r=t||"hex",s=(0,n.sha256)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(2623),o=r(6015),a=r(7655),i=r(985)},7435:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},7440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.idCache=void 0,t.idCache={current:0,take(){return this.current++},reset(){this.current=0}}},7469:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=async function(e,{address:t,blockNumber:r,blockTag:o="latest",slot:a}){const i=void 0!==r?(0,n.numberToHex)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,a,i||o]})};const n=r(985)},7474:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashAuthorization=function(e){const{chainId:t,nonce:r,to:c}=e,u=e.contractAddress??e.address,d=(0,s.keccak256)((0,n.concatHex)(["0x05",(0,i.toRlp)([t?(0,a.numberToHex)(t):"0x",u,r?(0,a.numberToHex)(r):"0x"])]));return"bytes"===c?(0,o.hexToBytes)(d):d};const n=r(6776),o=r(7655),a=r(985),i=r(7926),s=r(3625)},7477:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=async function(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})};const n=r(985)},7488:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},7541:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=function(e){const{abi:t,args:r,functionName:s,data:c}=e;let u=t[0];if(s){const e=(0,a.getAbiItem)({abi:t,args:r,name:s});if(!e)throw new n.AbiFunctionNotFoundError(s,{docsPath:i});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!u.outputs)throw new n.AbiFunctionOutputsNotFoundError(u.name,{docsPath:i});const d=(0,o.decodeAbiParameters)(u.outputs,c);return d&&d.length>1?d:d&&1===d.length?d[0]:void 0};const n=r(6953),o=r(4612),a=r(775),i="/docs/contract/decodeFunctionResult"},7560:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(666);class o extends Error{static setStaticOptions(e){o.prototype.docsOrigin=e.docsOrigin,o.prototype.showVersion=e.showVersion,o.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof o){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof o&&t.cause.docsPath||t.docsPath,a=t.docsOrigin??o.prototype.docsOrigin,i=`${a}${n??""}`,s=Boolean(t.version??o.prototype.showVersion),c=t.version??o.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||s?["",r?`Details: ${r}`:void 0,n?`See: ${i}`:void 0,s?`Version: ${c}`:void 0]:[]].filter(e=>"string"==typeof e).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,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=i,this.docsOrigin=a,this.docsPath=n,this.shortMessage=e,this.showVersion=s,this.version=c}walk(e){return a(this,e)}}function a(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&e.cause?a(e.cause,t):t?null:e}t.BaseError=o,Object.defineProperty(o,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${(0,n.getVersion)()}`}}),o.setStaticOptions(o.defaultStaticOptions)},7572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTransactionAddress=async function(e){const{serializedTransaction:t,signature:r}=e,s=(0,o.parseTransaction)(t),c=r??{r:s.r,s:s.s,v:s.v,yParity:s.yParity},u=(0,a.serializeTransaction)({...s,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await(0,i.recoverAddress)({hash:(0,n.keccak256)(u),signature:c})};const n=r(3625),o=r(8057),a=r(5886),i=r(2374)},7575:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=function(e){const{abi:t,bytecode:r,data:i}=e;if(i===r)return{bytecode:r};const s=t.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s))throw new n.AbiConstructorParamsNotFoundError({docsPath:a});if(!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});return{args:(0,o.decodeAbiParameters)(s.inputs,`0x${i.replace(r,"")}`),bytecode:r}};const n=r(6953),o=r(4612),a="/docs/contract/decodeDeployData"},7609:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=async function(e,{address:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}){const a="bigint"==typeof r?(0,n.numberToHex)(r):void 0,i=await e.request({method:"eth_getBalance",params:[t,a||o]});return BigInt(i)};const n=r(985)},7655:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?p(e,t):"boolean"==typeof e?u(e,t):(0,o.isHex)(e)?f(e,t):m(e,t)},t.boolToBytes=u,t.hexToBytes=f,t.numberToBytes=p,t.stringToBytes=m;const n=r(6246),o=r(6015),a=r(8987),i=r(294),s=r(985),c=new TextEncoder;function u(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,a.pad)(r,{size:t.size})):r}const d={zero:48,nine:57,A:65,F:70,a:97,f:102};function l(e){return e>=d.zero&&e<=d.nine?e-d.zero:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,i.assertSize)(r,{size:t.size}),r=(0,a.pad)(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,c=new Uint8Array(s);for(let e=0,t=0;e<s;e++){const r=l(o.charCodeAt(t++)),a=l(o.charCodeAt(t++));if(void 0===r||void 0===a)throw new n.BaseError(`Invalid byte sequence ("${o[t-2]}${o[t-1]}" in "${o}").`);c[e]=16*r+a}return c}function p(e,t){return f((0,s.numberToHex)(e,t))}function m(e,t={}){const r=c.encode(e);return"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,a.pad)(r,{dir:"right",size:t.size})):r}},7677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;const n=r(9006),o=r(924),a=r(8181),i=r(4520),s=r(449),c=r(775),u=r(6117),d=r(5277),l=r(6953),f=r(6246),p=r(6254),m=r(3727),b=r(9382);class y extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:f,to:b,value:y,stateOverride:h}){const g=t?(0,n.parseAccount)(t):void 0;let v=(0,m.prettyPrint)({from:g?.address,to:b,value:void 0!==y&&`${(0,u.formatEther)(y)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${(0,d.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.formatGwei)(c)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,d.formatGwei)(l)} gwei`,nonce:f});h&&(v+=`\n${(0,p.prettyStateOverride)(h)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.CallExecutionError=y;class h extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:u}){const d=(0,c.getAbiItem)({abi:t,args:r,name:a}),l=d?(0,s.formatAbiItemWithArgs)({abiItem:d,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=d?(0,i.formatAbiItem)(d,{includeName:!0}):void 0,p=(0,m.prettyPrint)({address:n&&(0,b.getContractAddress)(n),function:f,args:l&&"()"!==l&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${l}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}t.ContractFunctionExecutionError=h;class g extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let c,u,d,f,p;if(t&&"0x"!==t)try{u=(0,a.decodeErrorResult)({abi:e,data:t});const{abiItem:r,errorName:n,args:c}=u;if("Error"===n)f=c[0];else if("Panic"===n){const[e]=c;f=o.panicReasons[e]}else{const e=r?(0,i.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){c=e}else n&&(f=n);c instanceof l.AbiErrorSignatureNotFoundError&&(p=c.signature,d=[`Unable to decode signature "${p}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${p}.`]),super(f&&"execution reverted"!==f||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,f||p].join("\n"):`The contract function "${r}" reverted.`,{cause:c,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=t,this.reason=f,this.signature=p}}t.ContractFunctionRevertedError=g;class v extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=v;class E extends f.BaseError{constructor({factory:e}){super("Deployment for counterfactual contract call failed"+(e?` for factory "${e}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}t.CounterfactualDeploymentFailedError=E;class w extends f.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=w},7688:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.slice=function(e,t,r,{strict:n}={}){return(0,o.isHex)(e,{strict:!1})?u(e,t,r,{strict:n}):c(e,t,r,{strict:n})},t.sliceBytes=c,t.sliceHex=u;const n=r(5375),o=r(6015),a=r(2285);function i(e,t){if("number"==typeof t&&t>0&&t>(0,a.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,a.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,a.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,a.size)(e)})}function c(e,t,r,{strict:n}={}){i(e,t);const o=e.slice(t,r);return n&&s(o,t,r),o}function u(e,t,r,{strict:n}={}){i(e,t);const o=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&s(o,t,r),o}},7707:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toPrefixedMessage=function(e){const t="string"==typeof e?(0,i.stringToHex)(e):"string"==typeof e.raw?e.raw:(0,i.bytesToHex)(e.raw),r=(0,i.stringToHex)(`${n.presignMessagePrefix}${(0,a.size)(t)}`);return(0,o.concat)([r,t])};const n=r(4019),o=r(6776),a=r(2285),i=r(985)},7723:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=function(e,t="wei"){return(0,o.parseUnits)(e,n.gweiUnits[t])};const n=r(4839),o=r(4800)},7757:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=function(e){const{abi:t,errorName:r,args:d}=e;let l=t[0];if(r){const e=(0,c.getAbiItem)({abi:t,args:d,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:u});l=e}if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:u});const f=(0,s.formatAbiItem)(l),p=(0,a.toFunctionSelector)(f);let m="0x";if(d&&d.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:u});m=(0,i.encodeAbiParameters)(l.inputs,d)}return(0,o.concatHex)([p,m])};const n=r(6953),o=r(6776),a=r(1456),i=r(2732),s=r(4520),c=r(775),u="/docs/contract/encodeErrorResult"},7848:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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}}t.LruMap=r},7872:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;const n=r(821);class o extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=o},7905:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable"};const n=r(2026)},7911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=function(e){const t=(0,o.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)};const n=r(8728),o=r(3625)},7919:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sidecarsToVersionedHashes=function(e){const{sidecars:t,version:r}=e,o=e.to??("string"==typeof t[0].blob?"hex":"bytes"),a=[];for(const{commitment:e}of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:o,version:r}));return a};const n=r(4143)},7925:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Bridge=void 0;const n=r(2603);t.Bridge=class{constructor(e){this.apiClient=e}async bridge(e){try{const t=await this.apiClient.bridgeSwap(e),r=t;if(r.encodedData&&r.signature){const e=this.apiClient.getBridgeContractAddress(),t=(0,n.encodeFunctionData)({abi:[{type:"function",name:"burn",stateMutability:"nonpayable",inputs:[{name:"encodedData",type:"bytes"},{name:"signature",type:"bytes"}],outputs:[]}],functionName:"burn",args:[r.encodedData,r.signature]});r.evmTransaction={to:e,data:t,value:"0x0"}}return t}catch(e){throw new Error(e?.message||"Failed to execute bridge swap")}}async swap(e){return this.bridge(e)}async routeSwap(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route SWAP transaction")}}async routeBridge(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route BRIDGE transaction")}}async routeCcip(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route CCIP transaction")}}async getBridgeFeeEstimate(e){try{return await this.apiClient.getBridgeFeeEstimate(e)}catch(e){throw new Error(e?.message||"Failed to get bridge fee estimate")}}async getRouterSwapFeeEstimate(e){try{return await this.apiClient.getRouterSwapFeeEstimate(e)}catch(e){throw new Error(e?.message||"Failed to get router swap fee estimate")}}async cancelCcipRoute(e){try{return await this.apiClient.cancelCcip(e)}catch(e){throw new Error(e?.message||"Failed to cancel CCIP transaction")}}async cancelRouterSwap(e){try{return await this.apiClient.cancelRouterSwap(e)}catch(e){throw new Error(e?.message||"Failed to cancel router swap transaction")}}async cancelBridgeSwap(e){try{return await this.apiClient.cancelBridgeSwap(e)}catch(e){throw new Error(e?.message||"Failed to cancel bridge transaction")}}async getRecentTransactions(e=1,t=20){try{return await this.apiClient.getApiTransactions(e,t)}catch(e){throw new Error(e?.message||"Failed to fetch recent transactions")}}async validateBurnTransaction(e){try{return await this.apiClient.validateBurn(e)}catch(e){throw new Error(e?.message||"Failed to validate burn transaction")}}async confirmCcipTransaction(e){try{return await this.apiClient.confirmCcipTransaction(e)}catch(e){throw new Error(e?.message||"Failed to confirm CCIP transaction")}}}},7926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)};const n=r(6246),o=r(6323),a=r(7655),i=r(985);function s(e,t="hex"){const r=c(e),n=(0,o.createCursor)(new Uint8Array(r.length));return r.encode(n),"hex"===t?(0,i.bytesToHex)(n.bytes):n.bytes}function c(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=u(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>c(e))):function(e){const t="string"==typeof e?(0,a.hexToBytes)(e):e,r=u(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+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+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function u(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.BaseError("Length is too large.")}},7948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=async function(e){const{domain:t,message:r,primaryType:a,signature:i,types:s}=e;return(0,o.recoverAddress)({hash:(0,n.hashTypedData)({domain:t,message:r,primaryType:a,types:s}),signature:i})};const n=r(9984),o=r(2374)},7962:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=async function(e,t){const{abi:r,address:i,args:s,blockHash:c,eventName:u,fromBlock:d,toBlock:l,strict:f}=t,p=u?(0,n.getAbiItem)({abi:r,name:u}):void 0,m=p?void 0:r.filter(e=>"event"===e.type);return(0,o.getAction)(e,a.getLogs,"getLogs")({address:i,args:s,blockHash:c,event:p,events:m,fromBlock:d,toBlock:l,strict:f})};const n=r(775),o=r(6207),a=r(9914)},7964:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP7702=function(e){const{authorizationList:t}=e;if(t)for(const e of t){const{chainId:t}=e,r=e.address;if(!(0,d.isAddress)(r))throw new a.InvalidAddressError({address:r});if(t<0)throw new c.InvalidChainIdError({chainId:t})}m(e)},t.assertTransactionEIP4844=function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new s.EmptyBlobError;for(const e of t){const t=(0,l.size)(e),r=(0,p.hexToNumber)((0,f.slice)(e,0,1));if(32!==t)throw new s.InvalidVersionedHashSizeError({hash:e,size:t});if(r!==n.versionedHashVersionKzg)throw new s.InvalidVersionedHashVersionError({hash:e,version:r})}}m(e)},t.assertTransactionEIP1559=m,t.assertTransactionEIP2930=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:l}=e;if(t<=0)throw new c.InvalidChainIdError({chainId:t});if(l&&!(0,d.isAddress)(l))throw new a.InvalidAddressError({address:l});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n})},t.assertTransactionLegacy=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:l}=e;if(l&&!(0,d.isAddress)(l))throw new a.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new c.InvalidChainIdError({chainId:t});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n})};const n=r(975),o=r(2856),a=r(6311),i=r(6246),s=r(2592),c=r(4698),u=r(2731),d=r(9742),l=r(2285),f=r(7688),p=r(294);function m(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new c.InvalidChainIdError({chainId:t});if(i&&!(0,d.isAddress)(i))throw new a.InvalidAddressError({address:i});if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n});if(r&&n&&r>n)throw new u.TipAboveFeeCapError({maxFeePerGas:n,maxPriorityFeePerGas:r})}},7992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.AtomicityNotSupportedError=t.AtomicReadyWalletRejectedUpgradeError=t.BundleTooLargeError=t.UnknownBundleIdError=t.DuplicateIdError=t.UnsupportedChainIdError=t.UnsupportedNonOptionalCapabilityError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;const n=r(6246),o=r(2202);class a extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,name:a,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof o.RpcRequestError?e.code:t??-1}}t.RpcError=a;class i extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=i;class s extends a{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}t.ParseRpcError=s,Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends a{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}t.InvalidRequestRpcError=c,Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends a{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}t.MethodNotFoundRpcError=u,Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class d extends a{constructor(e){super(e,{code:d.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}t.InvalidParamsRpcError=d,Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class l extends a{constructor(e){super(e,{code:l.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}t.InternalRpcError=l,Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}t.InvalidInputRpcError=f,Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}t.ResourceNotFoundRpcError=p,Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class m extends a{constructor(e){super(e,{code:m.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}t.ResourceUnavailableRpcError=m,Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends a{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}t.TransactionRejectedRpcError=b,Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends a{constructor(e,{method:t}={}){super(e,{code:y.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}t.MethodNotSupportedRpcError=y,Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class h extends a{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}t.LimitExceededRpcError=h,Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends a{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}t.JsonRpcVersionUnsupportedError=g,Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends i{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}t.UserRejectedRequestError=v,Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class E extends i{constructor(e){super(e,{code:E.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}t.UnauthorizedProviderError=E,Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class w extends i{constructor(e,{method:t}={}){super(e,{code:w.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}t.UnsupportedProviderMethodError=w,Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends i{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}t.ProviderDisconnectedError=x,Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends i{constructor(e){super(e,{code:P.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}t.ChainDisconnectedError=P,Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class I extends i{constructor(e){super(e,{code:I.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}t.SwitchChainError=I,Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class T extends i{constructor(e){super(e,{code:T.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}t.UnsupportedNonOptionalCapabilityError=T,Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class A extends i{constructor(e){super(e,{code:A.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}t.UnsupportedChainIdError=A,Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class O extends i{constructor(e){super(e,{code:O.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}t.DuplicateIdError=O,Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class S extends i{constructor(e){super(e,{code:S.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}t.UnknownBundleIdError=S,Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class B extends i{constructor(e){super(e,{code:B.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}t.BundleTooLargeError=B,Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class j extends i{constructor(e){super(e,{code:j.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}t.AtomicReadyWalletRejectedUpgradeError=j,Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class R extends i{constructor(e){super(e,{code:R.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}t.AtomicityNotSupportedError=R,Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760}),t.UnknownRpcError=class extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},8018:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackTransactionErrorMagicIdentifier=t.fallbackMagicIdentifier=void 0,t.sendCalls=async function(e,r){const{account:f=e.account,chain:p=e.chain,experimental_fallback:m,experimental_fallbackDelay:b=32,forceAtomic:y=!1,id:h,version:g="2.0.0"}=r,v=f?(0,n.parseAccount)(f):null;let E=r.capabilities;e.dataSuffix&&!r.capabilities?.dataSuffix&&(E="string"==typeof e.dataSuffix?{...r.capabilities,dataSuffix:{value:e.dataSuffix,optional:!0}}:{...r.capabilities,dataSuffix:{value:e.dataSuffix.value,...e.dataSuffix.required?{}:{optional:!0}}});const w=r.calls.map(e=>{const t=e,r=t.abi?(0,i.encodeFunctionData)({abi:t.abi,functionName:t.functionName,args:t.args}):t.data;return{data:t.dataSuffix&&r?(0,s.concat)([r,t.dataSuffix]):r,to:t.to,value:t.value?(0,u.numberToHex)(t.value):void 0}});try{const t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:y,calls:w,capabilities:E,chainId:(0,u.numberToHex)(p.id),from:v?.address,id:h,version:g}]},{retryCount:0});return"string"==typeof t?{id:t}:t}catch(n){const i=n;if(m&&("MethodNotFoundRpcError"===i.name||"MethodNotSupportedRpcError"===i.name||"UnknownRpcError"===i.name||i.details.toLowerCase().includes("does not exist / is not available")||i.details.toLowerCase().includes("missing or invalid. request()")||i.details.toLowerCase().includes("did not match any variant of untagged enum")||i.details.toLowerCase().includes("account upgraded to unsupported contract")||i.details.toLowerCase().includes("eip-7702 not supported")||i.details.toLowerCase().includes("unsupported wc_ method")||i.details.toLowerCase().includes("feature toggled misconfigured")||i.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(E&&Object.values(E).some(e=>!e.optional)){const e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new a.UnsupportedNonOptionalCapabilityError(new o.BaseError(e,{details:e}))}if(y&&w.length>1){const e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new a.AtomicityNotSupportedError(new o.BaseError(e,{details:e}))}const r=[];for(const t of w){const n=(0,l.sendTransaction)(e,{account:v,chain:p,data:t.data,to:t.to,value:t.value?(0,c.hexToBigInt)(t.value):void 0});r.push(n),b>0&&await new Promise(e=>setTimeout(e,b))}const n=await Promise.allSettled(r);if(n.every(e=>"rejected"===e.status))throw n[0].reason;const i=n.map(e=>"fulfilled"===e.status?e.value:t.fallbackTransactionErrorMagicIdentifier);return{id:(0,s.concat)([...i,(0,u.numberToHex)(p.id,{size:32}),t.fallbackMagicIdentifier])}}throw(0,d.getTransactionError)(n,{...r,account:v,chain:r.chain})}};const n=r(9006),o=r(6246),a=r(7992),i=r(6144),s=r(6776),c=r(294),u=r(985),d=r(2403),l=r(6687);t.fallbackMagicIdentifier="0x5792579257925792579257925792579257925792579257925792579257925792",t.fallbackTransactionErrorMagicIdentifier=(0,u.numberToHex)(0,{size:32})},8047:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnsInvalidChainIdError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;const n=r(6246);class o extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=o;class a extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=a;class i extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=i;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s;class c extends n.BaseError{constructor({chainId:e}){super(`Invalid ENSIP-11 chainId: ${e}. Must be between 0 and 0x7fffffff, or 1.`,{name:"EnsInvalidChainIdError"})}}t.EnsInvalidChainIdError=c},8050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},8057:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=function(e){const t=(0,m.getSerializedTransactionType)(e);return"eip1559"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v,E]=t;if(9!==t.length&&12!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:i,gas:c,to:u,value:l,data:f,accessList:m,...t.length>9?{v:g,r:v,s:E}:{}},serializedTransaction:e,type:"eip1559"});const w={chainId:(0,d.hexToNumber)(r),type:"eip1559"};return(0,s.isHex)(u)&&"0x"!==u&&(w.to=u),(0,s.isHex)(c)&&"0x"!==c&&(w.gas=(0,d.hexToBigInt)(c)),(0,s.isHex)(f)&&"0x"!==f&&(w.data=f),(0,s.isHex)(n)&&(w.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(l)&&"0x"!==l&&(w.value=(0,d.hexToBigInt)(l)),(0,s.isHex)(i)&&"0x"!==i&&(w.maxFeePerGas=(0,d.hexToBigInt)(i)),(0,s.isHex)(a)&&"0x"!==a&&(w.maxPriorityFeePerGas=(0,d.hexToBigInt)(a)),0!==m.length&&"0x"!==m&&(w.accessList=y(m)),(0,p.assertTransactionEIP1559)(w),{...12===t.length?h(t):void 0,...w}}(e):"eip2930"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v]=t;if(8!==t.length&&11!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:a,gas:i,to:c,value:u,data:l,accessList:f,...t.length>8?{v:m,r:g,s:v}:{}},serializedTransaction:e,type:"eip2930"});const E={chainId:(0,d.hexToNumber)(r),type:"eip2930"};return(0,s.isHex)(c)&&"0x"!==c&&(E.to=c),(0,s.isHex)(i)&&"0x"!==i&&(E.gas=(0,d.hexToBigInt)(i)),(0,s.isHex)(l)&&"0x"!==l&&(E.data=l),(0,s.isHex)(n)&&(E.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(u)&&"0x"!==u&&(E.value=(0,d.hexToBigInt)(u)),(0,s.isHex)(a)&&"0x"!==a&&(E.gasPrice=(0,d.hexToBigInt)(a)),0!==f.length&&"0x"!==f&&(E.accessList=y(f)),(0,p.assertTransactionEIP2930)(E),{...11===t.length?h(t):void 0,...E}}(e):"eip4844"===t?function(e){const t=b(e),r=4===t.length,n=r?t[0]:t,a=r?t.slice(1):[],[c,u,l,f,m,g,v,E,w,x,P,I,T,A]=n,[O,S,B]=a;if(11!==n.length&&14!==n.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:c,nonce:u,maxPriorityFeePerGas:l,maxFeePerGas:f,gas:m,to:g,value:v,data:E,accessList:w,...n.length>9?{v:I,r:T,s:A}:{}},serializedTransaction:e,type:"eip4844"});const j={blobVersionedHashes:P,chainId:(0,d.hexToNumber)(c),to:g,type:"eip4844"};return(0,s.isHex)(m)&&"0x"!==m&&(j.gas=(0,d.hexToBigInt)(m)),(0,s.isHex)(E)&&"0x"!==E&&(j.data=E),(0,s.isHex)(u)&&(j.nonce="0x"===u?0:(0,d.hexToNumber)(u)),(0,s.isHex)(v)&&"0x"!==v&&(j.value=(0,d.hexToBigInt)(v)),(0,s.isHex)(x)&&"0x"!==x&&(j.maxFeePerBlobGas=(0,d.hexToBigInt)(x)),(0,s.isHex)(f)&&"0x"!==f&&(j.maxFeePerGas=(0,d.hexToBigInt)(f)),(0,s.isHex)(l)&&"0x"!==l&&(j.maxPriorityFeePerGas=(0,d.hexToBigInt)(l)),0!==w.length&&"0x"!==w&&(j.accessList=y(w)),O&&S&&B&&(j.sidecars=(0,i.toBlobSidecars)({blobs:O,commitments:S,proofs:B})),(0,p.assertTransactionEIP4844)(j),{...14===n.length?h(n):void 0,...j}}(e):"eip7702"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v,E,w]=t;if(10!==t.length&&13!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:i,gas:c,to:u,value:l,data:f,accessList:m,authorizationList:g,...t.length>9?{v,r:E,s:w}:{}},serializedTransaction:e,type:"eip7702"});const x={chainId:(0,d.hexToNumber)(r),type:"eip7702"};return(0,s.isHex)(u)&&"0x"!==u&&(x.to=u),(0,s.isHex)(c)&&"0x"!==c&&(x.gas=(0,d.hexToBigInt)(c)),(0,s.isHex)(f)&&"0x"!==f&&(x.data=f),(0,s.isHex)(n)&&(x.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(l)&&"0x"!==l&&(x.value=(0,d.hexToBigInt)(l)),(0,s.isHex)(i)&&"0x"!==i&&(x.maxFeePerGas=(0,d.hexToBigInt)(i)),(0,s.isHex)(a)&&"0x"!==a&&(x.maxPriorityFeePerGas=(0,d.hexToBigInt)(a)),0!==m.length&&"0x"!==m&&(x.accessList=y(m)),0!==g.length&&"0x"!==g&&(x.authorizationList=function(e){const t=[];for(let r=0;r<e.length;r++){const[n,o,a,i,s,c]=e[r];t.push({address:o,chainId:"0x"===n?0:(0,d.hexToNumber)(n),nonce:"0x"===a?0:(0,d.hexToNumber)(a),...h([i,s,c])})}return t}(g)),(0,p.assertTransactionEIP7702)(x),{...13===t.length?h(t):void 0,...x}}(e):function(e){const t=(0,l.fromRlp)(e,"hex"),[r,n,a,i,c,u,f,m,b]=t;if(6!==t.length&&9!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:a,to:i,value:c,data:u,...t.length>6?{v:f,r:m,s:b}:{}},serializedTransaction:e,type:"legacy"});const y={type:"legacy"};if((0,s.isHex)(i)&&"0x"!==i&&(y.to=i),(0,s.isHex)(a)&&"0x"!==a&&(y.gas=(0,d.hexToBigInt)(a)),(0,s.isHex)(u)&&"0x"!==u&&(y.data=u),(0,s.isHex)(r)&&(y.nonce="0x"===r?0:(0,d.hexToNumber)(r)),(0,s.isHex)(c)&&"0x"!==c&&(y.value=(0,d.hexToBigInt)(c)),(0,s.isHex)(n)&&"0x"!==n&&(y.gasPrice=(0,d.hexToBigInt)(n)),(0,p.assertTransactionLegacy)(y),6===t.length)return y;const h=(0,s.isHex)(f)&&"0x"!==f?(0,d.hexToBigInt)(f):0n;if("0x"===b&&"0x"===m)return h>0&&(y.chainId=Number(h)),y;const g=h,v=Number((g-35n)/2n);if(v>0)y.chainId=v;else if(27n!==g&&28n!==g)throw new o.InvalidLegacyVError({v:g});return y.v=g,y.s=b,y.r=m,y.yParity=g%2n==0n?1:0,y}(e)},t.toTransactionArray=b,t.parseAccessList=y;const n=r(6311),o=r(3727),a=r(9742),i=r(3339),s=r(6015),c=r(8987),u=r(7488),d=r(294),l=r(7349),f=r(4624),p=r(7964),m=r(8465);function b(e){return(0,l.fromRlp)(`0x${e.slice(4)}`,"hex")}function y(e){const t=[];for(let r=0;r<e.length;r++){const[o,i]=e[r];if(!(0,a.isAddress)(o,{strict:!1}))throw new n.InvalidAddressError({address:o});t.push({address:o,storageKeys:i.map(e=>(0,f.isHash)(e)?e:(0,u.trim)(e))})}return t}function h(e){const t=e.slice(-3),r="0x"===t[0]||0n===(0,d.hexToBigInt)(t[0])?27n:28n;return{r:(0,c.padHex)(t[1],{size:32}),s:(0,c.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}},8101:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=async function(e,{chain:t}){const{id:r,name:o,nativeCurrency:a,rpcUrls:i,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:o,nativeCurrency:a,rpcUrls:i.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})};const n=r(985)},8156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeSDKServer=t.BridgeSDK=void 0;const a=r(7028),i=r(436),s=r(570),c=r(1967),u=r(7318),d=r(7925);o(r(3574),t),o(r(7028),t),o(r(570),t),o(r(1967),t),o(r(7318),t),t.BridgeSDK=class{constructor(e){this.config=new a.BridgeConfig(e),this.api=new i.VoidAIBridgeClient(this.config),this.ready=this.api.ready,this.wallets={bittensor:new s.BittensorWallet,ethereum:new c.EthereumWallet,solana:new u.SolanaWallet},this.bridge=new d.Bridge(this.api)}getValidatedApiKeyData(){return this.api.getValidatedApiKeyData()}},t.BridgeSDKServer=class{constructor(e){this.config=new a.BridgeConfig(e),this.api=new i.VoidAIBridgeClient(this.config),this.ready=this.api.ready,this.bridge=new d.Bridge(this.api)}getValidatedApiKeyData(){return this.api.getValidatedApiKeyData()}}},8171:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=async function(e,{address:t,blockNumber:r,blockTag:a,storageKeys:i}){const s=a??"latest",c=void 0!==r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_getProof",params:[t,i,c||s]});return(0,o.formatProof)(u)};const n=r(985),o=r(1707)},8181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=function(e){const{abi:t,data:r}=e,u=(0,a.slice)(r,0,4);if("0x"===u)throw new o.AbiDecodingZeroDataError;const d=[...t||[],n.solidityError,n.solidityPanic].find(e=>"error"===e.type&&u===(0,i.toFunctionSelector)((0,c.formatAbiItem)(e)));if(!d)throw new o.AbiErrorSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,s.decodeAbiParameters)(d.inputs,(0,a.slice)(r,4)):void 0,errorName:d.name}};const n=r(924),o=r(6953),a=r(7688),i=r(1456),s=r(4612),c=r(4520)},8182:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=function(e){const{abi:t,data:r,strict:l,topics:f}=e,p=l??!0,[m,...b]=f;if(!m)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:u});const y=t.find(e=>"event"===e.type&&m===(0,i.toEventSelector)((0,c.formatAbiItem)(e)));if(!y||!("name"in y)||"event"!==y.type)throw new n.AbiEventSignatureNotFoundError(m,{docsPath:u});const{name:h,inputs:g}=y,v=g?.some(e=>!("name"in e&&e.name)),E=v?[]:{},w=g.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed),x=[];for(let e=0;e<w.length;e++){const[t,r]=w[e],o=b[e];if(o)E[v?r:t.name||r]=d({param:t,value:o});else{if(p)throw new n.DecodeLogTopicsMismatch({abiItem:y,param:t});x.push([t,r])}}const P=g.filter(e=>!("indexed"in e&&e.indexed)),I=p?P:[...x.map(([e])=>e),...P];if(I.length>0)if(r&&"0x"!==r)try{const e=(0,s.decodeAbiParameters)(I,r);if(e){let t=0;if(!p)for(const[r,n]of x)E[v?n:r.name||n]=e[t++];if(v)for(let r=0;r<g.length;r++)void 0===E[r]&&t<e.length&&(E[r]=e[t++]);else for(let r=0;r<P.length;r++)E[P[r].name]=e[t++]}}catch(e){if(p){if(e instanceof n.AbiDecodingDataSizeTooSmallError||e instanceof o.PositionOutOfBoundsError)throw new n.DecodeLogDataMismatch({abiItem:y,data:r,params:I,size:(0,a.size)(r)});throw e}}else if(p)throw new n.DecodeLogDataMismatch({abiItem:y,data:"0x",params:I,size:0});return{eventName:h,args:Object.values(E).length>0?E:void 0}};const n=r(6953),o=r(3069),a=r(2285),i=r(7144),s=r(4612),c=r(4520),u="/docs/contract/decodeEventLog";function d({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.decodeAbiParameters)([e],t)||[])[0]}},8287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupKzg=function(e,t){try{e.loadTrustedSetup(t)}catch(e){const t=e;if(!t.message.includes("trusted setup is already loaded"))throw t}return(0,n.defineKzg)(e)};const n=r(2843)},8377:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTypedData=function(e){const{domain:t,message:r,primaryType:n,types:o}=e,a=(e,t)=>{const r={...t};for(const t of e){const{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},i=o.EIP712Domain&&t?a(o.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==n)return a(o[n],r)})();return(0,l.stringify)({domain:i,message:s,primaryType:n,types:o})},t.validateTypedData=function(e){const{domain:t,message:r,primaryType:d,types:l}=e,f=(e,t)=>{for(const r of e){const{name:e,type:a}=r,d=t[e],m=a.match(u.integerRegex);if(m&&("number"==typeof d||"bigint"==typeof d)){const[e,t,r]=m;(0,c.numberToHex)(d,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===a&&"string"==typeof d&&!(0,i.isAddress)(d))throw new o.InvalidAddressError({address:d});const b=a.match(u.bytesRegex);if(b){const[e,t]=b;if(t&&(0,s.size)(d)!==Number.parseInt(t,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(0,s.size)(d)})}const y=l[a];y&&(p(a),f(y,d))}};if(l.EIP712Domain&&t){if("object"!=typeof t)throw new a.InvalidDomainError({domain:t});f(l.EIP712Domain,t)}if("EIP712Domain"!==d){if(!l[d])throw new a.InvalidPrimaryTypeError({primaryType:d,types:l});f(l[d],r)}},t.getTypesForEIP712Domain=f,t.domainSeparator=function({domain:e}){return(0,d.hashDomain)({domain:e,types:{EIP712Domain:f({domain:e})}})};const n=r(6953),o=r(6311),a=r(6651),i=r(9742),s=r(2285),c=r(985),u=r(2162),d=r(9984),l=r(4900);function f({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function p(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new a.InvalidStructTypeError({type:e})}},8428:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=async function({address:e,message:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverMessageAddress)({message:t,signature:r}))};const n=r(8728),o=r(4324),a=r(593)},8465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=function(e){const t=(0,o.sliceHex)(e,0,1);if("0x04"===t)return"eip7702";if("0x03"===t)return"eip4844";if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,a.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})};const n=r(3727),o=r(7688),a=r(294)},8470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateFeesPerGas=async function(e,t){return c(e,t)},t.internal_estimateFeesPerGas=c;const n=r(9143),o=r(6207),a=r(4313),i=r(5364),s=r(5651);async function c(e,t){const{block:r,chain:c=e.chain,request:u,type:d="eip1559"}=t||{},l=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(l<1)throw new n.BaseFeeScalarError;const f=10**(l.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(l*f))/BigInt(f),m=r||await(0,o.getAction)(e,i.getBlock,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){const t=await c.fees.estimateFeesPerGas({block:r,client:e,multiply:p,request:u,type:d});if(null!==t)return t}if("eip1559"===d){if("bigint"!=typeof m.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await(0,a.internal_estimateMaxPriorityFeePerGas)(e,{block:m,chain:c,request:u}),r=p(m.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await(0,o.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}},8510:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;const n=r(7076),o=r(9175),a=r(3562),i=r(1761),s=r(4967),c=r(1484),u=r(1705),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(0),p=BigInt(1),m=BigInt(2),b=(e,t)=>(e+t/m)/t;function y(e){const t=d,r=BigInt(3),n=BigInt(6),o=BigInt(11),a=BigInt(22),i=BigInt(23),c=BigInt(44),u=BigInt(88),l=e*e*e%t,f=l*l*e%t,p=(0,s.pow2)(f,r,t)*f%t,b=(0,s.pow2)(p,r,t)*f%t,y=(0,s.pow2)(b,m,t)*l%t,g=(0,s.pow2)(y,o,t)*y%t,v=(0,s.pow2)(g,a,t)*g%t,E=(0,s.pow2)(v,c,t)*v%t,w=(0,s.pow2)(E,u,t)*E%t,x=(0,s.pow2)(w,c,t)*v%t,P=(0,s.pow2)(x,r,t)*f%t,I=(0,s.pow2)(P,i,t)*g%t,T=(0,s.pow2)(I,n,t)*l%t,A=(0,s.pow2)(T,m,t);if(!h.eql(h.sqr(A),e))throw new Error("Cannot find square root");return A}const h=(0,s.Field)(d,void 0,void 0,{sqrt:y});t.secp256k1=(0,a.createCurve)({a:f,b:BigInt(7),Fp:h,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=l,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,i=BigInt("0x100000000000000000000000000000000"),c=b(a*e,t),u=b(-n*e,t);let d=(0,s.mod)(e-c*r-u*o,t),f=(0,s.mod)(-c*n-u*a,t);const m=d>i,y=f>i;if(m&&(d=t-d),y&&(f=t-f),d>i||f>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:m,k1:d,k2neg:y,k2:f}}}},n.sha256);const g={};function v(e,...t){let r=g[e];if(void 0===r){const t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,c.concatBytes)(t,t),g[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}const E=e=>e.toRawBytes(!0).slice(1),w=e=>(0,c.numberToBytesBE)(e,32),x=e=>(0,s.mod)(e,d),P=e=>(0,s.mod)(e,l),I=(()=>t.secp256k1.ProjectivePoint)();function T(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:P(-r),bytes:E(n)}}function A(e){(0,c.aInRange)("x",e,p,d);const t=x(e*e);let r=y(x(t*e+BigInt(7)));r%m!==f&&(r=x(-r));const n=new I(e,r,p);return n.assertValidity(),n}const O=c.bytesToNumberBE;function S(...e){return P(O(v("BIP0340/challenge",...e)))}function B(e,t,r){const n=(0,c.ensureBytes)("signature",e,64),o=(0,c.ensureBytes)("message",t),a=(0,c.ensureBytes)("publicKey",r,32);try{const e=A(O(a)),t=O(n.subarray(0,32));if(!(0,c.inRange)(t,p,d))return!1;const r=O(n.subarray(32,64));if(!(0,c.inRange)(r,p,l))return!1;const f=S(w(t),E(e),o),m=(i=e,s=r,u=P(-f),I.BASE.multiplyAndAddUnsafe(i,s,u));return!(!m||!m.hasEvenY()||m.toAffine().x!==t)}catch(e){return!1}var i,s,u}t.schnorr={getPublicKey:function(e){return T(e).bytes},sign:function(e,t,r=(0,o.randomBytes)(32)){const n=(0,c.ensureBytes)("message",e),{bytes:a,scalar:i}=T(t),s=(0,c.ensureBytes)("auxRand",r,32),u=w(i^O(v("BIP0340/aux",s))),d=v("BIP0340/nonce",u,a,n),l=P(O(d));if(l===f)throw new Error("sign failed: k is zero");const{bytes:p,scalar:m}=T(l),b=S(p,a,n),y=new Uint8Array(64);if(y.set(p,0),y.set(w(P(m+b*i)),32),!B(y,n,a))throw new Error("sign: Invalid signature produced");return y},verify:B,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:A,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:v,mod:s.mod}};const j=(()=>(0,i.isogenyMap)(h,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),R=(()=>(0,u.mapToCurveSimpleSWU)(h,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:h.create(BigInt("-11"))}))();t.secp256k1_hasher=(0,i.createHasher)(t.secp256k1.ProjectivePoint,e=>{const{x:t,y:r}=R(h.create(e[0]));return j(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:h.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},8588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extraEntropy=void 0,t.setExtraEntropy=function(e){t.extraEntropy=e},t.extraEntropy=!1},8609:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeData=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[s(t,r),n]}return e})(),{overloads:n}=t;if(i.size(r)<4)throw new o.InvalidSelectorSizeError({data:r});if(0===t.inputs?.length)return;const c=n?s([t,...n],r):t;return i.size(r)<=4?void 0:a.decode(c.inputs,i.slice(r,4))},t.decodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,o]=e;return[s(t,r),n,o]}return e})(),o=a.decode(t.outputs,r,n);if(!o||0!==Object.keys(o).length)return o&&1===Object.keys(o).length?Array.isArray(o)?o[0]:Object.values(o)[0]:o},t.encodeData=function(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[s(t,r,{args:n}),n]}const[t,r]=e;return[t,r]})(),{overloads:n}=t,o=n?s([t,...n],t.name,{args:r}):t,u=c(o),d=r.length>0?a.encode(o.inputs,r):void 0;return d?i.concat(u,d):u},t.encodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,o]=e;return[s(t,r),n,o]}return e})(),{as:o="Array"}=n,i=1===t.outputs.length?[r]:Array.isArray(r)?r:"Object"===o?Object.values(r):[r];return a.encode(t.outputs,i)},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){return o.from(e,t)},t.fromAbi=s,t.getSelector=c;const n=r(6524),o=r(9626),a=r(2037),i=r(9274);function s(e,t,r){const n=o.fromAbi(e,t,r);if("function"!==n.type)throw new o.NotFoundError({name:t,type:"function"});return n}function c(e){return o.getSelector(e)}},8611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSignature=void 0;var n=r(2967);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return n.toSignature}})},8612:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=function(e,t={}){const{keepAlive:r,key:c="webSocket",methods:u,name:d="WebSocket JSON-RPC",reconnect:l,retryDelay:f}=t;return({chain:p,retryCount:m,timeout:b})=>{const y=t.retryCount??m,h=b??t.timeout??1e4,g=e||p?.rpcUrls.default.webSocket?.[0],v={keepAlive:r,reconnect:l};if(!g)throw new o.UrlRequiredError;return(0,s.createTransport)({key:c,methods:u,name:d,async request({method:e,params:t}){const r={method:e,params:t},o=await(0,i.getWebSocketRpcClient)(g,v),{error:a,result:s}=await o.requestAsync({body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:g});return s},retryCount:y,retryDelay:f,timeout:h,type:"webSocket"},{getSocket:()=>(0,a.getSocket)(g),getRpcClient:()=>(0,i.getWebSocketRpcClient)(g,v),async subscribe({params:e,onData:t,onError:r}){const n=await(0,i.getWebSocketRpcClient)(g,v),{result:o}=await new Promise((o,a)=>n.request({body:{method:"eth_subscribe",params:e},onError(e){a(e),r?.(e)},onResponse(e){if(e.error)return a(e.error),void r?.(e.error);"number"!=typeof e.id?"eth_subscription"===e.method&&t(e.params):o(e)}}));return{subscriptionId:o,unsubscribe:async()=>new Promise(e=>n.request({body:{method:"eth_unsubscribe",params:[o]},onResponse:e}))}}})}};const n=r(2202),o=r(5446),a=r(8692),i=r(1370),s=r(922)},8626:(e,t,r)=>{r.r(t),r.d(t,{WebSocket:()=>n});const n=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==r.g.WebSocket)return r.g.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}()},8651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=void 0,t.execTyped=function(e,t){const r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},8664:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wait=async function(e){return new Promise(t=>setTimeout(t,e))}},8666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):l(e)},t.getCreateAddress=l,t.getCreate2Address=f;const n=r(6776),o=r(7085),a=r(8987),i=r(7688),s=r(7655),c=r(7926),u=r(3625),d=r(8728);function l(e){const t=(0,s.toBytes)((0,d.getAddress)(e.from));let r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,d.getAddress)(`0x${(0,u.keccak256)((0,c.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){const t=(0,s.toBytes)((0,d.getAddress)(e.from)),r=(0,a.pad)((0,o.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),c="bytecodeHash"in e?(0,o.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,u.keccak256)(e.bytecode,"bytes");return(0,d.getAddress)((0,i.slice)((0,u.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,c])),12))}},8692:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.getSocket=async function(e){const t=await(0,o.getWebSocketRpcClient)(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})};const n=r(4017),o=r(1370);t.rpc={http:(e,t)=>(0,n.getHttpRpcClient)(e).request(t),webSocket:function(e,{body:t,onError:r,onResponse:n}){return e.request({body:t,onError:r,onResponse:n}),e},webSocketAsync:async function(e,{body:t,timeout:r=1e4}){return e.requestAsync({body:t,timeout:r})}}},8693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){const{batch:t,chain:r,ccipRead:a,dataSuffix:i,key:s="base",name:c="Base Client",type:u="base"}=e,d=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),l=r?.blockTime??12e3,f=Math.min(Math.max(Math.floor(l/2),500),4e3),p=e.pollingInterval??f,m=e.cacheTime??p,b=e.account?(0,n.parseAccount)(e.account):void 0,{config:y,request:h,value:g}=e.transport({account:b,chain:r,pollingInterval:p}),v={account:b,batch:t,cacheTime:m,ccipRead:a,chain:r,dataSuffix:i,key:s,name:c,pollingInterval:p,request:h,transport:{...y,...g},type:u,uid:(0,o.uid)(),...d?{experimental_blockTag:d}:{}};return Object.assign(v,{extend:function e(t){return r=>{const n=r(t);for(const e in v)delete n[e];const o={...t,...n};return Object.assign(o,{extend:e(o)})}}(v)})},t.rpcSchema=function(){return null};const n=r(9006),o=r(1667)},8714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=function(e,t){const{abi:r,address:h,args:g,batch:v=!0,eventName:E,fromBlock:w,onError:x,onLogs:P,poll:I,pollingInterval:T=e.pollingInterval,strict:A}=t;return(void 0!==I?I:"bigint"==typeof w||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{const t=A??!1,n=(0,l.stringify)(["watchContractEvent",h,g,v,e.uid,E,T,t,w]);return(0,u.observe)(n,{onLogs:P,onError:x},n=>{let a,i;void 0!==w&&(a=w-1n);let s=!1;const u=(0,d.poll)(async()=>{if(s)try{let o;if(i)o=await(0,c.getAction)(e,b.getFilterChanges,"getFilterChanges")({filter:i});else{const n=await(0,c.getAction)(e,p.getBlockNumber,"getBlockNumber")({});o=a&&a<n?await(0,c.getAction)(e,m.getContractEvents,"getContractEvents")({abi:r,address:h,args:g,eventName:E,fromBlock:a+1n,toBlock:n,strict:t}):[],a=n}if(0===o.length)return;if(v)n.onLogs(o);else for(const e of o)n.onLogs([e])}catch(e){i&&e instanceof o.InvalidInputRpcError&&(s=!1),n.onError?.(e)}else{try{i=await(0,c.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:r,address:h,args:g,eventName:E,strict:t,fromBlock:w})}catch{}s=!0}},{emitOnBegin:!0,interval:T});return async()=>{i&&await(0,c.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:i}),u()}})})():(()=>{const t=A??!1,o=(0,l.stringify)(["watchContractEvent",h,g,v,e.uid,E,T,t]);let c=!0,d=()=>c=!1;return(0,u.observe)(o,{onLogs:P,onError:x},t=>((async()=>{try{const o=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=E?(0,i.encodeEventTopics)({abi:r,eventName:E,args:g}):[],{unsubscribe:l}=await o.subscribe({params:["logs",{address:h,topics:u}],onData(e){if(!c)return;const o=e.result;try{const{eventName:e,args:n}=(0,a.decodeEventLog)({abi:r,data:o.data,topics:o.topics,strict:A}),i=(0,s.formatLog)(o,{args:n,eventName:e});t.onLogs([i])}catch(e){let r,a;if(e instanceof n.DecodeLogDataMismatch||e instanceof n.DecodeLogTopicsMismatch){if(A)return;r=e.abiItem.name,a=e.abiItem.inputs?.some(e=>!("name"in e&&e.name))}const i=(0,s.formatLog)(o,{args:a?[]:{},eventName:r});t.onLogs([i])}},onError(e){t.onError?.(e)}});d=l,c||d()}catch(e){x?.(e)}})(),()=>d()))})()};const n=r(6953),o=r(7992),a=r(8182),i=r(378),s=r(95),c=r(6207),u=r(2093),d=r(3940),l=r(4900),f=r(2349),p=r(5729),m=r(7962),b=r(3590),y=r(1541)},8728:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksumAddress=u,t.getAddress=function(e,t){if(!(0,s.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});return u(e,t)};const n=r(6311),o=r(7655),a=r(3625),i=r(7848),s=r(9742),c=new i.LruMap(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,a.keccak256)((0,o.stringToBytes)(r),"bytes"),i=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&i[e]&&(i[e]=i[e].toUpperCase()),(15&n[e>>1])>=8&&i[e+1]&&(i[e+1]=i[e+1].toUpperCase());const s=`0x${i.join("")}`;return c.set(`${e}.${t}`,s),s}},8807:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.supportsFillTransaction=t.eip1559NetworkCache=t.defaultParameters=void 0,t.prepareTransactionRequest=async function(e,r){let m=r;m.account??=e.account,m.parameters??=t.defaultParameters;const{account:v,chain:E=e.chain,nonceManager:w,parameters:x}=m,P="function"==typeof E?.prepareTransactionRequest?{fn:E.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(E?.prepareTransactionRequest)?{fn:E.prepareTransactionRequest[0],runAt:E.prepareTransactionRequest[1].runAt}:void 0;let I;async function T(){if(I)return I;if(void 0!==m.chainId)return m.chainId;if(E)return E.id;const t=await(0,p.getAction)(e,g.getChainId,"getChainId")({});return I=t,I}const A=v?(0,n.parseAccount)(v):v;let O=m.nonce;if(x.includes("nonce")&&void 0===O&&A&&w){const t=await T();O=await w.consume({address:A.address,chainId:t,client:e})}P?.fn&&P.runAt?.includes("beforeFillTransaction")&&(m=await P.fn({...m,chain:E},{phase:"beforeFillTransaction"}),O??=m.nonce);const S=(x.includes("blobVersionedHashes")||x.includes("sidecars"))&&m.kzg&&m.blobs||!1===t.supportsFillTransaction.get(e.uid)||!["fees","gas"].some(e=>x.includes(e))||!(x.includes("chainId")&&"number"!=typeof m.chainId||x.includes("nonce")&&"number"!=typeof O||x.includes("fees")&&"bigint"!=typeof m.gasPrice&&("bigint"!=typeof m.maxFeePerGas||"bigint"!=typeof m.maxPriorityFeePerGas)||x.includes("gas")&&"bigint"!=typeof m.gas)?m:await(0,p.getAction)(e,h.fillTransaction,"fillTransaction")({...m,nonce:O}).then(r=>{const{chainId:n,from:o,gas:a,gasPrice:i,nonce:s,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:d,type:l,...f}=r.transaction;return t.supportsFillTransaction.set(e.uid,!0),{...m,...o?{from:o}:{},...l?{type:l}:{},...void 0!==n?{chainId:n}:{},...void 0!==a?{gas:a}:{},...void 0!==i?{gasPrice:i}:{},...void 0!==s?{nonce:s}:{},...void 0!==c?{maxFeePerBlobGas:c}:{},...void 0!==u?{maxFeePerGas:u}:{},...void 0!==d?{maxPriorityFeePerGas:d}:{},..."nonceKey"in f&&void 0!==f.nonceKey?{nonceKey:f.nonceKey}:{}}}).catch(r=>{const n=r;if("TransactionExecutionError"!==n.name)return m;const o=n.walk?.(e=>{const t=e;return"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name});return o&&t.supportsFillTransaction.set(e.uid,!1),m});O??=S.nonce,m={...S,...A?{from:A?.address}:{},...O?{nonce:O}:{}};const{blobs:B,gas:j,kzg:R,type:_}=m;let C;async function M(){return C||(C=await(0,p.getAction)(e,i.getBlock,"getBlock")({blockTag:"latest"}),C)}if(P?.fn&&P.runAt?.includes("beforeFillParameters")&&(m=await P.fn({...m,chain:E},{phase:"beforeFillParameters"})),x.includes("nonce")&&void 0===O&&A&&!w&&(m.nonce=await(0,p.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:A.address,blockTag:"pending"})),(x.includes("blobVersionedHashes")||x.includes("sidecars"))&&B&&R){const e=(0,u.blobsToCommitments)({blobs:B,kzg:R});if(x.includes("blobVersionedHashes")){const t=(0,l.commitmentsToVersionedHashes)({commitments:e,to:"hex"});m.blobVersionedHashes=t}if(x.includes("sidecars")){const t=(0,d.blobsToProofs)({blobs:B,commitments:e,kzg:R}),r=(0,f.toBlobSidecars)({blobs:B,commitments:e,proofs:t,to:"hex"});m.sidecars=r}}if(x.includes("chainId")&&(m.chainId=await T()),(x.includes("fees")||x.includes("type"))&&void 0===_)try{m.type=(0,y.getTransactionType)(m)}catch{let r=t.eip1559NetworkCache.get(e.uid);if(void 0===r){const n=await M();r="bigint"==typeof n?.baseFeePerGas,t.eip1559NetworkCache.set(e.uid,r)}m.type=r?"eip1559":"legacy"}if(x.includes("fees"))if("legacy"!==m.type&&"eip2930"!==m.type){if(void 0===m.maxFeePerGas||void 0===m.maxPriorityFeePerGas){const t=await M(),{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,o.internal_estimateFeesPerGas)(e,{block:t,chain:E,request:m});if(void 0===m.maxPriorityFeePerGas&&m.maxFeePerGas&&m.maxFeePerGas<n)throw new c.MaxFeePerGasTooLowError({maxPriorityFeePerGas:n});m.maxPriorityFeePerGas=n,m.maxFeePerGas=r}}else{if(void 0!==m.maxFeePerGas||void 0!==m.maxPriorityFeePerGas)throw new c.Eip1559FeesNotSupportedError;if(void 0===m.gasPrice){const t=await M(),{gasPrice:r}=await(0,o.internal_estimateFeesPerGas)(e,{block:t,chain:E,request:m,type:"legacy"});m.gasPrice=r}}return x.includes("gas")&&void 0===j&&(m.gas=await(0,p.getAction)(e,a.estimateGas,"estimateGas")({...m,account:A,prepare:"local"===A?.type?[]:["blobVersionedHashes"]})),P?.fn&&P.runAt?.includes("afterFillParameters")&&(m=await P.fn({...m,chain:E},{phase:"afterFillParameters"})),(0,b.assertRequest)(m),delete m.parameters,m};const n=r(9006),o=r(8470),a=r(4678),i=r(5364),s=r(1998),c=r(9143),u=r(5956),d=r(3611),l=r(4445),f=r(3339),p=r(6207),m=r(7848),b=r(4969),y=r(9788),h=r(4158),g=r(1093);t.defaultParameters=["blobVersionedHashes","chainId","fees","gas","nonce","type"],t.eip1559NetworkCache=new Map,t.supportsFillTransaction=new m.LruMap(128)},8868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=async function(e,t){const{address:r,chain:f=e.chain,hash:p,erc6492VerifierAddress:w=t.universalSignatureVerifierAddress??f?.contracts?.erc6492Verifier?.address,multicallAddress:x=t.multicallAddress??f?.contracts?.multicall3?.address}=t;if(f?.verifyHash)return await f.verifyHash(e,t);const I=(()=>{const e=t.signature;return(0,m.isHex)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?(0,v.serializeSignature)(e):(0,y.bytesToHex)(e)})();try{return o.SignatureErc8010.validate(I)?await P(e,{...t,multicallAddress:x,signature:I}):await async function(e,t){const{address:r,factory:o,factoryData:d,hash:l,signature:f,verifierAddress:p,...m}=t,y=await(async()=>o||d?n.SignatureErc6492.validate(f)?f:n.SignatureErc6492.wrap({data:d,signature:f,to:o}):f)(),g=p?{to:p,data:(0,u.encodeFunctionData)({abi:a.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[r,l,y]}),...m}:{data:(0,c.encodeDeployData)({abi:a.erc6492SignatureValidatorAbi,args:[r,l,y],bytecode:i.erc6492SignatureValidatorByteCode}),...m},{data:v}=await(0,h.getAction)(e,E.call,"call")(g).catch(e=>{if(e instanceof s.CallExecutionError)throw new T;throw e});if((0,b.hexToBool)(v??"0x0"))return!0;throw new T}(e,{...t,verifierAddress:w,signature:I})}catch(e){try{if((0,l.isAddressEqual)((0,d.getAddress)(r),await(0,g.recoverAddress)({hash:p,signature:I})))return!0}catch{}if(e instanceof T)return!1;throw e}},t.verifyErc8010=P,t.verifyErc1271=I;const n=r(3633),o=r(2873),a=r(3302),i=r(6590),s=r(7677),c=r(4687),u=r(6144),d=r(8728),l=r(4324),f=r(1769),p=r(6776),m=r(6015),b=r(294),y=r(985),h=r(6207),g=r(2374),v=r(1926),E=r(7141),w=r(1980),x=r(5275);async function P(e,t){const{address:r,blockNumber:n,blockTag:s,hash:c,multicallAddress:d}=t,{authorization:l,data:m,signature:b,to:g}=o.SignatureErc8010.unwrap(t.signature);if(await(0,w.getCode)(e,{address:r,blockNumber:n,blockTag:s})===(0,p.concatHex)(["0xef0100",l.address]))return await I(e,{address:r,blockNumber:n,blockTag:s,hash:c,signature:b});const v={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:(0,y.numberToHex)(l.r,{size:32}),s:(0,y.numberToHex)(l.s,{size:32}),yParity:l.yParity};if(!await(0,f.verifyAuthorization)({address:r,authorization:v}))throw new T;const E=await(0,h.getAction)(e,x.readContract,"readContract")({...d?{address:d}:{code:i.multicall3Bytecode},authorizationList:[v],abi:a.multicall3Abi,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...m?[{allowFailure:!0,target:g??r,callData:m}]:[],{allowFailure:!0,target:r,callData:(0,u.encodeFunctionData)({abi:a.erc1271Abi,functionName:"isValidSignature",args:[c,b]})}]]}),P=E[E.length-1]?.returnData;if(P?.startsWith("0x1626ba7e"))return!0;throw new T}async function I(e,t){const{address:r,blockNumber:n,blockTag:o,hash:i,signature:c}=t;if((await(0,h.getAction)(e,x.readContract,"readContract")({address:r,abi:a.erc1271Abi,args:[i,c],blockNumber:n,blockTag:o,functionName:"isValidSignature"}).catch(e=>{if(e instanceof s.ContractFunctionExecutionError)throw new T;throw e})).startsWith("0x1626ba7e"))return!0;throw new T}class T extends Error{}},8900:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=void 0,t.formatBlock=a;const n=r(1547),o=r(9473);function a(e,t){const r=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,o.formatTransaction)(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:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.defineBlock=(0,n.defineFormatter)("block",a)},8907:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAccessList=async function(e,t){const{account:r=e.account,blockNumber:u,blockTag:d="latest",blobs:l,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v,...E}=t,w=r?(0,n.parseAccount)(r):void 0;try{(0,c.assertRequest)(t);const r=("bigint"==typeof u?(0,o.numberToHex)(u):void 0)||d,n=e.chain?.formatters?.transactionRequest?.format,a=(n||s.formatTransactionRequest)({...(0,i.extract)(E,{format:n}),account:w,blobs:l,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v},"createAccessList"),x=await e.request({method:"eth_createAccessList",params:[a,r]});return{accessList:x.accessList,gasUsed:BigInt(x.gasUsed)}}catch(r){throw(0,a.getCallError)(r,{...t,account:w,chain:e.chain})}};const n=r(9006),o=r(985),a=r(1403),i=r(796),s=r(4712),c=r(4969)},8987:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pad=function(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):a(e,{dir:t,size:r})},t.padHex=o,t.padBytes=a;const n=r(5375);function o(e,{dir:t,size:r=32}={}){if(null===r)return e;const o=e.replace("0x","");if(o.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*r,"0")}`}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});const o=new Uint8Array(r);for(let n=0;n<r;n++){const a="right"===t;o[a?n:r-n-1]=e[a?n:e.length-n-1]}return o}},8992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashSignature=function(e){return a(e)};const n=r(7655),o=r(3625),a=e=>(0,o.keccak256)((0,n.toBytes)(e))},9006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},9085:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=async function(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}},9143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;const n=r(5277),o=r(6246);class a extends o.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}t.BaseFeeScalarError=a;class i extends o.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=i;class s extends o.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},9150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=function(e){const t=[],r=e.length;for(let o=0;o<r;o++){const r=e[o],a=(0,n.formatAbiItem)(r);t.push(a)}return t};const n=r(7905)},9175:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=o,t.anumber=a,t.abytes=i,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");a(e.outputLen),a(e.blockLen)},t.aexists=function(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")},t.aoutput=function(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=c,t.bytesToHex=function(e){if(i(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=d[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=f(e.charCodeAt(o)),a=f(e.charCodeAt(o+1));if(void 0===r||void 0===a){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}n[t]=16*r+a}return n},t.asyncLoop=async function(e,r,n){let o=Date.now();for(let a=0;a<e;a++){n(a);const e=Date.now()-o;e>=0&&e<r||(await(0,t.nextTick)(),o+=e)}},t.utf8ToBytes=p,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=m,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=p(e)),i(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];i(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=b,t.createOptHasher=y,t.createXOFer=h,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!o(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),l={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=l._0&&e<=l._9?e-l._0:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function p(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function m(e){return"string"==typeof e&&(e=p(e)),i(e),e}function b(e){const t=t=>e().update(m(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e){const t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function h(e){const t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=b,t.wrapConstructorWithOpts=y,t.wrapXOFConstructorWithOpts=h},9242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=async function(e,t){const{address:r,factory:i,factoryData:s,signature:c,message:u,primaryType:d,types:l,domain:f,...p}=t,m=(0,o.hashTypedData)({message:u,primaryType:d,types:l,domain:f});return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:r,factory:i,factoryData:s,hash:m,signature:c,...p})};const n=r(6207),o=r(9984),a=r(8868)},9274:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidLengthError=t.InvalidHexValueError=t.InvalidHexTypeError=t.InvalidHexBooleanError=t.IntegerOutOfRangeError=void 0,t.assert=l,t.concat=function(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`},t.from=function(e){return e instanceof Uint8Array?f(e):Array.isArray(e)?f(new Uint8Array(e)):e},t.fromBoolean=function(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?(s.assertSize(r,t.size),p(r,t.size)):r},t.fromBytes=f,t.fromNumber=function(e,t={}){const{signed:r,size:n}=t,o=BigInt(e);let a;n?a=r?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(a=BigInt(Number.MAX_SAFE_INTEGER));const i="bigint"==typeof a&&r?-a-1n:0;if(a&&o>a||o<i){const t="bigint"==typeof e?"n":"";throw new h({max:a?`${a}${t}`:void 0,min:`${i}${t}`,signed:r,size:n,value:`${e}${t}`})}const s=`0x${(r&&o<0?BigInt.asUintN(8*n,BigInt(o)):o).toString(16)}`;return n?p(s,n):s},t.fromString=function(e,t={}){return f(u.encode(e),t)},t.isEqual=function(e,t){return(0,n.equalBytes)(o.fromHex(e),o.fromHex(t))},t.padLeft=p,t.padRight=m,t.random=function(e){return f(o.random(e))},t.slice=function(e,t,r,n={}){const{strict:o}=n;s.assertStartOffset(e,t);const a=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return o&&s.assertEndOffset(a,t,r),a},t.size=function(e){return Math.ceil((e.length-2)/2)},t.trimLeft=b,t.trimRight=function(e){return s.trim(e,{dir:"right"})},t.toBigInt=y,t.toBoolean=function(e,t={}){t.size&&s.assertSize(e,t.size);const r=b(e);if("0x"===r)return!1;if("0x1"===r)return!0;throw new g(e)},t.toBytes=function(e,t={}){return o.fromHex(e,t)},t.toNumber=function(e,t={}){const{signed:r,size:n}=t;return Number(r||n?y(e,t):e)},t.toString=function(e,t={}){const{size:r}=t;let n=o.fromHex(e);return r&&(i.assertSize(n,r),n=o.trimRight(n)),(new TextDecoder).decode(n)},t.validate=function(e,t={}){const{strict:r=!1}=t;try{return l(e,{strict:r}),!0}catch{return!1}};const n=r(1484),o=r(3516),a=r(7560),i=r(670),s=r(9588),c=r(5665),u=new TextEncoder,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e,t={}){const{strict:r=!1}=t;if(!e)throw new v(e);if("string"!=typeof e)throw new v(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new E(e);if(!e.startsWith("0x"))throw new E(e)}function f(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]];const n=`0x${r}`;return"number"==typeof t.size?(s.assertSize(n,t.size),m(n,t.size)):n}function p(e,t){return s.pad(e,{dir:"left",size:t})}function m(e,t){return s.pad(e,{dir:"right",size:t})}function b(e){return s.trim(e,{dir:"left"})}function y(e,t={}){const{signed:r}=t;t.size&&s.assertSize(e,t.size);const n=BigInt(e);if(!r)return n;const o=(e.length-2)/2,a=(1n<<8n*BigInt(o))-1n;return n<=a>>1n?n:n-a-1n}class h extends a.BaseError{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number \`${o}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=h;class g extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}}t.InvalidHexBooleanError=g;class v extends a.BaseError{constructor(e){super(`Value \`${"object"==typeof e?c.stringify(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}t.InvalidHexTypeError=v;class E extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}t.InvalidHexValueError=E;class w extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}t.InvalidLengthError=w;class x extends a.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}t.SizeOverflowError=x;class P extends a.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=P;class I extends a.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=I},9283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=async function(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})};const n=r(985)},9358:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}};const n=r(3044)},9361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;const n=r(821);class o extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=o},9382:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.getContractAddress=void 0,t.getContractAddress=e=>e,t.getUrl=e=>e},9473:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.transactionType=void 0,t.formatTransaction=a;const n=r(294),o=r(1547);function a(e,r){const o={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(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?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[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&&(o.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)}))),o.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof o.v){if(0n===o.v||27n===o.v)return 0;if(1n===o.v||28n===o.v)return 1;if(o.v>=35n)return o.v%2n==0n?1:0}})(),"legacy"===o.type&&(delete o.accessList,delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas,delete o.yParity),"eip2930"===o.type&&(delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas),"eip1559"===o.type&&delete o.maxFeePerBlobGas,o}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},t.defineTransaction=(0,o.defineFormatter)("transaction",a)},9494:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=t.erc6492MagicBytes=void 0,t.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeParameter=u,t.decodeAddress=f,t.decodeArray=p,t.decodeBool=m,t.decodeBytes=b,t.decodeNumber=y,t.decodeTuple=h,t.decodeString=g,t.prepareParameters=function({checksumAddress:e,parameters:t,values:r}){const n=[];for(let o=0;o<t.length;o++)n.push(v({checksumAddress:e,parameter:t[o],value:r[o]}));return n},t.prepareParameter=v,t.encode=E,t.encodeAddress=w,t.encodeArray=x,t.encodeBytes=P,t.encodeBoolean=I,t.encodeNumber=T,t.encodeString=A,t.encodeTuple=O,t.getArrayComponents=S,t.hasDynamicChild=B;const n=r(2037),o=r(7179),a=r(3516),i=r(7560),s=r(9274),c=r(6625);function u(e,t,r){const{checksumAddress:o,staticPosition:a}=r,i=S(t.type);if(i){const[r,n]=i;return p(e,{...t,type:n},{checksumAddress:o,length:r,staticPosition:a})}if("tuple"===t.type)return h(e,t,{checksumAddress:o,staticPosition:a});if("address"===t.type)return f(e,{checksum:o});if("bool"===t.type)return m(e);if(t.type.startsWith("bytes"))return b(e,t,{staticPosition:a});if(t.type.startsWith("uint")||t.type.startsWith("int"))return y(e,t);if("string"===t.type)return g(e,{staticPosition:a});throw new n.InvalidTypeError(t.type)}const d=32,l=32;function f(e,t={}){const{checksum:r=!1}=t,n=e.readBytes(32);return[(i=s.fromBytes(a.slice(n,-20)),r?o.checksum(i):i),32];var i}function p(e,t,r){const{checksumAddress:n,length:o,staticPosition:i}=r;if(!o){const r=i+a.toNumber(e.readBytes(l)),o=r+d;e.setPosition(r);const s=a.toNumber(e.readBytes(d)),c=B(t);let f=0;const p=[];for(let r=0;r<s;++r){e.setPosition(o+(c?32*r:f));const[a,i]=u(e,t,{checksumAddress:n,staticPosition:o});f+=i,p.push(a)}return e.setPosition(i+32),[p,32]}if(B(t)){const r=i+a.toNumber(e.readBytes(l)),s=[];for(let a=0;a<o;++a){e.setPosition(r+32*a);const[o]=u(e,t,{checksumAddress:n,staticPosition:r});s.push(o)}return e.setPosition(i+32),[s,32]}let s=0;const c=[];for(let r=0;r<o;++r){const[r,o]=u(e,t,{checksumAddress:n,staticPosition:i+s});s+=o,c.push(r)}return[c,s]}function m(e){return[a.toBoolean(e.readBytes(32),{size:32}),32]}function b(e,t,{staticPosition:r}){const[n,o]=t.type.split("bytes");if(!o){const t=a.toNumber(e.readBytes(32));e.setPosition(r+t);const n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const o=e.readBytes(n);return e.setPosition(r+32),[s.fromBytes(o),32]}return[s.fromBytes(e.readBytes(Number.parseInt(o,10),32)),32]}function y(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[n>48?a.toBigInt(o,{signed:r}):a.toNumber(o,{signed:r}),32]}function h(e,t,r){const{checksumAddress:n,staticPosition:o}=r,i=0===t.components.length||t.components.some(({name:e})=>!e),s=i?[]:{};let c=0;if(B(t)){const r=o+a.toNumber(e.readBytes(l));for(let o=0;o<t.components.length;++o){const a=t.components[o];e.setPosition(r+c);const[d,l]=u(e,a,{checksumAddress:n,staticPosition:r});c+=l,s[i?o:a?.name]=d}return e.setPosition(o+32),[s,32]}for(let r=0;r<t.components.length;++r){const a=t.components[r],[d,l]=u(e,a,{checksumAddress:n,staticPosition:o});s[i?r:a?.name]=d,c+=l}return[s,c]}function g(e,{staticPosition:t}){const r=t+a.toNumber(e.readBytes(32));e.setPosition(r);const n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];const o=e.readBytes(n,32),i=a.toString(a.trimLeft(o));return e.setPosition(t+32),[i,32]}function v({checksumAddress:e=!1,parameter:t,value:r}){const o=t,a=S(o.type);if(a){const[t,n]=a;return x(r,{checksumAddress:e,length:t,parameter:{...o,type:n}})}if("tuple"===o.type)return O(r,{checksumAddress:e,parameter:o});if("address"===o.type)return w(r,{checksum:e});if("bool"===o.type)return I(r);if(o.type.startsWith("uint")||o.type.startsWith("int")){const e=o.type.startsWith("int"),[,,t="256"]=c.integerRegex.exec(o.type)??[];return T(r,{signed:e,size:Number(t)})}if(o.type.startsWith("bytes"))return P(r,{type:o.type});if("string"===o.type)return A(r);throw new n.InvalidTypeError(o.type)}function E(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:s.size(o)}const r=[],n=[];let o=0;for(let a=0;a<e.length;a++){const{dynamic:i,encoded:c}=e[a];i?(r.push(s.fromNumber(t+o,{size:32})),n.push(c),o+=s.size(c)):r.push(c)}return s.concat(...r,...n)}function w(e,t){const{checksum:r=!1}=t;return o.assert(e,{strict:r}),{dynamic:!1,encoded:s.padLeft(e.toLowerCase())}}function x(e,t){const{checksumAddress:r,length:o,parameter:a}=t,i=null===o;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!i&&e.length!==o)throw new n.ArrayLengthMismatchError({expectedLength:o,givenLength:e.length,type:`${a.type}[${o}]`});let c=!1;const u=[];for(let t=0;t<e.length;t++){const n=v({checksumAddress:r,parameter:a,value:e[t]});n.dynamic&&(c=!0),u.push(n)}if(i||c){const e=E(u);if(i){const t=s.fromNumber(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?s.concat(t,e):t}}if(c)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:s.concat(...u.map(({encoded:e})=>e))}}function P(e,{type:t}){const[,r]=t.split("bytes"),o=s.size(e);if(!r){let t=e;return o%32!=0&&(t=s.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:s.concat(s.padLeft(s.fromNumber(o,{size:32})),t)}}if(o!==Number.parseInt(r,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:s.padRight(e)}}function I(e){if("boolean"!=typeof e)throw new i.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:s.padLeft(s.fromBoolean(e))}}function T(e,{signed:t,size:r}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new s.IntegerOutOfRangeError({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:s.fromNumber(e,{size:32,signed:t})}}function A(e){const t=s.fromString(e),r=Math.ceil(s.size(t)/32),n=[];for(let e=0;e<r;e++)n.push(s.padRight(s.slice(t,32*e,32*(e+1))));return{dynamic:!0,encoded:s.concat(s.padRight(s.fromNumber(s.size(t),{size:32})),...n)}}function O(e,t){const{checksumAddress:r,parameter:n}=t;let o=!1;const a=[];for(let t=0;t<n.components.length;t++){const i=n.components[t],s=v({checksumAddress:r,parameter:i,value:e[Array.isArray(e)?t:i.name]});a.push(s),s.dynamic&&(o=!0)}return{dynamic:o,encoded:o?E(a):s.concat(...a.map(({encoded:e})=>e))}}function S(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function B(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(B);const r=S(e.type);return!(!r||!B({...e,type:r[1]}))}},9588:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.pad=function(e,t={}){const{dir:r,size:o=32}=t;if(0===o)return e;const a=e.replace("0x","");if(a.length>2*o)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(a.length/2),targetSize:o,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*o,"0")}`},t.trim=function(e,t={}){const{dir:r="left"}=t;let n=e.replace("0x",""),o=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)o++;return n="left"===r?n.slice(o):n.slice(0,n.length-o),"0"===n?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`};const n=r(9274)},9615:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(9175);class o extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);const r=(0,n.toBytes)(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,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,n.clean)(a)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(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}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:o,blockLen:a,outputLen:i}=this;return e.finished=n,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=o,t.hmac=(e,t,r)=>new o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},9617:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxBytesPerTransaction=t.bytesPerBlob=t.fieldElementsPerBlob=t.bytesPerFieldElement=void 0,t.bytesPerFieldElement=32,t.fieldElementsPerBlob=4096,t.bytesPerBlob=t.bytesPerFieldElement*t.fieldElementsPerBlob,t.maxBytesPerTransaction=6*t.bytesPerBlob-1-1*t.fieldElementsPerBlob*6},9624:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.revert=async function(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}},9626:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSelectorSizeError=t.NotFoundError=t.AmbiguityError=void 0,t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){const{prepare:r=!0}=t,o=Array.isArray(e)||"string"==typeof e?n.parseAbiItem(e):e;return{...o,...r?{hash:l(o)}:{}}},t.fromAbi=c,t.getSelector=u,t.getSignature=d,t.getSignatureHash=l;const n=r(6524),o=r(7560),a=r(347),i=r(9274),s=r(5800);function c(e,t,r){const{args:n=[],prepare:o=!0}=r??{},a=i.validate(t,{strict:!1}),c=e.filter(e=>a?"function"===e.type||"error"===e.type?u(e)===i.slice(t,0,4):"event"===e.type&&l(e)===t:"name"in e&&e.name===t);if(0===c.length)throw new p({name:t});if(1===c.length)return{...c[0],...o?{hash:l(c[0])}:{}};let d;for(const e of c)if("inputs"in e)if(n&&0!==n.length){if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,r)=>{const n="inputs"in e&&e.inputs[r];return!!n&&s.isArgOfType(t,n)})){if(d&&"inputs"in d&&d.inputs){const t=s.getAmbiguousTypes(e.inputs,d.inputs,n);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:d,type:t[1]})}d=e}}else if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:l(e)}:{}};const m=(()=>{if(d)return d;const[e,...t]=c;return{...e,overloads:t}})();if(!m)throw new p({name:t});return{...m,...o?{hash:l(m)}:{}}}function u(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})();return i.slice(l(t),0,4)}function d(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})(),r="string"==typeof t?t:n.formatAbiItem(t);return s.normalizeSignature(r)}function l(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:a.keccak256(i.fromString(d(t)))}class f extends o.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${s.normalizeSignature(n.formatAbiItem(e.abiItem))}\`, and`,`\`${t.type}\` in \`${s.normalizeSignature(n.formatAbiItem(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}t.AmbiguityError=f;class p extends o.BaseError{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}t.NotFoundError=p;class m extends o.BaseError{constructor({data:e}){super(`Selector size is invalid. Expected 4 bytes. Received ${i.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}t.InvalidSelectorSizeError=m},9642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}t.BlockNotFoundError=o},9694:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSiweMessage=function(e){const{scheme:t,statement:o,...a}=e.match(r)?.groups??{},{chainId:i,expirationTime:s,issuedAt:c,notBefore:u,requestId:d,...l}=e.match(n)?.groups??{},f=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...a,...l,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...c?{issuedAt:new Date(c)}:{},...u?{notBefore:new Date(u)}:{},...d?{requestId:d}:{},...f?{resources:f}:{},...t?{scheme:t}:{},...o?{statement:o}:{}}};const r=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,n=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/},9742:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressCache=void 0,t.isAddress=function(e,r){const{strict:n=!0}=r??{},i=`${e}.${n}`;if(t.isAddressCache.has(i))return t.isAddressCache.get(i);const s=!(!a.test(e)||e.toLowerCase()!==e&&n&&(0,o.checksumAddress)(e)!==e);return t.isAddressCache.set(i,s),s};const n=r(7848),o=r(8728),a=/^0x[a-fA-F0-9]{40}$/;t.isAddressCache=new n.LruMap(8192)},9760:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=void 0,t.getParameterCacheKey=function(e,t,r){let n="";if(r)for(const e of Object.entries(r)){if(!e)continue;let t="";for(const r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},9771:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=async function(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}},9788:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=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 n.InvalidSerializableTransactionError({transaction:e})};const n=r(3727)},9828:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:d,poll:l,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==l?l:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{const n=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]);return(0,a.observe)(n,{onBlockNumber:u,onError:d},n=>(0,i.poll)(async()=>{try{const t=await(0,o.getAction)(e,c.getBlockNumber,"getBlockNumber")({cacheTime:0});if(void 0!==p){if(t===p)return;if(t-p>1&&r)for(let e=p+1n;e<t;e++)n.onBlockNumber(e,p),p=e}(void 0===p||t>p)&&(n.onBlockNumber(t,p),p=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{const o=(0,s.stringify)(["watchBlockNumber",e.uid,t,r]);return(0,a.observe)(o,{onBlockNumber:u,onError:d},t=>{let r=!0,o=()=>r=!1;return(async()=>{try{const a=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await a.subscribe({params:["newHeads"],onData(e){if(!r)return;const o=(0,n.hexToBigInt)(e.result?.number);t.onBlockNumber(o,p),p=o},onError(e){t.onError?.(e)}});o=i,r||o()}catch(e){d?.(e)}})(),()=>o()})})()};const n=r(294),o=r(6207),a=r(2093),i=r(3940),s=r(4900),c=r(5729)},9914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=async function(e,{address:t,blockHash:r,fromBlock:s,toBlock:c,event:u,events:d,args:l,strict:f}={}){const p=f??!1,m=d??(u?[u]:void 0);let b,y=[];if(m){const e=m.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:d?void 0:l}));y=[e],u&&(y=y[0])}b=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:y,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:y,fromBlock:"bigint"==typeof s?(0,a.numberToHex)(s):s,toBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c}]});const h=b.map(e=>(0,i.formatLog)(e));return m?(0,o.parseEventLogs)({abi:m,args:l,logs:h,strict:p}):h};const n=r(378),o=r(48),a=r(985),i=r(95)},9978:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=async function(e,t){const{account:r=e.account,chain:l=e.chain,...f}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const p=(0,n.parseAccount)(r);(0,u.assertRequest)({account:p,...t});const m=await(0,c.getAction)(e,d.getChainId,"getChainId")({});null!==l&&(0,a.assertCurrentChain)({currentChainId:m,chain:l});const b=l?.formatters||e.chain?.formatters,y=b?.transactionRequest?.format||s.formatTransactionRequest;return p.signTransaction?p.signTransaction({...f,chainId:m},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...y({...f,account:p},"signTransaction"),chainId:(0,i.numberToHex)(m),from:p.address}]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(2779),i=r(985),s=r(4712),c=r(6207),u=r(4969),d=r(1093)},9984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=function(e){const{domain:t={},message:r,primaryType:n}=e,a={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:t}),...e.types};(0,s.validateTypedData)({domain:t,message:r,primaryType:n,types:a});const d=["0x1901"];return t&&d.push(c({domain:t,types:a})),"EIP712Domain"!==n&&d.push(u({data:r,primaryType:n,types:a})),(0,i.keccak256)((0,o.concat)(d))},t.hashDomain=c,t.hashStruct=u,t.encodeType=f;const n=r(2732),o=r(6776),a=r(985),i=r(3625),s=r(8377);function c({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}function u({data:e,primaryType:t,types:r}){const n=d({data:e,primaryType:t,types:r});return(0,i.keccak256)(n)}function d({data:e,primaryType:t,types:r}){const o=[{type:"bytes32"}],a=[l({primaryType:t,types:r})];for(const n of r[t]){const[t,i]=m({types:r,name:n.name,type:n.type,value:e[n.name]});o.push(t),a.push(i)}return(0,n.encodeAbiParameters)(o,a)}function l({primaryType:e,types:t}){const r=(0,a.toHex)(f({primaryType:e,types:t}));return(0,i.keccak256)(r)}function f({primaryType:e,types:t}){let r="";const n=p({primaryType:e,types:t});n.delete(e);const o=[e,...Array.from(n).sort()];for(const e of o)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}function p({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),o=n?.[0];if(r.has(o)||void 0===t[o])return r;r.add(o);for(const e of t[o])p({primaryType:e.type,types:t},r);return r}function m({types:e,name:t,type:r,value:o}){if(void 0!==e[r])return[{type:"bytes32"},(0,i.keccak256)(d({data:o,primaryType:r,types:e}))];if("bytes"===r)return[{type:"bytes32"},(0,i.keccak256)(o)];if("string"===r)return[{type:"bytes32"},(0,i.keccak256)((0,a.toHex)(o))];if(r.lastIndexOf("]")===r.length-1){const a=r.slice(0,r.lastIndexOf("[")),s=o.map(r=>m({name:t,type:a,types:e,value:r}));return[{type:"bytes32"},(0,i.keccak256)((0,n.encodeAbiParameters)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:r},o]}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(8156)})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VoidAISDK=t():e.VoidAISDK=t()}(this,()=>(()=>{"use strict";var e={44:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=function(e,t){const{abi:r,args:a,bytecode:i,...s}=t,c=(0,n.encodeDeployData)({abi:r,args:a,bytecode:i});return(0,o.sendTransaction)(e,{...s,...s.authorizationList?{to:null}:{},data:c})};const n=r(4687),o=r(6687)},48:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEventLogs=function(e){const{abi:t,args:r,logs:c,strict:u=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return c.map(e=>{const c=t.filter(t=>"event"===t.type&&e.topics[0]===(0,i.toEventSelector)(t));if(0===c.length)return null;let l,f;for(const t of c)try{l=(0,s.decodeEventLog)({...e,abi:[t],strict:!0}),f=t;break}catch{}if(!l&&!u){f=c[0];try{l=(0,s.decodeEventLog)({...e,abi:[f],strict:!1})}catch{const t=f.inputs?.some(e=>!("name"in e&&e.name));return{...e,args:t?[]:{},eventName:f.name}}}return l&&f?d&&!d.includes(l.eventName)?null:function(e){const{args:t,inputs:r,matchArgs:i}=e;if(!i)return!0;if(!t)return!1;function s(e,t,r){try{return"address"===e.type?(0,n.isAddressEqual)(t,r):"string"===e.type||"bytes"===e.type?(0,a.keccak256)((0,o.toBytes)(t))===r:t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(i)?i.every((e,n)=>{if(null==e)return!0;const o=r[n];return!!o&&(Array.isArray(e)?e:[e]).some(e=>s(o,e,t[n]))}):"object"==typeof t&&!Array.isArray(t)&&"object"==typeof i&&!Array.isArray(i)&&Object.entries(i).every(([e,n])=>{if(null==n)return!0;const o=r.find(t=>t.name===e);return!!o&&(Array.isArray(n)?n:[n]).some(r=>s(o,r,t[e]))})}({args:l.args,inputs:f.inputs,matchArgs:r})?{...l,...e}:null:null}).filter(Boolean)};const n=r(4324),o=r(7655),a=r(3625),i=r(7144),s=r(8182)},79:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=async function(e){return e.request({method:`${e.mode}_dumpState`})}},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=function(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}},102:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc6492Signature=function(e){if(!(0,o.isErc6492Signature)(e))return{signature:e};const[t,r,a]=(0,n.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],e);return{address:t,data:r,signature:a}};const n=r(4612),o=r(2803)},120:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeStateMapping=c,t.serializeAccountStateOverride=u,t.serializeStateOverride=function(e){if(!e)return;const t={};for(const{address:r,...o}of e){if(!(0,i.isAddress)(r,{strict:!1}))throw new n.InvalidAddressError({address:r});if(t[r])throw new a.AccountStateConflictError({address:r});t[r]=u(o)}return t};const n=r(6311),o=r(5375),a=r(6254),i=r(9742),s=r(985);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new o.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new o.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function u(e){const{balance:t,nonce:r,state:n,stateDiff:o,code:i}=e,u={};if(void 0!==i&&(u.code=i),void 0!==t&&(u.balance=(0,s.numberToHex)(t)),void 0!==r&&(u.nonce=(0,s.numberToHex)(r)),void 0!==n&&(u.state=c(n)),void 0!==o){if(u.state)throw new a.StateAssignmentConflictError;u.stateDiff=c(o)}return u}},138:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForCallsStatusTimeoutError=void 0,t.waitForCallsStatus=async function(e,t){const{id:r,pollingInterval:n=e.pollingInterval,status:p=({statusCode:e})=>200===e||e>=300,retryCount:m=4,retryDelay:b=({count:e})=>200*(1<<e),timeout:y=6e4,throwOnFailure:h=!1}=t,g=(0,d.stringify)(["waitForCallsStatus",e.uid,r]),{promise:v,resolve:E,reject:w}=(0,c.withResolvers)();let x;const P=(0,i.observe)(g,{resolve:E,reject:w},t=>{const i=(0,s.poll)(async()=>{const n=e=>{clearTimeout(x),i(),e(),P()};try{const i=await(0,u.withRetry)(async()=>{const t=await(0,a.getAction)(e,l.getCallsStatus,"getCallsStatus")({id:r});if(h&&"failure"===t.status)throw new o.BundleFailedError(t);return t},{retryCount:m,delay:b});if(!p(i))return;n(()=>t.resolve(i))}catch(e){n(()=>t.reject(e))}},{interval:n,emitOnBegin:!0});return i});return x=y?setTimeout(()=>{P(),clearTimeout(x),w(new f({id:r}))},y):void 0,await v};const n=r(6246),o=r(2034),a=r(6207),i=r(2093),s=r(3940),c=r(2344),u=r(1525),d=r(4900),l=r(230);class f extends n.BaseError{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}t.WaitForCallsStatusTimeoutError=f},155:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCompactSignature=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(t)).toCompactHex()}`};const n=r(8510),o=r(294)},181:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=async function(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}},230:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallsStatus=async function(e,t){const{atomic:r=!1,chainId:c,receipts:u,version:d="2.0.0",...l}=await async function(t){if(t.endsWith(s.fallbackMagicIdentifier.slice(2))){const r=(0,o.trim)((0,n.sliceHex)(t,-64,-32)),i=(0,n.sliceHex)(t,0,-64).slice(2).match(/.{1,64}/g),c=await Promise.all(i.map(t=>s.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),u=c.some(e=>null===e)?100:c.every(e=>"0x1"===e?.status)?200:c.every(e=>"0x0"===e?.status)?500:600;return{atomic:!1,chainId:(0,a.hexToNumber)(r),receipts:c.filter(Boolean),status:u,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}(t.id),[f,p]=(()=>{const e=l.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...l,atomic:r,chainId:c?(0,a.hexToNumber)(c):void 0,receipts:u?.map(e=>({...e,blockNumber:(0,a.hexToBigInt)(e.blockNumber),gasUsed:(0,a.hexToBigInt)(e.gasUsed),status:i.receiptStatuses[e.status]}))??[],statusCode:p,status:f,version:d}};const n=r(7688),o=r(7488),a=r(294),i=r(4537),s=r(8018)},233:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidDecimalNumberError=void 0;const n=r(6246);class o extends n.BaseError{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}t.InvalidDecimalNumberError=o},253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateBlocks=async function(e,t){const{blockNumber:r,blockTag:v=e.experimental_blockTag??"latest",blocks:E,returnFullTransactions:w,traceTransfers:x,validation:P}=t;try{const t=[];for(const e of E){const r=e.blockOverrides?n.toRpc(e.blockOverrides):void 0,a=e.calls.map(e=>{const t=e,r=t.account?(0,o.parseAccount)(t.account):void 0,n=t.abi?(0,u.encodeFunctionData)(t):t.data,a={...t,account:r,data:t.dataSuffix?(0,d.concat)([n||"0x",t.dataSuffix]):n,from:t.from??r?.address};return(0,g.assertRequest)(a),(0,y.formatTransactionRequest)(a)}),i=e.stateOverrides?(0,h.serializeStateOverride)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:a,stateOverrides:i})}const s=("bigint"==typeof r?(0,l.numberToHex)(r):void 0)||v;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:w,traceTransfers:x,validation:P},s]})).map((e,t)=>({...(0,m.formatBlock)(e),calls:e.calls.map((e,r)=>{const{abi:n,args:o,functionName:s,to:u}=E[t].calls[r],d=e.error?.data??e.returnData,l=BigInt(e.gasUsed),p=e.logs?.map(e=>(0,b.formatLog)(e)),m="0x1"===e.status?"success":"failure",y=n&&"success"===m&&"0x"!==d?(0,c.decodeFunctionResult)({abi:n,data:d,functionName:s}):null,h=(()=>{if("success"===m)return;let t;return"0x"===e.error?.data?t=new a.AbiDecodingZeroDataError:e.error&&(t=new i.RawContractError(e.error)),t?(0,f.getContractError)(t,{abi:n??[],address:u??"0x",args:o,functionName:s??"<unknown>"}):void 0})();return{data:d,gasUsed:l,logs:p,status:m,..."success"===m?{result:y}:{error:h}}})}))}catch(e){const t=e,r=(0,p.getNodeError)(t,{});if(r instanceof s.UnknownNodeError)throw t;throw r}};const n=r(5709),o=r(9006),a=r(6953),i=r(7677),s=r(2731),c=r(7541),u=r(6144),d=r(6776),l=r(985),f=r(6173),p=r(6339),m=r(8900),b=r(95),y=r(4712),h=r(120),g=r(4969)},294:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=s,t.fromHex=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?d(e,r):"bigint"===n?c(e,r):"string"===n?l(e,r):"boolean"===n?u(e,r):(0,i.hexToBytes)(e,r)},t.hexToBigInt=c,t.hexToBool=u,t.hexToNumber=d,t.hexToString=l;const n=r(5366),o=r(2285),a=r(7488),i=r(7655);function s(e,{size:t}){if((0,o.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,o.size)(e),maxSize:t})}function c(e,t={}){const{signed:r}=t;t.size&&s(e,{size:t.size});const n=BigInt(e);if(!r)return n;const o=(e.length-2)/2;return n<=(1n<<8n*BigInt(o)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function u(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r)),"0x00"===(0,a.trim)(r))return!1;if("0x01"===(0,a.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function d(e,t={}){const r=c(e,t),o=Number(r);if(!Number.isSafeInteger(o))throw new n.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return o}function l(e,t={}){let r=(0,i.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventHash=void 0;var n=r(3239);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},347:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,o.keccak_256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.ripemd160=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,o=(0,n.ripemd160)(i.from(e));return"Bytes"===r?o:s.fromBytes(o)},t.sha256=function(e,t={}){const{as:r=("string"==typeof e?"Hex":"Bytes")}=t,n=(0,a.sha256)(i.from(e));return"Bytes"===r?n:s.fromBytes(n)},t.validate=function(e){return s.validate(e)&&32===s.size(e)};const n=r(3238),o=r(2955),a=r(2623),i=r(3516),s=r(9274)},378:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=function(e){const{abi:t,eventName:r,args:o}=e;let a=t[0];if(r){const e=(0,d.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiEventNotFoundError(r,{docsPath:l});a=e}if("event"!==a.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:l});const i=(0,u.formatAbiItem)(a),c=(0,s.toEventSelector)(i);let p=[];if(o&&"inputs"in a){const e=a.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(o)?o:Object.values(o).length>0?e?.map(e=>o[e.name])??[]:[];t.length>0&&(p=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,o)=>f({param:e,value:t[r][o]})):void 0!==t[r]&&null!==t[r]?f({param:e,value:t[r]}):null)??[])}return[c,...p]};const n=r(6953),o=r(6861),a=r(7655),i=r(3625),s=r(7144),c=r(2732),u=r(4520),d=r(775),l="/docs/contract/encodeEventTopics";function f({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,i.keccak256)((0,a.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new o.FilterTypeNotSupportedError(e.type);return(0,c.encodeAbiParameters)([e],[t])}},405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEip712Domain=async function(e,t){const{address:r,factory:s,factoryData:c}=t;try{const[t,n,u,d,l,f,p]=await(0,o.getAction)(e,a.readContract,"readContract")({abi:i,address:r,functionName:"eip712Domain",factory:s,factoryData:c});return{domain:{name:n,version:u,chainId:Number(d),verifyingContract:l,salt:f},extensions:p,fields:t}}catch(e){const t=e;if("ContractFunctionExecutionError"===t.name&&"ContractFunctionZeroDataError"===t.cause.name)throw new n.Eip712DomainNotFoundError({address:r});throw t}};const n=r(5339),o=r(6207),a=r(5275),i=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}]},436:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VoidAIBridgeClient=void 0;const o=n(r(6425));t.VoidAIBridgeClient=class{constructor(e){this.validatedApiKeyData=null,this.accessToken=null,this.config=e,this.client=o.default.create({timeout:1e4,headers:{"Content-Type":"application/json"}}),this.ready=this.authenticate().then(()=>{})}async authenticate(){try{const e=await this.login();this.setAccessToken(e),this.validatedApiKeyData=this.tryDecodeTokenToValidationData(e)}catch(e){try{await this.validateApiKey()}catch(t){throw e}}}setAccessToken(e){this.accessToken=e,this.client.defaults.headers.common.Authorization=`Bearer ${e}`}getAccessToken(){return this.accessToken}getLoginUrl(){return`${this.config.getBaseUrl().replace(/\/$/,"")}/api/v1/auth/login`}getBridgeContractAddress(){return this.config.bridgeContractAddress}async login(){const e=this.getLoginUrl(),t={apiKey:this.config.apiKey,...this.config.secretKey?{secretKey:this.config.secretKey}:{}};try{const r=await o.default.post(e,t,{headers:{"Content-Type":"application/json"},timeout:1e4});if(r.data&&r.data.success&&r.data.accessToken)return r.data.accessToken;const n=r.data;throw new Error(n?.error?.message||n?.message||"Failed to login")}catch(e){if(o.default.isAxiosError(e)){const t=e.response?.data,r=t?.error?.message||t?.message||e.message||"Failed to login";throw new Error(r)}throw e}}tryDecodeTokenToValidationData(e){try{const t=e.split(".");if(t.length<2)return null;const r=t[1],n=this.base64UrlDecode(r),o=JSON.parse(n);return o?.keyId&&o?.name?{keyId:String(o.keyId),tenantId:String(o.sub||o.id||""),name:String(o.name)}:null}catch{return null}}base64UrlDecode(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4,n=r?t+"=".repeat(4-r):t;return"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("utf8"):atob(n)}async validateApiKey(){try{const e=this.getValidationUrl(),t=await o.default.get(e,{headers:{"api-key":this.config.apiKey},timeout:1e4});if(t.data.success)return this.validatedApiKeyData=t.data.data,t.data.data;{const e=new Error(t.data.error.message);throw e.code=t.data.error.code,e}}catch(e){if(this.validatedApiKeyData=null,o.default.isAxiosError(e)){if(401===e.response?.status){const t=e.response.data,r=new Error(t.error?.message||"API key is invalid or inactive");throw r.code=t.error?.code||"INVALID_API_KEY",r}throw new Error(`Failed to validate API key: ${e.message}`)}throw e}}getValidationUrl(){return`${this.config.getBaseUrl().replace(/\/$/,"")}/api/v1/auth/validate-api-key`}getValidatedApiKeyData(){return this.validatedApiKeyData}getUrl(e){return`${this.config.getBaseUrl().replace(/\/$/,"")}/${e.replace(/^\//,"")}`}async get(e,t,r=!1,n){await this.ready;const o=this.getUrl(e);try{return(await this.client.get(o,{params:t,...n||{}})).data}catch(o){if(401===(o?.response?.status??o?.statusCode)&&!r)try{return await this.authenticate(),await this.get(e,t,!0,n)}catch(e){this.handleError(e)}this.handleError(o)}}async post(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.post(n,t)).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.post(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async delete(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.delete(n,{params:t})).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.delete(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async patch(e,t,r=!1){await this.ready;const n=this.getUrl(e);try{return(await this.client.patch(n,t)).data}catch(n){if(401===(n?.response?.status??n?.statusCode)&&!r)try{return await this.authenticate(),await this.patch(e,t,!0)}catch(e){this.handleError(e)}this.handleError(n)}}async bridgeSwap(e){return this.post("api/v1/bridge/swap",e)}async routeTransaction(e){const t={...e,amount:String(e.amount)};return this.post("api/v1/bridge/route-transaction",t)}async cancelCcip(e){const t={operationType:e.operationType,fromToken:e.fromToken,toToken:e.toToken,uuid:e.uuid};return this.delete("api/v1/bridge/cancel-ccip",t)}async cancelRouterSwap(e){const t={uuid:e.uuid};return this.delete("api/v1/bridge/cancel-router-swap",t)}async cancelBridgeSwap(e){return this.patch("api/v1/bridge/swap/cancel",e)}async getApiTransactions(e=1,t=20){const r={page:String(e),limit:String(t)};return this.get("api/v1/bridge/api-transactions",r)}async validateBurn(e){return this.post("api/v1/bridge/validate-burn",e)}async confirmCcipTransaction(e){const t=`api/v1/bridge/transactions/${encodeURIComponent(e.transactionId)}/tx`,r={txnHash:e.txnHash,operationType:e.operationType,txnStatus:e.txnStatus};return this.patch(t,r)}async getSupportedChains(e){const t={};void 0!==e?.isActive&&(t.is_active=String(e.isActive)),void 0!==e?.isCcipSupported&&(t.is_ccip_supported=String(e.isCcipSupported)),void 0!==e?.chainId&&(t.chain_id=e.chainId);const r=await this.get("api/v1/chain/chains",t);if(!r.success||!r.data)throw new Error(r.message||"Failed to fetch chains");return r.data.chains}async getAssetList(e,t=1,r=20){const n={page:String(t),limit:String(r)},o=await this.get("api/v1/asset/assets",n);if(!o.success||!o.data)throw new Error(o.message||"Failed to fetch assets");return void 0!==e&&(o.data.assets=o.data.assets.filter(t=>t.chainId===e)),o}async getBridgeFeeEstimate(e){const t={fromToken:e.fromToken,toToken:e.toToken,amount:String(e.amount)};return this.get("api/v1/bridge/call-fee",t,!1,{headers:{"x-api-key":this.config.apiKey}})}async getRouterSwapFeeEstimate(e){const t={originAssetId:String(e.originAssetId),destinationAssetId:String(e.destinationAssetId),amount:String(e.amount),operationType:e.operationType,toAddress:e.toAddress};return this.get("api/v1/router-swap/call-fee",t,!1,{headers:{"x-api-key":this.config.apiKey}})}handleError(e){if(o.default.isAxiosError(e)){const t=e.response?.status,r=e.response?.data;let n=r?.error?.message||r?.message||("string"==typeof r?.error?r.error:void 0)||(!1===r?.success&&r?.message?r.message:void 0);401!==t||"Unauthorized"!==n&&401!==r?.statusCode&&"Unauthorized"!==r?.message||(n="Session expired or unauthorized. Please verify your API key/secret and try again.");const o=n||e.message||(t?`Request failed with status ${t}`:"Request failed");throw new Error(o)}throw new Error(e?.message||"Unexpected error")}}},449:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:o=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${o&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`};const n=r(4900)},498:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=async function(e,t){const{account:r=e.account,domain:i,message:s,primaryType:c}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const u=(0,n.parseAccount)(r),d={EIP712Domain:(0,a.getTypesForEIP712Domain)({domain:i}),...t.types};if((0,a.validateTypedData)({domain:i,message:s,primaryType:c,types:d}),u.signTypedData)return u.signTypedData({domain:i,message:s,primaryType:c,types:d});const l=(0,a.serializeTypedData)({domain:i,message:s,primaryType:c,types:d});return e.request({method:"eth_signTypedData_v4",params:[u.address,l]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(8377)},527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc8010Signature=function(e){return n.SignatureErc8010.validate(e)};const n=r(2873)},552:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}},570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BittensorWallet=void 0,t.BittensorWallet=class{constructor(){this.extension=null,this.account=null,this.extensionName=null}async connect(e){if("undefined"==typeof window)throw new Error("BittensorWallet: Browser environment required for wallet connection");if(void 0===window.injectedWeb3)throw new Error("No compatible wallet extension found. Please install Talisman, Subwallet, or Polkadot.js extension.");const t=window.injectedWeb3,r=["talisman","subwallet-js","polkadot-js"];let n,o,a=null,i="";if(e&&t[e])a=t[e],i=e;else{for(const e of r)if(t[e]){a=t[e],i=e;break}if(!a){const e=Object.keys(t);if(!(e.length>0))throw new Error("No compatible wallet extension found.");i=e[0],a=t[i]}}try{n=await a.enable("VoidAI Bridge SDK")}catch(e){if(e.message&&e.message.includes("authorised"))throw new Error("No accounts are authorized. Please authorize accounts in your wallet extension and try again.");throw new Error(`Failed to enable wallet extension: ${e.message||e}`)}if(!n)throw new Error("Failed to enable wallet extension. Please try again.");try{o=await n.accounts.get()}catch(e){throw new Error(`Failed to get accounts: ${e.message||e}`)}if(0===o.length)throw new Error("No accounts found. Please authorize at least one account in your wallet extension and try again.");this.extension=n;const s=o[0];return this.account=s,this.extensionName=i,s}getAccount(){return this.account}getExtensionName(){return this.extensionName}isConnected(){return null!==this.account&&null!==this.extension}disconnect(){this.extension=null,this.account=null,this.extensionName=null}static isExtensionAvailable(e){if("undefined"==typeof window)return!1;const t=window.injectedWeb3;return!!t&&(e?!!t[e]:["talisman","subwallet-js","polkadot-js"].some(e=>!!t[e])||Object.keys(t).length>0)}getExtension(){return this.extension}}},593:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=async function({message:e,signature:t}){return(0,o.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})};const n=r(5336),o=r(2374)},595:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc8010Signature=function(e){const{address:t,data:r,signature:a,to:i="hex"}=e,s=n.SignatureErc8010.wrap({authorization:{address:e.authorization.address,chainId:e.authorization.chainId,nonce:BigInt(e.authorization.nonce),r:BigInt(e.authorization.r),s:BigInt(e.authorization.s),yParity:e.authorization.yParity},data:r,signature:a,to:t});return"hex"===i?s:(0,o.hexToBytes)(s)};const n=r(2873),o=r(7655)},629:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[r]})}},665:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVError=t.InvalidYParityError=t.InvalidSError=t.InvalidRError=t.MissingPropertiesError=t.InvalidSerializedSizeError=void 0,t.assert=u,t.fromBytes=d,t.fromHex=l,t.extract=function(e){return void 0===e.r||void 0===e.s?void 0:f(e)},t.from=f,t.fromDerBytes=function(e){return p(i.fromBytes(e))},t.fromDerHex=p,t.fromLegacy=m,t.fromRpc=b,t.fromTuple=function(e){const[t,r,n]=e;return f({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})},t.toBytes=function(e){return o.fromHex(y(e))},t.toHex=y,t.toDerBytes=function(e){return new n.secp256k1.Signature(e.r,e.s).toDERRawBytes()},t.toDerHex=function(e){return`0x${new n.secp256k1.Signature(e.r,e.s).toDERHex()}`},t.toLegacy=function(e){return{r:e.r,s:e.s,v:g(e.yParity)}},t.toRpc=function(e){const{r:t,s:r,yParity:n}=e;return{r:i.fromNumber(t,{size:32}),s:i.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}},t.toTuple=function(e){const{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":i.trimLeft(i.fromNumber(t)),0n===r?"0x":i.trimLeft(i.fromNumber(r))]},t.validate=function(e,t={}){try{return u(e,t),!0}catch{return!1}},t.vToYParity=h,t.yParityToV=g;const n=r(8510),o=r(3516),a=r(7560),i=r(9274),s=r(5665),c=r(6625);function u(e,t={}){const{recovered:r}=t;if(void 0===e.r)throw new E({signature:e});if(void 0===e.s)throw new E({signature:e});if(r&&void 0===e.yParity)throw new E({signature:e});if(e.r<0n||e.r>c.maxUint256)throw new w({value:e.r});if(e.s<0n||e.s>c.maxUint256)throw new x({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new P({value:e.yParity})}function d(e){return l(i.fromBytes(e))}function l(e){if(130!==e.length&&132!==e.length)throw new v({signature:e});const t=BigInt(i.slice(e,0,32)),r=BigInt(i.slice(e,32,64)),n=(()=>{const t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return h(t)}catch{throw new P({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function f(e){const t="string"==typeof e?l(e):e instanceof Uint8Array?d(e):"string"==typeof e.r?b(e):e.v?m(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return u(t),t}function p(e){const{r:t,s:r}=n.secp256k1.Signature.fromDER(i.from(e).slice(2));return{r:t,s:r}}function m(e){return{r:e.r,s:e.s,yParity:h(e.v)}}function b(e){const t=(()=>{const t=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=h(t)),"number"!=typeof r)throw new P({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function y(e){u(e);const t=e.r,r=e.s;return i.concat(i.fromNumber(t,{size:32}),i.fromNumber(r,{size:32}),"number"==typeof e.yParity?i.fromNumber(g(e.yParity),{size:1}):"0x")}function h(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new I({value:e})}function g(e){if(0===e)return 27;if(1===e)return 28;throw new P({value:e})}class v extends a.BaseError{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${i.size(i.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=v;class E extends a.BaseError{constructor({signature:e}){super(`Signature \`${s.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}t.MissingPropertiesError=E;class w extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}t.InvalidRError=w;class x extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}t.InvalidSError=x;class P extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}t.InvalidYParityError=P;class I extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}t.InvalidVError=I},666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=function(e){return e},t.getVersion=function(){return n.version},t.prettyPrint=function(e){if(!e)return"";const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")};const n=r(3119)},670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.charCodeMap=void 0,t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.charCodeToBase16=function(e){return e>=t.charCodeMap.zero&&e<=t.charCodeMap.nine?e-t.charCodeMap.zero:e>=t.charCodeMap.A&&e<=t.charCodeMap.F?e-(t.charCodeMap.A-10):e>=t.charCodeMap.a&&e<=t.charCodeMap.f?e-(t.charCodeMap.a-10):void 0},t.pad=function(e,t={}){const{dir:r,size:o=32}=t;if(0===o)return e;if(e.length>o)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:o,type:"Bytes"});const a=new Uint8Array(o);for(let t=0;t<o;t++){const n="right"===r;a[n?t:o-t-1]=e[n?t:e.length-t-1]}return a},t.trim=function(e,t={}){const{dir:r="left"}=t;let n=e,o=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)o++;return n="left"===r?n.slice(o):n.slice(0,n.length-o),n};const n=r(3516);t.charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102}},775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAbiItem=function(e){const{abi:t,args:r=[],name:a}=e,d=(0,o.isHex)(a,{strict:!1}),l=t.filter(e=>d?"function"===e.type?(0,s.toFunctionSelector)(e)===a:"event"===e.type&&(0,i.toEventSelector)(e)===a:"name"in e&&e.name===a);if(0===l.length)return;if(1===l.length)return l[0];let f;for(const e of l)if("inputs"in e)if(r&&0!==r.length){if(e.inputs&&0!==e.inputs.length&&e.inputs.length===r.length&&r.every((t,r)=>{const n="inputs"in e&&e.inputs[r];return!!n&&c(t,n)})){if(f&&"inputs"in f&&f.inputs){const t=u(e.inputs,f.inputs,r);if(t)throw new n.AbiItemAmbiguityError({abiItem:e,type:t[0]},{abiItem:f,type:t[1]})}f=e}}else if(!e.inputs||0===e.inputs.length)return e;return f||l[0]},t.isArgOfType=c,t.getAmbiguousTypes=u;const n=r(6953),o=r(6015),a=r(9742),i=r(7144),s=r(1456);function c(e,t){const r=typeof e,n=t.type;switch(n){case"address":return(0,a.isAddress)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every((t,n)=>"object"===r&&c(Object.values(e)[n],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(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&Array.isArray(e)&&e.every(e=>c(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))}}function u(e,t,r){for(const n in e){const o=e[n],i=t[n];if("tuple"===o.type&&"tuple"===i.type&&"components"in o&&"components"in i)return u(o.components,i.components,r[n]);const s=[o.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,a.isAddress)(r[n],{strict:!1}))())return s}}},796:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e,{format:t}){if(!t)return{};const r={};return function t(n){const o=Object.keys(n);for(const a of o)a in e&&(r[a]=e[a]),n[a]&&"object"==typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(t(e||{})),r}},821:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(1656);class o extends Error{constructor(e,t={}){const r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=o},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=function(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2);let i=0;const s=t.split(".");for(let e=0;e<s.length;e++){let t=(0,n.stringToBytes)(s[e]);t.byteLength>255&&(t=(0,n.stringToBytes)((0,o.encodeLabelhash)((0,a.labelhash)(s[e])))),r[i]=t.length,r.set(t,i+1),i+=t.length+1}return r.byteLength!==i+1?r.slice(0,i+1):r};const n=r(7655),o=r(8050),a=r(3484)},922:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=function({key:e,methods:t,name:r,request:a,retryCount:i=3,retryDelay:s=150,timeout:c,type:u},d){const l=(0,o.uid)();return{config:{key:e,methods:t,name:r,request:a,retryCount:i,retryDelay:s,timeout:c,type:u},request:(0,n.buildRequest)(a,{methods:t,retryCount:i,retryDelay:s,uid:l}),value:d}};const n=r(5e3),o=r(1667)},924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},937:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=t.ethAddress=void 0,t.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",t.zeroAddress="0x0000000000000000000000000000000000000000"},975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionedHashVersionKzg=void 0,t.versionedHashVersionKzg=1},985:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?l(e,t):"boolean"==typeof e?s(e,t):c(e,t)},t.boolToHex=s,t.bytesToHex=c,t.numberToHex=u,t.stringToHex=l;const n=r(5366),o=r(8987),a=r(294),i=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=i[e[t]];const n=`0x${r}`;return"number"==typeof t.size?((0,a.assertSize)(n,{size:t.size}),(0,o.pad)(n,{dir:"right",size:t.size})):n}function u(e,t={}){const{signed:r,size:a}=t,i=BigInt(e);let s;a?s=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));const c="bigint"==typeof s&&r?-s-1n:0;if(s&&i>s||i<c){const t="bigint"==typeof e?"n":"";throw new n.IntegerOutOfRangeError({max:s?`${s}${t}`:void 0,min:`${c}${t}`,signed:r,size:a,value:`${e}${t}`})}const u=`0x${(r&&i<0?(1n<<BigInt(8*a))+BigInt(i):i).toString(16)}`;return a?(0,o.pad)(u,{size:a}):u}const d=new TextEncoder;function l(e,t={}){return c(d.encode(e),t)}},1059:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0,t.create=function(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(o);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};const n=r(7560),o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new a({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 a({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 r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class a extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}t.NegativeOffsetError=a;class i extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=i;class s extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=s},1093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=async function(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.hexToNumber)(t)};const n=r(294)},1184:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAuthorizationAddress=async function(e){const{authorization:t,signature:r}=e;return(0,n.recoverAddress)({hash:(0,o.hashAuthorization)(t),signature:r??t})};const n=r(2374),o=r(7474)},1208:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=function(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((o,a)=>{(async()=>{let i;try{const s=new AbortController;r>0&&(i=setTimeout(()=>{n?s.abort():a(t)},r)),o(await e({signal:s?.signal||null}))}catch(e){"AbortError"===e?.name&&a(t),a(e)}finally{clearTimeout(i)}})()})}},1246:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=async function(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}},1270:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=function(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r<e.length;r++){const{address:i,storageKeys:s}=e[r];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new o.InvalidStorageKeySizeError({storageKey:s[e]});if(!(0,a.isAddress)(i,{strict:!1}))throw new n.InvalidAddressError({address:i});t.push([i,s])}return t};const n=r(6311),o=r(3727),a=r(9742)},1348:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=async function(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]},{retryCount:0})};const n=r(985)},1370:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getWebSocketRpcClient=async function(e,t={}){const{keepAlive:a,reconnect:i}=t;return(0,o.getSocketRpcClient)({async getSocket({onClose:t,onError:o,onOpen:a,onResponse:i}){const s=await Promise.resolve().then(()=>r(8626)).then(e=>e.WebSocket),c=new s(e);function u(){c.removeEventListener("close",u),c.removeEventListener("message",d),c.removeEventListener("error",o),c.removeEventListener("open",a),t()}function d({data:e}){if("string"!=typeof e||0!==e.trim().length)try{const t=JSON.parse(e);i(t)}catch(e){o(e)}}c.addEventListener("close",u),c.addEventListener("message",d),c.addEventListener("error",o),c.addEventListener("open",a),c.readyState===s.CONNECTING&&await new Promise((e,t)=>{c&&(c.onopen=e,c.onerror=t)});const{close:l}=c;return Object.assign(c,{close(){l.bind(c)(),u()},ping(){try{if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new n.WebSocketRequestError({url:c.url,cause:new n.SocketClosedError({url:c.url})});const e={jsonrpc:"2.0",id:null,method:"net_version",params:[]};c.send(JSON.stringify(e))}catch(e){o(e)}},request({body:e}){if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new n.WebSocketRequestError({body:e,url:c.url,cause:new n.SocketClosedError({url:c.url})});return c.send(JSON.stringify(e))}})},keepAlive:a,reconnect:i,url:e})};const n=r(2202),o=r(6228)},1372:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=async function(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}},1403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof o.UnknownNodeError?e:t})();return new n.CallExecutionError(i,{docsPath:t,...r})};const n=r(7677),o=r(2731),a=r(6339)},1439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signAuthorization=async function(e,t){const{account:r=e.account}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const i=(0,n.parseAccount)(r);if(!i.signAuthorization)throw new o.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:i.type});const s=await(0,a.prepareAuthorization)(e,t);return i.signAuthorization(s)};const n=r(9006),o=r(2540),a=r(5805)},1449:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mine=async function(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})};const n=r(985)},1456:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSelector=void 0;const n=r(7688),o=r(3239);t.toFunctionSelector=e=>(0,n.slice)((0,o.toSignatureHash)(e),0,4)},1484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=o,t.abytes=a,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=i,t.hexToNumber=s,t.bytesToHex=d,t.hexToBytes=p,t.bytesToNumberBE=function(e){return s(d(e))},t.bytesToNumberLE=function(e){return a(e),s(d(Uint8Array.from(e).reverse()))},t.numberToBytesBE=m,t.numberToBytesLE=function(e,t){return m(e,t).reverse()},t.numberToVarBytesBE=function(e){return p(i(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!o(t))throw new Error(e+" must be hex string or Uint8Array");n=Uint8Array.from(t)}const a=n.length;if("number"==typeof r&&a!==r)throw new Error(e+" of length "+r+" expected, got "+a);return n},t.concatBytes=b,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=h,t.aInRange=function(e,t,r,n){if(!h(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,o){return e|(o?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){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 r)throw new Error("hmacFn must be a function");let n=g(e),o=g(e),a=0;const i=()=>{n.fill(1),o.fill(0),a=0},s=(...e)=>r(o,n,...e),c=(e=g(0))=>{o=s(v([0]),e),n=s(),0!==e.length&&(o=s(v([1]),e),n=s())},u=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=s();const t=n.slice();r.push(t),e+=n.length}return b(...r)};return(e,t)=>{let r;for(i(),c(e);!(r=t(u()));)c();return i(),r}},t.validateObject=function(e,t,r={}){const n=(t,r,n)=>{const o=E[r];if("function"!=typeof o)throw new Error("invalid validator function");const a=e[t];if(!(n&&void 0===a||o(a,e)))throw new Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(const[e,r]of Object.entries(t))n(e,r,!1);for(const[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(void 0!==o)return o;const a=e(r,...n);return t.set(r,a),a}};const r=BigInt(0),n=BigInt(1);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!o(e))throw new Error("Uint8Array expected")}function i(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){if(a(e),c)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t}const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=l._0&&e<=l._9?e-l._0:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function p(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(c)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=f(e.charCodeAt(o)),a=f(e.charCodeAt(o+1));if(void 0===r||void 0===a){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}n[t]=16*r+a}return n}function m(e,t){return p(e.toString(16).padStart(2*t,"0"))}function b(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];a(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r}const y=e=>"bigint"==typeof e&&r<=e;function h(e,t,r){return y(e)&&y(t)&&y(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;const g=e=>new Uint8Array(e),v=e=>Uint8Array.from(e),E={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||o(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)};t.notImplemented=()=>{throw new Error("not implemented")}},1496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=async function(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})};const n=r(985)},1519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nonceManager=void 0,t.createNonceManager=a,t.jsonRpc=i;const n=r(1998),o=r(7848);function a(e){const{source:t}=e,r=new Map,n=new o.LruMap(8192),a=new Map,i=({address:e,chainId:t})=>`${e}.${t}`;return{async consume({address:e,chainId:r,client:o}){const a=i({address:e,chainId:r}),s=this.get({address:e,chainId:r,client:o});this.increment({address:e,chainId:r});const c=await s;return await t.set({address:e,chainId:r},c),n.set(a,c),c},async increment({address:e,chainId:t}){const n=i({address:e,chainId:t}),o=r.get(n)??0;r.set(n,o+1)},async get({address:e,chainId:o,client:s}){const c=i({address:e,chainId:o});let u=a.get(c);return u||(u=(async()=>{try{const r=await t.get({address:e,chainId:o,client:s}),a=n.get(c)??0;return a>0&&r<=a?a+1:(n.delete(c),r)}finally{this.reset({address:e,chainId:o})}})(),a.set(c,u)),(r.get(c)??0)+await u},reset({address:e,chainId:t}){const n=i({address:e,chainId:t});r.delete(n),a.delete(n)}}}function i(){return{async get(e){const{address:t,client:r}=e;return(0,n.getTransactionCount)(r,{address:t,blockTag:"pending"})},set(){}}}t.nonceManager=a({source:i()})},1525:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((a,i)=>{const s=async({count:c=0}={})=>{try{const t=await e();a(t)}catch(e){if(c<r&&await o({count:c,error:e}))return(async({error:e})=>{const r="function"==typeof t?t({count:c,error:e}):t;r&&await(0,n.wait)(r),s({count:c+1})})({error:e});i(e)}};s()})};const n=r(8664)},1541:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=async function(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}},1547:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,o)=>{const a=t(e,o);if(r)for(const e of r)delete a[e];return{...a,...n(e,o)}},type:e})}},1644:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksum=void 0,t.clear=function(){for(const e of Object.values(n))e.clear()};const n={checksum:new(r(4552).LruMap)(8192)};t.checksum=n.checksum},1656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.2.3"},1667:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uid=function(e=11){if(!n||o+e>2*r){n="",o=0;for(let e=0;e<r;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(o,o+++e)};const r=256;let n,o=r},1684:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=async function(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}},1692:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifySiweMessage=async function(e,t){const{address:r,domain:s,message:c,nonce:u,scheme:d,signature:l,time:f=new Date,...p}=t,m=(0,o.parseSiweMessage)(c);if(!m.address)return!1;if(!(0,a.validateSiweMessage)({address:r,domain:s,message:m,nonce:u,scheme:d,time:f}))return!1;const b=(0,n.hashMessage)(c);return(0,i.verifyHash)(e,{address:m.address,hash:b,signature:l,...p})};const n=r(5336),o=r(9694),a=r(6491),i=r(8868)},1705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=m,t.weierstrass=function(e){const r=function(e){const t=(0,n.validateBasic)(e);return(0,a.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:l,nByteLength:f,nBitLength:p}=r,b=s.BYTES+1,y=2*s.BYTES+1;function h(e){return(0,o.mod)(e,l)}function g(e){return(0,o.invert)(e,l)}const{ProjectivePoint:v,normPrivateKeyToScalar:E,weierstrassEquation:w,isWithinCurveOrder:x}=m({...r,toBytes(e,t,r){const n=t.toAffine(),o=s.toBytes(n.x),i=a.concatBytes;return(0,a.abool)("isCompressed",r),r?i(Uint8Array.from([t.hasEvenY()?2:3]),o):i(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){const t=e.length,r=e[0],n=e.subarray(1);if(t!==b||2!==r&&3!==r){if(t===y&&4===r)return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))};throw new Error("invalid Point, expected length of "+b+", or uncompressed "+y+", got "+t)}{const e=(0,a.bytesToNumberBE)(n);if(!(0,a.inRange)(e,d,s.ORDER))throw new Error("Point is not on curve");const t=w(e);let o;try{o=s.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~r)!=((o&d)===d)&&(o=s.neg(o)),{x:e,y:o}}}});function P(e){return e>l>>d}const I=(e,t,r)=>(0,a.bytesToNumberBE)(e.slice(t,r));class T{constructor(e,t,r){(0,a.aInRange)("r",e,d,l),(0,a.aInRange)("s",t,d,l),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){const t=f;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new T(I(e,0,t),I(e,t,2*t))}static fromDER(e){const{r,s:n}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new T(r,n)}assertValidity(){}addRecoveryBit(e){return new T(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:n,recovery:o}=this,i=B((0,a.ensureBytes)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?t+r.n:t;if(u>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=1&o?"03":"02",l=v.fromHex(d+c(u,s.BYTES)),f=g(u),p=h(-i*f),m=h(n*f),b=v.BASE.multiplyAndAddUnsafe(l,p,m);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return(0,a.hexToBytes)(this.toDERHex())}toDERHex(){return t.DER.hexFromSig(this)}toCompactRawBytes(){return(0,a.hexToBytes)(this.toCompactHex())}toCompactHex(){const e=f;return c(this.r,e)+c(this.s,e)}}const A={isValidPrivateKey(e){try{return E(e),!0}catch(e){return!1}},normPrivateKeyToScalar:E,randomPrivateKey:()=>{const e=(0,o.getMinHashLength)(r.n);return(0,o.mapHashToField)(r.randomBytes(e),r.n)},precompute:(e=8,t=v.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function O(e){if("bigint"==typeof e)return!1;if(e instanceof v)return!0;const t=(0,a.ensureBytes)("key",e).length,n=s.BYTES,o=n+1,i=2*n+1;return r.allowedPrivateKeyLengths||f===o?void 0:t===o||t===i}const S=r.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,a.bytesToNumberBE)(e),r=8*e.length-p;return r>0?t>>BigInt(r):t},B=r.bits2int_modN||function(e){return h(S(e))},j=(0,a.bitMask)(p);function R(e){return(0,a.aInRange)("num < 2^"+p,e,u,j),(0,a.numberToBytesBE)(e,f)}const _={lowS:r.lowS,prehash:!1},C={lowS:r.lowS,prehash:!1};return v.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return v.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===O(e))throw new Error("first arg must be private key");if(!1===O(t))throw new Error("second arg must be public key");return v.fromHex(t).multiply(E(e)).toRawBytes(r)},sign:function(e,t,n=_){const{seed:o,k2sig:c}=function(e,t,n=_){if(["recovered","canonical"].some(e=>e in n))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:l,prehash:f,extraEntropy:p}=n;null==l&&(l=!0),e=(0,a.ensureBytes)("msgHash",e),i(n),f&&(e=(0,a.ensureBytes)("prehashed msgHash",o(e)));const m=B(e),b=E(t),y=[R(b),R(m)];if(null!=p&&!1!==p){const e=!0===p?c(s.BYTES):p;y.push((0,a.ensureBytes)("extraEntropy",e))}const w=(0,a.concatBytes)(...y),I=m;return{seed:w,k2sig:function(e){const t=S(e);if(!x(t))return;const r=g(t),n=v.BASE.multiply(t).toAffine(),o=h(n.x);if(o===u)return;const a=h(r*h(I+o*b));if(a===u)return;let i=(n.x===o?0:2)|Number(n.y&d),s=a;return l&&P(a)&&(s=function(e){return P(e)?h(-e):e}(a),i^=1),new T(o,s,i)}}}(e,t,n),l=r;return(0,a.createHmacDrbg)(l.hash.outputLen,l.nByteLength,l.hmac)(o,c)},verify:function(e,n,o,s=C){const c=e;n=(0,a.ensureBytes)("msgHash",n),o=(0,a.ensureBytes)("publicKey",o);const{lowS:u,prehash:d,format:l}=s;if(i(s),"strict"in s)throw new Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw new Error("format must be compact or der");const f="string"==typeof c||(0,a.isBytes)(c),p=!f&&!l&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!f&&!p)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let m,b;try{if(p&&(m=new T(c.r,c.s)),f){try{"compact"!==l&&(m=T.fromDER(c))}catch(e){if(!(e instanceof t.DER.Err))throw e}m||"der"===l||(m=T.fromCompact(c))}b=v.fromHex(o)}catch(e){return!1}if(!m)return!1;if(u&&m.hasHighS())return!1;d&&(n=r.hash(n));const{r:y,s:E}=m,w=B(n),x=g(E),P=h(w*x),I=h(y*x),A=v.BASE.multiplyAndAddUnsafe(b,P,I)?.toAffine();return!!A&&h(A.x)===y},ProjectivePoint:v,Signature:T,utils:A}},t.SWUFpSqrtRatio=b,t.mapToCurveSimpleSWU=function(e,t){if((0,o.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,c,u,d,l,f;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),c=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),c=e.mul(c,t.A),i=e.sqr(s),d=e.sqr(c),u=e.mul(d,t.A),i=e.add(i,u),i=e.mul(i,s),d=e.mul(d,c),u=e.mul(d,t.B),i=e.add(i,u),l=e.mul(a,s);const{isValid:p,value:m}=r(i,d);f=e.mul(a,n),f=e.mul(f,m),l=e.cmov(l,s,p),f=e.cmov(f,m,p);const b=e.isOdd(n)===e.isOdd(f);f=e.cmov(e.neg(f),f,b);const y=(0,o.FpInvertBatch)(e,[c],!0)[0];return l=e.mul(l,y),{x:l,y:f}}};const n=r(2422),o=r(4967),a=r(1484);function i(e){void 0!==e.lowS&&(0,a.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,a.abool)("prehash",e.prehash)}class s extends Error{constructor(e=""){super(e)}}function c(e,t){return(0,a.bytesToHex)((0,a.numberToBytesBE)(e,t))}t.DERErr=s,t.DER={Err:s,_tlv:{encode:(e,r)=>{const{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");const o=r.length/2,i=(0,a.numberToHexUnpadded)(o);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const s=o>127?(0,a.numberToHexUnpadded)(i.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+i+r},decode(e,r){const{Err:n}=t.DER;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[o++]!==e)throw new n("tlv.decode: wrong tlv");const a=r[o++];let i=0;if(128&a){const e=127&a;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 t=r.subarray(o,o+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of t)i=i<<8|e;if(o+=e,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=a;const s=r.subarray(o,o+i);if(s.length!==i)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(o+i)}}},_int:{encode(e){const{Err:r}=t.DER;if(e<u)throw new r("integer: negative integers are not allowed");let n=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){const{Err:r,_int:n,_tlv:o}=t.DER,i=(0,a.ensureBytes)("signature",e),{v:s,l:c}=o.decode(48,i);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:u,l:d}=o.decode(2,s),{v:l,l:f}=o.decode(2,d);if(f.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(l)}},hexFromSig(e){const{_tlv:r,_int:n}=t.DER,o=r.encode(2,n.encode(e.r))+r.encode(2,n.encode(e.s));return r.encode(48,o)}};const u=BigInt(0),d=BigInt(1),l=BigInt(2),f=BigInt(3),p=BigInt(4);function m(e){const t=function(e){const t=(0,n.validateBasic)(e);(0,a.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:o,a:i}=t;if(r){if(!o.eql(i,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=t,i=(0,o.Field)(t.n,t.nBitLength),s=t.toBytes||((e,t,n)=>{const o=t.toAffine();return(0,a.concatBytes)(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){const{a:n,b:o}=t,a=r.sqr(e),i=r.mul(a,e);return r.add(r.add(i,r.mul(e,n)),o)}function m(e,t){const n=r.sqr(t),o=l(e);return r.eql(n,o)}if(!m(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const b=r.mul(r.pow(t.a,f),p),y=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(b,y)))throw new Error("bad curve params: a or b");function h(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:i,n:s}=t;if(r&&"bigint"!=typeof e){if((0,a.isBytes)(e)&&(e=(0,a.bytesToHex)(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*n,"0")}let c;try{c="bigint"==typeof e?e:(0,a.bytesToNumberBE)((0,a.ensureBytes)("private key",e,n))}catch(t){throw new Error("invalid private key, expected hex or "+n+" bytes, got "+typeof e)}return i&&(c=(0,o.mod)(c,s)),(0,a.aInRange)("private key",c,d,s),c}function g(e){if(!(e instanceof w))throw new Error("ProjectivePoint expected")}const v=(0,a.memoized)((e,t)=>{const{px:n,py:o,pz:a}=e;if(r.eql(a,r.ONE))return{x:n,y:o};const i=e.is0();null==t&&(t=i?r.ONE:r.inv(a));const s=r.mul(n,t),c=r.mul(o,t),u=r.mul(a,t);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),E=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:n,y:o}=e.toAffine();if(!r.isValid(n)||!r.isValid(o))throw new Error("bad point: x or y not FE");if(!m(n,o))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class w{constructor(e,t,n){if(null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof w)throw new Error("projective point not allowed");const o=e=>r.eql(e,r.ZERO);return o(t)&&o(n)?w.ZERO:new w(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=(0,o.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(w.fromAffine)}static fromHex(e){const t=w.fromAffine(c((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return w.BASE.multiply(h(e))}static msm(e,t){return(0,n.pippenger)(w,i,e,t)}_setWindowSize(e){I.setWindowSize(this,e)}assertValidity(){E(this)}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){g(e);const{px:t,py:n,pz:o}=this,{px:a,py:i,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(a,o)),u=r.eql(r.mul(n,s),r.mul(i,o));return c&&u}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,o=r.mul(n,f),{px:a,py:i,pz:s}=this;let c=r.ZERO,u=r.ZERO,d=r.ZERO,l=r.mul(a,a),p=r.mul(i,i),m=r.mul(s,s),b=r.mul(a,i);return b=r.add(b,b),d=r.mul(a,s),d=r.add(d,d),c=r.mul(e,d),u=r.mul(o,m),u=r.add(c,u),c=r.sub(p,u),u=r.add(p,u),u=r.mul(c,u),c=r.mul(b,c),d=r.mul(o,d),m=r.mul(e,m),b=r.sub(l,m),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,m),l=r.mul(l,b),u=r.add(u,l),m=r.mul(i,s),m=r.add(m,m),l=r.mul(m,b),c=r.sub(c,l),d=r.mul(m,p),d=r.add(d,d),d=r.add(d,d),new w(c,u,d)}add(e){g(e);const{px:n,py:o,pz:a}=this,{px:i,py:s,pz:c}=e;let u=r.ZERO,d=r.ZERO,l=r.ZERO;const p=t.a,m=r.mul(t.b,f);let b=r.mul(n,i),y=r.mul(o,s),h=r.mul(a,c),v=r.add(n,o),E=r.add(i,s);v=r.mul(v,E),E=r.add(b,y),v=r.sub(v,E),E=r.add(n,a);let x=r.add(i,c);return E=r.mul(E,x),x=r.add(b,h),E=r.sub(E,x),x=r.add(o,a),u=r.add(s,c),x=r.mul(x,u),u=r.add(y,h),x=r.sub(x,u),l=r.mul(p,E),u=r.mul(m,h),l=r.add(u,l),u=r.sub(y,l),l=r.add(y,l),d=r.mul(u,l),y=r.add(b,b),y=r.add(y,b),h=r.mul(p,h),E=r.mul(m,E),y=r.add(y,h),h=r.sub(b,h),h=r.mul(p,h),E=r.add(E,h),b=r.mul(y,E),d=r.add(d,b),b=r.mul(x,E),u=r.mul(v,u),u=r.sub(u,b),b=r.mul(v,y),l=r.mul(x,l),l=r.add(l,b),new w(u,d,l)}subtract(e){return this.add(e.negate())}is0(){return this.equals(w.ZERO)}wNAF(e){return I.wNAFCached(this,e,w.normalizeZ)}multiplyUnsafe(e){const{endo:n,n:o}=t;(0,a.aInRange)("scalar",e,u,o);const i=w.ZERO;if(e===u)return i;if(this.is0()||e===d)return this;if(!n||I.hasPrecomputes(this))return I.wNAFCachedUnsafe(this,e,w.normalizeZ);let{k1neg:s,k1:c,k2neg:l,k2:f}=n.splitScalar(e),p=i,m=i,b=this;for(;c>u||f>u;)c&d&&(p=p.add(b)),f&d&&(m=m.add(b)),b=b.double(),c>>=d,f>>=d;return s&&(p=p.negate()),l&&(m=m.negate()),m=new w(r.mul(m.px,n.beta),m.py,m.pz),p.add(m)}multiply(e){const{endo:n,n:o}=t;let i,s;if((0,a.aInRange)("scalar",e,d,o),n){const{k1neg:t,k1:o,k2neg:a,k2:c}=n.splitScalar(e);let{p:u,f:d}=this.wNAF(o),{p:l,f}=this.wNAF(c);u=I.constTimeNegate(t,u),l=I.constTimeNegate(a,l),l=new w(r.mul(l.px,n.beta),l.py,l.pz),i=u.add(l),s=d.add(f)}else{const{p:t,f:r}=this.wNAF(e);i=t,s=r}return w.normalizeZ([i,s])[0]}multiplyAndAddUnsafe(e,t,r){const n=w.BASE,o=(e,t)=>t!==u&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),a=o(this,t).add(o(e,r));return a.is0()?void 0:a}toAffine(e){return v(this,e)}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===d?this:r?r(w,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,a.abool)("isCompressed",e),this.assertValidity(),s(w,this,e)}toHex(e=!0){return(0,a.abool)("isCompressed",e),(0,a.bytesToHex)(this.toRawBytes(e))}}w.BASE=new w(t.Gx,t.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const{endo:x,nBitLength:P}=t,I=(0,n.wNAF)(w,x?Math.ceil(P/2):P);return{CURVE:t,ProjectivePoint:w,normPrivateKeyToScalar:h,weierstrassEquation:l,isWithinCurveOrder:function(e){return(0,a.inRange)(e,d,t.n)}}}function b(e,t){const r=e.ORDER;let n=u;for(let e=r-d;e%l===u;e/=l)n+=d;const o=n,a=l<<o-d-d,i=a*l,s=(r-d)/i,c=(s-d)/l,m=i-d,b=a,y=e.pow(t,s),h=e.pow(t,(s+d)/l);let g=(t,r)=>{let n=y,a=e.pow(r,m),i=e.sqr(a);i=e.mul(i,r);let s=e.mul(t,i);s=e.pow(s,c),s=e.mul(s,a),a=e.mul(s,r),i=e.mul(s,t);let u=e.mul(i,a);s=e.pow(u,b);let f=e.eql(s,e.ONE);a=e.mul(i,h),s=e.mul(u,n),i=e.cmov(a,i,f),u=e.cmov(s,u,f);for(let t=o;t>d;t--){let r=t-l;r=l<<r-d;let o=e.pow(u,r);const s=e.eql(o,e.ONE);a=e.mul(i,n),n=e.mul(n,n),o=e.mul(u,n),i=e.cmov(a,i,s),u=e.cmov(o,u,s)}return{isValid:f,value:i}};if(e.ORDER%p===f){const r=(e.ORDER-f)/p,n=e.sqrt(e.neg(t));g=(t,o)=>{let a=e.sqr(o);const i=e.mul(t,o);a=e.mul(a,i);let s=e.pow(a,r);s=e.mul(s,i);const c=e.mul(s,n),u=e.mul(e.sqr(s),o),d=e.eql(u,t);return{isValid:d,value:e.cmov(c,s,d)}}}return g}},1707:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map(e=>({...e,value:BigInt(e.value)}))):void 0};var t};const n=r(4661)},1714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransactionSync=async function(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:i}){const s=await e.request({method:"eth_sendRawTransactionSync",params:i?[t,(0,a.numberToHex)(i)]:[t]},{retryCount:0}),c=(e.chain?.formatters?.transactionReceipt?.format||o.formatTransactionReceipt)(s);if("reverted"===c.status&&r)throw new n.TransactionReceiptRevertedError({receipt:c});return c};const n=r(3727),o=r(4537),a=r(4661)},1716:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=async function(e,{filter:t}){const r=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,o.formatLog)(e));return t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:a,strict:r}):a};const n=r(48),o=r(95)},1761:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=u,t.expand_message_xof=d,t.hash_to_field=l,t.isogenyMap=function(e,t){const r=t.map(e=>Array.from(e).reverse());return(t,o)=>{const[a,i,s,c]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[u,d]=(0,n.FpInvertBatch)(e,[i,c],!0);return t=e.mul(a,u),o=e.mul(o,e.mul(s,d)),{x:t,y:o}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function n(r){return e.fromAffine(t(r))}function o(t){const r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){const a=l(e,2,{...r,DST:r.DST,...t}),i=n(a[0]),s=n(a[1]);return o(i.add(s))},encodeToCurve:(e,t)=>o(n(l(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return o(n(e))}}};const n=r(4967),o=r(1484),a=o.bytesToNumberBE;function i(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e,t){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function u(e,t,r,n){(0,o.abytes)(e),(0,o.abytes)(t),c(r),t.length>255&&(t=n((0,o.concatBytes)((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:u}=n,d=Math.ceil(r/a);if(r>65535||d>255)throw new Error("expand_message_xmd: invalid lenInBytes");const l=(0,o.concatBytes)(t,i(t.length,1)),f=i(0,u),p=i(r,2),m=new Array(d),b=n((0,o.concatBytes)(f,e,p,i(0,1),l));m[0]=n((0,o.concatBytes)(b,i(1,1),l));for(let e=1;e<=d;e++){const t=[s(b,m[e-1]),i(e+1,1),l];m[e]=n((0,o.concatBytes)(...t))}return(0,o.concatBytes)(...m).slice(0,r)}function d(e,t,r,n,a){if((0,o.abytes)(e),(0,o.abytes)(t),c(r),t.length>255){const e=Math.ceil(2*n/8);t=a.create({dkLen:e}).update((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(i(r,2)).update(t).update(i(t.length,1)).digest()}function l(e,t,r){(0,o.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:i,k:s,m:l,hash:f,expand:p,DST:m}=r;(0,o.abytes)(e),c(t);const b="string"==typeof m?(0,o.utf8ToBytes)(m):m,y=i.toString(2).length,h=Math.ceil((y+s)/8),g=t*l*h;let v;if("xmd"===p)v=u(e,b,g,f);else if("xof"===p)v=d(e,b,g,s,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=e}const E=new Array(t);for(let e=0;e<t;e++){const t=new Array(l);for(let r=0;r<l;r++){const o=h*(r+e*l),s=v.subarray(o,o+h);t[r]=(0,n.mod)(a(s),i)}E[e]=t}return E}},1769:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=async function({address:e,authorization:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverAuthorizationAddress)({authorization:t,signature:r}))};const n=r(8728),o=r(4324),a=r(1184)},1792:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.custom=function(e,t={}){const{key:r="custom",methods:o,name:a="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,n.createTransport)({key:r,methods:o,name:a,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})};const n=r(922)},1839:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;const n=r(7202),o=r(9175),a=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),i=new Uint32Array(80);class s extends n.HashMD{constructor(){super(64,20,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4]}get(){const{A:e,B:t,C:r,D:n,E:o}=this;return[e,t,r,n,o]}set(e,t,r,n,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)i[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)i[e]=(0,o.rotl)(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let{A:r,B:a,C:s,D:c,E:u}=this;for(let e=0;e<80;e++){let t,d;e<20?(t=(0,n.Chi)(a,s,c),d=1518500249):e<40?(t=a^s^c,d=1859775393):e<60?(t=(0,n.Maj)(a,s,c),d=2400959708):(t=a^s^c,d=3395469782);const l=(0,o.rotl)(r,5)+t+u+d+i[e]|0;u=c,c=s,s=(0,o.rotl)(a,30),a=r,r=l}r=r+this.A|0,a=a+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,this.set(r,a,s,c,u)}roundClean(){(0,o.clean)(i)}destroy(){this.set(0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,o.createHasher)(()=>new s);const c=Math.pow(2,32),u=Array.from({length:64},(e,t)=>Math.floor(c*Math.abs(Math.sin(t+1)))),d=a.slice(0,4),l=new Uint32Array(16);class f extends n.HashMD{constructor(){super(64,16,8,!0),this.A=0|d[0],this.B=0|d[1],this.C=0|d[2],this.D=0|d[3]}get(){const{A:e,B:t,C:r,D:n}=this;return[e,t,r,n]}set(e,t,r,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!0);let{A:r,B:a,C:i,D:s}=this;for(let e=0;e<64;e++){let t,c,d;e<16?(t=(0,n.Chi)(a,i,s),c=e,d=[7,12,17,22]):e<32?(t=(0,n.Chi)(s,a,i),c=(5*e+1)%16,d=[5,9,14,20]):e<48?(t=a^i^s,c=(3*e+5)%16,d=[4,11,16,23]):(t=i^(a|~s),c=7*e%16,d=[6,10,15,21]),t=t+r+u[e]+l[c],r=s,s=i,i=a,a+=(0,o.rotl)(t,d[e%4])}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,this.set(r,a,i,s)}roundClean(){(0,o.clean)(l)}destroy(){this.set(0,0,0,0),(0,o.clean)(this.buffer)}}t.MD5=f,t.md5=(0,o.createHasher)(()=>new f);const p=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),m=(()=>Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)))(),b=(()=>m.map(e=>(9*e+5)%16))(),y=(()=>{const e=[[m],[b]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>p[e]));return e})(),h=(()=>y[0])(),g=(()=>y[1])(),v=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),E=h.map((e,t)=>e.map(e=>v[t][e])),w=g.map((e,t)=>e.map(e=>v[t][e])),x=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),P=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function I(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}const T=new Uint32Array(16);class A extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:r,h3:n,h4:o}=this;return[e,t,r,n,o]}set(e,t,r,n,o){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)T[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,i=a,s=0|this.h2,c=s,u=0|this.h3,d=u,l=0|this.h4,f=l;for(let e=0;e<5;e++){const t=4-e,p=x[e],m=P[e],b=h[e],y=g[e],v=E[e],A=w[e];for(let t=0;t<16;t++){const n=(0,o.rotl)(r+I(e,a,s,u)+T[b[t]]+p,v[t])+l|0;r=l,l=u,u=0|(0,o.rotl)(s,10),s=a,a=n}for(let e=0;e<16;e++){const r=(0,o.rotl)(n+I(t,i,c,d)+T[y[e]]+m,A[e])+f|0;n=f,f=d,d=0|(0,o.rotl)(c,10),c=i,i=r}}this.set(this.h1+s+d|0,this.h2+u+f|0,this.h3+l+n|0,this.h4+r+i|0,this.h0+a+c|0)}roundClean(){(0,o.clean)(T)}destroy(){this.destroyed=!0,(0,o.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=A,t.ripemd160=(0,o.createHasher)(()=>new A)},1851:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noble=void 0,t.createKeyPair=function(e={}){const{as:t="Hex"}=e,r=d({as:t});return{privateKey:r,publicKey:u({privateKey:r})}},t.getPublicKey=u,t.getSharedSecret=function(e){const{as:t="Hex",privateKey:r,publicKey:o}=e,a=n.secp256k1.ProjectivePoint.fromHex(c.toHex(o).slice(2)).multiply(n.secp256k1.utils.normPrivateKeyToScalar(i.from(r).slice(2))).toRawBytes(!0);return"Hex"===t?i.fromBytes(a):a},t.randomPrivateKey=d,t.recoverAddress=l,t.recoverPublicKey=f,t.sign=function(e){const{extraEntropy:t=s.extraEntropy,hash:r,payload:o,privateKey:c}=e,{r:u,s:d,recovery:l}=n.secp256k1.sign(a.from(o),a.from(c),{extraEntropy:"boolean"==typeof t?t:i.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:u,s:d,yParity:l}},t.verify=function(e){const{address:t,hash:r,payload:i,publicKey:s,signature:u}=e;return t?o.isEqual(t,l({payload:i,signature:u})):n.secp256k1.verify(u,a.from(i),c.toBytes(s),...r?[{prehash:!0,lowS:!0}]:[])};const n=r(8510),o=r(7179),a=r(3516),i=r(9274),s=r(8588),c=r(6259);function u(e){const{privateKey:t}=e,r=n.secp256k1.ProjectivePoint.fromPrivateKey(i.from(t).slice(2));return c.from(r)}function d(e={}){const{as:t="Hex"}=e,r=n.secp256k1.utils.randomPrivateKey();return"Hex"===t?i.fromBytes(r):r}function l(e){return o.fromPublicKey(f(e))}function f(e){const{payload:t,signature:r}=e,{r:o,s:a,yParity:s}=r,u=new n.secp256k1.Signature(BigInt(o),BigInt(a)).addRecoveryBit(s).recoverPublicKey(i.from(t).substring(2));return c.from(u)}t.noble=n.secp256k1},1861:(e,t)=>{function r(e){const r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),o=r(e,t.responseCache);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.responseCache=t.promiseCache=void 0,t.getCache=r,t.withCache=async function(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const o=r(t),a=o.response.get();if(a&&n>0&&Date.now()-a.created.getTime()<n)return a.data;let i=o.promise.get();i||(i=e(),o.promise.set(i));try{const e=await i;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}},t.promiseCache=new Map,t.responseCache=new Map},1877:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContract=function({abi:e,address:t,client:r}){const p=r,[m,b]=p?"public"in p&&"wallet"in p?[p.public,p.wallet]:"public"in p?[p.public,void 0]:"wallet"in p?[void 0,p.wallet]:[p,p]:[void 0,void 0],y=null!=m,h=null!=b,g={};let v=!1,E=!1,w=!1;for(const t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?v=!0:E=!0:"event"===t.type&&(w=!0),v&&E&&w)break;return y&&(v&&(g.read=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(m,s.readContract,"readContract")({abi:e,address:t,functionName:o,args:a,...i})}})),E&&(g.simulate=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(m,c.simulateContract,"simulateContract")({abi:e,address:t,functionName:o,args:a,...i})}})),w&&(g.createEventFilter=new Proxy({},{get:(r,a)=>(...r)=>{const i=e.find(e=>"event"===e.type&&e.name===a),{args:s,options:c}=f(r,i);return(0,n.getAction)(m,o.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:a,args:s,...c})}}),g.getEvents=new Proxy({},{get:(r,o)=>(...r)=>{const a=e.find(e=>"event"===e.type&&e.name===o),{args:s,options:c}=f(r,a);return(0,n.getAction)(m,i.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:o,args:s,...c})}}),g.watchEvent=new Proxy({},{get:(r,o)=>(...r)=>{const a=e.find(e=>"event"===e.type&&e.name===o),{args:i,options:s}=f(r,a);return(0,n.getAction)(m,u.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:o,args:i,...s})}}))),h&&E&&(g.write=new Proxy({},{get:(r,o)=>(...r)=>{const{args:a,options:i}=l(r);return(0,n.getAction)(b,d.writeContract,"writeContract")({abi:e,address:t,functionName:o,args:a,...i})}})),(y||h)&&E&&(g.estimateGas=new Proxy({},{get:(r,o)=>(...r)=>{const{args:i,options:s}=l(r),c=m??b;return(0,n.getAction)(c,a.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:o,args:i,...s,account:s.account??b.account})}})),g.address=t,g.abi=e,g},t.getFunctionParameters=l,t.getEventParameters=f;const n=r(6207),o=r(2349),a=r(5304),i=r(7962),s=r(5275),c=r(6705),u=r(8714),d=r(6160);function l(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;return Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0),{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}},1881:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=async function(e){return await e.request({method:"txpool_content"})}},1902:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=function(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[o,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${o||"0"}${a?`.${a}`:""}`}},1923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;const n=r(821);class o extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=a;class i extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=i},1926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignature=function({r:e,s:t,to:r="hex",v:i,yParity:s}){const c=(()=>{if(0===s||1===s)return s;if(i&&(27n===i||28n===i||i>=35n))return i%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),u=`0x${new n.secp256k1.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(t)).toCompactHex()}${0===c?"1b":"1c"}`;return"hex"===r?u:(0,a.hexToBytes)(u)};const n=r(8510),o=r(294),a=r(7655)},1967:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumWallet=void 0;class r{constructor(){this.account=null,this.chainId=null}static isMetaMaskInstalled(){return"undefined"!=typeof window&&void 0!==window.ethereum&&window.ethereum.isMetaMask}async connect(){if("undefined"==typeof window)throw new Error("EthereumWallet: Browser environment required");if(!r.isMetaMaskInstalled())throw new Error("MetaMask is not installed. Please install MetaMask extension from https://metamask.io/");const e=window.ethereum;try{const t=await e.request({method:"eth_requestAccounts"});if(!t||0===t.length)throw new Error("No accounts found. Please unlock MetaMask and try again.");const r=await e.request({method:"eth_chainId"});return this.account={address:t[0],chainId:r},this.chainId=r,e.on("accountsChanged",this.handleAccountsChanged.bind(this)),e.on("chainChanged",this.handleChainChanged.bind(this)),this.account}catch(e){if(4001===e.code)throw new Error("User rejected the connection request");throw new Error(`Failed to connect to MetaMask: ${e.message||e}`)}}getAccount(){return this.account}getChainId(){return this.chainId}isConnected(){return null!==this.account}disconnect(){this.account=null,this.chainId=null}getProvider(){return"undefined"==typeof window?null:window.ethereum}handleAccountsChanged(e){0===e.length?this.disconnect():this.account&&e[0]!==this.account.address&&(this.account.address=e[0])}handleChainChanged(e){this.chainId=e,this.account&&(this.account.chainId=e)}}t.EthereumWallet=r},1980:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCode=async function(e,{address:t,blockNumber:r,blockTag:o="latest"}){const a=void 0!==r?(0,n.numberToHex)(r):void 0,i=await e.request({method:"eth_getCode",params:[t,a||o]},{dedupe:Boolean(a)});return"0x"===i?void 0:i};const n=r(985)},1998:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=async function(e,{address:t,blockTag:r="latest",blockNumber:a}){const i=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof a?(0,o.numberToHex)(a):r]},{dedupe:Boolean(a)});return(0,n.hexToNumber)(i)};const n=r(294),o=r(985)},2026:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=function(e){let t="";const r=e.length;for(let o=0;o<r;o++){const a=e[o];t+=(0,n.formatAbiParameter)(a),o!==r-1&&(t+=", ")}return t};const n=r(7087)},2034:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleFailedError=void 0;const n=r(6246);class o extends n.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}t.BundleFailedError=o},2037:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTypeError=t.InvalidArrayError=t.LengthMismatchError=t.BytesSizeMismatchError=t.ArrayLengthMismatchError=t.ZeroDataError=t.DataSizeTooSmallError=void 0,t.decode=function(e,t,r={}){const{as:n="Array",checksumAddress:o=!1}=r,i="string"==typeof t?a.fromHex(t):t,d=u.create(i);if(0===a.size(i)&&e.length>0)throw new p;if(a.size(i)&&a.size(i)<32)throw new f({data:"string"==typeof t?t:s.fromBytes(t),parameters:e,size:a.size(i)});let l=0;const m="Array"===n?[]:{};for(let t=0;t<e.length;++t){const r=e[t];d.setPosition(l);const[a,i]=c.decodeParameter(d,r,{checksumAddress:o,staticPosition:0});l+=i,"Array"===n?m.push(a):m[r.name??t]=a}return m},t.encode=function(e,t,r){const{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});const o=c.prepareParameters({checksumAddress:n,parameters:e,values:t}),a=c.encode(o);return 0===a.length?"0x":a},t.encodePacked=l,t.format=function(e){return n.formatAbiParameters(e)},t.from=function(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?n.parseAbiParameters(e):e};const n=r(6524),o=r(7179),a=r(3516),i=r(7560),s=r(9274),c=r(9495),u=r(1059),d=r(6625);function l(e,t){if(e.length!==t.length)throw new y({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const o=e[n],a=t[n];r.push(l.encode(o,a))}return s.concat(...r)}!function(e){e.encode=function e(t,r,n=!1){if("address"===t){const e=r;return o.assert(e),s.padLeft(e.toLowerCase(),n?32:0)}if("string"===t)return s.fromString(r);if("bytes"===t)return r;if("bool"===t)return s.padLeft(s.fromBoolean(r),n?32:1);const a=t.match(d.integerRegex);if(a){const[e,t,o="256"]=a,i=Number.parseInt(o,10)/8;return s.fromNumber(r,{size:n?32:i,signed:"int"===t})}const i=t.match(d.bytesRegex);if(i){const[e,t]=i;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new b({expectedSize:Number.parseInt(t,10),value:r});return s.padRight(r,n?32:0)}const c=t.match(d.arrayRegex);if(c&&Array.isArray(r)){const[t,n]=c,o=[];for(let t=0;t<r.length;t++)o.push(e(n,r[t],!0));return 0===o.length?"0x":s.concat(...o)}throw new g(t)}}(l||(t.encodePacked=l={}));class f extends i.BaseError{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n.formatAbiParameters(t)})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}t.DataSizeTooSmallError=f;class p extends i.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}t.ZeroDataError=p;class m extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}t.ArrayLengthMismatchError=m;class b extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${s.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}t.BytesSizeMismatchError=b;class y extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}t.LengthMismatchError=y;class h extends i.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}t.InvalidArrayError=h;class g extends i.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}t.InvalidTypeError=g},2057:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=function({chains:e,id:t}){return e.find(e=>e.id===t)}},2071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=async function(e,{blockHash:t,blockNumber:r,blockTag:a="latest"}={}){const i=void 0!==r?(0,o.numberToHex)(r):void 0;let s;return s=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||a]},{dedupe:Boolean(i)}),(0,n.hexToNumber)(s)};const n=r(294),o=r(985)},2093:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupCache=t.listenersCache=void 0,t.observe=function(e,n,o){const a=++r,i=()=>t.listenersCache.get(e)||[],s=()=>{const r=i();if(!r.some(e=>e.id===a))return;const n=t.cleanupCache.get(e);if(1===r.length&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}(()=>{const r=i();t.listenersCache.set(e,r.filter(e=>e.id!==a))})()},c=i();if(t.listenersCache.set(e,[...c,{id:a,fns:n}]),c&&c.length>0)return s;const u={};for(const e in n)u[e]=(...t)=>{const r=i();if(0!==r.length)for(const n of r)n.fns[e]?.(...t)};const d=o(u);return"function"==typeof d&&t.cleanupCache.set(e,d),s},t.listenersCache=new Map,t.cleanupCache=new Map;let r=0},2162:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},2202:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;const n=r(4900),o=r(6246),a=r(9382);class i extends o.BaseError{constructor({body:e,cause:t,details:r,headers:o,status:i,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,a.getUrl)(s)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=i,this.url=s}}t.HttpRequestError=i;class s extends o.BaseError{constructor({body:e,cause:t,details:r,url:o}){super("WebSocket request failed.",{cause:t,details:r,metaMessages:[`URL: ${(0,a.getUrl)(o)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=o}}t.WebSocketRequestError=s;class c extends o.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=r}}t.RpcRequestError=c;class u extends o.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,a.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}t.SocketClosedError=u;class d extends o.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}t.TimeoutError=d},2254:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateCalls=async function(e,t){const{blockNumber:r,blockTag:m,calls:b,stateOverrides:y,traceAssetChanges:h,traceTransfers:g,validation:v}=t,E=t.account?(0,a.parseAccount)(t.account):void 0;if(h&&!E)throw new c.BaseError("`account` is required when `traceAssetChanges` is true");const w=E?n.encode(n.from("constructor(bytes, bytes)"),{bytecode:s.deploylessCallViaBytecodeBytecode,args:[p,o.encodeData(o.from("function getBalance(address)"),[E.address])]}):void 0,x=h?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;const{accessList:r}=await(0,l.createAccessList)(e,{account:E.address,...t,data:t.abi?(0,u.encodeFunctionData)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],P=await(0,f.simulateBlocks)(e,{blockNumber:r,blockTag:m,blocks:[...h?[{calls:[{data:w}],stateOverrides:y},{calls:x.map((e,t)=>({abi:[o.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[E.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[],{calls:[...b,{}].map(e=>({...e,from:E?.address})),stateOverrides:y},...h?[{calls:[{data:w}]},{calls:x.map((e,t)=>({abi:[o.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[E.address],to:e,from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function decimals() returns (uint256)")],functionName:"decimals",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]},{calls:x.map((e,t)=>({to:e,abi:[o.from("function symbol() returns (string)")],functionName:"symbol",from:i.zeroAddress,nonce:t})),stateOverrides:[{address:i.zeroAddress,nonce:0}]}]:[]],traceTransfers:g,validation:v}),I=h?P[2]:P[0],[T,A,,O,S,B,j,R]=h?P:[],{calls:_,...C}=I,M=_.slice(0,-1)??[],k=[...T?.calls??[],...A?.calls??[]].map(e=>"success"===e.status?(0,d.hexToBigInt)(e.data):null),F=[...O?.calls??[],...S?.calls??[]].map(e=>"success"===e.status?(0,d.hexToBigInt)(e.data):null),N=(B?.calls??[]).map(e=>"success"===e.status?e.result:null),U=(R?.calls??[]).map(e=>"success"===e.status?e.result:null),z=(j?.calls??[]).map(e=>"success"===e.status?e.result:null),H=[];for(const[e,t]of F.entries()){const r=k[e];if("bigint"!=typeof t)continue;if("bigint"!=typeof r)continue;const n=N[e-1],o=U[e-1],a=z[e-1],s=(()=>0===e?{address:i.ethAddress,decimals:18,symbol:"ETH"}:{address:x[e-1],decimals:a||n?Number(n??1):void 0,symbol:o??void 0})();H.some(e=>e.token.address===s.address)||H.push({token:s,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:H,block:C,results:M}};const n=r(2565),o=r(8609),a=r(9006),i=r(937),s=r(6590),c=r(6246),u=r(6144),d=r(4661),l=r(8907),f=r(253),p="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033"},2262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.localBatchGatewayUrl=void 0,t.localBatchGatewayRequest=async function e(r){const{data:c,ccipRequest:u}=r,{args:[d]}=(0,a.decodeFunctionData)({abi:n.batchGatewayAbi,data:c}),l=[],f=[];return await Promise.all(d.map(async(r,a)=>{try{f[a]=r.urls.includes(t.localBatchGatewayUrl)?await e({data:r.data,ccipRequest:u}):await u(r),l[a]=!1}catch(e){l[a]=!0,f[a]="HttpRequestError"===(s=e).name&&s.status?(0,i.encodeErrorResult)({abi:n.batchGatewayAbi,errorName:"HttpError",args:[s.status,s.shortMessage]}):(0,i.encodeErrorResult)({abi:[o.solidityError],errorName:"Error",args:["shortMessage"in s?s.shortMessage:s.message]})}var s})),(0,s.encodeFunctionResult)({abi:n.batchGatewayAbi,functionName:"query",result:[l,f]})};const n=r(3302),o=r(924),a=r(3064),i=r(7757),s=r(4829);t.localBatchGatewayUrl="x-batch-gateway:true"},2285:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length};const n=r(6015)},2318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=v,t.fromBig=o,t.split=a;const r=BigInt(2**32-1),n=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function a(e,t=!1){const r=e.length;let n=new Uint32Array(r),a=new Uint32Array(r);for(let i=0;i<r;i++){const{h:r,l:s}=o(e[i],t);[n[i],a[i]]=[r,s]}return[n,a]}const i=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=i;const s=(e,t,r)=>e>>>r;t.shrSH=s;const c=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=c;const u=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=u;const d=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=d;const l=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=l;const f=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=f;const p=(e,t)=>t;t.rotr32H=p;const m=(e,t)=>e;t.rotr32L=m;const b=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=b;const y=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=y;const h=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=h;const g=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}t.rotlBL=g;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=E;const w=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;t.add3H=w;const x=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=x;const P=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;t.add4H=P;const I=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);t.add5L=I;const T=(e,t,r,n,o,a)=>t+r+n+o+a+(e/2**32|0)|0;t.add5H=T;const A={fromBig:o,split:a,toBig:i,shrSH:s,shrSL:c,rotrSH:u,rotrSL:d,rotrBH:l,rotrBL:f,rotr32H:p,rotr32L:m,rotlSH:b,rotlSL:y,rotlBH:h,rotlBL:g,add:v,add3L:E,add3H:w,add4L:x,add4H:P,add5H:T,add5L:I};t.default=A},2325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),a=Number(`0x${e.slice(130)}`),[i,s]=(()=>{if(0===a||1===a)return[void 0,a];if(27===a)return[BigInt(a),0];if(28===a)return[BigInt(a),1];throw new Error("Invalid yParityOrV value")})();return void 0!==i?{r:(0,o.numberToHex)(t,{size:32}),s:(0,o.numberToHex)(r,{size:32}),v:i,yParity:s}:{r:(0,o.numberToHex)(t,{size:32}),s:(0,o.numberToHex)(r,{size:32}),yParity:s}};const n=r(8510),o=r(985)},2326:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobs=function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,s.hexToBytes)(e.data):e.data,u=(0,i.size)(r);if(!u)throw new o.EmptyBlobError;if(u>n.maxBytesPerTransaction)throw new o.BlobSizeTooLargeError({maxSize:n.maxBytesPerTransaction,size:u});const d=[];let l=!0,f=0;for(;l;){const e=(0,a.createCursor)(new Uint8Array(n.bytesPerBlob));let t=0;for(;t<n.fieldElementsPerBlob;){const o=r.slice(f,f+(n.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(o),o.length<31){e.pushByte(128),l=!1;break}t++,f+=31}d.push(e)}return"bytes"===t?d.map(e=>e.bytes):d.map(e=>(0,c.bytesToHex)(e.bytes))};const n=r(9617),o=r(2592),a=r(6323),i=r(2285),s=r(7655),c=r(985)},2344:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.withResolvers=function(){let e=()=>{},t=()=>{};return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}},2349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=async function(e,t){const{address:r,abi:i,args:s,eventName:c,fromBlock:u,strict:d,toBlock:l}=t,f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"}),p=c?(0,n.encodeEventTopics)({abi:i,args:s,eventName:c}):void 0,m=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,o.numberToHex)(l):l,topics:p}]});return{abi:i,args:s,eventName:c,id:m,request:f(m),strict:Boolean(d),type:"event"}};const n=r(378),o=r(985),a=r(3044)},2373:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=function(e){const{key:t="test",name:r="Test Client",mode:a}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend(e=>({mode:a,...(0,o.testActions)({mode:a})(e)}))};const n=r(8693),o=r(5079)},2374:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=async function({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await(0,o.recoverPublicKey)({hash:e,signature:t}))};const n=r(7911),o=r(3874)},2401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=async function(e,{blockHash:t,blockNumber:r,blockTag:i,hash:s,index:c,sender:u,nonce:d}){const l=i||"latest",f=void 0!==r?(0,o.numberToHex)(r):void 0;let p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,o.numberToHex)(c)]},{dedupe:!0}):(f||l)&&"number"==typeof c?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||l,(0,o.numberToHex)(c)]},{dedupe:Boolean(f)}):u&&"number"==typeof d&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[u,(0,o.numberToHex)(d)]},{dedupe:!0})),!p)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:l,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||a.formatTransaction)(p,"getTransaction")};const n=r(3727),o=r(985),a=r(9473)},2403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof n.UnknownNodeError?e:t})();return new o.TransactionExecutionError(i,{docsPath:t,...r})};const n=r(2731),o=r(3727),a=r(6339)},2407:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=async function(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})};const n=r(985)},2422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:s,hasPrecomputes:e=>1!==b(e),unsafeLadder(t,r,n=e.ZERO){let o=t;for(;r>a;)r&i&&(n=n.add(o)),o=o.double(),r>>=i;return n},precomputeWindow(e,r){const{windows:n,windowSize:o}=u(r,t),a=[];let i=e,s=i;for(let e=0;e<n;e++){s=i,a.push(s);for(let e=1;e<o;e++)s=s.add(i),a.push(s);i=s.double()}return a},wNAF(r,n,o){let a=e.ZERO,i=e.BASE;const c=u(r,t);for(let e=0;e<c.windows;e++){const{nextN:t,offset:r,isZero:u,isNeg:l,isNegF:f,offsetF:p}=d(o,e,c);o=t,u?i=i.add(s(f,n[p])):a=a.add(s(l,n[r]))}return{p:a,f:i}},wNAFUnsafe(r,n,o,i=e.ZERO){const s=u(r,t);for(let e=0;e<s.windows&&o!==a;e++){const{nextN:t,offset:r,isZero:a,isNeg:c}=d(o,e,s);if(o=t,!a){const e=n[r];i=i.add(c?e.negate():e)}}return i},getPrecomputes(e,t,r){let n=p.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&p.set(t,r(n))),n},wNAFCached(e,t,r){const n=b(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){const o=b(e);return 1===o?this.unsafeLadder(e,t,n):this.wNAFUnsafe(o,this.getPrecomputes(o,e,r),t,n)},setWindowSize(e,r){c(r,t),m.set(e,r),p.delete(e)}}},t.pippenger=function(e,t,r,n){l(r,e),f(n,t);const a=r.length,i=n.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,c=(0,o.bitLen)(BigInt(a));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const d=(0,o.bitMask)(u),p=new Array(Number(d)+1).fill(s);let m=s;for(let e=Math.floor((t.BITS-1)/u)*u;e>=0;e-=u){p.fill(s);for(let t=0;t<i;t++){const o=n[t],a=Number(o>>BigInt(e)&d);p[a]=p[a].add(r[t])}let t=s;for(let e=p.length-1,r=s;e>0;e--)r=r.add(p[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<u;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,n){c(n,t.BITS),l(r,e);const a=e.ZERO,i=2**n-1,s=Math.ceil(t.BITS/n),u=(0,o.bitMask)(n),d=r.map(e=>{const t=[];for(let r=0,n=e;r<i;r++)t.push(n),n=n.add(e);return t});return e=>{if(f(e,t),e.length>r.length)throw new Error("array of scalars must be smaller than array of points");let o=a;for(let t=0;t<s;t++){if(o!==a)for(let e=0;e<n;e++)o=o.double();const r=BigInt(s*n-(t+1)*n);for(let t=0;t<e.length;t++){const n=e[t],a=Number(n>>r&u);a&&(o=o.add(d[t][a-1]))}}return o}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,o.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const n=r(4967),o=r(1484),a=BigInt(0),i=BigInt(1);function s(e,t){const r=t.negate();return e?r:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function u(e,t){c(e,t);const r=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,o.bitMask)(e),maxNumber:r,shiftBy:BigInt(e)}}function d(e,t,r){const{windowSize:n,mask:o,maxNumber:a,shiftBy:s}=r;let c=Number(e&o),u=e>>s;c>n&&(c-=a,u+=i);const d=t*n;return{nextN:u,offset:d+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:d}}function l(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw new Error("invalid point at index "+r)})}function f(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+r)})}const p=new WeakMap,m=new WeakMap;function b(e){return m.get(e)||1}},2461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionHash=void 0;var n=r(3239);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},2534:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCompactSignature=function(e){const{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,o.numberToHex)(t,{size:32}),yParityAndS:(0,o.numberToHex)(r,{size:32})}};const n=r(8510),o=r(985)},2540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccountTypeNotSupportedError=t.AccountNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{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"})}}t.AccountNotFoundError=o;class a extends n.BaseError{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}t.AccountTypeNotSupportedError=a},2543:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.http=function(e,t={}){const{batch:r,fetchFn:c,fetchOptions:u,key:d="http",methods:l,name:f="HTTP JSON-RPC",onFetchRequest:p,onFetchResponse:m,retryDelay:b,raw:y}=t;return({chain:h,retryCount:g,timeout:v})=>{const{batchSize:E=1e3,wait:w=0}="object"==typeof r?r:{},x=t.retryCount??g,P=v??t.timeout??1e4,I=e||h?.rpcUrls.default.http[0];if(!I)throw new o.UrlRequiredError;const T=(0,i.getHttpRpcClient)(I,{fetchFn:c,fetchOptions:u,onRequest:p,onResponse:m,timeout:P});return(0,s.createTransport)({key:d,methods:l,name:f,async request({method:e,params:t}){const o={method:e,params:t},{schedule:i}=(0,a.createBatchScheduler)({id:I,wait:w,shouldSplitBatch:e=>e.length>E,fn:e=>T.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:s,result:c}]=await(async e=>r?i(e):[await T.request({body:e})])(o);if(y)return{error:s,result:c};if(s)throw new n.RpcRequestError({body:o,error:s,url:I});return c},retryCount:x,retryDelay:b,timeout:P,type:"http"},{fetchOptions:u,url:I})}};const n=r(2202),o=r(5446),a=r(5290),i=r(4017),s=r(922)},2550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=function(e){return{call:t=>(0,c.call)(e,t),createAccessList:t=>(0,u.createAccessList)(e,t),createBlockFilter:()=>(0,d.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,f.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,p.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,m.estimateContractGas)(e,t),estimateGas:t=>(0,y.estimateGas)(e,t),getBalance:t=>(0,v.getBalance)(e,t),getBlobBaseFee:()=>(0,E.getBlobBaseFee)(e),getBlock:t=>(0,w.getBlock)(e,t),getBlockNumber:t=>(0,x.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,P.getBlockTransactionCount)(e,t),getBytecode:t=>(0,T.getCode)(e,t),getChainId:()=>(0,I.getChainId)(e),getCode:t=>(0,T.getCode)(e,t),getContractEvents:t=>(0,A.getContractEvents)(e,t),getEip712Domain:t=>(0,O.getEip712Domain)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,o.getEnsAvatar)(e,t),getEnsName:t=>(0,a.getEnsName)(e,t),getEnsResolver:t=>(0,i.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,S.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,b.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,B.getFilterChanges)(e,t),getFilterLogs:t=>(0,j.getFilterLogs)(e,t),getGasPrice:()=>(0,R.getGasPrice)(e),getLogs:t=>(0,_.getLogs)(e,t),getProof:t=>(0,C.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,h.estimateMaxPriorityFeePerGas)(e,t),fillTransaction:t=>(0,g.fillTransaction)(e,t),getStorageAt:t=>(0,M.getStorageAt)(e,t),getTransaction:t=>(0,k.getTransaction)(e,t),getTransactionConfirmations:t=>(0,F.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,N.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,U.getTransactionReceipt)(e,t),multicall:t=>(0,z.multicall)(e,t),prepareTransactionRequest:t=>(0,te.prepareTransactionRequest)(e,t),readContract:t=>(0,H.readContract)(e,t),sendRawTransaction:t=>(0,re.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,ne.sendRawTransactionSync)(e,t),simulate:t=>(0,L.simulateBlocks)(e,t),simulateBlocks:t=>(0,L.simulateBlocks)(e,t),simulateCalls:t=>(0,D.simulateCalls)(e,t),simulateContract:t=>(0,$.simulateContract)(e,t),verifyHash:t=>(0,G.verifyHash)(e,t),verifyMessage:t=>(0,V.verifyMessage)(e,t),verifySiweMessage:t=>(0,ee.verifySiweMessage)(e,t),verifyTypedData:t=>(0,W.verifyTypedData)(e,t),uninstallFilter:t=>(0,q.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,K.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,J.watchBlocks)(e,t),watchBlockNumber:t=>(0,Z.watchBlockNumber)(e,t),watchContractEvent:t=>(0,Y.watchContractEvent)(e,t),watchEvent:t=>(0,X.watchEvent)(e,t),watchPendingTransactions:t=>(0,Q.watchPendingTransactions)(e,t)}};const n=r(4096),o=r(2899),a=r(4401),i=r(7112),s=r(3433),c=r(7141),u=r(8907),d=r(6194),l=r(2349),f=r(3383),p=r(9358),m=r(5304),b=r(8470),y=r(4678),h=r(4313),g=r(4158),v=r(7609),E=r(7403),w=r(5364),x=r(5729),P=r(2071),I=r(1093),T=r(1980),A=r(7962),O=r(405),S=r(6589),B=r(3590),j=r(1716),R=r(5651),_=r(9914),C=r(8171),M=r(7469),k=r(2401),F=r(6659),N=r(1998),U=r(6873),z=r(5996),H=r(5275),L=r(253),D=r(2254),$=r(6705),q=r(1541),G=r(8868),V=r(6377),W=r(9242),K=r(2917),Z=r(9828),J=r(5176),Y=r(8714),X=r(6047),Q=r(7150),ee=r(1692),te=r(8807),re=r(9085),ne=r(1714)},2565:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[s(t),r]}return e})(),{bytecode:n}=r;if(0===t.inputs?.length)return;const o=r.data.replace(n,"0x");return a.decode(t.inputs,o)},t.encode=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return[s(t),r]}return e})(),{bytecode:n,args:o}=r;return i.concat(n,t.inputs?.length&&o?.length?a.encode(t.inputs,o):"0x")},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e){return o.from(e)},t.fromAbi=s;const n=r(6524),o=r(9626),a=r(2037),i=r(9274);function s(e){const t=e.find(e=>"constructor"===e.type);if(!t)throw new o.NotFoundError({name:"constructor"});return t}},2592:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersionedHashVersionError=t.InvalidVersionedHashSizeError=t.EmptyBlobError=t.BlobSizeTooLargeError=void 0;const n=r(975),o=r(6246);class a extends o.BaseError{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}t.BlobSizeTooLargeError=a;class i extends o.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}t.EmptyBlobError=i;class s extends o.BaseError{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}t.InvalidVersionedHashSizeError=s;class c extends o.BaseError{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.versionedHashVersionKzg}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}t.InvalidVersionedHashVersionError=c},2599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc6492Signature=function(e){const{address:t,data:r,signature:s,to:c="hex"}=e,u=(0,a.concatHex)([(0,o.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,s]),n.erc6492MagicBytes]);return"hex"===c?u:(0,i.hexToBytes)(u)};const n=r(9494),o=r(2732),a=r(6776),i=r(7655)},2603:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt8=t.universalSignatureValidatorByteCode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=t.zeroHash=t.zeroAddress=t.ethAddress=t.multicall3Abi=t.universalSignatureValidatorAbi=t.erc6492SignatureValidatorAbi=t.erc4626Abi=t.erc1155Abi=t.erc721Abi=t.erc20Abi_bytes32=t.erc20Abi=t.webSocket=t.http=t.shouldThrow=t.fallback=t.custom=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createWalletClient=t.createTestClient=t.createPublicClient=t.rpcSchema=t.createClient=t.WaitForCallsStatusTimeoutError=t.getContract=t.UnknownTypeError=t.UnknownSignatureError=t.SolidityProtectedKeywordError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.InvalidAbiItemError=t.CircularReferenceError=void 0,t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=void 0,t.AbiConstructorNotFoundError=t.weiUnits=t.gweiUnits=t.etherUnits=t.presignMessagePrefix=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=void 0,t.EnsAvatarUriResolutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.BundleFailedError=t.BlockNotFoundError=t.setErrorConfig=t.BaseError=t.InvalidAddressError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=void 0,t.UnsupportedProviderMethodError=t.UnsupportedNonOptionalCapabilityError=t.UnsupportedChainIdError=t.UnknownRpcError=t.UnknownBundleIdError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.DuplicateIdError=t.ChainDisconnectedError=t.BundleTooLargeError=t.AtomicReadyWalletRejectedUpgradeError=t.AtomicityNotSupportedError=t.WebSocketRequestError=t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.HttpRequestError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.FilterTypeNotSupportedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.EstimateGasExecutionError=t.EnsInvalidChainIdError=void 0,t.toBlobs=t.toBlobSidecars=t.sidecarsToVersionedHashes=t.fromBlobs=t.commitmentToVersionedHash=t.commitmentsToVersionedHashes=t.blobsToProofs=t.blobsToCommitments=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.checksumAddress=t.prepareEncodeFunctionData=t.parseEventLogs=t.getAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.EIP1193ProviderRpcError=t.InvalidDecimalNumberError=t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=t.UrlRequiredError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.StateAssignmentConflictError=t.AccountStateConflictError=t.UserRejectedRequestError=void 0,t.toCoinType=t.namehash=t.labelhash=t.toRlp=t.hexToRlp=t.bytesToRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.extendSchema=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=void 0,t.recoverTransactionAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseSignature=t.hexToSignature=t.parseErc8010Signature=t.parseErc6492Signature=t.parseCompactSignature=t.hexToCompactSignature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashDomain=t.hashMessage=t.compactSignatureToSignature=t.withTimeout=t.withRetry=t.withCache=t.nonceManager=t.createNonceManager=t.setupKzg=t.defineKzg=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=t.ripemd160=t.keccak256=t.isHash=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.formatBlock=t.defineBlock=t.getContractError=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=t.validateTypedData=t.serializeTypedData=t.getTypesForEIP712Domain=t.domainSeparator=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.toPrefixedMessage=t.signatureToCompactSignature=t.serializeSignature=t.signatureToHex=t.serializeErc8010Signature=t.serializeErc6492Signature=t.serializeCompactSignature=t.compactSignatureToHex=t.recoverTypedDataAddress=void 0;var n=r(6524);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}});var o=r(1877);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return o.getContract}});var a=r(138);Object.defineProperty(t,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return a.WaitForCallsStatusTimeoutError}});var i=r(8693);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return i.createClient}}),Object.defineProperty(t,"rpcSchema",{enumerable:!0,get:function(){return i.rpcSchema}});var s=r(5208);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var c=r(2373);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return c.createTestClient}});var u=r(3756);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return u.createWalletClient}});var d=r(2550);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var l=r(5079);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return l.testActions}});var f=r(7106);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var p=r(922);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var m=r(1792);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return m.custom}});var b=r(3801);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return b.fallback}}),Object.defineProperty(t,"shouldThrow",{enumerable:!0,get:function(){return b.shouldThrow}});var y=r(2543);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return y.http}});var h=r(8612);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return h.webSocket}});var g=r(3302);Object.defineProperty(t,"erc20Abi",{enumerable:!0,get:function(){return g.erc20Abi}}),Object.defineProperty(t,"erc20Abi_bytes32",{enumerable:!0,get:function(){return g.erc20Abi_bytes32}}),Object.defineProperty(t,"erc721Abi",{enumerable:!0,get:function(){return g.erc721Abi}}),Object.defineProperty(t,"erc1155Abi",{enumerable:!0,get:function(){return g.erc1155Abi}}),Object.defineProperty(t,"erc4626Abi",{enumerable:!0,get:function(){return g.erc4626Abi}}),Object.defineProperty(t,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return g.multicall3Abi}});var v=r(937);Object.defineProperty(t,"ethAddress",{enumerable:!0,get:function(){return v.ethAddress}}),Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return v.zeroAddress}});var E=r(9494);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return E.zeroHash}});var w=r(6590);Object.defineProperty(t,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return w.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(t,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return w.deploylessCallViaFactoryBytecode}}),Object.defineProperty(t,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return w.erc6492SignatureValidatorByteCode}}),Object.defineProperty(t,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return w.erc6492SignatureValidatorByteCode}});var x=r(2856);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return x.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return x.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return x.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return x.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return x.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return x.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return x.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return x.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return x.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return x.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return x.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return x.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return x.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return x.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return x.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return x.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return x.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return x.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return x.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return x.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return x.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return x.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return x.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return x.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return x.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return x.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return x.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return x.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return x.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return x.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return x.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return x.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return x.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return x.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return x.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return x.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return x.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return x.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return x.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return x.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return x.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return x.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return x.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return x.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return x.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return x.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return x.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return x.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return x.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return x.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return x.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return x.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return x.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return x.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return x.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return x.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return x.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return x.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return x.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return x.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return x.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return x.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return x.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return x.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return x.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return x.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return x.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return x.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return x.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return x.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return x.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return x.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return x.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return x.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return x.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return x.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return x.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return x.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return x.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return x.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return x.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return x.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return x.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return x.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return x.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return x.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return x.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return x.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return x.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return x.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return x.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return x.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return x.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return x.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return x.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return x.minInt256}});var P=r(4019);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return P.presignMessagePrefix}});var I=r(4839);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return I.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return I.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return I.weiUnits}});var T=r(6953);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return T.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return T.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return T.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return T.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return T.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return T.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return T.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return T.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return T.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return T.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return T.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return T.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return T.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return T.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return T.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return T.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return T.UnsupportedPackedAbiType}});var A=r(6311);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return A.InvalidAddressError}});var O=r(6246);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return O.BaseError}}),Object.defineProperty(t,"setErrorConfig",{enumerable:!0,get:function(){return O.setErrorConfig}});var S=r(9642);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return S.BlockNotFoundError}});var B=r(2034);Object.defineProperty(t,"BundleFailedError",{enumerable:!0,get:function(){return B.BundleFailedError}});var j=r(4698);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return j.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return j.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return j.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return j.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return j.InvalidChainIdError}});var R=r(7677);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return R.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return R.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return R.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return R.ContractFunctionZeroDataError}}),Object.defineProperty(t,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return R.CounterfactualDeploymentFailedError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return R.RawContractError}});var _=r(5375);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return _.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return _.SliceOffsetOutOfBoundsError}});var C=r(5366);Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return C.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return C.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return C.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return C.InvalidHexValueError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return C.SizeOverflowError}});var M=r(8047);Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return M.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return M.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return M.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return M.EnsInvalidChainIdError}});var k=r(5772);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return k.EstimateGasExecutionError}});var F=r(9143);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return F.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return F.Eip1559FeesNotSupportedError}}),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return F.MaxFeePerGasTooLowError}});var N=r(6861);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return N.FilterTypeNotSupportedError}});var U=r(2731);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return U.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return U.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return U.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return U.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return U.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return U.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return U.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return U.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return U.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return U.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return U.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return U.UnknownNodeError}});var z=r(2202);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return z.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return z.RpcRequestError}}),Object.defineProperty(t,"SocketClosedError",{enumerable:!0,get:function(){return z.SocketClosedError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return z.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return z.WebSocketRequestError}});var H=r(7992);Object.defineProperty(t,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return H.AtomicityNotSupportedError}}),Object.defineProperty(t,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return H.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(t,"BundleTooLargeError",{enumerable:!0,get:function(){return H.BundleTooLargeError}}),Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return H.ChainDisconnectedError}}),Object.defineProperty(t,"DuplicateIdError",{enumerable:!0,get:function(){return H.DuplicateIdError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return H.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return H.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return H.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return H.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return H.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return H.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return H.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return H.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return H.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return H.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return H.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return H.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return H.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return H.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return H.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return H.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return H.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownBundleIdError",{enumerable:!0,get:function(){return H.UnknownBundleIdError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return H.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedChainIdError",{enumerable:!0,get:function(){return H.UnsupportedChainIdError}}),Object.defineProperty(t,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return H.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return H.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return H.UserRejectedRequestError}});var L=r(6254);Object.defineProperty(t,"AccountStateConflictError",{enumerable:!0,get:function(){return L.AccountStateConflictError}}),Object.defineProperty(t,"StateAssignmentConflictError",{enumerable:!0,get:function(){return L.StateAssignmentConflictError}});var D=r(3727);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return D.FeeConflictError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return D.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return D.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return D.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return D.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return D.InvalidStorageKeySizeError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return D.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return D.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return D.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return D.WaitForTransactionReceiptTimeoutError}});var $=r(5446);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return $.UrlRequiredError}});var q=r(6651);Object.defineProperty(t,"InvalidDomainError",{enumerable:!0,get:function(){return q.InvalidDomainError}}),Object.defineProperty(t,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return q.InvalidPrimaryTypeError}}),Object.defineProperty(t,"InvalidStructTypeError",{enumerable:!0,get:function(){return q.InvalidStructTypeError}});var G=r(233);Object.defineProperty(t,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return G.InvalidDecimalNumberError}});var V=r(6825);Object.defineProperty(t,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return V.ProviderRpcError}});var W=r(4612);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return W.decodeAbiParameters}});var K=r(7575);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return K.decodeDeployData}});var Z=r(8181);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return Z.decodeErrorResult}});var J=r(8182);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return J.decodeEventLog}});var Y=r(3064);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return Y.decodeFunctionData}});var X=r(7541);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return X.decodeFunctionResult}});var Q=r(2732);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Q.encodeAbiParameters}});var ee=r(4687);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return ee.encodeDeployData}});var te=r(7757);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return te.encodeErrorResult}});var re=r(378);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return re.encodeEventTopics}});var ne=r(6144);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return ne.encodeFunctionData}});var oe=r(4829);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return oe.encodeFunctionResult}});var ae=r(5020);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return ae.encodePacked}});var ie=r(775);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return ie.getAbiItem}});var se=r(48);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return se.parseEventLogs}});var ce=r(5913);Object.defineProperty(t,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return ce.prepareEncodeFunctionData}});var ue=r(8728);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return ue.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return ue.getAddress}});var de=r(8666);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return de.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return de.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return de.getCreateAddress}});var le=r(9742);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return le.isAddress}});var fe=r(4324);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return fe.isAddressEqual}});var pe=r(5956);Object.defineProperty(t,"blobsToCommitments",{enumerable:!0,get:function(){return pe.blobsToCommitments}});var me=r(3611);Object.defineProperty(t,"blobsToProofs",{enumerable:!0,get:function(){return me.blobsToProofs}});var be=r(4445);Object.defineProperty(t,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return be.commitmentsToVersionedHashes}});var ye=r(4143);Object.defineProperty(t,"commitmentToVersionedHash",{enumerable:!0,get:function(){return ye.commitmentToVersionedHash}});var he=r(5201);Object.defineProperty(t,"fromBlobs",{enumerable:!0,get:function(){return he.fromBlobs}});var ge=r(7919);Object.defineProperty(t,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return ge.sidecarsToVersionedHashes}});var ve=r(3339);Object.defineProperty(t,"toBlobSidecars",{enumerable:!0,get:function(){return ve.toBlobSidecars}});var Ee=r(2326);Object.defineProperty(t,"toBlobs",{enumerable:!0,get:function(){return Ee.toBlobs}});var we=r(5678);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return we.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return we.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return we.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return we.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return we.offchainLookupSignature}});var xe=r(2779);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return xe.assertCurrentChain}});var Pe=r(5731);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return Pe.defineChain}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return Pe.extendSchema}});var Ie=r(2057);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return Ie.extractChain}});var Te=r(3454);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return Te.getChainContractAddress}});var Ae=r(6776);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return Ae.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return Ae.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return Ae.concatHex}});var Oe=r(7085);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return Oe.isBytes}});var Se=r(6015);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return Se.isHex}});var Be=r(8987);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return Be.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return Be.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return Be.padHex}});var je=r(2285);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return je.size}});var Re=r(7688);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return Re.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return Re.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return Re.sliceHex}});var _e=r(7488);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return _e.trim}});var Ce=r(4592);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return Ce.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return Ce.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return Ce.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return Ce.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return Ce.fromBytes}});var Me=r(294);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Me.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Me.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Me.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Me.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Me.hexToString}});var ke=r(7349);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return ke.fromRlp}});var Fe=r(7655);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return Fe.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return Fe.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return Fe.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return Fe.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return Fe.toBytes}});var Ne=r(985);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return Ne.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return Ne.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return Ne.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return Ne.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return Ne.toHex}});var Ue=r(7926);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return Ue.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return Ue.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return Ue.toRlp}});var ze=r(3484);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return ze.labelhash}});var He=r(4931);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return He.namehash}});var Le=r(5448);Object.defineProperty(t,"toCoinType",{enumerable:!0,get:function(){return Le.toCoinType}});var De=r(6173);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return De.getContractError}});var $e=r(8900);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return $e.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return $e.formatBlock}});var qe=r(95);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return qe.formatLog}});var Ge=r(9473);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return Ge.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return Ge.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return Ge.transactionType}});var Ve=r(4537);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return Ve.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return Ve.formatTransactionReceipt}});var We=r(4712);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return We.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return We.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return We.rpcTransactionType}});var Ke=r(4624);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return Ke.isHash}});var Ze=r(3625);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return Ze.keccak256}});var Je=r(2830);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return Je.ripemd160}});var Ye=r(7415);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return Ye.sha256}});var Xe=r(325);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return Xe.toEventHash}});var Qe=r(7144);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return Qe.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return Qe.toEventSelector}});var et=r(3467);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return et.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return et.toEventSignature}});var tt=r(2461);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return tt.toFunctionHash}});var rt=r(1456);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return rt.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return rt.toFunctionSelector}});var nt=r(8611);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return nt.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return nt.toFunctionSignature}});var ot=r(2843);Object.defineProperty(t,"defineKzg",{enumerable:!0,get:function(){return ot.defineKzg}});var at=r(8287);Object.defineProperty(t,"setupKzg",{enumerable:!0,get:function(){return at.setupKzg}});var it=r(1519);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return it.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return it.nonceManager}});var st=r(1861);Object.defineProperty(t,"withCache",{enumerable:!0,get:function(){return st.withCache}});var ct=r(1525);Object.defineProperty(t,"withRetry",{enumerable:!0,get:function(){return ct.withRetry}});var ut=r(1208);Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return ut.withTimeout}});var dt=r(5970);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return dt.compactSignatureToSignature}});var lt=r(5336);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return lt.hashMessage}});var ft=r(9984);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return ft.hashDomain}}),Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return ft.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ft.hashTypedData}});var pt=r(2803);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return pt.isErc6492Signature}});var mt=r(527);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return mt.isErc8010Signature}});var bt=r(2534);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return bt.parseCompactSignature}}),Object.defineProperty(t,"parseCompactSignature",{enumerable:!0,get:function(){return bt.parseCompactSignature}});var yt=r(102);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return yt.parseErc6492Signature}});var ht=r(3198);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return ht.parseErc8010Signature}});var gt=r(2325);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return gt.parseSignature}}),Object.defineProperty(t,"parseSignature",{enumerable:!0,get:function(){return gt.parseSignature}});var vt=r(2374);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return vt.recoverAddress}});var Et=r(593);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return Et.recoverMessageAddress}});var wt=r(3874);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return wt.recoverPublicKey}});var xt=r(7572);Object.defineProperty(t,"recoverTransactionAddress",{enumerable:!0,get:function(){return xt.recoverTransactionAddress}});var Pt=r(7948);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Pt.recoverTypedDataAddress}});var It=r(155);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return It.serializeCompactSignature}}),Object.defineProperty(t,"serializeCompactSignature",{enumerable:!0,get:function(){return It.serializeCompactSignature}});var Tt=r(2599);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return Tt.serializeErc6492Signature}});var At=r(595);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return At.serializeErc8010Signature}});var Ot=r(1926);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return Ot.serializeSignature}}),Object.defineProperty(t,"serializeSignature",{enumerable:!0,get:function(){return Ot.serializeSignature}});var St=r(5190);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return St.signatureToCompactSignature}});var Bt=r(7707);Object.defineProperty(t,"toPrefixedMessage",{enumerable:!0,get:function(){return Bt.toPrefixedMessage}});var jt=r(5599);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return jt.verifyHash}});var Rt=r(8428);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Rt.verifyMessage}});var _t=r(4803);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return _t.verifyTypedData}});var Ct=r(4900);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return Ct.stringify}});var Mt=r(4969);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return Mt.assertRequest}});var kt=r(7964);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return kt.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return kt.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return kt.assertTransactionLegacy}});var Ft=r(8465);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return Ft.getSerializedTransactionType}});var Nt=r(9788);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return Nt.getTransactionType}});var Ut=r(8057);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return Ut.parseTransaction}});var zt=r(1270);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return zt.serializeAccessList}});var Ht=r(5886);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return Ht.serializeTransaction}});var Lt=r(8377);Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return Lt.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return Lt.getTypesForEIP712Domain}}),Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return Lt.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return Lt.validateTypedData}});var Dt=r(6117);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Dt.formatEther}});var $t=r(5277);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return $t.formatGwei}});var qt=r(1902);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return qt.formatUnits}});var Gt=r(2819);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return Gt.parseEther}});var Vt=r(7723);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Vt.parseGwei}});var Wt=r(4800);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return Wt.parseUnits}})},2623:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;const n=r(7076);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},2627:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=function(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null};const n=r(6015)},2731:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;const n=r(5277),o=r(6246);class a extends o.BaseError{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}t.ExecutionRevertedError=a,Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class i extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}t.FeeCapTooHighError=i,Object.defineProperty(i,"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 s extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}t.FeeCapTooLowError=s,Object.defineProperty(s,"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 c extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}t.NonceTooHighError=c,Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends o.BaseError{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"})}}t.NonceTooLowError=u,Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class d extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}t.NonceMaxValueError=d,Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class l extends o.BaseError{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"})}}t.InsufficientFundsError=l,Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends o.BaseError{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"})}}t.IntrinsicGasTooHighError=f,Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends o.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}t.IntrinsicGasTooLowError=p,Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class m extends o.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}t.TransactionTypeNotSupportedError=m,Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends o.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}t.TipAboveFeeCapError=b,Object.defineProperty(b,"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 y extends o.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}t.UnknownNodeError=y},2732:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAbiParameters=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const r=b(function({params:e,values:t}){const r=[];for(let n=0;n<e.length;n++)r.push(m({param:e[n],value:t[n]}));return r}({params:e,values:t}));return 0===r.length?"0x":r},t.getArrayComponents=y;const n=r(6953),o=r(6311),a=r(6246),i=r(5366),s=r(9742),c=r(6776),u=r(8987),d=r(2285),l=r(7688),f=r(985),p=r(2162);function m({param:e,value:t}){const r=y(e.type);if(r){const[o,a]=r;return function(e,{length:t,param:r}){const o=null===t;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!o&&e.length!==t)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let a=!1;const i=[];for(let t=0;t<e.length;t++){const n=m({param:r,value:e[t]});n.dynamic&&(a=!0),i.push(n)}if(o||a){const e=b(i);if(o){const t=(0,f.numberToHex)(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?(0,c.concat)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.concat)(i.map(({encoded:e})=>e))}}(t,{length:o,param:{...e,type:a}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let o=0;o<t.components.length;o++){const a=t.components[o],i=m({param:a,value:e[Array.isArray(e)?o:a.name]});n.push(i),i.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(n):(0,c.concat)(n.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!(0,s.isAddress)(e))throw new o.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,u.padHex)(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new a.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.padHex)((0,f.boolToHex)(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,n="256"]=p.integerRegex.exec(e.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new i.IntegerOutOfRangeError({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.numberToHex)(e,{size:32,signed:t})}}(t,{signed:r,size:Number(n)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,r]=t.type.split("bytes"),o=(0,d.size)(e);if(!r){let t=e;return o%32!=0&&(t=(0,u.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.concat)([(0,u.padHex)((0,f.numberToHex)(o,{size:32})),t])}}if(o!==Number.parseInt(r,10))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,u.padHex)(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=(0,f.stringToHex)(e),r=Math.ceil((0,d.size)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,u.padHex)((0,l.slice)(t,32*e,32*(e+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,c.concat)([(0,u.padHex)((0,f.numberToHex)((0,d.size)(t),{size:32})),...n])}}(t);throw new n.InvalidAbiEncodingTypeError(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function b(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:(0,d.size)(o)}const r=[],n=[];let o=0;for(let a=0;a<e.length;a++){const{dynamic:i,encoded:s}=e[a];i?(r.push((0,f.numberToHex)(t+o,{size:32})),n.push(s),o+=(0,d.size)(s)):r.push(s)}return(0,c.concat)([...r,...n])}function y(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},2779:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})};const n=r(4698)},2803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isErc6492Signature=function(e){return(0,o.sliceHex)(e,-32)===n.erc6492MagicBytes};const n=r(9494),o=r(7688)},2819:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=function(e,t="wei"){return(0,o.parseUnits)(e,n.etherUnits[t])};const n=r(4839),o=r(4800)},2820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=async function(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}},2830:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=function(e,t){const r=t||"hex",s=(0,n.ripemd160)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(3238),o=r(6015),a=r(7655),i=r(985)},2843:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineKzg=function({blobToKzgCommitment:e,computeBlobKzgProof:t}){return{blobToKzgCommitment:e,computeBlobKzgProof:t}}},2856:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},2873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc8010=void 0,t.SignatureErc8010=r(3502)},2897:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showCallsStatus=async function(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}},2899:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=async function(e,{blockNumber:t,blockTag:r,assetGatewayUrls:i,name:s,gatewayUrls:c,strict:u,universalResolverAddress:d}){const l=await(0,o.getAction)(e,a.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:d,gatewayUrls:c,strict:u});if(!l)return null;try{return await(0,n.parseAvatarRecord)(e,{record:l,gatewayUrls:i})}catch{return null}};const n=r(6545),o=r(6207),a=r(3433)},2917:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=async function(e,t){const{checkReplacement:r=!0,confirmations:m=1,hash:b,onReplaced:y,retryCount:h=6,retryDelay:g=({count:e})=>200*(1<<e),timeout:v=18e4}=t,E=(0,u.stringify)(["waitForTransactionReceipt",e.uid,b]),w=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval;let x,P,I,T,A,O=!1;const{promise:S,resolve:B,reject:j}=(0,s.withResolvers)(),R=v?setTimeout(()=>{A?.(),T?.(),j(new o.WaitForTransactionReceiptTimeoutError({hash:b}))},v):void 0;return T=(0,i.observe)(E,{onReplaced:y,resolve:B,reject:j},async t=>{if(I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:b}).catch(()=>{}),I&&m<=1)return clearTimeout(R),t.resolve(I),void T?.();A=(0,a.getAction)(e,p.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:w,async onBlockNumber(i){const s=e=>{clearTimeout(R),A?.(),e(),T?.()};let u=i;if(!O)try{if(I){if(m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;return void s(()=>t.resolve(I))}if(r&&!x&&(O=!0,await(0,c.withRetry)(async()=>{x=await(0,a.getAction)(e,l.getTransaction,"getTransaction")({hash:b}),x.blockNumber&&(u=x.blockNumber)},{delay:g,retryCount:h}),O=!1),I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:b}),m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;s(()=>t.resolve(I))}catch(r){if(r instanceof o.TransactionNotFoundError||r instanceof o.TransactionReceiptNotFoundError){if(!x)return void(O=!1);try{P=x,O=!0;const r=await(0,c.withRetry)(()=>(0,a.getAction)(e,d.getBlock,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:g,retryCount:h,shouldRetry:({error:e})=>e instanceof n.BlockNotFoundError});O=!1;const o=r.transactions.find(({from:e,nonce:t})=>e===P.from&&t===P.nonce);if(!o)return;if(I=await(0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:o.hash}),m>1&&(!I.blockNumber||u-I.blockNumber+1n<m))return;let i="replaced";o.to===P.to&&o.value===P.value&&o.input===P.input?i="repriced":o.from===o.to&&0n===o.value&&(i="cancelled"),s(()=>{t.onReplaced?.({reason:i,replacedTransaction:P,transaction:o,transactionReceipt:I}),t.resolve(I)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(r))}}})}),S};const n=r(9642),o=r(3727),a=r(6207),i=r(2093),s=r(2344),c=r(1525),u=r(4900),d=r(5364),l=r(2401),f=r(6873),p=r(9828)},2926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.from=s,t.fromRpc=c,t.fromRpcList=function(e){return e.map(c)},t.fromTuple=u,t.fromTupleList=function(e){const t=[];for(const r of e)t.push(u(r));return t},t.getSignPayload=function(e){return d(e,{presign:!0})},t.hash=d,t.toRpc=l,t.toRpcList=function(e){return e.map(l)},t.toTuple=f,t.toTupleList=function(e){if(!e||0===e.length)return[];const t=[];for(const r of e)t.push(f(r));return t};const n=r(347),o=r(9274),a=r(3401),i=r(665);function s(e,t={}){return"string"==typeof e.chainId?c(e):{...e,...t.signature}}function c(e){const{address:t,chainId:r,nonce:n}=e,o=i.extract(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...o}}function u(e){const[t,r,n,o,a,c]=e;let u={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return o&&a&&c&&(u={...u,...i.fromTuple([o,a,c])}),s(u)}function d(e,t={}){const{presign:r}=t;return n.keccak256(o.concat("0x05",a.fromHex(f(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function l(e){const{address:t,chainId:r,nonce:n,...a}=e;return{address:t,chainId:o.fromNumber(r),nonce:o.fromNumber(n),...i.toRpc(a)}}function f(e){const{address:t,chainId:r,nonce:n}=e,a=i.extract(e);return[r?o.fromNumber(r):"0x",t,n?o.fromNumber(n):"0x",...a?i.toTuple(a):[]]}},2940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAuthorizationList=function(e){if(!e||0===e.length)return[];const t=[];for(const r of e){const{chainId:e,nonce:a,...i}=r,s=r.address;t.push([e?(0,n.toHex)(e):"0x",s,a?(0,n.toHex)(a):"0x",...(0,o.toYParitySignatureArray)({},i)])}return t};const n=r(985),o=r(5886)},2955:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=v;const n=r(2318),o=r(9175),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),d=BigInt(113),l=[],f=[],p=[];for(let e=0,t=i,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],l.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let o=a;for(let e=0;e<7;e++)t=(t<<i^(t>>c)*d)%u,t&s&&(o^=i<<(i<<BigInt(e))-i);p.push(o)}const m=(0,n.split)(p,!0),b=m[0],y=m[1],h=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),g=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function v(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,o=(t+2)%10,a=r[o],i=r[o+1],s=h(a,i,1)^r[n],c=g(a,i,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],o=e[3];for(let r=0;r<24;r++){const n=f[r],a=h(t,o,n),i=g(t,o,n),s=l[r];t=e[s],o=e[s+1],e[s]=a,e[s+1]=i}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=y[n]}(0,o.clean)(r)}class E extends o.Hash{constructor(e,t,r,n=!1,a=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=r,this.enableXOF=n,this.rounds=a,(0,o.anumber)(r),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,o.swap32IfBE)(this.state32),v(this.state32,this.rounds),(0,o.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,o.aexists)(this),e=(0,o.toBytes)(e),(0,o.abytes)(e);const{blockLen:t,state:r}=this,n=e.length;for(let o=0;o<n;){const a=Math.min(t-this.pos,n-o);for(let t=0;t<a;t++)r[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,o.aexists)(this,!1),(0,o.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,o=e.length;n<o;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,o-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,o.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,o.aoutput)(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,(0,o.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:o,enableXOF:a}=this;return e||(e=new E(t,r,n,a,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=n,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=E;const w=(e,t,r)=>(0,o.createHasher)(()=>new E(t,e,r));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);const x=(e,t,r)=>(0,o.createXOFer)((n={})=>new E(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},2967:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignature=void 0;const n=r(6524),o=r(4519);t.toSignature=e=>{const t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,o.normalizeSignature)(t)}},3044:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=function(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:o,transport:a})=>{"success"===o&&t===e&&(r[n]=a.request)}),t=>r[t]||e.request}},3064:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=function(e){const{abi:t,data:r}=e,c=(0,o.slice)(r,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,i.decodeAbiParameters)(u.inputs,(0,o.slice)(r,4)):void 0}};const n=r(6953),o=r(7688),a=r(1456),i=r(4612),s=r(4520)},3069:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;const n=r(6246);class o extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}t.NegativeOffsetError=o;class a extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=a;class i extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=i},3075:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isImageUri=u,t.getGateway=d,t.resolveAvatarUri=l,t.getJsonImage=f,t.getMetadataAvatarUri=async function({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(e=>e.json());return await p({gatewayUrls:e,uri:f(r)})}catch{throw new o.EnsAvatarUriResolutionError({uri:t})}},t.parseAvatarUri=p,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,a]=t.split("/"),[i,s]=r.split(":"),[c,u]=n.split(":");if(!i||"eip155"!==i.toLowerCase())throw new o.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new o.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!u)throw new o.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!a)throw new o.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!c)throw new o.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:c.toLowerCase(),contractAddress:u,tokenID:a}},t.getNftTokenUri=async function(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new o.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})};const n=r(5275),o=r(8047),a=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,i=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,c=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function u(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){return("object"!=typeof t||void 0===t.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(t=>{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function d(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function l({uri:e,gatewayUrls:t}){const r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=d(t?.ipfs,"https://ipfs.io"),u=d(t?.arweave,"https://arweave.net"),l=e.match(a),{protocol:f,subpath:p,target:m,subtarget:b=""}=l?.groups||{},y="ipns:/"===f||"ipns/"===p,h="ipfs:/"===f||"ipfs/"===p||i.test(e);if(e.startsWith("http")&&!y&&!h){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((y||h)&&m)return{uri:`${n}/${y?"ipns":"ipfs"}/${m}${b}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&m)return{uri:`${u}/${m}${b||""}`,isOnChain:!1,isEncoded:!1};let g=e.replace(c,"");if(g.startsWith("<svg")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith("data:")||g.startsWith("{"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new o.EnsAvatarUriResolutionError({uri:e})}function f(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o.EnsAvatarInvalidMetadataError({data:e});return e.image||e.image_url||e.image_data}async function p({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=l({uri:t,gatewayUrls:e});if(n)return r;if(await u(r))return r;throw new o.EnsAvatarUriResolutionError({uri:t})}},3119:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.1.1"},3137:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=async function(e,{account:t=e.account,message:r}){if(!t)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,n.parseAccount)(t);if(i.signMessage)return i.signMessage({message:r});const s="string"==typeof r?(0,a.stringToHex)(r):r.raw instanceof Uint8Array?(0,a.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,i.address]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(985)},3198:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc8010Signature=function(e){if(!(0,a.isErc8010Signature)(e))return{signature:e};const{authorization:t,to:r,...i}=n.SignatureErc8010.unwrap(e);return{authorization:{address:t.address,chainId:t.chainId,nonce:Number(t.nonce),r:(0,o.numberToHex)(t.r,{size:32}),s:(0,o.numberToHex)(t.s,{size:32}),yParity:t.yParity},...r?{address:r}:{},...i}};const n=r(2873),o=r(985),a=r(527)},3200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;const n=r(821);class o extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=a;class i extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=i},3238:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const n=r(1839);t.RIPEMD160=n.RIPEMD160,t.ripemd160=n.ripemd160},3239:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toSignatureHash=function(e){return(0,n.hashSignature)((0,o.toSignature)(e))};const n=r(8992),o=r(2967)},3302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.erc4626Abi=t.erc721Abi=t.erc1155Abi=t.erc20Abi_bytes32=t.erc20Abi=t.erc6492SignatureValidatorAbi=t.erc1271Abi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.batchGatewayAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],t.batchGatewayAbi=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}];const r=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.erc1271Abi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.erc6492SignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],t.erc20Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],t.erc20Abi_bytes32=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],t.erc1155Abi=[{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],t.erc721Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],t.erc4626Abi=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]},3339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobSidecars=function(e){const{data:t,kzg:r,to:i}=e,s=e.blobs??(0,a.toBlobs)({data:t,to:i}),c=e.commitments??(0,n.blobsToCommitments)({blobs:s,kzg:r,to:i}),u=e.proofs??(0,o.blobsToProofs)({blobs:s,commitments:c,kzg:r,to:i}),d=[];for(let e=0;e<s.length;e++)d.push({blob:s[e],commitment:c[e],proof:u[e]});return d};const n=r(5956),o=r(3611),a=r(2326)},3383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=async function(e,{address:t,args:r,event:i,events:s,fromBlock:c,strict:u,toBlock:d}={}){const l=s??(i?[i]:void 0),f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"});let p=[];if(l){const e=l.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}));p=[e],i&&(p=p[0])}const m=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,o.numberToHex)(c):c,toBlock:"bigint"==typeof d?(0,o.numberToHex)(d):d,...p.length?{topics:p}:{}}]});return{abi:l,args:r,eventName:i?i.name:void 0,fromBlock:c,id:m,request:f(m),strict:Boolean(u),toBlock:d,type:"event"}};const n=r(378),o=r(985),a=r(3044)},3401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e){return s(e,"Bytes")},t.toHex=function(e){return s(e,"Hex")},t.to=s,t.decodeRlpCursor=c,t.readLength=u,t.readList=d,t.from=l,t.fromBytes=function(e,t={}){const{as:r="Bytes"}=t;return l(e,{as:r})},t.fromHex=function(e,t={}){const{as:r="Hex"}=t;return l(e,{as:r})};const n=r(3516),o=r(7560),a=r(9274),i=r(1059);function s(e,t){const r=t??("string"==typeof e?"Hex":"Bytes"),o=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new a.InvalidLengthError(e);return n.fromHex(e)}return e})();return c(i.create(o,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r)}function c(e,t="Hex"){if(0===e.bytes.length)return"Hex"===t?a.fromBytes(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=u(e,r,128),o=e.readBytes(n);return"Hex"===t?a.fromBytes(o):o}return d(e,u(e,r,192),t)}function u(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new o.BaseError("Invalid RLP prefix")}function d(e,t,r){const n=e.position,o=[];for(;e.position-n<t;)o.push(c(e,r));return o}function l(e,t){const{as:r}=t,n=f(e),o=i.create(new Uint8Array(n.length));return n.encode(o),"Hex"===r?a.fromBytes(o.bytes):o.bytes}function f(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=p(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>f(e))):function(e){const t="string"==typeof e?n.fromHex(e):e,r=p(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+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+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function p(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new o.BaseError("Length is too large.")}},3433:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=async function(e,t){const{blockNumber:r,blockTag:m,key:b,name:y,gatewayUrls:h,strict:g}=t,{chain:v}=e,E=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),w=v?.ensTlds;if(w&&!w.some(e=>y.endsWith(e)))return null;try{const t={address:E,abi:n.universalResolverResolveAbi,args:[(0,s.toHex)((0,l.packetToBytes)(y)),(0,a.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,d.namehash)(y),b]}),h??[u.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:r,blockTag:m},i=(0,f.getAction)(e,p.readContract,"readContract"),c=await i(t);if("0x"===c[0])return null;const g=(0,o.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:c[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,c.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(7541),a=r(6144),i=r(3454),s=r(985),c=r(5971),u=r(2262),d=r(4931),l=r(846),f=r(6207),p=r(5275)},3454:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){const o=t?.contracts?.[r];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&o.blockCreated&&o.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:o.blockCreated}});return o.address};const n=r(4698)},3467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSignature=void 0;var n=r(2967);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return n.toSignature}})},3484:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=function(e){const t=new Uint8Array(32).fill(0);return e?(0,i.encodedLabelToLabelhash)(e)||(0,a.keccak256)((0,n.stringToBytes)(e)):(0,o.bytesToHex)(t)};const n=r(7655),o=r(985),a=r(3625),i=r(2627)},3502:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.suffixParameters=t.magicBytes=void 0,t.assert=u,t.from=function(e){return"string"==typeof e?d(e):e},t.unwrap=d,t.wrap=function(e){const{data:r,signature:a}=e;u(e);const d=s.recoverAddress({payload:o.getSignPayload(e.authorization),signature:c.from(e.authorization)}),l=n.encode(t.suffixParameters,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??d,r??"0x"]),f=i.fromNumber(i.size(l),{size:32});return i.concat(a,l,f,t.magicBytes)},t.validate=function(e){try{return u(e),!0}catch{return!1}};const n=r(2037),o=r(2926),a=r(7560),i=r(9274),s=r(1851),c=r(665);function u(e){if("string"==typeof e){if(i.slice(e,-32)!==t.magicBytes)throw new l(e)}else c.assert(e.authorization)}function d(e){u(e);const r=i.toNumber(i.slice(e,-64,-32)),a=i.slice(e,-r-64,-64),s=i.slice(e,0,-r-64),[c,d,l]=n.decode(t.suffixParameters,a);return{authorization:o.from({address:c.delegation,chainId:Number(c.chainId),nonce:c.nonce,yParity:c.yParity,r:c.r,s:c.s}),signature:s,...l&&"0x"!==l?{data:l,to:d}:{}}}t.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",t.suffixParameters=n.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");class l extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=l},3516:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidBytesTypeError=t.InvalidBytesBooleanError=void 0,t.assert=l,t.concat=function(...e){let t=0;for(const r of e)t+=r.length;const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r},t.from=function(e){return e instanceof Uint8Array?e:"string"==typeof e?p(e):f(e)},t.fromArray=f,t.fromBoolean=function(e,t={}){const{size:r}=t,n=new Uint8Array(1);return n[0]=Number(e),"number"==typeof r?(i.assertSize(n,r),m(n,r)):n},t.fromHex=p,t.fromNumber=function(e,t){return p(a.fromNumber(e,t))},t.fromString=function(e,t={}){const{size:r}=t,n=d.encode(e);return"number"==typeof r?(i.assertSize(n,r),b(n,r)):n},t.isEqual=function(e,t){return(0,n.equalBytes)(e,t)},t.padLeft=m,t.padRight=b,t.random=function(e){return crypto.getRandomValues(new Uint8Array(e))},t.size=function(e){return e.length},t.slice=function(e,t,r,n={}){const{strict:o}=n;i.assertStartOffset(e,t);const a=e.slice(t,r);return o&&i.assertEndOffset(a,t,r),a},t.toBigInt=function(e,t={}){const{size:r}=t;void 0!==r&&i.assertSize(e,r);const n=a.fromBytes(e,t);return a.toBigInt(n,t)},t.toBoolean=function(e,t={}){const{size:r}=t;let n=e;if(void 0!==r&&(i.assertSize(n,r),n=y(n)),n.length>1||n[0]>1)throw new g(n);return Boolean(n[0])},t.toHex=function(e,t={}){return a.fromBytes(e,t)},t.toNumber=function(e,t={}){const{size:r}=t;void 0!==r&&i.assertSize(e,r);const n=a.fromBytes(e,t);return a.toNumber(n,t)},t.toString=function(e,t={}){const{size:r}=t;let n=e;return void 0!==r&&(i.assertSize(n,r),n=h(n)),u.decode(n)},t.trimLeft=y,t.trimRight=h,t.validate=function(e){try{return l(e),!0}catch{return!1}};const n=r(1484),o=r(7560),a=r(9274),i=r(670),s=r(9588),c=r(5665),u=new TextDecoder,d=new TextEncoder;function l(e){if(!(e instanceof Uint8Array)){if(!e)throw new v(e);if("object"!=typeof e)throw new v(e);if(!("BYTES_PER_ELEMENT"in e))throw new v(e);if(1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name)throw new v(e)}}function f(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function p(e,t={}){const{size:r}=t;let n=e;r&&(s.assertSize(e,r),n=a.padRight(e,r));let c=n.slice(2);c.length%2&&(c=`0${c}`);const u=c.length/2,d=new Uint8Array(u);for(let e=0,t=0;e<u;e++){const r=i.charCodeToBase16(c.charCodeAt(t++)),n=i.charCodeToBase16(c.charCodeAt(t++));if(void 0===r||void 0===n)throw new o.BaseError(`Invalid byte sequence ("${c[t-2]}${c[t-1]}" in "${c}").`);d[e]=r<<4|n}return d}function m(e,t){return i.pad(e,{dir:"left",size:t})}function b(e,t){return i.pad(e,{dir:"right",size:t})}function y(e){return i.trim(e,{dir:"left"})}function h(e){return i.trim(e,{dir:"right"})}class g extends o.BaseError{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=g;class v extends o.BaseError{constructor(e){super(`Value \`${"object"==typeof e?c.stringify(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}t.InvalidBytesTypeError=v;class E extends o.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}t.SizeOverflowError=E;class w extends o.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=w;class x extends o.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=x},3562:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=i,t.createCurve=function(e,t){const r=t=>(0,a.weierstrass)({...e,...i(t)});return{...r(t),create:r}};const n=r(9615),o=r(9175),a=r(1705);function i(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,o.concatBytes)(...r)),randomBytes:o.randomBytes}}},3574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3590:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=async function(e,{filter:t}){const r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof a[0])return a;const i=a.map(e=>(0,o.formatLog)(e));return"abi"in t&&t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:i,strict:r}):i};const n=r(48),o=r(95)},3611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToProofs=function(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.hexToBytes)(e)):e.commitments,s=[];for(let e=0;e<a.length;e++){const r=a[e],n=i[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?s:s.map(e=>(0,o.bytesToHex)(e))};const n=r(7655),o=r(985)},3625:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t){const r=t||"hex",s=(0,n.keccak_256)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(2955),o=r(6015),a=r(7655),i=r(985)},3633:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc6492=void 0,t.SignatureErc6492=r(5118)},3642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=function(e,{docsPath:t,...r}){const i=(()=>{const t=(0,a.getNodeError)(e,r);return t instanceof o.UnknownNodeError?e:t})();return new n.EstimateGasExecutionError(i,{docsPath:t,...r})};const n=r(5772),o=r(2731),a=r(6339)},3716:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseCache=void 0,t.withDedupe=function(e,{enabled:r=!0,id:n}){if(!r||!n)return e();if(t.promiseCache.get(n))return t.promiseCache.get(n);const o=e().finally(()=>t.promiseCache.delete(n));return t.promiseCache.set(n,o),o};const n=r(7848);t.promiseCache=new n.LruMap(8192)},3727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptRevertedError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=void 0,t.prettyPrint=i;const n=r(6117),o=r(5277),a=r(6246);function i(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends a.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}t.FeeConflictError=s;class c extends a.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class u extends a.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(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"})}}t.InvalidSerializableTransactionError=u;class d extends a.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=d;class l extends a.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=l;class f extends a.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class p extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:f,to:p,value:m}){const b=i({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:p,value:void 0!==m&&`${(0,n.formatEther)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",b].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.TransactionExecutionError=p;class m extends a.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:o}){let a="Transaction";r&&void 0!==o&&(a=`Transaction at block time "${r}" at index "${o}"`),e&&void 0!==o&&(a=`Transaction at block hash "${e}" at index "${o}"`),t&&void 0!==o&&(a=`Transaction at block number "${t}" at index "${o}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}t.TransactionNotFoundError=m;class b extends a.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=b;class y extends a.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}t.TransactionReceiptRevertedError=y;class h extends a.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=h},3756:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=function(e){const{key:t="wallet",name:r="Wallet Client",transport:a}=e;return(0,n.createClient)({...e,key:t,name:r,transport:a,type:"walletClient"}).extend(o.walletActions)};const n=r(8693),o=r(7106)},3801:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=function(e,t={}){const{key:r="fallback",name:n="Fallback",rank:o=!1,shouldThrow:a=s,retryCount:u,retryDelay:d}=t;return({chain:t,pollingInterval:s=4e3,timeout:l,...f})=>{let p=e,m=()=>{};const b=(0,i.createTransport)({key:r,name:n,async request({method:e,params:r}){let n;const o=async(i=0)=>{const s=p[i]({...f,chain:t,retryCount:0,timeout:l});try{const t=await s.request({method:e,params:r});return m({method:e,params:r,response:t,transport:s,status:"success"}),t}catch(c){if(m({error:c,method:e,params:r,transport:s,status:"error"}),a(c))throw c;if(i===p.length-1)throw c;if(n??=p.slice(i+1).some(r=>{const{include:n,exclude:o}=r({chain:t}).config.methods||{};return n?n.includes(e):!o||!o.includes(e)}),!n)throw c;return o(i+1)}};return o()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:e=>m=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(o){const e="object"==typeof o?o:{};c({chain:t,interval:e.interval??s,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return b}},t.shouldThrow=s,t.rankTransports=c;const n=r(2731),o=r(7992),a=r(8664),i=r(922);function s(e){return!(!("code"in e)||"number"!=typeof e.code||e.code!==o.TransactionRejectedRpcError.code&&e.code!==o.UserRejectedRequestError.code&&!n.ExecutionRevertedError.nodeMessage.test(e.message)&&5e3!==e.code)}function c({chain:e,interval:t=4e3,onTransports:r,ping:n,sampleCount:o=10,timeout:i=1e3,transports:s,weights:c={}}){const{stability:u=.7,latency:d=.3}=c,l=[],f=async()=>{const c=await Promise.all(s.map(async t=>{const r=t({chain:e,retryCount:0,timeout:i}),o=Date.now();let a,s;try{await(n?n({transport:r}):r.request({method:"net_listening"})),s=1}catch{s=0}finally{a=Date.now()}return{latency:a-o,success:s}}));l.push(c),l.length>o&&l.shift();const p=Math.max(...l.map(e=>Math.max(...e.map(({latency:e})=>e)))),m=s.map((e,t)=>{const r=l.map(e=>e[t].latency),n=1-r.reduce((e,t)=>e+t,0)/r.length/p,o=l.map(e=>e[t].success),a=o.reduce((e,t)=>e+t,0)/o.length;return 0===a?[0,t]:[d*n+u*a,t]}).sort((e,t)=>t[0]-e[0]);r(m.map(([,e])=>s[e])),await(0,a.wait)(t),f()};f()}},3874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=async function({hash:e,signature:t}){const c=(0,n.isHex)(e)?e:(0,i.toHex)(e),{secp256k1:u}=await Promise.resolve().then(()=>r(8510));return`0x${(()=>{if("object"==typeof t&&"r"in t&&"s"in t){const{r:e,s:r,v:n,yParity:o}=t,i=s(Number(o??n));return new u.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(r)).addRecoveryBit(i)}const e=(0,n.isHex)(t)?t:(0,i.toHex)(t);if(65!==(0,o.size)(e))throw new Error("invalid signature length");const r=s((0,a.hexToNumber)(`0x${e.slice(130)}`));return u.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(c.substring(2)).toHex(!1)}`};const n=r(6015),o=r(2285),a=r(294),i=r(985);function s(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error("Invalid yParityOrV value")}},3940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:o}){let a=!0;const i=()=>a=!1;return(async()=>{let s;t&&(s=await e({unpoll:i}));const c=await(r?.(s))??o;await(0,n.wait)(c);const u=async()=>{a&&(await e({unpoll:i}),await(0,n.wait)(o),u())};u()})(),i};const n=r(8664)},4017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHttpRpcClient=function(e,t={}){const{url:r,headers:c}=s(e);return{async request(e){const{body:s,fetchFn:u=t.fetchFn??fetch,onRequest:d=t.onRequest,onResponse:l=t.onResponse,timeout:f=t.timeout??1e4}=e,p={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:m,method:b,signal:y}=p;try{const e=await(0,o.withTimeout)(async({signal:e})=>{const t={...p,body:Array.isArray(s)?(0,a.stringify)(s.map(e=>({jsonrpc:"2.0",id:e.id??i.idCache.take(),...e}))):(0,a.stringify)({jsonrpc:"2.0",id:s.id??i.idCache.take(),...s}),headers:{...c,"Content-Type":"application/json",...m},method:b||"POST",signal:y||(f>0?e:null)},n=new Request(r,t),o=await(d?.(n,t))??{...t,url:r};return await u(o.url??r,o)},{errorInstance:new n.TimeoutError({body:s,url:r}),timeout:f,signal:!0});let t;if(l&&await l(e),e.headers.get("Content-Type")?.startsWith("application/json"))t=await e.json();else{t=await e.text();try{t=JSON.parse(t||"{}")}catch(r){if(e.ok)throw r;t={error:t}}}if(!e.ok)throw new n.HttpRequestError({body:s,details:(0,a.stringify)(t.error)||e.statusText,headers:e.headers,status:e.status,url:r});return t}catch(e){if(e instanceof n.HttpRequestError)throw e;if(e instanceof n.TimeoutError)throw e;throw new n.HttpRequestError({body:s,cause:e,url:r})}}}},t.parseUrl=s;const n=r(2202),o=r(1208),a=r(4900),i=r(7440);function s(e){try{const t=new URL(e),r=(()=>{if(t.username){const e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}},4019:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="Ethereum Signed Message:\n"},4096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=async function(e,t){const{blockNumber:r,blockTag:b,coinType:y,name:h,gatewayUrls:g,strict:v}=t,{chain:E}=e,w=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!E)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:r,chain:E,contract:"ensUniversalResolver"})})(),x=E?.ensTlds;if(x&&!x.some(e=>h.endsWith(e)))return null;const P=null!=y?[(0,l.namehash)(h),BigInt(y)]:[(0,l.namehash)(h)];try{const t=(0,a.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",args:P}),i={address:w,abi:n.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,c.toHex)((0,f.packetToBytes)(h)),t,g??[d.localBatchGatewayUrl]],blockNumber:r,blockTag:b},u=(0,p.getAction)(e,m.readContract,"readContract"),l=await u(i);if("0x"===l[0])return null;const y=(0,o.decodeFunctionResult)({abi:n.addressResolverAbi,args:P,functionName:"addr",data:l[0]});return"0x"===y||"0x00"===(0,s.trim)(y)?null:y}catch(e){if(v)throw e;if((0,u.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(7541),a=r(6144),i=r(3454),s=r(7488),c=r(985),u=r(5971),d=r(2262),l=r(4931),f=r(846),p=r(6207),m=r(5275)},4143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentToVersionedHash=function(e){const{commitment:t,version:r=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),i=(0,o.sha256)(t,"bytes");return i.set([r],0),"bytes"===a?i:(0,n.bytesToHex)(i)};const n=r(985),o=r(7415)},4158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fillTransaction=async function(e,t){const{account:r=e.account,accessList:p,authorizationList:m,chain:b=e.chain,blobVersionedHashes:y,blobs:h,data:g,gas:v,gasPrice:E,maxFeePerBlobGas:w,maxFeePerGas:x,maxPriorityFeePerGas:P,nonce:I,nonceManager:T,to:A,type:O,value:S,...B}=t,j=await(async()=>{if(!r)return I;if(!T)return I;if(void 0!==I)return I;const t=(0,n.parseAccount)(r),o=b?b.id:await(0,u.getAction)(e,f.getChainId,"getChainId")({});return await T.consume({address:t.address,chainId:o,client:e})})();(0,d.assertRequest)(t);const R=b?.formatters?.transactionRequest?.format,_=(R||c.formatTransactionRequest)({...(0,i.extract)(B,{format:R}),account:r?(0,n.parseAccount)(r):void 0,accessList:p,authorizationList:m,blobs:h,blobVersionedHashes:y,data:g,gas:v,gasPrice:E,maxFeePerBlobGas:w,maxFeePerGas:x,maxPriorityFeePerGas:P,nonce:j,to:A,type:O,value:S},"fillTransaction");try{const r=await e.request({method:"eth_fillTransaction",params:[_]}),n=(b?.formatters?.transaction?.format||s.formatTransaction)(r.tx);delete n.blockHash,delete n.blockNumber,delete n.r,delete n.s,delete n.transactionIndex,delete n.v,delete n.yParity,n.data=n.input,n.gas&&(n.gas=t.gas??n.gas),n.gasPrice&&(n.gasPrice=t.gasPrice??n.gasPrice),n.maxFeePerBlobGas&&(n.maxFeePerBlobGas=t.maxFeePerBlobGas??n.maxFeePerBlobGas),n.maxFeePerGas&&(n.maxFeePerGas=t.maxFeePerGas??n.maxFeePerGas),n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas??n.maxPriorityFeePerGas),n.nonce&&(n.nonce=t.nonce??n.nonce);const a=await(async()=>{if("function"==typeof b?.fees?.baseFeeMultiplier){const r=await(0,u.getAction)(e,l.getBlock,"getBlock")({});return b.fees.baseFeeMultiplier({block:r,client:e,request:t})}return b?.fees?.baseFeeMultiplier??1.2})();if(a<1)throw new o.BaseFeeScalarError;const i=10**(a.toString().split(".")[1]?.length??0),c=e=>e*BigInt(Math.ceil(a*i))/BigInt(i);return n.maxFeePerGas&&!t.maxFeePerGas&&(n.maxFeePerGas=c(n.maxFeePerGas)),n.gasPrice&&!t.gasPrice&&(n.gasPrice=c(n.gasPrice)),{raw:r.raw,transaction:{from:_.from,...n}}}catch(r){throw(0,a.getTransactionError)(r,{...t,chain:e.chain})}};const n=r(9006),o=r(9143),a=r(2403),i=r(796),s=r(9473),c=r(4712),u=r(6207),d=r(4969),l=r(5364),f=r(1093)},4178:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=function(e){const t=(0,o.parseStructs)(e),r=[],i=e.length;for(let o=0;o<i;o++){const i=e[o];(0,n.isStructSignature)(i)||r.push((0,a.parseSignature)(i,t))}return r};const n=r(6303),o=r(5324),a=r(6351)},4313:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateMaxPriorityFeePerGas=async function(e,t){return c(e,t)},t.internal_estimateMaxPriorityFeePerGas=c;const n=r(9143),o=r(294),a=r(6207),i=r(5364),s=r(5651);async function c(e,t){const{block:r,chain:c=e.chain,request:u}=t||{};try{const t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){const n=r||await(0,a.getAction)(e,i.getBlock,"getBlock")({}),o=await t({block:n,client:e,request:u});if(null===o)throw new Error;return o}if(void 0!==t)return t;const n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,o.hexToBigInt)(n)}catch{const[t,o]=await Promise.all([r?Promise.resolve(r):(0,a.getAction)(e,i.getBlock,"getBlock")({}),(0,a.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const c=o-t.baseFeePerGas;return c<0n?0n:c}}},4318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=async function(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}},4324:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=function(e,t){if(!(0,o.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});if(!(0,o.isAddress)(t,{strict:!1}))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()};const n=r(6311),o=r(9742)},4401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=async function(e,t){const{address:r,blockNumber:u,blockTag:d,coinType:l=60n,gatewayUrls:f,strict:p}=t,{chain:m}=e,b=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!m)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,o.getChainContractAddress)({blockNumber:u,chain:m,contract:"ensUniversalResolver"})})();try{const t={address:b,abi:n.universalResolverReverseAbi,args:[r,l,f??[i.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:u,blockTag:d},o=(0,s.getAction)(e,c.readContract,"readContract"),[a]=await o(t);return a||null}catch(e){if(p)throw e;if((0,a.isNullUniversalResolverError)(e))return null;throw e}};const n=r(3302),o=r(3454),a=r(5971),i=r(2262),s=r(6207),c=r(5275)},4445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentsToVersionedHashes=function(e){const{commitments:t,version:r}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),a=[];for(const e of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:o,version:r}));return a};const n=r(4143)},4519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",o=0,a="",i=!1;for(let n=0;n<e.length;n++){const s=e[n];if(["(",")",","].includes(s)&&(t=!0),"("===s&&o++,")"===s&&o--,t)if(0!==o)" "!==s?(a+=s,r+=s):","!==e[n-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===s&&["event","function",""].includes(a))a="";else if(a+=s,")"===s){i=!0;break}}if(!i)throw new n.BaseError("Unable to normalize signature.");return a};const n=r(6246)},4520:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`},t.formatAbiParams=o;const n=r(6953);function o(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}},4521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=async function(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}},4537:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.receiptStatuses=void 0,t.formatTransactionReceipt=s;const n=r(294),o=r(1547),a=r(95),i=r(9473);function s(e,r){const o={...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=>(0,a.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?t.receiptStatuses[e.status]:null,type:e.type?i.transactionType[e.type]||e.type:null};return e.blobGasPrice&&(o.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(o.blobGasUsed=BigInt(e.blobGasUsed)),o}t.receiptStatuses={"0x0":"reverted","0x1":"success"},t.defineTransactionReceipt=(0,o.defineFormatter)("transactionReceipt",s)},4548:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;const n=r(4900),o=r(6246),a=r(9382);class i extends o.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:o,urls:i}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(e=>` ${(0,a.getUrl)(e)}`)],` Sender: ${o}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}t.OffchainLookupError=i;class s extends o.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,a.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`],name:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class c extends o.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=c},4552:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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}}t.LruMap=r},4592:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBytes=function(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?u(e,r):"bigint"===n?s(e,r):"boolean"===n?c(e,r):"string"===n?d(e,r):(0,i.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=c,t.bytesToNumber=u,t.bytesToString=d;const n=r(5366),o=r(7488),a=r(294),i=r(985);function s(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});const r=(0,i.bytesToHex)(e,t);return(0,a.hexToBigInt)(r,t)}function c(e,t={}){let r=e;if(void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return Boolean(r[0])}function u(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});const r=(0,i.bytesToHex)(e,t);return(0,a.hexToNumber)(r,t)}function d(e,t={}){let r=e;return void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),(new TextDecoder).decode(r)}},4593:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=async function(e){return"local"===e.account?.type?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,n.checksumAddress)(e))};const n=r(8728)},4612:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=function(e,t){const r="string"==typeof t?(0,d.hexToBytes)(t):t,o=(0,a.createCursor)(r);if(0===(0,i.size)(r)&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,i.size)(t)&&(0,i.size)(t)<32)throw new n.AbiDecodingDataSizeTooSmallError({data:"string"==typeof t?t:(0,l.bytesToHex)(t),params:e,size:(0,i.size)(t)});let s=0;const c=[];for(let t=0;t<e.length;++t){const r=e[t];o.setPosition(s);const[n,a]=p(o,r,{staticPosition:0});s+=a,c.push(n)}return c};const n=r(6953),o=r(8728),a=r(6323),i=r(2285),s=r(7688),c=r(7488),u=r(4592),d=r(7655),l=r(985),f=r(2732);function p(e,t,{staticPosition:r}){const a=(0,f.getArrayComponents)(t.type);if(a){const[n,o]=a;return function(e,t,{length:r,staticPosition:n}){if(!r){const r=n+(0,u.bytesToNumber)(e.readBytes(b)),o=r+m;e.setPosition(r);const a=(0,u.bytesToNumber)(e.readBytes(m)),i=y(t);let s=0;const c=[];for(let r=0;r<a;++r){e.setPosition(o+(i?32*r:s));const[n,a]=p(e,t,{staticPosition:o});s+=a,c.push(n)}return e.setPosition(n+32),[c,32]}if(y(t)){const o=n+(0,u.bytesToNumber)(e.readBytes(b)),a=[];for(let n=0;n<r;++n){e.setPosition(o+32*n);const[r]=p(e,t,{staticPosition:o});a.push(r)}return e.setPosition(n+32),[a,32]}let o=0;const a=[];for(let i=0;i<r;++i){const[r,i]=p(e,t,{staticPosition:n+o});o+=i,a.push(r)}return[a,o]}(e,{...t,type:o},{length:n,staticPosition:r})}if("tuple"===t.type)return function(e,t,{staticPosition:r}){const n=0===t.components.length||t.components.some(({name:e})=>!e),o=n?[]:{};let a=0;if(y(t)){const i=r+(0,u.bytesToNumber)(e.readBytes(b));for(let r=0;r<t.components.length;++r){const s=t.components[r];e.setPosition(i+a);const[c,u]=p(e,s,{staticPosition:i});a+=u,o[n?r:s?.name]=c}return e.setPosition(r+32),[o,32]}for(let i=0;i<t.components.length;++i){const s=t.components[i],[c,u]=p(e,s,{staticPosition:r});o[n?i:s?.name]=c,a+=u}return[o,a]}(e,t,{staticPosition:r});if("address"===t.type)return function(e){const t=e.readBytes(32);return[(0,o.checksumAddress)((0,l.bytesToHex)((0,s.sliceBytes)(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[(0,u.bytesToBool)(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){const[n,o]=t.type.split("bytes");if(!o){const t=(0,u.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);const n=(0,u.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const o=e.readBytes(n);return e.setPosition(r+32),[(0,l.bytesToHex)(o),32]}return[(0,l.bytesToHex)(e.readBytes(Number.parseInt(o,10),32)),32]}(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[n>48?(0,u.bytesToBigInt)(o,{signed:r}):(0,u.bytesToNumber)(o,{signed:r}),32]}(e,t);if("string"===t.type)return function(e,{staticPosition:t}){const r=t+(0,u.bytesToNumber)(e.readBytes(32));e.setPosition(r);const n=(0,u.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];const o=e.readBytes(n,32),a=(0,u.bytesToString)((0,c.trim)(o));return e.setPosition(t+32),[a,32]}(e,{staticPosition:r});throw new n.InvalidAbiDecodingTypeError(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const m=32,b=32;function y(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(y);const r=(0,f.getArrayComponents)(e.type);return!(!r||!y({...e,type:r[1]}))}},4624:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,o.size)(e)};const n=r(6015),o=r(2285)},4661:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=t.buildRequest=t.verifyAuthorization=t.serializeAuthorizationList=t.recoverAuthorizationAddress=t.hashAuthorization=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.parseEventLogs=t.getAbiItem=t.formatAbiItemWithArgs=t.formatAbiParams=t.formatAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.publicKeyToAddress=t.parseAccount=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=void 0,t.ripemd160=t.keccak256=t.isHash=t.getAction=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.defineFormatter=t.extract=t.formatBlock=t.defineBlock=t.getTransactionError=t.getNodeError=t.containsNodeError=t.getEstimateGasError=t.getContractError=t.getCallError=t.toRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=void 0,t.validateTypedData=t.serializeTypedData=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.serializeErc8010Signature=t.serializeErc6492Signature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseErc8010Signature=t.parseErc6492Signature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashMessage=t.getWebSocketRpcClient=t.socketClientCache=t.getSocketRpcClient=t.getHttpRpcClient=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.nonceManager=t.createNonceManager=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=void 0;var n=r(6524);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var o=r(9006);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return o.parseAccount}});var a=r(7911);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return a.publicKeyToAddress}});var i=r(4612);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return i.decodeAbiParameters}});var s=r(8181);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var c=r(8182);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return c.decodeEventLog}});var u=r(3064);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return u.decodeFunctionData}});var d=r(7541);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return d.decodeFunctionResult}});var l=r(2732);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return l.encodeAbiParameters}});var f=r(4687);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var p=r(7757);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return p.encodeErrorResult}});var m=r(378);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return m.encodeEventTopics}});var b=r(6144);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return b.encodeFunctionData}});var y=r(4829);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return y.encodeFunctionResult}});var h=r(5020);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return h.encodePacked}});var g=r(4520);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return g.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return g.formatAbiParams}});var v=r(449);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return v.formatAbiItemWithArgs}});var E=r(775);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return E.getAbiItem}});var w=r(48);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return w.parseEventLogs}});var x=r(8728);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return x.getAddress}});var P=r(8666);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return P.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return P.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return P.getCreateAddress}});var I=r(9742);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return I.isAddress}});var T=r(4324);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return T.isAddressEqual}});var A=r(7474);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return A.hashAuthorization}});var O=r(1184);Object.defineProperty(t,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return O.recoverAuthorizationAddress}});var S=r(2940);Object.defineProperty(t,"serializeAuthorizationList",{enumerable:!0,get:function(){return S.serializeAuthorizationList}});var B=r(1769);Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return B.verifyAuthorization}});var j=r(5e3);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return j.buildRequest}});var R=r(5678);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return R.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return R.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return R.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return R.offchainLookupSignature}});var _=r(2779);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return _.assertCurrentChain}});var C=r(5731);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return C.defineChain}});var M=r(2057);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return M.extractChain}});var k=r(3454);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return k.getChainContractAddress}});var F=r(6776);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return F.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return F.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return F.concatHex}});var N=r(7085);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return N.isBytes}});var U=r(6015);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return U.isHex}});var z=r(8987);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return z.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return z.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return z.padHex}});var H=r(2285);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return H.size}});var L=r(7688);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return L.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return L.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return L.sliceHex}});var D=r(7488);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return D.trim}});var $=r(4592);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return $.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return $.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return $.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return $.fromBytes}});var q=r(294);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return q.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return q.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return q.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return q.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return q.hexToString}});var G=r(7349);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return G.fromRlp}});var V=r(7655);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return V.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return V.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return V.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return V.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return V.toBytes}});var W=r(985);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return W.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return W.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return W.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return W.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return W.toHex}});var K=r(7926);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return K.toRlp}});var Z=r(1403);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return Z.getCallError}});var J=r(6173);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return J.getContractError}});var Y=r(3642);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return Y.getEstimateGasError}});var X=r(6339);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return X.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return X.getNodeError}});var Q=r(2403);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return Q.getTransactionError}});var ee=r(8900);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return ee.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return ee.formatBlock}});var te=r(796);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return te.extract}});var re=r(1547);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return re.defineFormatter}});var ne=r(95);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return ne.formatLog}});var oe=r(9473);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return oe.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return oe.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return oe.transactionType}});var ae=r(4537);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ae.defineTransactionReceipt}});var ie=r(4712);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return ie.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return ie.formatTransactionRequest}});var se=r(6207);Object.defineProperty(t,"getAction",{enumerable:!0,get:function(){return se.getAction}});var ce=r(4624);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ce.isHash}});var ue=r(3625);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return ue.keccak256}});var de=r(2830);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return de.ripemd160}});var le=r(7415);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return le.sha256}});var fe=r(325);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return fe.toEventHash}});var pe=r(7144);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return pe.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return pe.toEventSelector}});var me=r(3467);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return me.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return me.toEventSignature}});var be=r(2461);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return be.toFunctionHash}});var ye=r(1456);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return ye.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ye.toFunctionSelector}});var he=r(8611);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return he.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return he.toFunctionSignature}});var ge=r(1519);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return ge.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return ge.nonceManager}});var ve=r(2162);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return ve.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return ve.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return ve.integerRegex}});var Ee=r(8692);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return Ee.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return Ee.rpc}});var we=r(4017);Object.defineProperty(t,"getHttpRpcClient",{enumerable:!0,get:function(){return we.getHttpRpcClient}});var xe=r(6228);Object.defineProperty(t,"getSocketRpcClient",{enumerable:!0,get:function(){return xe.getSocketRpcClient}}),Object.defineProperty(t,"socketClientCache",{enumerable:!0,get:function(){return xe.socketClientCache}});var Pe=r(1370);Object.defineProperty(t,"getWebSocketRpcClient",{enumerable:!0,get:function(){return Pe.getWebSocketRpcClient}});var Ie=r(5336);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return Ie.hashMessage}});var Te=r(9984);Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return Te.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return Te.hashTypedData}});var Ae=r(2803);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return Ae.isErc6492Signature}});var Oe=r(527);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return Oe.isErc8010Signature}});var Se=r(102);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return Se.parseErc6492Signature}});var Be=r(3198);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return Be.parseErc8010Signature}});var je=r(2374);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return je.recoverAddress}});var Re=r(593);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return Re.recoverMessageAddress}});var _e=r(3874);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return _e.recoverPublicKey}});var Ce=r(7948);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return Ce.recoverTypedDataAddress}});var Me=r(2599);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return Me.serializeErc6492Signature}});var ke=r(595);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return ke.serializeErc8010Signature}});var Fe=r(5599);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return Fe.verifyHash}});var Ne=r(8428);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return Ne.verifyMessage}});var Ue=r(4803);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return Ue.verifyTypedData}});var ze=r(4900);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return ze.stringify}});var He=r(4969);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return He.assertRequest}});var Le=r(7964);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return Le.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return Le.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return Le.assertTransactionLegacy}});var De=r(8465);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return De.getSerializedTransactionType}});var $e=r(9788);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return $e.getTransactionType}});var qe=r(8057);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return qe.parseTransaction}});var Ge=r(1270);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return Ge.serializeAccessList}});var Ve=r(5886);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return Ve.serializeTransaction}});var We=r(8377);Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return We.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return We.validateTypedData}});var Ke=r(6117);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return Ke.formatEther}});var Ze=r(5277);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return Ze.formatGwei}});var Je=r(1902);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return Je.formatUnits}});var Ye=r(2819);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return Ye.parseEther}});var Xe=r(7723);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return Xe.parseGwei}});var Qe=r(4800);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return Qe.parseUnits}})},4678:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=async function(e,t){const{account:r=e.account,prepare:p=!0}=t,m=r?(0,n.parseAccount)(r):void 0,b=Array.isArray(p)?p:"local"!==m?.type?["blobVersionedHashes"]:void 0;try{const r=await(async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await(0,a.recoverAuthorizationAddress)({authorization:t.authorizationList[0]}).catch(()=>{throw new o.BaseError("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:n,authorizationList:s,blobs:y,blobVersionedHashes:h,blockNumber:g,blockTag:v,data:E,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:A,value:O,stateOverride:S,...B}=p?await(0,f.prepareTransactionRequest)(e,{...t,parameters:b,to:r}):t;if(w&&t.gas!==w)return w;const j=("bigint"==typeof g?(0,i.numberToHex)(g):void 0)||v,R=(0,d.serializeStateOverride)(S);(0,l.assertRequest)(t);const _=e.chain?.formatters?.transactionRequest?.format,C=(_||u.formatTransactionRequest)({...(0,c.extract)(B,{format:_}),account:m,accessList:n,authorizationList:s,blobs:y,blobVersionedHashes:h,data:E,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:A,to:r,value:O},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:R?[C,j??e.experimental_blockTag??"latest",R]:j?[C,j]:[C]}))}catch(r){throw(0,s.getEstimateGasError)(r,{...t,account:m,chain:e.chain})}};const n=r(9006),o=r(6246),a=r(1184),i=r(985),s=r(3642),c=r(796),u=r(4712),d=r(120),l=r(4969),f=r(8807)},4687:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=function(e){const{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;const c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new n.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in c))throw new n.AbiConstructorParamsNotFoundError({docsPath:i});if(!c.inputs||0===c.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:i});const u=(0,a.encodeAbiParameters)(c.inputs,r);return(0,o.concatHex)([s,u])};const n=r(6953),o=r(6776),a=r(2732),i="/docs/contract/encodeDeployData"},4697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendCallsSync=async function(e,t){const{chain:r=e.chain}=t,a=t.timeout??Math.max(3*(r?.blockTime??0),5e3),i=await(0,n.sendCalls)(e,t);return await(0,o.waitForCallsStatus)(e,{...t,id:i.id,timeout:a})};const n=r(8018),o=r(138)},4698:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;const n=r(6246);class o extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=o;class a extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}t.ChainMismatchError=a;class i extends n.BaseError{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n"),{name:"ChainNotFoundError"})}}t.ChainNotFoundError=i;class s extends n.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class c extends n.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}t.InvalidChainIdError=c},4712:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.rpcTransactionType=void 0,t.formatTransactionRequest=a;const n=r(985),o=r(1547);function a(e,r){const o={};return void 0!==e.authorizationList&&(o.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,n.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,n.numberToHex)(BigInt(e.s)):e.s,chainId:(0,n.numberToHex)(e.chainId),nonce:(0,n.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(o.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(o.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?o.blobs=e.blobs.map(e=>(0,n.bytesToHex)(e)):o.blobs=e.blobs),void 0!==e.data&&(o.data=e.data),e.account&&(o.from=e.account.address),void 0!==e.from&&(o.from=e.from),void 0!==e.gas&&(o.gas=(0,n.numberToHex)(e.gas)),void 0!==e.gasPrice&&(o.gasPrice=(0,n.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(o.maxFeePerBlobGas=(0,n.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(o.maxFeePerGas=(0,n.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=(0,n.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(o.nonce=(0,n.numberToHex)(e.nonce)),void 0!==e.to&&(o.to=e.to),void 0!==e.type&&(o.type=t.rpcTransactionType[e.type]),void 0!==e.value&&(o.value=(0,n.numberToHex)(e.value)),o}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},t.defineTransactionRequest=(0,o.defineFormatter)("transactionRequest",a)},4800:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new n.InvalidDecimalNumberError({value:e});let[r,o="0"]=e.split(".");const a=r.startsWith("-");if(a&&(r=r.slice(1)),o=o.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${o}`))&&(r=`${BigInt(r)+1n}`),o="";else if(o.length>t){const[e,n,a]=[o.slice(0,t-1),o.slice(t-1,t),o.slice(t)],i=Math.round(Number(`${n}.${a}`));o=i>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${i}`,o.length>t&&(o=o.slice(1),r=`${BigInt(r)+1n}`),o=o.slice(0,t)}else o=o.padEnd(t,"0");return BigInt(`${a?"-":""}${r}${o}`)};const n=r(233)},4803:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=async function(e){const{address:t,domain:r,message:i,primaryType:s,signature:c,types:u}=e;return(0,o.isAddressEqual)((0,n.getAddress)(t),await(0,a.recoverTypedDataAddress)({domain:r,message:i,primaryType:s,signature:c,types:u}))};const n=r(8728),o=r(4324),a=r(7948)},4829:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=function(e){const{abi:t,functionName:r,result:s}=e;let c=t[0];if(r){const e=(0,a.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:i});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:i});const u=(()=>{if(0===c.outputs.length)return[];if(1===c.outputs.length)return[s];if(Array.isArray(s))return s;throw new n.InvalidArrayError(s)})();return(0,o.encodeAbiParameters)(c.outputs,u)};const n=r(6953),o=r(2732),a=r(775),i="/docs/contract/encodeFunctionResult"},4839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},4900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=(e,t,r)=>JSON.stringify(e,(e,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},4931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,a.bytesToHex)(t);const r=e.split(".");for(let e=r.length-1;e>=0;e-=1){const a=(0,s.encodedLabelToLabelhash)(r[e]),c=a?(0,o.toBytes)(a):(0,i.keccak256)((0,o.stringToBytes)(r[e]),"bytes");t=(0,i.keccak256)((0,n.concat)([t,c]),"bytes")}return(0,a.bytesToHex)(t)};const n=r(6776),o=r(7655),a=r(985),i=r(3625),s=r(2627)},4967:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=f,t.pow=function(e,t,r){return v(P(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},t.invert=p,t.tonelliShanks=y,t.FpSqrt=h,t.validateField=function(e){const t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,o.validateObject)(e,t)},t.FpPow=v,t.FpInvertBatch=E,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?p(r,e.ORDER):e.inv(r))},t.FpLegendre=w,t.FpIsSquare=function(e,t){return 1===w(e,t)},t.nLength=x,t.Field=P,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){const n=(e=(0,o.ensureBytes)("privateHash",e)).length,a=x(t).nByteLength+8;if(a<24||n<a||n>1024)throw new Error("hashToPrivateScalar: expected "+a+"-1024 bytes of input, got "+n);return f(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=I,t.getMinHashLength=T,t.mapHashToField=function(e,t,r=!1){const n=e.length,a=I(t),s=T(t);if(n<16||n<s||n>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+n);const c=f(r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e),t-i)+i;return r?(0,o.numberToBytesLE)(c,a):(0,o.numberToBytesBE)(c,a)};const n=r(9175),o=r(1484),a=BigInt(0),i=BigInt(1),s=BigInt(2),c=BigInt(3),u=BigInt(4),d=BigInt(5),l=BigInt(8);function f(e,t){const r=e%t;return r>=a?r:t+r}function p(e,t){if(e===a)throw new Error("invert: expected non-zero number");if(t<=a)throw new Error("invert: expected positive modulus, got "+t);let r=f(e,t),n=t,o=a,s=i,c=i,u=a;for(;r!==a;){const e=n/r,t=n%r,a=o-c*e,i=s-u*e;n=r,r=t,o=c,s=u,c=a,u=i}if(n!==i)throw new Error("invert: does not exist");return f(o,t)}function m(e,t){const r=(e.ORDER+i)/u,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function b(e,t){const r=(e.ORDER-d)/l,n=e.mul(t,s),o=e.pow(n,r),a=e.mul(t,o),i=e.mul(e.mul(a,s),o),c=e.mul(a,e.sub(i,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function y(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-i,r=0;for(;t%s===a;)t/=s,r++;let n=s;const o=P(e);for(;1===w(o,n);)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return m;let c=o.pow(n,t);const u=(t+i)/s;return function(e,n){if(e.is0(n))return n;if(1!==w(e,n))throw new Error("Cannot find square root");let o=r,a=e.mul(e.ONE,c),s=e.pow(n,t),d=e.pow(n,u);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===o)throw new Error("Cannot find square root");const n=i<<BigInt(o-t-1),c=e.pow(a,n);o=t,a=e.sqr(c),s=e.mul(s,a),d=e.mul(d,c)}return d}}function h(e){return e%u===c?m:e%l===d?b:y(e)}t.isNegativeLE=(e,t)=>(f(e,t)&i)===i;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e,t,r){if(r<a)throw new Error("invalid exponent, negatives unsupported");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,o=t;for(;r>a;)r&i&&(n=e.mul(n,o)),o=e.sqr(o),r>>=i;return n}function E(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),o=t.reduce((t,r,o)=>e.is0(r)?t:(n[o]=t,e.mul(t,r)),e.ONE),a=e.inv(o);return t.reduceRight((t,r,o)=>e.is0(r)?t:(n[o]=e.mul(t,n[o]),e.mul(t,r)),a),n}function w(e,t){const r=(e.ORDER-i)/s,n=e.pow(t,r),o=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),c=e.eql(n,e.neg(e.ONE));if(!o&&!a&&!c)throw new Error("invalid Legendre symbol result");return o?1:a?0:-1}function x(e,t){void 0!==t&&(0,n.anumber)(t);const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function P(e,t,r=!1,n={}){if(e<=a)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:c}=x(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let u;const d=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:c,MASK:(0,o.bitMask)(s),ZERO:a,ONE:i,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return a<=t&&t<e},is0:e=>e===a,isOdd:e=>(e&i)===i,neg:t=>f(-t,e),eql:(e,t)=>e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>v(d,e,t),div:(t,r)=>f(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(t=>(u||(u=h(e)),u(d,t))),toBytes:e=>r?(0,o.numberToBytesLE)(e,c):(0,o.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return r?(0,o.bytesToNumberLE)(e):(0,o.bytesToNumberBE)(e)},invertBatch:e=>E(d,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(d)}function I(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 T(e){const t=I(e);return t+Math.ceil(t/2)}},4969:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=function(e){const{account:t,maxFeePerGas:r,maxPriorityFeePerGas:c,to:u}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new a.InvalidAddressError({address:d.address});if(u&&!(0,s.isAddress)(u))throw new a.InvalidAddressError({address:u});if(r&&r>o.maxUint256)throw new i.FeeCapTooHighError({maxFeePerGas:r});if(c&&r&&c>r)throw new i.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:c})};const n=r(9006),o=r(2856),a=r(6311),i=r(2731),s=r(9742)},5e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=function(e,t={}){return async(r,l={})=>{const{dedupe:f=!1,methods:p,retryDelay:m=150,retryCount:b=3,uid:y}={...t,...l},{method:h}=r;if(p?.exclude?.includes(h))throw new a.MethodNotSupportedRpcError(new Error("method not supported"),{method:h});if(p?.include&&!p.include.includes(h))throw new a.MethodNotSupportedRpcError(new Error("method not supported"),{method:h});const g=f?(0,i.stringToHex)(`${y}.${(0,u.stringify)(r)}`):void 0;return(0,s.withDedupe)(()=>(0,c.withRetry)(async()=>{try{return await e(r)}catch(e){const t=e;switch(t.code){case a.ParseRpcError.code:throw new a.ParseRpcError(t);case a.InvalidRequestRpcError.code:throw new a.InvalidRequestRpcError(t);case a.MethodNotFoundRpcError.code:throw new a.MethodNotFoundRpcError(t,{method:r.method});case a.InvalidParamsRpcError.code:throw new a.InvalidParamsRpcError(t);case a.InternalRpcError.code:throw new a.InternalRpcError(t);case a.InvalidInputRpcError.code:throw new a.InvalidInputRpcError(t);case a.ResourceNotFoundRpcError.code:throw new a.ResourceNotFoundRpcError(t);case a.ResourceUnavailableRpcError.code:throw new a.ResourceUnavailableRpcError(t);case a.TransactionRejectedRpcError.code:throw new a.TransactionRejectedRpcError(t);case a.MethodNotSupportedRpcError.code:throw new a.MethodNotSupportedRpcError(t,{method:r.method});case a.LimitExceededRpcError.code:throw new a.LimitExceededRpcError(t);case a.JsonRpcVersionUnsupportedError.code:throw new a.JsonRpcVersionUnsupportedError(t);case a.UserRejectedRequestError.code:throw new a.UserRejectedRequestError(t);case a.UnauthorizedProviderError.code:throw new a.UnauthorizedProviderError(t);case a.UnsupportedProviderMethodError.code:throw new a.UnsupportedProviderMethodError(t);case a.ProviderDisconnectedError.code:throw new a.ProviderDisconnectedError(t);case a.ChainDisconnectedError.code:throw new a.ChainDisconnectedError(t);case a.SwitchChainError.code:throw new a.SwitchChainError(t);case a.UnsupportedNonOptionalCapabilityError.code:throw new a.UnsupportedNonOptionalCapabilityError(t);case a.UnsupportedChainIdError.code:throw new a.UnsupportedChainIdError(t);case a.DuplicateIdError.code:throw new a.DuplicateIdError(t);case a.UnknownBundleIdError.code:throw new a.UnknownBundleIdError(t);case a.BundleTooLargeError.code:throw new a.BundleTooLargeError(t);case a.AtomicReadyWalletRejectedUpgradeError.code:throw new a.AtomicReadyWalletRejectedUpgradeError(t);case a.AtomicityNotSupportedError.code:throw new a.AtomicityNotSupportedError(t);case 5e3:throw new a.UserRejectedRequestError(t);default:if(e instanceof n.BaseError)throw e;throw new a.UnknownRpcError(t)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.HttpRequestError){const e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return(1<<e)*m},retryCount:b,shouldRetry:({error:e})=>d(e)}),{enabled:f,id:g})}},t.shouldRetry=d;const n=r(6246),o=r(2202),a=r(7992),i=r(985),s=r(3716),c=r(1525),u=r(4900);function d(e){return"code"in e&&"number"==typeof e.code?-1===e.code||e.code===a.LimitExceededRpcError.code||e.code===a.InternalRpcError.code:!(e instanceof o.HttpRequestError&&e.status)||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}},5020:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const o=e[n],a=t[n];r.push(d(o,a))}return(0,i.concatHex)(r)};const n=r(6953),o=r(6311),a=r(9742),i=r(6776),s=r(8987),c=r(985),u=r(2162);function d(e,t,r=!1){if("address"===e){const e=t;if(!(0,a.isAddress)(e))throw new o.InvalidAddressError({address:e});return(0,s.pad)(e.toLowerCase(),{size:r?32:null})}if("string"===e)return(0,c.stringToHex)(t);if("bytes"===e)return t;if("bool"===e)return(0,s.pad)((0,c.boolToHex)(t),{size:r?32:1});const l=e.match(u.integerRegex);if(l){const[e,n,o="256"]=l,a=Number.parseInt(o,10)/8;return(0,c.numberToHex)(t,{size:r?32:a,signed:"int"===n})}const f=e.match(u.bytesRegex);if(f){const[e,o]=f;if(Number.parseInt(o,10)!==(t.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(o,10),givenSize:(t.length-2)/2});return(0,s.pad)(t,{dir:"right",size:r?32:null})}const p=e.match(u.arrayRegex);if(p&&Array.isArray(t)){const[e,r]=p,n=[];for(let e=0;e<t.length;e++)n.push(d(r,t[e],!0));return 0===n.length?"0x":(0,i.concatHex)(n)}throw new n.UnsupportedPackedAbiType(e)}},5079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=function({mode:e}){return t=>{const r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,o.dumpState)(r),getAutomine:()=>(0,a.getAutomine)(r),getTxpoolContent:()=>(0,i.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,c.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,d.inspectTxpool)(r),loadState:e=>(0,l.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,p.removeBlockTimestampInterval)(r),reset:e=>(0,m.reset)(r,e),revert:e=>(0,b.revert)(r,e),sendUnsignedTransaction:e=>(0,y.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,h.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,E.setBlockTimestampInterval)(r,e),setCode:e=>(0,w.setCode)(r,e),setCoinbase:e=>(0,x.setCoinbase)(r,e),setIntervalMining:e=>(0,P.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,I.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,T.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,A.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,O.setNextBlockTimestamp)(r,e),setNonce:e=>(0,S.setNonce)(r,e),setRpcUrl:e=>(0,B.setRpcUrl)(r,e),setStorageAt:e=>(0,j.setStorageAt)(r,e),snapshot:()=>(0,R.snapshot)(r),stopImpersonatingAccount:e=>(0,_.stopImpersonatingAccount)(r,e)}}};const n=r(9771),o=r(79),a=r(1684),i=r(1881),s=r(7200),c=r(4318),u=r(9283),d=r(6394),l=r(181),f=r(1449),p=r(1372),m=r(7039),b=r(9624),y=r(6839),h=r(5664),g=r(5669),v=r(2407),E=r(6998),w=r(7069),x=r(5616),P=r(629),I=r(1246),T=r(1496),A=r(6785),O=r(7174),S=r(7477),B=r(2820),j=r(6462),R=r(7238),_=r(552)},5118:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.universalSignatureValidatorAbi=t.universalSignatureValidatorBytecode=t.magicBytes=void 0,t.assert=i,t.from=function(e){return"string"==typeof e?s(e):e},t.unwrap=s,t.wrap=function(e){const{data:r,signature:o,to:i}=e;return a.concat(n.encode(n.from("address, bytes, bytes"),[i,r,o]),t.magicBytes)},t.validate=function(e){try{return i(e),!0}catch{return!1}};const n=r(2037),o=r(7560),a=r(9274);function i(e){if(a.slice(e,-32)!==t.magicBytes)throw new c(e)}function s(e){i(e);const[t,r,o]=n.decode(n.from("address, bytes, bytes"),e);return{data:r,signature:o,to:t}}t.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.universalSignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];class c extends o.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=c},5145:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5176:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:c=!1,onBlock:u,onError:d,includeTransactions:l,poll:f,pollingInterval:p=e.pollingInterval}){const m=void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),b=l??!1;let y;return m?(()=>{const l=(0,i.stringify)(["watchBlocks",e.uid,t,r,c,b,p]);return(0,o.observe)(l,{onBlock:u,onError:d},o=>(0,a.poll)(async()=>{try{const a=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:b});if(null!==a.number&&null!=y?.number){if(a.number===y.number)return;if(a.number-y.number>1&&r)for(let t=y?.number+1n;t<a.number;t++){const r=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t,includeTransactions:b});o.onBlock(r,y),y=r}}(null==y?.number||"pending"===t&&null==a?.number||null!==a.number&&a.number>y.number)&&(o.onBlock(a,y),y=a)}catch(e){o.onError?.(e)}},{emitOnBegin:c,interval:p}))})():(()=>{let r=!0,o=!0,a=()=>r=!1;return(async()=>{try{c&&(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:b}).then(e=>{r&&o&&(u(e,void 0),o=!1)}).catch(d);const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:l}=await i.subscribe({params:["newHeads"],async onData(t){if(!r)return;const a=await(0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t.result?.number,includeTransactions:b}).catch(()=>{});r&&(u(a,y),o=!1,y=a)},onError(e){d?.(e)}});a=l,r||a()}catch(e){d?.(e)}})(),()=>a()})()};const n=r(6207),o=r(2093),a=r(3940),i=r(4900),s=r(5364)},5190:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=function(e){const{r:t,s:r,v:a,yParity:i}=e;let s=r;if(1===Number(i??a-27n)){const e=(0,n.hexToBytes)(r);e[0]|=128,s=(0,o.bytesToHex)(e)}return{r:t,yParityAndS:s}};const n=r(7655),o=r(985)},5195:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,i.parseAbiParameter)(e,{modifiers:o.modifiers});else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if(!(0,o.isStructSignature)(n)){t=(0,i.parseAbiParameter)(n,{modifiers:o.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t};const n=r(6992),o=r(6303),a=r(5324),i=r(6351)},5201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromBlobs=function(e){const t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,o.hexToBytes)(e)):e.blobs,i=r.reduce((e,t)=>e+t.length,0),s=(0,n.createCursor)(new Uint8Array(i));let c=!0;for(const e of r){const t=(0,n.createCursor)(e);for(;c&&t.position<e.length;){t.incrementPosition(1);let r=31;e.length-t.position<31&&(r=e.length-t.position);for(const e in Array.from({length:r})){const e=t.readByte();if(128===e&&!t.inspectBytes(t.remaining).includes(128)){c=!1;break}s.pushByte(e)}}}const u=s.bytes.slice(0,s.position);return"hex"===t?(0,a.bytesToHex)(u):u};const n=r(6323),o=r(7655),a=r(985)},5208:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=function(e){const{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(o.publicActions)};const n=r(8693),o=r(2550)},5275:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=async function(e,t){const{abi:r,address:c,args:u,functionName:d,...l}=t,f=(0,o.encodeFunctionData)({abi:r,args:u,functionName:d});try{const{data:t}=await(0,i.getAction)(e,s.call,"call")({...l,data:f,to:c});return(0,n.decodeFunctionResult)({abi:r,args:u,functionName:d,data:t||"0x"})}catch(e){throw(0,a.getContractError)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:d})}};const n=r(7541),o=r(6144),a=r(6173),i=r(6207),s=r(7141)},5277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=function(e,t="wei"){return(0,o.formatUnits)(e,n.gweiUnits[t])};const n=r(4839),o=r(1902)},5290:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:r,wait:a=0,sort:i}){const s=async()=>{const t=u();c();const r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let r=0;r<t.length;r++){const{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){const{reject:n}=t[r];n?.(e)}})},c=()=>o.delete(t),u=()=>o.get(t)||[],d=e=>o.set(t,[...u(),e]);return{flush:c,async schedule(e){const{promise:t,resolve:o,reject:i}=(0,n.withResolvers)(),c=r?.([...u().map(({args:e})=>e),e]);return c&&s(),u().length>0?(d({args:e,resolve:o,reject:i}),t):(d({args:e,resolve:o,reject:i}),setTimeout(s,a),t)}}};const n=r(2344),o=new Map},5304:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=async function(e,t){const{abi:r,address:c,args:u,functionName:d,dataSuffix:l=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...f}=t,p=(0,o.encodeFunctionData)({abi:r,args:u,functionName:d});try{return await(0,i.getAction)(e,s.estimateGas,"estimateGas")({data:`${p}${l?l.replace("0x",""):""}`,to:c,...f})}catch(e){const t=f.account?(0,n.parseAccount)(f.account):void 0;throw(0,a.getContractError)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/estimateContractGas",functionName:d,sender:t?.address})}};const n=r(9006),o=r(6144),a=r(6173),i=r(6207),s=r(4678)},5324:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=function(e){const t={},r=e.length;for(let n=0;n<r;n++){const r=e[n];if(!(0,c.isStructSignature)(r))continue;const o=(0,c.execStructSignature)(r);if(!o)throw new i.InvalidSignatureError({signature:r,type:"struct"});const a=o.properties.split(";"),s=[],d=a.length;for(let e=0;e<d;e++){const t=a[e].trim();if(!t)continue;const r=(0,u.parseAbiParameter)(t,{type:"struct"});s.push(r)}if(!s.length)throw new i.InvalidStructSignatureError({signature:r});t[o.name]=s}const n={},o=Object.entries(t),a=o.length;for(let e=0;e<a;e++){const[r,a]=o[e];n[r]=l(a,t)}return n};const n=r(8651),o=r(3200),a=r(6992),i=r(1923),s=r(7872),c=r(6303),u=r(6351),d=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function l(e=[],t={},r=new Set){const i=[],c=e.length;for(let f=0;f<c;f++){const c=e[f];if(n.isTupleRegex.test(c.type))i.push(c);else{const e=(0,n.execTyped)(d,c.type);if(!e?.type)throw new a.InvalidAbiTypeParameterError({abiParameter:c});const{array:f,type:p}=e;if(p in t){if(r.has(p))throw new s.CircularReferenceError({type:p});i.push({...c,type:`tuple${f??""}`,components:l(t[p],t,new Set([...r,p]))})}else{if(!(0,u.isSolidityType)(p))throw new o.UnknownTypeError({type:p});i.push(c)}}}return i}},5336:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=function(e,t){return(0,n.keccak256)((0,o.toPrefixedMessage)(e),t)};const n=r(3625),o=r(7707)},5339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Eip712DomainNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}t.Eip712DomainNotFoundError=o},5364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=async function(e,{blockHash:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest",includeTransactions:s}={}){const c=s??!1,u=void 0!==r?(0,o.numberToHex)(r):void 0;let d=null;if(d=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||i,c]},{dedupe:Boolean(u)}),!d)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||a.formatBlock)(d,"getBlock")};const n=r(9642),o=r(985),a=r(8900)},5366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=void 0;const n=r(6246);class o extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number "${o}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=o;class a extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=a;class i extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=i;class s extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}t.InvalidHexValueError=s;class c extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}t.SizeOverflowError=c},5375:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidBytesLengthError=t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;const n=r(6246);class o extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=o;class a extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=a;class i extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}t.InvalidBytesLengthError=i},5424:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e,amount:BigInt(e.amount),index:Number(e.index),validatorIndex:Number(e.validatorIndex)}},t.toRpc=function(e){return{address:e.address,amount:n.fromNumber(e.amount),index:n.fromNumber(e.index),validatorIndex:n.fromNumber(e.validatorIndex)}};const n=r(9274)},5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}},5446:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;const n=r(6246);class o extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}t.UrlRequiredError=o},5448:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toCoinType=function(e){if(1===e)return 60n;if(e>=o||e<0)throw new n.EnsInvalidChainIdError({chainId:e});return BigInt((2147483648|e)>>>0)};const n=r(8047),o=2147483648},5549:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},5599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=async function({address:e,hash:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverAddress)({hash:t,signature:r}))};const n=r(8728),o=r(4324),a=r(2374)},5603:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.45.0"},5616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=async function(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}},5617:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=function(e){return e}},5651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=async function(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}},5664:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=async function(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}},5665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return JSON.parse(e,(e,n)=>{const o=n;return"string"==typeof o&&o.endsWith(r)?BigInt(o.slice(0,-r.length)):"function"==typeof t?t(e,o):o})},t.stringify=function(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+r:n,n)};const r="#__bigint"},5669:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=async function(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})};const n=r(985)},5678:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.offchainLookupAbiItem=t.offchainLookupSignature=void 0,t.offchainLookup=async function(e,{blockNumber:r,blockTag:a,data:d,to:f}){const{args:m}=(0,i.decodeErrorResult)({data:d,abi:[t.offchainLookupAbiItem]}),[b,y,h,g,v]=m,{ccipRead:E}=e,w=E&&"function"==typeof E?.request?E.request:p;try{if(!(0,c.isAddressEqual)(f,b))throw new o.OffchainLookupSenderMismatchError({sender:b,to:f});const t=y.includes(l.localBatchGatewayUrl)?await(0,l.localBatchGatewayRequest)({data:h,ccipRequest:w}):await w({data:h,sender:b,urls:y}),{data:i}=await(0,n.call)(e,{blockNumber:r,blockTag:a,data:(0,u.concat)([g,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,v])]),to:f});return i}catch(e){throw new o.OffchainLookupError({callbackSelector:g,cause:e,data:d,extraData:v,sender:b,urls:y})}},t.ccipRequest=p;const n=r(7141),o=r(4548),a=r(2202),i=r(8181),s=r(2732),c=r(4324),u=r(6776),d=r(6015),l=r(2262),f=r(4900);async function p({data:e,sender:t,urls:r}){let n=new Error("An unknown error occurred.");for(let i=0;i<r.length;i++){const s=r[i],c=s.includes("{data}")?"GET":"POST",u="POST"===c?{data:e,sender:t}:void 0,l="POST"===c?{"Content-Type":"application/json"}:{};try{const r=await fetch(s.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(u),headers:l,method:c});let i;if(i=r.headers.get("Content-Type")?.startsWith("application/json")?(await r.json()).data:await r.text(),!r.ok){n=new a.HttpRequestError({body:u,details:i?.error?(0,f.stringify)(i.error):r.statusText,headers:r.headers,status:r.status,url:s});continue}if(!(0,d.isHex)(i)){n=new o.OffchainLookupResponseMalformedError({result:i,url:s});continue}return i}catch(e){n=new a.HttpRequestError({body:u,details:e.message,url:s})}}throw n}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]}},5709:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e.baseFeePerGas&&{baseFeePerGas:BigInt(e.baseFeePerGas)},...e.blobBaseFee&&{blobBaseFee:BigInt(e.blobBaseFee)},...e.feeRecipient&&{feeRecipient:e.feeRecipient},...e.gasLimit&&{gasLimit:BigInt(e.gasLimit)},...e.number&&{number:BigInt(e.number)},...e.prevRandao&&{prevRandao:BigInt(e.prevRandao)},...e.time&&{time:BigInt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(o.fromRpc)}}},t.toRpc=function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(o.toRpc)}}};const n=r(9274),o=r(5424)},5729:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumberCache=function(e){return(0,n.getCache)(o(e))},t.getBlockNumber=async function(e,{cacheTime:t=e.cacheTime}={}){const r=await(0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:t});return BigInt(r)};const n=r(1861),o=e=>`blockNumber.${e}`},5731:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=function(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return r=>{const n="function"==typeof r?r(t):r,o={...t,...n};return Object.assign(o,{extend:e(o)})}}(t)})},t.extendSchema=function(){return{}}},5772:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;const n=r(6117),o=r(5277),a=r(6246),i=r(3727);class s extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:l,nonce:f,to:p,value:m}){const b=(0,i.prettyPrint)({from:t?.address,to:p,value:void 0!==m&&`${(0,n.formatEther)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",b].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.EstimateGasExecutionError=s},5800:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",n=0,a="",i=!1;for(let o=0;o<e.length;o++){const s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t)if(0!==n)" "!==s?(a+=s,r+=s):","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===s&&["event","function","error",""].includes(a))a="";else if(a+=s,")"===s){i=!0;break}}if(!i)throw new o.BaseError("Unable to normalize signature.");return a},t.isArgOfType=function e(t,r){const o=typeof t,a=r.type;switch(a){case"address":return n.validate(t,{strict:!1});case"bool":return"boolean"===o;case"function":case"string":return"string"===o;default:return"tuple"===a&&"components"in r?Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r)):/^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(a)?"number"===o||"bigint"===o:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a)?"string"===o||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a)&&Array.isArray(t)&&t.every(t=>e(t,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")}))}},t.getAmbiguousTypes=function e(t,r,o){for(const a in t){const i=t[a],s=r[a];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,o[a]);const c=[i.type,s.type];if((()=>!(!c.includes("address")||!c.includes("bytes20"))||(c.includes("address")&&c.includes("string")||!(!c.includes("address")||!c.includes("bytes")))&&n.validate(o[a],{strict:!1}))())return c}};const n=r(7179),o=r(7560)},5805:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareAuthorization=async function(e,t){const{account:r=e.account,chainId:u,nonce:d}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const l=(0,n.parseAccount)(r),f=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,n.parseAccount)(t.executor)})(),p={address:t.contractAddress??t.address,chainId:u,nonce:d};return void 0===p.chainId&&(p.chainId=e.chain?.id??await(0,i.getAction)(e,s.getChainId,"getChainId")({})),void 0===p.nonce&&(p.nonce=await(0,i.getAction)(e,c.getTransactionCount,"getTransactionCount")({address:l.address,blockTag:"pending"}),("self"===f||f?.address&&(0,a.isAddressEqual)(f.address,l.address))&&(p.nonce+=1)),p};const n=r(9006),o=r(2540),a=r(4324),i=r(6207),s=r(1093),c=r(1998)},5886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=function(e,t){const r=(0,m.getTransactionType)(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:o,to:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:d,data:m}=e;(0,p.assertTransactionEIP1559)(e);const h=(0,b.serializeAccessList)(d),g=[(0,l.numberToHex)(r),o?(0,l.numberToHex)(o):"0x",c?(0,l.numberToHex)(c):"0x",s?(0,l.numberToHex)(s):"0x",n?(0,l.numberToHex)(n):"0x",a??"0x",i?(0,l.numberToHex)(i):"0x",m??"0x",h,...y(e,t)];return(0,u.concatHex)(["0x02",(0,f.toRlp)(g)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:o,nonce:a,to:i,value:s,accessList:c,gasPrice:d}=e;(0,p.assertTransactionEIP2930)(e);const m=(0,b.serializeAccessList)(c),h=[(0,l.numberToHex)(r),a?(0,l.numberToHex)(a):"0x",d?(0,l.numberToHex)(d):"0x",n?(0,l.numberToHex)(n):"0x",i??"0x",s?(0,l.numberToHex)(s):"0x",o??"0x",m,...y(e,t)];return(0,u.concatHex)(["0x01",(0,f.toRlp)(h)])}(e,t):"eip4844"===r?function(e,t){const{chainId:r,gas:n,nonce:o,to:d,value:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:v,accessList:E,data:w}=e;(0,p.assertTransactionEIP4844)(e);let x=e.blobVersionedHashes,P=e.sidecars;if(e.blobs&&(void 0===x||void 0===P)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,l.bytesToHex)(e)),r=e.kzg,n=(0,a.blobsToCommitments)({blobs:t,kzg:r});if(void 0===x&&(x=(0,s.commitmentsToVersionedHashes)({commitments:n})),void 0===P){const e=(0,i.blobsToProofs)({blobs:t,commitments:n,kzg:r});P=(0,c.toBlobSidecars)({blobs:t,commitments:n,proofs:e})}}const I=(0,b.serializeAccessList)(E),T=[(0,l.numberToHex)(r),o?(0,l.numberToHex)(o):"0x",v?(0,l.numberToHex)(v):"0x",g?(0,l.numberToHex)(g):"0x",n?(0,l.numberToHex)(n):"0x",d??"0x",m?(0,l.numberToHex)(m):"0x",w??"0x",I,h?(0,l.numberToHex)(h):"0x",x??[],...y(e,t)],A=[],O=[],S=[];if(P)for(let e=0;e<P.length;e++){const{blob:t,commitment:r,proof:n}=P[e];A.push(t),O.push(r),S.push(n)}return(0,u.concatHex)(["0x03",P?(0,f.toRlp)([T,A,O,S]):(0,f.toRlp)(T)])}(e,t):"eip7702"===r?function(e,t){const{authorizationList:r,chainId:n,gas:a,nonce:i,to:s,value:c,maxFeePerGas:d,maxPriorityFeePerGas:m,accessList:h,data:g}=e;(0,p.assertTransactionEIP7702)(e);const v=(0,b.serializeAccessList)(h),E=(0,o.serializeAuthorizationList)(r);return(0,u.concatHex)(["0x04",(0,f.toRlp)([(0,l.numberToHex)(n),i?(0,l.numberToHex)(i):"0x",m?(0,l.numberToHex)(m):"0x",d?(0,l.numberToHex)(d):"0x",a?(0,l.numberToHex)(a):"0x",s??"0x",c?(0,l.numberToHex)(c):"0x",g??"0x",v,E,...y(e,t)])])}(e,t):function(e,t){const{chainId:r=0,gas:o,data:a,nonce:i,to:s,value:c,gasPrice:u}=e;(0,p.assertTransactionLegacy)(e);let m=[i?(0,l.numberToHex)(i):"0x",u?(0,l.numberToHex)(u):"0x",o?(0,l.numberToHex)(o):"0x",s??"0x",c?(0,l.numberToHex)(c):"0x",a??"0x"];if(t){const e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})(),o=(0,d.trim)(t.r),a=(0,d.trim)(t.s);m=[...m,(0,l.numberToHex)(e),"0x00"===o?"0x":o,"0x00"===a?"0x":a]}else r>0&&(m=[...m,(0,l.numberToHex)(r),"0x","0x"]);return(0,f.toRlp)(m)}(e,t)},t.toYParitySignatureArray=y;const n=r(3727),o=r(2940),a=r(5956),i=r(3611),s=r(4445),c=r(3339),u=r(6776),d=r(7488),l=r(985),f=r(7926),p=r(7964),m=r(9788),b=r(1270);function y(e,t){const r=t??e,{v:n,yParity:o}=r;if(void 0===r.r)return[];if(void 0===r.s)return[];if(void 0===n&&void 0===o)return[];const a=(0,d.trim)(r.r),i=(0,d.trim)(r.s);return["number"==typeof o?o?(0,l.numberToHex)(1):"0x":0n===n?"0x":1n===n?(0,l.numberToHex)(1):27n===n?"0x":(0,l.numberToHex)(1),"0x00"===a?"0x":a,"0x00"===i?"0x":i]}},5913:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.prepareEncodeFunctionData=function(e){const{abi:t,args:r,functionName:c}=e;let u=t[0];if(c){const e=(0,i.getAbiItem)({abi:t,args:r,name:c});if(!e)throw new n.AbiFunctionNotFoundError(c,{docsPath:s});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:s});return{abi:[u],functionName:(0,o.toFunctionSelector)((0,a.formatAbiItem)(u))}};const n=r(6953),o=r(1456),a=r(4520),i=r(775),s="/docs/contract/encodeFunctionData"},5956:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToCommitments=function(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,i=[];for(const e of a)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,o.bytesToHex)(e))};const n=r(7655),o=r(985)},5970:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=function({r:e,yParityAndS:t}){const r=(0,n.hexToBytes)(t),a=128&r[0]?1:0,i=r;return 1===a&&(i[0]&=127),{r:e,s:(0,o.bytesToHex)(i),yParity:a}};const n=r(7655),o=r(985)},5971:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=function(e){if(!(e instanceof n.BaseError))return!1;const t=e.walk(e=>e instanceof o.ContractFunctionRevertedError);return t instanceof o.ContractFunctionRevertedError&&("HttpError"===t.data?.errorName||"ResolverError"===t.data?.errorName||"ResolverNotContract"===t.data?.errorName||"ResolverNotFound"===t.data?.errorName||"ReverseAddressMismatch"===t.data?.errorName||"UnsupportedResolverProfile"===t.data?.errorName)};const n=r(6246),o=r(7677)},5996:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=async function(e,t){const{account:r,authorizationList:m,allowFailure:b=!0,blockNumber:y,blockOverrides:h,blockTag:g,stateOverride:v}=t,E=t.contracts,{batchSize:w=t.batchSize??1024,deployless:x=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},P=(()=>{if(t.multicallAddress)return t.multicallAddress;if(x)return null;if(e.chain)return(0,d.getChainContractAddress)({blockNumber:y,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),I=[[]];let T=0,A=0;for(let e=0;e<E.length;e++){const{abi:t,address:n,args:o,functionName:a}=E[e];try{const e=(0,u.encodeFunctionData)({abi:t,args:o,functionName:a});A+=(e.length-2)/2,w>0&&A>w&&I[T].length>0&&(T++,A=(e.length-2)/2,I[T]=[]),I[T]=[...I[T],{allowFailure:!0,callData:e,target:n}]}catch(e){const i=(0,l.getContractError)(e,{abi:t,address:n,args:o,docsPath:"/docs/contract/multicall",functionName:a,sender:r});if(!b)throw i;I[T]=[...I[T],{allowFailure:!0,callData:"0x",target:n}]}}const O=await Promise.allSettled(I.map(t=>(0,f.getAction)(e,p.readContract,"readContract")({...null===P?{code:o.multicall3Bytecode}:{address:P},abi:n.multicall3Abi,account:r,args:[t],authorizationList:m,blockNumber:y,blockOverrides:h,blockTag:g,functionName:"aggregate3",stateOverride:v}))),S=[];for(let e=0;e<O.length;e++){const t=O[e];if("rejected"===t.status){if(!b)throw t.reason;for(let r=0;r<I[e].length;r++)S.push({status:"failure",error:t.reason,result:void 0});continue}const r=t.value;for(let t=0;t<r.length;t++){const{returnData:n,success:o}=r[t],{callData:i}=I[e][t],{abi:u,address:d,functionName:f,args:p}=E[S.length];try{if("0x"===i)throw new a.AbiDecodingZeroDataError;if(!o)throw new s.RawContractError({data:n});const e=(0,c.decodeFunctionResult)({abi:u,args:p,data:n,functionName:f});S.push(b?{result:e,status:"success"}:e)}catch(e){const t=(0,l.getContractError)(e,{abi:u,address:d,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!b)throw t;S.push({error:t,result:void 0,status:"failure"})}}}if(S.length!==E.length)throw new i.BaseError("multicall results mismatch");return S};const n=r(3302),o=r(6590),a=r(6953),i=r(6246),s=r(7677),c=r(7541),u=r(6144),d=r(3454),l=r(6173),f=r(6207),p=r(5275)},6015:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},6047:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=function(e,{address:t,args:r,batch:h=!0,event:g,events:v,fromBlock:E,onError:w,onLogs:x,poll:P,pollingInterval:I=e.pollingInterval,strict:T}){const A=void 0!==P?P:"bigint"==typeof E||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type),O=T??!1;return A?(()=>{const n=(0,l.stringify)(["watchEvent",t,r,h,e.uid,g,I,E]);return(0,u.observe)(n,{onLogs:x,onError:w},n=>{let a,i;void 0!==E&&(a=E-1n);let s=!1;const u=(0,d.poll)(async()=>{if(s)try{let o;if(i)o=await(0,c.getAction)(e,m.getFilterChanges,"getFilterChanges")({filter:i});else{const n=await(0,c.getAction)(e,p.getBlockNumber,"getBlockNumber")({});o=a&&a!==n?await(0,c.getAction)(e,b.getLogs,"getLogs")({address:t,args:r,event:g,events:v,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===o.length)return;if(h)n.onLogs(o);else for(const e of o)n.onLogs([e])}catch(e){i&&e instanceof o.InvalidInputRpcError&&(s=!1),n.onError?.(e)}else{try{i=await(0,c.getAction)(e,f.createEventFilter,"createEventFilter")({address:t,args:r,event:g,events:v,strict:O,fromBlock:E})}catch{}s=!0}},{emitOnBegin:!0,interval:I});return async()=>{i&&await(0,c.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:i}),u()}})})():(()=>{let o=!0,c=()=>o=!1;return(async()=>{try{const u=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),d=v??(g?[g]:void 0);let l=[];if(d){const e=d.flatMap(e=>(0,i.encodeEventTopics)({abi:[e],eventName:e.name,args:r}));l=[e],g&&(l=l[0])}const{unsubscribe:f}=await u.subscribe({params:["logs",{address:t,topics:l}],onData(e){if(!o)return;const t=e.result;try{const{eventName:e,args:r}=(0,a.decodeEventLog)({abi:d??[],data:t.data,topics:t.topics,strict:O}),n=(0,s.formatLog)(t,{args:r,eventName:e});x([n])}catch(e){let r,o;if(e instanceof n.DecodeLogDataMismatch||e instanceof n.DecodeLogTopicsMismatch){if(T)return;r=e.abiItem.name,o=e.abiItem.inputs?.some(e=>!("name"in e&&e.name))}const a=(0,s.formatLog)(t,{args:o?[]:{},eventName:r});x([a])}},onError(e){w?.(e)}});c=f,o||c()}catch(e){w?.(e)}})(),()=>c()})()};const n=r(6953),o=r(7992),a=r(8182),i=r(378),s=r(95),c=r(6207),u=r(2093),d=r(3940),l=r(4900),f=r(3383),p=r(5729),m=r(3590),b=r(9914),y=r(1541)},6117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=function(e,t="wei"){return(0,o.formatUnits)(e,n.etherUnits[t])};const n=r(4839),o=r(1902)},6144:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=function(e){const{args:t}=e,{abi:r,functionName:i}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:(0,a.prepareEncodeFunctionData)(e),s=r[0],c=i,u="inputs"in s&&s.inputs?(0,o.encodeAbiParameters)(s.inputs,t??[]):void 0;return(0,n.concatHex)([c,u??"0x"])};const n=r(6776),o=r(2732),a=r(5913)},6155:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContractSync=async function(e,t){return o.writeContract.internal(e,n.sendTransactionSync,"sendTransactionSync",t)};const n=r(6968),o=r(6160)},6160:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=u;const n=r(9006),o=r(2540),a=r(6144),i=r(6173),s=r(6207),c=r(6687);async function u(e,t){return u.internal(e,c.sendTransaction,"sendTransaction",t)}!function(e){e.internal=async function(e,t,r,c){const{abi:u,account:d=e.account,address:l,args:f,functionName:p,...m}=c;if(void 0===d)throw new o.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});const b=d?(0,n.parseAccount)(d):null,y=(0,a.encodeFunctionData)({abi:u,args:f,functionName:p});try{return await(0,s.getAction)(e,t,r)({data:y,to:l,account:b,...m})}catch(e){throw(0,i.getContractError)(e,{abi:u,address:l,args:f,docsPath:"/docs/contract/writeContract",functionName:p,sender:b?.address})}}}(u||(t.writeContract=u={}))},6173:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=function(e,{abi:t,address:r,args:u,docsPath:d,functionName:l,sender:f}){const p=e instanceof a.RawContractError?e:e instanceof o.BaseError?e.walk(e=>"data"in e)||e.walk():{},{code:m,data:b,details:y,message:h,shortMessage:g}=p,v=e instanceof n.AbiDecodingZeroDataError?new a.ContractFunctionZeroDataError({functionName:l}):[c,s.InternalRpcError.code].includes(m)&&(b||y||h||g)||m===s.InvalidInputRpcError.code&&"execution reverted"===y&&b?new a.ContractFunctionRevertedError({abi:t,data:"object"==typeof b?b.data:b,functionName:l,message:p instanceof i.RpcRequestError?y:g??h}):e;return new a.ContractFunctionExecutionError(v,{abi:t,args:u,contractAddress:r,docsPath:d,functionName:l,sender:f})};const n=r(6953),o=r(6246),a=r(7677),i=r(2202),s=r(7992),c=3},6186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=async function(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,n.getAddress)(e))};const n=r(8728)},6194:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}};const n=r(3044)},6207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=function(e,t,r){const n=e[t.name];if("function"==typeof n)return n;const o=e[r];return"function"==typeof o?o:r=>t(e,r)}},6228:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.socketClientCache=void 0,t.getSocketRpcClient=async function(e){const{getSocket:r,keepAlive:s=!0,key:c="socket",reconnect:u=!0,url:d}=e,{interval:l=3e4}="object"==typeof s?s:{},{attempts:f=5,delay:p=2e3}="object"==typeof u?u:{},m=JSON.stringify({keepAlive:s,key:c,url:d,reconnect:u});let b=t.socketClientCache.get(m);if(b)return b;let y=0;const{schedule:h}=(0,o.createBatchScheduler)({id:m,fn:async()=>{const e=new Map,o=new Map;let c,h,g,v=!1;function E(){if(u&&y<f){if(v)return;v=!0,y++,h?.close(),setTimeout(async()=>{await w().catch(console.error),v=!1},p)}else e.clear(),o.clear()}async function w(){const t=await r({onClose(){for(const t of e.values())t.onError?.(new n.SocketClosedError({url:d}));for(const e of o.values())e.onError?.(new n.SocketClosedError({url:d}));E()},onError(t){c=t;for(const t of e.values())t.onError?.(c);for(const e of o.values())e.onError?.(c);E()},onOpen(){c=void 0,y=0},onResponse(t){const r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,a=r?o:e,i=a.get(n);i&&i.onResponse(t),r||a.delete(n)}});if(h=t,s&&(g&&clearInterval(g),g=setInterval(()=>h.ping?.(),l)),u&&o.size>0){const e=o.entries();for(const[t,{onResponse:r,body:n,onError:a}]of e)n&&(o.delete(t),b?.request({body:n,onResponse:r,onError:a}))}return t}return await w(),c=void 0,b={close(){g&&clearInterval(g),h.close(),t.socketClientCache.delete(m)},get socket(){return h},request({body:t,onError:r,onResponse:n}){c&&r&&r(c);const a=t.id??i.idCache.take(),s=e=>{"number"==typeof e.id&&a!==e.id||("eth_subscribe"===t.method&&"string"==typeof e.result&&o.set(e.result,{onResponse:s,onError:r,body:t}),n(e))};"eth_unsubscribe"===t.method&&o.delete(t.params?.[0]),e.set(a,{onResponse:s,onError:r});try{h.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){r?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,a.withTimeout)(()=>new Promise((t,r)=>this.request({body:e,onError:r,onResponse:t})),{errorInstance:new n.TimeoutError({body:e,url:d}),timeout:t})},requests:e,subscriptions:o,url:d},t.socketClientCache.set(m,b),[b]}}),[g,[v]]=await h();return v};const n=r(2202),o=r(5290),a=r(1208),i=r(7440);t.socketClientCache=new Map},6246:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0,t.setErrorConfig=function(e){o=e};const n=r(5603);let o={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n.version}`};class a extends Error{constructor(e,t={}){const r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof a&&t.cause.docsPath||t.docsPath,s=o.getDocsUrl?.({...t,docsPath:i});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...o.version?[`Version: ${o.version}`]:[]].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=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n.version}walk(e){return i(this,e)}}function i(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?i(e.cause,t):t?null:e}t.BaseError=a},6254:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateAssignmentConflictError=t.AccountStateConflictError=void 0,t.prettyStateMapping=i,t.prettyStateOverride=function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}:\n`;return r.nonce&&(n+=` nonce: ${r.nonce}\n`),r.balance&&(n+=` balance: ${r.balance}\n`),r.code&&(n+=` code: ${r.code}\n`),r.state&&(n+=" state:\n",n+=i(r.state)),r.stateDiff&&(n+=" stateDiff:\n",n+=i(r.stateDiff)),n}," State Override:\n").slice(0,-1)};const n=r(6246);class o extends n.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}t.AccountStateConflictError=o;class a extends n.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r}\n`,"")}t.StateAssignmentConflictError=a},6259:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSerializedSizeError=t.InvalidUncompressedPrefixError=t.InvalidCompressedPrefixError=t.InvalidPrefixError=t.InvalidError=void 0,t.assert=s,t.compress=function(e){const{x:t,y:r}=e;return{prefix:r%2n==0n?2:3,x:t}},t.from=function(e){const t=(()=>{if(a.validate(e))return u(e);if(n.validate(e))return c(e);const{prefix:t,x:r,y:o}=e;return"bigint"==typeof r&&"bigint"==typeof o?{prefix:t??4,x:r,y:o}:{prefix:t,x:r}})();return s(t),t},t.fromBytes=c,t.fromHex=u,t.toBytes=function(e,t={}){return n.fromHex(d(e,t))},t.toHex=d,t.validate=function(e,t={}){try{return s(e,t),!0}catch(e){return!1}};const n=r(3516),o=r(7560),a=r(9274),i=r(5665);function s(e,t={}){const{compressed:r}=t,{prefix:n,x:o,y:a}=e;if(!1===r||"bigint"==typeof o&&"bigint"==typeof a){if(4!==n)throw new f({prefix:n,cause:new m})}else{if(!0!==r&&("bigint"!=typeof o||void 0!==a))throw new l({publicKey:e});if(3!==n&&2!==n)throw new f({prefix:n,cause:new p})}}function c(e){return u(a.fromBytes(e))}function u(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new b({publicKey:e});return 130===e.length?{prefix:4,x:BigInt(a.slice(e,0,32)),y:BigInt(a.slice(e,32,64))}:132===e.length?{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33)),y:BigInt(a.slice(e,33,65))}:{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33))}}function d(e,t={}){s(e);const{prefix:r,x:n,y:o}=e,{includePrefix:i=!0}=t;return a.concat(i?a.fromNumber(r,{size:1}):"0x",a.fromNumber(n,{size:32}),"bigint"==typeof o?a.fromNumber(o,{size:32}):"0x")}class l extends o.BaseError{constructor({publicKey:e}){super(`Value \`${i.stringify(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}t.InvalidError=l;class f extends o.BaseError{constructor({prefix:e,cause:t}){super(`Prefix "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}t.InvalidPrefixError=f;class p extends o.BaseError{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}t.InvalidCompressedPrefixError=p;class m extends o.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}t.InvalidUncompressedPrefixError=m;class b extends o.BaseError{constructor({publicKey:e}){super(`Value \`${e}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${a.size(a.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=b},6303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=void 0,t.isErrorSignature=function(e){return o.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(o,e)},t.isEventSignature=function(e){return a.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(a,e)},t.isFunctionSignature=function(e){return i.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(i,e)},t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)},t.isConstructorSignature=function(e){return c.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(c,e)},t.isFallbackSignature=function(e){return u.test(e)},t.execFallbackSignature=function(e){return(0,n.execTyped)(u,e)},t.isReceiveSignature=function(e){return d.test(e)};const n=r(8651),o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,c=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,u=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,d=/^receive\(\) external payable$/;t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},6311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;const n=r(6246);class o extends n.BaseError{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"})}}t.InvalidAddressError=o},6323:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=function(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(o);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};const n=r(3069),o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({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 n.NegativeOffsetError({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+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._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}},6339:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.containsNodeError=function(e){return e instanceof i.TransactionRejectedRpcError||e instanceof i.InvalidInputRpcError||e instanceof a.RpcRequestError&&e.code===o.ExecutionRevertedError.code},t.getNodeError=function(e,t){const r=(e.details||"").toLowerCase(),a=e instanceof n.BaseError?e.walk(e=>e?.code===o.ExecutionRevertedError.code):e;return a instanceof n.BaseError?new o.ExecutionRevertedError({cause:e,message:a.details}):o.ExecutionRevertedError.nodeMessage.test(r)?new o.ExecutionRevertedError({cause:e,message:e.details}):o.FeeCapTooHighError.nodeMessage.test(r)?new o.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.FeeCapTooLowError.nodeMessage.test(r)?new o.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.NonceTooHighError.nodeMessage.test(r)?new o.NonceTooHighError({cause:e,nonce:t?.nonce}):o.NonceTooLowError.nodeMessage.test(r)?new o.NonceTooLowError({cause:e,nonce:t?.nonce}):o.NonceMaxValueError.nodeMessage.test(r)?new o.NonceMaxValueError({cause:e,nonce:t?.nonce}):o.InsufficientFundsError.nodeMessage.test(r)?new o.InsufficientFundsError({cause:e}):o.IntrinsicGasTooHighError.nodeMessage.test(r)?new o.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):o.IntrinsicGasTooLowError.nodeMessage.test(r)?new o.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):o.TransactionTypeNotSupportedError.nodeMessage.test(r)?new o.TransactionTypeNotSupportedError({cause:e}):o.TipAboveFeeCapError.nodeMessage.test(r)?new o.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new o.UnknownNodeError({cause:e})};const n=r(6246),o=r(2731),a=r(2202),i=r(7992)},6351:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e,t={}){if((0,u.isFunctionSignature)(e))return d(e,t);if((0,u.isEventSignature)(e))return l(e,t);if((0,u.isErrorSignature)(e))return f(e,t);if((0,u.isConstructorSignature)(e))return p(e,t);if((0,u.isFallbackSignature)(e))return m(e);if((0,u.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new i.UnknownSignatureError({signature:e})},t.parseFunctionSignature=d,t.parseEventSignature=l,t.parseErrorSignature=f,t.parseConstructorSignature=p,t.parseFallbackSignature=m,t.parseAbiParameter=g,t.splitParameters=v,t.isSolidityType=E,t.isSolidityKeyword=x,t.isValidDataLocation=P;const n=r(8651),o=r(3200),a=r(6992),i=r(1923),s=r(9361),c=r(9760),u=r(6303);function d(e,t={}){const r=(0,u.execFunctionSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"function"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{modifiers:u.functionModifiers,structs:t,type:"function"}));const s=[];if(r.returns){const e=v(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(g(e[r],{modifiers:u.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:o,outputs:s}}function l(e,t={}){const r=(0,u.execEventSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"event"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{modifiers:u.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:o}}function f(e,t={}){const r=(0,u.execErrorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"error"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:o}}function p(e,t={}){const r=(0,u.execConstructorSignature)(e);if(!r)throw new i.InvalidSignatureError({signature:e,type:"constructor"});const n=v(r.parameters),o=[],a=n.length;for(let e=0;e<a;e++)o.push(g(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:o}}function m(e){const t=(0,u.execFallbackSignature)(e);if(!t)throw new i.InvalidSignatureError({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const b=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,y=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function g(e,t){const r=(0,c.getParameterCacheKey)(e,t?.type,t?.structs);if(c.parameterCache.has(r))return c.parameterCache.get(r);const i=n.isTupleRegex.test(e),s=(0,n.execTyped)(i?y:b,e);if(!s)throw new a.InvalidParameterError({param:e});if(s.name&&x(s.name))throw new a.SolidityProtectedKeywordError({param:e,name:s.name});const d=s.name?{name:s.name}:{},l="indexed"===s.modifier?{indexed:!0}:{},f=t?.structs??{};let p,m={};if(i){p="tuple";const e=v(s.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(g(e[n],{structs:f}));m={components:t}}else if(s.type in f)p="tuple",m={components:f[s.type]};else if(h.test(s.type))p=`${s.type}256`;else if("address payable"===s.type)p="address";else if(p=s.type,"struct"!==t?.type&&!E(p))throw new o.UnknownSolidityTypeError({type:p});if(s.modifier){if(!t?.modifiers?.has?.(s.modifier))throw new a.InvalidModifierError({param:e,type:t?.type,modifier:s.modifier});if(u.functionModifiers.has(s.modifier)&&!P(p,!!s.array))throw new a.InvalidFunctionModifierError({param:e,type:t?.type,modifier:s.modifier})}const w={type:`${p}${s.array??""}`,...d,...l,...m};return c.parameterCache.set(r,w),w}function v(e,t=[],r="",n=0){const o=e.trim().length;for(let a=0;a<o;a++){const o=e[a],i=e.slice(a+1);switch(o){case",":return 0===n?v(i,[...t,r.trim()]):v(i,t,`${r}${o}`,n);case"(":return v(i,t,`${r}${o}`,n+1);case")":return v(i,t,`${r}${o}`,n-1);default:return v(i,t,`${r}${o}`,n)}}if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function E(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}const w=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function x(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||w.test(e)}function P(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}},6377:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=async function(e,{address:t,message:r,factory:i,factoryData:s,signature:c,...u}){const d=(0,o.hashMessage)(r);return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:t,factory:i,factoryData:s,hash:d,signature:c,...u})};const n=r(6207),o=r(5336),a=r(8868)},6394:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=async function(e){return await e.request({method:"txpool_inspect"})}},6423:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCapabilities=async function(e,t={}){const{account:r=e.account,chainId:a}=t,i=r?(0,n.parseAccount)(r):void 0,s=a?[i?.address,[(0,o.numberToHex)(a)]]:[i?.address],c=await e.request({method:"wallet_getCapabilities",params:s}),u={};for(const[e,t]of Object.entries(c)){u[Number(e)]={};for(let[r,n]of Object.entries(t))"addSubAccount"===r&&(r="unstable_addSubAccount"),u[Number(e)][r]=n}return"number"==typeof a?u[a]:u};const n=r(9006),o=r(985)},6425:(e,t,r)=>{function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,{iterator:i,toStringTag:s}=Symbol,c=(u=Object.create(null),e=>{const t=o.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:f}=Array,p=l("undefined");function m(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b=d("ArrayBuffer"),y=l("string"),h=l("function"),g=l("number"),v=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||i in e)},w=d("Date"),x=d("File"),P=d("Blob"),I=d("FileList"),T=d("URLSearchParams"),[A,O,S,B]=["ReadableStream","Request","Response","Headers"].map(d);function j(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),f(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(m(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function R(e,t){if(m(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,C=e=>!p(e)&&e!==_,M=(k="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>k&&e instanceof k);var k;const F=d("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),U=d("RegExp"),z=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};j(r,(r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)}),Object.defineProperties(e,n)},H=d("AsyncFunction"),L=(D="function"==typeof setImmediate,$=h(_.postMessage),D?setImmediate:$?(q=`axios@${Math.random()}`,G=[],_.addEventListener("message",({source:e,data:t})=>{e===_&&t===q&&G.length&&G.shift()()},!1),e=>{G.push(e),_.postMessage(q,"*")}):e=>setTimeout(e));var D,$,q,G;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!=typeof process&&process.nextTick||L;var W={isArray:f,isArrayBuffer:b,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=c(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t},isString:y,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:E,isEmptyObject:e=>{if(!v(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:A,isRequest:O,isResponse:S,isHeaders:B,isUndefined:p,isDate:w,isFile:x,isBlob:P,isRegExp:U,isFunction:h,isStream:e=>v(e)&&h(e.pipe),isURLSearchParams:T,isTypedArray:M,isFileList:I,forEach:j,merge:function e(){const{caseless:t,skipUndefined:r}=C(this)&&this||{},n={},o=(o,a)=>{const i=t&&R(n,a)||a;E(n[i])&&E(o)?n[i]=e(n[i],o):E(o)?n[i]=e({},o):f(o)?n[i]=o.slice():r&&p(o)||(n[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:o}={})=>(j(t,(t,o)=>{r&&h(t)?e[o]=n(t,r):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[i]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];h(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return f(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:_,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[s]&&e[i])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;const o=f(e)?[]:{};return j(e,(e,t)=>{const a=r(e,n+1);!p(a)&&(o[t]=a)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:H,isThenable:e=>e&&(v(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:L,asap:V,isIterable:e=>null!=e&&h(e[i])};function K(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=K.prototype,J={};function Y(e){return W.isPlainObject(e)||W.isArray(e)}function X(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map(function(e,t){return e=X(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{J[e]={value:e}}),Object.defineProperties(K,J),Object.defineProperty(Z,"isAxiosError",{value:!0}),K.from=(e,t,r,n,o,a)=>{const i=Object.create(Z);W.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return K.call(i,s,c,r,n,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};const ee=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function te(e,t,r){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,o=r.visitor||u,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(W.isBoolean(e))return e.toString();if(!s&&W.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(Y)}(e)||(W.isFileList(e)||W.endsWith(r,"[]"))&&(s=W.toArray(e)))return r=X(r),s.forEach(function(e,n){!W.isUndefined(e)&&null!==e&&t.append(!0===i?Q([r],n,a):null===i?r:r+"[]",c(e))}),!1;return!!Y(e)||(t.append(Q(o,r,a),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!W.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),W.forEach(r,function(r,a){!0===(!(W.isUndefined(r)||null===r)&&o.call(t,r,W.isString(a)?a.trim():a,n,l))&&e(r,n?n.concat(a):[a])}),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const oe=ne.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ie(e,t,r){if(!t)return e;const n=r&&r.encode||ae;W.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(a=o?o(t,r):W.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le="object"==typeof navigator&&navigator||void 0,fe=de&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=de&&window.location.href||"http://localhost";var be={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:fe,navigator:le,origin:me}),...ue};function ye(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&W.isArray(n)?n.length:a,s?(W.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i):(n[a]&&W.isObject(n[a])||(n[a]=[]),t(e,r,n[a],o)&&W.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}(n[a])),!i)}if(W.isFormData(e)&&W.isFunction(e.entries)){const r={};return W.forEachEntry(e,(e,n)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const he={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=W.isObject(e);if(o&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(ye(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new be.classes.URLSearchParams,{visitor:function(e,t,r,n){return be.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(W.isString(e))try{return(0,JSON.parse)(e),W.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{he.headers[e]={}});var ge=he;const ve=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:W.isArray(e)?e.map(xe):String(e)}function Pe(e,t,r,n,o){return W.isFunction(n)?n.call(this,t,r):(o&&(t=r),W.isString(t)?W.isString(n)?-1!==t.indexOf(n):W.isRegExp(n)?n.test(t):void 0:void 0)}class Ie{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=we(t);if(!o)throw new Error("header name must be a non-empty string");const a=W.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=xe(e))}const a=(e,t)=>W.forEach(e,(e,r)=>o(e,r,t));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(W.isObject(e)&&W.isIterable(e)){let r,n,o={};for(const t of e){if(!W.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?W.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=we(e)){const r=W.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(W.isFunction(t))return t.call(this,e,r);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const r=W.findKey(this,e);return!(!r||void 0===this[r]||t&&!Pe(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=we(e)){const o=W.findKey(r,e);!o||t&&!Pe(0,r[o],o,t)||(delete r[o],n=!0)}}return W.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Pe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return W.forEach(this,(n,o)=>{const a=W.findKey(r,o);if(a)return t[a]=xe(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();i!==o&&delete t[o],t[i]=xe(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&W.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=we(e);t[n]||(function(e,t){const r=W.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return W.isArray(e)?e.forEach(n):n(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Ie.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),W.freezeMethods(Ie);var Te=Ie;function Ae(e,t){const r=this||ge,n=t||r,o=Te.from(n.headers);let a=n.data;return W.forEach(e,function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Oe(e){return!(!e||!e.__CANCEL__)}function Se(e,t,r){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError"}function Be(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}W.inherits(Se,K,{__CANCEL__:!0});const je=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[i];o||(o=c),r[a]=s,n[a]=c;let d=i,l=0;for(;d!==a;)l+=r[d++],d%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*l/f):void 0}}(50,250);return function(r,a){let i,s,c=0,u=1e3/a;const d=(r,a=Date.now())=>{c=a,i=null,s&&(clearTimeout(s),s=null),(r=>{const a=r.loaded,i=r.lengthComputable?r.total:void 0,s=a-n,c=o(s);n=a,e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})})(...r)};return[(...e)=>{const t=Date.now(),r=t-c;r>=u?d(e,t):(i=e,s||(s=setTimeout(()=>{s=null,d(i)},u-r)))},()=>i&&d(i)]}(0,r)},Re=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_e=e=>(...t)=>W.asap(()=>e(...t));var Ce=be.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,be.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Me=be.hasStandardBrowserEnv?{write(e,t,r,n,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];W.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),W.isString(n)&&s.push(`path=${n}`),W.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),W.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ke(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Fe=e=>e instanceof Te?{...e}:e;function Ne(e,t){t=t||{};const r={};function n(e,t,r,n){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:n},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function o(e,t,r,o){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function a(e,t){if(!W.isUndefined(t))return n(void 0,t)}function i(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,r)=>o(Fe(e),Fe(t),0,!0)};return W.forEach(Object.keys({...e,...t}),function(n){const a=c[n]||o,i=a(e[n],t[n],n);W.isUndefined(i)&&a!==s||(r[n]=i)}),r}var Ue=e=>{const t=Ne({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Te.from(i),t.url=ie(ke(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),W.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(W.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)})}if(be.hasStandardBrowserEnv&&(n&&W.isFunction(n)&&(n=n(t)),n||!1!==n&&Ce(t.url))){const e=o&&a&&Me.read(a);e&&i.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ue(e);let o=n.data;const a=Te.from(n.headers).normalize();let i,s,c,u,d,{responseType:l,onUploadProgress:f,onDownloadProgress:p}=n;function m(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(i),n.signal&&n.signal.removeEventListener("abort",i)}let b=new XMLHttpRequest;function y(){if(!b)return;const n=Te.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Be(function(e){t(e),m()},function(e){r(e),m()},{data:l&&"text"!==l&&"json"!==l?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b}),b=null}b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout,"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(y)},b.onabort=function(){b&&(r(new K("Request aborted",K.ECONNABORTED,e,b)),b=null)},b.onerror=function(t){const n=new K(t&&t.message?t.message:"Network Error",K.ERR_NETWORK,e,b);n.event=t||null,r(n),b=null},b.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new K(t,o.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,b)),b=null},void 0===o&&a.setContentType(null),"setRequestHeader"in b&&W.forEach(a.toJSON(),function(e,t){b.setRequestHeader(t,e)}),W.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),l&&"json"!==l&&(b.responseType=n.responseType),p&&([c,d]=je(p,!0),b.addEventListener("progress",c)),f&&b.upload&&([s,u]=je(f),b.upload.addEventListener("progress",s),b.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(i=t=>{b&&(r(!t||t.type?new Se(null,e,b):t),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(i),n.signal&&(n.signal.aborted?i():n.signal.addEventListener("abort",i)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);h&&-1===be.protocols.indexOf(h)?r(new K("Unsupported protocol "+h+":",K.ERR_BAD_REQUEST,e)):b.send(o||null)})},He=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof K?t:new Se(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>W.asap(i),s}};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},De=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Le(r,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let a=n.byteLength;if(r){let e=i+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:$e}=W,qe=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:Ge,TextEncoder:Ve}=W.global,We=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=e=>{e=W.merge.call({skipUndefined:!0},qe,e);const{fetch:t,Request:r,Response:n}=e,o=t?$e(t):"function"==typeof fetch,a=$e(r),i=$e(n);if(!o)return!1;const s=o&&$e(Ge),c=o&&("function"==typeof Ve?(u=new Ve,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const d=a&&s&&We(()=>{let e=!1;const t=new r(be.origin,{body:new Ge,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),l=i&&s&&We(()=>W.isReadableStream(new n("").body)),f={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:o,method:i,data:s,signal:u,cancelToken:p,timeout:m,onDownloadProgress:b,onUploadProgress:y,responseType:h,headers:g,withCredentials:v="same-origin",fetchOptions:E}=Ue(e),w=t||fetch;h=h?(h+"").toLowerCase():"text";let x=He([u,p&&p.toAbortSignal()],m),P=null;const I=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let T;try{if(y&&d&&"get"!==i&&"head"!==i&&0!==(T=await(async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new r(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await c(e)).byteLength:void 0)})(t):n})(g,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(W.isFormData(s)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,r]=Re(T,je(_e(y)));s=De(t.body,65536,e,r)}}W.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in r.prototype,u={...E,signal:x,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};P=a&&new r(o,u);let p=await(a?w(P,E):w(o,u));const m=l&&("stream"===h||"response"===h);if(l&&(b||m&&I)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=W.toFiniteNumber(p.headers.get("content-length")),[r,o]=b&&Re(t,je(_e(b),!0))||[];p=new n(De(p.body,65536,r,()=>{o&&o(),I&&I()}),e)}h=h||"text";let A=await f[W.findKey(f,h)||"text"](p,e);return!m&&I&&I(),await new Promise((t,r)=>{Be(t,r,{data:A,headers:Te.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:P})})}catch(t){if(I&&I(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,P),{cause:t.cause||t});throw K.from(t,t&&t.code,e,P)}}},Ze=new Map,Je=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,a=[n,o,r];let i,s,c=a.length,u=Ze;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:Ke(t)),u=s;return s};Je();const Ye={http:null,xhr:ze,fetch:{get:Je}};W.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Qe=e=>W.isFunction(e)||null===e||!1===e;var et=function(e,t){e=W.isArray(e)?e:[e];const{length:r}=e;let n,o;const a={};for(let i=0;i<r;i++){let r;if(n=e[i],o=n,!Qe(n)&&(o=Ye[(r=String(n)).toLowerCase()],void 0===o))throw new K(`Unknown adapter '${r}'`);if(o&&(W.isFunction(o)||(o=o.get(t))))break;a[r||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new K("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function rt(e){return tt(e),e.headers=Te.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||ge.adapter,e)(e).then(function(t){return tt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t},function(t){return Oe(t)||(tt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)})}const nt="1.13.2",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ot.transitional=function(e,t,r){function n(e,t){return"[Axios v"+nt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>{if(!1===e)throw new K(n(o," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!at[o]&&(at[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}},ot.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new K("option "+a+" must be "+r,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new K("Unknown option "+a,K.ERR_BAD_OPTION)}},validators:ot};const st=it.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ne(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&it.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&(W.isFunction(n)?t.paramsSerializer={serialize:n}:it.assertOptions(n,{encode:st.function,serialize:st.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&W.merge(o.common,o[t.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Te.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!s){const e=[rt.bind(this),void 0];for(e.unshift(...i),e.push(...c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=i.length;let f=t;for(;l<d;){const e=i[l++],t=i[l++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=rt.call(this,f)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(ke((e=Ne(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ne(r||{},{method:e,url:t,data:(r||{}).data}))}}),W.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Se(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ft).forEach(([e,t])=>{ft[t]=e});var pt=ft;const mt=function e(t){const r=new ut(t),o=n(ut.prototype.request,r);return W.extend(o,ut.prototype,r,{allOwnKeys:!0}),W.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return e(Ne(t,r))},o}(ge);mt.Axios=ut,mt.CanceledError=Se,mt.CancelToken=lt,mt.isCancel=Oe,mt.VERSION=nt,mt.toFormData=te,mt.AxiosError=K,mt.Cancel=mt.CanceledError,mt.all=function(e){return Promise.all(e)},mt.spread=function(e){return function(t){return e.apply(null,t)}},mt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},mt.mergeConfig=Ne,mt.AxiosHeaders=Te,mt.formToJSON=e=>ye(W.isHTMLForm(e)?new FormData(e):e),mt.getAdapter=et,mt.HttpStatusCode=pt,mt.default=mt,e.exports=mt},6462:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=async function(e,{address:t,index:r,value:o}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,o]})};const n=r(985)},6491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateSiweMessage=function(e){const{address:t,domain:r,message:a,nonce:i,scheme:s,time:c=new Date}=e;if(r&&a.domain!==r)return!1;if(i&&a.nonce!==i)return!1;if(s&&a.scheme!==s)return!1;if(a.expirationTime&&c>=a.expirationTime)return!1;if(a.notBefore&&c<a.notBefore)return!1;try{if(!a.address)return!1;if(!(0,n.isAddress)(a.address,{strict:!1}))return!1;if(t&&!(0,o.isAddressEqual)(a.address,t))return!1}catch{return!1}return!0};const n=r(9742),o=r(4324)},6524:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(821);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var o=r(5617);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return o.narrow}});var a=r(9150);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return a.formatAbi}});var i=r(7905);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return i.formatAbiItem}});var s=r(7087);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var c=r(2026);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return c.formatAbiParameters}});var u=r(4178);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return u.parseAbi}});var d=r(7341);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return d.parseAbiItem}});var l=r(5195);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return l.parseAbiParameter}});var f=r(7054);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var p=r(3200);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return p.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return p.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return p.UnknownSolidityTypeError}});var m=r(6992);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var b=r(1923);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return b.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return b.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return b.UnknownSignatureError}});var y=r(9361);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return y.InvalidParenthesisError}});var h=r(7872);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return h.CircularReferenceError}})},6532:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=async function(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}},6545:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=async function(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const o=(0,n.parseNftUri)(r),a=await(0,n.getNftTokenUri)(e,{nft:o}),{uri:i,isOnChain:s,isEncoded:c}=(0,n.resolveAvatarUri)({uri:a,gatewayUrls:t});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const e=c?atob(i.replace("data:application/json;base64,","")):i,r=JSON.parse(e);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(r),gatewayUrls:t})}let u=o.tokenID;return"erc1155"===o.namespace&&(u=u.replace("0x","").padStart(64,"0")),(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,u)})}(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})};const n=r(3075)},6589:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=async function(e,{blockCount:t,blockNumber:r,blockTag:a="latest",rewardPercentiles:i}){const s="bigint"==typeof r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||a,i]},{dedupe:Boolean(s)});return(0,o.formatFeeHistory)(c)};const n=r(985),o=r(5549)},6590:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.multicall3Bytecode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=void 0,t.deploylessCallViaBytecodeBytecode="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",t.deploylessCallViaFactoryBytecode="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",t.erc6492SignatureValidatorByteCode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.multicall3Bytecode="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},6625:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.maxInt8=127n,t.maxInt16=32767n,t.maxInt24=8388607n,t.maxInt32=2n**31n-1n,t.maxInt40=2n**39n-1n,t.maxInt48=2n**47n-1n,t.maxInt56=2n**55n-1n,t.maxInt64=2n**63n-1n,t.maxInt72=2n**71n-1n,t.maxInt80=2n**79n-1n,t.maxInt88=2n**87n-1n,t.maxInt96=2n**95n-1n,t.maxInt104=2n**103n-1n,t.maxInt112=2n**111n-1n,t.maxInt120=2n**119n-1n,t.maxInt128=2n**127n-1n,t.maxInt136=2n**135n-1n,t.maxInt144=2n**143n-1n,t.maxInt152=2n**151n-1n,t.maxInt160=2n**159n-1n,t.maxInt168=2n**167n-1n,t.maxInt176=2n**175n-1n,t.maxInt184=2n**183n-1n,t.maxInt192=2n**191n-1n,t.maxInt200=2n**199n-1n,t.maxInt208=2n**207n-1n,t.maxInt216=2n**215n-1n,t.maxInt224=2n**223n-1n,t.maxInt232=2n**231n-1n,t.maxInt240=2n**239n-1n,t.maxInt248=2n**247n-1n,t.maxInt256=2n**255n-1n,t.minInt8=-128n,t.minInt16=-32768n,t.minInt24=-8388608n,t.minInt32=-(2n**31n),t.minInt40=-(2n**39n),t.minInt48=-(2n**47n),t.minInt56=-(2n**55n),t.minInt64=-(2n**63n),t.minInt72=-(2n**71n),t.minInt80=-(2n**79n),t.minInt88=-(2n**87n),t.minInt96=-(2n**95n),t.minInt104=-(2n**103n),t.minInt112=-(2n**111n),t.minInt120=-(2n**119n),t.minInt128=-(2n**127n),t.minInt136=-(2n**135n),t.minInt144=-(2n**143n),t.minInt152=-(2n**151n),t.minInt160=-(2n**159n),t.minInt168=-(2n**167n),t.minInt176=-(2n**175n),t.minInt184=-(2n**183n),t.minInt192=-(2n**191n),t.minInt200=-(2n**199n),t.minInt208=-(2n**207n),t.minInt216=-(2n**215n),t.minInt224=-(2n**223n),t.minInt232=-(2n**231n),t.minInt240=-(2n**239n),t.minInt248=-(2n**247n),t.minInt256=-(2n**255n),t.maxUint8=255n,t.maxUint16=65535n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},6651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=void 0;const n=r(4900),o=r(6246);class a extends o.BaseError{constructor({domain:e}){super(`Invalid domain "${(0,n.stringify)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}t.InvalidDomainError=a;class i extends o.BaseError{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}t.InvalidPrimaryTypeError=i;class s extends o.BaseError{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}t.InvalidStructTypeError=s},6659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=async function(e,{hash:t,transactionReceipt:r}){const[i,s]=await Promise.all([(0,n.getAction)(e,o.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,a.getTransaction,"getTransaction")({hash:t}):void 0]),c=r?.blockNumber||s?.blockNumber;return c?i-c+1n:0n};const n=r(6207),o=r(5729),a=r(2401)},6687:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=async function(e,t){const{account:r=e.account,assertChainId:p=!0,chain:v=e.chain,accessList:E,authorizationList:w,blobs:x,data:P,dataSuffix:I=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,type:R,value:_,...C}=t;if(void 0===r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const M=r?(0,n.parseAccount)(r):null;try{(0,m.assertRequest)(t);const r=await(async()=>t.to?t.to:null!==t.to&&w&&w.length>0?await(0,i.recoverAuthorizationAddress)({authorization:w[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===M?.type||null===M){let t;null!==v&&(t=await(0,f.getAction)(e,b.getChainId,"getChainId")({}),p&&(0,s.assertCurrentChain)({currentChainId:t,chain:v}));const n=e.chain?.formatters?.transactionRequest?.format,o=(n||l.formatTransactionRequest)({...(0,d.extract)(C,{format:n}),accessList:E,account:M,authorizationList:w,blobs:x,chainId:t,data:P?(0,c.concat)([P,I??"0x"]):P,gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,to:r,type:R,value:_},"sendTransaction"),a=g.get(e.uid),i=a?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:i,params:[o]},{retryCount:0})}catch(t){if(!1===a)throw t;const r=t;if("InvalidInputRpcError"===r.name||"InvalidParamsRpcError"===r.name||"MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)return await e.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(t=>(g.set(e.uid,!0),t)).catch(t=>{const n=t;if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw g.set(e.uid,!1),r;throw n});throw r}}if("local"===M?.type){const t=await(0,f.getAction)(e,y.prepareTransactionRequest,"prepareTransactionRequest")({account:M,accessList:E,authorizationList:w,blobs:x,chain:v,data:P?(0,c.concat)([P,I??"0x"]):P,gas:T,gasPrice:A,maxFeePerBlobGas:O,maxFeePerGas:S,maxPriorityFeePerGas:B,nonce:j,nonceManager:M.nonceManager,parameters:[...y.defaultParameters,"sidecars"],type:R,value:_,...C,to:r}),n=v?.serializers?.transaction,o=await M.signTransaction(t,{serializer:n});return await(0,f.getAction)(e,h.sendRawTransaction,"sendRawTransaction")({serializedTransaction:o})}if("smart"===M?.type)throw new o.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:M?.type})}catch(e){if(e instanceof o.AccountTypeNotSupportedError)throw e;throw(0,u.getTransactionError)(e,{...t,account:M,chain:t.chain||void 0})}};const n=r(9006),o=r(2540),a=r(6246),i=r(1184),s=r(2779),c=r(6776),u=r(2403),d=r(796),l=r(4712),f=r(6207),p=r(7848),m=r(4969),b=r(1093),y=r(8807),h=r(9085),g=new p.LruMap(128)},6705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=async function(e,t){const{abi:r,address:u,args:d,functionName:l,dataSuffix:f=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...p}=t,m=p.account?(0,n.parseAccount)(p.account):e.account,b=(0,a.encodeFunctionData)({abi:r,args:d,functionName:l});try{const{data:n}=await(0,s.getAction)(e,c.call,"call")({batch:!1,data:`${b}${f?f.replace("0x",""):""}`,to:u,...p,account:m});return{result:(0,o.decodeFunctionResult)({abi:r,args:d,functionName:l,data:n||"0x"}),request:{abi:r.filter(e=>"name"in e&&e.name===t.functionName),address:u,args:d,dataSuffix:f,functionName:l,...p,account:m}}}catch(e){throw(0,i.getContractError)(e,{abi:r,address:u,args:d,docsPath:"/docs/contract/simulateContract",functionName:l,sender:m?.address})}};const n=r(9006),o=r(7541),a=r(6144),i=r(6173),s=r(6207),c=r(7141)},6776:(e,t)=>{function r(e){let t=0;for(const r of e)t+=r.length;const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},6785:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=async function(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})};const n=r(985)},6825:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderRpcError=void 0;class r extends Error{constructor(e,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=t}}t.ProviderRpcError=r},6839:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=async function(e,t){const{accessList:r,data:a,from:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:l,to:f,value:p,...m}=t,b=e.chain?.formatters?.transactionRequest?.format,y=(b||o.formatTransactionRequest)({...(0,n.extract)(m,{format:b}),accessList:r,data:a,from:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:l,to:f,value:p},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[y]})};const n=r(796),o=r(4712)},6861:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;const n=r(6246);class o extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=o},6873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=async function(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||o.formatTransactionReceipt)(r,"getTransactionReceipt")};const n=r(3727),o=r(4537)},6953:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;const n=r(4520),o=r(2285),a=r(6246);class i extends a.BaseError{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e,name:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=i;class s extends a.BaseError{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class c extends a.BaseError{constructor({data:e,size:t}){super([`Data size of ${t} bytes is invalid.`,"Size must be in increments of 32 bytes (size % 32 === 0)."].join("\n"),{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=c;class u extends a.BaseError{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=u;class d extends a.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=d;class l extends a.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=l;class f extends a.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,o.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class p extends a.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=p;class m extends a.BaseError{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=m;class b extends a.BaseError{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t,name:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=b;class y extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=y;class h extends a.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=h;class g extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=g;class v extends a.BaseError{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t,name:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class E extends a.BaseError{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"})}}t.AbiFunctionNotFoundError=E;class w extends a.BaseError{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=w;class x extends a.BaseError{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=x;class P extends a.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=P;class I extends a.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=I;class T extends a.BaseError{constructor({abiItem:e,data:t,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${o} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=o}}t.DecodeLogDataMismatch=T;class A extends a.BaseError{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=A;class O extends a.BaseError{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"})}}t.InvalidAbiEncodingTypeError=O;class S extends a.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=S;class B extends a.BaseError{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}t.InvalidArrayError=B;class j extends a.BaseError{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=j;class R extends a.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=R},6968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransactionSync=async function(e,t){const{account:r=e.account,assertChainId:m=!0,chain:w=e.chain,accessList:x,authorizationList:P,blobs:I,data:T,dataSuffix:A=("string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,pollingInterval:C,throwOnReceiptRevert:M,type:k,value:F,...N}=t,U=t.timeout??Math.max(3*(w?.blockTime??0),5e3);if(void 0===r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});const z=r?(0,n.parseAccount)(r):null;try{(0,b.assertRequest)(t);const r=await(async()=>t.to?t.to:null!==t.to&&P&&P.length>0?await(0,s.recoverAuthorizationAddress)({authorization:P[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===z?.type||null===z){let t;null!==w&&(t=await(0,p.getAction)(e,y.getChainId,"getChainId")({}),m&&(0,c.assertCurrentChain)({currentChainId:t,chain:w}));const n=e.chain?.formatters?.transactionRequest?.format,o=(n||f.formatTransactionRequest)({...(0,l.extract)(N,{format:n}),accessList:x,account:z,authorizationList:P,blobs:I,chainId:t,data:T?(0,u.concat)([T,A??"0x"]):T,gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,to:r,type:k,value:F},"sendTransaction"),a=E.get(e.uid),s=a?"wallet_sendTransaction":"eth_sendTransaction",d=await(async()=>{try{return await e.request({method:s,params:[o]},{retryCount:0})}catch(t){if(!1===a)throw t;const r=t;if("InvalidInputRpcError"===r.name||"InvalidParamsRpcError"===r.name||"MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)return await e.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(t=>(E.set(e.uid,!0),t)).catch(t=>{const n=t;if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw E.set(e.uid,!1),r;throw n});throw r}})(),b=await(0,p.getAction)(e,h.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:d,pollingInterval:C,timeout:U});if(M&&"reverted"===b.status)throw new i.TransactionReceiptRevertedError({receipt:b});return b}if("local"===z?.type){const n=await(0,p.getAction)(e,g.prepareTransactionRequest,"prepareTransactionRequest")({account:z,accessList:x,authorizationList:P,blobs:I,chain:w,data:T?(0,u.concat)([T,A??"0x"]):T,gas:O,gasPrice:S,maxFeePerBlobGas:B,maxFeePerGas:j,maxPriorityFeePerGas:R,nonce:_,nonceManager:z.nonceManager,parameters:[...g.defaultParameters,"sidecars"],type:k,value:F,...N,to:r}),o=w?.serializers?.transaction,a=await z.signTransaction(n,{serializer:o});return await(0,p.getAction)(e,v.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:a,throwOnReceiptRevert:M,timeout:t.timeout})}if("smart"===z?.type)throw new o.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:z?.type})}catch(e){if(e instanceof o.AccountTypeNotSupportedError)throw e;throw(0,d.getTransactionError)(e,{...t,account:z,chain:t.chain||void 0})}};const n=r(9006),o=r(2540),a=r(6246),i=r(3727),s=r(1184),c=r(2779),u=r(6776),d=r(2403),l=r(796),f=r(4712),p=r(6207),m=r(7848),b=r(4969),y=r(1093),h=r(2917),g=r(8807),v=r(1714),E=new m.LruMap(128)},6992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;const n=r(821);class o extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=o;class a extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=a;class i extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=i;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=c;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=u;class d extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=d},6998:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=async function(e,{interval:t}){const r="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}},7028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeConfig=void 0;class r{constructor(e){if(!e.apiKey)throw new Error("BridgeSDK: apiKey is required");this.apiKey=e.apiKey,this.secretKey="secretKey"in e?e.secretKey:void 0,this.environment=e.environment||"mainnet",["devnet","testnet","mainnet"].includes(this.environment)||(this.environment="mainnet");const t=r.DEFAULTS[this.environment];this.baseUrl=t.baseUrl,this.bridgeContractAddress=t.bridgeContractAddress}getBaseUrl(){return this.baseUrl}}t.BridgeConfig=r,r.DEFAULTS={devnet:{baseUrl:"https://api-sdk-dev.voidai.envistudios.com/",bridgeContractAddress:"0x6266ce15aC4f32F096Ff91881dd887a0F4bBa569"},testnet:{baseUrl:"https://sdk-backend.voidai.com/",bridgeContractAddress:"0x4aA4396BfD6F268b427077079800F420dF947b63"},mainnet:{baseUrl:"https://api-sdk.voidai.envistudios.com/",bridgeContractAddress:"0x604e8Ef901C0E69E79463D997ba7D0724A909b84"}}},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.reset=async function(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}},7054:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=function(e){const t=[];if("string"==typeof e){const r=(0,i.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:o.modifiers}))}else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if((0,o.isStructSignature)(n))continue;const c=(0,i.splitParameters)(n),u=c.length;for(let e=0;e<u;e++)t.push((0,s.parseAbiParameter)(c[e],{modifiers:o.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t};const n=r(6992),o=r(6303),a=r(5324),i=r(6351),s=r(6351)},7069:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=async function(e,{address:t,bytecode:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountCode",params:[t,r]}):await e.request({method:`${e.mode}_setCode`,params:[t,r]})}},7076:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const n=r(7202),o=r(2318),a=r(9175),i=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]),s=new Uint32Array(64);class c extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){const{A:e,B:t,C:r,D:n,E:o,F:a,G:i,H:s}=this;return[e,t,r,n,o,a,i,s]}set(e,t,r,n,o,a,i,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|a,this.G=0|i,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=s[e-15],r=s[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,o=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;s[e]=o+s[e-7]+n+s[e-16]|0}let{A:r,B:o,C:c,D:u,E:d,F:l,G:f,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,a.rotr)(d,6)^(0,a.rotr)(d,11)^(0,a.rotr)(d,25))+(0,n.Chi)(d,l,f)+i[e]+s[e]|0,m=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,o,c)|0;p=f,f=l,l=d,d=u+t|0,u=c,c=o,o=r,r=t+m|0}r=r+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,d=d+this.E|0,l=l+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,o,c,u,d,l,f,p)}roundClean(){(0,a.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,a.clean)(this.buffer)}}t.SHA256=c;class u extends c{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=u;const d=(()=>o.split(["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))))(),l=(()=>d[0])(),f=(()=>d[1])(),p=new Uint32Array(80),m=new Uint32Array(80);class b extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:o,Cl:a,Dh:i,Dl:s,Eh:c,El:u,Fh:d,Fl:l,Gh:f,Gl:p,Hh:m,Hl:b}=this;return[e,t,r,n,o,a,i,s,c,u,d,l,f,p,m,b]}set(e,t,r,n,o,a,i,s,c,u,d,l,f,p,m,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|o,this.Cl=0|a,this.Dh=0|i,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|l,this.Gh=0|f,this.Gl=0|p,this.Hh=0|m,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)p[r]=e.getUint32(t),m[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|p[e-15],r=0|m[e-15],n=o.rotrSH(t,r,1)^o.rotrSH(t,r,8)^o.shrSH(t,r,7),a=o.rotrSL(t,r,1)^o.rotrSL(t,r,8)^o.shrSL(t,r,7),i=0|p[e-2],s=0|m[e-2],c=o.rotrSH(i,s,19)^o.rotrBH(i,s,61)^o.shrSH(i,s,6),u=o.rotrSL(i,s,19)^o.rotrBL(i,s,61)^o.shrSL(i,s,6),d=o.add4L(a,u,m[e-7],m[e-16]),l=o.add4H(d,n,c,p[e-7],p[e-16]);p[e]=0|l,m[e]=0|d}let{Ah:r,Al:n,Bh:a,Bl:i,Ch:s,Cl:c,Dh:u,Dl:d,Eh:b,El:y,Fh:h,Fl:g,Gh:v,Gl:E,Hh:w,Hl:x}=this;for(let e=0;e<80;e++){const t=o.rotrSH(b,y,14)^o.rotrSH(b,y,18)^o.rotrBH(b,y,41),P=o.rotrSL(b,y,14)^o.rotrSL(b,y,18)^o.rotrBL(b,y,41),I=b&h^~b&v,T=y&g^~y&E,A=o.add5L(x,P,T,f[e],m[e]),O=o.add5H(A,w,t,I,l[e],p[e]),S=0|A,B=o.rotrSH(r,n,28)^o.rotrBH(r,n,34)^o.rotrBH(r,n,39),j=o.rotrSL(r,n,28)^o.rotrBL(r,n,34)^o.rotrBL(r,n,39),R=r&a^r&s^a&s,_=n&i^n&c^i&c;w=0|v,x=0|E,v=0|h,E=0|g,h=0|b,g=0|y,({h:b,l:y}=o.add(0|u,0|d,0|O,0|S)),u=0|s,d=0|c,s=0|a,c=0|i,a=0|r,i=0|n;const C=o.add3L(S,j,_);r=o.add3H(C,O,B,R),n=0|C}({h:r,l:n}=o.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:a,l:i}=o.add(0|this.Bh,0|this.Bl,0|a,0|i)),({h:s,l:c}=o.add(0|this.Ch,0|this.Cl,0|s,0|c)),({h:u,l:d}=o.add(0|this.Dh,0|this.Dl,0|u,0|d)),({h:b,l:y}=o.add(0|this.Eh,0|this.El,0|b,0|y)),({h,l:g}=o.add(0|this.Fh,0|this.Fl,0|h,0|g)),({h:v,l:E}=o.add(0|this.Gh,0|this.Gl,0|v,0|E)),({h:w,l:x}=o.add(0|this.Hh,0|this.Hl,0|w,0|x)),this.set(r,n,a,i,s,c,u,d,b,y,h,g,v,E,w,x)}roundClean(){(0,a.clean)(p,m)}destroy(){(0,a.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=b;class y extends b{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=y;const h=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),g=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class v extends b{constructor(){super(28),this.Ah=0|h[0],this.Al=0|h[1],this.Bh=0|h[2],this.Bl=0|h[3],this.Ch=0|h[4],this.Cl=0|h[5],this.Dh=0|h[6],this.Dl=0|h[7],this.Eh=0|h[8],this.El=0|h[9],this.Fh=0|h[10],this.Fl=0|h[11],this.Gh=0|h[12],this.Gl=0|h[13],this.Hh=0|h[14],this.Hl=0|h[15]}}t.SHA512_224=v;class E extends b{constructor(){super(32),this.Ah=0|g[0],this.Al=0|g[1],this.Bh=0|g[2],this.Bl=0|g[3],this.Ch=0|g[4],this.Cl=0|g[5],this.Dh=0|g[6],this.Dl=0|g[7],this.Eh=0|g[8],this.El=0|g[9],this.Fh=0|g[10],this.Fl=0|g[11],this.Gh=0|g[12],this.Gl=0|g[13],this.Hh=0|g[14],this.Hl=0|g[15]}}t.SHA512_256=E,t.sha256=(0,a.createHasher)(()=>new c),t.sha224=(0,a.createHasher)(()=>new u),t.sha512=(0,a.createHasher)(()=>new b),t.sha384=(0,a.createHasher)(()=>new y),t.sha512_256=(0,a.createHasher)(()=>new E),t.sha512_224=(0,a.createHasher)(()=>new v)},7085:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},7087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";const a=t.components.length;for(let n=0;n<a;n++){r+=e(t.components[n]),n<a-1&&(r+=", ")}const i=(0,n.execTyped)(o,t.type);return r+=`)${i?.array||""}`,e({...t,type:r})}return"indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name?`${r} ${t.name}`:r};const n=r(8651),o=/^tuple(?<array>(\[(\d*)\])*)$/},7106:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=function(e){return{addChain:t=>(0,a.addChain)(e,t),deployContract:t=>(0,i.deployContract)(e,t),fillTransaction:t=>(0,n.fillTransaction)(e,t),getAddresses:()=>(0,s.getAddresses)(e),getCallsStatus:t=>(0,c.getCallsStatus)(e,t),getCapabilities:t=>(0,u.getCapabilities)(e,t),getChainId:()=>(0,o.getChainId)(e),getPermissions:()=>(0,d.getPermissions)(e),prepareAuthorization:t=>(0,l.prepareAuthorization)(e,t),prepareTransactionRequest:t=>(0,f.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,p.requestAddresses)(e),requestPermissions:t=>(0,m.requestPermissions)(e,t),sendCalls:t=>(0,b.sendCalls)(e,t),sendCallsSync:t=>(0,y.sendCallsSync)(e,t),sendRawTransaction:t=>(0,h.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,g.sendRawTransactionSync)(e,t),sendTransaction:t=>(0,v.sendTransaction)(e,t),sendTransactionSync:t=>(0,E.sendTransactionSync)(e,t),showCallsStatus:t=>(0,w.showCallsStatus)(e,t),signAuthorization:t=>(0,x.signAuthorization)(e,t),signMessage:t=>(0,P.signMessage)(e,t),signTransaction:t=>(0,I.signTransaction)(e,t),signTypedData:t=>(0,T.signTypedData)(e,t),switchChain:t=>(0,A.switchChain)(e,t),waitForCallsStatus:t=>(0,O.waitForCallsStatus)(e,t),watchAsset:t=>(0,S.watchAsset)(e,t),writeContract:t=>(0,B.writeContract)(e,t),writeContractSync:t=>(0,j.writeContractSync)(e,t)}};const n=r(4158),o=r(1093),a=r(8101),i=r(44),s=r(4593),c=r(230),u=r(6423),d=r(4521),l=r(5805),f=r(8807),p=r(6186),m=r(5442),b=r(8018),y=r(4697),h=r(9085),g=r(1714),v=r(6687),E=r(6968),w=r(2897),x=r(1439),P=r(3137),I=r(9978),T=r(498),A=r(1348),O=r(138),S=r(6532),B=r(6160),j=r(6155)},7112:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=async function(e,t){const{blockNumber:r,blockTag:c,name:u}=t,{chain:d}=e,l=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,n.getChainContractAddress)({blockNumber:r,chain:d,contract:"ensUniversalResolver"})})(),f=d?.ensTlds;if(f&&!f.some(e=>u.endsWith(e)))throw new Error(`${u} is not a valid ENS TLD (${f?.join(", ")}) for chain "${d.name}" (id: ${d.id}).`);const[p]=await(0,i.getAction)(e,s.readContract,"readContract")({address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,o.toHex)((0,a.packetToBytes)(u))],blockNumber:r,blockTag:c});return p};const n=r(3454),o=r(985),a=r(846),i=r(6207),s=r(5275)},7141:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.call=async function(e,t){const{account:T=e.account,authorizationList:A,batch:O=Boolean(e.batch?.multicall),blockNumber:S,blockTag:B=e.experimental_blockTag??"latest",accessList:j,blobs:R,blockOverrides:_,code:C,data:M,factory:k,factoryData:F,gas:N,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:H,maxPriorityFeePerGas:L,nonce:D,to:$,value:q,stateOverride:G,...V}=t,W=T?(0,a.parseAccount)(T):void 0;if(C&&(k||F))throw new u.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(C&&$)throw new u.BaseError("Cannot provide both `code` & `to` as parameters.");const K=C&&M,Z=k&&F&&$&&M,J=K||Z,Y=K?P({code:C,data:M}):Z?function(e){const{data:t,factory:r,factoryData:o,to:a}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:c.deploylessCallViaFactoryBytecode,args:[a,t,r,o]})}({data:M,factory:k,factoryData:F,to:$}):M;try{(0,x.assertRequest)(t);const r=("bigint"==typeof S?(0,y.numberToHex)(S):void 0)||B,n=_?o.toRpc(_):void 0,a=(0,w.serializeStateOverride)(G),u=e.chain?.formatters?.transactionRequest?.format,p=(u||v.formatTransactionRequest)({...(0,g.extract)(V,{format:u}),accessList:j,account:W,authorizationList:A,blobs:R,data:Y,gas:N,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:H,maxPriorityFeePerGas:L,nonce:D,to:J?void 0:$,value:q},"call");if(O&&function({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(s.aggregate3Signature)||!r||Object.values(n).filter(e=>void 0!==e).length>0)}({request:p})&&!a&&!n)try{return await async function(e,t){const{batchSize:r=1024,deployless:n=!1,wait:o=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:s=e.experimental_blockTag??"latest",data:u,to:p}=t,h=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,b.getChainContractAddress)({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new d.ClientChainNotConfiguredError})(),g=("bigint"==typeof a?(0,y.numberToHex)(a):void 0)||s,{schedule:v}=(0,E.createBatchScheduler)({id:`${e.uid}.${g}`,wait:o,shouldSplitBatch(e){const t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{const r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,m.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{...null===h?{data:P({code:c.multicall3Bytecode,data:n})}:{to:h,data:n}},g]});return(0,f.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:w,success:x}]=await v({data:u,to:p});if(!x)throw new l.RawContractError({data:w});return"0x"===w?{data:void 0}:{data:w}}(e,{...p,blockNumber:S,blockTag:B})}catch(e){if(!(e instanceof d.ClientChainNotConfiguredError||e instanceof d.ChainDoesNotSupportContract))throw e}const h=(()=>{const e=[p,r];return a&&n?[...e,a,n]:a?[...e,a]:n?[...e,{},n]:e})(),I=await e.request({method:"eth_call",params:h});return"0x"===I?{data:void 0}:{data:I}}catch(n){const o=I(n),{offchainLookup:a,offchainLookupSignature:i}=await Promise.resolve().then(()=>r(5678));if(!1!==e.ccipRead&&o?.slice(0,10)===i&&$)return{data:await a(e,{data:o,to:$})};if(J&&"0x101bb98d"===o?.slice(0,10))throw new l.CounterfactualDeploymentFailedError({factory:k});throw(0,h.getCallError)(n,{...t,account:W,chain:e.chain})}},t.getRevertErrorData=I;const n=r(6524),o=r(5709),a=r(9006),i=r(3302),s=r(7435),c=r(6590),u=r(6246),d=r(4698),l=r(7677),f=r(7541),p=r(4687),m=r(6144),b=r(3454),y=r(985),h=r(1403),g=r(796),v=r(4712),E=r(5290),w=r(120),x=r(4969);function P(e){const{code:t,data:r}=e;return(0,p.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(bytes, bytes)"]),bytecode:c.deploylessCallViaBytecodeBytecode,args:[t,r]})}function I(e){if(!(e instanceof u.BaseError))return;const t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}},7144:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSelector=void 0;const n=r(3239);t.toEventSelector=n.toSignatureHash},7150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:d,poll:l,pollingInterval:f=e.pollingInterval}){return(void 0!==l?l:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{const l=(0,i.stringify)(["watchPendingTransactions",e.uid,t,f]);return(0,o.observe)(l,{onTransactions:d,onError:r},r=>{let o;const i=(0,a.poll)(async()=>{try{if(!o)try{return void(o=await(0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({}))}catch(e){throw i(),e}const a=await(0,n.getAction)(e,c.getFilterChanges,"getFilterChanges")({filter:o});if(0===a.length)return;if(t)r.onTransactions(a);else for(const e of a)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{o&&await(0,n.getAction)(e,u.uninstallFilter,"uninstallFilter")({filter:o}),i()}})})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;d([r])},onError(e){r?.(e)}});n=o,t||n()}catch(e){r?.(e)}})(),()=>n()})()};const n=r(6207),o=r(2093),a=r(3940),i=r(4900),s=r(9358),c=r(3590),u=r(1541)},7174:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=async function(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})};const n=r(985)},7179:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChecksumError=t.InvalidInputError=t.InvalidAddressError=void 0,t.assert=u,t.checksum=d,t.from=l,t.fromPublicKey=function(e,t={}){return l(`0x${i.keccak256(`0x${s.toHex(e).slice(4)}`).substring(26)}`,t)},t.isEqual=function(e,t){return u(e,{strict:!1}),u(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},t.validate=function(e,t={}){const{strict:r=!0}=t??{};try{return u(e,{strict:r}),!0}catch{return!1}};const n=r(3516),o=r(1644),a=r(7560),i=r(347),s=r(6259),c=/^0x[a-fA-F0-9]{40}$/;function u(e,t={}){const{strict:r=!0}=t;if(!c.test(e))throw new f({address:e,cause:new p});if(r){if(e.toLowerCase()===e)return;if(d(e)!==e)throw new f({address:e,cause:new m})}}function d(e){if(o.checksum.has(e))return o.checksum.get(e);u(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=i.keccak256(n.fromString(t),{as:"Bytes"}),a=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());const s=`0x${a.join("")}`;return o.checksum.set(e,s),s}function l(e,t={}){const{checksum:r=!1}=t;return u(e),r?d(e):e}class f extends a.BaseError{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}t.InvalidAddressError=f;class p extends a.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}t.InvalidInputError=p;class m extends a.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}t.InvalidChecksumError=m},7200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=async function(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}};const n=r(294)},7202:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=o,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};const n=r(9175);function o(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const o=BigInt(32),a=BigInt(4294967295),i=Number(r>>o&a),s=Number(r&a),c=n?4:0,u=n?0:4;e.setUint32(t+c,i,n),e.setUint32(t+u,s,n)}class a extends n.Hash{constructor(e,t,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);const{view:t,buffer:r,blockLen:o}=this,a=e.length;for(let i=0;i<a;){const s=Math.min(o-this.pos,a-i);if(s===o){const t=(0,n.createView)(e);for(;o<=a-i;i+=o)this.process(t,i);continue}r.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:a,isLE:i}=this;let{pos:s}=this;t[s++]=128,(0,n.clean)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;o(r,a-8,BigInt(8*this.length),i),this.process(r,0);const c=(0,n.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=u/4,l=this.get();if(d>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)c.setUint32(4*e,l[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=n,e.pos=i,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=a,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7238:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=async function(e){return await e.request({method:"evm_snapshot"})}},7318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaWallet=void 0;class r{constructor(){this.account=null}static isPhantomInstalled(){return"undefined"!=typeof window&&void 0!==window.solana&&window.solana.isPhantom}async connect(){if("undefined"==typeof window)throw new Error("SolanaWallet: Browser environment required");if(!r.isPhantomInstalled())throw new Error("Phantom is not installed. Please install Phantom extension from https://phantom.app/");const e=window.solana;try{const t=await e.connect();if(!t||!t.publicKey)throw new Error("Failed to connect to Phantom wallet");return this.account={address:t.publicKey.toString(),publicKey:t.publicKey.toString()},e.on("disconnect",this.handleDisconnect.bind(this)),this.account}catch(e){if(4001===e.code)throw new Error("User rejected the connection request");throw new Error(`Failed to connect to Phantom: ${e.message||e}`)}}getAccount(){return this.account}isConnected(){return null!==this.account}disconnect(){if(this.account&&"undefined"!=typeof window){const e=window.solana;if(e&&e.disconnect&&"function"==typeof e.disconnect)try{const t=e.disconnect();t&&"function"==typeof t.catch&&t.catch(()=>{})}catch(e){}}this.account=null}getProvider(){return"undefined"==typeof window?null:window.solana}handleDisconnect(){this.disconnect()}}t.SolanaWallet=r},7341:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,i.parseSignature)(e);else{const r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){const n=e[a];if(!(0,o.isStructSignature)(n)){t=(0,i.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t};const n=r(3200),o=r(6303),a=r(5324),i=r(6351)},7349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=function(e,t="hex"){const r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new o.InvalidHexValueError(e);return(0,i.hexToBytes)(e)}return e})();return c((0,a.createCursor)(r,{recursiveReadLimit:Number.POSITIVE_INFINITY}),t)};const n=r(6246),o=r(5366),a=r(6323),i=r(7655),s=r(985);function c(e,t="hex"){if(0===e.bytes.length)return"hex"===t?(0,s.bytesToHex)(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const n=u(e,r,128),o=e.readBytes(n);return"hex"===t?(0,s.bytesToHex)(o):o}return function(e,t,r){const n=e.position,o=[];for(;e.position-n<t;)o.push(c(e,r));return o}(e,u(e,r,192),t)}function u(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new n.BaseError("Invalid RLP prefix")}},7403:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBlobBaseFee=async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}},7415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=function(e,t){const r=t||"hex",s=(0,n.sha256)((0,o.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===r?s:(0,i.toHex)(s)};const n=r(2623),o=r(6015),a=r(7655),i=r(985)},7435:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},7440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.idCache=void 0,t.idCache={current:0,take(){return this.current++},reset(){this.current=0}}},7469:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=async function(e,{address:t,blockNumber:r,blockTag:o="latest",slot:a}){const i=void 0!==r?(0,n.numberToHex)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,a,i||o]})};const n=r(985)},7474:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashAuthorization=function(e){const{chainId:t,nonce:r,to:c}=e,u=e.contractAddress??e.address,d=(0,s.keccak256)((0,n.concatHex)(["0x05",(0,i.toRlp)([t?(0,a.numberToHex)(t):"0x",u,r?(0,a.numberToHex)(r):"0x"])]));return"bytes"===c?(0,o.hexToBytes)(d):d};const n=r(6776),o=r(7655),a=r(985),i=r(7926),s=r(3625)},7477:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=async function(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})};const n=r(985)},7488:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},7541:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=function(e){const{abi:t,args:r,functionName:s,data:c}=e;let u=t[0];if(s){const e=(0,a.getAbiItem)({abi:t,args:r,name:s});if(!e)throw new n.AbiFunctionNotFoundError(s,{docsPath:i});u=e}if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!u.outputs)throw new n.AbiFunctionOutputsNotFoundError(u.name,{docsPath:i});const d=(0,o.decodeAbiParameters)(u.outputs,c);return d&&d.length>1?d:d&&1===d.length?d[0]:void 0};const n=r(6953),o=r(4612),a=r(775),i="/docs/contract/decodeFunctionResult"},7560:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;const n=r(666);class o extends Error{static setStaticOptions(e){o.prototype.docsOrigin=e.docsOrigin,o.prototype.showVersion=e.showVersion,o.prototype.version=e.version}constructor(e,t={}){const r=(()=>{if(t.cause instanceof o){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof o&&t.cause.docsPath||t.docsPath,a=t.docsOrigin??o.prototype.docsOrigin,i=`${a}${n??""}`,s=Boolean(t.version??o.prototype.showVersion),c=t.version??o.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||s?["",r?`Details: ${r}`:void 0,n?`See: ${i}`:void 0,s?`Version: ${c}`:void 0]:[]].filter(e=>"string"==typeof e).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,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=i,this.docsOrigin=a,this.docsPath=n,this.shortMessage=e,this.showVersion=s,this.version=c}walk(e){return a(this,e)}}function a(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&e.cause?a(e.cause,t):t?null:e}t.BaseError=o,Object.defineProperty(o,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${(0,n.getVersion)()}`}}),o.setStaticOptions(o.defaultStaticOptions)},7572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTransactionAddress=async function(e){const{serializedTransaction:t,signature:r}=e,s=(0,o.parseTransaction)(t),c=r??{r:s.r,s:s.s,v:s.v,yParity:s.yParity},u=(0,a.serializeTransaction)({...s,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await(0,i.recoverAddress)({hash:(0,n.keccak256)(u),signature:c})};const n=r(3625),o=r(8057),a=r(5886),i=r(2374)},7575:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=function(e){const{abi:t,bytecode:r,data:i}=e;if(i===r)return{bytecode:r};const s=t.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s))throw new n.AbiConstructorParamsNotFoundError({docsPath:a});if(!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});return{args:(0,o.decodeAbiParameters)(s.inputs,`0x${i.replace(r,"")}`),bytecode:r}};const n=r(6953),o=r(4612),a="/docs/contract/decodeDeployData"},7609:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=async function(e,{address:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}){const a="bigint"==typeof r?(0,n.numberToHex)(r):void 0,i=await e.request({method:"eth_getBalance",params:[t,a||o]});return BigInt(i)};const n=r(985)},7655:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?p(e,t):"boolean"==typeof e?u(e,t):(0,o.isHex)(e)?f(e,t):m(e,t)},t.boolToBytes=u,t.hexToBytes=f,t.numberToBytes=p,t.stringToBytes=m;const n=r(6246),o=r(6015),a=r(8987),i=r(294),s=r(985),c=new TextEncoder;function u(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,a.pad)(r,{size:t.size})):r}const d={zero:48,nine:57,A:65,F:70,a:97,f:102};function l(e){return e>=d.zero&&e<=d.nine?e-d.zero:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,i.assertSize)(r,{size:t.size}),r=(0,a.pad)(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,c=new Uint8Array(s);for(let e=0,t=0;e<s;e++){const r=l(o.charCodeAt(t++)),a=l(o.charCodeAt(t++));if(void 0===r||void 0===a)throw new n.BaseError(`Invalid byte sequence ("${o[t-2]}${o[t-1]}" in "${o}").`);c[e]=16*r+a}return c}function p(e,t){return f((0,s.numberToHex)(e,t))}function m(e,t={}){const r=c.encode(e);return"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,a.pad)(r,{dir:"right",size:t.size})):r}},7677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;const n=r(9006),o=r(924),a=r(8181),i=r(4520),s=r(449),c=r(775),u=r(6117),d=r(5277),l=r(6953),f=r(6246),p=r(6254),m=r(3727),b=r(9382);class y extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:a,gas:i,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:f,to:b,value:y,stateOverride:h}){const g=t?(0,n.parseAccount)(t):void 0;let v=(0,m.prettyPrint)({from:g?.address,to:b,value:void 0!==y&&`${(0,u.formatEther)(y)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${(0,d.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.formatGwei)(c)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,d.formatGwei)(l)} gwei`,nonce:f});h&&(v+=`\n${(0,p.prettyStateOverride)(h)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.CallExecutionError=y;class h extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:a,sender:u}){const d=(0,c.getAbiItem)({abi:t,args:r,name:a}),l=d?(0,s.formatAbiItemWithArgs)({abiItem:d,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=d?(0,i.formatAbiItem)(d,{includeName:!0}):void 0,p=(0,m.prettyPrint)({address:n&&(0,b.getContractAddress)(n),function:f,args:l&&"()"!==l&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${l}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}t.ContractFunctionExecutionError=h;class g extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let c,u,d,f,p;if(t&&"0x"!==t)try{u=(0,a.decodeErrorResult)({abi:e,data:t});const{abiItem:r,errorName:n,args:c}=u;if("Error"===n)f=c[0];else if("Panic"===n){const[e]=c;f=o.panicReasons[e]}else{const e=r?(0,i.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){c=e}else n&&(f=n);c instanceof l.AbiErrorSignatureNotFoundError&&(p=c.signature,d=[`Unable to decode signature "${p}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${p}.`]),super(f&&"execution reverted"!==f||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,f||p].join("\n"):`The contract function "${r}" reverted.`,{cause:c,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=t,this.reason=f,this.signature=p}}t.ContractFunctionRevertedError=g;class v extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=v;class E extends f.BaseError{constructor({factory:e}){super("Deployment for counterfactual contract call failed"+(e?` for factory "${e}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}t.CounterfactualDeploymentFailedError=E;class w extends f.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=w},7688:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.slice=function(e,t,r,{strict:n}={}){return(0,o.isHex)(e,{strict:!1})?u(e,t,r,{strict:n}):c(e,t,r,{strict:n})},t.sliceBytes=c,t.sliceHex=u;const n=r(5375),o=r(6015),a=r(2285);function i(e,t){if("number"==typeof t&&t>0&&t>(0,a.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,a.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,a.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,a.size)(e)})}function c(e,t,r,{strict:n}={}){i(e,t);const o=e.slice(t,r);return n&&s(o,t,r),o}function u(e,t,r,{strict:n}={}){i(e,t);const o=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&s(o,t,r),o}},7707:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toPrefixedMessage=function(e){const t="string"==typeof e?(0,i.stringToHex)(e):"string"==typeof e.raw?e.raw:(0,i.bytesToHex)(e.raw),r=(0,i.stringToHex)(`${n.presignMessagePrefix}${(0,a.size)(t)}`);return(0,o.concat)([r,t])};const n=r(4019),o=r(6776),a=r(2285),i=r(985)},7723:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=function(e,t="wei"){return(0,o.parseUnits)(e,n.gweiUnits[t])};const n=r(4839),o=r(4800)},7757:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=function(e){const{abi:t,errorName:r,args:d}=e;let l=t[0];if(r){const e=(0,c.getAbiItem)({abi:t,args:d,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:u});l=e}if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:u});const f=(0,s.formatAbiItem)(l),p=(0,a.toFunctionSelector)(f);let m="0x";if(d&&d.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:u});m=(0,i.encodeAbiParameters)(l.inputs,d)}return(0,o.concatHex)([p,m])};const n=r(6953),o=r(6776),a=r(1456),i=r(2732),s=r(4520),c=r(775),u="/docs/contract/encodeErrorResult"},7848:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r 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}}t.LruMap=r},7872:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;const n=r(821);class o extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=o},7905:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable"};const n=r(2026)},7911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=function(e){const t=(0,o.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)};const n=r(8728),o=r(3625)},7919:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sidecarsToVersionedHashes=function(e){const{sidecars:t,version:r}=e,o=e.to??("string"==typeof t[0].blob?"hex":"bytes"),a=[];for(const{commitment:e}of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:o,version:r}));return a};const n=r(4143)},7925:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Bridge=void 0;const n=r(2603);t.Bridge=class{constructor(e){this.apiClient=e}async bridge(e){try{const t=await this.apiClient.bridgeSwap(e),r=t;if(r.encodedData&&r.signature){const e=this.apiClient.getBridgeContractAddress(),t=(0,n.encodeFunctionData)({abi:[{type:"function",name:"burn",stateMutability:"nonpayable",inputs:[{name:"encodedData",type:"bytes"},{name:"signature",type:"bytes"}],outputs:[]}],functionName:"burn",args:[r.encodedData,r.signature]});r.evmTransaction={to:e,data:t,value:"0x0"}}return t}catch(e){throw new Error(e?.message||"Failed to execute bridge swap")}}async swap(e){return this.bridge(e)}async routeSwap(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route SWAP transaction")}}async routeBridge(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route BRIDGE transaction")}}async routeCcip(e){try{return await this.apiClient.routeTransaction(e)}catch(e){throw new Error(e?.message||"Failed to route CCIP transaction")}}async getBridgeFeeEstimate(e){try{return await this.apiClient.getBridgeFeeEstimate(e)}catch(e){throw new Error(e?.message||"Failed to get bridge fee estimate")}}async getRouterSwapFeeEstimate(e){try{return await this.apiClient.getRouterSwapFeeEstimate(e)}catch(e){throw new Error(e?.message||"Failed to get router swap fee estimate")}}async cancelCcipRoute(e){try{return await this.apiClient.cancelCcip(e)}catch(e){throw new Error(e?.message||"Failed to cancel CCIP transaction")}}async cancelRouterSwap(e){try{return await this.apiClient.cancelRouterSwap(e)}catch(e){throw new Error(e?.message||"Failed to cancel router swap transaction")}}async cancelBridgeSwap(e){try{return await this.apiClient.cancelBridgeSwap(e)}catch(e){throw new Error(e?.message||"Failed to cancel bridge transaction")}}async getRecentTransactions(e=1,t=20){try{return await this.apiClient.getApiTransactions(e,t)}catch(e){throw new Error(e?.message||"Failed to fetch recent transactions")}}async validateBurnTransaction(e){try{return await this.apiClient.validateBurn(e)}catch(e){throw new Error(e?.message||"Failed to validate burn transaction")}}async confirmCcipTransaction(e){try{return await this.apiClient.confirmCcipTransaction(e)}catch(e){throw new Error(e?.message||"Failed to confirm CCIP transaction")}}}},7926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)};const n=r(6246),o=r(6323),a=r(7655),i=r(985);function s(e,t="hex"){const r=c(e),n=(0,o.createCursor)(new Uint8Array(r.length));return r.encode(n),"hex"===t?(0,i.bytesToHex)(n.bytes):n.bytes}function c(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=u(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>c(e))):function(e){const t="string"==typeof e?(0,a.hexToBytes)(e):e,r=u(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+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+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function u(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.BaseError("Length is too large.")}},7948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=async function(e){const{domain:t,message:r,primaryType:a,signature:i,types:s}=e;return(0,o.recoverAddress)({hash:(0,n.hashTypedData)({domain:t,message:r,primaryType:a,types:s}),signature:i})};const n=r(9984),o=r(2374)},7962:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=async function(e,t){const{abi:r,address:i,args:s,blockHash:c,eventName:u,fromBlock:d,toBlock:l,strict:f}=t,p=u?(0,n.getAbiItem)({abi:r,name:u}):void 0,m=p?void 0:r.filter(e=>"event"===e.type);return(0,o.getAction)(e,a.getLogs,"getLogs")({address:i,args:s,blockHash:c,event:p,events:m,fromBlock:d,toBlock:l,strict:f})};const n=r(775),o=r(6207),a=r(9914)},7964:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP7702=function(e){const{authorizationList:t}=e;if(t)for(const e of t){const{chainId:t}=e,r=e.address;if(!(0,d.isAddress)(r))throw new a.InvalidAddressError({address:r});if(t<0)throw new c.InvalidChainIdError({chainId:t})}m(e)},t.assertTransactionEIP4844=function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new s.EmptyBlobError;for(const e of t){const t=(0,l.size)(e),r=(0,p.hexToNumber)((0,f.slice)(e,0,1));if(32!==t)throw new s.InvalidVersionedHashSizeError({hash:e,size:t});if(r!==n.versionedHashVersionKzg)throw new s.InvalidVersionedHashVersionError({hash:e,version:r})}}m(e)},t.assertTransactionEIP1559=m,t.assertTransactionEIP2930=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:l}=e;if(t<=0)throw new c.InvalidChainIdError({chainId:t});if(l&&!(0,d.isAddress)(l))throw new a.InvalidAddressError({address:l});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n})},t.assertTransactionLegacy=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:l}=e;if(l&&!(0,d.isAddress)(l))throw new a.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new c.InvalidChainIdError({chainId:t});if(r||s)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n})};const n=r(975),o=r(2856),a=r(6311),i=r(6246),s=r(2592),c=r(4698),u=r(2731),d=r(9742),l=r(2285),f=r(7688),p=r(294);function m(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new c.InvalidChainIdError({chainId:t});if(i&&!(0,d.isAddress)(i))throw new a.InvalidAddressError({address:i});if(n&&n>o.maxUint256)throw new u.FeeCapTooHighError({maxFeePerGas:n});if(r&&n&&r>n)throw new u.TipAboveFeeCapError({maxFeePerGas:n,maxPriorityFeePerGas:r})}},7992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.AtomicityNotSupportedError=t.AtomicReadyWalletRejectedUpgradeError=t.BundleTooLargeError=t.UnknownBundleIdError=t.DuplicateIdError=t.UnsupportedChainIdError=t.UnsupportedNonOptionalCapabilityError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;const n=r(6246),o=r(2202);class a extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,name:a,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof o.RpcRequestError?e.code:t??-1}}t.RpcError=a;class i extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=i;class s extends a{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}t.ParseRpcError=s,Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends a{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}t.InvalidRequestRpcError=c,Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends a{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}t.MethodNotFoundRpcError=u,Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class d extends a{constructor(e){super(e,{code:d.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}t.InvalidParamsRpcError=d,Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class l extends a{constructor(e){super(e,{code:l.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}t.InternalRpcError=l,Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}t.InvalidInputRpcError=f,Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}t.ResourceNotFoundRpcError=p,Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class m extends a{constructor(e){super(e,{code:m.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}t.ResourceUnavailableRpcError=m,Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends a{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}t.TransactionRejectedRpcError=b,Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends a{constructor(e,{method:t}={}){super(e,{code:y.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}t.MethodNotSupportedRpcError=y,Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class h extends a{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}t.LimitExceededRpcError=h,Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends a{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}t.JsonRpcVersionUnsupportedError=g,Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends i{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}t.UserRejectedRequestError=v,Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class E extends i{constructor(e){super(e,{code:E.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}t.UnauthorizedProviderError=E,Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class w extends i{constructor(e,{method:t}={}){super(e,{code:w.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}t.UnsupportedProviderMethodError=w,Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends i{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}t.ProviderDisconnectedError=x,Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends i{constructor(e){super(e,{code:P.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}t.ChainDisconnectedError=P,Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class I extends i{constructor(e){super(e,{code:I.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}t.SwitchChainError=I,Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class T extends i{constructor(e){super(e,{code:T.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}t.UnsupportedNonOptionalCapabilityError=T,Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class A extends i{constructor(e){super(e,{code:A.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}t.UnsupportedChainIdError=A,Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class O extends i{constructor(e){super(e,{code:O.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}t.DuplicateIdError=O,Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class S extends i{constructor(e){super(e,{code:S.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}t.UnknownBundleIdError=S,Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class B extends i{constructor(e){super(e,{code:B.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}t.BundleTooLargeError=B,Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class j extends i{constructor(e){super(e,{code:j.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}t.AtomicReadyWalletRejectedUpgradeError=j,Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class R extends i{constructor(e){super(e,{code:R.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}t.AtomicityNotSupportedError=R,Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760}),t.UnknownRpcError=class extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},8018:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackTransactionErrorMagicIdentifier=t.fallbackMagicIdentifier=void 0,t.sendCalls=async function(e,r){const{account:f=e.account,chain:p=e.chain,experimental_fallback:m,experimental_fallbackDelay:b=32,forceAtomic:y=!1,id:h,version:g="2.0.0"}=r,v=f?(0,n.parseAccount)(f):null;let E=r.capabilities;e.dataSuffix&&!r.capabilities?.dataSuffix&&(E="string"==typeof e.dataSuffix?{...r.capabilities,dataSuffix:{value:e.dataSuffix,optional:!0}}:{...r.capabilities,dataSuffix:{value:e.dataSuffix.value,...e.dataSuffix.required?{}:{optional:!0}}});const w=r.calls.map(e=>{const t=e,r=t.abi?(0,i.encodeFunctionData)({abi:t.abi,functionName:t.functionName,args:t.args}):t.data;return{data:t.dataSuffix&&r?(0,s.concat)([r,t.dataSuffix]):r,to:t.to,value:t.value?(0,u.numberToHex)(t.value):void 0}});try{const t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:y,calls:w,capabilities:E,chainId:(0,u.numberToHex)(p.id),from:v?.address,id:h,version:g}]},{retryCount:0});return"string"==typeof t?{id:t}:t}catch(n){const i=n;if(m&&("MethodNotFoundRpcError"===i.name||"MethodNotSupportedRpcError"===i.name||"UnknownRpcError"===i.name||i.details.toLowerCase().includes("does not exist / is not available")||i.details.toLowerCase().includes("missing or invalid. request()")||i.details.toLowerCase().includes("did not match any variant of untagged enum")||i.details.toLowerCase().includes("account upgraded to unsupported contract")||i.details.toLowerCase().includes("eip-7702 not supported")||i.details.toLowerCase().includes("unsupported wc_ method")||i.details.toLowerCase().includes("feature toggled misconfigured")||i.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(E&&Object.values(E).some(e=>!e.optional)){const e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new a.UnsupportedNonOptionalCapabilityError(new o.BaseError(e,{details:e}))}if(y&&w.length>1){const e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new a.AtomicityNotSupportedError(new o.BaseError(e,{details:e}))}const r=[];for(const t of w){const n=(0,l.sendTransaction)(e,{account:v,chain:p,data:t.data,to:t.to,value:t.value?(0,c.hexToBigInt)(t.value):void 0});r.push(n),b>0&&await new Promise(e=>setTimeout(e,b))}const n=await Promise.allSettled(r);if(n.every(e=>"rejected"===e.status))throw n[0].reason;const i=n.map(e=>"fulfilled"===e.status?e.value:t.fallbackTransactionErrorMagicIdentifier);return{id:(0,s.concat)([...i,(0,u.numberToHex)(p.id,{size:32}),t.fallbackMagicIdentifier])}}throw(0,d.getTransactionError)(n,{...r,account:v,chain:r.chain})}};const n=r(9006),o=r(6246),a=r(7992),i=r(6144),s=r(6776),c=r(294),u=r(985),d=r(2403),l=r(6687);t.fallbackMagicIdentifier="0x5792579257925792579257925792579257925792579257925792579257925792",t.fallbackTransactionErrorMagicIdentifier=(0,u.numberToHex)(0,{size:32})},8047:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EnsInvalidChainIdError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;const n=r(6246);class o extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=o;class a extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=a;class i extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=i;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s;class c extends n.BaseError{constructor({chainId:e}){super(`Invalid ENSIP-11 chainId: ${e}. Must be between 0 and 0x7fffffff, or 1.`,{name:"EnsInvalidChainIdError"})}}t.EnsInvalidChainIdError=c},8050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},8057:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=function(e){const t=(0,m.getSerializedTransactionType)(e);return"eip1559"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v,E]=t;if(9!==t.length&&12!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:i,gas:c,to:u,value:l,data:f,accessList:m,...t.length>9?{v:g,r:v,s:E}:{}},serializedTransaction:e,type:"eip1559"});const w={chainId:(0,d.hexToNumber)(r),type:"eip1559"};return(0,s.isHex)(u)&&"0x"!==u&&(w.to=u),(0,s.isHex)(c)&&"0x"!==c&&(w.gas=(0,d.hexToBigInt)(c)),(0,s.isHex)(f)&&"0x"!==f&&(w.data=f),(0,s.isHex)(n)&&(w.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(l)&&"0x"!==l&&(w.value=(0,d.hexToBigInt)(l)),(0,s.isHex)(i)&&"0x"!==i&&(w.maxFeePerGas=(0,d.hexToBigInt)(i)),(0,s.isHex)(a)&&"0x"!==a&&(w.maxPriorityFeePerGas=(0,d.hexToBigInt)(a)),0!==m.length&&"0x"!==m&&(w.accessList=y(m)),(0,p.assertTransactionEIP1559)(w),{...12===t.length?h(t):void 0,...w}}(e):"eip2930"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v]=t;if(8!==t.length&&11!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:a,gas:i,to:c,value:u,data:l,accessList:f,...t.length>8?{v:m,r:g,s:v}:{}},serializedTransaction:e,type:"eip2930"});const E={chainId:(0,d.hexToNumber)(r),type:"eip2930"};return(0,s.isHex)(c)&&"0x"!==c&&(E.to=c),(0,s.isHex)(i)&&"0x"!==i&&(E.gas=(0,d.hexToBigInt)(i)),(0,s.isHex)(l)&&"0x"!==l&&(E.data=l),(0,s.isHex)(n)&&(E.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(u)&&"0x"!==u&&(E.value=(0,d.hexToBigInt)(u)),(0,s.isHex)(a)&&"0x"!==a&&(E.gasPrice=(0,d.hexToBigInt)(a)),0!==f.length&&"0x"!==f&&(E.accessList=y(f)),(0,p.assertTransactionEIP2930)(E),{...11===t.length?h(t):void 0,...E}}(e):"eip4844"===t?function(e){const t=b(e),r=4===t.length,n=r?t[0]:t,a=r?t.slice(1):[],[c,u,l,f,m,g,v,E,w,x,P,I,T,A]=n,[O,S,B]=a;if(11!==n.length&&14!==n.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:c,nonce:u,maxPriorityFeePerGas:l,maxFeePerGas:f,gas:m,to:g,value:v,data:E,accessList:w,...n.length>9?{v:I,r:T,s:A}:{}},serializedTransaction:e,type:"eip4844"});const j={blobVersionedHashes:P,chainId:(0,d.hexToNumber)(c),to:g,type:"eip4844"};return(0,s.isHex)(m)&&"0x"!==m&&(j.gas=(0,d.hexToBigInt)(m)),(0,s.isHex)(E)&&"0x"!==E&&(j.data=E),(0,s.isHex)(u)&&(j.nonce="0x"===u?0:(0,d.hexToNumber)(u)),(0,s.isHex)(v)&&"0x"!==v&&(j.value=(0,d.hexToBigInt)(v)),(0,s.isHex)(x)&&"0x"!==x&&(j.maxFeePerBlobGas=(0,d.hexToBigInt)(x)),(0,s.isHex)(f)&&"0x"!==f&&(j.maxFeePerGas=(0,d.hexToBigInt)(f)),(0,s.isHex)(l)&&"0x"!==l&&(j.maxPriorityFeePerGas=(0,d.hexToBigInt)(l)),0!==w.length&&"0x"!==w&&(j.accessList=y(w)),O&&S&&B&&(j.sidecars=(0,i.toBlobSidecars)({blobs:O,commitments:S,proofs:B})),(0,p.assertTransactionEIP4844)(j),{...14===n.length?h(n):void 0,...j}}(e):"eip7702"===t?function(e){const t=b(e),[r,n,a,i,c,u,l,f,m,g,v,E,w]=t;if(10!==t.length&&13!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:i,gas:c,to:u,value:l,data:f,accessList:m,authorizationList:g,...t.length>9?{v,r:E,s:w}:{}},serializedTransaction:e,type:"eip7702"});const x={chainId:(0,d.hexToNumber)(r),type:"eip7702"};return(0,s.isHex)(u)&&"0x"!==u&&(x.to=u),(0,s.isHex)(c)&&"0x"!==c&&(x.gas=(0,d.hexToBigInt)(c)),(0,s.isHex)(f)&&"0x"!==f&&(x.data=f),(0,s.isHex)(n)&&(x.nonce="0x"===n?0:(0,d.hexToNumber)(n)),(0,s.isHex)(l)&&"0x"!==l&&(x.value=(0,d.hexToBigInt)(l)),(0,s.isHex)(i)&&"0x"!==i&&(x.maxFeePerGas=(0,d.hexToBigInt)(i)),(0,s.isHex)(a)&&"0x"!==a&&(x.maxPriorityFeePerGas=(0,d.hexToBigInt)(a)),0!==m.length&&"0x"!==m&&(x.accessList=y(m)),0!==g.length&&"0x"!==g&&(x.authorizationList=function(e){const t=[];for(let r=0;r<e.length;r++){const[n,o,a,i,s,c]=e[r];t.push({address:o,chainId:"0x"===n?0:(0,d.hexToNumber)(n),nonce:"0x"===a?0:(0,d.hexToNumber)(a),...h([i,s,c])})}return t}(g)),(0,p.assertTransactionEIP7702)(x),{...13===t.length?h(t):void 0,...x}}(e):function(e){const t=(0,l.fromRlp)(e,"hex"),[r,n,a,i,c,u,f,m,b]=t;if(6!==t.length&&9!==t.length)throw new o.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:a,to:i,value:c,data:u,...t.length>6?{v:f,r:m,s:b}:{}},serializedTransaction:e,type:"legacy"});const y={type:"legacy"};if((0,s.isHex)(i)&&"0x"!==i&&(y.to=i),(0,s.isHex)(a)&&"0x"!==a&&(y.gas=(0,d.hexToBigInt)(a)),(0,s.isHex)(u)&&"0x"!==u&&(y.data=u),(0,s.isHex)(r)&&(y.nonce="0x"===r?0:(0,d.hexToNumber)(r)),(0,s.isHex)(c)&&"0x"!==c&&(y.value=(0,d.hexToBigInt)(c)),(0,s.isHex)(n)&&"0x"!==n&&(y.gasPrice=(0,d.hexToBigInt)(n)),(0,p.assertTransactionLegacy)(y),6===t.length)return y;const h=(0,s.isHex)(f)&&"0x"!==f?(0,d.hexToBigInt)(f):0n;if("0x"===b&&"0x"===m)return h>0&&(y.chainId=Number(h)),y;const g=h,v=Number((g-35n)/2n);if(v>0)y.chainId=v;else if(27n!==g&&28n!==g)throw new o.InvalidLegacyVError({v:g});return y.v=g,y.s=b,y.r=m,y.yParity=g%2n==0n?1:0,y}(e)},t.toTransactionArray=b,t.parseAccessList=y;const n=r(6311),o=r(3727),a=r(9742),i=r(3339),s=r(6015),c=r(8987),u=r(7488),d=r(294),l=r(7349),f=r(4624),p=r(7964),m=r(8465);function b(e){return(0,l.fromRlp)(`0x${e.slice(4)}`,"hex")}function y(e){const t=[];for(let r=0;r<e.length;r++){const[o,i]=e[r];if(!(0,a.isAddress)(o,{strict:!1}))throw new n.InvalidAddressError({address:o});t.push({address:o,storageKeys:i.map(e=>(0,f.isHash)(e)?e:(0,u.trim)(e))})}return t}function h(e){const t=e.slice(-3),r="0x"===t[0]||0n===(0,d.hexToBigInt)(t[0])?27n:28n;return{r:(0,c.padHex)(t[1],{size:32}),s:(0,c.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}},8101:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=async function(e,{chain:t}){const{id:r,name:o,nativeCurrency:a,rpcUrls:i,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:o,nativeCurrency:a,rpcUrls:i.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})};const n=r(985)},8156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeSDKServer=t.BridgeSDK=void 0;const a=r(7028),i=r(436),s=r(570),c=r(1967),u=r(7318),d=r(7925);o(r(3574),t),o(r(7028),t),o(r(570),t),o(r(1967),t),o(r(7318),t),t.BridgeSDK=class{constructor(e){this.config=new a.BridgeConfig(e),this.api=new i.VoidAIBridgeClient(this.config),this.ready=this.api.ready,this.wallets={bittensor:new s.BittensorWallet,ethereum:new c.EthereumWallet,solana:new u.SolanaWallet},this.bridge=new d.Bridge(this.api)}getValidatedApiKeyData(){return this.api.getValidatedApiKeyData()}},t.BridgeSDKServer=class{constructor(e){this.config=new a.BridgeConfig(e),this.api=new i.VoidAIBridgeClient(this.config),this.ready=this.api.ready,this.bridge=new d.Bridge(this.api)}getValidatedApiKeyData(){return this.api.getValidatedApiKeyData()}}},8171:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=async function(e,{address:t,blockNumber:r,blockTag:a,storageKeys:i}){const s=a??"latest",c=void 0!==r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_getProof",params:[t,i,c||s]});return(0,o.formatProof)(u)};const n=r(985),o=r(1707)},8181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=function(e){const{abi:t,data:r}=e,u=(0,a.slice)(r,0,4);if("0x"===u)throw new o.AbiDecodingZeroDataError;const d=[...t||[],n.solidityError,n.solidityPanic].find(e=>"error"===e.type&&u===(0,i.toFunctionSelector)((0,c.formatAbiItem)(e)));if(!d)throw new o.AbiErrorSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,s.decodeAbiParameters)(d.inputs,(0,a.slice)(r,4)):void 0,errorName:d.name}};const n=r(924),o=r(6953),a=r(7688),i=r(1456),s=r(4612),c=r(4520)},8182:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=function(e){const{abi:t,data:r,strict:l,topics:f}=e,p=l??!0,[m,...b]=f;if(!m)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:u});const y=t.find(e=>"event"===e.type&&m===(0,i.toEventSelector)((0,c.formatAbiItem)(e)));if(!y||!("name"in y)||"event"!==y.type)throw new n.AbiEventSignatureNotFoundError(m,{docsPath:u});const{name:h,inputs:g}=y,v=g?.some(e=>!("name"in e&&e.name)),E=v?[]:{},w=g.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed),x=[];for(let e=0;e<w.length;e++){const[t,r]=w[e],o=b[e];if(o)E[v?r:t.name||r]=d({param:t,value:o});else{if(p)throw new n.DecodeLogTopicsMismatch({abiItem:y,param:t});x.push([t,r])}}const P=g.filter(e=>!("indexed"in e&&e.indexed)),I=p?P:[...x.map(([e])=>e),...P];if(I.length>0)if(r&&"0x"!==r)try{const e=(0,s.decodeAbiParameters)(I,r);if(e){let t=0;if(!p)for(const[r,n]of x)E[v?n:r.name||n]=e[t++];if(v)for(let r=0;r<g.length;r++)void 0===E[r]&&t<e.length&&(E[r]=e[t++]);else for(let r=0;r<P.length;r++)E[P[r].name]=e[t++]}}catch(e){if(p){if(e instanceof n.AbiDecodingDataSizeTooSmallError||e instanceof o.PositionOutOfBoundsError)throw new n.DecodeLogDataMismatch({abiItem:y,data:r,params:I,size:(0,a.size)(r)});throw e}}else if(p)throw new n.DecodeLogDataMismatch({abiItem:y,data:"0x",params:I,size:0});return{eventName:h,args:Object.values(E).length>0?E:void 0}};const n=r(6953),o=r(3069),a=r(2285),i=r(7144),s=r(4612),c=r(4520),u="/docs/contract/decodeEventLog";function d({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.decodeAbiParameters)([e],t)||[])[0]}},8287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupKzg=function(e,t){try{e.loadTrustedSetup(t)}catch(e){const t=e;if(!t.message.includes("trusted setup is already loaded"))throw t}return(0,n.defineKzg)(e)};const n=r(2843)},8377:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTypedData=function(e){const{domain:t,message:r,primaryType:n,types:o}=e,a=(e,t)=>{const r={...t};for(const t of e){const{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},i=o.EIP712Domain&&t?a(o.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==n)return a(o[n],r)})();return(0,l.stringify)({domain:i,message:s,primaryType:n,types:o})},t.validateTypedData=function(e){const{domain:t,message:r,primaryType:d,types:l}=e,f=(e,t)=>{for(const r of e){const{name:e,type:a}=r,d=t[e],m=a.match(u.integerRegex);if(m&&("number"==typeof d||"bigint"==typeof d)){const[e,t,r]=m;(0,c.numberToHex)(d,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===a&&"string"==typeof d&&!(0,i.isAddress)(d))throw new o.InvalidAddressError({address:d});const b=a.match(u.bytesRegex);if(b){const[e,t]=b;if(t&&(0,s.size)(d)!==Number.parseInt(t,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(0,s.size)(d)})}const y=l[a];y&&(p(a),f(y,d))}};if(l.EIP712Domain&&t){if("object"!=typeof t)throw new a.InvalidDomainError({domain:t});f(l.EIP712Domain,t)}if("EIP712Domain"!==d){if(!l[d])throw new a.InvalidPrimaryTypeError({primaryType:d,types:l});f(l[d],r)}},t.getTypesForEIP712Domain=f,t.domainSeparator=function({domain:e}){return(0,d.hashDomain)({domain:e,types:{EIP712Domain:f({domain:e})}})};const n=r(6953),o=r(6311),a=r(6651),i=r(9742),s=r(2285),c=r(985),u=r(2162),d=r(9984),l=r(4900);function f({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function p(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new a.InvalidStructTypeError({type:e})}},8428:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=async function({address:e,message:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await(0,a.recoverMessageAddress)({message:t,signature:r}))};const n=r(8728),o=r(4324),a=r(593)},8465:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=function(e){const t=(0,o.sliceHex)(e,0,1);if("0x04"===t)return"eip7702";if("0x03"===t)return"eip4844";if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,a.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})};const n=r(3727),o=r(7688),a=r(294)},8470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.estimateFeesPerGas=async function(e,t){return c(e,t)},t.internal_estimateFeesPerGas=c;const n=r(9143),o=r(6207),a=r(4313),i=r(5364),s=r(5651);async function c(e,t){const{block:r,chain:c=e.chain,request:u,type:d="eip1559"}=t||{},l=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(l<1)throw new n.BaseFeeScalarError;const f=10**(l.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(l*f))/BigInt(f),m=r||await(0,o.getAction)(e,i.getBlock,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){const t=await c.fees.estimateFeesPerGas({block:r,client:e,multiply:p,request:u,type:d});if(null!==t)return t}if("eip1559"===d){if("bigint"!=typeof m.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;const t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await(0,a.internal_estimateMaxPriorityFeePerGas)(e,{block:m,chain:c,request:u}),r=p(m.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await(0,o.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}},8510:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;const n=r(7076),o=r(9175),a=r(3562),i=r(1761),s=r(4967),c=r(1484),u=r(1705),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(0),p=BigInt(1),m=BigInt(2),b=(e,t)=>(e+t/m)/t;function y(e){const t=d,r=BigInt(3),n=BigInt(6),o=BigInt(11),a=BigInt(22),i=BigInt(23),c=BigInt(44),u=BigInt(88),l=e*e*e%t,f=l*l*e%t,p=(0,s.pow2)(f,r,t)*f%t,b=(0,s.pow2)(p,r,t)*f%t,y=(0,s.pow2)(b,m,t)*l%t,g=(0,s.pow2)(y,o,t)*y%t,v=(0,s.pow2)(g,a,t)*g%t,E=(0,s.pow2)(v,c,t)*v%t,w=(0,s.pow2)(E,u,t)*E%t,x=(0,s.pow2)(w,c,t)*v%t,P=(0,s.pow2)(x,r,t)*f%t,I=(0,s.pow2)(P,i,t)*g%t,T=(0,s.pow2)(I,n,t)*l%t,A=(0,s.pow2)(T,m,t);if(!h.eql(h.sqr(A),e))throw new Error("Cannot find square root");return A}const h=(0,s.Field)(d,void 0,void 0,{sqrt:y});t.secp256k1=(0,a.createCurve)({a:f,b:BigInt(7),Fp:h,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=l,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,i=BigInt("0x100000000000000000000000000000000"),c=b(a*e,t),u=b(-n*e,t);let d=(0,s.mod)(e-c*r-u*o,t),f=(0,s.mod)(-c*n-u*a,t);const m=d>i,y=f>i;if(m&&(d=t-d),y&&(f=t-f),d>i||f>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:m,k1:d,k2neg:y,k2:f}}}},n.sha256);const g={};function v(e,...t){let r=g[e];if(void 0===r){const t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,c.concatBytes)(t,t),g[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}const E=e=>e.toRawBytes(!0).slice(1),w=e=>(0,c.numberToBytesBE)(e,32),x=e=>(0,s.mod)(e,d),P=e=>(0,s.mod)(e,l),I=(()=>t.secp256k1.ProjectivePoint)();function T(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:P(-r),bytes:E(n)}}function A(e){(0,c.aInRange)("x",e,p,d);const t=x(e*e);let r=y(x(t*e+BigInt(7)));r%m!==f&&(r=x(-r));const n=new I(e,r,p);return n.assertValidity(),n}const O=c.bytesToNumberBE;function S(...e){return P(O(v("BIP0340/challenge",...e)))}function B(e,t,r){const n=(0,c.ensureBytes)("signature",e,64),o=(0,c.ensureBytes)("message",t),a=(0,c.ensureBytes)("publicKey",r,32);try{const e=A(O(a)),t=O(n.subarray(0,32));if(!(0,c.inRange)(t,p,d))return!1;const r=O(n.subarray(32,64));if(!(0,c.inRange)(r,p,l))return!1;const f=S(w(t),E(e),o),m=(i=e,s=r,u=P(-f),I.BASE.multiplyAndAddUnsafe(i,s,u));return!(!m||!m.hasEvenY()||m.toAffine().x!==t)}catch(e){return!1}var i,s,u}t.schnorr={getPublicKey:function(e){return T(e).bytes},sign:function(e,t,r=(0,o.randomBytes)(32)){const n=(0,c.ensureBytes)("message",e),{bytes:a,scalar:i}=T(t),s=(0,c.ensureBytes)("auxRand",r,32),u=w(i^O(v("BIP0340/aux",s))),d=v("BIP0340/nonce",u,a,n),l=P(O(d));if(l===f)throw new Error("sign failed: k is zero");const{bytes:p,scalar:m}=T(l),b=S(p,a,n),y=new Uint8Array(64);if(y.set(p,0),y.set(w(P(m+b*i)),32),!B(y,n,a))throw new Error("sign: Invalid signature produced");return y},verify:B,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:A,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:v,mod:s.mod}};const j=(()=>(0,i.isogenyMap)(h,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),R=(()=>(0,u.mapToCurveSimpleSWU)(h,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:h.create(BigInt("-11"))}))();t.secp256k1_hasher=(0,i.createHasher)(t.secp256k1.ProjectivePoint,e=>{const{x:t,y:r}=R(h.create(e[0]));return j(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:h.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},8588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extraEntropy=void 0,t.setExtraEntropy=function(e){t.extraEntropy=e},t.extraEntropy=!1},8609:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeData=function(...e){const[t,r]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[s(t,r),n]}return e})(),{overloads:n}=t;if(i.size(r)<4)throw new o.InvalidSelectorSizeError({data:r});if(0===t.inputs?.length)return;const c=n?s([t,...n],r):t;return i.size(r)<=4?void 0:a.decode(c.inputs,i.slice(r,4))},t.decodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,o]=e;return[s(t,r),n,o]}return e})(),o=a.decode(t.outputs,r,n);if(!o||0!==Object.keys(o).length)return o&&1===Object.keys(o).length?Array.isArray(o)?o[0]:Object.values(o)[0]:o},t.encodeData=function(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[t,r,n]=e;return[s(t,r,{args:n}),n]}const[t,r]=e;return[t,r]})(),{overloads:n}=t,o=n?s([t,...n],t.name,{args:r}):t,u=c(o),d=r.length>0?a.encode(o.inputs,r):void 0;return d?i.concat(u,d):u},t.encodeResult=function(...e){const[t,r,n={}]=(()=>{if(Array.isArray(e[0])){const[t,r,n,o]=e;return[s(t,r),n,o]}return e})(),{as:o="Array"}=n,i=1===t.outputs.length?[r]:Array.isArray(r)?r:"Object"===o?Object.values(r):[r];return a.encode(t.outputs,i)},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){return o.from(e,t)},t.fromAbi=s,t.getSelector=c;const n=r(6524),o=r(9626),a=r(2037),i=r(9274);function s(e,t,r){const n=o.fromAbi(e,t,r);if("function"!==n.type)throw new o.NotFoundError({name:t,type:"function"});return n}function c(e){return o.getSelector(e)}},8611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSignature=void 0;var n=r(2967);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return n.toSignature}})},8612:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=function(e,t={}){const{keepAlive:r,key:c="webSocket",methods:u,name:d="WebSocket JSON-RPC",reconnect:l,retryDelay:f}=t;return({chain:p,retryCount:m,timeout:b})=>{const y=t.retryCount??m,h=b??t.timeout??1e4,g=e||p?.rpcUrls.default.webSocket?.[0],v={keepAlive:r,reconnect:l};if(!g)throw new o.UrlRequiredError;return(0,s.createTransport)({key:c,methods:u,name:d,async request({method:e,params:t}){const r={method:e,params:t},o=await(0,i.getWebSocketRpcClient)(g,v),{error:a,result:s}=await o.requestAsync({body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:g});return s},retryCount:y,retryDelay:f,timeout:h,type:"webSocket"},{getSocket:()=>(0,a.getSocket)(g),getRpcClient:()=>(0,i.getWebSocketRpcClient)(g,v),async subscribe({params:e,onData:t,onError:r}){const n=await(0,i.getWebSocketRpcClient)(g,v),{result:o}=await new Promise((o,a)=>n.request({body:{method:"eth_subscribe",params:e},onError(e){a(e),r?.(e)},onResponse(e){if(e.error)return a(e.error),void r?.(e.error);"number"!=typeof e.id?"eth_subscription"===e.method&&t(e.params):o(e)}}));return{subscriptionId:o,unsubscribe:async()=>new Promise(e=>n.request({body:{method:"eth_unsubscribe",params:[o]},onResponse:e}))}}})}};const n=r(2202),o=r(5446),a=r(8692),i=r(1370),s=r(922)},8626:(e,t,r)=>{r.r(t),r.d(t,{WebSocket:()=>n});const n=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==r.g.WebSocket)return r.g.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}()},8651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=void 0,t.execTyped=function(e,t){const r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},8664:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wait=async function(e){return new Promise(t=>setTimeout(t,e))}},8666:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):l(e)},t.getCreateAddress=l,t.getCreate2Address=f;const n=r(6776),o=r(7085),a=r(8987),i=r(7688),s=r(7655),c=r(7926),u=r(3625),d=r(8728);function l(e){const t=(0,s.toBytes)((0,d.getAddress)(e.from));let r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,d.getAddress)(`0x${(0,u.keccak256)((0,c.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){const t=(0,s.toBytes)((0,d.getAddress)(e.from)),r=(0,a.pad)((0,o.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),c="bytecodeHash"in e?(0,o.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,u.keccak256)(e.bytecode,"bytes");return(0,d.getAddress)((0,i.slice)((0,u.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,c])),12))}},8692:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.getSocket=async function(e){const t=await(0,o.getWebSocketRpcClient)(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})};const n=r(4017),o=r(1370);t.rpc={http:(e,t)=>(0,n.getHttpRpcClient)(e).request(t),webSocket:function(e,{body:t,onError:r,onResponse:n}){return e.request({body:t,onError:r,onResponse:n}),e},webSocketAsync:async function(e,{body:t,timeout:r=1e4}){return e.requestAsync({body:t,timeout:r})}}},8693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){const{batch:t,chain:r,ccipRead:a,dataSuffix:i,key:s="base",name:c="Base Client",type:u="base"}=e,d=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),l=r?.blockTime??12e3,f=Math.min(Math.max(Math.floor(l/2),500),4e3),p=e.pollingInterval??f,m=e.cacheTime??p,b=e.account?(0,n.parseAccount)(e.account):void 0,{config:y,request:h,value:g}=e.transport({account:b,chain:r,pollingInterval:p}),v={account:b,batch:t,cacheTime:m,ccipRead:a,chain:r,dataSuffix:i,key:s,name:c,pollingInterval:p,request:h,transport:{...y,...g},type:u,uid:(0,o.uid)(),...d?{experimental_blockTag:d}:{}};return Object.assign(v,{extend:function e(t){return r=>{const n=r(t);for(const e in v)delete n[e];const o={...t,...n};return Object.assign(o,{extend:e(o)})}}(v)})},t.rpcSchema=function(){return null};const n=r(9006),o=r(1667)},8714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=function(e,t){const{abi:r,address:h,args:g,batch:v=!0,eventName:E,fromBlock:w,onError:x,onLogs:P,poll:I,pollingInterval:T=e.pollingInterval,strict:A}=t;return(void 0!==I?I:"bigint"==typeof w||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{const t=A??!1,n=(0,l.stringify)(["watchContractEvent",h,g,v,e.uid,E,T,t,w]);return(0,u.observe)(n,{onLogs:P,onError:x},n=>{let a,i;void 0!==w&&(a=w-1n);let s=!1;const u=(0,d.poll)(async()=>{if(s)try{let o;if(i)o=await(0,c.getAction)(e,b.getFilterChanges,"getFilterChanges")({filter:i});else{const n=await(0,c.getAction)(e,p.getBlockNumber,"getBlockNumber")({});o=a&&a<n?await(0,c.getAction)(e,m.getContractEvents,"getContractEvents")({abi:r,address:h,args:g,eventName:E,fromBlock:a+1n,toBlock:n,strict:t}):[],a=n}if(0===o.length)return;if(v)n.onLogs(o);else for(const e of o)n.onLogs([e])}catch(e){i&&e instanceof o.InvalidInputRpcError&&(s=!1),n.onError?.(e)}else{try{i=await(0,c.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:r,address:h,args:g,eventName:E,strict:t,fromBlock:w})}catch{}s=!0}},{emitOnBegin:!0,interval:T});return async()=>{i&&await(0,c.getAction)(e,y.uninstallFilter,"uninstallFilter")({filter:i}),u()}})})():(()=>{const t=A??!1,o=(0,l.stringify)(["watchContractEvent",h,g,v,e.uid,E,T,t]);let c=!0,d=()=>c=!1;return(0,u.observe)(o,{onLogs:P,onError:x},t=>((async()=>{try{const o=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=E?(0,i.encodeEventTopics)({abi:r,eventName:E,args:g}):[],{unsubscribe:l}=await o.subscribe({params:["logs",{address:h,topics:u}],onData(e){if(!c)return;const o=e.result;try{const{eventName:e,args:n}=(0,a.decodeEventLog)({abi:r,data:o.data,topics:o.topics,strict:A}),i=(0,s.formatLog)(o,{args:n,eventName:e});t.onLogs([i])}catch(e){let r,a;if(e instanceof n.DecodeLogDataMismatch||e instanceof n.DecodeLogTopicsMismatch){if(A)return;r=e.abiItem.name,a=e.abiItem.inputs?.some(e=>!("name"in e&&e.name))}const i=(0,s.formatLog)(o,{args:a?[]:{},eventName:r});t.onLogs([i])}},onError(e){t.onError?.(e)}});d=l,c||d()}catch(e){x?.(e)}})(),()=>d()))})()};const n=r(6953),o=r(7992),a=r(8182),i=r(378),s=r(95),c=r(6207),u=r(2093),d=r(3940),l=r(4900),f=r(2349),p=r(5729),m=r(7962),b=r(3590),y=r(1541)},8728:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checksumAddress=u,t.getAddress=function(e,t){if(!(0,s.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});return u(e,t)};const n=r(6311),o=r(7655),a=r(3625),i=r(7848),s=r(9742),c=new i.LruMap(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);const r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,a.keccak256)((0,o.stringToBytes)(r),"bytes"),i=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&i[e]&&(i[e]=i[e].toUpperCase()),(15&n[e>>1])>=8&&i[e+1]&&(i[e+1]=i[e+1].toUpperCase());const s=`0x${i.join("")}`;return c.set(`${e}.${t}`,s),s}},8807:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.supportsFillTransaction=t.eip1559NetworkCache=t.defaultParameters=void 0,t.prepareTransactionRequest=async function(e,r){let m=r;m.account??=e.account,m.parameters??=t.defaultParameters;const{account:v,chain:E=e.chain,nonceManager:w,parameters:x}=m,P="function"==typeof E?.prepareTransactionRequest?{fn:E.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(E?.prepareTransactionRequest)?{fn:E.prepareTransactionRequest[0],runAt:E.prepareTransactionRequest[1].runAt}:void 0;let I;async function T(){if(I)return I;if(void 0!==m.chainId)return m.chainId;if(E)return E.id;const t=await(0,p.getAction)(e,g.getChainId,"getChainId")({});return I=t,I}const A=v?(0,n.parseAccount)(v):v;let O=m.nonce;if(x.includes("nonce")&&void 0===O&&A&&w){const t=await T();O=await w.consume({address:A.address,chainId:t,client:e})}P?.fn&&P.runAt?.includes("beforeFillTransaction")&&(m=await P.fn({...m,chain:E},{phase:"beforeFillTransaction"}),O??=m.nonce);const S=(x.includes("blobVersionedHashes")||x.includes("sidecars"))&&m.kzg&&m.blobs||!1===t.supportsFillTransaction.get(e.uid)||!["fees","gas"].some(e=>x.includes(e))||!(x.includes("chainId")&&"number"!=typeof m.chainId||x.includes("nonce")&&"number"!=typeof O||x.includes("fees")&&"bigint"!=typeof m.gasPrice&&("bigint"!=typeof m.maxFeePerGas||"bigint"!=typeof m.maxPriorityFeePerGas)||x.includes("gas")&&"bigint"!=typeof m.gas)?m:await(0,p.getAction)(e,h.fillTransaction,"fillTransaction")({...m,nonce:O}).then(r=>{const{chainId:n,from:o,gas:a,gasPrice:i,nonce:s,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:d,type:l,...f}=r.transaction;return t.supportsFillTransaction.set(e.uid,!0),{...m,...o?{from:o}:{},...l?{type:l}:{},...void 0!==n?{chainId:n}:{},...void 0!==a?{gas:a}:{},...void 0!==i?{gasPrice:i}:{},...void 0!==s?{nonce:s}:{},...void 0!==c?{maxFeePerBlobGas:c}:{},...void 0!==u?{maxFeePerGas:u}:{},...void 0!==d?{maxPriorityFeePerGas:d}:{},..."nonceKey"in f&&void 0!==f.nonceKey?{nonceKey:f.nonceKey}:{}}}).catch(r=>{const n=r;if("TransactionExecutionError"!==n.name)return m;const o=n.walk?.(e=>{const t=e;return"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name});return o&&t.supportsFillTransaction.set(e.uid,!1),m});O??=S.nonce,m={...S,...A?{from:A?.address}:{},...O?{nonce:O}:{}};const{blobs:B,gas:j,kzg:R,type:_}=m;let C;async function M(){return C||(C=await(0,p.getAction)(e,i.getBlock,"getBlock")({blockTag:"latest"}),C)}if(P?.fn&&P.runAt?.includes("beforeFillParameters")&&(m=await P.fn({...m,chain:E},{phase:"beforeFillParameters"})),x.includes("nonce")&&void 0===O&&A&&!w&&(m.nonce=await(0,p.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:A.address,blockTag:"pending"})),(x.includes("blobVersionedHashes")||x.includes("sidecars"))&&B&&R){const e=(0,u.blobsToCommitments)({blobs:B,kzg:R});if(x.includes("blobVersionedHashes")){const t=(0,l.commitmentsToVersionedHashes)({commitments:e,to:"hex"});m.blobVersionedHashes=t}if(x.includes("sidecars")){const t=(0,d.blobsToProofs)({blobs:B,commitments:e,kzg:R}),r=(0,f.toBlobSidecars)({blobs:B,commitments:e,proofs:t,to:"hex"});m.sidecars=r}}if(x.includes("chainId")&&(m.chainId=await T()),(x.includes("fees")||x.includes("type"))&&void 0===_)try{m.type=(0,y.getTransactionType)(m)}catch{let r=t.eip1559NetworkCache.get(e.uid);if(void 0===r){const n=await M();r="bigint"==typeof n?.baseFeePerGas,t.eip1559NetworkCache.set(e.uid,r)}m.type=r?"eip1559":"legacy"}if(x.includes("fees"))if("legacy"!==m.type&&"eip2930"!==m.type){if(void 0===m.maxFeePerGas||void 0===m.maxPriorityFeePerGas){const t=await M(),{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,o.internal_estimateFeesPerGas)(e,{block:t,chain:E,request:m});if(void 0===m.maxPriorityFeePerGas&&m.maxFeePerGas&&m.maxFeePerGas<n)throw new c.MaxFeePerGasTooLowError({maxPriorityFeePerGas:n});m.maxPriorityFeePerGas=n,m.maxFeePerGas=r}}else{if(void 0!==m.maxFeePerGas||void 0!==m.maxPriorityFeePerGas)throw new c.Eip1559FeesNotSupportedError;if(void 0===m.gasPrice){const t=await M(),{gasPrice:r}=await(0,o.internal_estimateFeesPerGas)(e,{block:t,chain:E,request:m,type:"legacy"});m.gasPrice=r}}return x.includes("gas")&&void 0===j&&(m.gas=await(0,p.getAction)(e,a.estimateGas,"estimateGas")({...m,account:A,prepare:"local"===A?.type?[]:["blobVersionedHashes"]})),P?.fn&&P.runAt?.includes("afterFillParameters")&&(m=await P.fn({...m,chain:E},{phase:"afterFillParameters"})),(0,b.assertRequest)(m),delete m.parameters,m};const n=r(9006),o=r(8470),a=r(4678),i=r(5364),s=r(1998),c=r(9143),u=r(5956),d=r(3611),l=r(4445),f=r(3339),p=r(6207),m=r(7848),b=r(4969),y=r(9788),h=r(4158),g=r(1093);t.defaultParameters=["blobVersionedHashes","chainId","fees","gas","nonce","type"],t.eip1559NetworkCache=new Map,t.supportsFillTransaction=new m.LruMap(128)},8868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=async function(e,t){const{address:r,chain:f=e.chain,hash:p,erc6492VerifierAddress:w=t.universalSignatureVerifierAddress??f?.contracts?.erc6492Verifier?.address,multicallAddress:x=t.multicallAddress??f?.contracts?.multicall3?.address}=t;if(f?.verifyHash)return await f.verifyHash(e,t);const I=(()=>{const e=t.signature;return(0,m.isHex)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?(0,v.serializeSignature)(e):(0,y.bytesToHex)(e)})();try{return o.SignatureErc8010.validate(I)?await P(e,{...t,multicallAddress:x,signature:I}):await async function(e,t){const{address:r,factory:o,factoryData:d,hash:l,signature:f,verifierAddress:p,...m}=t,y=await(async()=>o||d?n.SignatureErc6492.validate(f)?f:n.SignatureErc6492.wrap({data:d,signature:f,to:o}):f)(),g=p?{to:p,data:(0,u.encodeFunctionData)({abi:a.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[r,l,y]}),...m}:{data:(0,c.encodeDeployData)({abi:a.erc6492SignatureValidatorAbi,args:[r,l,y],bytecode:i.erc6492SignatureValidatorByteCode}),...m},{data:v}=await(0,h.getAction)(e,E.call,"call")(g).catch(e=>{if(e instanceof s.CallExecutionError)throw new T;throw e});if((0,b.hexToBool)(v??"0x0"))return!0;throw new T}(e,{...t,verifierAddress:w,signature:I})}catch(e){try{if((0,l.isAddressEqual)((0,d.getAddress)(r),await(0,g.recoverAddress)({hash:p,signature:I})))return!0}catch{}if(e instanceof T)return!1;throw e}},t.verifyErc8010=P,t.verifyErc1271=I;const n=r(3633),o=r(2873),a=r(3302),i=r(6590),s=r(7677),c=r(4687),u=r(6144),d=r(8728),l=r(4324),f=r(1769),p=r(6776),m=r(6015),b=r(294),y=r(985),h=r(6207),g=r(2374),v=r(1926),E=r(7141),w=r(1980),x=r(5275);async function P(e,t){const{address:r,blockNumber:n,blockTag:s,hash:c,multicallAddress:d}=t,{authorization:l,data:m,signature:b,to:g}=o.SignatureErc8010.unwrap(t.signature);if(await(0,w.getCode)(e,{address:r,blockNumber:n,blockTag:s})===(0,p.concatHex)(["0xef0100",l.address]))return await I(e,{address:r,blockNumber:n,blockTag:s,hash:c,signature:b});const v={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:(0,y.numberToHex)(l.r,{size:32}),s:(0,y.numberToHex)(l.s,{size:32}),yParity:l.yParity};if(!await(0,f.verifyAuthorization)({address:r,authorization:v}))throw new T;const E=await(0,h.getAction)(e,x.readContract,"readContract")({...d?{address:d}:{code:i.multicall3Bytecode},authorizationList:[v],abi:a.multicall3Abi,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...m?[{allowFailure:!0,target:g??r,callData:m}]:[],{allowFailure:!0,target:r,callData:(0,u.encodeFunctionData)({abi:a.erc1271Abi,functionName:"isValidSignature",args:[c,b]})}]]}),P=E[E.length-1]?.returnData;if(P?.startsWith("0x1626ba7e"))return!0;throw new T}async function I(e,t){const{address:r,blockNumber:n,blockTag:o,hash:i,signature:c}=t;if((await(0,h.getAction)(e,x.readContract,"readContract")({address:r,abi:a.erc1271Abi,args:[i,c],blockNumber:n,blockTag:o,functionName:"isValidSignature"}).catch(e=>{if(e instanceof s.ContractFunctionExecutionError)throw new T;throw e})).startsWith("0x1626ba7e"))return!0;throw new T}class T extends Error{}},8900:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=void 0,t.formatBlock=a;const n=r(1547),o=r(9473);function a(e,t){const r=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,o.formatTransaction)(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:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.defineBlock=(0,n.defineFormatter)("block",a)},8907:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAccessList=async function(e,t){const{account:r=e.account,blockNumber:u,blockTag:d="latest",blobs:l,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v,...E}=t,w=r?(0,n.parseAccount)(r):void 0;try{(0,c.assertRequest)(t);const r=("bigint"==typeof u?(0,o.numberToHex)(u):void 0)||d,n=e.chain?.formatters?.transactionRequest?.format,a=(n||s.formatTransactionRequest)({...(0,i.extract)(E,{format:n}),account:w,blobs:l,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:h,to:g,value:v},"createAccessList"),x=await e.request({method:"eth_createAccessList",params:[a,r]});return{accessList:x.accessList,gasUsed:BigInt(x.gasUsed)}}catch(r){throw(0,a.getCallError)(r,{...t,account:w,chain:e.chain})}};const n=r(9006),o=r(985),a=r(1403),i=r(796),s=r(4712),c=r(4969)},8987:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pad=function(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):a(e,{dir:t,size:r})},t.padHex=o,t.padBytes=a;const n=r(5375);function o(e,{dir:t,size:r=32}={}){if(null===r)return e;const o=e.replace("0x","");if(o.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*r,"0")}`}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});const o=new Uint8Array(r);for(let n=0;n<r;n++){const a="right"===t;o[a?n:r-n-1]=e[a?n:e.length-n-1]}return o}},8992:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashSignature=function(e){return a(e)};const n=r(7655),o=r(3625),a=e=>(0,o.keccak256)((0,n.toBytes)(e))},9006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},9085:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=async function(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}},9143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;const n=r(5277),o=r(6246);class a extends o.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}t.BaseFeeScalarError=a;class i extends o.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=i;class s extends o.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},9150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=function(e){const t=[],r=e.length;for(let o=0;o<r;o++){const r=e[o],a=(0,n.formatAbiItem)(r);t.push(a)}return t};const n=r(7905)},9175:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=o,t.anumber=a,t.abytes=i,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");a(e.outputLen),a(e.blockLen)},t.aexists=function(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")},t.aoutput=function(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=s,t.byteSwap32=c,t.bytesToHex=function(e){if(i(e),u)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=d[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(u)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){const r=f(e.charCodeAt(o)),a=f(e.charCodeAt(o+1));if(void 0===r||void 0===a){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}n[t]=16*r+a}return n},t.asyncLoop=async function(e,r,n){let o=Date.now();for(let a=0;a<e;a++){n(a);const e=Date.now()-o;e>=0&&e<r||(await(0,t.nextTick)(),o+=e)}},t.utf8ToBytes=p,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=m,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=p(e)),i(e),e},t.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];i(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=b,t.createOptHasher=y,t.createXOFer=h,t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e,...t){if(!o(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=s(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>s(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),l={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=l._0&&e<=l._9?e-l._0:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function p(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function m(e){return"string"==typeof e&&(e=p(e)),i(e),e}function b(e){const t=t=>e().update(m(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e){const t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function h(e){const t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=b,t.wrapConstructorWithOpts=y,t.wrapXOFConstructorWithOpts=h},9242:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=async function(e,t){const{address:r,factory:i,factoryData:s,signature:c,message:u,primaryType:d,types:l,domain:f,...p}=t,m=(0,o.hashTypedData)({message:u,primaryType:d,types:l,domain:f});return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:r,factory:i,factoryData:s,hash:m,signature:c,...p})};const n=r(6207),o=r(9984),a=r(8868)},9274:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidLengthError=t.InvalidHexValueError=t.InvalidHexTypeError=t.InvalidHexBooleanError=t.IntegerOutOfRangeError=void 0,t.assert=l,t.concat=function(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`},t.from=function(e){return e instanceof Uint8Array?f(e):Array.isArray(e)?f(new Uint8Array(e)):e},t.fromBoolean=function(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?(s.assertSize(r,t.size),p(r,t.size)):r},t.fromBytes=f,t.fromNumber=function(e,t={}){const{signed:r,size:n}=t,o=BigInt(e);let a;n?a=r?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(a=BigInt(Number.MAX_SAFE_INTEGER));const i="bigint"==typeof a&&r?-a-1n:0;if(a&&o>a||o<i){const t="bigint"==typeof e?"n":"";throw new h({max:a?`${a}${t}`:void 0,min:`${i}${t}`,signed:r,size:n,value:`${e}${t}`})}const s=`0x${(r&&o<0?BigInt.asUintN(8*n,BigInt(o)):o).toString(16)}`;return n?p(s,n):s},t.fromString=function(e,t={}){return f(u.encode(e),t)},t.isEqual=function(e,t){return(0,n.equalBytes)(o.fromHex(e),o.fromHex(t))},t.padLeft=p,t.padRight=m,t.random=function(e){return f(o.random(e))},t.slice=function(e,t,r,n={}){const{strict:o}=n;s.assertStartOffset(e,t);const a=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return o&&s.assertEndOffset(a,t,r),a},t.size=function(e){return Math.ceil((e.length-2)/2)},t.trimLeft=b,t.trimRight=function(e){return s.trim(e,{dir:"right"})},t.toBigInt=y,t.toBoolean=function(e,t={}){t.size&&s.assertSize(e,t.size);const r=b(e);if("0x"===r)return!1;if("0x1"===r)return!0;throw new g(e)},t.toBytes=function(e,t={}){return o.fromHex(e,t)},t.toNumber=function(e,t={}){const{signed:r,size:n}=t;return Number(r||n?y(e,t):e)},t.toString=function(e,t={}){const{size:r}=t;let n=o.fromHex(e);return r&&(i.assertSize(n,r),n=o.trimRight(n)),(new TextDecoder).decode(n)},t.validate=function(e,t={}){const{strict:r=!1}=t;try{return l(e,{strict:r}),!0}catch{return!1}};const n=r(1484),o=r(3516),a=r(7560),i=r(670),s=r(9588),c=r(5665),u=new TextEncoder,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e,t={}){const{strict:r=!1}=t;if(!e)throw new v(e);if("string"!=typeof e)throw new v(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new E(e);if(!e.startsWith("0x"))throw new E(e)}function f(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]];const n=`0x${r}`;return"number"==typeof t.size?(s.assertSize(n,t.size),m(n,t.size)):n}function p(e,t){return s.pad(e,{dir:"left",size:t})}function m(e,t){return s.pad(e,{dir:"right",size:t})}function b(e){return s.trim(e,{dir:"left"})}function y(e,t={}){const{signed:r}=t;t.size&&s.assertSize(e,t.size);const n=BigInt(e);if(!r)return n;const o=(e.length-2)/2,a=(1n<<8n*BigInt(o))-1n;return n<=a>>1n?n:n-a-1n}class h extends a.BaseError{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number \`${o}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=h;class g extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}}t.InvalidHexBooleanError=g;class v extends a.BaseError{constructor(e){super(`Value \`${"object"==typeof e?c.stringify(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}t.InvalidHexTypeError=v;class E extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}t.InvalidHexValueError=E;class w extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}t.InvalidLengthError=w;class x extends a.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}t.SizeOverflowError=x;class P extends a.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=P;class I extends a.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=I},9283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=async function(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})};const n=r(985)},9358:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=async function(e){const t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}};const n=r(3044)},9361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;const n=r(821);class o extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=o},9382:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.getContractAddress=void 0,t.getContractAddress=e=>e,t.getUrl=e=>e},9473:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.transactionType=void 0,t.formatTransaction=a;const n=r(294),o=r(1547);function a(e,r){const o={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(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?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[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&&(o.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)}))),o.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof o.v){if(0n===o.v||27n===o.v)return 0;if(1n===o.v||28n===o.v)return 1;if(o.v>=35n)return o.v%2n==0n?1:0}})(),"legacy"===o.type&&(delete o.accessList,delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas,delete o.yParity),"eip2930"===o.type&&(delete o.maxFeePerBlobGas,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas),"eip1559"===o.type&&delete o.maxFeePerBlobGas,o}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},t.defineTransaction=(0,o.defineFormatter)("transaction",a)},9494:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=t.erc6492MagicBytes=void 0,t.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeParameter=u,t.decodeAddress=f,t.decodeArray=p,t.decodeBool=m,t.decodeBytes=b,t.decodeNumber=y,t.decodeTuple=h,t.decodeString=g,t.prepareParameters=function({checksumAddress:e,parameters:t,values:r}){const n=[];for(let o=0;o<t.length;o++)n.push(v({checksumAddress:e,parameter:t[o],value:r[o]}));return n},t.prepareParameter=v,t.encode=E,t.encodeAddress=w,t.encodeArray=x,t.encodeBytes=P,t.encodeBoolean=I,t.encodeNumber=T,t.encodeString=A,t.encodeTuple=O,t.getArrayComponents=S,t.hasDynamicChild=B;const n=r(2037),o=r(7179),a=r(3516),i=r(7560),s=r(9274),c=r(6625);function u(e,t,r){const{checksumAddress:o,staticPosition:a}=r,i=S(t.type);if(i){const[r,n]=i;return p(e,{...t,type:n},{checksumAddress:o,length:r,staticPosition:a})}if("tuple"===t.type)return h(e,t,{checksumAddress:o,staticPosition:a});if("address"===t.type)return f(e,{checksum:o});if("bool"===t.type)return m(e);if(t.type.startsWith("bytes"))return b(e,t,{staticPosition:a});if(t.type.startsWith("uint")||t.type.startsWith("int"))return y(e,t);if("string"===t.type)return g(e,{staticPosition:a});throw new n.InvalidTypeError(t.type)}const d=32,l=32;function f(e,t={}){const{checksum:r=!1}=t,n=e.readBytes(32);return[(i=s.fromBytes(a.slice(n,-20)),r?o.checksum(i):i),32];var i}function p(e,t,r){const{checksumAddress:n,length:o,staticPosition:i}=r;if(!o){const r=i+a.toNumber(e.readBytes(l)),o=r+d;e.setPosition(r);const s=a.toNumber(e.readBytes(d)),c=B(t);let f=0;const p=[];for(let r=0;r<s;++r){e.setPosition(o+(c?32*r:f));const[a,i]=u(e,t,{checksumAddress:n,staticPosition:o});f+=i,p.push(a)}return e.setPosition(i+32),[p,32]}if(B(t)){const r=i+a.toNumber(e.readBytes(l)),s=[];for(let a=0;a<o;++a){e.setPosition(r+32*a);const[o]=u(e,t,{checksumAddress:n,staticPosition:r});s.push(o)}return e.setPosition(i+32),[s,32]}let s=0;const c=[];for(let r=0;r<o;++r){const[r,o]=u(e,t,{checksumAddress:n,staticPosition:i+s});s+=o,c.push(r)}return[c,s]}function m(e){return[a.toBoolean(e.readBytes(32),{size:32}),32]}function b(e,t,{staticPosition:r}){const[n,o]=t.type.split("bytes");if(!o){const t=a.toNumber(e.readBytes(32));e.setPosition(r+t);const n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const o=e.readBytes(n);return e.setPosition(r+32),[s.fromBytes(o),32]}return[s.fromBytes(e.readBytes(Number.parseInt(o,10),32)),32]}function y(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),o=e.readBytes(32);return[n>48?a.toBigInt(o,{signed:r}):a.toNumber(o,{signed:r}),32]}function h(e,t,r){const{checksumAddress:n,staticPosition:o}=r,i=0===t.components.length||t.components.some(({name:e})=>!e),s=i?[]:{};let c=0;if(B(t)){const r=o+a.toNumber(e.readBytes(l));for(let o=0;o<t.components.length;++o){const a=t.components[o];e.setPosition(r+c);const[d,l]=u(e,a,{checksumAddress:n,staticPosition:r});c+=l,s[i?o:a?.name]=d}return e.setPosition(o+32),[s,32]}for(let r=0;r<t.components.length;++r){const a=t.components[r],[d,l]=u(e,a,{checksumAddress:n,staticPosition:o});s[i?r:a?.name]=d,c+=l}return[s,c]}function g(e,{staticPosition:t}){const r=t+a.toNumber(e.readBytes(32));e.setPosition(r);const n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];const o=e.readBytes(n,32),i=a.toString(a.trimLeft(o));return e.setPosition(t+32),[i,32]}function v({checksumAddress:e=!1,parameter:t,value:r}){const o=t,a=S(o.type);if(a){const[t,n]=a;return x(r,{checksumAddress:e,length:t,parameter:{...o,type:n}})}if("tuple"===o.type)return O(r,{checksumAddress:e,parameter:o});if("address"===o.type)return w(r,{checksum:e});if("bool"===o.type)return I(r);if(o.type.startsWith("uint")||o.type.startsWith("int")){const e=o.type.startsWith("int"),[,,t="256"]=c.integerRegex.exec(o.type)??[];return T(r,{signed:e,size:Number(t)})}if(o.type.startsWith("bytes"))return P(r,{type:o.type});if("string"===o.type)return A(r);throw new n.InvalidTypeError(o.type)}function E(e){let t=0;for(let r=0;r<e.length;r++){const{dynamic:n,encoded:o}=e[r];t+=n?32:s.size(o)}const r=[],n=[];let o=0;for(let a=0;a<e.length;a++){const{dynamic:i,encoded:c}=e[a];i?(r.push(s.fromNumber(t+o,{size:32})),n.push(c),o+=s.size(c)):r.push(c)}return s.concat(...r,...n)}function w(e,t){const{checksum:r=!1}=t;return o.assert(e,{strict:r}),{dynamic:!1,encoded:s.padLeft(e.toLowerCase())}}function x(e,t){const{checksumAddress:r,length:o,parameter:a}=t,i=null===o;if(!Array.isArray(e))throw new n.InvalidArrayError(e);if(!i&&e.length!==o)throw new n.ArrayLengthMismatchError({expectedLength:o,givenLength:e.length,type:`${a.type}[${o}]`});let c=!1;const u=[];for(let t=0;t<e.length;t++){const n=v({checksumAddress:r,parameter:a,value:e[t]});n.dynamic&&(c=!0),u.push(n)}if(i||c){const e=E(u);if(i){const t=s.fromNumber(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?s.concat(t,e):t}}if(c)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:s.concat(...u.map(({encoded:e})=>e))}}function P(e,{type:t}){const[,r]=t.split("bytes"),o=s.size(e);if(!r){let t=e;return o%32!=0&&(t=s.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:s.concat(s.padLeft(s.fromNumber(o,{size:32})),t)}}if(o!==Number.parseInt(r,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:s.padRight(e)}}function I(e){if("boolean"!=typeof e)throw new i.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:s.padLeft(s.fromBoolean(e))}}function T(e,{signed:t,size:r}){if("number"==typeof r){const n=2n**(BigInt(r)-(t?1n:0n))-1n,o=t?-n-1n:0n;if(e>n||e<o)throw new s.IntegerOutOfRangeError({max:n.toString(),min:o.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:s.fromNumber(e,{size:32,signed:t})}}function A(e){const t=s.fromString(e),r=Math.ceil(s.size(t)/32),n=[];for(let e=0;e<r;e++)n.push(s.padRight(s.slice(t,32*e,32*(e+1))));return{dynamic:!0,encoded:s.concat(s.padRight(s.fromNumber(s.size(t),{size:32})),...n)}}function O(e,t){const{checksumAddress:r,parameter:n}=t;let o=!1;const a=[];for(let t=0;t<n.components.length;t++){const i=n.components[t],s=v({checksumAddress:r,parameter:i,value:e[Array.isArray(e)?t:i.name]});a.push(s),s.dynamic&&(o=!0)}return{dynamic:o,encoded:o?E(a):s.concat(...a.map(({encoded:e})=>e))}}function S(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function B(e){const{type:t}=e;if("string"===t)return!0;if("bytes"===t)return!0;if(t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(B);const r=S(e.type);return!(!r||!B({...e,type:r[1]}))}},9588:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.pad=function(e,t={}){const{dir:r,size:o=32}=t;if(0===o)return e;const a=e.replace("0x","");if(a.length>2*o)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(a.length/2),targetSize:o,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*o,"0")}`},t.trim=function(e,t={}){const{dir:r="left"}=t;let n=e.replace("0x",""),o=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)o++;return n="left"===r?n.slice(o):n.slice(0,n.length-o),"0"===n?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`};const n=r(9274)},9615:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const n=r(9175);class o extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);const r=(0,n.toBytes)(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,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,n.clean)(a)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(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}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:o,blockLen:a,outputLen:i}=this;return e.finished=n,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=o,t.hmac=(e,t,r)=>new o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},9617:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.maxBytesPerTransaction=t.bytesPerBlob=t.fieldElementsPerBlob=t.bytesPerFieldElement=void 0,t.bytesPerFieldElement=32,t.fieldElementsPerBlob=4096,t.bytesPerBlob=t.bytesPerFieldElement*t.fieldElementsPerBlob,t.maxBytesPerTransaction=6*t.bytesPerBlob-1-1*t.fieldElementsPerBlob*6},9624:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.revert=async function(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}},9626:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSelectorSizeError=t.NotFoundError=t.AmbiguityError=void 0,t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){const{prepare:r=!0}=t,o=Array.isArray(e)||"string"==typeof e?n.parseAbiItem(e):e;return{...o,...r?{hash:l(o)}:{}}},t.fromAbi=c,t.getSelector=u,t.getSignature=d,t.getSignatureHash=l;const n=r(6524),o=r(7560),a=r(347),i=r(9274),s=r(5800);function c(e,t,r){const{args:n=[],prepare:o=!0}=r??{},a=i.validate(t,{strict:!1}),c=e.filter(e=>a?"function"===e.type||"error"===e.type?u(e)===i.slice(t,0,4):"event"===e.type&&l(e)===t:"name"in e&&e.name===t);if(0===c.length)throw new p({name:t});if(1===c.length)return{...c[0],...o?{hash:l(c[0])}:{}};let d;for(const e of c)if("inputs"in e)if(n&&0!==n.length){if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,r)=>{const n="inputs"in e&&e.inputs[r];return!!n&&s.isArgOfType(t,n)})){if(d&&"inputs"in d&&d.inputs){const t=s.getAmbiguousTypes(e.inputs,d.inputs,n);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:d,type:t[1]})}d=e}}else if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:l(e)}:{}};const m=(()=>{if(d)return d;const[e,...t]=c;return{...e,overloads:t}})();if(!m)throw new p({name:t});return{...m,...o?{hash:l(m)}:{}}}function u(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})();return i.slice(l(t),0,4)}function d(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})(),r="string"==typeof t?t:n.formatAbiItem(t);return s.normalizeSignature(r)}function l(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,r]=e;return c(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:a.keccak256(i.fromString(d(t)))}class f extends o.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${s.normalizeSignature(n.formatAbiItem(e.abiItem))}\`, and`,`\`${t.type}\` in \`${s.normalizeSignature(n.formatAbiItem(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}t.AmbiguityError=f;class p extends o.BaseError{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}t.NotFoundError=p;class m extends o.BaseError{constructor({data:e}){super(`Selector size is invalid. Expected 4 bytes. Received ${i.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}t.InvalidSelectorSizeError=m},9642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;const n=r(6246);class o extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}t.BlockNotFoundError=o},9694:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSiweMessage=function(e){const{scheme:t,statement:o,...a}=e.match(r)?.groups??{},{chainId:i,expirationTime:s,issuedAt:c,notBefore:u,requestId:d,...l}=e.match(n)?.groups??{},f=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...a,...l,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...c?{issuedAt:new Date(c)}:{},...u?{notBefore:new Date(u)}:{},...d?{requestId:d}:{},...f?{resources:f}:{},...t?{scheme:t}:{},...o?{statement:o}:{}}};const r=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,n=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/},9742:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressCache=void 0,t.isAddress=function(e,r){const{strict:n=!0}=r??{},i=`${e}.${n}`;if(t.isAddressCache.has(i))return t.isAddressCache.get(i);const s=!(!a.test(e)||e.toLowerCase()!==e&&n&&(0,o.checksumAddress)(e)!==e);return t.isAddressCache.set(i,s),s};const n=r(7848),o=r(8728),a=/^0x[a-fA-F0-9]{40}$/;t.isAddressCache=new n.LruMap(8192)},9760:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=void 0,t.getParameterCacheKey=function(e,t,r){let n="";if(r)for(const e of Object.entries(r)){if(!e)continue;let t="";for(const r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},9771:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=async function(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}},9788:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=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 n.InvalidSerializableTransactionError({transaction:e})};const n=r(3727)},9828:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:d,poll:l,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==l?l:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{const n=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]);return(0,a.observe)(n,{onBlockNumber:u,onError:d},n=>(0,i.poll)(async()=>{try{const t=await(0,o.getAction)(e,c.getBlockNumber,"getBlockNumber")({cacheTime:0});if(void 0!==p){if(t===p)return;if(t-p>1&&r)for(let e=p+1n;e<t;e++)n.onBlockNumber(e,p),p=e}(void 0===p||t>p)&&(n.onBlockNumber(t,p),p=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{const o=(0,s.stringify)(["watchBlockNumber",e.uid,t,r]);return(0,a.observe)(o,{onBlockNumber:u,onError:d},t=>{let r=!0,o=()=>r=!1;return(async()=>{try{const a=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await a.subscribe({params:["newHeads"],onData(e){if(!r)return;const o=(0,n.hexToBigInt)(e.result?.number);t.onBlockNumber(o,p),p=o},onError(e){t.onError?.(e)}});o=i,r||o()}catch(e){d?.(e)}})(),()=>o()})})()};const n=r(294),o=r(6207),a=r(2093),i=r(3940),s=r(4900),c=r(5729)},9914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=async function(e,{address:t,blockHash:r,fromBlock:s,toBlock:c,event:u,events:d,args:l,strict:f}={}){const p=f??!1,m=d??(u?[u]:void 0);let b,y=[];if(m){const e=m.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:d?void 0:l}));y=[e],u&&(y=y[0])}b=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:y,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:y,fromBlock:"bigint"==typeof s?(0,a.numberToHex)(s):s,toBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c}]});const h=b.map(e=>(0,i.formatLog)(e));return m?(0,o.parseEventLogs)({abi:m,args:l,logs:h,strict:p}):h};const n=r(378),o=r(48),a=r(985),i=r(95)},9978:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=async function(e,t){const{account:r=e.account,chain:l=e.chain,...f}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const p=(0,n.parseAccount)(r);(0,u.assertRequest)({account:p,...t});const m=await(0,c.getAction)(e,d.getChainId,"getChainId")({});null!==l&&(0,a.assertCurrentChain)({currentChainId:m,chain:l});const b=l?.formatters||e.chain?.formatters,y=b?.transactionRequest?.format||s.formatTransactionRequest;return p.signTransaction?p.signTransaction({...f,chainId:m},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...y({...f,account:p},"signTransaction"),chainId:(0,i.numberToHex)(m),from:p.address}]},{retryCount:0})};const n=r(9006),o=r(2540),a=r(2779),i=r(985),s=r(4712),c=r(6207),u=r(4969),d=r(1093)},9984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=function(e){const{domain:t={},message:r,primaryType:n}=e,a={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:t}),...e.types};(0,s.validateTypedData)({domain:t,message:r,primaryType:n,types:a});const d=["0x1901"];return t&&d.push(c({domain:t,types:a})),"EIP712Domain"!==n&&d.push(u({data:r,primaryType:n,types:a})),(0,i.keccak256)((0,o.concat)(d))},t.hashDomain=c,t.hashStruct=u,t.encodeType=f;const n=r(2732),o=r(6776),a=r(985),i=r(3625),s=r(8377);function c({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}function u({data:e,primaryType:t,types:r}){const n=d({data:e,primaryType:t,types:r});return(0,i.keccak256)(n)}function d({data:e,primaryType:t,types:r}){const o=[{type:"bytes32"}],a=[l({primaryType:t,types:r})];for(const n of r[t]){const[t,i]=m({types:r,name:n.name,type:n.type,value:e[n.name]});o.push(t),a.push(i)}return(0,n.encodeAbiParameters)(o,a)}function l({primaryType:e,types:t}){const r=(0,a.toHex)(f({primaryType:e,types:t}));return(0,i.keccak256)(r)}function f({primaryType:e,types:t}){let r="";const n=p({primaryType:e,types:t});n.delete(e);const o=[e,...Array.from(n).sort()];for(const e of o)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}function p({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),o=n?.[0];if(r.has(o)||void 0===t[o])return r;r.add(o);for(const e of t[o])p({primaryType:e.type,types:t},r);return r}function m({types:e,name:t,type:r,value:o}){if(void 0!==e[r])return[{type:"bytes32"},(0,i.keccak256)(d({data:o,primaryType:r,types:e}))];if("bytes"===r)return[{type:"bytes32"},(0,i.keccak256)(o)];if("string"===r)return[{type:"bytes32"},(0,i.keccak256)((0,a.toHex)(o))];if(r.lastIndexOf("]")===r.length-1){const a=r.slice(0,r.lastIndexOf("[")),s=o.map(r=>m({name:t,type:a,types:e,value:r}));return[{type:"bytes32"},(0,i.keccak256)((0,n.encodeAbiParameters)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:r},o]}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(8156)})());