PageSourceSearch

https://gamercenter.io/_next/static/chunks/ed96faa55556ceb1.js?dpl=dpl_Wz1NwWSUf7vjJm2uc8Wsz2qT93vU

js gamercenter.io collected 2026-10-09 17:40:27 UTC 79,097 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,550299,e=>{"use strict";e.s(["bytesToRlp",()=>s,"hexToRlp",()=>o,"toRlp",()=>a]);var t=e.i(219857),r=e.i(456899),n=e.i(947233),i=e.i(654196);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex",a=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=l(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(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)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,n.hexToBytes)(e):e,r=l(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||(t.length<=55?e.pushByte(128+t.length):(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)}}}(t)}(e),s=(0,r.createCursor)(new Uint8Array(a.length));return(a.encode(s),"hex"===t)?(0,i.bytesToHex)(s.bytes):s.bytes}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bytes";return a(e,t)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex";return a(e,t)}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new t.BaseError("Length is too large.")}},624379,630324,e=>{"use strict";e.s(["defineBlock",()=>o,"formatBlock",()=>s],624379);var t=e.i(586571);e.s(["defineTransaction",()=>a,"formatTransaction",()=>i,"transactionType",()=>n],630324);var r=e.i(478226);let n={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function i(e,t){let i={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.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,r.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?n[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&&(i.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)}))),i.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof i.v){if(0n===i.v||27n===i.v)return 0;if(1n===i.v||28n===i.v)return 1;if(i.v>=35n)return+(i.v%2n===0n)}})(),"legacy"===i.type&&(delete i.accessList,delete i.maxFeePerBlobGas,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.yParity),"eip2930"===i.type&&(delete i.maxFeePerBlobGas,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas),"eip1559"===i.type&&delete i.maxFeePerBlobGas,i}let a=(0,t.defineFormatter)("transaction",i);function s(e,t){var r;let n=(null!=(r=e.transactions)?r:[]).map(e=>"string"==typeof e?e:i(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,t.defineFormatter)("block",s)},887076,919554,581347,775101,171095,537100,835032,420795,973562,218310,e=>{"use strict";e.s(["blobsToCommitments",()=>n],887076);var t=e.i(947233),r=e.i(654196);function n(e){var n;let{kzg:i}
1=e,a=null!=(n=e.to)?n:"string"==typeof e.blobs[0]?"hex":"bytes",s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,t.hexToBytes)(e)):e.blobs,o=[];for(let e of s)o.push(Uint8Array.from(i.blobToKzgCommitment(e)));return"bytes"===a?o:o.map(e=>(0,r.bytesToHex)(e))}function i(e){var n;let{kzg:i}=e,a=null!=(n=e.to)?n:"string"==typeof e.blobs[0]?"hex":"bytes",s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,t.hexToBytes)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,t.hexToBytes)(e)):e.commitments,l=[];for(let e=0;e<s.length;e++){let t=s[e],r=o[e];l.push(Uint8Array.from(i.computeBlobKzgProof(t,r)))}return"bytes"===a?l:l.map(e=>(0,r.bytesToHex)(e))}e.s(["blobsToProofs",()=>i],919554),e.s(["commitmentsToVersionedHashes",()=>c],171095),e.s(["commitmentToVersionedHash",()=>l],775101),e.s(["sha256",()=>o],581347);var a=e.i(403893),s=e.i(776539);function o(e,n){let i=(0,a.sha256)((0,s.isHex)(e,{strict:!1})?(0,t.toBytes)(e):e);return"bytes"===(n||"hex")?i:(0,r.toHex)(i)}function l(e){var t;let{commitment:n,version:i=1}=e,a=null!=(t=e.to)?t:"string"==typeof n?"hex":"bytes",s=o(n,"bytes");return s.set([i],0),"bytes"===a?s:(0,r.bytesToHex)(s)}function c(e){var t;let{commitments:r,version:n}=e,i=null!=(t=e.to)?t:"string"==typeof r[0]?"hex":"bytes",a=[];for(let e of r)a.push(l({commitment:e,to:i,version:n}));return a}e.s(["toBlobSidecars",()=>v],973562),e.s(["toBlobs",()=>g],420795);e.s(["BlobSizeTooLargeError",()=>f,"EmptyBlobError",()=>m,"InvalidVersionedHashSizeError",()=>p,"InvalidVersionedHashVersionError",()=>h],835032),e.s(["versionedHashVersionKzg",()=>u],537100);let u=1;var d=e.i(219857);class f extends d.BaseError{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:["Max: ".concat(e," bytes"),"Given: ".concat(t," bytes")],name:"BlobSizeTooLargeError"})}}class m extends d.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class p extends d.BaseError{constructor({hash:e,size:t}){super('Versioned hash "'.concat(e,'" size is invalid.'),{metaMessages:["Expected: 32","Received: ".concat(t)],name:"InvalidVersionedHashSizeError"})}}class h extends d.BaseError{constructor({hash:e,version:t}){super('Versioned hash "'.concat(e,'" version is invalid.'),{metaMessages:["Expected: ".concat(u),"Received: ".concat(t)],name:"InvalidVersionedHashVersionError"})}}var b=e.i(456899),y=e.i(363550);function g(e){var n;let i=null!=(n=e.to)?n:"string"==typeof e.data?"hex":"bytes",a="string"==typeof e.data?(0,t.hexToBytes)(e.data):e.data,s=(0,y.size)(a);if(!s)throw new m;if(s>761855)throw new f({maxSize:761855,size:s});let o=[],l=!0,c=0;for(;l;){let e=(0,b.createCursor)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=a.slice(c,c+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,c+=31}o.push(e)}return"bytes"===i?o.map(e=>e.bytes):o.map(e=>(0,r.bytesToHex)(e.bytes))}function v(e){var t,r,a;let{data:s,kzg:o,to:l}=e,c=null!=(t=e.blobs)?t:g({data:s,to:l}),u=null!=(r=e.commitments)?r:n({blobs:c,kzg:o,to:l}),d=null!=(a=e.proofs)?a:i({blobs:c,commitments:u,kzg:o,to:l}),f=[];for(let e=0;e<c.length;e++)f.push({blob:c[e],commitment:u[e],proof:d[e]});return f}e.s(["getTransactionType",()=>w],218310);var x=e.i(79896);function w(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 x.InvalidSerializableTransactionError({transaction:e})}},948235,424312,e=>{"use strict";e.s(["defineTransactionReceipt",()=>o,"formatTransactionReceipt",()=>s,"receiptStatuses",()=>a],948235);var t=e.i(478226),r=e.i(586571);function n(e){let{args:t,eventName:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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}:{}}}e.s(["formatLog",()=>n],424312);var i=e.i(630324);let a={"0x0":"reverted","0x1":"success"};function s(e,r){let s={...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=>n(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,t.hexToNumber)(e.transactionIndex):null,status:e.status?a[e.status]:null,type:e.type?i.transactionType[e.type]||e.type:null};return e.blobGasPrice&&(s.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(s.blobGasUsed=BigInt(e.blobGasUsed)),s}let o=(0,r.defineFormatter)("transactionReceipt",s)},770499,e=>{"use strict";e.s(["parseAbiItem",()=>a]);var t=e.i(115281),r=e.i(890144),n=e.i(927842),i=e.i(396839);function a(e){let a;if("string"==typeof e)a=(0,i.parseSignature)(e);else{let t=(0,n.parseStructs)(e),s=e.length;for(let n=0;n<s;n++){let s=e[n];if(!(0,r.isStructSignature)(s)){a=(0,i.parseSignature)(s,t);break}}}if(!a)throw new t.InvalidAbiItemError({signature:e});return a}},389822,e=>{"use strict";e.s(["parseAbiParameters",()=>a]);var t=e.i(489333),r=e.i(890144),n=e.i(927842),i=e.i(396839);function a(e){let a=[];if("string"==typeof e){let t=(0,i.splitParameters)(e),n=t.length;for(let e=0;e<n;e++)a.push((0,i.parseAbiParameter)(t[e],{modifiers:r.modifiers}))}else{let t=(0,n.parseStructs)(e),s=e.length;for(let n=0;n<s;n++){let s=e[n];if((0,r.isStructSignature)(s))continue;let o=(0,i.splitParameters)(s),l=o.length;for(let e=0;e<l;e++)a.push((0,i.parseAbiParameter)(o[e],{modifiers:r.modifiers,structs:t}))}}if(0===a.length)throw new t.InvalidAbiParametersError({params:e});return a}},723433,e=>{"use strict";e.s(["ethAddress",()=>t,"zeroAddress",()=>r]);let t="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",r="0x0000000000000000000000000000000000000000"},870393,263515,397521,330412,156328,727420,e=>{"use strict";e.s(["hashMessage",()=>o],870393);var t=e.i(690087);e.s(["toPrefixedMessage",()=>s],397521),e.s(["presignMessagePrefix",()=>r],263515);let r="\x19Ethereum Signed Message:\n";var n=e.i(474730),i=e.i(363550),a=e.i(654196);function s(e){let t="string"==typeof e?(0,a.stringToHex)(e):"string"==typeof e.raw?e.raw:(0,a.bytesToHex)(e.raw),s=(0,a.stringToHex)("".concat(r).concat((0,i.size)(t)));
1return(0,n.concat)([s,t])}function o(e,r){return(0,t.keccak256)(s(e),r)}e.s(["hashDomain",()=>B,"hashStruct",()=>E,"hashTypedData",()=>P],727420);var l=e.i(472174);e.s(["domainSeparator",()=>w,"getTypesForEIP712Domain",()=>x,"serializeTypedData",()=>g,"validateTypedData",()=>v],156328);var c=e.i(26136),u=e.i(619899);e.s(["InvalidDomainError",()=>m,"InvalidPrimaryTypeError",()=>p,"InvalidStructTypeError",()=>h],330412);var d=e.i(145343),f=e.i(219857);class m extends f.BaseError{constructor({domain:e}){super('Invalid domain "'.concat((0,d.stringify)(e),'".'),{metaMessages:["Must be a valid EIP-712 domain."]})}}class p extends f.BaseError{constructor({primaryType:e,types:t}){super("Invalid primary type `".concat(e,"` must be one of `").concat(JSON.stringify(Object.keys(t)),"`."),{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class h extends f.BaseError{constructor({type:e}){super('Struct type "'.concat(e,'" is invalid.'),{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var b=e.i(736642),y=e.i(706136);function g(e){let{domain:t,message:r,primaryType:n,types:i}=e,a=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},s=i.EIP712Domain&&t?a(i.EIP712Domain,t):{},o=(()=>{if("EIP712Domain"!==n)return a(i[n],r)})();return(0,d.stringify)({domain:s,message:o,primaryType:n,types:i})}function v(e){let{domain:t,message:r,primaryType:n,types:s}=e,o=(e,t)=>{for(let r of e){let{name:e,type:n}=r,l=t[e],d=n.match(y.integerRegex);if(d&&("number"==typeof l||"bigint"==typeof l)){let[e,t,r]=d;(0,a.numberToHex)(l,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===n&&"string"==typeof l&&!(0,b.isAddress)(l))throw new u.InvalidAddressError({address:l});let f=n.match(y.bytesRegex);if(f){let[e,t]=f;if(t&&(0,i.size)(l)!==Number.parseInt(t,10))throw new c.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(0,i.size)(l)})}let m=s[n];m&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new h({type:e})}(n),o(m,l))}};if(s.EIP712Domain&&t){if("object"!=typeof t)throw new m({domain:t});o(s.EIP712Domain,t)}if("EIP712Domain"!==n)if(s[n])o(s[n],r);else throw new p({primaryType:n,types:s})}function x(e){let{domain:t}=e;return["string"==typeof(null==t?void 0:t.name)&&{name:"name",type:"string"},(null==t?void 0:t.version)&&{name:"version",type:"string"},("number"==typeof(null==t?void 0:t.chainId)||"bigint"==typeof(null==t?void 0:t.chainId))&&{name:"chainId",type:"uint256"},(null==t?void 0:t.verifyingContract)&&{name:"verifyingContract",type:"address"},(null==t?void 0:t.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function w(e){let{domain:t}=e;return B({domain:t,types:{EIP712Domain:x({domain:t})}})}function P(e){let{domain:r={},message:i,primaryType:a}=e,s={EIP712Domain:x({domain:r}),...e.types};v({domain:r,message:i,primaryType:a,types:s});let o=["0x1901"];return r&&o.push(B({domain:r,types:s})),"EIP712Domain"!==a&&o.push(E({data:i,primaryType:a,types:s})),(0,t.keccak256)((0,n.concat)(o))}function B(e){let{domain:t,types:r}=e;return E({data:t,primaryType:"EIP712Domain",types:r})}function E(e){let{data:r,primaryType:n,types:i}=e,s=function e(r){let{data:n,primaryType:i,types:s}=r,o=[{type:"bytes32"}],c=[function(e){let{primaryType:r,types:n}=e,i=(0,a.toHex)(function(e){let{primaryType:t,types:r}=e,n="",i=function e(t){let{primaryType:r,types:n}=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,a=r.match(/^\w*/u),s=null==a?void 0:a[0];if(i.has(s)||void 0===n[s])return i;for(let t of(i.add(s),n[s]))e({primaryType:t.type,types:n},i);return i}({primaryType:t,types:r});for(let e of(i.delete(t),[t,...Array.from(i).sort()]))n+="".concat(e,"(").concat(r[e].map(e=>{let{name:t,type:r}=e;return"".concat(r," ").concat(t)}).join(","),")");return n}({primaryType:r,types:n}));return(0,t.keccak256)(i)}({primaryType:i,types:s})];for(let r of s[i]){let[i,u]=function r(n){let{types:i,name:s,type:o,value:c}=n;if(void 0!==i[o])return[{type:"bytes32"},(0,t.keccak256)(e({data:c,primaryType:o,types:i}))];if("bytes"===o)return[{type:"bytes32"},(0,t.keccak256)(c)];if("string"===o)return[{type:"bytes32"},(0,t.keccak256)((0,a.toHex)(c))];if(o.lastIndexOf("]")===o.length-1){let e=o.slice(0,o.lastIndexOf("[")),n=c.map(t=>r({name:s,type:e,types:i,value:t}));return[{type:"bytes32"},(0,t.keccak256)((0,l.encodeAbiParameters)(n.map(e=>{let[t]=e;return t}),n.map(e=>{let[,t]=e;return t})))]}return[{type:o},c]}({types:s,name:r.name,type:r.type,value:n[r.name]});o.push(i),c.push(u)}return(0,l.encodeAbiParameters)(o,c)}({data:r,primaryType:n,types:i});return(0,t.keccak256)(s)}},331119,e=>{"use strict";function t(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}e.s(["getAction",()=>t])},293038,e=>{"use strict";e.s(["getContractError",()=>s]);var t=e.i(26136),r=e.i(219857),n=e.i(49491),i=e.i(128165),a=e.i(237370);
1function s(e,s){let{abi:o,address:l,args:c,docsPath:u,functionName:d,sender:f}=s,m=e instanceof n.RawContractError?e:e instanceof r.BaseError?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:h,details:b,message:y,shortMessage:g}=m,v=e instanceof t.AbiDecodingZeroDataError?new n.ContractFunctionZeroDataError({functionName:d}):[3,a.InternalRpcError.code].includes(p)&&(h||b||y||g)||p===a.InvalidInputRpcError.code&&"execution reverted"===b&&h?new n.ContractFunctionRevertedError({abi:o,data:"object"==typeof h?h.data:h,functionName:d,message:m instanceof i.RpcRequestError?b:null!=g?g:y}):e;return new n.ContractFunctionExecutionError(v,{abi:o,args:c,contractAddress:l,docsPath:u,functionName:d,sender:f})}},958815,e=>{"use strict";e.s(["readContract",()=>s]);var t=e.i(453776),r=e.i(700300),n=e.i(293038),i=e.i(331119),a=e.i(400903);async function s(e,s){let{abi:o,address:l,args:c,functionName:u,...d}=s,f=(0,r.encodeFunctionData)({abi:o,args:c,functionName:u});try{let{data:r}=await (0,i.getAction)(e,a.call,"call")({...d,data:f,to:l});return(0,t.decodeFunctionResult)({abi:o,args:c,functionName:u,data:r||"0x"})}catch(e){throw(0,n.getContractError)(e,{abi:o,address:l,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},413547,589969,919843,e=>{"use strict";e.s(["recoverAuthorizationAddress",()=>m],413547),e.s(["recoverAddress",()=>c],919843);var t=e.i(807355),r=e.i(690087);e.s(["recoverPublicKey",()=>o],589969);var n=e.i(776539),i=e.i(363550),a=e.i(478226),s=e.i(654196);async function o(t){let{hash:r,signature:o}=t,c=(0,n.isHex)(r)?r:(0,s.toHex)(r),{secp256k1:u}=await e.A(313886),d=(()=>{if("object"==typeof o&&"r"in o&&"s"in o){let{r:e,s:t,v:r,yParity:n}=o,i=l(Number(null!=n?n:r));return new u.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(t)).addRecoveryBit(i)}let e=(0,n.isHex)(o)?o:(0,s.toHex)(o);if(65!==(0,i.size)(e))throw Error("invalid signature length");let t=l((0,a.hexToNumber)("0x".concat(e.slice(130))));return u.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(t)})().recoverPublicKey(c.substring(2)).toHex(!1);return"0x".concat(d)}function l(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function c(e){let{hash:n,signature:i}=e;var a=await o({hash:n,signature:i});let s=(0,r.keccak256)("0x".concat(a.substring(4))).substring(26);return(0,t.checksumAddress)("0x".concat(s))}var u=e.i(474730),d=e.i(947233),f=e.i(550299);async function m(e){let{authorization:t,signature:n}=e;return c({hash:function(e){var t;let{chainId:n,nonce:i,to:a}=e,o=null!=(t=e.contractAddress)?t:e.address,l=(0,r.keccak256)((0,u.concatHex)(["0x05",(0,f.toRlp)([n?(0,s.numberToHex)(n):"0x",o,i?(0,s.numberToHex)(i):"0x"])]));return"bytes"===a?(0,d.hexToBytes)(l):l}(t),signature:null!=n?n:t})}},766333,893169,e=>{"use strict";e.s(["getEstimateGasError",()=>l],766333),e.s(["EstimateGasExecutionError",()=>a],893169);var t=e.i(392903),r=e.i(357937),n=e.i(219857),i=e.i(79896);class a extends n.BaseError{constructor(e,{account:n,docsPath:a,chain:s,data:o,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:m,value:p}){var h;super(e.shortMessage,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,i.prettyPrint)({from:null==n?void 0:n.address,to:m,value:void 0!==p&&"".concat((0,t.formatEther)(p)," ").concat((null==s||null==(h=s.nativeCurrency)?void 0:h.symbol)||"ETH"),data:o,gas:l,gasPrice:void 0!==c&&"".concat((0,r.formatGwei)(c)," gwei"),maxFeePerGas:void 0!==u&&"".concat((0,r.formatGwei)(u)," gwei"),maxPriorityFeePerGas:void 0!==d&&"".concat((0,r.formatGwei)(d)," gwei"),nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var s=e.i(781499),o=e.i(622146);function l(e,t){let{docsPath:r,...n}=t;return new a((()=>{let t=(0,o.getNodeError)(e,n);return t instanceof s.UnknownNodeError?e:t})(),{docsPath:r,...n})}},207553,94666,382444,823280,930358,586232,e=>{"use strict";e.s(["estimateFeesPerGas",()=>y,"internal_estimateFeesPerGas",()=>g],207553),e.s(["BaseFeeScalarError",()=>i,"Eip1559FeesNotSupportedError",()=>
1a,"MaxFeePerGasTooLowError",()=>s],94666);var t,r=e.i(357937),n=e.i(219857);class i extends n.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends n.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends n.BaseError{constructor({maxPriorityFeePerGas:e}){super("`maxFeePerGas` cannot be less than the `maxPriorityFeePerGas` (".concat((0,r.formatGwei)(e)," gwei)."),{name:"MaxFeePerGasTooLowError"})}}var o=e.i(331119);e.s(["estimateMaxPriorityFeePerGas",()=>h,"internal_estimateMaxPriorityFeePerGas",()=>b],586232);var l=e.i(478226);e.s(["getBlock",()=>m],823280),e.s(["BlockNotFoundError",()=>u],382444);var c=n;class u extends c.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r='Block at hash "'.concat(e,'"')),t&&(r='Block at number "'.concat(t,'"')),super("".concat(r," could not be found."),{name:"BlockNotFoundError"})}}var d=e.i(654196),f=e.i(624379);async function m(e){var r,n,i;let{blockHash:a,blockNumber:s,blockTag:o=null!=(t=e.experimental_blockTag)?t:"latest",includeTransactions:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=null!=l&&l,m=void 0!==s?(0,d.numberToHex)(s):void 0,p=null;if(!(p=a?await e.request({method:"eth_getBlockByHash",params:[a,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[m||o,c]},{dedupe:!!m})))throw new u({blockHash:a,blockNumber:s});return((null==(i=e.chain)||null==(n=i.formatters)||null==(r=n.block)?void 0:r.format)||f.formatBlock)(p,"getBlock")}async function p(e){return BigInt(await e.request({method:"eth_gasPrice"}))}async function h(e,t){return b(e,t)}async function b(e,t){let{block:r,chain:n=e.chain,request:i}=t||{};try{var s,c,u;let t=null!=(u=null==n||null==(s=n.fees)?void 0:s.maxPriorityFeePerGas)?u:null==n||null==(c=n.fees)?void 0:c.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,o.getAction)(e,m,"getBlock")({}),a=await t({block:n,client:e,request:i});if(null===a)throw Error();return a}if(void 0!==t)return t;let a=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,l.hexToBigInt)(a)}catch(s){let[t,n]=await Promise.all([r?Promise.resolve(r):(0,o.getAction)(e,m,"getBlock")({}),(0,o.getAction)(e,p,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new a;let i=n-t.baseFeePerGas;if(i<0n)return 0n;return i}}async function y(e,t){return g(e,t)}async function g(e,t){var r,n,s,l,c;let{block:u,chain:d=e.chain,request:f,type:h="eip1559"}=t||{},y=await (async()=>{var t,r,n;return"function"==typeof(null==d||null==(t=d.fees)?void 0:t.baseFeeMultiplier)?d.fees.baseFeeMultiplier({block:u,client:e,request:f}):null!=(n=null==d||null==(r=d.fees)?void 0:r.baseFeeMultiplier)?n:1.2})();if(y<1)throw new i;let g=null!=(s=null==(r=y.toString().split(".")[1])?void 0:r.length)?s:0,v=10**g,x=e=>e*BigInt(Math.ceil(y*v))/BigInt(v),w=u||await (0,o.getAction)(e,m,"getBlock")({});if("function"==typeof(null==d||null==(n=d.fees)?void 0:n.estimateFeesPerGas)){let t=await d.fees.estimateFeesPerGas({block:u,client:e,multiply:x,request:f,type:h});if(null!==t)return t}if("eip1559"===h){if("bigint"!=typeof w.baseFeePerGas)throw new a;let t="bigint"==typeof(null==f?void 0:f.maxPriorityFeePerGas)?f.maxPriorityFeePerGas:await b(e,{block:w,chain:d,request:f}),r=x(w.baseFeePerGas);return{maxFeePerGas:null!=(l=null==f?void 0:f.maxFeePerGas)?l:r+t,maxPriorityFeePerGas:t}}return{gasPrice:null!=(c=null==f?void 0:f.gasPrice)?c:x(await (0,o.getAction)(e,p,"getGasPrice")({}))}}e.s(["getGasPrice",()=>p],930358)},2445,e=>{"use strict";e.s(["getTransactionCount",()=>n]);var t=e.i(478226),r=e.i(654196);async function n(e,n){let{address:i,blockTag:a="latest",blockNumber:s}=n,o=await e.request({method:"eth_getTransactionCount",params:[i,"bigint"==typeof s?(0,r.numberToHex)(s):a]},{dedupe:!!s});return(0,t.hexToNumber)(o)}},776087,e=>{"use strict";e.s(["getTransactionError",()=>i]);var t=e.i(781499),r=e.i(79896),n=e.i(622146);function i(e,i){let{docsPath:a,...s}=i,o=(()=>{let r=(0,n.getNodeError)(e,s);return r instanceof t.UnknownNodeError?e:r})();return new r.TransactionExecutionError(o,{docsPath:a,...s})}},682781,e=>{"use strict";e.s(["getChainId",()=>r]);var t=e.i(478226);async function r(e){let r=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,t.hexToNumber)(r)}},104014,69218,e=>{"use strict";e.s(["defaultParameters",()=>w,"prepareTransactionRequest",()=>E],104014);var t=e.i(401036),r=e.i(207553),n=e.i(156013),i=e.i(823280),a=e.i(2445),s=e.i(94666),o=e.i(887076),l=e.i(919554),c=e.i(171095),u=e.i(973562),d=e.i(331119),f=e.i(140303),m=e.i(688946),p=e.i(218310);e.s(["fillTransaction",()=>x],69218);var h=e.i(776087),b=e.i(17776),y=e.i(630324),g=e.i(380351),v=e.i(682781);async function x(e,r){var n,a,o,l,c,u,f,p,x,w,P,B;let{account:E=e.account,accessList:I,authorizationList:A,chain:T=e.chain,blobVersionedHashes:k,blobs:F,data:z,gas:G,gasPrice:S,maxFeePerBlobGas:N,maxFeePerGas:R,maxPriorityFeePerGas:H,nonce:C,nonceManager:U,to:L,type:M,value:V,...O}=r,D=await (async()=>
1{if(!E||!U||void 0!==C)return C;let r=(0,t.parseAccount)(E),n=T?T.id:await (0,d.getAction)(e,v.getChainId,"getChainId")({});return await U.consume({address:r.address,chainId:n,client:e})})();(0,m.assertRequest)(r);let j=null==T||null==(a=T.formatters)||null==(n=a.transactionRequest)?void 0:n.format,q=(j||g.formatTransactionRequest)({...(0,b.extract)(O,{format:j}),account:E?(0,t.parseAccount)(E):void 0,accessList:I,authorizationList:A,blobs:F,blobVersionedHashes:k,data:z,gas:G,gasPrice:S,maxFeePerBlobGas:N,maxFeePerGas:R,maxPriorityFeePerGas:H,nonce:D,to:L,type:M,value:V},"fillTransaction");try{let t=await e.request({method:"eth_fillTransaction",params:[q]}),n=((null==T||null==(l=T.formatters)||null==(o=l.transaction)?void 0:o.format)||y.formatTransaction)(t.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=null!=(u=r.gas)?u:n.gas),n.gasPrice&&(n.gasPrice=null!=(f=r.gasPrice)?f:n.gasPrice),n.maxFeePerBlobGas&&(n.maxFeePerBlobGas=null!=(p=r.maxFeePerBlobGas)?p:n.maxFeePerBlobGas),n.maxFeePerGas&&(n.maxFeePerGas=null!=(x=r.maxFeePerGas)?x:n.maxFeePerGas),n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=null!=(w=r.maxPriorityFeePerGas)?w:n.maxPriorityFeePerGas),n.nonce&&(n.nonce=null!=(P=r.nonce)?P:n.nonce);let a=await (async()=>{var t,n,a;if("function"==typeof(null==T||null==(t=T.fees)?void 0:t.baseFeeMultiplier)){let t=await (0,d.getAction)(e,i.getBlock,"getBlock")({});return T.fees.baseFeeMultiplier({block:t,client:e,request:r})}return null!=(a=null==T||null==(n=T.fees)?void 0:n.baseFeeMultiplier)?a:1.2})();if(a<1)throw new s.BaseFeeScalarError;let m=null!=(B=null==(c=a.toString().split(".")[1])?void 0:c.length)?B:0,h=10**m,b=e=>e*BigInt(Math.ceil(a*h))/BigInt(h);return n.maxFeePerGas&&!r.maxFeePerGas&&(n.maxFeePerGas=b(n.maxFeePerGas)),n.gasPrice&&!r.gasPrice&&(n.gasPrice=b(n.gasPrice)),{raw:t.raw,transaction:{from:q.from,...n}}}catch(t){throw(0,h.getTransactionError)(t,{...r,chain:e.chain})}}let w=["blobVersionedHashes","chainId","fees","gas","nonce","type"],P=new Map,B=new f.LruMap(128);async function E(e,f){var h,b,y,g,E,I;let A,T,k=f;null!=(g=k).account||(g.account=e.account),null!=(E=k).chain||(E.chain=e.chain),null!=(I=k).parameters||(I.parameters=w);let{account:F,chain:z,nonceManager:G,parameters:S}=k,N="function"==typeof(null==z?void 0:z.prepareTransactionRequest)?{fn:z.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(null==z?void 0:z.prepareTransactionRequest)?{fn:z.prepareTransactionRequest[0],runAt:z.prepareTransactionRequest[1].runAt}:void 0;async function R(){return A||(void 0!==k.chainId?k.chainId:z?z.id:A=await (0,d.getAction)(e,v.getChainId,"getChainId")({}))}let H=F?(0,t.parseAccount)(F):F,C=k.nonce;if(S.includes("nonce")&&void 0===C&&H&&G){let t=await R();C=await G.consume({address:H.address,chainId:t,client:e})}(null==N?void 0:N.fn)&&(null==(h=N.runAt)?void 0:h.includes("beforeFillTransaction"))&&(k=await N.fn(k,{phase:"beforeFillTransaction"}),null!=C||(C=k.nonce));let U=(!(S.includes("blobVersionedHashes")||S.includes("sidecars"))||!k.kzg||!k.blobs)&&!1!==B.get(e.uid)&&["fees","gas"].some(e=>S.includes(e))&&(S.includes("chainId")&&"number"!=typeof k.chainId||S.includes("nonce")&&"number"!=typeof C||S.includes("fees")&&"bigint"!=typeof k.gasPrice&&("bigint"!=typeof k.maxFeePerGas||"bigint"!=typeof k.maxPriorityFeePerGas)||S.includes("gas")&&"bigint"!=typeof k.gas)?await (0,d.getAction)(e,x,"fillTransaction")({...k,nonce:C}).then(t=>{let{chainId:r,from:n,gas:i,gasPrice:a,nonce:s,maxFeePerBlobGas:o,maxFeePerGas:l,maxPriorityFeePerGas:c,type:u,...d}=t.transaction;return B.set(e.uid,!0),{...k,...n?{from:n}:{},...u?{type:u}:{},...void 0!==r?{chainId:r}:{},...void 0!==i?{gas:i}:{},...void 0!==a?{gasPrice:a}:{},...void 0!==s?{nonce:s}:{},...void 0!==o?{maxFeePerBlobGas:o}:{},...void 0!==l?{maxFeePerGas:l}:{},...void 0!==c?{maxPriorityFeePerGas:c}:{},..."nonceKey"in d&&void 0!==d.nonceKey?{nonceKey:d.nonceKey}:{}}}).catch(t=>{var r;return"TransactionExecutionError"!==t.name||(null==(r=t.walk)?void 0:r.call(t,e=>"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name))&&B.set(e.uid,!1),
1k}):k;null!=C||(C=U.nonce);let{blobs:L,gas:M,kzg:V,type:O}=k={...U,...H?{from:null==H?void 0:H.address}:{},...C?{nonce:C}:{}};async function D(){return T||(T=await (0,d.getAction)(e,i.getBlock,"getBlock")({blockTag:"latest"}))}if((null==N?void 0:N.fn)&&(null==(b=N.runAt)?void 0:b.includes("beforeFillParameters"))&&(k=await N.fn(k,{phase:"beforeFillParameters"})),S.includes("nonce")&&void 0===C&&H&&!G&&(k.nonce=await (0,d.getAction)(e,a.getTransactionCount,"getTransactionCount")({address:H.address,blockTag:"pending"})),(S.includes("blobVersionedHashes")||S.includes("sidecars"))&&L&&V){let e=(0,o.blobsToCommitments)({blobs:L,kzg:V});if(S.includes("blobVersionedHashes")){let t=(0,c.commitmentsToVersionedHashes)({commitments:e,to:"hex"});k.blobVersionedHashes=t}if(S.includes("sidecars")){let t=(0,l.blobsToProofs)({blobs:L,commitments:e,kzg:V}),r=(0,u.toBlobSidecars)({blobs:L,commitments:e,proofs:t,to:"hex"});k.sidecars=r}}if(S.includes("chainId")&&(k.chainId=await R()),(S.includes("fees")||S.includes("type"))&&void 0===O)try{k.type=(0,p.getTransactionType)(k)}catch(r){let t=P.get(e.uid);if(void 0===t){let r=await D();t="bigint"==typeof(null==r?void 0:r.baseFeePerGas),P.set(e.uid,t)}k.type=t?"eip1559":"legacy"}if(S.includes("fees"))if("legacy"!==k.type&&"eip2930"!==k.type){if(void 0===k.maxFeePerGas||void 0===k.maxPriorityFeePerGas){let t=await D(),{maxFeePerGas:n,maxPriorityFeePerGas:i}=await (0,r.internal_estimateFeesPerGas)(e,{block:t,chain:z,request:k});if(void 0===k.maxPriorityFeePerGas&&k.maxFeePerGas&&k.maxFeePerGas<i)throw new s.MaxFeePerGasTooLowError({maxPriorityFeePerGas:i});k.maxPriorityFeePerGas=i,k.maxFeePerGas=n}}else{if(void 0!==k.maxFeePerGas||void 0!==k.maxPriorityFeePerGas)throw new s.Eip1559FeesNotSupportedError;if(void 0===k.gasPrice){let t=await D(),{gasPrice:n}=await (0,r.internal_estimateFeesPerGas)(e,{block:t,chain:z,request:k,type:"legacy"});k.gasPrice=n}}return S.includes("gas")&&void 0===M&&(k.gas=await (0,d.getAction)(e,n.estimateGas,"estimateGas")({...k,account:H,prepare:(null==H?void 0:H.type)==="local"?[]:["blobVersionedHashes"]})),(null==N?void 0:N.fn)&&(null==(y=N.runAt)?void 0:y.includes("afterFillParameters"))&&(k=await N.fn(k,{phase:"afterFillParameters"})),(0,m.assertRequest)(k),delete k.parameters,k}},156013,e=>{"use strict";e.s(["estimateGas",()=>d]);var t=e.i(401036),r=e.i(219857),n=e.i(413547),i=e.i(654196),a=e.i(766333),s=e.i(17776),o=e.i(380351),l=e.i(473836),c=e.i(688946),u=e.i(104014);async function d(e,d){let{account:f=e.account,prepare:m=!0}=d,p=f?(0,t.parseAccount)(f):void 0,h=Array.isArray(m)?m:(null==p?void 0:p.type)!=="local"?["blobVersionedHashes"]:void 0;try{var b,y,g,v;let t=await (async()=>d.to?d.to:d.authorizationList&&d.authorizationList.length>0?await (0,n.recoverAuthorizationAddress)({authorization:d.authorizationList[0]}).catch(()=>{throw new r.BaseError("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:a,authorizationList:f,blobs:x,blobVersionedHashes:w,blockNumber:P,blockTag:B,data:E,gas:I,gasPrice:A,maxFeePerBlobGas:T,maxFeePerGas:k,maxPriorityFeePerGas:F,nonce:z,value:G,stateOverride:S,...N}=m?await (0,u.prepareTransactionRequest)(e,{...d,parameters:h,to:t}):d;if(I&&d.gas!==I)return I;let R=("bigint"==typeof P?(0,i.numberToHex)(P):void 0)||B,H=(0,l.serializeStateOverride)(S);(0,c.assertRequest)(d);let C=null==(g=e.chain)||null==(y=g.formatters)||null==(b=y.transactionRequest)?void 0:b.format,U=(C||o.formatTransactionRequest)({...(0,s.extract)(N,{format:C}),account:p,accessList:a,authorizationList:f,blobs:x,blobVersionedHashes:w,data:E,gasPrice:A,maxFeePerBlobGas:T,maxFeePerGas:k,maxPriorityFeePerGas:F,nonce:z,to:t,value:G},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:H?[U,null!=(v=null!=R?R:e.experimental_blockTag)?v:"latest",H]:R?[U,R]:[U]}))}catch(t){throw(0,a.getEstimateGasError)(t,{...d,account:p,chain:e.chain})}}},81545,e=>{"use strict";e.s(["getCache",()=>n,"withCache",()=>i]);let t=new Map,r=new Map;function n(e){let n=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),i=n(e,t),a=n(e,r);return{clear:()=>{i.clear(),a.clear()},promise:i,response:a}}async function i(e,t){let{cacheKey:r,cacheTime:i=1/0}=t,a=n(r),s=a.response.get();if(s&&i>0&&Date.now()-s.created.getTime()<i)return s.data;let o=a.promise.get();o||(o=e(),a.promise.set(o));try{let e=await o;return a.response.set({created:new Date,data:e}),e}finally{a.promise.clear()}}},532676,e=>{"use strict";e.s(["getCode",()=>r]);var t=e.i(654196);async function r(e,r){let{address:n,blockNumber:i,blockTag:a="latest"}=r,s=void 0!==i?(0,t.numberToHex)(i):void 0,o=await e.request({method:"eth_getCode",params:[n,s||a]},{dedupe:!!s});if("0x"!==o)return o}},242403,e=>{"use strict";e.s(["Eip712DomainNotFoundError",()=>r]);var t=e.i(219857);class r extends t.BaseError{constructor({address:e}){super('No EIP-712 domain found on contract "'.concat(e,'".'),{metaMessages:["Ensure that:",'- The contract is deployed at the address "'.concat(e,'".'),"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}},680599,e=>{"use strict";e.s(["getEip712Domain",()=>i]);var t=e.i(242403),r=e.i(331119),n=e.i(958815);async function i(e,i){let{address:s,factory:o,factoryData:l}=i;try{let[t,i,c,u,d,f,m]=await (0,r.getAction)(e,n.readContract,"readContract")({abi:a,address:s,functionName:"eip712Domain",factory:o,factoryData:l});return{domain:{name:i,version:c,chainId:Number(u),verifyingContract:d,salt:f},extensions:m,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new t.Eip712DomainNotFoundError({address:s});throw e}}let a=[{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"}]},492295,e=>{"use strict";e.s(["keccak256",()=>a,"sha256",()=>s,"validate",()=>o]),e.i(70492);var t=e.i(626014),r=e.i(403893),n=e.i(733782),i=e.i(267968);function a(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{as:a="string"==typeof e?"Hex":"Bytes"}=r,s=(0,t.keccak_256)(n.from(e));return"Bytes"===a?s:i.fromBytes(s)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{as:a="string"==typeof e?"Hex":"Bytes"}=t,s=(0,r.sha256)(n.from(e));return"Bytes"===a?s:i.fromBytes(s)}function o(e){return i.validate(e)&&32===i.size(e)}},98710,e=>{"use strict";e.s(["checksum",()=>r],98710);class t extends Map{get(e){let 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){let e=this.keys().next().value;e&&this.delete(e)}return this}constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}}let r={checksum:new t(8192)}.checksum},971568,359202,e=>{"use strict";e.s(["assert",()=>v,"checksum",()=>x,"fromPublicKey",()=>w,"isEqual",()=>P,"validate",()=>B],971568);var t=e.i(733782),r=e.i(98710),n=e.i(690601),i=e.i(492295);e.s(["from",()=>c,"toBytes",()=>d,"toHex",()=>f],359202);var a=n,s=e.i(267968),o=e.i(53822);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{compressed:r}=t,{prefix:n,x:i,y:a}=e;if(!1===r||"bigint"==typeof i&&"bigint"==typeof a){if(4!==n)throw new p({prefix:n,cause:new b});return}if(!0===r||"bigint"==typeof i&&void 0===a){if(3!==n&&2!==n)throw new p({prefix:n,cause:new h});return}
1throw new m({publicKey:e})}function c(e){let r=(()=>{if(s.validate(e))return u(e);if(t.validate(e)){var r;return r=e,u(s.fromBytes(r))}let{prefix:n,x:i,y:a}=e;return"bigint"==typeof i&&"bigint"==typeof a?{prefix:null!=n?n:4,x:i,y:a}:{prefix:n,x:i}})();return l(r),r}function u(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new y({publicKey:e});if(130===e.length)return{prefix:4,x:BigInt(s.slice(e,0,32)),y:BigInt(s.slice(e,32,64))};if(132===e.length){let t=Number(s.slice(e,0,1));return{prefix:t,x:BigInt(s.slice(e,1,33)),y:BigInt(s.slice(e,33,65))}}return{prefix:Number(s.slice(e,0,1)),x:BigInt(s.slice(e,1,33))}}function d(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.fromHex(f(e,r))}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(e);let{prefix:r,x:n,y:i}=e,{includePrefix:a=!0}=t;return s.concat(a?s.fromNumber(r,{size:1}):"0x",s.fromNumber(n,{size:32}),"bigint"==typeof i?s.fromNumber(i,{size:32}):"0x")}class m extends a.BaseError{constructor({publicKey:e}){super("Value `".concat(o.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"})}}class p extends a.BaseError{constructor({prefix:e,cause:t}){super('Prefix "'.concat(e,'" is invalid.'),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class h extends a.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"})}}class b extends a.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}class y extends a.BaseError{constructor({publicKey:e}){super("Value `".concat(e,"` is an invalid public key size."),{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).","Received ".concat(s.size(s.from(e))," bytes.")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}let g=/^0x[a-fA-F0-9]{40}$/;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{strict:r=!0}=t;if(!g.test(e))throw new E({address:e,cause:new I});if(r){if(e.toLowerCase()===e)return;if(x(e)!==e)throw new E({address:e,cause:new A})}}function x(e){if(r.checksum.has(e))return r.checksum.get(e);v(e,{strict:!1});let n=e.substring(2).toLowerCase(),a=i.keccak256(t.fromString(n),{as:"Bytes"}),s=n.split("");for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&a[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let o="0x".concat(s.join(""));return r.checksum.set(e,o),o}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.keccak256("0x".concat(f(e).slice(4))).substring(26);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{checksum:r=!1}=t;return(v(e),r)?x(e):e}("0x".concat(r),t)}function P(e,t){return v(e,{strict:!1}),v(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{strict:r=!0}=null!=t?t:{};try{return v(e,{strict:r}),!0}catch(e){return!1}}class E extends n.BaseError{constructor({address:e,cause:t}){super('Address "'.concat(e,'" is invalid.'),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class I extends n.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"})}}class A extends n.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}},617981,e=>{"use strict";e.s(["InvalidSelectorSizeError",()=>p,"NotFoundError",()=>m,"from",()=>l,"fromAbi",()=>c,"getSelector",()=>u],617981);var t=e.i(622649),r=e.i(770499),n=e.i(690601),i=e.i(492295),a=e.i(267968),s=e.i(971568);function o(e){let t=!0,r="",i=0,a="",s=!1;for(let n=0;n<e.length;n++){let o=e[n];if(["(",")",","].includes(o)&&(t=!0),"("===o&&i++,")"===o&&i--,t){if(0===i){if(" "===o&&["event","function","error",""].includes(a))a="";else if(a+=o,")"===o){s=!0;break}continue}if(" "===o){","!==e[n-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}a+=o,r+=o}}if(!s)throw new n.BaseError("Unable to normalize signature.");return a}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{prepare:n=!0}=t,i=Array.isArray(e)||"string"==typeof e?r.parseAbiItem(e):e;return{...i,...n?{hash:d(i)}:{}}}function c(e,t,r){let n,{args:i=[],prepare:o=!0}=null!=r?r:{},l=a.validate(t,{strict:!1}),c=e.filter(e=>l?"function"===e.type||"error"===e.type?u(e)===a.slice(t,0,4):"event"===e.type&&d(e)===t:"name"in e&&e.name===t);
vendor: 10,245 bytes, line 1
1if(0===c.length)throw new m({name:t});if(1===c.length)return{...c[0],...o?{hash:d(c[0])}:{}};for(let e of c){if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:d(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return s.validate(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^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(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=function e(t,r,n){for(let i in t){let a=t[i],o=r[i];if("tuple"===a.type&&"tuple"===o.type&&"components"in a&&"components"in o)return e(a.components,o.components,n[i]);let l=[a.type,o.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&s.validate(n[i],{strict:!1}))return l}}(e.inputs,n.inputs,i);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}}let p=(()=>{if(n)return n;let[e,...t]=c;return{...e,overloads:t}})();if(!p)throw new m({name:t});return{...p,...o?{hash:d(p)}:{}}}function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=(()=>{if(Array.isArray(t[0])){let[e,r]=t;return c(e,r)}return t[0]})();return a.slice(d(n),0,4)}function d(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];let s=(()=>{if(Array.isArray(r[0])){let[e,t]=r;return c(e,t)}return r[0]})();return"string"!=typeof s&&"hash"in s&&s.hash?s.hash:i.keccak256(a.fromString(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];let i=(()=>{if(Array.isArray(r[0])){let[e,t]=r;return c(e,t)}return r[0]})();return o("string"==typeof i?i:t.formatAbiItem(i))}(s)))}class f extends n.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:["`".concat(e.type,"` in `").concat(o(t.formatAbiItem(e.abiItem)),"`, and"),"`".concat(r.type,"` in `").concat(o(t.formatAbiItem(r.abiItem)),"`"),"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class m extends n.BaseError{constructor({name:e,data:t,type:r="item"}){super("ABI ".concat(r).concat(e?' with name "'.concat(e,'"'):t?' with data "'.concat(t,'"'):""," not found.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}class p extends n.BaseError{constructor({data:e}){super("Selector size is invalid. Expected 4 bytes. Received ".concat(a.size(e),' bytes ("').concat(e,'").')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}},613542,295361,862497,e=>{"use strict";e.s(["ArrayLengthMismatchError",()=>A,"BytesSizeMismatchError",()=>T,"InvalidArrayError",()=>F,"InvalidTypeError",()=>z,"decode",()=>x,"encode",()=>w,"from",()=>B],613542);var t=e.i(438863),r=e.i(389822),n=e.i(971568),i=e.i(733782),a=e.i(690601),s=e.i(267968);e.s(["arrayRegex",()=>o,"bytesRegex",()=>l,"integerRegex",()=>c,"maxUint256",()=>u],295361);let o=/^(.*)\[([0-9]*)\]$/,l=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,c=/^(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)?$/,u=2n**256n-1n;function d(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=s.size(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:l}=e[a];o?(r.push(s.fromNumber(t+i,{size:32})),n.push(l),i+=s.size(l)):r.push(l)}return s.concat(...r,...n)}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function m(e){var t;let{type:r}=e;if("string"===r||"bytes"===r||r.endsWith("[]"))return!0;if("tuple"===r)return null==(t=e.components)?void 0:t.some(m);let n=f(e.type);return!!(n&&m({...e,type:n[1]}))}e.s(["create",()=>b],862497);var p=a;let h={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new v({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new g({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new y({offset:e});let 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 y({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=null!=e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=null!=t?t:this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=null!=e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=null!=e?e:this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=null!=e?e:this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=null!=e?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();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=null!=t?t:e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function b(e){let{recursiveReadLimit:t=8192}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.create(h);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}class y extends p.BaseError{constructor({offset:e}){super("Offset `".concat(e,"` cannot be negative.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class g extends p.BaseError{constructor({length:e,position:t}){super("Position `".concat(t,"` is out of bounds (`0 < position < ").concat(e,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class v extends p.BaseError{constructor({count:e,limit:t}){super("Recursive read limit of `".concat(t,"` exceeded (recursive read count: `").concat(e,"`).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function x(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{as:a="Array",checksumAddress:o=!1}=r,l="string"==typeof t?i.fromHex(t):t,c=b(l);if(0===i.size(l)&&e.length>0)throw new I;if(i.size(l)&&32>i.size(l))throw new E({data:"string"==typeof t?t:s.fromBytes(t),parameters:e,size:i.size(l)});let u=0,d="Array"===a?[]:{};for(let t=0;t<e.length;++t){var p;let r=e[t];c.setPosition(u);let[l,h]=function e(t,r,a){let{checksumAddress:o,staticPosition:l}=a,c=f(r.type);if(c){let[n,a]=c;return function(t,r,n){let{checksumAddress:a,length:s,staticPosition:o}=n;if(!s){let n=o+i.toNumber(t.readBytes(32)),s=n+32;t.setPosition(n);let l=i.toNumber(t.readBytes(32)),c=m(r),u=0,d=[];for(let n=0;n<l;++n){t.setPosition(s+(c?32*n:u));let[i,o]=e(t,r,{checksumAddress:a,staticPosition:s});u+=o,d.push(i)}return t.setPosition(o+32),[d,32]}if(m(r)){let n=o+i.toNumber(t.readBytes(32)),l=[];for(let i=0;i<s;++i){t.setPosition(n+32*i);let[s]=e(t,r,{checksumAddress:a,staticPosition:n});l.push(s)}return t.setPosition(o+32),[l,32]}let l=0,c=[];for(let n=0;n<s;++n){let[n,i]=e(t,r,{checksumAddress:a,staticPosition:o+l});l+=i,c.push(n)}return[c,l]}(t,{...r,type:a},{checksumAddress:o,length:n,staticPosition:l})}if("tuple"===r.type)return function(t,r,n){let{checksumAddress:a,staticPosition:s}=n,o=0===r.components.length||r.components.some(e=>{let{name:t}=e;return!t}),l=o?[]:{},c=0;if(m(r)){let n=s+i.toNumber(t.readBytes(32));for(let i=0;i<r.components.length;++i){let s=r.components[i];t.setPosition(n+c);let[u,d]=e(t,s,{checksumAddress:a,staticPosition:n});c+=d,l[o?i:null==s?void 0:s.name]=u}return t.setPosition(s+32),[l,32]}for(let n=0;n<r.components.length;
1++n){let i=r.components[n],[u,d]=e(t,i,{checksumAddress:a,staticPosition:s});l[o?n:null==i?void 0:i.name]=u,c+=d}return[l,c]}(t,r,{checksumAddress:o,staticPosition:l});if("address"===r.type)return function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{checksum:a=!1}=r,o=e.readBytes(32);return[(t=s.fromBytes(i.slice(o,-20)),a?n.checksum(t):t),32]}(t,{checksum:o});if("bool"===r.type){var u;return u=t,[i.toBoolean(u.readBytes(32),{size:32}),32]}if(r.type.startsWith("bytes"))return function(e,t,r){let{staticPosition:n}=r,[a,o]=t.type.split("bytes");if(!o){let t=i.toNumber(e.readBytes(32));e.setPosition(n+t);let r=i.toNumber(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let a=e.readBytes(r);return e.setPosition(n+32),[s.fromBytes(a),32]}return[s.fromBytes(e.readBytes(Number.parseInt(o,10),32)),32]}(t,r,{staticPosition:l});if(r.type.startsWith("uint")||r.type.startsWith("int")){var d=t,p=r;let e=p.type.startsWith("int"),n=Number.parseInt(p.type.split("int")[1]||"256",10),a=d.readBytes(32);return[n>48?i.toBigInt(a,{signed:e}):i.toNumber(a,{signed:e}),32]}if("string"===r.type)return function(e,t){let{staticPosition:r}=t,n=i.toNumber(e.readBytes(32));e.setPosition(r+n);let a=i.toNumber(e.readBytes(32));if(0===a)return e.setPosition(r+32),["",32];let s=e.readBytes(a,32),o=i.toString(i.trimLeft(s));return e.setPosition(r+32),[o,32]}(t,{staticPosition:l});throw new z(r.type)}(c,r,{checksumAddress:o,staticPosition:0});u+=h,"Array"===a?d.push(l):d[null!=(p=r.name)?p:t]=l}return d}function w(e,t,r){let{checksumAddress:i=!1}=null!=r?r:{};if(e.length!==t.length)throw new k({expectedLength:e.length,givenLength:t.length});let o=d(function(e){let{checksumAddress:t,parameters:r,values:i}=e,o=[];for(let e=0;e<r.length;e++)o.push(function e(t){let{checksumAddress:r=!1,parameter:i,value:o}=t,l=f(i.type);if(l){let[t,n]=l;return function(t,r){let{checksumAddress:n,length:i,parameter:a}=r,o=null===i;if(!Array.isArray(t))throw new F(t);if(!o&&t.length!==i)throw new A({expectedLength:i,givenLength:t.length,type:"".concat(a.type,"[").concat(i,"]")});let l=!1,c=[];for(let r=0;r<t.length;r++){let i=e({checksumAddress:n,parameter:a,value:t[r]});i.dynamic&&(l=!0),c.push(i)}if(o||l){let e=d(c);if(o){let t=s.fromNumber(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?s.concat(t,e):t}}if(l)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:s.concat(...c.map(e=>{let{encoded:t}=e;return t}))}}(o,{checksumAddress:r,length:t,parameter:{...i,type:n}})}if("tuple"===i.type)return function(t,r){let{checksumAddress:n,parameter:i}=r,a=!1,o=[];for(let r=0;r<i.components.length;r++){let s=i.components[r],l=Array.isArray(t)?r:s.name,c=e({checksumAddress:n,parameter:s,value:t[l]});o.push(c),c.dynamic&&(a=!0)}return{dynamic:a,encoded:a?d(o):s.concat(...o.map(e=>{let{encoded:t}=e;return t}))}}(o,{checksumAddress:r,parameter:i});if("address"===i.type){var u,m=o,p={checksum:r};let{checksum:e=!1}=p;return n.assert(m,{strict:e}),{dynamic:!1,encoded:s.padLeft(m.toLowerCase())}}if("bool"===i.type){var h=o;if("boolean"!=typeof h)throw new a.BaseError('Invalid boolean value: "'.concat(h,'" (type: ').concat(typeof h,"). Expected: `true` or `false`."));return{dynamic:!1,encoded:s.padLeft(s.fromBoolean(h))}}if(i.type.startsWith("uint")||i.type.startsWith("int")){let e=i.type.startsWith("int"),[,,t="256"]=null!=(u=c.exec(i.type))?u:[];return function(e,t){let{signed:r,size:n}=t;if("number"==typeof n){let t=2n**(BigInt(n)-(r?1n:0n))-1n,i=r?-t-1n:0n;if(e>t||e<i)throw new s.IntegerOutOfRangeError({max:t.toString(),min:i.toString(),signed:r,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:s.fromNumber(e,{size:32,signed:r})}}(o,{signed:e,size:Number(t)})}if(i.type.startsWith("bytes"))return function(e,t){let{type:r}=t,[,n]=r.split("bytes"),i=s.size(e);if(!n){let t=e;return i%32!=0&&(t=s.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:s.concat(s.padLeft(s.fromNumber(i,{size:32})),t)}}if(i!==Number.parseInt(n,10))throw new T({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:s.padRight(e)}}(o,{type:i.type});if("string"===i.type){var b=o;let e=s.fromString(b),t=Math.ceil(s.size(e)/32),r=[];for(let n=0;n<t;n++)r.push(s.padRight(s.slice(e,32*n,(n+1)*32)));return{dynamic:!0,encoded:s.concat(s.padRight(s.fromNumber(s.size(e),{size:32})),...r)}}throw new z(i.type)}({checksumAddress:t,parameter:r[e],value:i[e]}));return o}({checksumAddress:i,parameters:e,values:t}));return 0===o.length?"0x":o}function P(e,t){if(e.length!==t.length)throw new k({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n];
1r.push(P.encode(i,a))}return s.concat(...r)}function B(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?r.parseAbiParameters(e):e}(P||(P={})).encode=function e(t,r){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("address"===t)return n.assert(r),s.padLeft(r.toLowerCase(),32*!!i);if("string"===t)return s.fromString(r);if("bytes"===t)return r;if("bool"===t)return s.padLeft(s.fromBoolean(r),i?32:1);let a=t.match(c);if(a){let[e,t,n="256"]=a,o=Number.parseInt(n,10)/8;return s.fromNumber(r,{size:i?32:o,signed:"int"===t})}let u=t.match(l);if(u){let[e,t]=u;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new T({expectedSize:Number.parseInt(t,10),value:r});return s.padRight(r,32*!!i)}let d=t.match(o);if(d&&Array.isArray(r)){let[t,n]=d,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":s.concat(...i)}throw new z(t)};class E extends a.BaseError{constructor({data:e,parameters:r,size:n}){super("Data size of ".concat(n," bytes is too small for given parameters."),{metaMessages:["Params: (".concat(t.formatAbiParameters(r),")"),"Data:   ".concat(e," (").concat(n," bytes)")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class I extends a.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class A extends a.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super("Array length mismatch for type `".concat(r,"`. Expected: `").concat(e,"`. Given: `").concat(t,"`.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class T extends a.BaseError{constructor({expectedSize:e,value:t}){super('Size of bytes "'.concat(t,'" (bytes').concat(s.size(t),") does not match expected size (bytes").concat(e,").")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class k extends a.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding parameters/values length mismatch.","Expected length (parameters): ".concat(e),"Given length (values): ".concat(t)].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class F extends a.BaseError{constructor(e){super("Value `".concat(e,"` is not a valid array.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class z extends a.BaseError{constructor(e){super("Type `".concat(e,"` is not a valid ABI Type.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}},824765,498645,488558,502651,556036,320680,546487,231883,16630,e=>{"use strict";e.s(["SignatureErc6492",()=>m],824765),e.s(["InvalidWrappedSignatureError",()=>f,"assert",()=>o,"from",()=>l,"magicBytes",()=>i,"universalSignatureValidatorAbi",()=>s,"universalSignatureValidatorBytecode",()=>a,"unwrap",()=>c,"validate",()=>d,"wrap",()=>u],899379);var t=e.i(613542),r=e.i(690601),n=e.i(267968);let i="0x6492649264926492649264926492649264926492649264926492649264926492",a="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b
16001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
1603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",s=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function o(e){if(n.slice(e,-32)!==i)throw new f(e)}function l(e){return"string"==typeof e?c(e):e}function c(e){o(e);let[r,n,i]=t.decode(t.from("address, bytes, bytes"),e);return{data:n,signature:i,to:r}}function u(e){let{data:r,signature:a,to:s}=e;return n.concat(t.encode(t.from("address, bytes, bytes"),[s,r,a]),i)}function d(e){try{return o(e),!0}catch(e){return!1}}class f extends r.BaseError{constructor(e){super("Value `".concat(e,"` is an invalid ERC-6492 wrapped signature.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}var m=e.i(899379);e.s(["SignatureErc8010",()=>el],546487),e.s(["InvalidWrappedSignatureError",()=>eo,"assert",()=>er,"from",()=>en,"magicBytes",()=>ee,"suffixParameters",()=>et,"unwrap",()=>ei,"validate",()=>es,"wrap",()=>ea],539979),e.s(["from",()=>D,"fromRpcList",()=>q,"getSignPayload",()=>_,"toRpcList",()=>W],502651);var p=e.i(492295);e.s(["fromHex",()=>v,"toHex",()=>y],498645);var h=e.i(733782),b=e.i(862497);function y(e){var t=e,r="Hex";let i=r,a=(()=>
1{if("string"==typeof t){if(t.length>3&&t.length%2!=0)throw new n.InvalidLengthError(t);return h.fromHex(t)}return t})();return function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Hex";if(0===t.bytes.length)return"Hex"===r?n.fromBytes(t.bytes):t.bytes;let i=t.readByte();if(i<128&&t.decrementPosition(1),i<192){let e=g(t,i,128),a=t.readBytes(e);return"Hex"===r?n.fromBytes(a):a}let a=g(t,i,192);var s=t,o=a,l=r;let c=s.position,u=[];for(;s.position-c<o;)u.push(e(s,l));return u}(b.create(a,{recursiveReadLimit:1/0}),i)}function g(e,t,n){if(128===n&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new r.BaseError("Invalid RLP prefix")}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{as:r="Hex"}=t;return function(e,t){let{as:r}=t,i=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=x(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(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)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?h.fromHex(e):e,r=x(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||(t.length<=55?e.pushByte(128+t.length):(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)}}}(t)}(e),a=b.create(new Uint8Array(i.length));return(i.encode(a),"Hex"===r)?n.fromBytes(a.bytes):a.bytes}(e,{as:r})}function x(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=0xffffff)return 3;if(e<=0xffffffff)return 4;throw new r.BaseError("Length is too large.")}e.s(["assert",()=>I,"extract",()=>T,"from",()=>k,"fromHex",()=>A,"fromRpc",()=>F,"fromTuple",()=>z,"toHex",()=>G,"toRpc",()=>S,"toTuple",()=>N,"yParityToV",()=>H],488558);var w=e.i(300059),P=r,B=e.i(53822),E=e.i(295361);function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new U({signature:e});if(e.r<0n||e.r>E.maxUint256)throw new L({value:e.r});if(e.s<0n||e.s>E.maxUint256)throw new M({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new V({value:e.yParity})}function A(e){if(130!==e.length&&132!==e.length)throw new C({signature:e});let t=BigInt(n.slice(e,0,32)),r=BigInt(n.slice(e,32,64)),i=(()=>{let t=Number("0x".concat(e.slice(130)));if(!Number.isNaN(t))try{return R(t)}catch(e){throw new V({value:t})}})();return void 0===i?{r:t,s:r}:{r:t,s:r,yParity:i}}function T(e){if(void 0!==e.r&&void 0!==e.s)return k(e)}function k(e){let t=(()=>{var t;if("string"==typeof e)return A(e);if(e instanceof Uint8Array)return A(n.fromBytes(e));return"string"==typeof e.r?F(e):e.v?{r:(t=e).r,s:t.s,yParity:R(t.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}}})();return I(t),t}function F(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=R(t)),"number"!=typeof r)throw new V({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function z(e){let[t,r,n]=e;return k({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})}function G(e){I(e);let t=e.r,r=e.s;return n.concat(n.fromNumber(t,{size:32}),n.fromNumber(r,{size:32}),"number"==typeof e.yParity?n.fromNumber(H(e.yParity),{size:1}):"0x")}function S(e){let{r:t,s:r,yParity:i}=e;return{r:n.fromNumber(t,{size:32}),s:n.fromNumber(r,{size:32}),yParity:0===i?"0x0":"0x1"}}function N(e){let{r:t,s:r,yParity:i}=e;return[i?"0x01":"0x",0n===t?"0x":n.trimLeft(n.fromNumber(t)),0n===r?"0x":n.trimLeft(n.fromNumber(r))]}function R(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new O({value:e})}function H(e){if(0===e)return 27;if(1===e)return 28;throw new V({value:e})}class C extends P.BaseError{constructor({signature:e}
1){super("Value `".concat(e,"` is an invalid signature size."),{metaMessages:["Expected: 64 bytes or 65 bytes.","Received ".concat(n.size(n.from(e))," bytes.")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class U extends P.BaseError{constructor({signature:e}){super("Signature `".concat(B.stringify(e),"` is missing either an `r`, `s`, or `yParity` property.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class L extends P.BaseError{constructor({value:e}){super("Value `".concat(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"})}}class M extends P.BaseError{constructor({value:e}){super("Value `".concat(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"})}}class V extends P.BaseError{constructor({value:e}){super("Value `".concat(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"})}}class O extends P.BaseError{constructor({value:e}){super("Value `".concat(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"})}}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e.chainId?j(e):{...e,...t.signature}}function j(e){let{address:t,chainId:r,nonce:n}=e,i=T(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...i}}function q(e){return e.map(j)}function _(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presign:r}=t;return p.keccak256(n.concat("0x05",v(function(e){let{address:t,chainId:r,nonce:i}=e,a=T(e);return[r?n.fromNumber(r):"0x",t,i?n.fromNumber(i):"0x",...a?N(a):[]]}(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}(e,{presign:!0})}function K(e){let{address:t,chainId:r,nonce:i,...a}=e;return{address:t,chainId:n.fromNumber(r),nonce:n.fromNumber(i),...S(a)}}function W(e){return e.map(K)}var $=r;e.s(["recoverAddress",()=>Q,"verify",()=>X],320680);var Z=e.i(971568);e.s(["extraEntropy",()=>Y],556036);let Y=!1;var J=e.i(359202);function Q(e){return Z.fromPublicKey(function(e){let{payload:t,signature:r}=e,{r:i,s:a,yParity:s}=r,o=new w.secp256k1.Signature(BigInt(i),BigInt(a)).addRecoveryBit(s).recoverPublicKey(n.from(t).substring(2));return J.from(o)}(e))}function X(e){let{address:t,hash:r,payload:n,publicKey:i,signature:a}=e;return t?Z.isEqual(t,Q({payload:n,signature:a})):w.secp256k1.verify(a,h.from(n),J.toBytes(i),...r?[{prehash:!0,lowS:!0}]:[])}w.secp256k1;let ee="0x8010801080108010801080108010801080108010801080108010801080108010",et=t.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function er(e){if("string"==typeof e){if(n.slice(e,-32)!==ee)throw new eo(e)}else I(e.authorization)}function en(e){return"string"==typeof e?ei(e):e}function ei(e){er(e);let r=n.toNumber(n.slice(e,-64,-32)),i=n.slice(e,-r-64,-64),a=n.slice(e,0,-r-64),[s,o,l]=t.decode(et,i);return{authorization:D({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:a,...l&&"0x"!==l?{data:l,to:o}:{}}}function ea(e){var r;let{data:i,signature:a}=e;er(e);let s=Q({payload:_(e.authorization),signature:k(e.authorization)}),o=t.encode(et,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},null!=(r=e.to)?r:s,null!=i?i:"0x"]),l=n.fromNumber(n.size(o),{size:32});return n.concat(a,o,l,ee)}function es(e){try{return er(e),!0}catch(e){return!1}}class eo extends $.BaseError{constructor(e){super("Value `".concat(e,"` is an invalid ERC-8010 wrapped signature.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}var el=e.i(539979);e.s(["verifyAuthorization",()=>ef],231883);var ec=e.i(807355),eu=e.i(780909),ed=e.i(413547);async function ef(e){let{address:t,authorization:r,signature:n}=e;return(0,eu.isAddressEqual)((0,ec.getAddress)(t),await (0,ed.recoverAuthorizationAddress)({authorization:r,signature:n}))}e.s(["serializeSignature",()=>eh],16630);var em=e.i(478226),ep=e.i(947233);function eh(e){let{r:t,s:r,to:n="hex",v:i,yParity:a}=e,s=(()=>
1{if(0===a||1===a)return a;if(i&&(27n===i||28n===i||i>=35n))return+(i%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),o="0x".concat(new w.secp256k1.Signature((0,em.hexToBigInt)(t),(0,em.hexToBigInt)(r)).toCompactHex()).concat(0===s?"1b":"1c");return"hex"===n?o:(0,ep.hexToBytes)(o)}},647657,e=>{"use strict";e.s(["verifyHash",()=>w]);var t=e.i(824765),r=e.i(546487),n=e.i(671575),i=e.i(523597),a=e.i(49491),s=e.i(568625),o=e.i(700300),l=e.i(807355),c=e.i(780909),u=e.i(231883),d=e.i(474730),f=e.i(776539),m=e.i(478226),p=e.i(654196),h=e.i(331119),b=e.i(919843),y=e.i(16630),g=e.i(400903),v=e.i(532676),x=e.i(958815);async function w(e,t){var n,i,a,s,o,u;let{address:d,chain:m=e.chain,hash:h,erc6492VerifierAddress:g=null!=(a=t.universalSignatureVerifierAddress)?a:null==m||null==(u=m.contracts)||null==(o=u.erc6492Verifier)?void 0:o.address,multicallAddress:v=null!=(s=t.multicallAddress)?s:null==m||null==(i=m.contracts)||null==(n=i.multicall3)?void 0:n.address}=t;if(null==m?void 0:m.verifyHash)return await m.verifyHash(e,t);let x=(()=>{let e=t.signature;return(0,f.isHex)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?(0,y.serializeSignature)(e):(0,p.bytesToHex)(e)})();try{if(r.SignatureErc8010.validate(x))return await P(e,{...t,multicallAddress:v,signature:x});return await B(e,{...t,verifierAddress:g,signature:x})}catch(e){try{if((0,c.isAddressEqual)((0,l.getAddress)(d),await (0,b.recoverAddress)({hash:h,signature:x})))return!0}catch(e){}if(e instanceof I)return!1;throw e}}async function P(e,t){var a;let{address:s,blockNumber:l,blockTag:c,hash:f,multicallAddress:m}=t,{authorization:b,data:y,signature:g,to:w}=r.SignatureErc8010.unwrap(t.signature);if(await (0,v.getCode)(e,{address:s,blockNumber:l,blockTag:c})===(0,d.concatHex)(["0xef0100",b.address]))return await E(e,{address:s,blockNumber:l,blockTag:c,hash:f,signature:g});let P={address:b.address,chainId:Number(b.chainId),nonce:Number(b.nonce),r:(0,p.numberToHex)(b.r,{size:32}),s:(0,p.numberToHex)(b.s,{size:32}),yParity:b.yParity};if(!await (0,u.verifyAuthorization)({address:s,authorization:P}))throw new I;let B=await (0,h.getAction)(e,x.readContract,"readContract")({...m?{address:m}:{code:i.multicall3Bytecode},authorizationList:[P],abi:n.multicall3Abi,blockNumber:l,blockTag:"pending",functionName:"aggregate3",args:[[...y?[{allowFailure:!0,target:null!=w?w:s,callData:y}]:[],{allowFailure:!0,target:s,callData:(0,o.encodeFunctionData)({abi:n.erc1271Abi,functionName:"isValidSignature",args:[f,g]})}]]}),A=null==(a=B[B.length-1])?void 0:a.returnData;if(null==A?void 0:A.startsWith("0x1626ba7e"))return!0;throw new I}async function B(e,r){let{address:l,factory:c,factoryData:u,hash:d,signature:f,verifierAddress:p,...b}=r,y=await (async()=>!c&&!u||t.SignatureErc6492.validate(f)?f:t.SignatureErc6492.wrap({data:u,signature:f,to:c}))(),v=p?{to:p,data:(0,o.encodeFunctionData)({abi:n.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[l,d,y]}),...b}:{data:(0,s.encodeDeployData)({abi:n.erc6492SignatureValidatorAbi,args:[l,d,y],bytecode:i.erc6492SignatureValidatorByteCode}),...b},{data:x}=await (0,h.getAction)(e,g.call,"call")(v).catch(e=>{if(e instanceof a.CallExecutionError)throw new I;throw e});if((0,m.hexToBool)(null!=x?x:"0x0"))return!0;throw new I}async function E(e,t){let{address:r,blockNumber:i,blockTag:s,hash:o,signature:l}=t;if((await (0,h.getAction)(e,x.readContract,"readContract")({address:r,abi:n.erc1271Abi,args:[o,l],blockNumber:i,blockTag:s,functionName:"isValidSignature"}).catch(e=>{if(e instanceof a.ContractFunctionExecutionError)throw new I;throw e})).startsWith("0x1626ba7e"))return!0;throw new I}class I extends Error{}},660085,289169,e=>{"use strict";e.s(["observe",()=>i],660085);let t=new Map,r=new Map,n=0;function i(e,i,a){let s=++n,o=()=>t.get(e)||[],l=()=>{let n=o();if(!n.some(e=>e.id===s))return;let i=r.get(e);if(1===n.length&&i){let e=i();e instanceof Promise&&e.catch(()=>{})}let a=o();t.set(e,a.filter(e=>e.id!==s))},c=o();if(t.set(e,[...c,{id:s,fns:i}]),c&&c.length>0)return l;let u={};for(let e in i)u[e]=function(){for(var t,r,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];let s=o();if(0!==s.length)for(let n of s)null==(t=(r=n.fns)[e])||t.call(r,...i)};let d=a(u);return"function"==typeof d&&r.set(e,d),l}e.s(["poll",()=>s],289169);var a=e.i(722586);function s(e,t){let{emitOnBegin:r,initialWaitTime:n,interval:i}=t,s=!0,o=()=>s=!1;return(async()=>{var t;let l;
1r&&(l=await e({unpoll:o}));let c=null!=(t=await (null==n?void 0:n(l)))?t:i;await (0,a.wait)(c);let u=async()=>{s&&(await e({unpoll:o}),await (0,a.wait)(i),u())};u()})(),o}},440690,e=>{"use strict";async function t(e,t){let{serializedTransaction:r}=t;return e.request({method:"eth_sendRawTransaction",params:[r]},{retryCount:0})}e.s(["sendRawTransaction",()=>t])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.