PageSourceSearch

https://aerodrome.finance/assets/contracts-worker-BYaZ732j.js

js aerodrome.finance collected 2026-09-24 19:55:50 UTC 234,065 bytes, 55 lines download raw bytes

vendor: 4,189 bytes, line 1
1const Vu=Symbol("Comlink.proxy"),Xp=Symbol("Comlink.endpoint"),Zp=Symbol("Comlink.releaseProxy"),Vs=Symbol("Comlink.finalizer"),oi=Symbol("Comlink.thrown"),zu=n=>typeof n=="object"&&n!==null||typeof n=="function",Jp={canHandle:n=>zu(n)&&n[Vu],serialize(n){const{port1:i,port2:r}=new MessageChannel;return Eo(n,i),[r,[r]]},deserialize(n){return n.start(),n2(n)}},Qp={canHandle:n=>zu(n)&&oi in n,serialize({value:n}){let i;return n instanceof Error?i={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:i={isError:!1,value:n},[i,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},Gu=new Map([["proxy",Jp],["throw",Qp]]);function e2(n,i){for(const r of n)if(i===r||r==="*"||r instanceof RegExp&&r.test(i))return!0;return!1}function Eo(n,i=globalThis,r=["*"]){i.addEventListener("message",function o(c){if(!c||!c.data)return;if(!e2(r,c.origin)){console.warn(`Invalid origin '${c.origin}' for comlink proxy`);return}const{id:f,type:l,path:b}=Object.assign({path:[]},c.data),E=(c.data.argumentList||[]).map(dn);let y;try{const w=b.slice(0,-1).reduce((A,S)=>A[S],n),T=b.reduce((A,S)=>A[S],n);switch(l){case"GET":y=T;break;case"SET":w[b.slice(-1)[0]]=dn(c.data.value),y=!0;break;case"APPLY":y=T.apply(w,E);break;case"CONSTRUCT":{const A=new T(...E);y=a2(A)}break;case"ENDPOINT":{const{port1:A,port2:S}=new MessageChannel;Eo(n,S),y=o2(A,[A])}break;case"RELEASE":y=void 0;break;default:return}}catch(w){y={value:w,[oi]:0}}Promise.resolve(y).catch(w=>({value:w,[oi]:0})).then(w=>{const[T,A]=ui(w);i.postMessage(Object.assign(Object.assign({},T),{id:f}),A),l==="RELEASE"&&(i.removeEventListener("message",o),ku(i),Vs in n&&typeof n[Vs]=="function"&&n[Vs]())}).catch(w=>{const[T,A]=ui({value:new TypeError("Unserializable return value"),[oi]:0});i.postMessage(Object.assign(Object.assign({},T),{id:f}),A)})}),i.start&&i.start()}function t2(n){return n.constructor.name==="MessagePort"}function ku(n){t2(n)&&n.close()}function n2(n,i){const r=new Map;return n.addEventListener("message",function(c){const{data:f}=c;if(!f||!f.id)return;const l=r.get(f.id);if(l)try{l(f)}finally{r.delete(f.id)}}),Xs(n,r,[],i)}function j0(n){if(n)throw new Error("Proxy has been released and is not useable")}function Hu(n){return Ln(n,new Map,{type:"RELEASE"}).then(()=>{ku(n)})}const ai=new WeakMap,ci="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{const i=(ai.get(n)||0)-1;ai.set(n,i),i===0&&Hu(n)});function r2(n,i){const r=(ai.get(i)||0)+1;ai.set(i,r),ci&&ci.register(n,i,n)}function i2(n){ci&&ci.unregister(n)}function Xs(n,i,r=[],o=function(){}){let c=!1;const f=new Proxy(o,{get(l,b){if(j0(c),b===Zp)return()=>{i2(f),Hu(n),i.clear(),c=!0};if(b==="then"){if(r.length===0)return{then:()=>f};const E=Ln(n,i,{type:"GET",path:r.map(y=>y.toString())}).then(dn);return E.then.bind(E)}return Xs(n,i,[...r,b])},set(l,b,E){j0(c);const[y,w]=ui(E);return Ln(n,i,{type:"SET",path:[...r,b].map(T=>T.toString()),value:y},w).then(dn)},apply(l,b,E){j0(c);const y=r[r.length-1];if(y===Xp)return Ln(n,i,{type:"ENDPOINT"}).then(dn);if(y==="bind")return Xs(n,i,r.slice(0,-1));const[w,T]=yu(E);return Ln(n,i,{type:"APPLY",path:r.map(A=>A.toString()),argumentList:w},T).then(dn)},construct(l,b){j0(c);const[E,y]=yu(b);return Ln(n,i,{type:"CONSTRUCT",path:r.map(w=>w.toString()),argumentList:E},y).then(dn)}});return r2(f,n),f}function s2(n){return Array.prototype.concat.apply([],n)}function yu(n){const i=n.map(ui);return[i.map(r=>r[0]),s2(i.map(r=>r[1]))]}const Wu=new WeakMap;function o2(n,i){return Wu.set(n,i),n}function a2(n){return Object.assign(n,{[Vu]:!0})}function ui(n){for(const[i,r]of Gu)if(r.canHandle(n)){const[o,c]=r.serialize(n);return[{type:"HANDLER",name:i,value:o},c]}return[{type:"RAW",value:n},Wu.get(n)||[]]}function dn(n){switch(n.type){case"HANDLER":return Gu.get(n.name).deserialize(n.value);case"RAW":return n.value}}function Ln(n,i,r,o){return new Promise(c=>{const f=c2();i.set(f,c),n.start&&n.start(),n.postMessage(Object.assign({id:f},r),o)})}function c2(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const Zs=[{inputs:[{components:[{name:"target",type:"address"}
1,{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"}],n4=[{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"}]}];function Nn(n,{includeName:i=!1}={}){if(n.type!=="function"&&n.type!=="event"&&n.type!=="error")throw new y2(n.type);return`${n.name}(${_o(n.inputs,{includeName:i})})`}function _o(n,{includeName:i=!1}={}){return n?n.map(r=>u2(r,{includeName:i})).join(i?", ":","):""}function u2(n,{includeName:i}){return n.type.startsWith("tuple")?`(${_o(n.components,{includeName:i})})${n.type.slice(5)}`:n.type+(i&&n.name?` ${n.name}`:"")}function Hn(n,{strict:i=!0}={}){return!n||typeof n!="string"?!1:i?/^0x[0-9a-fA-F]*$/.test(n):n.startsWith("0x")}function Ee(n){return Hn(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}const Ku="2.38.6";let zs={getDocsUrl:({docsBaseUrl:n,docsPath:i="",docsSlug:r})=>i?`${n??"https://viem.sh"}${i}${r?`#${r}`:""}`:void 0,version:`viem@${Ku}`},P=class Js extends Error{constructor(i,r={}){const o=r.cause instanceof Js?r.cause.details:r.cause?.message?r.cause.message:r.details,c=r.cause instanceof Js&&r.cause.docsPath||r.docsPath,f=zs.getDocsUrl?.({...r,docsPath:c}),l=[i||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...o?[`Details: ${o}`]:[],...zs.version?[`Version: ${zs.version}`]:[]].join(`
2`);super(l,r.cause?{cause:r.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=o,this.docsPath=c,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=i,this.version=Ku}walk(i){return Yu(this,i)}};function Yu(n,i){return i?.(n)?n:n&&typeof n=="object"&&"cause"in n&&n.cause!==void 0?Yu(n.cause,i):i?null:n}class f2 extends P{constructor({docsPath:i}){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(`
3`),{docsPath:i,name:"AbiConstructorNotFoundError"})}}class xu extends P{constructor({docsPath:i}){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(`
4`),{docsPath:i,name:"AbiConstructorParamsNotFoundError"})}}class l2 extends P{constructor({data:i,params:r,size:o}){super([`Data size of ${o} bytes is too small for given parameters.`].join(`
5`),{metaMessages:[`Params: (${_o(r,{includeName:!0})})`,`Data:   ${i} (${o} 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=i,this.params=r,this.size=o}}class di extends P{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class d2 extends P{constructor({expectedLength:i,givenLength:r,type:o}){super([`ABI encoding array length mismatch for type ${o}.`,`Expected length: ${i}`,`Given length: ${r}`].join(`
6`),{name:"AbiEncodingArrayLengthMismatchError"})}}class h2 extends P{constructor({expectedSize:i,value:r}){super(`Size of bytes "${r}" (bytes${Ee(r)}) does not match expected size (bytes${i}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class b2 extends P{constructor({expectedLength:i,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${i}`,`Given length (values): ${r}`].join(`
7`),{name:"AbiEncodingLengthMismatchError"})}}class r4 extends P{constructor(i,{docsPath:r}){super([`Arguments (\`args\`) were provided to "${i}", but "${i}" 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(`
8`),{docsPath:r,name:"AbiErrorInputsNotFoundError"})}}class i4 extends P{constructor(i,{docsPath:r}={}){super([`Error ${i?`"${i}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
9`),{docsPath:r,name:"AbiErrorNotFoundError"})}}class ju extends P{constructor(i,{docsPath:r}){super([`Encoded error signature "${i}" 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=${i}.`].join(`
10`),{docsPath:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=i}}class fi extends P{constructor(i,{docsPath:r}={}){super([`Function ${i?`"${i}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
11`),{docsPath:r,name:"AbiFunctionNotFoundError"})}}class p2 extends P{constructor(i,{docsPath:r}){super([`Function "${i}" 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(`
12`),{docsPath:r,name:"AbiFunctionOutputsNotFoundError"})}}class s4 extends P{constructor(i,{docsPath:r}){super([`Encoded function signature "${i}" 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=${i}.`].join(`
13`),{docsPath:r,name:"AbiFunctionSignatureNotFoundError"})}}class g2 extends P{constructor(i,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${i.type}\` in \`${Nn(i.abiItem)}\`, and`,`\`${r.type}\` in \`${Nn(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E2 extends P{constructor(i,{docsPath:r}){super([`Type "${i}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
14`),{docsPath:r,name:"InvalidAbiEncodingType"})}}class _2 extends P{constructor(i,{docsPath:r}){super([`Type "${i}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
15`),{docsPath:r,name:"InvalidAbiDecodingType"})}}class m2 extends P{constructor(i){super([`Value "${i}" is not a valid array.`].join(`
16`),{name:"InvalidArrayError"})}}class y2 extends P{constructor(i){super([`"${i}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
17`),{name:"InvalidDefinitionTypeError"})}}class Qe extends P{constructor({address:i}){super(`Address "${i}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class qu extends P{constructor({offset:i,position:r,size:o}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${i}" is out-of-bounds (size: ${o}).`,{name:"SliceOffsetOutOfBoundsError"})}}let Xu=class extends P{constructor({size:i,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${i}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}};class Au extends P{constructor({size:i,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} is expected to be ${r} ${o} long, but is ${i} ${o} long.`,{name:"InvalidBytesLengthError"})}}function Wn(n,{dir:i,size:r=32}={}){return typeof n=="string"?Xt(n,{dir:i,size:r}):x2(n,{dir:i,size:r})}function Xt(n,{dir:i,size:r=32}={}){if(r===null)return n;const o=n.replace("0x","");if(o.length>r*2)throw new Xu({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o[i==="right"?"padEnd":"padStart"](r*2,"0")}`}function x2(n,{dir:i,size:r=32}={}){if(r===null)return n;if(n.length>r)throw new Xu({size:n.length,targetSize:r,type:"bytes"});const o=new Uint8Array(r);for(let c=0;c<r;c++){const f=i==="right";o[f?c:r-c-1]=n[f?c:n.length-c-1]}return o}let Zu=class extends P{constructor({max:i,min:r,signed:o,size:c,value:f}){super(`Number "${f}" is not in safe ${c?`${c*8}-bit ${o?"signed":"unsigned"} `:""}integer range ${i?`(${r} to ${i})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}};class A2 extends P{constructor(i){super(`Bytes value "${i}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class w2 extends P{constructor({givenSize:i,maxSize:r}
17){super(`Size cannot exceed ${r} bytes. Given size: ${i} bytes.`,{name:"SizeOverflowError"})}}function $t(n,{dir:i="left"}={}){let r=typeof n=="string"?n.replace("0x",""):n,o=0;for(let c=0;c<r.length-1&&r[i==="left"?c:r.length-c-1].toString()==="0";c++)o++;return r=i==="left"?r.slice(o):r.slice(0,r.length-o),typeof n=="string"?(r.length===1&&i==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}function mt(n,{size:i}){if(Ee(n)>i)throw new w2({givenSize:Ee(n),maxSize:i})}function _t(n,i={}){const{signed:r}=i;i.size&&mt(n,{size:i.size});const o=BigInt(n);if(!r)return o;const c=(n.length-2)/2,f=(1n<<BigInt(c)*8n-1n)-1n;return o<=f?o:o-BigInt(`0x${"f".padStart(c*2,"f")}`)-1n}function Ir(n,i={}){return Number(_t(n,i))}const v2=Array.from({length:256},(n,i)=>i.toString(16).padStart(2,"0"));function Je(n,i={}){return typeof n=="number"||typeof n=="bigint"?L(n,i):typeof n=="string"?mo(n,i):typeof n=="boolean"?Ju(n,i):Ie(n,i)}function Ju(n,i={}){const r=`0x${Number(n)}`;return typeof i.size=="number"?(mt(r,{size:i.size}),Wn(r,{size:i.size})):r}function Ie(n,i={}){let r="";for(let c=0;c<n.length;c++)r+=v2[n[c]];const o=`0x${r}`;return typeof i.size=="number"?(mt(o,{size:i.size}),Wn(o,{dir:"right",size:i.size})):o}function L(n,i={}){const{signed:r,size:o}=i,c=BigInt(n);let f;o?r?f=(1n<<BigInt(o)*8n-1n)-1n:f=2n**(BigInt(o)*8n)-1n:typeof n=="number"&&(f=BigInt(Number.MAX_SAFE_INTEGER));const l=typeof f=="bigint"&&r?-f-1n:0;if(f&&c>f||c<l){const E=typeof n=="bigint"?"n":"";throw new Zu({max:f?`${f}${E}`:void 0,min:`${l}${E}`,signed:r,size:o,value:`${n}${E}`})}const b=`0x${(r&&c<0?(1n<<BigInt(o*8))+BigInt(c):c).toString(16)}`;return o?Wn(b,{size:o}):b}const T2=new TextEncoder;function mo(n,i={}){const r=T2.encode(n);return Ie(r,i)}const S2=new TextEncoder;function yo(n,i={}){return typeof n=="number"||typeof n=="bigint"?C2(n,i):typeof n=="boolean"?I2(n,i):Hn(n)?Jt(n,i):Qu(n,i)}function I2(n,i={}){const r=new Uint8Array(1);return r[0]=Number(n),typeof i.size=="number"?(mt(r,{size:i.size}),Wn(r,{size:i.size})):r}const Ot={zero:48,nine:57,A:65,F:70,a:97,f:102};function wu(n){if(n>=Ot.zero&&n<=Ot.nine)return n-Ot.zero;if(n>=Ot.A&&n<=Ot.F)return n-(Ot.A-10);if(n>=Ot.a&&n<=Ot.f)return n-(Ot.a-10)}function Jt(n,i={}){let r=n;i.size&&(mt(r,{size:i.size}),r=Wn(r,{dir:"right",size:i.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);const c=o.length/2,f=new Uint8Array(c);for(let l=0,b=0;l<c;l++){const E=wu(o.charCodeAt(b++)),y=wu(o.charCodeAt(b++));if(E===void 0||y===void 0)throw new P(`Invalid byte sequence ("${o[b-2]}${o[b-1]}" in "${o}").`);f[l]=E*16+y}return f}function C2(n,i){const r=L(n,i);return Jt(r)}function Qu(n,i={}){const r=S2.encode(n);return typeof i.size=="number"?(mt(r,{size:i.size}),Wn(r,{dir:"right",size:i.size})):r}const q0=BigInt(2**32-1),vu=BigInt(32);function R2(n,i=!1){return i?{h:Number(n&q0),l:Number(n>>vu&q0)}:{h:Number(n>>vu&q0)|0,l:Number(n&q0)|0}}function P2(n,i=!1){const r=n.length;let o=new Uint32Array(r),c=new Uint32Array(r);for(let f=0;f<r;f++){const{h:l,l:b}=R2(n[f],i);[o[f],c[f]]=[l,b]}return[o,c]}const D2=(n,i,r)=>n<<r|i>>>32-r,B2=(n,i,r)=>i<<r|n>>>32-r,O2=(n,i,r)=>i<<r-32|n>>>64-r,F2=(n,i,r)=>n<<r-32|i>>>64-r;function L2(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function Tu(n){if(!Number.isSafeInteger(n)||n<0)throw new Error("positive integer expected, got "+n)}function Cr(n,...i){if(!L2(n))throw new Error("Uint8Array expected");if(i.length>0&&!i.includes(n.length))throw new Error("Uint8Array expected of length "+i+", got length="+n.length)}function li(n,i=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(i&&n.finished)throw new Error("Hash#digest() has already been called")}function ef(n,i){Cr(n);const r=i.outputLen;if(n.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function $2(n){return new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4))}function Rr(...n){for(let i=0;i<n.length;i++)n[i].fill(0)}function Gs(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function Et(n,i){return n<<32-i|n>>>i}const M2=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function U2(n){return n<<24&4278190080|n<<8&16711680|n>>>8&65280|n>>>24&255}function N2(n){for(let i=0;i<n.length;i++)n[i]=U2(n[i]);return n}const Su=M2?n=>n:N2;
17function V2(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function xo(n){return typeof n=="string"&&(n=V2(n)),Cr(n),n}class tf{}function nf(n){const i=o=>n().update(xo(o)).digest(),r=n();return i.outputLen=r.outputLen,i.blockLen=r.blockLen,i.create=()=>n(),i}const z2=BigInt(0),_r=BigInt(1),G2=BigInt(2),k2=BigInt(7),H2=BigInt(256),W2=BigInt(113),rf=[],sf=[],of=[];for(let n=0,i=_r,r=1,o=0;n<24;n++){[r,o]=[o,(2*r+3*o)%5],rf.push(2*(5*o+r)),sf.push((n+1)*(n+2)/2%64);let c=z2;for(let f=0;f<7;f++)i=(i<<_r^(i>>k2)*W2)%H2,i&G2&&(c^=_r<<(_r<<BigInt(f))-_r);of.push(c)}const af=P2(of,!0),K2=af[0],Y2=af[1],Iu=(n,i,r)=>r>32?O2(n,i,r):D2(n,i,r),Cu=(n,i,r)=>r>32?F2(n,i,r):B2(n,i,r);function j2(n,i=24){const r=new Uint32Array(10);for(let o=24-i;o<24;o++){for(let l=0;l<10;l++)r[l]=n[l]^n[l+10]^n[l+20]^n[l+30]^n[l+40];for(let l=0;l<10;l+=2){const b=(l+8)%10,E=(l+2)%10,y=r[E],w=r[E+1],T=Iu(y,w,1)^r[b],A=Cu(y,w,1)^r[b+1];for(let S=0;S<50;S+=10)n[l+S]^=T,n[l+S+1]^=A}let c=n[2],f=n[3];for(let l=0;l<24;l++){const b=sf[l],E=Iu(c,f,b),y=Cu(c,f,b),w=rf[l];c=n[w],f=n[w+1],n[w]=E,n[w+1]=y}for(let l=0;l<50;l+=10){for(let b=0;b<10;b++)r[b]=n[l+b];for(let b=0;b<10;b++)n[l+b]^=~r[(b+2)%10]&r[(b+4)%10]}n[0]^=K2[o],n[1]^=Y2[o]}Rr(r)}class Ao extends tf{constructor(i,r,o,c=!1,f=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=i,this.suffix=r,this.outputLen=o,this.enableXOF=c,this.rounds=f,Tu(o),!(0<i&&i<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=$2(this.state)}clone(){return this._cloneInto()}keccak(){Su(this.state32),j2(this.state32,this.rounds),Su(this.state32),this.posOut=0,this.pos=0}update(i){li(this),i=xo(i),Cr(i);const{blockLen:r,state:o}=this,c=i.length;for(let f=0;f<c;){const l=Math.min(r-this.pos,c-f);for(let b=0;b<l;b++)o[this.pos++]^=i[f++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:i,suffix:r,pos:o,blockLen:c}=this;i[o]^=r,(r&128)!==0&&o===c-1&&this.keccak(),i[c-1]^=128,this.keccak()}writeInto(i){li(this,!1),Cr(i),this.finish();const r=this.state,{blockLen:o}=this;for(let c=0,f=i.length;c<f;){this.posOut>=o&&this.keccak();const l=Math.min(o-this.posOut,f-c);i.set(r.subarray(this.posOut,this.posOut+l),c),this.posOut+=l,c+=l}return i}xofInto(i){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(i)}xof(i){return Tu(i),this.xofInto(new Uint8Array(i))}digestInto(i){if(ef(i,this),this.finished)throw new Error("digest() was already called");return this.writeInto(i),this.destroy(),i}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Rr(this.state)}_cloneInto(i){const{blockLen:r,suffix:o,outputLen:c,rounds:f,enableXOF:l}=this;return i||(i=new Ao(r,o,c,l,f)),i.state32.set(this.state32),i.pos=this.pos,i.posOut=this.posOut,i.finished=this.finished,i.rounds=f,i.suffix=o,i.outputLen=c,i.enableXOF=l,i.destroyed=this.destroyed,i}}const q2=(n,i,r)=>nf(()=>new Ao(i,n,r)),X2=q2(1,136,256/8);function cf(n,i){const r=i||"hex",o=X2(Hn(n,{strict:!1})?yo(n):n);return r==="bytes"?o:Je(o)}class wo extends Map{constructor(i){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=i}get(i){const r=super.get(i);return super.has(i)&&r!==void 0&&(this.delete(i),super.set(i,r)),r}set(i,r){if(super.set(i,r),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}}const Z2=/^0x[a-fA-F0-9]{40}$/,ks=new wo(8192);function Ae(n,i){const{strict:r=!0}=i??{},o=`${n}.${r}`;if(ks.has(o))return ks.get(o);const c=Z2.test(n)?n.toLowerCase()===n?!0:r?uf(n)===n:!0:!1;return ks.set(o,c),c}const Hs=new wo(8192);function uf(n,i){if(Hs.has(`${n}.${i}`))return Hs.get(`${n}.${i}`);const r=n.substring(2).toLowerCase(),o=cf(Qu(r),"bytes"),c=r.split("");for(let l=0;l<40;l+=2)o[l>>1]>>4>=8&&c[l]&&(c[l]=c[l].toUpperCase()),(o[l>>1]&15)>=8&&c[l+1]&&(c[l+1]=c[l+1].toUpperCase());const f=`0x${c.join("")}`;return Hs.set(`${n}.${i}`,f),f}class Ru extends P{constructor({offset:i}){super(`Offset \`${i}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class J2 extends P{constructor({length:i,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${i}\`).`,{name:"PositionOutOfBoundsError"})}}class Q2 extends P{constructor({count:i,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${i}\`).`,{name:"RecursiveReadLimitExceededError"})}}const e8={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 Q2({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(n){if(n<0||n>this.bytes.length-1)throw new J2({length:this.bytes.length,position:n})},decrementPosition(n){if(n<0)throw new Ru({offset:n});const i=this.position-n;this.assertPosition(i),this.position=i},getReadCount(n){return this.positionReadCount.get(n||this.position)||0},incrementPosition(n){if(n<0)throw new Ru({offset:n});const i=this.position+n;this.assertPosition(i),this.position=i},inspectByte(n){const i=n??this.position;return this.assertPosition(i),this.bytes[i]},inspectBytes(n,i){const r=i??this.position;return this.assertPosition(r+n-1),this.bytes.subarray(r,r+n)},inspectUint8(n){const i=n??this.position;return this.assertPosition(i),this.bytes[i]},inspectUint16(n){const i=n??this.position;return this.assertPosition(i+1),this.dataView.getUint16(i)},inspectUint24(n){const i=n??this.position;return this.assertPosition(i+2),(this.dataView.getUint16(i)<<8)+this.dataView.getUint8(i+2)},inspectUint32(n){const i=n??this.position;return this.assertPosition(i+3),this.dataView.getUint32(i)},pushByte(n){this.assertPosition(this.position),this.bytes[this.position]=n,this.position++},pushBytes(n){this.assertPosition(this.position+n.length-1),this.bytes.set(n,this.position),this.position+=n.length},pushUint8(n){this.assertPosition(this.position),this.bytes[this.position]=n,this.position++},pushUint16(n){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,n),this.position+=2},pushUint24(n){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,n>>8),this.dataView.setUint8(this.position+2,n&255),this.position+=3},pushUint32(n){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,n),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const n=this.inspectByte();return this.position++,n},readBytes(n,i){this.assertReadLimit(),this._touch();const r=this.inspectBytes(n);return this.position+=i??n,r},readUint8(){this.assertReadLimit(),this._touch();const n=this.inspectUint8();return this.position+=1,n},readUint16(){this.assertReadLimit(),this._touch();const n=this.inspectUint16();return this.position+=2,n},readUint24(){this.assertReadLimit(),this._touch();const n=this.inspectUint24();return this.position+=3,n},readUint32(){this.assertReadLimit(),this._touch();const n=this.inspectUint32();return this.position+=4,n},get remaining(){return this.bytes.length-this.position},setPosition(n){const i=this.position;return this.assertPosition(n),this.position=n,()=>this.position=i},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const n=this.getReadCount();this.positionReadCount.set(this.position,n+1),n>0&&this.recursiveReadCount++}};function vo(n,{recursiveReadLimit:i=8192}={}){const r=Object.create(e8);return r.bytes=n,r.dataView=new DataView(n.buffer,n.byteOffset,n.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=i,r}function Pr(n,i,r,{strict:o}={}){return Hn(n,{strict:!1})?t8(n,i,r,{strict:o}):df(n,i,r,{strict:o})}function ff(n,i){if(typeof i=="number"&&i>0&&i>Ee(n)-1)throw new qu({offset:i,position:"start",size:Ee(n)})}function lf(n,i,r){if(typeof i=="number"&&typeof r=="number"&&Ee(n)!==r-i)throw new qu({offset:r,position:"end",size:Ee(n)})}function df(n,i,r,{strict:o}={}){ff(n,i);const c=n.slice(i,r);return o&&lf(c,i,r),c}function t8(n,i,r,{strict:o}={}){ff(n,i);
17const c=`0x${n.replace("0x","").slice((i??0)*2,(r??n.length)*2)}`;return o&&lf(c,i,r),c}function n8(n,i={}){typeof i.size<"u"&&mt(n,{size:i.size});const r=Ie(n,i);return _t(r,i)}function r8(n,i={}){let r=n;if(typeof i.size<"u"&&(mt(r,{size:i.size}),r=$t(r)),r.length>1||r[0]>1)throw new A2(r);return!!r[0]}function Lt(n,i={}){typeof i.size<"u"&&mt(n,{size:i.size});const r=Ie(n,i);return Ir(r,i)}function i8(n,i={}){let r=n;return typeof i.size<"u"&&(mt(r,{size:i.size}),r=$t(r,{dir:"right"})),new TextDecoder().decode(r)}function Vn(n){return typeof n[0]=="string"?Mt(n):s8(n)}function s8(n){let i=0;for(const c of n)i+=c.length;const r=new Uint8Array(i);let o=0;for(const c of n)r.set(c,o),o+=c.length;return r}function Mt(n){return`0x${n.reduce((i,r)=>i+r.replace("0x",""),"")}`}const o8=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function hf(n,i){if(n.length!==i.length)throw new b2({expectedLength:n.length,givenLength:i.length});const r=a8({params:n,values:i}),o=So(r);return o.length===0?"0x":o}function a8({params:n,values:i}){const r=[];for(let o=0;o<n.length;o++)r.push(To({param:n[o],value:i[o]}));return r}function To({param:n,value:i}){const r=Io(n.type);if(r){const[o,c]=r;return u8(i,{length:o,param:{...n,type:c}})}if(n.type==="tuple")return b8(i,{param:n});if(n.type==="address")return c8(i);if(n.type==="bool")return l8(i);if(n.type.startsWith("uint")||n.type.startsWith("int")){const o=n.type.startsWith("int"),[,,c="256"]=o8.exec(n.type)??[];return d8(i,{signed:o,size:Number(c)})}if(n.type.startsWith("bytes"))return f8(i,{param:n});if(n.type==="string")return h8(i);throw new E2(n.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function So(n){let i=0;for(let f=0;f<n.length;f++){const{dynamic:l,encoded:b}=n[f];l?i+=32:i+=Ee(b)}const r=[],o=[];let c=0;for(let f=0;f<n.length;f++){const{dynamic:l,encoded:b}=n[f];l?(r.push(L(i+c,{size:32})),o.push(b),c+=Ee(b)):r.push(b)}return Vn([...r,...o])}function c8(n){if(!Ae(n))throw new Qe({address:n});return{dynamic:!1,encoded:Xt(n.toLowerCase())}}function u8(n,{length:i,param:r}){const o=i===null;if(!Array.isArray(n))throw new m2(n);if(!o&&n.length!==i)throw new d2({expectedLength:i,givenLength:n.length,type:`${r.type}[${i}]`});let c=!1;const f=[];for(let l=0;l<n.length;l++){const b=To({param:r,value:n[l]});b.dynamic&&(c=!0),f.push(b)}if(o||c){const l=So(f);if(o){const b=L(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?Vn([b,l]):b}}if(c)return{dynamic:!0,encoded:l}}return{dynamic:!1,encoded:Vn(f.map(({encoded:l})=>l))}}function f8(n,{param:i}){const[,r]=i.type.split("bytes"),o=Ee(n);if(!r){let c=n;return o%32!==0&&(c=Xt(c,{dir:"right",size:Math.ceil((n.length-2)/2/32)*32})),{dynamic:!0,encoded:Vn([Xt(L(o,{size:32})),c])}}if(o!==Number.parseInt(r,10))throw new h2({expectedSize:Number.parseInt(r,10),value:n});return{dynamic:!1,encoded:Xt(n,{dir:"right"})}}function l8(n){if(typeof n!="boolean")throw new P(`Invalid boolean value: "${n}" (type: ${typeof n}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Xt(Ju(n))}}function d8(n,{signed:i,size:r=256}){if(typeof r=="number"){const o=2n**(BigInt(r)-(i?1n:0n))-1n,c=i?-o-1n:0n;if(n>o||n<c)throw new Zu({max:o.toString(),min:c.toString(),signed:i,size:r/8,value:n.toString()})}return{dynamic:!1,encoded:L(n,{size:32,signed:i})}}function h8(n){const i=mo(n),r=Math.ceil(Ee(i)/32),o=[];for(let c=0;c<r;c++)o.push(Xt(Pr(i,c*32,(c+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Vn([Xt(L(Ee(i),{size:32})),...o])}}function b8(n,{param:i}){let r=!1;const o=[];for(let c=0;c<i.components.length;c++){const f=i.components[c],l=Array.isArray(n)?c:f.name,b=To({param:f,value:n[l]});o.push(b),b.dynamic&&(r=!0)}return{dynamic:r,encoded:r?So(o):Vn(o.map(({encoded:c})=>c))}}function Io(n){const i=n.match(/^(.*)\[(\d+)?\]$/);return i?[i[2]?Number(i[2]):null,i[1]]:void 0}function bf(n,i){const r=typeof i=="string"?Jt(i):i,o=vo(r);if(Ee(r)===0&&n.length>0)throw new di;if(Ee(i)&&Ee(i)<32)throw new l2({data:typeof i=="string"?i:Ie(i),params:n,size:Ee(i)});let c=0;const f=[];for(let l=0;l<n.length;++l){const b=n[l];o.setPosition(c);const[E,y]=Mn(o,b,{staticPosition:0});c+=y,f.push(E)}return f}function Mn(n,i,{staticPosition:r}){const o=Io(i.type);if(o){const[c,f]=o;return g8(n,{...i,type:f},{length:c,staticPosition:r})}if(i.type==="tuple")return y8(n,i,{staticPosition:r});if(i.type==="address")return p8(n);if(i.type==="bool")return E8(n);if(i.type.startsWith("bytes"))return _8(n,i,{staticPosition:r});if(i.type.startsWith("uint")||i.type.startsWith("int"))return m8(n,i);if(i.type==="string")return x8(n,{staticPosition:r});throw new _2(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Pu=32,Qs=32;function p8(n){const i=n.readBytes(32);return[uf(Ie(df(i,-20))),32]}function g8(n,i,{length:r,staticPosition:o}
17){if(!r){const l=Lt(n.readBytes(Qs)),b=o+l,E=b+Pu;n.setPosition(b);const y=Lt(n.readBytes(Pu)),w=Dr(i);let T=0;const A=[];for(let S=0;S<y;++S){n.setPosition(E+(w?S*32:T));const[O,z]=Mn(n,i,{staticPosition:E});T+=z,A.push(O)}return n.setPosition(o+32),[A,32]}if(Dr(i)){const l=Lt(n.readBytes(Qs)),b=o+l,E=[];for(let y=0;y<r;++y){n.setPosition(b+y*32);const[w]=Mn(n,i,{staticPosition:b});E.push(w)}return n.setPosition(o+32),[E,32]}let c=0;const f=[];for(let l=0;l<r;++l){const[b,E]=Mn(n,i,{staticPosition:o+c});c+=E,f.push(b)}return[f,c]}function E8(n){return[r8(n.readBytes(32),{size:32}),32]}function _8(n,i,{staticPosition:r}){const[o,c]=i.type.split("bytes");if(!c){const l=Lt(n.readBytes(32));n.setPosition(r+l);const b=Lt(n.readBytes(32));if(b===0)return n.setPosition(r+32),["0x",32];const E=n.readBytes(b);return n.setPosition(r+32),[Ie(E),32]}return[Ie(n.readBytes(Number.parseInt(c,10),32)),32]}function m8(n,i){const r=i.type.startsWith("int"),o=Number.parseInt(i.type.split("int")[1]||"256",10),c=n.readBytes(32);return[o>48?n8(c,{signed:r}):Lt(c,{signed:r}),32]}function y8(n,i,{staticPosition:r}){const o=i.components.length===0||i.components.some(({name:l})=>!l),c=o?[]:{};let f=0;if(Dr(i)){const l=Lt(n.readBytes(Qs)),b=r+l;for(let E=0;E<i.components.length;++E){const y=i.components[E];n.setPosition(b+f);const[w,T]=Mn(n,y,{staticPosition:b});f+=T,c[o?E:y?.name]=w}return n.setPosition(r+32),[c,32]}for(let l=0;l<i.components.length;++l){const b=i.components[l],[E,y]=Mn(n,b,{staticPosition:r});c[o?l:b?.name]=E,f+=y}return[c,f]}function x8(n,{staticPosition:i}){const r=Lt(n.readBytes(32)),o=i+r;n.setPosition(o);const c=Lt(n.readBytes(32));if(c===0)return n.setPosition(i+32),["",32];const f=n.readBytes(c,32),l=i8($t(f));return n.setPosition(i+32),[l,32]}function Dr(n){const{type:i}=n;if(i==="string"||i==="bytes"||i.endsWith("[]"))return!0;if(i==="tuple")return n.components?.some(Dr);const r=Io(n.type);return!!(r&&Dr({...n,type:r[1]}))}const A8=n=>cf(yo(n));function w8(n){return A8(n)}const v8="1.1.0";
17let et=class eo extends Error{constructor(i,r={}){const o=r.cause instanceof eo?r.cause.details:r.cause?.message?r.cause.message:r.details,c=r.cause instanceof eo&&r.cause.docsPath||r.docsPath,f=[i||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...c?[`Docs: https://abitype.dev${c}`]:[],...o?[`Details: ${o}`]:[],`Version: abitype@${v8}`].join(`
18`);super(f),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"}),r.cause&&(this.cause=r.cause),this.details=o,this.docsPath=c,this.metaMessages=r.metaMessages,this.shortMessage=i}};function Ut(n,i){return n.exec(i)?.groups}const pf=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,gf=/^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)?$/,Ef=/^\(.+?\).*?$/,Du=/^tuple(?<array>(\[(\d*)\])*)$/;function to(n){let i=n.type;if(Du.test(n.type)&&"components"in n){i="(";const r=n.components.length;for(let c=0;c<r;c++){const f=n.components[c];i+=to(f),c<r-1&&(i+=", ")}const o=Ut(Du,n.type);return i+=`)${o?.array??""}`,to({...n,type:i})}return"indexed"in n&&n.indexed&&(i=`${i} indexed`),n.name?`${i} ${n.name}`:i}function mr(n){let i="";const r=n.length;for(let o=0;o<r;o++){const c=n[o];i+=to(c),o!==r-1&&(i+=", ")}return i}function T8(n){return n.type==="function"?`function ${n.name}(${mr(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${n.outputs?.length?` returns (${mr(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${mr(n.inputs)})`:n.type==="error"?`error ${n.name}(${mr(n.inputs)})`:n.type==="constructor"?`constructor(${mr(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const _f=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function S8(n){return _f.test(n)}function I8(n){return Ut(_f,n)}const mf=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function C8(n){return mf.test(n)}function R8(n){return Ut(mf,n)}const yf=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function P8(n){return yf.test(n)}function D8(n){return Ut(yf,n)}const xf=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Af(n){return xf.test(n)}function B8(n){return Ut(xf,n)}const wf=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function O8(n){return wf.test(n)}function F8(n){return Ut(wf,n)}const vf=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function L8(n){return vf.test(n)}function $8(n){return Ut(vf,n)}const M8=/^receive\(\) external payable$/;function U8(n){return M8.test(n)}const N8=new Set(["indexed"]),no=new Set(["calldata","memory","storage"]);class V8 extends et{constructor({type:i}){super("Unknown type.",{metaMessages:[`Type "${i}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class z8 extends et{constructor({type:i}){super("Unknown type.",{metaMessages:[`Type "${i}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class G8 extends et{constructor({param:i}){super("Invalid ABI parameter.",{details:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class k8 extends et{constructor({param:i,name:r}){super("Invalid ABI parameter.",{details:i,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class H8 extends et{constructor({param:i,type:r,modifier:o}){super("Invalid ABI parameter.",{details:i,metaMessages:[`Modifier "${o}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class W8 extends et{constructor({param:i,type:r,modifier:o}){super("Invalid ABI parameter.",{details:i,metaMessages:[`Modifier "${o}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${o}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class K8 extends et{constructor({abiParameter:i}){super("Invalid ABI parameter.",{details:JSON.stringify(i,null,2),metaMessages:["ABI parameter type is invali
18d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Kn extends et{constructor({signature:i,type:r}){super(`Invalid ${r} signature.`,{details:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Y8 extends et{constructor({signature:i}){super("Unknown signature.",{details:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class j8 extends et{constructor({signature:i}){super("Invalid struct signature.",{details:i,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class q8 extends et{constructor({type:i}){super("Circular reference detected.",{metaMessages:[`Struct "${i}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class X8 extends et{constructor({current:i,depth:r}){super("Unbalanced parentheses.",{metaMessages:[`"${i.trim()}" has too many ${r>0?"opening":"closing"} parentheses.`],details:`Depth "${r}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function Z8(n,i,r){let o="";if(r)for(const c of Object.entries(r)){if(!c)continue;let f="";for(const l of c[1])f+=`[${l.type}${l.name?`:${l.name}`:""}]`;o+=`(${c[0]}{${f}})`}return i?`${i}:${n}${o}`:n}const Ws=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function J8(n,i={}){if(P8(n))return Q8(n,i);if(C8(n))return e3(n,i);if(S8(n))return t3(n,i);if(O8(n))return n3(n,i);if(L8(n))return r3(n);if(U8(n))return{type:"receive",stateMutability:"payable"};throw new Y8({signature:n})}function Q8(n,i={}){const r=D8(n);if(!r)throw new Kn({signature:n,type:"function"});const o=ut(r.parameters),c=[],f=o.length;for(let b=0;b<f;b++)c.push(gn(o[b],{modifiers:no,structs:i,type:"function"}));const l=[];if(r.returns){const b=ut(r.returns),E=b.length;for(let y=0;y<E;y++)l.push(gn(b[y],{modifiers:no,structs:i,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:c,outputs:l}}function e3(n,i={}){const r=R8(n);if(!r)throw new Kn({signature:n,type:"event"});const o=ut(r.parameters),c=[],f=o.length;for(let l=0;l<f;l++)c.push(gn(o[l],{modifiers:N8,structs:i,type:"event"}));return{name:r.name,type:"event",inputs:c}}function t3(n,i={}){const r=I8(n);if(!r)throw new Kn({signature:n,type:"error"});const o=ut(r.parameters),c=[],f=o.length;for(let l=0;l<f;l++)c.push(gn(o[l],{structs:i,type:"error"}));return{name:r.name,type:"error",inputs:c}}function n3(n,i={}){const r=F8(n);if(!r)throw new Kn({signature:n,type:"constructor"});const o=ut(r.parameters),c=[],f=o.length;for(let l=0;l<f;l++)c.push(gn(o[l],{structs:i,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:c}}function r3(n){const i=$8(n);if(!i)throw new Kn({signature:n,type:"fallback"});return{type:"fallback",stateMutability:i.stateMutability??"nonpayable"}}const i3=/^(?<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$_]*))?$/,s3=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,o3=/^u?int$/;function gn(n,i){const r=Z8(n,i?.type,i?.structs);if(Ws.has(r))return Ws.get(r);const o=Ef.test(n),c=Ut(o?s3:i3,n);if(!c)throw new G8({param:n});if(c.name&&c3(c.name))throw new k8({param:n,name:c.name});const f=c.name?{name:c.name}:{},l=c.modifier==="indexed"?{indexed:!0}:{},b=i?.structs??{};let E,y={};if(o){E="tuple";const T=ut(c.type),A=[],S=T.length;for(let O=0;O<S;O++)A.push(gn(T[O],{structs:b}));y={components:A}}else if(c.type in b)E="tuple",y={components:b[c.type]};else if(o3.test(c.type))E=`${c.type}256`;else if(c.type==="address payable")E="address";else if(E=c.type,i?.type!=="struct"&&!Tf(E))throw new z8({type:E}
18);if(c.modifier){if(!i?.modifiers?.has?.(c.modifier))throw new H8({param:n,type:i?.type,modifier:c.modifier});if(no.has(c.modifier)&&!u3(E,!!c.array))throw new W8({param:n,type:i?.type,modifier:c.modifier})}const w={type:`${E}${c.array??""}`,...f,...l,...y};return Ws.set(r,w),w}function ut(n,i=[],r="",o=0){const c=n.trim().length;for(let f=0;f<c;f++){const l=n[f],b=n.slice(f+1);switch(l){case",":return o===0?ut(b,[...i,r.trim()]):ut(b,i,`${r}${l}`,o);case"(":return ut(b,i,`${r}${l}`,o+1);case")":return ut(b,i,`${r}${l}`,o-1);default:return ut(b,i,`${r}${l}`,o)}}if(r==="")return i;if(o!==0)throw new X8({current:r,depth:o});return i.push(r.trim()),i}function Tf(n){return n==="address"||n==="bool"||n==="function"||n==="string"||pf.test(n)||gf.test(n)}const a3=/^(?: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 c3(n){return n==="address"||n==="bool"||n==="function"||n==="string"||n==="tuple"||pf.test(n)||gf.test(n)||a3.test(n)}function u3(n,i){return i||n==="bytes"||n==="string"||n==="tuple"}function f3(n){const i={},r=n.length;for(let l=0;l<r;l++){const b=n[l];if(!Af(b))continue;const E=B8(b);if(!E)throw new Kn({signature:b,type:"struct"});const y=E.properties.split(";"),w=[],T=y.length;for(let A=0;A<T;A++){const O=y[A].trim();if(!O)continue;const z=gn(O,{type:"struct"});w.push(z)}if(!w.length)throw new j8({signature:b});i[E.name]=w}const o={},c=Object.entries(i),f=c.length;for(let l=0;l<f;l++){const[b,E]=c[l];o[b]=Sf(E,i)}return o}const l3=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Sf(n,i,r=new Set){const o=[],c=n.length;for(let f=0;f<c;f++){const l=n[f];if(Ef.test(l.type))o.push(l);else{const E=Ut(l3,l.type);if(!E?.type)throw new K8({abiParameter:l});const{array:y,type:w}=E;if(w in i){if(r.has(w))throw new q8({type:w});o.push({...l,type:`tuple${y??""}`,components:Sf(i[w]??[],i,new Set([...r,w]))})}else if(Tf(w))o.push(l);else throw new V8({type:w})}}return o}function If(n){const i=f3(n),r=[],o=n.length;for(let c=0;c<o;c++){const f=n[c];Af(f)||r.push(J8(f,i))}return r}function d3(n){let i=!0,r="",o=0,c="",f=!1;for(let l=0;l<n.length;l++){const b=n[l];if(["(",")",","].includes(b)&&(i=!0),b==="("&&o++,b===")"&&o--,!!i){if(o===0){if(b===" "&&["event","function",""].includes(c))c="";else if(c+=b,b===")"){f=!0;break}continue}if(b===" "){n[l-1]!==","&&r!==","&&r!==",("&&(r="",i=!1);continue}c+=b,r+=b}}if(!f)throw new P("Unable to normalize signature.");return c}const h3=n=>{const i=typeof n=="string"?n:T8(n);return d3(i)};function Cf(n){return w8(h3(n))}const b3=Cf,Co=n=>Pr(Cf(n),0,4);function Ro(n){const{abi:i,args:r=[],name:o}=n,c=Hn(o,{strict:!1}),f=i.filter(b=>c?b.type==="function"?Co(b)===o:b.type==="event"?b3(b)===o:!1:"name"in b&&b.name===o);if(f.length===0)return;if(f.length===1)return f[0];let l;for(const b of f){if(!("inputs"in b))continue;if(!r||r.length===0){if(!b.inputs||b.inputs.length===0)return b;continue}if(!b.inputs||b.inputs.length===0||b.inputs.length!==r.length)continue;if(r.every((y,w)=>{const T="inputs"in b&&b.inputs[w];return T?ro(y,T):!1})){if(l&&"inputs"in l&&l.inputs){const y=Rf(b.inputs,l.inputs,r);if(y)throw new g2({abiItem:b,type:y[0]},{abiItem:l,type:y[1]})}l=b}}return l||f[0]}function ro(n,i){const r=typeof n,o=i.type;switch(o){case"address":return Ae(n,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return o==="tuple"&&"components"in i?Object.values(i.components).every((c,f)=>ro(Object.values(n)[f],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)?$/.test(o)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o)?r==="string"||n instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o)?Array.isArray(n)&&n.every(c=>ro(c,{...i,type:o.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Rf(n,i,r){for(const o in n){const c=n[o],f=i[o];if(c.type==="tuple"&&f.type==="tuple"&&"components"in c&&"components"in f)return Rf(c.components,f.components,r[o]);const l=[c.type,f.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?Ae(r[o],{strict:!1}):l.includes("address")&&l.includes("bytes")?Ae(r[o],{strict:!1}):!1)return l}}const Ks="/docs/contract/decodeFunctionResult";function Po(n){const{abi:i,args:r,functionName:o,data:c}=n;let f=i[0];if(o){const b=Ro({abi:i,args:r,name:o});if(!b)throw new fi(o,{docsPath:Ks});f=b}if(f.type!=="function")throw new fi(void 0,{docsPath:Ks});if(!f.outputs)throw new p2(f.name,{docsPath:Ks});const l=bf(f.outputs,c);if(l&&l.length>1)return l;if(l&&l.length===1)return l[0]}const Bu="/docs/contract/encodeFunctionData";function p3(n){const{abi:i,args:r,functionName:o}=n;let c=i[0];if(o){const f=Ro({abi:i,args:r,name:o});if(!f)throw new fi(o,{docsPath:Bu});c=f}if(c.type!=="function")throw new fi(void 0,{docsPath:Bu});return{abi:[c],functionName:Co(Nn(c))}}function Do(n){const{args:i}=n,{abi:r,functionName:o}=n.abi.length===1&&n.functionName?.startsWith("0x")?n:p3(n),c=r[0],f=o,l="inputs"in c&&c.inputs?hf(c.inputs,i??[]):void 0;return Mt([f,l??"0x"])}class io extends P{constructor({blockNumber:i,chain:r,contract:o}){super(`Chain "${r.name}" does not support contract "${o.name}".`,{metaMessages:["This could be due to any of the following:",...i&&o.blockCreated&&o.blockCreated>i?[`- The contract "${o.name}" was not deployed until block ${o.blockCreated} (current block ${i}).`]:[`- The chain does not have the contract "${o.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class Pf extends P{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Qr extends P{constructor({chainId:i}){super(typeof i=="number"?`Chain ID "${i}
18" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function Df({blockNumber:n,chain:i,contract:r}){const o=i?.contracts?.[r];if(!o)throw new io({chain:i,contract:{name:r}});if(n&&o.blockCreated&&o.blockCreated>n)throw new io({blockNumber:n,chain:i,contract:{name:r,blockCreated:o.blockCreated}});return o.address}function hi(n){return typeof n=="string"?{address:n,type:"json-rpc"}:n}const g3={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."},E3={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},_3={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function m3(n){const{abi:i,data:r}=n,o=Pr(r,0,4);if(o==="0x")throw new di;const f=[...i||[],E3,_3].find(l=>l.type==="error"&&o===Co(Nn(l)));if(!f)throw new ju(o,{docsPath:"/docs/contract/decodeErrorResult"});
18return{abiItem:f,args:"inputs"in f&&f.inputs&&f.inputs.length>0?bf(f.inputs,Pr(r,4)):void 0,errorName:f.name}}const Zt=(n,i,r)=>JSON.stringify(n,(o,c)=>typeof c=="bigint"?c.toString():c,r);function Bf({abiItem:n,args:i,includeFunctionName:r=!0,includeName:o=!1}){if("name"in n&&"inputs"in n&&n.inputs)return`${r?n.name:""}(${n.inputs.map((c,f)=>`${o&&c.name?`${c.name}: `:""}${typeof i[f]=="object"?Zt(i[f]):i[f]}`).join(", ")})`}const Of={gwei:9,wei:18},y3={ether:-9,wei:9};function Ff(n,i){let r=n.toString();const o=r.startsWith("-");o&&(r=r.slice(1)),r=r.padStart(i,"0");let[c,f]=[r.slice(0,r.length-i),r.slice(r.length-i)];return f=f.replace(/(0+)$/,""),`${o?"-":""}${c||"0"}${f?`.${f}`:""}`}function x3(n,i="wei"){return Ff(n,Of[i])}function bn(n,i="wei"){return Ff(n,y3[i])}class A3 extends P{constructor({address:i}){super(`State for account "${i}" is set multiple times.`,{name:"AccountStateConflictError"})}}class w3 extends P{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Ou(n){return n.reduce((i,{slot:r,value:o})=>`${i}        ${r}: ${o}
19`,"")}function v3(n){return n.reduce((i,{address:r,...o})=>{let c=`${i}    ${r}:
20`;return o.nonce&&(c+=`      nonce: ${o.nonce}
21`),o.balance&&(c+=`      balance: ${o.balance}
22`),o.code&&(c+=`      code: ${o.code}
23`),o.state&&(c+=`      state:
24`,c+=Ou(o.state)),o.stateDiff&&(c+=`      stateDiff:
25`,c+=Ou(o.stateDiff)),c},`  State Override:
26`).slice(0,-1)}function Bo(n){const i=Object.entries(n).map(([o,c])=>c===void 0||c===!1?null:[o,c]).filter(Boolean),r=i.reduce((o,[c])=>Math.max(o,c.length),0);return i.map(([o,c])=>`  ${`${o}:`.padEnd(r+1)}  ${c}`).join(`
27`)}class T3 extends P{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
28`),{name:"FeeConflictError"})}}class S3 extends P{constructor({v:i}){super(`Invalid \`v\` value "${i}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class I3 extends P{constructor({transaction:i}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Bo(i),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class C3 extends P{constructor({storageKey:i}){super(`Size for storage key "${i}" is invalid. Expected 32 bytes. Got ${Math.floor((i.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}const R3=n=>n,Oo=n=>n;class P3 extends P{constructor(i,{account:r,docsPath:o,chain:c,data:f,gas:l,gasPrice:b,maxFeePerGas:E,maxPriorityFeePerGas:y,nonce:w,to:T,value:A,stateOverride:S}){const O=r?hi(r):void 0;let z=Bo({from:O?.address,to:T,value:typeof A<"u"&&`${x3(A)} ${c?.nativeCurrency?.symbol||"ETH"}`,data:f,gas:l,gasPrice:typeof b<"u"&&`${bn(b)} gwei`,maxFeePerGas:typeof E<"u"&&`${bn(E)} gwei`,maxPriorityFeePerGas:typeof y<"u"&&`${bn(y)} gwei`,nonce:w});S&&(z+=`
29${v3(S)}`),super(i.shortMessage,{cause:i,docsPath:o,metaMessages:[...i.metaMessages?[...i.metaMessages," "]:[],"Raw Call Arguments:",z].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=i}}class D3 extends P{constructor(i,{abi:r,args:o,contractAddress:c,docsPath:f,functionName:l,sender:b}){const E=Ro({abi:r,args:o,name:l}),y=E?Bf({abiItem:E,args:o,includeFunctionName:!1,includeName:!1}):void 0,w=E?Nn(E,{includeName:!0}):void 0,T=Bo({address:c&&R3(c),function:w,args:y&&y!=="()"&&`${[...Array(l?.length??0).keys()].map(()=>" ").join("")}${y}`,sender:b});super(i.shortMessage||`An unknown error occurred while executing the contract function "${l}".`,{cause:i,docsPath:f,metaMessages:[...i.metaMessages?[...i.metaMessages," "]:[],T&&"Contract Call:",T].filter(
29Boolean),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=r,this.args=o,this.cause=i,this.contractAddress=c,this.functionName=l,this.sender=b}}class B3 extends P{constructor({abi:i,data:r,functionName:o,message:c}){let f,l,b,E;if(r&&r!=="0x")try{l=m3({abi:i,data:r});const{abiItem:w,errorName:T,args:A}=l;if(T==="Error")E=A[0];else if(T==="Panic"){const[S]=A;E=g3[S]}else{const S=w?Nn(w,{includeName:!0}):void 0,O=w&&A?Bf({abiItem:w,args:A,includeFunctionName:!1,includeName:!1}):void 0;b=[S?`Error: ${S}`:"",O&&O!=="()"?`       ${[...Array(T?.length??0).keys()].map(()=>" ").join("")}${O}`:""]}}catch(w){f=w}else c&&(E=c);let y;f instanceof ju&&(y=f.signature,b=[`Unable to decode signature "${y}" 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=${y}.`]),super(E&&E!=="execution reverted"||y?[`The contract function "${o}" reverted with the following ${y?"signature":"reason"}:`,E||y].join(`
30`):`The contract function "${o}" reverted.`,{cause:f,metaMessages:b,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=l,this.raw=r,this.reason=E,this.signature=y}}class O3 extends P{constructor({functionName:i}){super(`The contract function "${i}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${i}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class F3 extends P{constructor({factory:i}){super(`Deployment for counterfactual contract call failed${i?` for factory "${i}".`:""}`,{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"})}}class Fo extends P{constructor({data:i,message:r}){super(r||"",{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=i}}function Lf(n,i,r){const o=n[i.name];if(typeof o=="function")return o;const c=n[r];return typeof c=="function"?c:f=>i(n,f)}class Sr extends P{constructor({body:i,cause:r,details:o,headers:c,status:f,url:l}){super("HTTP request failed.",{cause:r,details:o,metaMessages:[f&&`Status: ${f}`,`URL: ${Oo(l)}`,i&&`Request body: ${Zt(i)}`].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=i,this.headers=c,this.status=f,this.url=l}}class Lo extends P{constructor({body:i,error:r,url:o}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Oo(o)}`,`Request body: ${Zt(i)}`],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}),this.code=r.code,this.data=r.data}}class Fu extends P{constructor({body:i,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Oo(r)}`,`Request body: ${Zt(i)}`],name:"TimeoutError"})}}const L3=-1;class Oe extends P{constructor(i,{code:r,docsPath:o,metaMessages:c,name:f,shortMessage:l}){super(l,{cause:i,docsPath:o,metaMessages:c||i?.metaMessages,name:f||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
30),this.name=f||i.name,this.code=i instanceof Lo?i.code:r??L3}}class ze extends Oe{constructor(i,r){super(i,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class Br extends Oe{constructor(i){super(i,{code:Br.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Br,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Or extends Oe{constructor(i){super(i,{code:Or.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Or,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Fr extends Oe{constructor(i,{method:r}={}){super(i,{code:Fr.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(Fr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Lr extends Oe{constructor(i){super(i,{code:Lr.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
31`)})}}Object.defineProperty(Lr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class En extends Oe{constructor(i){super(i,{code:En.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(En,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class $r extends Oe{constructor(i){super(i,{code:$r.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
32`)})}}Object.defineProperty($r,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Mr extends Oe{constructor(i){super(i,{code:Mr.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Mr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Ur extends Oe{constructor(i){super(i,{code:Ur.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Ur,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class zn extends Oe{constructor(i){super(i,{code:zn.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(zn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class hn extends Oe{constructor(i,{method:r}={}){super(i,{code:hn.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(hn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Gn extends Oe{constructor(i){super(i,{code:Gn.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Gn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Nr extends Oe{constructor(i){super(i,{code:Nr.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Nr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class pn extends ze{constructor(i){super(i,{code:pn.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(pn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Vr extends ze{constructor(i){super(i,{code:Vr.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Vr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class zr extends ze{constructor(i,{method:r}={}){super(i,{code:zr.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(zr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Gr extends ze{constructor(i){super(i,{code:Gr.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Gr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class kr extends ze{constructor(i){super(i,{code:kr.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(kr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Hr extends ze{constructor(i){super(i,{code:Hr.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Hr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Wr extends ze{constructor(i){super(i,{code:Wr.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Wr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Kr extends ze{constructor(i){super(i,{code:Kr.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Kr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Yr extends ze{constructor(i){super(i,{code:Yr.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Yr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});
32class jr extends ze{constructor(i){super(i,{code:jr.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(jr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class qr extends ze{constructor(i){super(i,{code:qr.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(qr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Xr extends ze{constructor(i){super(i,{code:Xr.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Xr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Zr extends ze{constructor(i){super(i,{code:Zr.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Zr,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class $3 extends Oe{constructor(i){super(i,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const M3=3;function so(n,{abi:i,address:r,args:o,docsPath:c,functionName:f,sender:l}){const b=n instanceof Fo?n:n instanceof P?n.walk(O=>"data"in O)||n.walk():{},{code:E,data:y,details:w,message:T,shortMessage:A}=b,S=n instanceof di?new O3({functionName:f}):[M3,En.code].includes(E)&&(y||w||T||A)?new B3({abi:i,data:typeof y=="object"?y.data:y,functionName:f,message:b instanceof Lo?w:A??T}):n;return new D3(S,{abi:i,args:o,contractAddress:r,docsPath:c,functionName:f,sender:l})}const U3="0.1.1";function N3(){return U3}class Jr extends Error{constructor(i,r={}){const o=(()=>{if(r.cause instanceof Jr){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:r.cause?.message?r.cause.message:r.details})(),c=r.cause instanceof Jr&&r.cause.docsPath||r.docsPath,l=`https://oxlib.sh${c??""}`,b=[i||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...o||c?["",o?`Details: ${o}`:void 0,c?`See: ${l}`:void 0]:[]].filter(E=>typeof E=="string").join(`
33`);super(b,r.cause?{cause:r.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,"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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${N3()}`}),this.cause=r.cause,this.details=o,this.docs=l,this.docsPath=c,this.shortMessage=i}walk(i){return $f(this,i)}}function $f(n,i){return i?.(n)?n:n&&typeof n=="object"&&"cause"in n&&n.cause?$f(n.cause,i):i?null:n}function V3(n,i={}){const{dir:r,size:o=32}=i;if(o===0)return n;const c=n.replace("0x","");if(c.length>o*2)throw new k3({size:Math.ceil(c.length/2),targetSize:o,type:"Hex"});return`0x${c[r==="right"?"padEnd":"padStart"](o*2,"0")}`}function Ft(n,i={}){const{signed:r,size:o}=i,c=BigInt(n);let f;o?r?f=(1n<<BigInt(o)*8n-1n)-1n:f=2n**(BigInt(o)*8n)-1n:typeof n=="number"&&(f=BigInt(Number.MAX_SAFE_INTEGER));const l=typeof f=="bigint"&&r?-f-1n:0;if(f&&c>f||c<l){const y=typeof n=="bigint"?"n":"";throw new G3({max:f?`${f}${y}`:void 0,min:`${l}${y}`,signed:r,size:o,value:`${n}${y}`})}const E=`0x${(r&&c<0?(1n<<BigInt(o*8))+BigInt(c):c).toString(16)}`;return o?z3(E,o):E}function z3(n,i){return V3(n,{dir:"left",size:i})}class G3 extends Jr{constructor({max:i,min:r,signed:o,size:c,value:f}){super(`Number \`${f}\` is not in safe${c?` ${c*8}-bit`:""}${o?" signed":" unsigned"} integer range ${i?`(\`${r}\` to \`${i}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class k3 extends Jr{constructor({size:i,targetSize:r,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function H3(n){return{address:n.address,amount:Ft(n.amount),index:Ft(n.index),validatorIndex:Ft(n.validatorIndex)}}function W3(n){return{...typeof n.baseFeePerGas=="bigint"&&{baseFeePerGas:Ft(n.baseFeePerGas)},...typeof n.blobBaseFee=="bigint"&&{blobBaseFee:Ft(n.blobBaseFee)},...typeof n.feeRecipient=="string"&&{feeRecipient:n.feeRecipient},...typeof n.gasLimit=="bigint"&&{gasLimit:Ft(n.gasLimit)},...typeof n.number=="bigint"&&{number:Ft(n.number)},...typeof n.prevRandao=="bigint"&&{prevRandao:Ft(n.prevRandao)},...typeof n.time=="bigint"&&{time:Ft(n.time)},...n.withdrawals&&{withdrawals:n.withdrawals.map(H3)}}}const K3="0x82ad56cb",Y3="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
33602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",j3="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Mf="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
33150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Ys="/docs/contract/encodeDeployData";function Uf(n){const{abi:i,args:r,bytecode:o}=n;if(!r||r.length===0)return o;const c=i.find(l=>"type"in l&&l.type==="constructor");if(!c)throw new f2({docsPath:Ys});if(!("inputs"in c))throw new xu({docsPath:Ys});if(!c.inputs||c.inputs.length===0)throw new xu({docsPath:Ys});const f=hf(c.inputs,r);return Mt([o,f])}class $n extends P{constructor({cause:i,message:r}={}){const o=r?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${o?`with reason: ${o}`:"for an unknown reason"}.`,{cause:i,name:"ExecutionRevertedError"})}}Object.defineProperty($n,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty($n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Qt extends P{constructor({cause:i,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${bn(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:i,name:"FeeCapTooHighError"})}}Object.defineProperty(Qt,"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 oo extends P{constructor({cause:i,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${bn(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:i,name:"FeeCapTooLowError"})}}Object.defineProperty(oo,"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 ao extends P{constructor({cause:i,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:i,name:"NonceTooHighError"})}}Object.defineProperty(ao,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class co extends P{constructor({cause:i,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
34`),{cause:i,name:"NonceTooLowError"})}}
34Object.defineProperty(co,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class uo extends P{constructor({cause:i,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:i,name:"NonceMaxValueError"})}}Object.defineProperty(uo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class fo extends P{constructor({cause:i}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
35`),{cause:i,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(fo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class lo extends P{constructor({cause:i,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:i,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(lo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class ho extends P{constructor({cause:i,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:i,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(ho,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class bo extends P{constructor({cause:i}){super("The transaction type is not supported for this chain.",{cause:i,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(bo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class kn extends P{constructor({cause:i,maxPriorityFeePerGas:r,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${bn(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${bn(o)} gwei`:""}).`].join(`
36`),{cause:i,name:"TipAboveFeeCapError"})}}Object.defineProperty(kn,"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 Nf extends P{constructor({cause:i}){super(`An error occurred while executing: ${i?.shortMessage}`,{cause:i,name:"UnknownNodeError"})}}function q3(n,i){const r=(n.details||"").toLowerCase(),o=n instanceof P?n.walk(c=>c?.code===$n.code):n;return o instanceof P?new $n({cause:n,message:o.details}):$n.nodeMessage.test(r)?new $n({cause:n,message:n.details}):Qt.nodeMessage.test(r)?new Qt({cause:n,maxFeePerGas:i?.maxFeePerGas}):oo.nodeMessage.test(r)?new oo({cause:n,maxFeePerGas:i?.maxFeePerGas}):ao.nodeMessage.test(r)?new ao({cause:n,nonce:i?.nonce}):co.nodeMessage.test(r)?new co({cause:n,nonce:i?.nonce}):uo.nodeMessage.test(r)?new uo({cause:n,nonce:i?.nonce}):fo.nodeMessage.test(r)?new fo({cause:n}):lo.nodeMessage.test(r)?new lo({cause:n,gas:i?.gas}):ho.nodeMessage.test(r)?new ho({cause:n,gas:i?.gas}):bo.nodeMessage.test(r)?new bo({cause:n}):kn.nodeMessage.test(r)?new kn({cause:n,maxFeePerGas:i?.maxFeePerGas,maxPriorityFeePerGas:i?.maxPriorityFeePerGas}):new Nf({cause:n})}function X3(n,{docsPath:i,...r}){const o=(()=>{const c=q3(n,r);return c instanceof Nf?n:c})();return new P3(o,{docsPath:i,...r})}function Z3(n,{format:i}){if(!i)return{};const r={};function o(f){const l=Object.keys(f);for(const b of l)b in n&&(r[b]=n[b]),f[b]&&typeof f[b]=="object"&&!Array.isArray(f[b])&&o(f[b])}const c=i(n||{});return o(c),r}function bi(n,i){return({exclude:r,format:o})=>({exclude:r,format:(c,f)=>{const l=i(c,f);if(r)for(const b of r)delete l[b];return{...l,...o(c,f)}},type:n})}const J3={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Vf(n,i){const r={};return typeof n.authorizationList<"u"&&(r.authorizationList=eg(n.authorizationList)),typeof n.accessList<"u"&&(r.accessList=n.accessList),typeof n.blobVersionedHashes<"u"&&(r.blobVersionedHashes=n.blobVersionedHashes),typeof n.blobs<"u"&&(typeof n.blobs[0]!="str
36ing"?r.blobs=n.blobs.map(o=>Ie(o)):r.blobs=n.blobs),typeof n.data<"u"&&(r.data=n.data),n.account&&(r.from=n.account.address),typeof n.from<"u"&&(r.from=n.from),typeof n.gas<"u"&&(r.gas=L(n.gas)),typeof n.gasPrice<"u"&&(r.gasPrice=L(n.gasPrice)),typeof n.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=L(n.maxFeePerBlobGas)),typeof n.maxFeePerGas<"u"&&(r.maxFeePerGas=L(n.maxFeePerGas)),typeof n.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=L(n.maxPriorityFeePerGas)),typeof n.nonce<"u"&&(r.nonce=L(n.nonce)),typeof n.to<"u"&&(r.to=n.to),typeof n.type<"u"&&(r.type=J3[n.type]),typeof n.value<"u"&&(r.value=L(n.value)),r}const Q3=bi("transactionRequest",Vf);function eg(n){return n.map(i=>({address:i.address,r:i.r?L(BigInt(i.r)):i.r,s:i.s?L(BigInt(i.s)):i.s,chainId:L(i.chainId),nonce:L(i.nonce),...typeof i.yParity<"u"?{yParity:L(i.yParity)}:{},...typeof i.v<"u"&&typeof i.yParity>"u"?{v:L(i.v)}:{}}))}function tg(){let n=()=>{},i=()=>{};return{promise:new Promise((o,c)=>{n=o,i=c}),resolve:n,reject:i}}const js=new Map;function zf({fn:n,id:i,shouldSplitBatch:r,wait:o=0,sort:c}){const f=async()=>{const w=E();l();const T=w.map(({args:A})=>A);T.length!==0&&n(T).then(A=>{c&&Array.isArray(A)&&A.sort(c);for(let S=0;S<w.length;S++){const{resolve:O}=w[S];O?.([A[S],A])}}).catch(A=>{for(let S=0;S<w.length;S++){const{reject:O}=w[S];O?.(A)}})},l=()=>js.delete(i),b=()=>E().map(({args:w})=>w),E=()=>js.get(i)||[],y=w=>js.set(i,[...E(),w]);return{flush:l,async schedule(w){const{promise:T,resolve:A,reject:S}=tg();return r?.([...b(),w])&&f(),E().length>0?(y({args:w,resolve:A,reject:S}),T):(y({args:w,resolve:A,reject:S}),setTimeout(f,o),T)}}}function Lu(n){if(!(!n||n.length===0))return n.reduce((i,{slot:r,value:o})=>{if(r.length!==66)throw new Au({size:r.length,targetSize:66,type:"hex"});if(o.length!==66)throw new Au({size:o.length,targetSize:66,type:"hex"});return i[r]=o,i},{})}function ng(n){const{balance:i,nonce:r,state:o,stateDiff:c,code:f}=n,l={};if(f!==void 0&&(l.code=f),i!==void 0&&(l.balance=L(i)),r!==void 0&&(l.nonce=L(r)),o!==void 0&&(l.state=Lu(o)),c!==void 0){if(l.state)throw new w3;l.stateDiff=Lu(c)}return l}function rg(n){if(!n)return;const i={};for(const{address:r,...o}of n){if(!Ae(r,{strict:!1}))throw new Qe({address:r});if(i[r])throw new A3({address:r});i[r]=ng(o)}return i}const e0=2n**256n-1n;function ig(n){const{account:i,gasPrice:r,maxFeePerGas:o,maxPriorityFeePerGas:c,to:f}=n,l=i?hi(i):void 0;if(l&&!Ae(l.address))throw new Qe({address:l.address});if(f&&!Ae(f))throw new Qe({address:f});if(typeof r<"u"&&(typeof o<"u"||typeof c<"u"))throw new T3;if(o&&o>e0)throw new Qt({maxFeePerGas:o});if(c&&o&&c>o)throw new kn({maxFeePerGas:o,maxPriorityFeePerGas:c})}async function sg(n,i){const{account:r=n.account,authorizationList:o,batch:c=!!n.batch?.multicall,blockNumber:f,blockTag:l=n.experimental_blockTag??"latest",accessList:b,blobs:E,blockOverrides:y,code:w,data:T,factory:A,factoryData:S,gas:O,gasPrice:z,maxFeePerBlobGas:Z,maxFeePerGas:j,maxPriorityFeePerGas:K,nonce:G,to:te,value:J,stateOverride:oe,...ae}=i,Ce=r?hi(r):void 0;if(w&&(A||S))throw new P("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(w&&te)throw new P("Cannot provide both `code` & `to` as parameters.");const tt=w&&T,ft=A&&S&&te&&T,lt=tt||ft,we=tt?Gf({code:w,data:T}):ft?cg({data:T,factory:A,factoryData:S,to:te}):T;try{ig(i);const nt=(typeof f=="bigint"?L(f):void 0)||l,yt=y?W3(y):void 0,xt=rg(oe),dt=n.chain?.formatters?.transactionRequest?.format,qn=(dt||Vf)({...Z3(ae,{format:dt}),accessList:b,account:Ce,authorizationList:o,blobs:E,data:we,gas:O,gasPrice:z,maxFeePerBlobGas:Z,maxFeePerGas:j,maxPriorityFeePerGas:K,nonce:G,to:lt?void 0:te,value:J},"call");if(c&&og({request:qn})&&!xt&&!yt)try{return await ag(n,{...qn,blockNumber:f,blockTag:l})}catch(ht){if(!(ht instanceof Pf)&&!(ht instanceof io))throw ht}const _n=(()=>{const ht=[qn,nt];return xt&&yt?[...ht,xt,yt]:xt?[...ht,xt]:yt?[...ht,{},yt]:ht})(),Fe=await n.request({method:"eth_call",params:_n});return Fe==="0x"?{data:void 0}:{data:Fe}}catch(ke){const nt=ug(ke),{offchainLookup:yt,offchainLookupSignature:xt}=await import("./ccip-CvjzB18a.js");if(n.ccipRead!==!1&&nt?.slice(0,10)===xt&&te)return{data:await yt(n,{data:nt,to:te})};throw lt&&nt?.slice(0,10)==="0x101bb98d"?new F3({factory:A}):X3(ke,{...i,account:Ce,chain:n.chain})}}function og({request:n}){const{data:i,to:r,...o}=n;return!(!i||i.startsWith(K3)||!r||Object.values(o).filter(c=>typeof c<"u").length>0)}async function ag(n,i){const{batchSize:r=1024,deployless:o=!1,wait:c=0}=typeof n.batch?.multicall=="object"?n.batch.multicall:{},{blockNumber:f,blockTag:l=n.experimental_blockTag??"latest",data:b,to:E}=i,y=(()=>
36{if(o)return null;if(i.multicallAddress)return i.multicallAddress;if(n.chain)return Df({blockNumber:f,chain:n.chain,contract:"multicall3"});throw new Pf})(),T=(typeof f=="bigint"?L(f):void 0)||l,{schedule:A}=zf({id:`${n.uid}.${T}`,wait:c,shouldSplitBatch(z){return z.reduce((j,{data:K})=>j+(K.length-2),0)>r*2},fn:async z=>{const Z=z.map(G=>({allowFailure:!0,callData:G.data,target:G.to})),j=Do({abi:Zs,args:[Z],functionName:"aggregate3"}),K=await n.request({method:"eth_call",params:[{...y===null?{data:Gf({code:Mf,data:j})}:{to:y,data:j}},T]});return Po({abi:Zs,args:[Z],functionName:"aggregate3",data:K||"0x"})}}),[{returnData:S,success:O}]=await A({data:b,to:E});if(!O)throw new Fo({data:S});return S==="0x"?{data:void 0}:{data:S}}function Gf(n){const{code:i,data:r}=n;return Uf({abi:If(["constructor(bytes, bytes)"]),bytecode:Y3,args:[i,r]})}function cg(n){const{data:i,factory:r,factoryData:o,to:c}=n;return Uf({abi:If(["constructor(address, bytes, address, bytes)"]),bytecode:j3,args:[c,i,r,o]})}function ug(n){if(!(n instanceof P))return;const i=n.walk();return typeof i?.data=="object"?i.data?.data:i.data}async function kf(n,i){const{abi:r,address:o,args:c,functionName:f,...l}=i,b=Do({abi:r,args:c,functionName:f});try{const{data:E}=await Lf(n,sg,"call")({...l,data:b,to:o});return Po({abi:r,args:c,functionName:f,data:E||"0x"})}catch(E){throw so(E,{abi:r,address:o,args:c,docsPath:"/docs/contract/readContract",functionName:f})}}function en(n,i="hex"){const r=Hf(n),o=vo(new Uint8Array(r.length));return r.encode(o),i==="hex"?Ie(o.bytes):o.bytes}function Hf(n){return Array.isArray(n)?fg(n.map(i=>Hf(i))):lg(n)}function fg(n){const i=n.reduce((c,f)=>c+f.length,0),r=Wf(i);return{length:i<=55?1+i:1+r+i,encode(c){i<=55?c.pushByte(192+i):(c.pushByte(247+r),r===1?c.pushUint8(i):r===2?c.pushUint16(i):r===3?c.pushUint24(i):c.pushUint32(i));for(const{encode:f}of n)f(c)}}}function lg(n){const i=typeof n=="string"?Jt(n):n,r=Wf(i.length);return{length:i.length===1&&i[0]<128?1:i.length<=55?1+i.length:1+r+i.length,encode(c){i.length===1&&i[0]<128?c.pushBytes(i):i.length<=55?(c.pushByte(128+i.length),c.pushBytes(i)):(c.pushByte(183+r),r===1?c.pushUint8(i.length):r===2?c.pushUint16(i.length):r===3?c.pushUint24(i.length):c.pushUint32(i.length),c.pushBytes(i))}}}function Wf(n){if(n<2**8)return 1;if(n<2**16)return 2;if(n<2**24)return 3;if(n<2**32)return 4;throw new P("Length is too large.")}const Kf={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function pi(n,i){const r={...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,chainId:n.chainId?Ir(n.chainId):void 0,gas:n.gas?BigInt(n.gas):void 0,gasPrice:n.gasPrice?BigInt(n.gasPrice):void 0,maxFeePerBlobGas:n.maxFeePerBlobGas?BigInt(n.maxFeePerBlobGas):void 0,maxFeePerGas:n.maxFeePerGas?BigInt(n.maxFeePerGas):void 0,maxPriorityFeePerGas:n.maxPriorityFeePerGas?BigInt(n.maxPriorityFeePerGas):void 0,nonce:n.nonce?Ir(n.nonce):void 0,to:n.to?n.to:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,type:n.type?Kf[n.type]:void 0,typeHex:n.type?n.type:void 0,value:n.value?BigInt(n.value):void 0,v:n.v?BigInt(n.v):void 0};return n.authorizationList&&(r.authorizationList=dg(n.authorizationList)),r.yParity=(()=>{if(n.yParity)return Number(n.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}const Yf=bi("transaction",pi);function dg(n){return n.map(i=>({address:i.address,chainId:Number(i.chainId),nonce:Number(i.nonce),r:i.r,s:i.s,yParity:Number(i.yParity)}))}function hg(n,i){const r=(n.transactions??[]).map(o=>typeof o=="string"?o:pi(o));return{...n,baseFeePerGas:n.baseFeePerGas?BigInt(n.baseFeePerGas):null,blobGasUsed:n.blobGasUsed?BigInt(n.blobGasUsed):void 0,difficulty:n.difficulty?BigInt(n.difficulty):void 0,excessBlobGas:n.excessBlobGas?BigInt(n.excessBlobGas):void 0,gasLimit:n.gasLimit?BigInt(n.gasLimit):void 0,gasUsed:n.gasUsed?BigInt(n.gasUsed):void 0,hash:n.hash?n.hash:null,logsBloom:n.logsBloom?n.logsBloom:null,nonce:n.nonce?n.nonce:null,number:n.number?BigInt(n.number):null,size:n.size?BigInt(n.size):void 0,timestamp:n.timestamp?BigInt(n.timestamp):void 0,transactions:r,totalDifficulty:n.totalDifficulty?BigInt(n.totalDifficulty):null}}const jf=bi("block",hg);function qf(n){const{kzg:i}=n,r=n.to??(typeof n.blobs[0]=="string"?"hex":"bytes"),o=typeof n.blobs[0]=="string"?n.blobs.map(f=>Jt(f)):n.blobs,c=[];for(const f of o)c.push(Uint8Array.from(i.blobToKzgCommitment(f)));return r==="bytes"?c:c.map(f=>Ie(f))}function Xf(n){const{kzg:i}=n,r=n.to??(typeof n.blobs[0]=="string"?"hex":"bytes"),o=typeof n.blobs[0]=="string"?n.blobs.map(l
36=>Jt(l)):n.blobs,c=typeof n.commitments[0]=="string"?n.commitments.map(l=>Jt(l)):n.commitments,f=[];for(let l=0;l<o.length;l++){const b=o[l],E=c[l];f.push(Uint8Array.from(i.computeBlobKzgProof(b,E)))}return r==="bytes"?f:f.map(l=>Ie(l))}function bg(n,i,r,o){if(typeof n.setBigUint64=="function")return n.setBigUint64(i,r,o);const c=BigInt(32),f=BigInt(4294967295),l=Number(r>>c&f),b=Number(r&f),E=o?4:0,y=o?0:4;n.setUint32(i+E,l,o),n.setUint32(i+y,b,o)}function pg(n,i,r){return n&i^~n&r}function gg(n,i,r){return n&i^n&r^i&r}class Eg extends tf{constructor(i,r,o,c){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=i,this.outputLen=r,this.padOffset=o,this.isLE=c,this.buffer=new Uint8Array(i),this.view=Gs(this.buffer)}update(i){li(this),i=xo(i),Cr(i);const{view:r,buffer:o,blockLen:c}=this,f=i.length;for(let l=0;l<f;){const b=Math.min(c-this.pos,f-l);if(b===c){const E=Gs(i);for(;c<=f-l;l+=c)this.process(E,l);continue}o.set(i.subarray(l,l+b),this.pos),this.pos+=b,l+=b,this.pos===c&&(this.process(r,0),this.pos=0)}return this.length+=i.length,this.roundClean(),this}digestInto(i){li(this),ef(i,this),this.finished=!0;const{buffer:r,view:o,blockLen:c,isLE:f}=this;let{pos:l}=this;r[l++]=128,Rr(this.buffer.subarray(l)),this.padOffset>c-l&&(this.process(o,0),l=0);for(let T=l;T<c;T++)r[T]=0;bg(o,c-8,BigInt(this.length*8),f),this.process(o,0);const b=Gs(i),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=E/4,w=this.get();if(y>w.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;T<y;T++)b.setUint32(4*T,w[T],f)}digest(){const{buffer:i,outputLen:r}=this;this.digestInto(i);const o=i.slice(0,r);return this.destroy(),o}_cloneInto(i){i||(i=new this.constructor),i.set(...this.get());const{blockLen:r,buffer:o,length:c,finished:f,destroyed:l,pos:b}=this;return i.destroyed=l,i.finished=f,i.length=c,i.pos=b,c%r&&i.buffer.set(o),i}clone(){return this._cloneInto()}}const jt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_g=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]),qt=new Uint32Array(64);class mg extends Eg{constructor(i=32){super(64,i,8,!1),this.A=jt[0]|0,this.B=jt[1]|0,this.C=jt[2]|0,this.D=jt[3]|0,this.E=jt[4]|0,this.F=jt[5]|0,this.G=jt[6]|0,this.H=jt[7]|0}get(){const{A:i,B:r,C:o,D:c,E:f,F:l,G:b,H:E}=this;return[i,r,o,c,f,l,b,E]}set(i,r,o,c,f,l,b,E){this.A=i|0,this.B=r|0,this.C=o|0,this.D=c|0,this.E=f|0,this.F=l|0,this.G=b|0,this.H=E|0}process(i,r){for(let T=0;T<16;T++,r+=4)qt[T]=i.getUint32(r,!1);for(let T=16;T<64;T++){const A=qt[T-15],S=qt[T-2],O=Et(A,7)^Et(A,18)^A>>>3,z=Et(S,17)^Et(S,19)^S>>>10;qt[T]=z+qt[T-7]+O+qt[T-16]|0}let{A:o,B:c,C:f,D:l,E:b,F:E,G:y,H:w}=this;for(let T=0;T<64;T++){const A=Et(b,6)^Et(b,11)^Et(b,25),S=w+A+pg(b,E,y)+_g[T]+qt[T]|0,z=(Et(o,2)^Et(o,13)^Et(o,22))+gg(o,c,f)|0;w=y,y=E,E=b,b=l+S|0,l=f,f=c,c=o,o=S+z|0}o=o+this.A|0,c=c+this.B|0,f=f+this.C|0,l=l+this.D|0,b=b+this.E|0,E=E+this.F|0,y=y+this.G|0,w=w+this.H|0,this.set(o,c,f,l,b,E,y,w)}roundClean(){Rr(qt)}destroy(){this.set(0,0,0,0,0,0,0,0),Rr(this.buffer)}}const yg=nf(()=>new mg),xg=yg;function Ag(n,i){return xg(Hn(n,{strict:!1})?yo(n):n)}function wg(n){const{commitment:i,version:r=1}=n,o=n.to??(typeof i=="string"?"hex":"bytes"),c=Ag(i);return c.set([r],0),o==="bytes"?c:Ie(c)}function vg(n){const{commitments:i,version:r}=n,o=n.to??(typeof i[0]=="string"?"hex":"bytes"),c=[];for(const f of i)c.push(wg({commitment:f,to:o,version:r}));return c}const $u=6,Zf=32,$o=4096,Jf=Zf*$o,Mu=Jf*$u-1-1*$o*$u,Qf=1;class Tg extends P{constructor({maxSize:i,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${i} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class e1 extends P{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Sg extends P{constructor({hash:i,size:r}){super(`Versioned hash "${i}
36" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class Ig extends P{constructor({hash:i,version:r}){super(`Versioned hash "${i}" version is invalid.`,{metaMessages:[`Expected: ${Qf}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function Cg(n){const i=n.to??(typeof n.data=="string"?"hex":"bytes"),r=typeof n.data=="string"?Jt(n.data):n.data,o=Ee(r);if(!o)throw new e1;if(o>Mu)throw new Tg({maxSize:Mu,size:o});const c=[];let f=!0,l=0;for(;f;){const b=vo(new Uint8Array(Jf));let E=0;for(;E<$o;){const y=r.slice(l,l+(Zf-1));if(b.pushByte(0),b.pushBytes(y),y.length<31){b.pushByte(128),f=!1;break}E++,l+=31}c.push(b)}return i==="bytes"?c.map(b=>b.bytes):c.map(b=>Ie(b.bytes))}function Rg(n){const{data:i,kzg:r,to:o}=n,c=n.blobs??Cg({data:i,to:o}),f=n.commitments??qf({blobs:c,kzg:r,to:o}),l=n.proofs??Xf({blobs:c,commitments:f,kzg:r,to:o}),b=[];for(let E=0;E<c.length;E++)b.push({blob:c[E],commitment:f[E],proof:l[E]});return b}function Pg(n){if(n.type)return n.type;if(typeof n.authorizationList<"u")return"eip7702";if(typeof n.blobs<"u"||typeof n.blobVersionedHashes<"u"||typeof n.maxFeePerBlobGas<"u"||typeof n.sidecars<"u")return"eip4844";if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")return"eip1559";if(typeof n.gasPrice<"u")return typeof n.accessList<"u"?"eip2930":"legacy";throw new I3({transaction:n})}async function Dg(n,{address:i,blockNumber:r,blockTag:o=n.experimental_blockTag??"latest"}){const c=typeof r=="bigint"?L(r):void 0,f=await n.request({method:"eth_getBalance",params:[i,c||o]});return BigInt(f)}function Bg(n,{args:i,eventName:r}={}){return{...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,logIndex:n.logIndex?Number(n.logIndex):null,transactionHash:n.transactionHash?n.transactionHash:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,...r?{args:i,eventName:r}:{}}}function Og(n){const{authorizationList:i}=n;if(i)for(const r of i){const{chainId:o}=r,c=r.address;if(!Ae(c))throw new Qe({address:c});if(o<0)throw new Qr({chainId:o})}Mo(n)}function Fg(n){const{blobVersionedHashes:i}=n;if(i){if(i.length===0)throw new e1;for(const r of i){const o=Ee(r),c=Ir(Pr(r,0,1));if(o!==32)throw new Sg({hash:r,size:o});if(c!==Qf)throw new Ig({hash:r,version:c})}}Mo(n)}function Mo(n){const{chainId:i,maxPriorityFeePerGas:r,maxFeePerGas:o,to:c}=n;if(i<=0)throw new Qr({chainId:i});if(c&&!Ae(c))throw new Qe({address:c});if(o&&o>e0)throw new Qt({maxFeePerGas:o});if(r&&o&&r>o)throw new kn({maxFeePerGas:o,maxPriorityFeePerGas:r})}function Lg(n){const{chainId:i,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:c,to:f}=n;if(i<=0)throw new Qr({chainId:i});if(f&&!Ae(f))throw new Qe({address:f});if(r||c)throw new P("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>e0)throw new Qt({maxFeePerGas:o})}function $g(n){const{chainId:i,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:c,to:f}=n;if(f&&!Ae(f))throw new Qe({address:f});if(typeof i<"u"&&i<=0)throw new Qr({chainId:i});if(r||c)throw new P("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>e0)throw new Qt({maxFeePerGas:o})}function t0(n){if(!n||n.length===0)return[];const i=[];for(let r=0;r<n.length;r++){const{address:o,storageKeys:c}=n[r];for(let f=0;f<c.length;f++)if(c[f].length-2!==64)throw new C3({storageKey:c[f]});if(!Ae(o,{strict:!1}))throw new Qe({address:o});i.push([o,c])}return i}function Mg(n,i){const r=Pg(n);return r==="eip1559"?Vg(n,i):r==="eip2930"?zg(n,i):r==="eip4844"?Ng(n,i):r==="eip7702"?Ug(n,i):Gg(n,i)}function Ug(n,i){const{authorizationList:r,chainId:o,gas:c,nonce:f,to:l,value:b,maxFeePerGas:E,maxPriorityFeePerGas:y,accessList:w,data:T}=n;Og(n);const A=t0(w),S=kg(r);return Mt(["0x04",en([L(o),f?L(f):"0x",y?L(y):"0x",E?L(E):"0x",c?L(c):"0x",l??"0x",b?L(b):"0x",T??"0x",A,S,...Yn(n,i)])])}function Ng(n,i){const{chainId:r,gas:o,nonce:c,to:f,value:l,maxFeePerBlobGas:b,maxFeePerGas:E,maxPriorityFeePerGas:y,accessList:w,data:T}=n;Fg(n);let A=n.blobVersionedHashes,S=n.sidecars;if(n.blobs&&(typeof A>"u"||typeof S>"u")){const G=typeof n.blobs[0]=="string"?n.blobs:n.blobs.map(oe=>Ie(oe)),te=n.kzg,J=qf({blobs:G,kzg:te});if(typeof A>"u"&&(A=vg({commitments:J})),typeof S>"u"){const oe=Xf({blobs:G,commitments:J,kzg:te});S=Rg({blobs:G,commitments:J,proofs:oe})}}const O=t0(w),z=[L(r),c?L(c):"0x",y?L(y):"0x",E?L(E):"0x",o?L(o):"0x",f??"0x",l?L(l):"0x",T??"0x",O,b?L(b):"0x",A??[],...Yn(n,i)],Z=[],j=[],K=[];if(S)for(let G=0;G<S.length;G++){const{blob:te,commitment:J,proof:oe}=S[G];Z.push(te),j.push(J),K.push(oe)}return Mt(["0x03",en(S?[z,Z,j,K]:z)])}function Vg(n,i){const{chainId:r,gas:o,nonce:c,to:f,value:l,maxFeePerGas:b,maxPriorityFeePerGas:E,accessList:y,data:w}=n;Mo(n);const T=t0(y),A=[L(r),c?L(c):"0x",E?L(E):"0x",b?L(b):"0x",o?L(o):"0x",f??"0x",l?L(l):"0x",w??"0x",T,...Yn(n,i)];return Mt(["0x02",en(A)])}function zg(n,i){const{chainId:r,gas:o,data:c,nonce:f,to:l,value:b,accessList:E,gasPrice:y}=n;Lg(n);const w=t0(E),T=[L(r),f?L(f):"0x",y?L(y):"0x",o?L(o):"0x",l??"0x",b?L(b):"0x",c??"0x",w,...Yn(n,i)];return Mt(["0x01",en(T)])}function Gg(n,i){const{chainId:r=0,gas:o,data:c,nonce:f,to:l,value:b,gasPrice:E}=n;$g(n);let y=[f?L(f):"0x",E?L(E):"0x",o?L(o):"0x",l??"0x",b?L(b):"0x",c??"0x"];if(i){const w=(()=>
36{if(i.v>=35n)return(i.v-35n)/2n>0?i.v:27n+(i.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+i.v-27n);const S=27n+(i.v===27n?0n:1n);if(i.v!==S)throw new S3({v:i.v});return S})(),T=$t(i.r),A=$t(i.s);y=[...y,L(w),T==="0x00"?"0x":T,A==="0x00"?"0x":A]}else r>0&&(y=[...y,L(r),"0x","0x"]);return en(y)}function Yn(n,i){const r=i??n,{v:o,yParity:c}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof o>"u"&&typeof c>"u")return[];const f=$t(r.r),l=$t(r.s);return[typeof c=="number"?c?L(1):"0x":o===0n?"0x":o===1n?L(1):o===27n?"0x":L(1),f==="0x00"?"0x":f,l==="0x00"?"0x":l]}function kg(n){if(!n||n.length===0)return[];const i=[];for(const r of n){const{chainId:o,nonce:c,...f}=r,l=r.address;i.push([o?Je(o):"0x",l,c?Je(c):"0x",...Yn({},f)])}return i}const X0=new wo(8192);function Hg(n,{enabled:i=!0,id:r}){if(!i||!r)return n();if(X0.get(r))return X0.get(r);const o=n().finally(()=>X0.delete(r));return X0.set(r,o),o}async function Wg(n){return new Promise(i=>setTimeout(i,n))}function Kg(n,{delay:i=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((c,f)=>{const l=async({count:b=0}={})=>{const E=async({error:y})=>{const w=typeof i=="function"?i({count:b,error:y}):i;w&&await Wg(w),l({count:b+1})};try{const y=await n();c(y)}catch(y){if(b<r&&await o({count:b,error:y}))return E({error:y});f(y)}};l()})}function Yg(n,i={}){return async(r,o={})=>{const{dedupe:c=!1,methods:f,retryDelay:l=150,retryCount:b=3,uid:E}={...i,...o},{method:y}=r;if(f?.exclude?.includes(y))throw new hn(new Error("method not supported"),{method:y});if(f?.include&&!f.include.includes(y))throw new hn(new Error("method not supported"),{method:y});const w=c?mo(`${E}.${Zt(r)}`):void 0;return Hg(()=>Kg(async()=>{try{return await n(r)}catch(T){const A=T;switch(A.code){case Br.code:throw new Br(A);case Or.code:throw new Or(A);case Fr.code:throw new Fr(A,{method:r.method});case Lr.code:throw new Lr(A);case En.code:throw new En(A);case $r.code:throw new $r(A);case Mr.code:throw new Mr(A);case Ur.code:throw new Ur(A);case zn.code:throw new zn(A);case hn.code:throw new hn(A,{method:r.method});case Gn.code:throw new Gn(A);case Nr.code:throw new Nr(A);case pn.code:throw new pn(A);case Vr.code:throw new Vr(A);case zr.code:throw new zr(A);case Gr.code:throw new Gr(A);case kr.code:throw new kr(A);case Hr.code:throw new Hr(A);case Wr.code:throw new Wr(A);case Kr.code:throw new Kr(A);case Yr.code:throw new Yr(A);case jr.code:throw new jr(A);case qr.code:throw new qr(A);case Xr.code:throw new Xr(A);case Zr.code:throw new Zr(A);case 5e3:throw new pn(A);default:throw T instanceof P?T:new $3(A)}}},{delay:({count:T,error:A})=>{if(A&&A instanceof Sr){const S=A?.headers?.get("Retry-After");if(S?.match(/\d/))return Number.parseInt(S,10)*1e3}return~~(1<<T)*l},retryCount:b,shouldRetry:({error:T})=>jg(T)}),{enabled:c,id:w})}}function jg(n){return"code"in n&&typeof n.code=="number"?n.code===-1||n.code===Gn.code||n.code===En.code:n instanceof Sr&&n.status?n.status===403||n.status===408||n.status===413||n.status===429||n.status===500||n.status===502||n.status===503||n.status===504:!0}function Ge(n){return{formatters:void 0,fees:void 0,serializers:void 0,...n}}const qg={"0x0":"reverted","0x1":"success"};function Xg(n,i){const r={...n,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,contractAddress:n.contractAddress?n.contractAddress:null,cumulativeGasUsed:n.cumulativeGasUsed?BigInt(n.cumulativeGasUsed):null,effectiveGasPrice:n.effectiveGasPrice?BigInt(n.effectiveGasPrice):null,gasUsed:n.gasUsed?BigInt(n.gasUsed):null,logs:n.logs?n.logs.map(o=>Bg(o)):null,to:n.to?n.to:null,transactionIndex:n.transactionIndex?Ir(n.transactionIndex):null,status:n.status?qg[n.status]:null,type:n.type?Kf[n.type]||n.type:null};return n.blobGasPrice&&(r.blobGasPrice=BigInt(n.blobGasPrice)),n.blobGasUsed&&(r.blobGasUsed=BigInt(n.blobGasUsed)),r}const Zg=bi("transactionReceipt",Xg);function Jg(n,{errorInstance:i=new Error("timed out"),timeout:r,signal:o}){return new Promise((c,f)=>{(async()=>{let l;try{const b=new AbortController;r>0&&(l=setTimeout(()=>{o&&b.abort()},r)),c(await n({signal:b?.signal||null}))}catch(b){b?.name==="AbortError"&&f(i),f(b)}finally{clearTimeout(l)}})()})}function Qg(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Uu=Qg();function e9(n,i={}){return{async request(r){const{body:o,fetchFn:c=i.fetchFn??fetch,onRequest:f=i.onRequest,onResponse:l=i.onResponse,timeout:b=i.timeout??1e4}=r,E={...i.fetchOptions??{},...r.fetchOptions??{}},{headers:y,method:w,signal:T}=E;try{const A=await Jg(async({signal:O})=>{const z={...E,body:Array.isArray(o)?Zt(o.map(G=>({jsonrpc:"2.0",id:G.id??Uu.take(),...G}))):Zt({jsonrpc:"2.0",id:o.id??Uu.take(),...o}),headers:{"Content-Type":"application/json",...y},method:w||"POST",signal:T||(b>0?O:null)}
36,Z=new Request(n,z),j=await f?.(Z,z)??{...z,url:n};return await c(j.url??n,j)},{errorInstance:new Fu({body:o,url:n}),timeout:b,signal:!0});l&&await l(A);let S;if(A.headers.get("Content-Type")?.startsWith("application/json"))S=await A.json();else{S=await A.text();try{S=JSON.parse(S||"{}")}catch(O){if(A.ok)throw O;S={error:S}}}if(!A.ok)throw new Sr({body:o,details:Zt(S.error)||A.statusText,headers:A.headers,status:A.status,url:n});return S}catch(A){throw A instanceof Sr||A instanceof Fu?A:new Sr({body:o,cause:A,url:n})}}}}class t9 extends P{constructor({value:i}){super(`Number \`${i}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function n9(n,i){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(n))throw new t9({value:n});let[r,o="0"]=n.split(".");const c=r.startsWith("-");if(c&&(r=r.slice(1)),o=o.replace(/(0+)$/,""),i===0)Math.round(+`.${o}`)===1&&(r=`${BigInt(r)+1n}`),o="";else if(o.length>i){const[f,l,b]=[o.slice(0,i-1),o.slice(i-1,i),o.slice(i)],E=Math.round(+`${l}.${b}`);E>9?o=`${BigInt(f)+BigInt(1)}0`.padStart(f.length+1,"0"):o=`${f}${E}`,o.length>i&&(o=o.slice(1),r=`${BigInt(r)+1n}`),o=o.slice(0,i)}else o=o.padEnd(i,"0");return BigInt(`${c?"-":""}${r}${o}`)}function gi(n,i="wei"){return n9(n,Of[i])}async function r9(n,i){const{account:r,authorizationList:o,allowFailure:c=!0,blockNumber:f,blockOverrides:l,blockTag:b,stateOverride:E}=i,y=i.contracts,{batchSize:w=i.batchSize??1024,deployless:T=i.deployless??!1}=typeof n.batch?.multicall=="object"?n.batch.multicall:{},A=(()=>{if(i.multicallAddress)return i.multicallAddress;if(T)return null;if(n.chain)return Df({blockNumber:f,chain:n.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),S=[[]];let O=0,z=0;for(let K=0;K<y.length;K++){const{abi:G,address:te,args:J,functionName:oe}=y[K];try{const ae=Do({abi:G,args:J,functionName:oe});z+=(ae.length-2)/2,w>0&&z>w&&S[O].length>0&&(O++,z=(ae.length-2)/2,S[O]=[]),S[O]=[...S[O],{allowFailure:!0,callData:ae,target:te}]}catch(ae){const Ce=so(ae,{abi:G,address:te,args:J,docsPath:"/docs/contract/multicall",functionName:oe,sender:r});if(!c)throw Ce;S[O]=[...S[O],{allowFailure:!0,callData:"0x",target:te}]}}const Z=await Promise.allSettled(S.map(K=>Lf(n,kf,"readContract")({...A===null?{code:Mf}:{address:A},abi:Zs,account:r,args:[K],authorizationList:o,blockNumber:f,blockOverrides:l,blockTag:b,functionName:"aggregate3",stateOverride:E}))),j=[];for(let K=0;K<Z.length;K++){const G=Z[K];if(G.status==="rejected"){if(!c)throw G.reason;for(let J=0;J<S[K].length;J++)j.push({status:"failure",error:G.reason,result:void 0});continue}const te=G.value;for(let J=0;J<te.length;J++){const{returnData:oe,success:ae}=te[J],{callData:Ce}=S[K][J],{abi:tt,address:ft,functionName:lt,args:we}=y[j.length];try{if(Ce==="0x")throw new di;if(!ae)throw new Fo({data:oe});const ke=Po({abi:tt,args:we,data:oe,functionName:lt});j.push(c?{result:ke,status:"success"}:ke)}catch(ke){const nt=so(ke,{abi:tt,address:ft,args:we,docsPath:"/docs/contract/multicall",functionName:lt});if(!c)throw nt;j.push({error:nt,result:void 0,status:"failure"})}}}if(j.length!==y.length)throw new P("multicall results mismatch");return j}var Z0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vr={exports:{}};var i9=vr.exports,Nu;function s9(){return Nu||(Nu=1,(function(n,i){(function(){var r,o="4.17.21",c=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",b="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",y=500,w="__lodash_placeholder__",T=1,A=2,S=4,O=1,z=2,Z=1,j=2,K=4,G=8,te=16,J=32,oe=64,ae=128,Ce=256,tt=512,ft=30,lt="...",we=800,ke=16,nt=1,yt=2,xt=3,dt=1/0,At=9007199254740991,qn=17976931348623157e292,_n=NaN,Fe=4294967295,ht=Fe-1,u1=Fe>>>1,f1=[["ary",ae],["bind",Z],["bindKey",j],["curry",G],["curryRight",te],["flip",tt],["partial",J],["partialRight",oe],["rearg",Ce]],mn="[object Arguments]",n0="[object Array]",l1="[object AsyncFunction]",Xn="[object Boolean]",Zn="[object Date]",d1="[object DOMException]",r0="[object Error]",i0="[object Function]",ko="[object GeneratorFunction]",rt="[object Map]",Jn="[object Number]",h1="[object Null]",wt="[object Object]",Ho="[object Promise]",b1="[object Proxy]",Qn="[object RegExp]",it="[object Set]",er="[object String]",s0="[object Symbol]",p1="[object Undef
36ined]",tr="[object WeakMap]",g1="[object WeakSet]",nr="[object ArrayBuffer]",yn="[object DataView]",mi="[object Float32Array]",yi="[object Float64Array]",xi="[object Int8Array]",Ai="[object Int16Array]",wi="[object Int32Array]",vi="[object Uint8Array]",Ti="[object Uint8ClampedArray]",Si="[object Uint16Array]",Ii="[object Uint32Array]",E1=/\b__p \+= '';/g,_1=/\b(__p \+=) '' \+/g,m1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wo=/&(?:amp|lt|gt|quot|#39);/g,Ko=/[&<>"']/g,y1=RegExp(Wo.source),x1=RegExp(Ko.source),A1=/<%-([\s\S]+?)%>/g,w1=/<%([\s\S]+?)%>/g,Yo=/<%=([\s\S]+?)%>/g,v1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T1=/^\w*$/,S1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ci=/[\\^$.*+?()[\]{}|]/g,I1=RegExp(Ci.source),Ri=/^\s+/,C1=/\s/,R1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,P1=/\{\n\/\* \[wrapped with (.+)\] \*/,D1=/,? & /,B1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,O1=/[()=,{}\[\]\/\s]/,F1=/\\(\\)?/g,L1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jo=/\w*$/,$1=/^[-+]0x[0-9a-f]+$/i,M1=/^0b[01]+$/i,U1=/^\[object .+?Constructor\]$/,N1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,z1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 68,501 bytes, lines 36-55
367f]/g,o0=/($^)/,G1=/['\n\r\u2028\u2029\\]/g,a0="\\ud800-\\udfff",k1="\\u0300-\\u036f",H1="\\ufe20-\\ufe2f",W1="\\u20d0-\\u20ff",qo=k1+H1+W1,Xo="\\u2700-\\u27bf",Zo="a-z\\xdf-\\xf6\\xf8-\\xff",K1="\\xac\\xb1\\xd7\\xf7",Y1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",j1="\\u2000-\\u206f",q1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jo="A-Z\\xc0-\\xd6\\xd8-\\xde",Qo="\\ufe0e\\ufe0f",ea=K1+Y1+j1+q1,Pi="['’]",X1="["+a0+"]",ta="["+ea+"]",c0="["+qo+"]",na="\\d+",Z1="["+Xo+"]",ra="["+Zo+"]",ia="[^"+a0+ea+na+Xo+Zo+Jo+"]",Di="\\ud83c[\\udffb-\\udfff]",J1="(?:"+c0+"|"+Di+")",sa="[^"+a0+"]",Bi="(?:\\ud83c[\\udde6-\\uddff]){2}",Oi="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+Jo+"]",oa="\\u200d",aa="(?:"+ra+"|"+ia+")",Q1="(?:"+xn+"|"+ia+")",ca="(?:"+Pi+"(?:d|ll|m|re|s|t|ve))?",ua="(?:"+Pi+"(?:D|LL|M|RE|S|T|VE))?",fa=J1+"?",la="["+Qo+"]?",el="(?:"+oa+"(?:"+[sa,Bi,Oi].join("|")+")"+la+fa+")*",tl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",da=la+fa+el,rl="(?:"+[Z1,Bi,Oi].join("|")+")"+da,il="(?:"+[sa+c0+"?",c0,Bi,Oi,X1].join("|")+")",sl=RegExp(Pi,"g"),ol=RegExp(c0,"g"),Fi=RegExp(Di+"(?="+Di+")|"+il+da,"g"),al=RegExp([xn+"?"+ra+"+"+ca+"(?="+[ta,xn,"$"].join("|")+")",Q1+"+"+ua+"(?="+[ta,xn+aa,"$"].join("|")+")",xn+"?"+aa+"+"+ca,xn+"+"+ua,nl,tl,na,rl].join("|"),"g"),cl=RegExp("["+oa+a0+qo+Qo+"]"),ul=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ll=-1,se={};se[mi]=se[yi]=se[xi]=se[Ai]=se[wi]=se[vi]=se[Ti]=se[Si]=se[Ii]=!0,se[mn]=se[n0]=se[nr]=se[Xn]=se[yn]=se[Zn]=se[r0]=se[i0]=se[rt]=se[Jn]=se[wt]=se[Qn]=se[it]=se[er]=se[tr]=!1;var ie={};ie[mn]=ie[n0]=ie[nr]=ie[yn]=ie[Xn]=ie[Zn]=ie[mi]=ie[yi]=ie[xi]=ie[Ai]=ie[wi]=ie[rt]=ie[Jn]=ie[wt]=ie[Qn]=ie[it]=ie[er]=ie[s0]=ie[vi]=ie[Ti]=ie[Si]=ie[Ii]=!0,ie[r0]=ie[i0]=ie[tr]=!1;var dl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},hl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gl=parseFloat,El=parseInt,ha=typeof Z0=="object"&&Z0&&Z0.Object===Object&&Z0,_l=typeof self=="object"&&self&&self.Object===Object&&self,_e=ha||_l||Function("return this")(),Li=i&&!i.nodeType&&i,nn=Li&&!0&&n&&!n.nodeType&&n,ba=nn&&nn.exports===Li,$i=ba&&ha.process,He=(function(){try{var _=nn&&nn.require&&nn.require("util").types;return _||$i&&$i.binding&&$i.binding("util")}catch{}})(),pa=He&&He.isArrayBuffer,ga=He&&He.isDate,Ea=He&&He.isMap,_a=He&&He.isRegExp,ma=He&&He.isSet,ya=He&&He.isTypedArray;function Le(_,v,x){switch(x.length){case 0:return _.call(v);case 1:return _.call(v,x[0]);case 2:return _.call(v,x[0],x[1]);case 3:return _.call(v,x[0],x[1],x[2])}return _.apply(v,x)}function ml(_,v,x,B){for(var N=-1,Q=_==null?0:_.length;++N<Q;){var be=_[N];v(B,be,x(be),_)}return B}function We(_,v){for(var x=-1,B=_==null?0:_.length;++x<B&&v(_[x],x,_)!==!1;);return _}function yl(_,v){for(var x=_==null?0:_.length;x--&&v(_[x],x,_)!==!1;);return _}function xa(_,v){for(var x=-1,B=_==null?0:_.length;++x<B;)if(!v(_[x],x,_))return!1;return!0}function Nt(_,v){for(var x=-1,B=_==null?0:_.length,N=0,Q=[];++x<B;){var be=_[x];v(be,x,_)&&(Q[N++]=be)}return Q}function u0(_,v){var x=_==null?0:_.length;return!!x&&An(_,v,0)>-1}function Mi(_,v,x){for(var B=-1,N=_==null?0:_.length;++B<N;)if(x(v,_[B]))return!0;return!1}function ce(_,v){for(var x=-1,B=_==null?0:_.length,N=Array(B);++x<B;)N[x]=v(_[x],x,_);return N}function Vt(_,v){for(var x=-1,B=v.length,N=_.length;++x<B;)_[N+x]=v[x];return _}function Ui(_,v,x,B){var N=-1,Q=_==null?0:_.length;for(B&&Q&&(x=_[++N]);++N<Q;)x=v(x,_[N],N,_);return x}function xl(_,v,x,B){var N=_==null?0:_.length;for(B&&N&&(x=_[--N]);N--;)x=v(x,_[N],N,_);return x}function Ni(_,v){for(var x=-1,B=_==null?0:_.length;++x<B;)if(v(_[x],x,_))return!0;return!1}var Al=Vi("length");function wl(_){return _.split("")}function vl(_){return _.match(B1)||[]}function Aa(_,v,x){var B;return x(_,function(N,Q,be){if(v(N,Q,be))return B=Q,!1}),B}function f0(_,v,x,B){for(var N=_.length,Q=x+(B?1:-1);B?Q--:++Q<N;)if(v(_[Q],Q,_))return Q;return-1}function An(_,v,x){return v===v?$l(_,v,x):f0(_,wa,x)}function Tl(_,v,x,B){for(var N=x-1,Q=_.length;++N<Q;)if(B(_[N],v))return N;return-1}function wa(_){return _!==_}function va(_,v){var x=_==null?0:_.length;return x?Gi(_,v)/x:_n}function Vi(_){return function(v){return v==null?r:v[_]}}function zi(_){return function(v){return _==null?r:_[v]}}function Ta(_,v,x,B,N){return N(_,function(Q,be,re){x=B?(B=!1,Q):v(x,Q,be,re)}),x}function Sl(_,v){var x=_.length;for(_.sort(v);x--;)_[x]=_[x].value;return _}function Gi(_,v){for(var x,B=-1,N=_.length;++B<N;){var Q=v(_[B]);Q!==r&&(x=x===r?Q:x+Q)}return x}function ki(_,v){for(var x=-1,B=Array(_);++x<_;)B[x]=v(x);return B}function Il(_,v){return ce(v,function(x){return[x,_[x]]})}function Sa(_){return _&&_.slice(0,Pa(_)+1).replace(Ri,"")}function $e(_){return function(v){return _(v)}}function Hi(_,v){return ce(v,function(x){return _[x]})}function rr(_,v){return _.has(v)}function Ia(_,v){for(var x=-1,B=_.length;++x<B&&An(v,_[x],0)>-1;);return x}function Ca(_,v){for(var x=_.length;x--&&An(v,_[x],0)>-1;);return x}function Cl(_,v){for(var x=_.length,B=0;x--;)_[x]===v&&++B;return B}var Rl=zi(dl),Pl=zi(hl);function Dl(_){return"\\"+pl[_]}function Bl(_,v){return _==null?r:_[v]}function wn(_){return cl.test(_)}function Ol(_){return ul.test(_)}function Fl(_){for(var v,x=[];!(v=_.next()).done;)x.push(v.value);return x}function Wi(_){var v=-1,x=Array(_.size);return _.forEach(function(B,N){x[++v]=[N,B]}),x}function Ra(_,v){return function(x){return _(v(x))}}function zt(_,v){for(var x=-1,B=_.length,N=0,Q=[];++x<B;){var be=_[x];(be===v||be===w)&&(_[x]=w,Q[N++]=x)}return Q}function l0(_){var v=-1,x=Array(_.size);return _.forEach(function(B){x[++v]=B}),x}function Ll(_){var v=-1,x=Array(_.size);return _.forEach(function(B){x[++v]=[B,B]}),x}function $l(_,v,x){for(var B=x-1,N=_.length;++B<N;)if(_[B]===v)return B;return-1}function Ml(_,v,x){for(var B=x+1;B--;)if(_[B]===v)return B;return B}function vn(_){return wn(_)?Nl(_):Al(_)}function st(_){return wn(_)?Vl(_):wl(_)}function Pa(_){for(var v=_.length;v--&&C1.test(_.charAt(v)););return v}var Ul=zi(bl);function Nl(_){for(var v=Fi.lastIndex=0;Fi.test(_);)++v;return v}function Vl(_){return _.match(Fi)||[]}function zl(_){return _.match(al)||[]}var Gl=(function _(v){v=v==null?_e:Tn.defaults(_e.Object(),v,Tn.pick(_e,fl));var x=v.Array,B=v.Date,N=v.Error,Q=v.Function,be=v.Math,re=v.Object,Ki=v.RegExp,kl=v.String,Ke=v.TypeError,d0=x.prototype,Hl=Q.prototype,Sn=re.prototype,h0=v["__core-js_shared__"],b0=Hl.toString,ne=Sn.hasOwnProperty,Wl=0,Da=(function(){var e=/[^.]+$/.exec(h0&&h0.keys&&h0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),p0=Sn.toString,Kl=b0.call(re),Yl=_e._,jl=Ki("^"+b0.call(ne).replace(Ci,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g0=ba?v.Buffer:r,Gt=v.Symbol,E0=v.Uint8Array,Ba=g0?g0.allocUnsafe:r,_0=Ra(re.getPrototypeOf,re),Oa=re.create,Fa=Sn.propertyIsEnumerable,m0=d0.splice,La=Gt?Gt.isConcatSpreadable:r,ir=Gt?Gt.iterator:r,rn=Gt?Gt.toStringTag:r,y0=(function(){try{var e=un(re,"defineProperty");return e({},"",{}),e}catch{}})(),ql=v.clearTimeout!==_e.clearTimeout&&v.clearTimeout,Xl=B&&B.now!==_e.Date.now&&B.now,Zl=v.setTimeout!==_e.setTimeout&&v.setTimeout,x0=be.ceil,A0=be.floor,Yi=re.getOwnPropertySymbols,Jl=g0?g0.isBuffer:r,$a=v.isFinite,Ql=d0.join,ed=Ra(re.keys,re),pe=be.max,ye=be.min,td=B.now,nd=v.parseInt,Ma=be.random,rd=d0.reverse,ji=un(v,"DataView"),sr=un(v,"Map"),qi=un(v,"Promise"),In=un(v,"Set"),or=un(v,"WeakMap"),ar=un(re,"create"),w0=or&&new or,Cn={},id=fn(ji),sd=fn(sr),od=fn(qi),ad=fn(In),cd=fn(or),v0=Gt?Gt.prototype:r,cr=v0?v0.valueOf:r,Ua=v0?v0.toString:r;function d(e){if(fe(e)&&!V(e)&&!(e instanceof q)){if(e instanceof Ye)return e;if(ne.call(e,"__wrapped__"))return Nc(e)}return new Ye(e)}var Rn=(function(){function e(){}return function(t){if(!ue(t))return{};if(Oa)return Oa(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function T0(){}function Ye(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}d.templateSettings={escape:A1,evaluate:w1,interpolate:Yo,variable:"",imports:{_:d}},d.prototype=T0.prototype,d.prototype.constructor=d,Ye.prototype=Rn(T0.prototype),Ye.prototype.constructor=Ye;function q(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Fe,this.__views__=[]}function ud(){var e=new q(this.__wrapped__);return e.__actions__=Re(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Re(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Re(this.__views__),e}function fd(){if(this.__filtered__){var e=new q(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ld(){var e=this.__wrapped__.value(),t=this.__dir__,s=V(e),a=t<0,u=s?e.length:0,h=w5(0,u,this.__views__),p=h.start,g=h.end,m=g-p,I=a?g:p-1,C=this.__iteratees__,R=C.length,D=0,F=ye(m,this.__takeCount__);if(!s||!a&&u==m&&F==m)return cc(e,this.__actions__);var M=[];e:for(;m--&&D<F;){I+=t;for(var H=-1,U=e[I];++H<R;){var Y=C[H],X=Y.iteratee,Ne=Y.type,Se=X(U);if(Ne==yt)U=Se;else if(!Se){if(Ne==nt)continue e;break e}}M[D++]=U}return M}q.prototype=Rn(T0.prototype),q.prototype.constructor=q;function sn(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function dd(){this.__data__=ar?ar(null):{},this.size=0}function hd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bd(e){var t=this.__data__;if(ar){var s=t[e];return s===E?r:s}return ne.call(t,e)?t[e]:r}function pd(e){var t=this.__data__;return ar?t[e]!==r:ne.call(t,e)}function gd(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=ar&&t===r?E:t,this}sn.prototype.clear=dd,sn.prototype.delete=hd,sn.prototype.get=bd,sn.prototype.has=pd,sn.prototype.set=gd;function vt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function Ed(){this.__data__=[],this.size=0}function _d(e){var t=this.__data__,s=S0(t,e);if(s<0)return!1;var a=t.length-1;return s==a?t.pop():m0.call(t,s,1),--this.size,!0}function md(e){var t=this.__data__,s=S0(t,e);return s<0?r:t[s][1]}function yd(e){return S0(this.__data__,e)>-1}function xd(e,t){var s=this.__data__,a=S0(s,e);return a<0?(++this.size,s.push([e,t])):s[a][1]=t,this}vt.prototype.clear=Ed,vt.prototype.delete=_d,vt.prototype.get=md,vt.prototype.has=yd,vt.prototype.set=xd;function Tt(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function Ad(){this.size=0,this.__data__={hash:new sn,map:new(sr||vt),string:new sn}}function wd(e){var t=U0(this,e).delete(e);return this.size-=t?1:0,t}function vd(e){return U0(this,e).get(e)}function Td(e){return U0(this,e).has(e)}function Sd(e,t){var s=U0(this,e),a=s.size;return s.set(e,t),this.size+=s.size==a?0:1,this}Tt.prototype.clear=Ad,Tt.prototype.delete=wd,Tt.prototype.get=vd,Tt.prototype.has=Td,Tt.prototype.set=Sd;function on(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Tt;++t<s;)this.add(e[t])}function Id(e){return this.__data__.set(e,E),this}function Cd(e){return this.__data__.has(e)}on.prototype.add=on.prototype.push=Id,on.prototype.has=Cd;function ot(e){var t=this.__data__=new vt(e);this.size=t.size}function Rd(){this.__data__=new vt,this.size=0}function Pd(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function Dd(e){return this.__data__.get(e)}function Bd(e){return this.__data__.has(e)}function Od(e,t){var s=this.__data__;if(s instanceof vt){var a=s.__data__;if(!sr||a.length<c-1)return a.push([e,t]),this.size=++s.size,this;s=this.__data__=new Tt(a)}return s.set(e,t),this.size=s.size,this}ot.prototype.clear=Rd,ot.prototype.delete=Pd,ot.prototype.get=Dd,ot.prototype.has=Bd,ot.prototype.set=Od;function Na(e,t){var s=V(e),a=!s&&ln(e),u=!s&&!a&&Yt(e),h=!s&&!a&&!u&&On(e),p=s||a||u||h,g=p?ki(e.length,kl):[],m=g.length;for(var I in e)(t||ne.call(e,I))&&!(p&&(I=="length"||u&&(I=="offset"||I=="parent")||h&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||Rt(I,m)))&&g.push(I);return g}function Va(e){var t=e.length;return t?e[os(0,t-1)]:r}function Fd(e,t){return N0(Re(e),an(t,0,e.length))}function Ld(e){return N0(Re(e))}function Xi(e,t,s){(s!==r&&!at(e[t],s)||s===r&&!(t in e))&&St(e,t,s)}function ur(e,t,s){var a=e[t];(!(ne.call(e,t)&&at(a,s))||s===r&&!(t in e))&&St(e,t,s)}function S0(e,t){for(var s=e.length;s--;)if(at(e[s][0],t))return s;return-1}function $d(e,t,s,a){return kt(e,function(u,h,p){t(a,u,s(u),p)}),a}function za(e,t){return e&&pt(t,ge(t),e)}function Md(e,t){return e&&pt(t,De(t),e)}function St(e,t,s){t=="__proto__"&&y0?y0(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function Zi(e,t){for(var s=-1,a=t.length,u=x(a),h=e==null;++s<a;)u[s]=h?r:Ds(e,t[s]);return u}function an(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function je(e,t,s,a,u,h){var p,g=t&T,m=t&A,I=t&S;if(s&&(p=u?s(e,a,u,h):s(e)),p!==r)return p;if(!ue(e))return e;var C=V(e);if(C){if(p=T5(e),!g)return Re(e,p)}else{var R=xe(e),D=R==i0||R==ko;if(Yt(e))return lc(e,g);if(R==wt||R==mn||D&&!u){if(p=m||D?{}:Pc(e),!g)return m?b5(e,Md(p,e)):h5(e,za(p,e))}else{if(!ie[R])return u?e:{};p=S5(e,R,g)}}h||(h=new ot);var F=h.get(e);if(F)return F;h.set(e,p),su(e)?e.forEach(function(U){p.add(je(U,t,s,U,e,h))}):ru(e)&&e.forEach(function(U,Y){p.set(Y,je(U,t,s,Y,e,h))});var M=I?m?Es:gs:m?De:ge,H=C?r:M(e);return We(H||e,function(U,Y){H&&(Y=U,U=e[Y]),ur(p,Y,je(U,t,s,Y,e,h))}),p}function Ud(e){var t=ge(e);return function(s){return Ga(s,e,t)}}function Ga(e,t,s){var a=s.length;if(e==null)return!a;for(e=re(e);a--;){var u=s[a],h=t[u],p=e[u];if(p===r&&!(u in e)||!h(p))return!1}return!0}function ka(e,t,s){if(typeof e!="function")throw new Ke(l);return gr(function(){e.apply(r,s)},t)}function fr(e,t,s,a){var u=-1,h=u0,p=!0,g=e.length,m=[],I=t.length;if(!g)return m;s&&(t=ce(t,$e(s))),a?(h=Mi,p=!1):t.length>=c&&(h=rr,p=!1,t=new on(t));e:for(;++u<g;){var C=e[u],R=s==null?C:s(C);if(C=a||C!==0?C:0,p&&R===R){for(var D=I;D--;)if(t[D]===R)continue e;m.push(C)}else h(t,R,a)||m.push(C)}return m}var kt=gc(bt),Ha=gc(Qi,!0);function Nd(e,t){var s=!0;return kt(e,function(a,u,h){return s=!!t(a,u,h),s}),s}function I0(e,t,s){for(var a=-1,u=e.length;++a<u;){var h=e[a],p=t(h);if(p!=null&&(g===r?p===p&&!Ue(p):s(p,g)))var g=p,m=h}return m}function Vd(e,t,s,a){var u=e.length;for(s=k(s),s<0&&(s=-s>u?0:u+s),a=a===r||a>u?u:k(a),a<0&&(a+=u),a=s>a?0:au(a);s<a;)e[s++]=t;return e}function Wa(e,t){var s=[];return kt(e,function(a,u,h){t(a,u,h)&&s.push(a)}),s}function me(e,t,s,a,u){var h=-1,p=e.length;for(s||(s=C5),u||(u=[]);++h<p;){var g=e[h];t>0&&s(g)?t>1?me(g,t-1,s,a,u):Vt(u,g):a||(u[u.length]=g)}return u}var Ji=Ec(),Ka=Ec(!0);function bt(e,t){return e&&Ji(e,t,ge)}function Qi(e,t){return e&&Ka(e,t,ge)}function C0(e,t){return Nt(t,function(s){return Pt(e[s])})}function cn(e,t){t=Wt(t,e);for(var s=0,a=t.length;e!=null&&s<a;)e=e[gt(t[s++])];return s&&s==a?e:r}function Ya(e,t,s){var a=t(e);return V(e)?a:Vt(a,s(e))}function ve(e){return e==null?e===r?p1:h1:rn&&rn in re(e)?A5(e):L5(e)}function es(e,t){return e>t}function zd(e,t){return e!=null&&ne.call(e,t)}function Gd(e,t){return e!=null&&t in re(e)}function kd(e,t,s){return e>=ye(t,s)&&e<pe(t,s)}function ts(e,t,s){for(var a=s?Mi:u0,u=e[0].length,h=e.length,p=h,g=x(h),m=1/0,I=[];p--;){var C=e[p];p&&t&&(C=ce(C,$e(t))),m=ye(C.length,m),g[p]=!s&&(t||u>=120&&C.length>=120)?new on(p&&C):r}C=e[0];var R=-1,D=g[0];e:for(;++R<u&&I.length<m;){var F=C[R],M=t?t(F):F;if(F=s||F!==0?F:0,!(D?rr(D,M):a(I,M,s))){for(p=h;--p;){var H=g[p];if(!(H?rr(H,M):a(e[p],M,s)))continue e}D&&D.push(M),I.push(F)}}return I}function Hd(e,t,s,a){return bt(e,function(u,h,p){t(a,s(u),h,p)}),a}function lr(e,t,s){t=Wt(t,e),e=Fc(e,t);var a=e==null?e:e[gt(Xe(t))];return a==null?r:Le(a,e,s)}function ja(e){return fe(e)&&ve(e)==mn}function Wd(e){return fe(e)&&ve(e)==nr}function Kd(e){return fe(e)&&ve(e)==Zn}function dr(e,t,s,a,u){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:Yd(e,t,s,a,dr,u)}function Yd(e,t,s,a,u,h){var p=V(e),g=V(t),m=p?n0:xe(e),I=g?n0:xe(t);m=m==mn?wt:m,I=I==mn?wt:I;var C=m==wt,R=I==wt,D=m==I;if(D&&Yt(e)){if(!Yt(t))return!1;p=!0,C=!1}if(D&&!C)return h||(h=new ot),p||On(e)?Ic(e,t,s,a,u,h):y5(e,t,m,s,a,u,h);if(!(s&O)){var F=C&&ne.call(e,"__wrapped__"),M=R&&ne.call(t,"__wrapped__");if(F||M){var H=F?e.value():e,U=M?t.value():t;return h||(h=new ot),u(H,U,s,a,h)}}return D?(h||(h=new ot),x5(e,t,s,a,u,h)):!1}function jd(e){return fe(e)&&xe(e)==rt}function ns(e,t,s,a){var u=s.length,h=u,p=!a;if(e==null)return!h;for(e=re(e);u--;){var g=s[u];if(p&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++u<h;){g=s[u];var m=g[0],I=e[m],C=g[1];if(p&&g[2]){if(I===r&&!(m in e))return!1}else{var R=new ot;if(a)var D=a(I,C,m,e,t,R);if(!(D===r?dr(C,I,O|z,a,R):D))return!1}}return!0}function qa(e){if(!ue(e)||P5(e))return!1;var t=Pt(e)?jl:U1;return t.test(fn(e))}function qd(e){return fe(e)&&ve(e)==Qn}function Xd(e){return fe(e)&&xe(e)==it}function Zd(e){return fe(e)&&W0(e.length)&&!!se[ve(e)]}function Xa(e){return typeof e=="function"?e:e==null?Be:typeof e=="object"?V(e)?Qa(e[0],e[1]):Ja(e):_u(e)}function rs(e){if(!pr(e))return ed(e);var t=[];for(var s in re(e))ne.call(e,s)&&s!="constructor"&&t.push(s);return t}function Jd(e){if(!ue(e))return F5(e);var t=pr(e),s=[];for(var a in e)a=="constructor"&&(t||!ne.call(e,a))||s.push(a);return s}function is(e,t){return e<t}function Za(e,t){var s=-1,a=Pe(e)?x(e.length):[];return kt(e,function(u,h,p){a[++s]=t(u,h,p)}),a}function Ja(e){var t=ms(e);return t.length==1&&t[0][2]?Bc(t[0][0],t[0][1]):function(s){return s===e||ns(s,e,t)}}function Qa(e,t){return xs(e)&&Dc(t)?Bc(gt(e),t):function(s){var a=Ds(s,e);return a===r&&a===t?Bs(s,e):dr(t,a,O|z)}}function R0(e,t,s,a,u){e!==t&&Ji(t,function(h,p){if(u||(u=new ot),ue(h))Qd(e,t,p,s,R0,a,u);else{var g=a?a(ws(e,p),h,p+"",e,t,u):r;g===r&&(g=h),Xi(e,p,g)}},De)}function Qd(e,t,s,a,u,h,p){var g=ws(e,s),m=ws(t,s),I=p.get(m);if(I){Xi(e,s,I);return}var C=h?h(g,m,s+"",e,t,p):r,R=C===r;if(R){var D=V(m),F=!D&&Yt(m),M=!D&&!F&&On(m);C=m,D||F||M?V(g)?C=g:le(g)?C=Re(g):F?(R=!1,C=lc(m,!0)):M?(R=!1,C=dc(m,!0)):C=[]:Er(m)||ln(m)?(C=g,ln(g)?C=cu(g):(!ue(g)||Pt(g))&&(C=Pc(m))):R=!1}R&&(p.set(m,C),u(C,m,a,h,p),p.delete(m)),Xi(e,s,C)}function ec(e,t){var s=e.length;if(s)return t+=t<0?s:0,Rt(t,s)?e[t]:r}function tc(e,t,s){t.length?t=ce(t,function(h){return V(h)?function(p){return cn(p,h.length===1?h[0]:h)}:h}):t=[Be];var a=-1;t=ce(t,$e($()));var u=Za(e,function(h,p,g){var m=ce(t,function(I){return I(h)});return{criteria:m,index:++a,value:h}});return Sl(u,function(h,p){return d5(h,p,s)})}function e5(e,t){return nc(e,t,function(s,a){return Bs(e,a)})}function nc(e,t,s){for(var a=-1,u=t.length,h={};++a<u;){var p=t[a],g=cn(e,p);s(g,p)&&hr(h,Wt(p,e),g)}return h}function t5(e){return function(t){return cn(t,e)}}function ss(e,t,s,a){var u=a?Tl:An,h=-1,p=t.length,g=e;for(e===t&&(t=Re(t)),s&&(g=ce(e,$e(s)));++h<p;)for(var m=0,I=t[h],C=s?s(I):I;(m=u(g,C,m,a))>-1;)g!==e&&m0.call(g,m,1),m0.call(e,m,1);return e}function rc(e,t){for(var s=e?t.length:0,a=s-1;s--;){var u=t[s];if(s==a||u!==h){var h=u;Rt(u)?m0.call(e,u,1):us(e,u)}}return e}function os(e,t){return e+A0(Ma()*(t-e+1))}function n5(e,t,s,a){for(var u=-1,h=pe(x0((t-e)/(s||1)),0),p=x(h);h--;)p[a?h:++u]=e,e+=s;return p}function as(e,t){var s="";if(!e||t<1||t>At)return s;do t%2&&(s+=e),t=A0(t/2),t&&(e+=e);while(t);return s}function W(e,t){return vs(Oc(e,t,Be),e+"")}function r5(e){return Va(Fn(e))}function i5(e,t){var s=Fn(e);return N0(s,an(t,0,s.length))}function hr(e,t,s,a){if(!ue(e))return e;t=Wt(t,e);for(var u=-1,h=t.length,p=h-1,g=e;g!=null&&++u<h;){var m=gt(t[u]),I=s;if(m==="__proto__"||m==="constructor"||m==="prototype")return e;if(u!=p){var C=g[m];I=a?a(C,m,g):r,I===r&&(I=ue(C)?C:Rt(t[u+1])?[]:{})}ur(g,m,I),g=g[m]}return e}var ic=w0?function(e,t){return w0.set(e,t),e}:Be,s5=y0?function(e,t){return y0(e,"toString",{configurable:!0,enumerable:!1,value:Fs(t),writable:!0})}:Be;function o5(e){return N0(Fn(e))}function qe(e,t,s){var a=-1,u=e.length;t<0&&(t=-t>u?0:u+t),s=s>u?u:s,s<0&&(s+=u),u=t>s?0:s-t>>>0,t>>>=0;for(var h=x(u);++a<u;)h[a]=e[a+t];return h}function a5(e,t){var s;return kt(e,function(a,u,h){return s=t(a,u,h),!s}),!!s}function P0(e,t,s){var a=0,u=e==null?a:e.length;if(typeof t=="number"&&t===t&&u<=u1){for(;a<u;){var h=a+u>>>1,p=e[h];p!==null&&!Ue(p)&&(s?p<=t:p<t)?a=h+1:u=h}return u}return cs(e,t,Be,s)}function cs(e,t,s,a){var u=0,h=e==null?0:e.length;if(h===0)return 0;t=s(t);for(var p=t!==t,g=t===null,m=Ue(t),I=t===r;u<h;){var C=A0((u+h)/2),R=s(e[C]),D=R!==r,F=R===null,M=R===R,H=Ue(R);if(p)var U=a||M;else I?U=M&&(a||D):g?U=M&&D&&(a||!F):m?U=M&&D&&!F&&(a||!H):F||H?U=!1:U=a?R<=t:R<t;U?u=C+1:h=C}return ye(h,ht)}function sc(e,t){for(var s=-1,a=e.length,u=0,h=[];++s<a;){var p=e[s],g=t?t(p):p;if(!s||!at(g,m)){var m=g;h[u++]=p===0?0:p}}return h}function oc(e){return typeof e=="number"?e:Ue(e)?_n:+e}function Me(e){if(typeof e=="string")return e;if(V(e))return ce(e,Me)+"";if(Ue(e))return Ua?Ua.call(e):"";var t=e+"";return t=="0"&&1/e==-dt?"-0":t}function Ht(e,t,s){var a=-1,u=u0,h=e.length,p=!0,g=[],m=g;if(s)p=!1,u=Mi;else if(h>=c){var I=t?null:_5(e);if(I)return l0(I);p=!1,u=rr,m=new on}else m=t?[]:g;e:for(;++a<h;){var C=e[a],R=t?t(C):C;if(C=s||C!==0?C:0,p&&R===R){for(var D=m.length;D--;)if(m[D]===R)continue e;t&&m.push(R),g.push(C)}else u(m,R,s)||(m!==g&&m.push(R),g.push(C))}return g}function us(e,t){return t=Wt(t,e),e=Fc(e,t),e==null||delete e[gt(Xe(t))]}function ac(e,t,s,a){return hr(e,t,s(cn(e,t)),a)}function D0(e,t,s,a){for(var u=e.length,h=a?u:-1;(a?h--:++h<u)&&t(e[h],h,e););return s?qe(e,a?0:h,a?h+1:u):qe(e,a?h+1:0,a?u:h)}function cc(e,t){var s=e;return s instanceof q&&(s=s.value()),Ui(t,function(a,u){return u.func.apply(u.thisArg,Vt([a],u.args))},s)}function fs(e,t,s){var a=e.length;if(a<2)return a?Ht(e[0]):[];for(var u=-1,h=x(a);++u<a;)for(var p=e[u],g=-1;++g<a;)g!=u&&(h[u]=fr(h[u]||p,e[g],t,s));return Ht(me(h,1),t,s)}function uc(e,t,s){for(var a=-1,u=e.length,h=t.length,p={};++a<u;){var g=a<h?t[a]:r;s(p,e[a],g)}return p}function ls(e){return le(e)?e:[]}function ds(e){return typeof e=="function"?e:Be}function Wt(e,t){return V(e)?e:xs(e,t)?[e]:Uc(ee(e))}var c5=W;function Kt(e,t,s){var a=e.length;return s=s===r?a:s,!t&&s>=a?e:qe(e,t,s)}var fc=ql||function(e){return _e.clearTimeout(e)};function lc(e,t){if(t)return e.slice();var s=e.length,a=Ba?Ba(s):new e.constructor(s);return e.copy(a),a}function hs(e){var t=new e.constructor(e.byteLength);return new E0(t).set(new E0(e)),t}function u5(e,t){var s=t?hs(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function f5(e){var t=new e.constructor(e.source,jo.exec(e));return t.lastIndex=e.lastIndex,t}function l5(e){return cr?re(cr.call(e)):{}}function dc(e,t){var s=t?hs(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function hc(e,t){if(e!==t){var s=e!==r,a=e===null,u=e===e,h=Ue(e),p=t!==r,g=t===null,m=t===t,I=Ue(t);if(!g&&!I&&!h&&e>t||h&&p&&m&&!g&&!I||a&&p&&m||!s&&m||!u)return 1;if(!a&&!h&&!I&&e<t||I&&s&&u&&!a&&!h||g&&s&&u||!p&&u||!m)return-1}return 0}function d5(e,t,s){for(var a=-1,u=e.criteria,h=t.criteria,p=u.length,g=s.length;++a<p;){var m=hc(u[a],h[a]);if(m){if(a>=g)return m;var I=s[a];return m*(I=="desc"?-1:1)}}return e.index-t.index}function bc(e,t,s,a){for(var u=-1,h=e.length,p=s.length,g=-1,m=t.length,I=pe(h-p,0),C=x(m+I),R=!a;++g<m;)C[g]=t[g];for(;++u<p;)(R||u<h)&&(C[s[u]]=e[u]);for(;I--;)C[g++]=e[u++];return C}function pc(e,t,s,a){for(var u=-1,h=e.length,p=-1,g=s.length,m=-1,I=t.length,C=pe(h-g,0),R=x(C+I),D=!a;++u<C;)R[u]=e[u];for(var F=u;++m<I;)R[F+m]=t[m];for(;++p<g;)(D||u<h)&&(R[F+s[p]]=e[u++]);return R}function Re(e,t){var s=-1,a=e.length;for(t||(t=x(a));++s<a;)t[s]=e[s];return t}function pt(e,t,s,a){var u=!s;s||(s={});for(var h=-1,p=t.length;++h<p;){var g=t[h],m=a?a(s[g],e[g],g,s,e):r;m===r&&(m=e[g]),u?St(s,g,m):ur(s,g,m)}return s}function h5(e,t){return pt(e,ys(e),t)}function b5(e,t){return pt(e,Cc(e),t)}function B0(e,t){return function(s,a){var u=V(s)?ml:$d,h=t?t():{};return u(s,e,$(a,2),h)}}function Pn(e){return W(function(t,s){var a=-1,u=s.length,h=u>1?s[u-1]:r,p=u>2?s[2]:r;for(h=e.length>3&&typeof h=="function"?(u--,h):r,p&&Te(s[0],s[1],p)&&(h=u<3?r:h,u=1),t=re(t);++a<u;){var g=s[a];g&&e(t,g,a,h)}return t})}function gc(e,t){return function(s,a){if(s==null)return s;if(!Pe(s))return e(s,a);for(var u=s.length,h=t?u:-1,p=re(s);(t?h--:++h<u)&&a(p[h],h,p)!==!1;);return s}}function Ec(e){return function(t,s,a){for(var u=-1,h=re(t),p=a(t),g=p.length;g--;){var m=p[e?g:++u];if(s(h[m],m,h)===!1)break}return t}}function p5(e,t,s){var a=t&Z,u=br(e);function h(){var p=this&&this!==_e&&this instanceof h?u:e;return p.apply(a?s:this,arguments)}return h}function _c(e){return function(t){t=ee(t);var s=wn(t)?st(t):r,a=s?s[0]:t.charAt(0),u=s?Kt(s,1).join(""):t.slice(1);return a[e]()+u}}function Dn(e){return function(t){return Ui(gu(pu(t).replace(sl,"")),e,"")}}function br(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=Rn(e.prototype),a=e.apply(s,t);return ue(a)?a:s}}function g5(e,t,s){var a=br(e);function u(){for(var h=arguments.length,p=x(h),g=h,m=Bn(u);g--;)p[g]=arguments[g];var I=h<3&&p[0]!==m&&p[h-1]!==m?[]:zt(p,m);if(h-=I.length,h<s)return wc(e,t,O0,u.placeholder,r,p,I,r,r,s-h);var C=this&&this!==_e&&this instanceof u?a:e;return Le(C,this,p)}return u}function mc(e){return function(t,s,a){var u=re(t);if(!Pe(t)){var h=$(s,3);t=ge(t),s=function(g){return h(u[g],g,u)}}var p=e(t,s,a);return p>-1?u[h?t[p]:p]:r}}function yc(e){return Ct(function(t){var s=t.length,a=s,u=Ye.prototype.thru;for(e&&t.reverse();a--;){var h=t[a];if(typeof h!="function")throw new Ke(l);if(u&&!p&&M0(h)=="wrapper")var p=new Ye([],!0)}for(a=p?a:s;++a<s;){h=t[a];var g=M0(h),m=g=="wrapper"?_s(h):r;m&&As(m[0])&&m[1]==(ae|G|J|Ce)&&!m[4].length&&m[9]==1?p=p[M0(m[0])].apply(p,m[3]):p=h.length==1&&As(h)?p[g]():p.thru(h)}return function(){var I=arguments,C=I[0];if(p&&I.length==1&&V(C))return p.plant(C).value();for(var R=0,D=s?t[R].apply(this,I):C;++R<s;)D=t[R].call(this,D);return D}})}function O0(e,t,s,a,u,h,p,g,m,I){var C=t&ae,R=t&Z,D=t&j,F=t&(G|te),M=t&tt,H=D?r:br(e);function U(){for(var Y=arguments.length,X=x(Y),Ne=Y;Ne--;)X[Ne]=arguments[Ne];if(F)var Se=Bn(U),Ve=Cl(X,Se);if(a&&(X=bc(X,a,u,F)),h&&(X=pc(X,h,p,F)),Y-=Ve,F&&Y<I){var de=zt(X,Se);return wc(e,t,O0,U.placeholder,s,X,de,g,m,I-Y)}var ct=R?s:this,Bt=D?ct[e]:e;return Y=X.length,g?X=$5(X,g):M&&Y>1&&X.reverse(),C&&m<Y&&(X.length=m),this&&this!==_e&&this instanceof U&&(Bt=H||br(Bt)),Bt.apply(ct,X)}return U}function xc(e,t){return function(s,a){return Hd(s,e,t(a),{})}}function F0(e,t){return function(s,a){var u;if(s===r&&a===r)return t;if(s!==r&&(u=s),a!==r){if(u===r)return a;typeof s=="string"||typeof a=="string"?(s=Me(s),a=Me(a)):(s=oc(s),a=oc(a)),u=e(s,a)}return u}}function bs(e){return Ct(function(t){return t=ce(t,$e($())),W(function(s){var a=this;return e(t,function(u){return Le(u,a,s)})})})}function L0(e,t){t=t===r?" ":Me(t);var s=t.length;if(s<2)return s?as(t,e):t;var a=as(t,x0(e/vn(t)));return wn(t)?Kt(st(a),0,e).join(""):a.slice(0,e)}function E5(e,t,s,a){var u=t&Z,h=br(e);function p(){for(var g=-1,m=arguments.length,I=-1,C=a.length,R=x(C+m),D=this&&this!==_e&&this instanceof p?h:e;++I<C;)R[I]=a[I];for(;m--;)R[I++]=arguments[++g];return Le(D,u?s:this,R)}return p}function Ac(e){return function(t,s,a){return a&&typeof a!="number"&&Te(t,s,a)&&(s=a=r),t=Dt(t),s===r?(s=t,t=0):s=Dt(s),a=a===r?t<s?1:-1:Dt(a),n5(t,s,a,e)}}function $0(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=Ze(t),s=Ze(s)),e(t,s)}}function wc(e,t,s,a,u,h,p,g,m,I){var C=t&G,R=C?p:r,D=C?r:p,F=C?h:r,M=C?r:h;t|=C?J:oe,t&=~(C?oe:J),t&K||(t&=-4);var H=[e,t,u,F,R,M,D,g,m,I],U=s.apply(r,H);return As(e)&&Lc(U,H),U.placeholder=a,$c(U,e,t)}function ps(e){var t=be[e];return function(s,a){if(s=Ze(s),a=a==null?0:ye(k(a),292),a&&$a(s)){var u=(ee(s)+"e").split("e"),h=t(u[0]+"e"+(+u[1]+a));return u=(ee(h)+"e").split("e"),+(u[0]+"e"+(+u[1]-a))}return t(s)}}var _5=In&&1/l0(new In([,-0]))[1]==dt?function(e){return new In(e)}:Ms;function vc(e){return function(t){var s=xe(t);return s==rt?Wi(t):s==it?Ll(t):Il(t,e(t))}}function It(e,t,s,a,u,h,p,g){var m=t&j;if(!m&&typeof e!="function")throw new Ke(l);var I=a?a.length:0;if(I||(t&=-97,a=u=r),p=p===r?p:pe(k(p),0),g=g===r?g:k(g),I-=u?u.length:0,t&oe){var C=a,R=u;a=u=r}var D=m?r:_s(e),F=[e,t,s,a,u,C,R,h,p,g];if(D&&O5(F,D),e=F[0],t=F[1],s=F[2],a=F[3],u=F[4],g=F[9]=F[9]===r?m?0:e.length:pe(F[9]-I,0),!g&&t&(G|te)&&(t&=-25),!t||t==Z)var M=p5(e,t,s);else t==G||t==te?M=g5(e,t,g):(t==J||t==(Z|J))&&!u.length?M=E5(e,t,s,a):M=O0.apply(r,F);var H=D?ic:Lc;return $c(H(M,F),e,t)}function Tc(e,t,s,a){return e===r||at(e,Sn[s])&&!ne.call(a,s)?t:e}function Sc(e,t,s,a,u,h){return ue(e)&&ue(t)&&(h.set(t,e),R0(e,t,r,Sc,h),h.delete(t)),e}function m5(e){return Er(e)?r:e}function Ic(e,t,s,a,u,h){var p=s&O,g=e.length,m=t.length;if(g!=m&&!(p&&m>g))return!1;var I=h.get(e),C=h.get(t);if(I&&C)return I==t&&C==e;var R=-1,D=!0,F=s&z?new on:r;for(h.set(e,t),h.set(t,e);++R<g;){var M=e[R],H=t[R];if(a)var U=p?a(H,M,R,t,e,h):a(M,H,R,e,t,h);if(U!==r){if(U)continue;D=!1;break}if(F){if(!Ni(t,function(Y,X){if(!rr(F,X)&&(M===Y||u(M,Y,s,a,h)))return F.push(X)})){D=!1;break}}else if(!(M===H||u(M,H,s,a,h))){D=!1;break}}return h.delete(e),h.delete(t),D}function y5(e,t,s,a,u,h,p){switch(s){case yn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nr:return!(e.byteLength!=t.byteLength||!h(new E0(e),new E0(t)));case Xn:case Zn:case Jn:return at(+e,+t);case r0:return e.name==t.name&&e.message==t.message;case Qn:case er:return e==t+"";case rt:var g=Wi;case it:var m=a&O;if(g||(g=l0),e.size!=t.size&&!m)return!1;var I=p.get(e);if(I)return I==t;a|=z,p.set(e,t);var C=Ic(g(e),g(t),a,u,h,p);return p.delete(e),C;case s0:if(cr)return cr.call(e)==cr.call(t)}return!1}function x5(e,t,s,a,u,h){var p=s&O,g=gs(e),m=g.length,I=gs(t),C=I.length;if(m!=C&&!p)return!1;for(var R=m;R--;){var D=g[R];if(!(p?D in t:ne.call(t,D)))return!1}var F=h.get(e),M=h.get(t);if(F&&M)return F==t&&M==e;var H=!0;h.set(e,t),h.set(t,e);for(var U=p;++R<m;){D=g[R];var Y=e[D],X=t[D];if(a)var Ne=p?a(X,Y,D,t,e,h):a(Y,X,D,e,t,h);if(!(Ne===r?Y===X||u(Y,X,s,a,h):Ne)){H=!1;break}U||(U=D=="constructor")}if(H&&!U){var Se=e.constructor,Ve=t.constructor;Se!=Ve&&"constructor"in e&&"constructor"in t&&!(typeof Se=="function"&&Se instanceof Se&&typeof Ve=="function"&&Ve instanceof Ve)&&(H=!1)}return h.delete(e),h.delete(t),H}function Ct(e){return vs(Oc(e,r,Gc),e+"")}function gs(e){return Ya(e,ge,ys)}function Es(e){return Ya(e,De,Cc)}var _s=w0?function(e){return w0.get(e)}:Ms;function M0(e){for(var t=e.name+"",s=Cn[t],a=ne.call(Cn,t)?s.length:0;a--;){var u=s[a],h=u.func;if(h==null||h==e)return u.name}return t}function Bn(e){var t=ne.call(d,"placeholder")?d:e;return t.placeholder}function $(){var e=d.iteratee||Ls;return e=e===Ls?Xa:e,arguments.length?e(arguments[0],arguments[1]):e}function U0(e,t){var s=e.__data__;return R5(t)?s[typeof t=="string"?"string":"hash"]:s.map}function ms(e){for(var t=ge(e),s=t.length;s--;){var a=t[s],u=e[a];t[s]=[a,u,Dc(u)]}return t}function un(e,t){var s=Bl(e,t);return qa(s)?s:r}function A5(e){var t=ne.call(e,rn),s=e[rn];try{e[rn]=r;var a=!0}catch{}var u=p0.call(e);return a&&(t?e[rn]=s:delete e[rn]),u}var ys=Yi?function(e){return e==null?[]:(e=re(e),Nt(Yi(e),function(t){return Fa.call(e,t)}))}:Us,Cc=Yi?function(e){for(var t=[];e;)Vt(t,ys(e)),e=_0(e);return t}:Us,xe=ve;(ji&&xe(new ji(new ArrayBuffer(1)))!=yn||sr&&xe(new sr)!=rt||qi&&xe(qi.resolve())!=Ho||In&&xe(new In)!=it||or&&xe(new or)!=tr)&&(xe=function(e){var t=ve(e),s=t==wt?e.constructor:r,a=s?fn(s):"";if(a)switch(a){case id:return yn;case sd:return rt;case od:return Ho;case ad:return it;case cd:return tr}return t});function w5(e,t,s){for(var a=-1,u=s.length;++a<u;){var h=s[a],p=h.size;switch(h.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ye(t,e+p);break;case"takeRight":e=pe(e,t-p);break}}return{start:e,end:t}}function v5(e){var t=e.match(P1);return t?t[1].split(D1):[]}function Rc(e,t,s){t=Wt(t,e);for(var a=-1,u=t.length,h=!1;++a<u;){var p=gt(t[a]);if(!(h=e!=null&&s(e,p)))break;e=e[p]}return h||++a!=u?h:(u=e==null?0:e.length,!!u&&W0(u)&&Rt(p,u)&&(V(e)||ln(e)))}function T5(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&ne.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Pc(e){return typeof e.constructor=="function"&&!pr(e)?Rn(_0(e)):{}}function S5(e,t,s){var a=e.constructor;switch(t){case nr:return hs(e);case Xn:case Zn:return new a(+e);case yn:return u5(e,s);case mi:case yi:case xi:case Ai:case wi:case vi:case Ti:case Si:case Ii:return dc(e,s);case rt:return new a;case Jn:case er:return new a(e);case Qn:return f5(e);case it:return new a;case s0:return l5(e)}}function I5(e,t){var s=t.length;if(!s)return e;var a=s-1;return t[a]=(s>1?"& ":"")+t[a],t=t.join(s>2?", ":" "),e.replace(R1,`{
37/* [wrapped with `+t+`] */
38`)}function C5(e){return V(e)||ln(e)||!!(La&&e&&e[La])}function Rt(e,t){var s=typeof e;return t=t??At,!!t&&(s=="number"||s!="symbol"&&V1.test(e))&&e>-1&&e%1==0&&e<t}function Te(e,t,s){if(!ue(s))return!1;var a=typeof t;return(a=="number"?Pe(s)&&Rt(t,s.length):a=="string"&&t in s)?at(s[t],e):!1}function xs(e,t){if(V(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||Ue(e)?!0:T1.test(e)||!v1.test(e)||t!=null&&e in re(t)}function R5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function As(e){var t=M0(e),s=d[t];if(typeof s!="function"||!(t in q.prototype))return!1;if(e===s)return!0;var a=_s(s);return!!a&&e===a[0]}function P5(e){return!!Da&&Da in e}var D5=h0?Pt:Ns;function pr(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||Sn;return e===s}function Dc(e){return e===e&&!ue(e)}function Bc(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in re(s))}}function B5(e){var t=k0(e,function(a){return s.size===y&&s.clear(),a}),s=t.cache;return t}function O5(e,t){var s=e[1],a=t[1],u=s|a,h=u<(Z|j|ae),p=a==ae&&s==G||a==ae&&s==Ce&&e[7].length<=t[8]||a==(ae|Ce)&&t[7].length<=t[8]&&s==G;if(!(h||p))return e;a&Z&&(e[2]=t[2],u|=s&Z?0:K);var g=t[3];if(g){var m=e[3];e[3]=m?bc(m,g,t[4]):g,e[4]=m?zt(e[3],w):t[4]}return g=t[5],g&&(m=e[5],e[5]=m?pc(m,g,t[6]):g,e[6]=m?zt(e[5],w):t[6]),g=t[7],g&&(e[7]=g),a&ae&&(e[8]=e[8]==null?t[8]:ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function F5(e){var t=[];if(e!=null)for(var s in re(e))t.push(s);return t}function L5(e){return p0.call(e)}function Oc(e,t,s){return t=pe(t===r?e.length-1:t,0),function(){for(var a=arguments,u=-1,h=pe(a.length-t,0),p=x(h);++u<h;)p[u]=a[t+u];u=-1;for(var g=x(t+1);++u<t;)g[u]=a[u];return g[t]=s(p),Le(e,this,g)}}function Fc(e,t){return t.length<2?e:cn(e,qe(t,0,-1))}function $5(e,t){for(var s=e.length,a=ye(t.length,s),u=Re(e);a--;){var h=t[a];e[a]=Rt(h,s)?u[h]:r}return e}function ws(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lc=Mc(ic),gr=Zl||function(e,t){return _e.setTimeout(e,t)},vs=Mc(s5);function $c(e,t,s){var a=t+"";return vs(e,I5(a,M5(v5(a),s)))}function Mc(e){var t=0,s=0;return function(){var a=td(),u=ke-(a-s);if(s=a,u>0){if(++t>=we)return arguments[0]}else t=0;return e.apply(r,arguments)}}function N0(e,t){var s=-1,a=e.length,u=a-1;for(t=t===r?a:t;++s<t;){var h=os(s,u),p=e[h];e[h]=e[s],e[s]=p}return e.length=t,e}var Uc=B5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S1,function(s,a,u,h){t.push(u?h.replace(F1,"$1"):a||s)}),t});function gt(e){if(typeof e=="string"||Ue(e))return e;var t=e+"";return t=="0"&&1/e==-dt?"-0":t}function fn(e){if(e!=null){try{return b0.call(e)}catch{}try{return e+""}catch{}}return""}function M5(e,t){return We(f1,function(s){var a="_."+s[0];t&s[1]&&!u0(e,a)&&e.push(a)}),e.sort()}function Nc(e){if(e instanceof q)return e.clone();var t=new Ye(e.__wrapped__,e.__chain__);return t.__actions__=Re(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function U5(e,t,s){(s?Te(e,t,s):t===r)?t=1:t=pe(k(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var u=0,h=0,p=x(x0(a/t));u<a;)p[h++]=qe(e,u,u+=t);return p}function N5(e){for(var t=-1,s=e==null?0:e.length,a=0,u=[];++t<s;){var h=e[t];h&&(u[a++]=h)}return u}function V5(){var e=arguments.length;if(!e)return[];for(var t=x(e-1),s=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Vt(V(s)?Re(s):[s],me(t,1))}var z5=W(function(e,t){return le(e)?fr(e,me(t,1,le,!0)):[]}),G5=W(function(e,t){var s=Xe(t);return le(s)&&(s=r),le(e)?fr(e,me(t,1,le,!0),$(s,2)):[]}),k5=W(function(e,t){var s=Xe(t);return le(s)&&(s=r),le(e)?fr(e,me(t,1,le,!0),r,s):[]});function H5(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:k(t),qe(e,t<0?0:t,a)):[]}function W5(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:k(t),t=a-t,qe(e,0,t<0?0:t)):[]}function K5(e,t){return e&&e.length?D0(e,$(t,3),!0,!0):[]}function Y5(e,t){return e&&e.length?D0(e,$(t,3),!0):[]}function j5(e,t,s,a){var u=e==null?0:e.length;return u?(s&&typeof s!="number"&&Te(e,t,s)&&(s=0,a=u),Vd(e,t,s,a)):[]}function Vc(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var u=s==null?0:k(s);return u<0&&(u=pe(a+u,0)),f0(e,$(t,3),u)}function zc(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var u=a-1;return s!==r&&(u=k(s),u=s<0?pe(a+u,0):ye(u,a-1)),f0(e,$(t,3),u,!0)}function Gc(e){var t=e==null?0:e.length;return t?me(e,1):[]}function q5(e){var t=e==null?0:e.length;return t?me(e,dt):[]}function X5(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:k(t),me(e,t)):[]}function Z5(e){for(var t=-1,s=e==null?0:e.length,a={};++t<s;){var u=e[t];a[u[0]]=u[1]}return a}function kc(e){return e&&e.length?e[0]:r}function J5(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var u=s==null?0:k(s);return u<0&&(u=pe(a+u,0)),An(e,t,u)}function Q5(e){var t=e==null?0:e.length;return t?qe(e,0,-1):[]}var e6=W(function(e){var t=ce(e,ls);return t.length&&t[0]===e[0]?ts(t):[]}),t6=W(function(e){var t=Xe(e),s=ce(e,ls);return t===Xe(s)?t=r:s.pop(),s.length&&s[0]===e[0]?ts(s,$(t,2)):[]}),n6=W(function(e){var t=Xe(e),s=ce(e,ls);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?ts(s,r,t):[]});function r6(e,t){return e==null?"":Ql.call(e,t)}function Xe(e){var t=e==null?0:e.length;return t?e[t-1]:r}function i6(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var u=a;return s!==r&&(u=k(s),u=u<0?pe(a+u,0):ye(u,a-1)),t===t?Ml(e,t,u):f0(e,wa,u,!0)}function s6(e,t){return e&&e.length?ec(e,k(t)):r}var o6=W(Hc);function Hc(e,t){return e&&e.length&&t&&t.length?ss(e,t):e}function a6(e,t,s){return e&&e.length&&t&&t.length?ss(e,t,$(s,2)):e}function c6(e,t,s){return e&&e.length&&t&&t.length?ss(e,t,r,s):e}var u6=Ct(function(e,t){var s=e==null?0:e.length,a=Zi(e,t);return rc(e,ce(t,function(u){return Rt(u,s)?+u:u}).sort(hc)),a});function f6(e,t){var s=[];if(!(e&&e.length))return s;var a=-1,u=[],h=e.length;for(t=$(t,3);++a<h;){var p=e[a];t(p,a,e)&&(s.push(p),u.push(a))}return rc(e,u),s}function Ts(e){return e==null?e:rd.call(e)}function l6(e,t,s){var a=e==null?0:e.length;return a?(s&&typeof s!="number"&&Te(e,t,s)?(t=0,s=a):(t=t==null?0:k(t),s=s===r?a:k(s)),qe(e,t,s)):[]}function d6(e,t){return P0(e,t)}function h6(e,t,s){return cs(e,t,$(s,2))}function b6(e,t){var s=e==null?0:e.length;if(s){var a=P0(e,t);if(a<s&&at(e[a],t))return a}return-1}function p6(e,t){return P0(e,t,!0)}function g6(e,t,s){return cs(e,t,$(s,2),!0)}function E6(e,t){var s=e==null?0:e.length;if(s){var a=P0(e,t,!0)-1;if(at(e[a],t))return a}return-1}function _6(e){return e&&e.length?sc(e):[]}function m6(e,t){return e&&e.length?sc(e,$(t,2)):[]}function y6(e){var t=e==null?0:e.length;return t?qe(e,1,t):[]}function x6(e,t,s){return e&&e.length?(t=s||t===r?1:k(t),qe(e,0,t<0?0:t)):[]}function A6(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:k(t),t=a-t,qe(e,t<0?0:t,a)):[]}function w6(e,t){return e&&e.length?D0(e,$(t,3),!1,!0):[]}function v6(e,t){return e&&e.length?D0(e,$(t,3)):[]}var T6=W(function(e){return Ht(me(e,1,le,!0))}),S6=W(function(e){var t=Xe(e);return le(t)&&(t=r),Ht(me(e,1,le,!0),$(t,2))}),I6=W(function(e){var t=Xe(e);return t=typeof t=="function"?t:r,Ht(me(e,1,le,!0),r,t)});function C6(e){return e&&e.length?Ht(e):[]}function R6(e,t){return e&&e.length?Ht(e,$(t,2)):[]}function P6(e,t){return t=typeof t=="function"?t:r,e&&e.length?Ht(e,r,t):[]}function Ss(e){if(!(e&&e.length))return[];var t=0;return e=Nt(e,function(s){if(le(s))return t=pe(s.length,t),!0}),ki(t,function(s){return ce(e,Vi(s))})}function Wc(e,t){if(!(e&&e.length))return[];var s=Ss(e);return t==null?s:ce(s,function(a){return Le(t,r,a)})}var D6=W(function(e,t){return le(e)?fr(e,t):[]}),B6=W(function(e){return fs(Nt(e,le))}),O6=W(function(e){var t=Xe(e);return le(t)&&(t=r),fs(Nt(e,le),$(t,2))}),F6=W(function(e){var t=Xe(e);return t=typeof t=="function"?t:r,fs(Nt(e,le),r,t)}),L6=W(Ss);function $6(e,t){return uc(e||[],t||[],ur)}function M6(e,t){return uc(e||[],t||[],hr)}var U6=W(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,Wc(e,s)});function Kc(e){var t=d(e);return t.__chain__=!0,t}function N6(e,t){return t(e),e}function V0(e,t){return t(e)}var V6=Ct(function(e){var t=e.length,s=t?e[0]:0,a=this.__wrapped__,u=function(h){return Zi(h,e)};return t>1||this.__actions__.length||!(a instanceof q)||!Rt(s)?this.thru(u):(a=a.slice(s,+s+(t?1:0)),a.__actions__.push({func:V0,args:[u],thisArg:r}),new Ye(a,this.__chain__).thru(function(h){return t&&!h.length&&h.push(r),h}))});function z6(){return Kc(this)}function G6(){return new Ye(this.value(),this.__chain__)}function k6(){this.__values__===r&&(this.__values__=ou(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function H6(){return this}function W6(e){for(var t,s=this;s instanceof T0;){var a=Nc(s);a.__index__=0,a.__values__=r,t?u.__wrapped__=a:t=a;var u=a;s=s.__wrapped__}return u.__wrapped__=e,t}function K6(){var e=this.__wrapped__;if(e instanceof q){var t=e;return this.__actions__.length&&(t=new q(this)),t=t.reverse(),t.__actions__.push({func:V0,args:[Ts],thisArg:r}),new Ye(t,this.__chain__)}return this.thru(Ts)}function Y6(){return cc(this.__wrapped__,this.__actions__)}var j6=B0(function(e,t,s){ne.call(e,s)?++e[s]:St(e,s,1)});function q6(e,t,s){var a=V(e)?xa:Nd;return s&&Te(e,t,s)&&(t=r),a(e,$(t,3))}function X6(e,t){var s=V(e)?Nt:Wa;return s(e,$(t,3))}var Z6=mc(Vc),J6=mc(zc);function Q6(e,t){return me(z0(e,t),1)}function eh(e,t){return me(z0(e,t),dt)}function th(e,t,s){return s=s===r?1:k(s),me(z0(e,t),s)}function Yc(e,t){var s=V(e)?We:kt;return s(e,$(t,3))}function jc(e,t){var s=V(e)?yl:Ha;return s(e,$(t,3))}var nh=B0(function(e,t,s){ne.call(e,s)?e[s].push(t):St(e,s,[t])});function rh(e,t,s,a){e=Pe(e)?e:Fn(e),s=s&&!a?k(s):0;var u=e.length;return s<0&&(s=pe(u+s,0)),K0(e)?s<=u&&e.indexOf(t,s)>-1:!!u&&An(e,t,s)>-1}var ih=W(function(e,t,s){var a=-1,u=typeof t=="function",h=Pe(e)?x(e.length):[];return kt(e,function(p){h[++a]=u?Le(t,p,s):lr(p,t,s)}),h}),sh=B0(function(e,t,s){St(e,s,t)});function z0(e,t){var s=V(e)?ce:Za;return s(e,$(t,3))}function oh(e,t,s,a){return e==null?[]:(V(t)||(t=t==null?[]:[t]),s=a?r:s,V(s)||(s=s==null?[]:[s]),tc(e,t,s))}var ah=B0(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function ch(e,t,s){var a=V(e)?Ui:Ta,u=arguments.length<3;return a(e,$(t,4),s,u,kt)}function uh(e,t,s){var a=V(e)?xl:Ta,u=arguments.length<3;return a(e,$(t,4),s,u,Ha)}function fh(e,t){var s=V(e)?Nt:Wa;return s(e,H0($(t,3)))}function lh(e){var t=V(e)?Va:r5;return t(e)}function dh(e,t,s){(s?Te(e,t,s):t===r)?t=1:t=k(t);var a=V(e)?Fd:i5;return a(e,t)}function hh(e){var t=V(e)?Ld:o5;return t(e)}function bh(e){if(e==null)return 0;if(Pe(e))return K0(e)?vn(e):e.length;var t=xe(e);return t==rt||t==it?e.size:rs(e).length}function ph(e,t,s){var a=V(e)?Ni:a5;return s&&Te(e,t,s)&&(t=r),a(e,$(t,3))}var gh=W(function(e,t){if(e==null)return[];var s=t.length;return s>1&&Te(e,t[0],t[1])?t=[]:s>2&&Te(t[0],t[1],t[2])&&(t=[t[0]]),tc(e,me(t,1),[])}),G0=Xl||function(){return _e.Date.now()};function Eh(e,t){if(typeof t!="function")throw new Ke(l);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function qc(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,It(e,ae,r,r,r,r,t)}function Xc(e,t){var s;if(typeof t!="function")throw new Ke(l);return e=k(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var Is=W(function(e,t,s){var a=Z;if(s.length){var u=zt(s,Bn(Is));a|=J}return It(e,a,t,s,u)}),Zc=W(function(e,t,s){var a=Z|j;if(s.length){var u=zt(s,Bn(Zc));a|=J}return It(t,a,e,s,u)});function Jc(e,t,s){t=s?r:t;var a=It(e,G,r,r,r,r,r,t);return a.placeholder=Jc.placeholder,a}function Qc(e,t,s){t=s?r:t;var a=It(e,te,r,r,r,r,r,t);return a.placeholder=Qc.placeholder,a}function eu(e,t,s){var a,u,h,p,g,m,I=0,C=!1,R=!1,D=!0;if(typeof e!="function")throw new Ke(l);t=Ze(t)||0,ue(s)&&(C=!!s.leading,R="maxWait"in s,h=R?pe(Ze(s.maxWait)||0,t):h,D="trailing"in s?!!s.trailing:D);function F(de){var ct=a,Bt=u;return a=u=r,I=de,p=e.apply(Bt,ct),p}function M(de){return I=de,g=gr(Y,t),C?F(de):p}function H(de){var ct=de-m,Bt=de-I,mu=t-ct;return R?ye(mu,h-Bt):mu}function U(de){var ct=de-m,Bt=de-I;return m===r||ct>=t||ct<0||R&&Bt>=h}function Y(){var de=G0();if(U(de))return X(de);g=gr(Y,H(de))}function X(de){return g=r,D&&a?F(de):(a=u=r,p)}function Ne(){g!==r&&fc(g),I=0,a=m=u=g=r}function Se(){return g===r?p:X(G0())}function Ve(){var de=G0(),ct=U(de);if(a=arguments,u=this,m=de,ct){if(g===r)return M(m);if(R)return fc(g),g=gr(Y,t),F(m)}return g===r&&(g=gr(Y,t)),p}return Ve.cancel=Ne,Ve.flush=Se,Ve}var _h=W(function(e,t){return ka(e,1,t)}),mh=W(function(e,t,s){return ka(e,Ze(t)||0,s)});function yh(e){return It(e,tt)}function k0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ke(l);var s=function(){var a=arguments,u=t?t.apply(this,a):a[0],h=s.cache;if(h.has(u))return h.get(u);var p=e.apply(this,a);return s.cache=h.set(u,p)||h,p};return s.cache=new(k0.Cache||Tt),s}k0.Cache=Tt;function H0(e){if(typeof e!="function")throw new Ke(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function xh(e){return Xc(2,e)}var Ah=c5(function(e,t){t=t.length==1&&V(t[0])?ce(t[0],$e($())):ce(me(t,1),$e($()));var s=t.length;return W(function(a){for(var u=-1,h=ye(a.length,s);++u<h;)a[u]=t[u].call(this,a[u]);return Le(e,this,a)})}),Cs=W(function(e,t){var s=zt(t,Bn(Cs));return It(e,J,r,t,s)}),tu=W(function(e,t){var s=zt(t,Bn(tu));return It(e,oe,r,t,s)}),wh=Ct(function(e,t){return It(e,Ce,r,r,r,t)});function vh(e,t){if(typeof e!="function")throw new Ke(l);return t=t===r?t:k(t),W(e,t)}function Th(e,t){if(typeof e!="function")throw new Ke(l);return t=t==null?0:pe(k(t),0),W(function(s){var a=s[t],u=Kt(s,0,t);return a&&Vt(u,a),Le(e,this,u)})}function Sh(e,t,s){var a=!0,u=!0;if(typeof e!="function")throw new Ke(l);return ue(s)&&(a="leading"in s?!!s.leading:a,u="trailing"in s?!!s.trailing:u),eu(e,t,{leading:a,maxWait:t,trailing:u})}function Ih(e){return qc(e,1)}function Ch(e,t){return Cs(ds(t),e)}function Rh(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function Ph(e){return je(e,S)}function Dh(e,t){return t=typeof t=="function"?t:r,je(e,S,t)}function Bh(e){return je(e,T|S)}function Oh(e,t){return t=typeof t=="function"?t:r,je(e,T|S,t)}function Fh(e,t){return t==null||Ga(e,t,ge(t))}function at(e,t){return e===t||e!==e&&t!==t}var Lh=$0(es),$h=$0(function(e,t){return e>=t}),ln=ja((function(){return arguments})())?ja:function(e){return fe(e)&&ne.call(e,"callee")&&!Fa.call(e,"callee")},V=x.isArray,Mh=pa?$e(pa):Wd;function Pe(e){return e!=null&&W0(e.length)&&!Pt(e)}function le(e){return fe(e)&&Pe(e)}function Uh(e){return e===!0||e===!1||fe(e)&&ve(e)==Xn}var Yt=Jl||Ns,Nh=ga?$e(ga):Kd;function Vh(e){return fe(e)&&e.nodeType===1&&!Er(e)}function zh(e){if(e==null)return!0;if(Pe(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||Yt(e)||On(e)||ln(e)))return!e.length;var t=xe(e);if(t==rt||t==it)return!e.size;if(pr(e))return!rs(e).length;for(var s in e)if(ne.call(e,s))return!1;return!0}function Gh(e,t){return dr(e,t)}function kh(e,t,s){s=typeof s=="function"?s:r;var a=s?s(e,t):r;return a===r?dr(e,t,r,s):!!a}function Rs(e){if(!fe(e))return!1;var t=ve(e);return t==r0||t==d1||typeof e.message=="string"&&typeof e.name=="string"&&!Er(e)}function Hh(e){return typeof e=="number"&&$a(e)}function Pt(e){if(!ue(e))return!1;var t=ve(e);return t==i0||t==ko||t==l1||t==b1}function nu(e){return typeof e=="number"&&e==k(e)}function W0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=At}function ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var ru=Ea?$e(Ea):jd;function Wh(e,t){return e===t||ns(e,t,ms(t))}function Kh(e,t,s){return s=typeof s=="function"?s:r,ns(e,t,ms(t),s)}function Yh(e){return iu(e)&&e!=+e}function jh(e){if(D5(e))throw new N(f);return qa(e)}function qh(e){return e===null}function Xh(e){return e==null}function iu(e){return typeof e=="number"||fe(e)&&ve(e)==Jn}function Er(e){if(!fe(e)||ve(e)!=wt)return!1;var t=_0(e);if(t===null)return!0;var s=ne.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&b0.call(s)==Kl}var Ps=_a?$e(_a):qd;function Zh(e){return nu(e)&&e>=-At&&e<=At}var su=ma?$e(ma):Xd;function K0(e){return typeof e=="string"||!V(e)&&fe(e)&&ve(e)==er}function Ue(e){return typeof e=="symbol"||fe(e)&&ve(e)==s0}var On=ya?$e(ya):Zd;function Jh(e){return e===r}function Qh(e){return fe(e)&&xe(e)==tr}function eb(e){return fe(e)&&ve(e)==g1}var tb=$0(is),nb=$0(function(e,t){return e<=t});function ou(e){if(!e)return[];if(Pe(e))return K0(e)?st(e):Re(e);if(ir&&e[ir])return Fl(e[ir]());var t=xe(e),s=t==rt?Wi:t==it?l0:Fn;return s(e)}function Dt(e){if(!e)return e===0?e:0;if(e=Ze(e),e===dt||e===-dt){var t=e<0?-1:1;return t*qn}return e===e?e:0}function k(e){var t=Dt(e),s=t%1;return t===t?s?t-s:t:0}function au(e){return e?an(k(e),0,Fe):0}function Ze(e){if(typeof e=="number")return e;if(Ue(e))return _n;if(ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sa(e);var s=M1.test(e);return s||N1.test(e)?El(e.slice(2),s?2:8):$1.test(e)?_n:+e}function cu(e){return pt(e,De(e))}function rb(e){return e?an(k(e),-At,At):e===0?e:0}function ee(e){return e==null?"":Me(e)}var ib=Pn(function(e,t){if(pr(t)||Pe(t)){pt(t,ge(t),e);return}for(var s in t)ne.call(t,s)&&ur(e,s,t[s])}),uu=Pn(function(e,t){pt(t,De(t),e)}),Y0=Pn(function(e,t,s,a){pt(t,De(t),e,a)}),sb=Pn(function(e,t,s,a){pt(t,ge(t),e,a)}),ob=Ct(Zi);function ab(e,t){var s=Rn(e);return t==null?s:za(s,t)}var cb=W(function(e,t){e=re(e);var s=-1,a=t.length,u=a>2?t[2]:r;for(u&&Te(t[0],t[1],u)&&(a=1);++s<a;)for(var h=t[s],p=De(h),g=-1,m=p.length;++g<m;){var I=p[g],C=e[I];(C===r||at(C,Sn[I])&&!ne.call(e,I))&&(e[I]=h[I])}return e}),ub=W(function(e){return e.push(r,Sc),Le(fu,r,e)});function fb(e,t){return Aa(e,$(t,3),bt)}function lb(e,t){return Aa(e,$(t,3),Qi)}function db(e,t){return e==null?e:Ji(e,$(t,3),De)}function hb(e,t){return e==null?e:Ka(e,$(t,3),De)}function bb(e,t){return e&&bt(e,$(t,3))}function pb(e,t){return e&&Qi(e,$(t,3))}function gb(e){return e==null?[]:C0(e,ge(e))}function Eb(e){return e==null?[]:C0(e,De(e))}function Ds(e,t,s){var a=e==null?r:cn(e,t);return a===r?s:a}function _b(e,t){return e!=null&&Rc(e,t,zd)}function Bs(e,t){return e!=null&&Rc(e,t,Gd)}var mb=xc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=p0.call(t)),e[t]=s},Fs(Be)),yb=xc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=p0.call(t)),ne.call(e,t)?e[t].push(s):e[t]=[s]},$),xb=W(lr);function ge(e){return Pe(e)?Na(e):rs(e)}function De(e){return Pe(e)?Na(e,!0):Jd(e)}function Ab(e,t){var s={};return t=$(t,3),bt(e,function(a,u,h){St(s,t(a,u,h),a)}),s}function wb(e,t){var s={};return t=$(t,3),bt(e,function(a,u,h){St(s,u,t(a,u,h))}),s}var vb=Pn(function(e,t,s){R0(e,t,s)}),fu=Pn(function(e,t,s,a){R0(e,t,s,a)}),Tb=Ct(function(e,t){var s={};if(e==null)return s;var a=!1;t=ce(t,function(h){return h=Wt(h,e),a||(a=h.length>1),h}),pt(e,Es(e),s),a&&(s=je(s,T|A|S,m5));for(var u=t.length;u--;)us(s,t[u]);return s});function Sb(e,t){return lu(e,H0($(t)))}var Ib=Ct(function(e,t){return e==null?{}:e5(e,t)});function lu(e,t){if(e==null)return{};var s=ce(Es(e),function(a){return[a]});return t=$(t),nc(e,s,function(a,u){return t(a,u[0])})}function Cb(e,t,s){t=Wt(t,e);var a=-1,u=t.length;for(u||(u=1,e=r);++a<u;){var h=e==null?r:e[gt(t[a])];h===r&&(a=u,h=s),e=Pt(h)?h.call(e):h}return e}function Rb(e,t,s){return e==null?e:hr(e,t,s)}function Pb(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:hr(e,t,s,a)}var du=vc(ge),hu=vc(De);function Db(e,t,s){var a=V(e),u=a||Yt(e)||On(e);if(t=$(t,4),s==null){var h=e&&e.constructor;u?s=a?new h:[]:ue(e)?s=Pt(h)?Rn(_0(e)):{}:s={}}return(u?We:bt)(e,function(p,g,m){return t(s,p,g,m)}),s}function Bb(e,t){return e==null?!0:us(e,t)}function Ob(e,t,s){return e==null?e:ac(e,t,ds(s))}function Fb(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:ac(e,t,ds(s),a)}function Fn(e){return e==null?[]:Hi(e,ge(e))}function Lb(e){return e==null?[]:Hi(e,De(e))}function $b(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=Ze(s),s=s===s?s:0),t!==r&&(t=Ze(t),t=t===t?t:0),an(Ze(e),t,s)}function Mb(e,t,s){return t=Dt(t),s===r?(s=t,t=0):s=Dt(s),e=Ze(e),kd(e,t,s)}function Ub(e,t,s){if(s&&typeof s!="boolean"&&Te(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Dt(e),t===r?(t=e,e=0):t=Dt(t)),e>t){var a=e;e=t,t=a}if(s||e%1||t%1){var u=Ma();return ye(e+u*(t-e+gl("1e-"+((u+"").length-1))),t)}return os(e,t)}var Nb=Dn(function(e,t,s){return t=t.toLowerCase(),e+(s?bu(t):t)});function bu(e){return Os(ee(e).toLowerCase())}function pu(e){return e=ee(e),e&&e.replace(z1,Rl).replace(ol,"")}function Vb(e,t,s){e=ee(e),t=Me(t);var a=e.length;s=s===r?a:an(k(s),0,a);var u=s;return s-=t.length,s>=0&&e.slice(s,u)==t}function zb(e){return e=ee(e),e&&x1.test(e)?e.replace(Ko,Pl):e}function Gb(e){return e=ee(e),e&&I1.test(e)?e.replace(Ci,"\\$&"):e}var kb=Dn(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),Hb=Dn(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),Wb=_c("toLowerCase");function Kb(e,t,s){e=ee(e),t=k(t);var a=t?vn(e):0;if(!t||a>=t)return e;var u=(t-a)/2;return L0(A0(u),s)+e+L0(x0(u),s)}function Yb(e,t,s){e=ee(e),t=k(t);var a=t?vn(e):0;return t&&a<t?e+L0(t-a,s):e}function jb(e,t,s){e=ee(e),t=k(t);var a=t?vn(e):0;return t&&a<t?L0(t-a,s)+e:e}function qb(e,t,s){return s||t==null?t=0:t&&(t=+t),nd(ee(e).replace(Ri,""),t||0)}function Xb(e,t,s){return(s?Te(e,t,s):t===r)?t=1:t=k(t),as(ee(e),t)}function Zb(){var e=arguments,t=ee(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Jb=Dn(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Qb(e,t,s){return s&&typeof s!="number"&&Te(e,t,s)&&(t=s=r),s=s===r?Fe:s>>>0,s?(e=ee(e),e&&(typeof t=="string"||t!=null&&!Ps(t))&&(t=Me(t),!t&&wn(e))?Kt(st(e),0,s):e.split(t,s)):[]}var ep=Dn(function(e,t,s){return e+(s?" ":"")+Os(t)});function tp(e,t,s){return e=ee(e),s=s==null?0:an(k(s),0,e.length),t=Me(t),e.slice(s,s+t.length)==t}function np(e,t,s){var a=d.templateSettings;s&&Te(e,t,s)&&(t=r),e=ee(e),t=Y0({},t,a,Tc);var u=Y0({},t.imports,a.imports,Tc),h=ge(u),p=Hi(u,h),g,m,I=0,C=t.interpolate||o0,R="__p += '",D=Ki((t.escape||o0).source+"|"+C.source+"|"+(C===Yo?L1:o0).source+"|"+(t.evaluate||o0).source+"|$","g"),F="//# sourceURL="+(ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ll+"]")+`
39`;e.replace(D,function(U,Y,X,Ne,Se,Ve){return X||(X=Ne),R+=e.slice(I,Ve).replace(G1,Dl),Y&&(g=!0,R+=`' +
40__e(`+Y+`) +
41'`),Se&&(m=!0,R+=`';
42`+Se+`;
43__p += '`),X&&(R+=`' +
44((__t = (`+X+`)) == null ? '' : __t) +
45'`),I=Ve+U.length,U}),R+=`';
46`;var M=ne.call(t,"variable")&&t.variable;if(!M)R=`with (obj) {
47`+R+`
48}
49`;else if(O1.test(M))throw new N(b);R=(m?R.replace(E1,""):R).replace(_1,"$1").replace(m1,"$1;"),R="function("+(M||"obj")+`) {
50`+(M?"":`obj || (obj = {});
51`)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(m?`, __j = Array.prototype.join;
52function print() { __p += __j.call(arguments, '') }
53`:`;
54`)+R+`return __p
55}`;var H=Eu(function(){return Q(h,F+"return "+R).apply(r,p)});if(H.source=R,Rs(H))throw H;return H}function rp(e){return ee(e).toLowerCase()}function ip(e){return ee(e).toUpperCase()}function sp(e,t,s){if(e=ee(e),e&&(s||t===r))return Sa(e);if(!e||!(t=Me(t)))return e;var a=st(e),u=st(t),h=Ia(a,u),p=Ca(a,u)+1;return Kt(a,h,p).join("")}function op(e,t,s){if(e=ee(e),e&&(s||t===r))return e.slice(0,Pa(e)+1);if(!e||!(t=Me(t)))return e;var a=st(e),u=Ca(a,st(t))+1;return Kt(a,0,u).join("")}function ap(e,t,s){if(e=ee(e),e&&(s||t===r))return e.replace(Ri,"");if(!e||!(t=Me(t)))return e;var a=st(e),u=Ia(a,st(t));return Kt(a,u).join("")}function cp(e,t){var s=ft,a=lt;if(ue(t)){var u="separator"in t?t.separator:u;s="length"in t?k(t.length):s,a="omission"in t?Me(t.omission):a}e=ee(e);var h=e.length;if(wn(e)){var p=st(e);h=p.length}if(s>=h)return e;var g=s-vn(a);if(g<1)return a;var m=p?Kt(p,0,g).join(""):e.slice(0,g);if(u===r)return m+a;if(p&&(g+=m.length-g),Ps(u)){if(e.slice(g).search(u)){var I,C=m;for(u.global||(u=Ki(u.source,ee(jo.exec(u))+"g")),u.lastIndex=0;I=u.exec(C);)var R=I.index;m=m.slice(0,R===r?g:R)}}else if(e.indexOf(Me(u),g)!=g){var D=m.lastIndexOf(u);D>-1&&(m=m.slice(0,D))}return m+a}function up(e){return e=ee(e),e&&y1.test(e)?e.replace(Wo,Ul):e}var fp=Dn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Os=_c("toUpperCase");function gu(e,t,s){return e=ee(e),t=s?r:t,t===r?Ol(e)?zl(e):vl(e):e.match(t)||[]}var Eu=W(function(e,t){try{return Le(e,r,t)}catch(s){return Rs(s)?s:new N(s)}}),lp=Ct(function(e,t){return We(t,function(s){s=gt(s),St(e,s,Is(e[s],e))}),e});function dp(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(a){if(typeof a[1]!="function")throw new Ke(l);return[s(a[0]),a[1]]}):[],W(function(a){for(var u=-1;++u<t;){var h=e[u];if(Le(h[0],this,a))return Le(h[1],this,a)}})}function hp(e){return Ud(je(e,T))}function Fs(e){return function(){return e}}function bp(e,t){return e==null||e!==e?t:e}var pp=yc(),gp=yc(!0);function Be(e){return e}function Ls(e){return Xa(typeof e=="function"?e:je(e,T))}function Ep(e){return Ja(je(e,T))}function _p(e,t){return Qa(e,je(t,T))}var mp=W(function(e,t){return function(s){return lr(s,e,t)}}),yp=W(function(e,t){return function(s){return lr(e,s,t)}});function $s(e,t,s){var a=ge(t),u=C0(t,a);s==null&&!(ue(t)&&(u.length||!a.length))&&(s=t,t=e,e=this,u=C0(t,ge(t)));var h=!(ue(s)&&"chain"in s)||!!s.chain,p=Pt(e);return We(u,function(g){var m=t[g];e[g]=m,p&&(e.prototype[g]=function(){var I=this.__chain__;if(h||I){var C=e(this.__wrapped__),R=C.__actions__=Re(this.__actions__);return R.push({func:m,args:arguments,thisArg:e}),C.__chain__=I,C}return m.apply(e,Vt([this.value()],arguments))})}),e}function xp(){return _e._===this&&(_e._=Yl),this}function Ms(){}function Ap(e){return e=k(e),W(function(t){return ec(t,e)})}var wp=bs(ce),vp=bs(xa),Tp=bs(Ni);function _u(e){return xs(e)?Vi(gt(e)):t5(e)}function Sp(e){return function(t){return e==null?r:cn(e,t)}}var Ip=Ac(),Cp=Ac(!0);function Us(){return[]}function Ns(){return!1}function Rp(){return{}}function Pp(){return""}function Dp(){return!0}function Bp(e,t){if(e=k(e),e<1||e>At)return[];var s=Fe,a=ye(e,Fe);t=$(t),e-=Fe;for(var u=ki(a,t);++s<e;)t(s);return u}function Op(e){return V(e)?ce(e,gt):Ue(e)?[e]:Re(Uc(ee(e)))}function Fp(e){var t=++Wl;return ee(e)+t}var Lp=F0(function(e,t){return e+t},0),$p=ps("ceil"),Mp=F0(function(e,t){return e/t},1),Up=ps("floor");function Np(e){return e&&e.length?I0(e,Be,es):r}function Vp(e,t){return e&&e.length?I0(e,$(t,2),es):r}function zp(e){return va(e,Be)}function Gp(e,t){return va(e,$(t,2))}function kp(e){return e&&e.length?I0(e,Be,is):r}function Hp(e,t){return e&&e.length?I0(e,$(t,2),is):r}var Wp=F0(function(e,t){return e*t},1),Kp=ps("round"),Yp=F0(function(e,t){return e-t},0);function jp(e){return e&&e.length?Gi(e,Be):0}function qp(e,t){return e&&e.length?Gi(e,$(t,2)):0}return d.after=Eh,d.ary=qc,d.assign=ib,d.assignIn=uu,d.assignInWith=Y0,d.assignWith=sb,d.at=ob,d.before=Xc,d.bind=Is,d.bindAll=lp,d.bindKey=Zc,d.castArray=Rh,d.chain=Kc,d.chunk=U5,d.compact=N5,d.concat=V5,d.cond=dp,d.conforms=hp,d.constant=Fs,d.countBy=j6,d.create=ab,d.curry=Jc,d.curryRight=Qc,d.debounce=eu,d.defaults=cb,d.defaultsDeep=ub,d.defer=_h,d.delay=mh,d.difference=z5,d.differenceBy=G5,d.differenceWith=k5,d.drop=H5,d.dropRight=W5,d.dropRightWhile=K5,d.dropWhile=Y5,d.fill=j5,d.filter=X6,d.flatMap=Q6,d.flatMapDeep=eh,d.flatMapDepth=th,d.flatten=Gc,d.flattenDeep=q5,d.flattenDepth=X5,d.flip=yh,d.flow=pp,d.flowRight=gp,d.fromPairs=Z5,d.functions=gb,d.functionsIn=Eb,d.groupBy=nh,d.initial=Q5,d.intersection=e6,d.intersectionBy=t6,d.intersectionWith=n6,d.invert=mb,d.invertBy=yb,d.invokeMap=ih,d.iteratee=Ls,d.keyBy=sh,d.keys=ge,d.keysIn=De,d.map=z0,d.mapKeys=Ab,d.mapValues=wb,d.matches=Ep,d.matchesProperty=_p,d.memoize=k0,d.merge=vb,d.mergeWith=fu,d.method=mp,d.methodOf=yp,d.mixin=$s,d.negate=H0,d.nthArg=Ap,d.omit=Tb,d.omitBy=Sb,d.once=xh,d.orderBy=oh,d.over=wp,d.overArgs=Ah,d.overEvery=vp,d.overSome=Tp,d.partial=Cs,d.partialRight=tu,d.partition=ah,d.pick=Ib,d.pickBy=lu,d.property=_u,d.propertyOf=Sp,d.pull=o6,d.pullAll=Hc,d.pullAllBy=a6,d.pullAllWith=c6,d.pullAt=u6,d.range=Ip,d.rangeRight=Cp,d.rearg=wh,d.reject=fh,d.remove=f6,d.rest=vh,d.reverse=Ts,d.sampleSize=dh,d.set=Rb,d.setWith=Pb,d.shuffle=hh,d.slice=l6,d.sortBy=gh,d.sortedUniq=_6,d.sortedUniqBy=m6,d.split=Qb,d.spread=Th,d.tail=y6,d.take=x6,d.takeRight=A6,d.takeRightWhile=w6,d.takeWhile=v6,d.tap=N6,d.throttle=Sh,d.thru=V0,d.toArray=ou,d.toPairs=du,d.toPairsIn=hu,d.toPath=Op,d.toPlainObject=cu,d.transform=Db,d.unary=Ih,d.union=T6,d.unionBy=S6,d.unionWith=I6,d.uniq=C6,d.uniqBy=R6,d.uniqWith=P6,d.unset=Bb,d.unzip=Ss,d.unzipWith=Wc,d.update=Ob,d.updateWith=Fb,d.values=Fn,d.valuesIn=Lb,d.without=D6,d.words=gu,d.wrap=Ch,d.xor=B6,d.xorBy=O6,d.xorWith=F6,d.zip=L6,d.zipObject=$6,d.zipObjectDeep=M6,d.zipWith=U6,d.entries=du,d.entriesIn=hu,d.extend=uu,d.extendWith=Y0,$s(d,d),d.add=Lp,d.attempt=Eu,d.camelCase=Nb,d.capitalize=bu,d.ceil=$p,d.clamp=$b,d.clone=Ph,d.cloneDeep=Bh,d.cloneDeepWith=Oh,d.cloneWith=Dh,d.conformsTo=Fh,d.deburr=pu,d.defaultTo=bp,d.divide=Mp,d.endsWith=Vb,d.eq=at,d.escape=zb,d.escapeRegExp=Gb,d.every=q6,d.find=Z6,d.findIndex=Vc,d.findKey=fb,d.findLast=J6,d.findLastIndex=zc,d.findLastKey=lb,d.floor=Up,d.forEach=Yc,d.forEachRight=jc,d.forIn=db,d.forInRight=hb,d.forOwn=bb,d.forOwnRight=pb,d.get=Ds,d.gt=Lh,d.gte=$h,d.has=_b,d.hasIn=Bs,d.head=kc,d.identity=Be,d.includes=rh,d.indexOf=J5,d.inRange=Mb,d.invoke=xb,d.isArguments=ln,d.isArray=V,d.isArrayBuffer=Mh,d.isArrayLike=Pe,d.isArrayLikeObject=le,d.isBoolean=Uh,d.isBuffer=Yt,d.isDate=Nh,d.isElement=Vh,d.isEmpty=zh,d.isEqual=Gh,d.isEqualWith=kh,d.isError=Rs,d.isFinite=Hh,d.isFunction=Pt,d.isInteger=nu,d.isLength=W0,d.isMap=ru,d.isMatch=Wh,d.isMatchWith=Kh,d.isNaN=Yh,d.isNative=jh,d.isNil=Xh,d.isNull=qh,d.isNumber=iu,d.isObject=ue,d.isObjectLike=fe,d.isPlainObject=Er,d.isRegExp=Ps,d.isSafeInteger=Zh,d.isSet=su,d.isString=K0,d.isSymbol=Ue,d.isTypedArray=On,d.isUndefined=Jh,d.isWeakMap=Qh,d.isWeakSet=eb,d.join=r6,d.kebabCase=kb,d.last=Xe,d.lastIndexOf=i6,d.lowerCase=Hb,d.lowerFirst=Wb,d.lt=tb,d.lte=nb,d.max=Np,d.maxBy=Vp,d.mean=zp,d.meanBy=Gp,d.min=kp,d.minBy=Hp,d.stubArray=Us,d.stubFalse=Ns,d.stubObject=Rp,d.stubString=Pp,d.stubTrue=Dp,d.multiply=Wp,d.nth=s6,d.noConflict=xp,d.noop=Ms,d.now=G0,d.pad=Kb,d.padEnd=Yb,d.padStart=jb,d.parseInt=qb,d.random=Ub,d.reduce=ch,d.reduceRight=uh,d.repeat=Xb,d.replace=Zb,d.result=Cb,d.round=Kp,d.runInContext=_,d.sample=lh,d.size=bh,d.snakeCase=Jb,d.some=ph,d.sortedIndex=d6,d.sortedIndexBy=h6,d.sortedIndexOf=b6,d.sortedLastIndex=p6,d.sortedLastIndexBy=g6,d.sortedLastIndexOf=E6,d.startCase=ep,d.startsWith=tp,d.subtract=Yp,d.sum=jp,d.sumBy=qp,d.template=np,d.times=Bp,d.toFinite=Dt,d.toInteger=k,d.toLength=au,d.toLower=rp,d.toNumber=Ze,d.toSafeInteger=rb,d.toString=ee,d.toUpper=ip,d.trim=sp,d.trimEnd=op,d.trimStart=ap,d.truncate=cp,d.unescape=up,d.uniqueId=Fp,d.upperCase=fp,d.upperFirst=Os,d.each=Yc,d.eachRight=jc,d.first=kc,$s(d,(function(){var e={};return bt(d,function(t,s){ne.call(d.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),d.VERSION=o,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),We(["drop","take"],function(e,t){q.prototype[e]=function(s){s=s===r?1:pe(k(s),0);var a=this.__filtered__&&!t?new q(this):this.clone();return a.__filtered__?a.__takeCount__=ye(s,a.__takeCount__):a.__views__.push({size:ye(s,Fe),type:e+(a.__dir__<0?"Right":"")}),a},q.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),We(["filter","map","takeWhile"],function(e,t){var s=t+1,a=s==nt||s==xt;q.prototype[e]=function(u){var h=this.clone();return h.__iteratees__.push({iteratee:$(u,3),type:s}),h.__filtered__=h.__filtered__||a,h}}),We(["head","last"],function(e,t){var s="take"+(t?"Right":"");q.prototype[e]=function(){return this[s](1).value()[0]}}),We(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");q.prototype[e]=function(){return this.__filtered__?new q(this):this[s](1)}}),q.prototype.compact=function(){return this.filter(Be)},q.prototype.find=function(e){return this.filter(e).head()},q.prototype.findLast=function(e){return this.reverse().find(e)},q.prototype.invokeMap=W(function(e,t){return typeof e=="function"?new q(this):this.map(function(s){return lr(s,e,t)})}),q.prototype.reject=function(e){return this.filter(H0($(e)))},q.prototype.slice=function(e,t){e=k(e);var s=this;return s.__filtered__&&(e>0||t<0)?new q(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=k(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},q.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},q.prototype.toArray=function(){return this.take(Fe)},bt(q.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),u=d[a?"take"+(t=="last"?"Right":""):t],h=a||/^find/.test(t);u&&(d.prototype[t]=function(){var p=this.__wrapped__,g=a?[1]:arguments,m=p instanceof q,I=g[0],C=m||V(p),R=function(Y){var X=u.apply(d,Vt([Y],g));return a&&D?X[0]:X}
55;C&&s&&typeof I=="function"&&I.length!=1&&(m=C=!1);var D=this.__chain__,F=!!this.__actions__.length,M=h&&!D,H=m&&!F;if(!h&&C){p=H?p:new q(this);var U=e.apply(p,g);return U.__actions__.push({func:V0,args:[R],thisArg:r}),new Ye(U,D)}return M&&H?e.apply(this,g):(U=this.thru(R),M?a?U.value()[0]:U.value():U)})}),We(["pop","push","shift","sort","splice","unshift"],function(e){var t=d0[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var u=arguments;if(a&&!this.__chain__){var h=this.value();return t.apply(V(h)?h:[],u)}return this[s](function(p){return t.apply(V(p)?p:[],u)})}}),bt(q.prototype,function(e,t){var s=d[t];if(s){var a=s.name+"";ne.call(Cn,a)||(Cn[a]=[]),Cn[a].push({name:t,func:s})}}),Cn[O0(r,j).name]=[{name:"wrapper",func:r}],q.prototype.clone=ud,q.prototype.reverse=fd,q.prototype.value=ld,d.prototype.at=V6,d.prototype.chain=z6,d.prototype.commit=G6,d.prototype.next=k6,d.prototype.plant=W6,d.prototype.reverse=K6,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Y6,d.prototype.first=d.prototype.head,ir&&(d.prototype[ir]=H6),d}),Tn=Gl();nn?((nn.exports=Tn)._=Tn,Li._=Tn):_e._=Tn}).call(i9)})(vr,vr.exports)),vr.exports}var Uo=s9();const po=256;let J0=po,Q0;function t1(n=11){if(!Q0||J0+n>po*2){Q0="",J0=0;for(let i=0;i<po;i++)Q0+=(256+Math.random()*256|0).toString(16).substring(1)}return Q0.substring(J0,J0+++n)}function o9(n){const{batch:i,chain:r,ccipRead:o,key:c="base",name:f="Base Client",type:l="base"}=n,b=n.experimental_blockTag??(typeof r?.experimental_preconfirmationTime=="number"?"pending":void 0),E=r?.blockTime??12e3,y=Math.min(Math.max(Math.floor(E/2),500),4e3),w=n.pollingInterval??y,T=n.cacheTime??w,A=n.account?hi(n.account):void 0,{config:S,request:O,value:z}=n.transport({chain:r,pollingInterval:w}),Z={...S,...z},j={account:A,batch:i,cacheTime:T,ccipRead:o,chain:r,key:c,name:f,pollingInterval:w,request:O,transport:Z,type:l,uid:t1(),...b?{experimental_blockTag:b}:{}};function K(G){return te=>{const J=te(G);for(const ae in j)delete J[ae];const oe={...G,...J};return Object.assign(oe,{extend:K(oe)})}}return Object.assign(j,{extend:K(j)})}function No({key:n,methods:i,name:r,request:o,retryCount:c=3,retryDelay:f=150,timeout:l,type:b},E){const y=t1();return{config:{key:n,methods:i,name:r,request:o,retryCount:c,retryDelay:f,timeout:l,type:b},request:Yg(o,{methods:i,retryCount:c,retryDelay:f,uid:y}),value:E}}class a9 extends P{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function go(n,i={}){const{batch:r,fetchFn:o,fetchOptions:c,key:f="http",methods:l,name:b="HTTP JSON-RPC",onFetchRequest:E,onFetchResponse:y,retryDelay:w,raw:T}=i;return({chain:A,retryCount:S,timeout:O})=>{const{batchSize:z=1e3,wait:Z=0}=typeof r=="object"?r:{},j=i.retryCount??S,K=O??i.timeout??1e4,G=n||A?.rpcUrls.default.http[0];if(!G)throw new a9;const te=e9(G,{fetchFn:o,fetchOptions:c,onRequest:E,onResponse:y,timeout:K});return No({key:f,methods:l,name:b,async request({method:J,params:oe}){const ae={method:J,params:oe},{schedule:Ce}=zf({id:G,wait:Z,shouldSplitBatch(we){return we.length>z},fn:we=>te.request({body:we}),sort:(we,ke)=>we.id-ke.id}),tt=async we=>r?Ce(we):[await te.request({body:we})],[{error:ft,result:lt}]=await tt(ae);if(T)return{error:ft,result:lt};if(ft)throw new Lo({body:ae,error:ft,url:G});return lt},retryCount:j,retryDelay:w,timeout:K,type:"http"},{fetchOptions:c,url:G})}}const n1={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},c9={block:jf({format(n){return{transactions:n.transactions?.map(r=>{if(typeof r=="string")return r;const o=pi(r);return o.typeHex==="0x7e"&&(o.isSystemTx=r.isSystemTx,o.mint=r.mint?_t(r.mint):void 0,o.sourceHash=r.sourceHash,o.type="deposit"),o}),stateRoot:n.stateRoot}}}),transaction:Yf({format(n){const i={};return n.type==="0x7e"&&(i.isSystemTx=n.isSystemTx,i.mint=n.mint?_t(n.mint):void 0,i.sourceHash=n.sourceHash,i.type="deposit"),i}}),transactionReceipt:Zg({format(n){return{l1GasPrice:n.l1GasPrice?_t(n.l1GasPrice):null,l1GasUsed:n.l1GasUsed?_t(n.l1GasUsed):null,l1Fee:n.l1Fee?_t(n.l1Fee):null,l1FeeScalar:n.l1FeeScalar?Number(n.l1FeeScalar):null}}})};function r1(n,i){return l9(n)?f9(n):Mg(n,i)}const u9={transaction:r1};function f9(n){d9(n);const{sourceHash:i,data:r,from:o,gas:c,isSystemTx:f,mint:l,to:b,value:E}=n,y=[i,o,b??"0x",l?Je(l):"0x",E?Je(E):"0x",c?Je(c):"0x",f?"0x1":"0x",r??"0x"];return Mt(["0x7e",en(y)])}function l9(n){return n.type==="deposit"||typeof n.sourceHash<"u"}function d9(n){const{from:i,to:r}=n;if(i&&!Ae(i))throw new Qe({address:i});if(r&&!Ae(r))throw new Qe({address:r})}const he={blockTime:2e3,contracts:n1,formatters:c9,serializers:u9},yr=1,i1=Ge({...he,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol
55:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...he.contracts,disputeGameFactory:{[yr]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[yr]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[yr]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[yr]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:yr});({...i1});const h9={estimateFeesPerGas:async n=>{if(!n.request?.feeCurrency)return null;const[i,r]=await Promise.all([b9(n.client,n.request.feeCurrency),p9(n.client,n.request.feeCurrency)]);return{maxFeePerGas:n.multiply(i-r)+r,maxPriorityFeePerGas:r}}};async function b9(n,i){const r=await n.request({method:"eth_gasPrice",params:[i]});return BigInt(r)}async function p9(n,i){const r=await n.request({method:"eth_maxPriorityFeePerGas",params:[i]});return BigInt(r)}function s1(n){return n===0||n===0n||n===void 0||n===null||n==="0"||n===""||typeof n=="string"&&($t(n).toLowerCase()==="0x"||$t(n).toLowerCase()==="0x00")}function Tr(n){return!s1(n)}function g9(n){return typeof n.maxFeePerGas<"u"&&typeof n.maxPriorityFeePerGas<"u"}function o1(n){return n.type==="cip64"?!0:g9(n)&&Tr(n.feeCurrency)}const E9={block:jf({format(n){return{transactions:n.transactions?.map(r=>typeof r=="string"?r:{...pi(r),...r.gatewayFee?{gatewayFee:_t(r.gatewayFee),gatewayFeeRecipient:r.gatewayFeeRecipient}:{},feeCurrency:r.feeCurrency})}}}),transaction:Yf({format(n){if(n.type==="0x7e")return{isSystemTx:n.isSystemTx,mint:n.mint?_t(n.mint):void 0,sourceHash:n.sourceHash,type:"deposit"};const i={feeCurrency:n.feeCurrency};return n.type==="0x7b"?i.type="cip64":(n.type==="0x7c"&&(i.type="cip42"),i.gatewayFee=n.gatewayFee?_t(n.gatewayFee):null,i.gatewayFeeRecipient=n.gatewayFeeRecipient),i}}),transactionRequest:Q3({format(n){const i={};return n.feeCurrency&&(i.feeCurrency=n.feeCurrency),o1(n)&&(i.type="0x7b"),i}})};function _9(n,i){return o1(n)?y9(n,i):r1(n,i)}const m9={transaction:_9};function y9(n,i){A9(n);const{chainId:r,gas:o,nonce:c,to:f,value:l,maxFeePerGas:b,maxPriorityFeePerGas:E,accessList:y,feeCurrency:w,data:T}=n,A=[Je(r),c?Je(c):"0x",E?Je(E):"0x",b?Je(b):"0x",o?Je(o):"0x",f??"0x",l?Je(l):"0x",T??"0x",t0(y),w,...Yn(n,i)];return Mt(["0x7b",en(A)])}const x9=e0;function A9(n){const{chainId:i,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:c,to:f,feeCurrency:l}=n;if(i<=0)throw new Qr({chainId:i});if(f&&!Ae(f))throw new Qe({address:f});if(o)throw new P("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(Tr(c)&&c>x9)throw new Qt({maxFeePerGas:c});if(Tr(r)&&Tr(c)&&r>c)throw new kn({maxFeePerGas:c,maxPriorityFeePerGas:r});if(Tr(l)&&!Ae(l))throw new P("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(s1(l))throw new P("`feeCurrency` must be provided for CIP-64 transactions.")}const w9={blockTime:1e3,contracts:n1,formatters:E9,serializers:m9,fees:h9},v9=Ge({...w9,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),ei=1,T9=Ge({...he,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...he.contracts,l2OutputOracle:{[ei]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[ei]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[ei]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:ei}),ti=1,S9=Ge({...he,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol
55:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...he.contracts,disputeGameFactory:{[ti]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[ti]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[ti]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:ti}),ni=1,I9=Ge({...he,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...he.contracts,multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[ni]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[ni]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[ni]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:ni}),C9=Ge({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),ri=1,R9=Ge({...he,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...he.contracts,l2OutputOracle:{[ri]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[ri]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[ri]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:ri}),ii=1,P9=Ge({...he,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...he.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[ii]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[ii]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[ii]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:ii}),xr=1,D9=Ge({...he,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...he.contracts,disputeGameFactory:{[xr]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[xr]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[xr]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[xr]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:xr}),Ar=1,B9=Ge({...he,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...he.contracts,disputeGameFactory:{[Ar]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[Ar]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[Ar]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[Ar]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:Ar}),wr=1,O9=Ge({...he,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol
55:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...he.contracts,disputeGameFactory:{[wr]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[wr]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[wr]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[wr]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:wr}),si=1,F9=Ge({...he,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...he.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[si]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[si]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[si]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:si}),L9={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ALM_PROVIDER:"Runtime Global S.A.",VITE_ALM_TERMS:"https://runtimelabs.xyz/legal-notice",VITE_APP_NAME:"Aerodrome",VITE_APP_NAME_LOWER:"aerodrome",VITE_APP_TOKEN:"0x940181a94a35a4569e4529a3cdfb74e38fd98631",VITE_BANNER:"aero-banner.png",VITE_BASE_BUILDER_CODE:"62635f7239717a66386f700b0080218021802180218021802180218021",VITE_CHAIN_IDS:"8453",VITE_CONNECTOR_TOKENS_10:"0x9560e827af36c94d2ac33a39bce1fe78631088db,0x4200000000000000000000000000000000000042,0x4200000000000000000000000000000000000006,0x9bcef72be871e61ed4fbbc7630889bee758eb81d,0x2e3d870790dc77a83dd1d18184acc7439a53f475,0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9,0x1f32b1c2345538c0c6f582fcb022739c4a194ebb,0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9,0xc3864f98f2a61a7caeb95b039d031b4e2f55e0e9,0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed,0xda10009cbd5d07dd0cecc66161fc93d7c9000da1,0x73cb180bf0521828d8849bc8cf2b920918e23032,0x6806411765af15bddd26f8f544a34cc40cb9838b,0x6c2f7b6110a37b3b0fbdd811876be368df02e8b0,0xc5b001dc33727f8f26880b184090d3e252470d45,0x6c84a8f1c29108f47a79964b5fe888d4f4d0de40,0xc40f949f8a4e094d1b49a23ea9241d289b7b2819,0x94b008aa00579c1307b0ef2c499ad98a8ce58e58,0x0b2c639c533813f4aa9d7837caf62653d097ff85",VITE_CONNECTOR_TOKENS_8453:"0xfde4c96c8593536e31f229ea8f37b2ada2699bb2,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x50c5725949a6f0c72e6c4a641f24049a917db0cb,0x4621b7a9c75199271f773ebd9a499dbd165c3191,0x4200000000000000000000000000000000000006,0xb79dd08ea68a908a97220c76d19a6aa9cbde4376,0xcfa3ef56d303ae4faaba0592388f19d7c3399fb4,0xcb327b99ff831bf8223cced12b1338ff3aa322ff,0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22,0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452,0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42,0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf,0xdd468a1ddc392dcdbef6db6e34e89aa338f9f186,0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b",VITE_CONVERT_SUSDT_TOKENS:"8453:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913=0xe92e51d99ae33114c60d9621fb2e1ec0acea7e30",VITE_CSP_FRAME:"https://verify.walletconnect.org/",VITE_CSP_IMG:"https://raw.githubusercontent.com data: blob:",VITE_CSP_SCRIPT:"",VITE_CSP_STYLE:"",VITE_DEFAULT_SLIPPAGE:"1.0",VITE_DEFAULT_SWAP_MINUTES:"10",VITE_DEFAULT_TOKENS_8453:"0x940181a94a35a4569e4529a3cdfb74e38fd98631,eth",VITE_DEFAULT_TOKEN_ORDER:"WETH,AERO,USDC,cbBTC",VITE_ECOSYSTEM:"Base",VITE_EXPLORER_CHAIN_IDS:"",VITE_EXTERNAL_CHAIN_IDS:"10",VITE_FACTORY_ADDRESS_10:"0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a",VITE_FACTORY_ADDRESS_8453:"0x420DD381b31aEf6683db6B902084cB0FFECe40Da",VITE_FC_META:"miniapp",VITE_FEATURE_FLAGS:"v2,relay,cl,vapr,alm,batched-txs,skip-batch-sim,tx-suffix",VITE_HIGHLIGHTED_POOLS:"",VITE_HL_EXPLORER:"https://explorer.hyperlane.xyz/?search=",VITE_HL_HEALTH_URL:"https://offchain-lookup.services.hyperlane.xyz/health",VITE_HL_RELAYERS:"0x74Cae0ECC47B02Ed9B9D32E000Fd70B9417970C5,0x09B96417602Ed6AC76651F7A8c4860E60e3aA6d0",VITE_HL_RELAY_URL:"https://offchain-lookup.services.hyperlane.xyz/callCommitments/calls",VITE_ICA_ADDRESS_8453:"0x44647Cd983E80558793780f9a0c7C2aa9F384D07",VITE_LABEL:"AERO",VITE_LAUNCHER_LANDING_PAGE_TOKENS:"VIRTUAL,KTA,AERO,cbBTC,cbXRP,cbDOGE,cbADA,cbLTC,GIZA,MAMO",VITE_LAUNCH_TOKENS:"",VITE_LOCKER_IMPL_ADDRESS:"0xfe678BFfC3C1c8D1De4478CC5C3e1b93EE4638aE",VITE_LP_SUGAR_ADDRESS_10:"0x347512180804A8B40AA7525AE932a31198F074aA",VITE_LP_SUGAR_ADDRESS_8453:"0x69dD9db6d8f8E7d83887A704f447b1a584b599A1",VITE_MAX_RESERVE_DEVIATION:"1000000000000000",VITE_MESSAGE_BRIDGE_ADDRESS:"0xF278761576f45472bdD721EACA19317cE159c011",VITE_MESSAGE_MODULE_ADDRESS:"0x2BbA7515F7cF114B45186274981888D8C2fBA15E",VITE_MIGRATOR_ADDRESS_8453:"0x4Ab4313D12D3c17Dd172dCd9453105EB3d775f42",VITE_MINTER_ADDRESS_10:"0x6dc9E1C04eE59ed3531d73a72256C0da46D10982",VITE_MINTER_ADDRESS_8453:"0xeB018363F0a9Af8f91F06FEe6613a751b2A33FE5",VITE_NATIVE_TOKEN_
55LOGO:"/tokens/ETH.svg",VITE_NFPM_ADDRESS_10:"0xf7f8ccce99Ca2896eC75D3A399D152dB96808399",VITE_NFPM_ADDRESS_8453:"0xe1f8cd9AC4e4A65F54f38a5CdAfCA44f6dD68b53",VITE_OLD_SLIPSTREAM_FACTORY_ADDRESS_10:"0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F",VITE_OLD_SLIPSTREAM_FACTORY_ADDRESS_8453:"0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A",VITE_OPEN_USDT_TOKEN:"0x1217bfe6c773eec6cc4a38b5dc45b92292b6e189",VITE_OP_TOKEN:"0x4200000000000000000000000000000000000042",VITE_POOL_LAUNCHER_CL_ADDRESS:"0x3C890c7454C17410E49E035F6C4755c4E2012b4b",VITE_POOL_LAUNCHER_V2_ADDRESS:"0xA81eEbdEb3129bf5B89AEd89EDe9eC5fB6FDE3B3",VITE_POOL_PLACEHOLDER_TYPES:"-1,0,1,10,50,80,100,150,200,500,2000",VITE_PRICES_ADDRESS_10:"0x58238e3d556226defE35d3056335f48938707324",VITE_PRICES_ADDRESS_8453:"0xfbC91Fc9C6E70Afbea84b69FB0bF5EBa7F90aaFd",VITE_PRICE_MAPS:"10:0x4200000000000000000000000000000000000042=0xafcc6ae807187a31e84138f3860d4ce27973e01b,10:0x4200000000000000000000000000000000000042=0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca",VITE_PRICE_THRESHOLD_FILTER:"10",VITE_QUOTER_ADDRESS_10:"0xAf6EBdf4c70061C5961994Ae9c9956fBc2bCC32E",VITE_QUOTER_ADDRESS_8453:"0xCd2A7D98e82D6107eac1828ce8DeAA6acB65b555",VITE_QUOTER_STABLE_POOL_FILLER:"2097152",VITE_QUOTER_VOLATILE_POOL_FILLER:"4194304",VITE_RELAYS_HIDE_IDS:"9605,10296",VITE_RELAYS_PINNED_IDS:"10298",VITE_RELAY_SUGAR_ADDRESS_10:"0x5197Eb73253EF90E2089ad7308E572Ea6898c8D7",VITE_RELAY_SUGAR_ADDRESS_8453:"0x3dd0849D66DBd63D06f11442502e200601c50790",VITE_REWARDS_SUGAR_ADDRESS_10:"0x62CCFB2496f49A80B0184AD720379B529E9152fB",VITE_REWARDS_SUGAR_ADDRESS_8453:"0x1b121EfDaF4ABb8785a315C51D29BCE0552A7678",VITE_ROUTER_ADDRESS_10:"0xa062aE8A9c5e11aaA026fc2670B0D65cCc8B2858",VITE_ROUTER_ADDRESS_8453:"0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43",VITE_RPC_URIS_10:"https://lb.drpc.live/optimism/Avibgvi26EjPsw76UtdwmsQOcPkUJIUR8YARurWHF38a:1,https://opt-mainnet.g.alchemy.com/v2/4aBLuZOavL1N3YUWe8c9ylHandj-Ez4f:0",VITE_RPC_URIS_8453:"https://lb.drpc.live/base/Avibgvi26EjPsw76UtdwmsQOcPkUJIUR8YARurWHF38a:1,https://base-mainnet.g.alchemy.com/v2/NueAMkvMI625bpEhxN6_-:0",VITE_SAFE_PI:"3.0",VITE_SLIPSTREAM_FACTORY_ADDRESS_10:"0xe13Dd1fbA721Aa81a1826D9523AC9BC7d260c879",VITE_SLIPSTREAM_FACTORY_ADDRESS_8453:"0xf8f2eB4940CFE7d13603DDDD87f123820Fc061Ef",VITE_SLIPSTREAM_SUGAR_ADDRESS_10:"0xD45624bf2CB9f65ecbdF3067d21992b099b56202",VITE_SLIPSTREAM_SUGAR_ADDRESS_8453:"0x9c62ab10577fB3C20A22E231b7703Ed6D456CC7a",VITE_SOLANA_RPC_URL:"https://lb.drpc.live/solana/Avibgvi26EjPsw76UtdwmsQ-HuQB0FUR8K6aOmy9-kY5",VITE_STABLE_TOKEN_10:"0x7f5c764cbc14f9669b88837ca1490cca17c31607",VITE_STABLE_TOKEN_8453:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",VITE_STOCK_POOLS:"8453:0x853F5f1B92b16714Fe6CDA67CAad0856B83C7ab9,8453:0xA3b1E3f9747065e2073722Ff4c9027d3eA4994F0,8453:0xB1987CAD1682841b4b641d50E520777eC5Ab5542,8453:0xEAF57753BC382E0324a1D43F72E7027705a2273E,8453:0xe942B86f5c6d4a780fd673317Ee7E565d25aB7F3,8453:0x20E5fAd2661Ee9Eb0c04824524030AF31943B62D,8453:0x25F63549b2Bb9ffF114cDc39e8cfb16B450E2f9b,8453:0xD5B83c33A8711e727C0Abb6f72ee508755D37e10,8453:0xd03Bc8C7F2FAedCe2aac81bF0444AEA08Ea06E9b,8453:0x7103eB3c9590d1281f7dc03b2A9EE27C39dF5D54,8453:0x8b27f626ab668197000BC722A1012022CAeD10E2,8453:0x5A8236f575471e7BfCA2C8462a200c28f737246E,8453:0x0bf58fe0FAc935Ac69595c19B12Ba0d75E3F8c0E,8453:0x469337fDcc5E8f38e2E4B670B04F57865D13a7BB",VITE_STOCK_TOKENS:"8453:0xb20000000000000000000078ee7ce2fE4908108C,8453:0xb2000000000000000000008bC8786B856E61707C,8453:0xb200000000000000000000C2e324d24d7eEcd1fb,8453:0xb2000000000000000000002D0BA3164cc74f58B7,8453:0xCEF8Db49E456f872E288E1C042F916E9ceD7c781",VITE_TOKEN_ASSETS_CDN:"https://raw.githubusercontent.com/SmolDapp/tokenAssets/main/tokens",VITE_TOKEN_SYMBOL_0x102d758f688a4c1c5a80b116bd945d4455460282:"USDT0",VITE_TOKEN_SYMBOL_0x7f5c764cbc14f9669b88837ca1490cca17c31607:"USDC.e",VITE_TOKEN_SYMBOL_0xa1a0b2e02b0e6830ad5a4a7211691200945d8919:"TEA",VITE_TOKEN_SYMBOL_0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca:"OP",VITE_TOKEN_SYMBOL_0xafcc6ae807187a31e84138f3860d4ce27973e01b:"OP",VITE_TOKEN_SYMBOL_0xbce0af241a9c06778968ce1d3782c61d9a9c7c32:"METEORA",VITE_TOKEN_SYMBOL_0xde5ed76e7c05ec5e4572cfc88d1acea165109e44:"DEUS FINANCE",VITE_TOLERATED_SERVER_TIMESTAMP_DIFFERENCE:"30",VITE_TWITTER_HANDLE:"@aeroxyz",VITE_UNCLAIMABLE_TOKENS:"",VITE_UNIVERSAL_ROUTER_ADDRESS_10:"0xcAF22ce31298CF2BF1D152862F80216478ad7c67",VITE_UNIVERSAL_ROUTER_ADDRESS_8453:"0xcAF22ce31298CF2BF1D152862F80216478ad7c67",VITE_UNSAFE_PI:"3.0",VITE_UNSAFE_TOKENS_8453:"0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979,0x8901cb2e82cc95c01e42206f8d1f417fe53e7af0,0x9cbd543f1b1166b2df36b68eb6bb1dce24e6abdf,0x025f99977db78317a4eba606998258b502bb256f,0xd260115030b9fb6849da169a01ed80b6496d1e99,0
55x608d5401d377228e465ba6113517dcf9bd1f95ca,0xd260115030b9fb6849da169a01ed80b6496d1e99,0x728cda34d732a87fd6429129e23d4742d9ff0064,0x728cda34d732a87fd6429129e23d4742d9ff0064,0xac1bd2486aaf3b5c0fc3fd868558b082a531b2b4,0x0f929c29dce303f96b1d4104505f2e60ee795cac,0x47e78d664e6c339693e8638b7a7d9543abcc99d4,0xff0c532fdb8cd566ae169c1cb157ff2bdc83e105,0x373504da48418c67e6fcd071f33cb0b3b47613c7,0x0f929c29dce303f96b1d4104505f2e60ee795cac,0x628c5ba9b775dacecd14e237130c537f497d1cc7",VITE_USDT_BRIDGE_ADDRESS_8453:"0x4F0654395d621De4d1101c0F98C1Dba73ca0a61f",VITE_VE_ADDRESS_10:"0xFAf8FD17D9840595845582fCB047DF13f006787d",VITE_VE_ADDRESS_8453:"0xeBf418Fe2512e7E6bd9b87a8F0f294aCDC67e6B4",VITE_VE_SUGAR_ADDRESS_10:"0x94f913362b232e31daB49a1aFB775cfd25DaA6a1",VITE_VE_SUGAR_ADDRESS_8453:"0x4c5d3925fe65DFeB5A079485136e4De09cb664A5",VITE_VOTER_ADDRESS_10:"0x41C914ee0c7E1A5edCD0295623e6dC557B5aBf3C",VITE_VOTER_ADDRESS_8453:"0x16613524e02ad97eDfeF371bC883F2F5d6C480A5",VITE_WALLETCONNECT_PROJECT_ID:"a1ea2a919a3465f5a79109a93fa032fb",VITE_WRAPPED_NATIVE_TOKEN_10:"0x4200000000000000000000000000000000000006",VITE_WRAPPED_NATIVE_TOKEN_8453:"0x4200000000000000000000000000000000000006",VITE_XOP_BRIDGE:"0xac6A6080E002D2803959242C0FE10050C482D214",VITE_XOP_BRIDGE_V2:"0xfFCA1231d43Cf55B58d62627fD171ab1293C3050",VITE_XOP_TOKEN:"0xafcc6ae807187a31e84138f3860d4ce27973e01b",VITE_XOP_TOKEN_V2:"0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca"},$9=[D9,P9,I9,R9,T9,S9,B9,O9,F9,v9,i1,C9];function M9(n,i){const r=L9,c=(typeof window<"u"&&window.localStorage.getItem("customRPCs")?JSON.parse(window.localStorage.getItem("customRPCs")||"{}"):{})[n.id];return{rpcs:r[`VITE_RPC_URIS_${n.id}`].split(",").map(f=>[f.slice(0,f.lastIndexOf(":")),parseInt(f.slice(f.lastIndexOf(":")+1))]),customRpc:c,sugar:r[`VITE_LP_SUGAR_ADDRESS_${n.id}`],rewardsSugar:r[`VITE_REWARDS_SUGAR_ADDRESS_${n.id}`],router:r[`VITE_ROUTER_ADDRESS_${n.id}`],universalRouter:r[`VITE_UNIVERSAL_ROUTER_ADDRESS_${n.id}`],factory:r[`VITE_FACTORY_ADDRESS_${n.id}`],oracle:r[`VITE_PRICES_ADDRESS_${n.id}`],stable:r[`VITE_STABLE_TOKEN_${n.id}`],quoter:r[`VITE_QUOTER_ADDRESS_${n.id}`],nfpm:r[`VITE_NFPM_ADDRESS_${n.id}`],slipstreamSugar:r[`VITE_SLIPSTREAM_SUGAR_ADDRESS_${n.id}`],slipstreamFactory:r[`VITE_SLIPSTREAM_FACTORY_ADDRESS_${n.id}`]||r[`VITE_SLIPSTREAM_FACTORY_ADDRESS_${i}`],oldSlipstreamFactory:r[`VITE_OLD_SLIPSTREAM_FACTORY_ADDRESS_${n.id}`],migrator:r[`VITE_MIGRATOR_ADDRESS_${n.id}`],usdtBridge:r[`VITE_USDT_BRIDGE_ADDRESS_${n.id}`],interchainAccount:r[`VITE_ICA_ADDRESS_${n.id}`],nativeWrapped:(r[`VITE_WRAPPED_NATIVE_TOKEN_${n.id}`]||r[`VITE_WRAPPED_NATIVE_TOKEN_${i}`]).toLowerCase(),nativeERC20:r[`VITE_NATIVE_ERC20_${n.id}`],weth:r[`VITE_WETH_ADDRESS_${n.id}`]?.toLowerCase(),oracleConnectors:String(r[`VITE_CONNECTOR_TOKENS_${n.id}`]).split(","),defaultTokens:String(r[`VITE_DEFAULT_TOKENS_${n.id}`]).split(","),unsafeTokens:String(r[`VITE_UNSAFE_TOKENS_${n.id}`]).split(",")}}function Ei(n){const r=n.map(o=>$9.find(c=>c.id===o)).filter(Boolean).map(o=>{const c=o.name.replace("Mainnet","").trim(),f=M9(o,tn[0]),l={...o,superchainConfig:f,name:c.toLowerCase()==="op"?"OP Mainnet":c};return H9.includes(o.id)&&(l.blockExplorers={default:{name:"Superscan",url:"https://thesuperscan.io"}}),l});return[r,Uo.keyBy(r,"id")]}function U9(n,i){if(!i.includes("ousdt-mint"))return{superchainKeys:[],map:{}};const r={},o=[];return n.split(",").forEach(c=>{const f=c.split("="),l=f[0],b=f[1],E=l.split(":")[1];r[E]=b,o.push(l)}),{superchainKeys:o,map:r}}function N9(n){const i={},r=[];return n.split(",").forEach(o=>{const c=o.split("="),f=c[0],l=c[1],b=f.split(":")[1];i[l]=b,r.push(f)}),{superchainKeys:r,map:i}}function Vo(n){if(!n)return[];const i={};return n.split(",").forEach(r=>{const o=r.split(":"),c=Number(o[0]),f=o[1];i[c]||(i[c]=[]),i[c].push(f)}),i}BigInt(Number.MAX_SAFE_INTEGER-1);function V9(n,i,r=18,o=18,c=18){if(n===0n||i===0n)return 0n;const f=i*10n**BigInt(r);return n*10n**(BigInt(o)+BigInt(c))/f}function z9(n){if(typeof window>"u")return[];let i=[];try{const r=window.localStorage.getItem("disabledChains");i=r?JSON.parse(r):[]}catch(r){console.error("Error parsing disabledChains:",r)}return n.map(r=>r.id).filter(r=>!i.includes(r))}const jn={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ALM_PROVIDER:"Runtime Global S.A.",VITE_ALM_TERMS:"https://runtimelabs.xyz/legal-notice",VITE_APP_NAME:"Aerodrome",VITE_APP_NAME_LOWER:"aerodrome",VITE_APP_TOKEN:"0x940181a94a35a4569e4529a3cdfb74e38fd98631",VITE_BANNER:"aero-banner.png",VITE_BASE_BUILDER_CODE:"62635f7239717a66386f700b0080218021802180218021802180218021",VITE_CHAIN_IDS:"8453",VITE_CONNECTOR_TOKENS_10:"0x9560e827af36c94d2ac33a39bce1fe78631088db,0x4200000000000000000000000000000000000042,0x4200000000000000000000000000000000000006,0x9bcef72be871e61ed4fbbc7630889bee758eb81d,0x2e3d870790dc77a83dd1d18184acc7439a53f475,0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9,0x1f32b1c2345538c0c6f582fcb022739c4a194ebb,0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9,0xc3864f98f2a61a7caeb95b039d031b4e2f55e0e9,0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed,0xda10009cbd5d07dd0cecc66161fc93d7c9000da1,0x73cb180bf0521828d8849bc8cf2b920918e23032,0x6806411765af15bddd26f8f544a34cc40cb9838b,0x6c2f7b6110a37b3b0fbdd811876be368df02e8b0,0xc5b001dc33727f8f26880b184090d3e252470d45,0x6c84a8f1c29108f47a79964b5fe888d4f4d0de40,0xc40f949f8a4e094d1b49a23ea9241d289b7b2819,0x94b008aa00579c1307b
550ef2c499ad98a8ce58e58,0x0b2c639c533813f4aa9d7837caf62653d097ff85",VITE_CONNECTOR_TOKENS_8453:"0xfde4c96c8593536e31f229ea8f37b2ada2699bb2,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x50c5725949a6f0c72e6c4a641f24049a917db0cb,0x4621b7a9c75199271f773ebd9a499dbd165c3191,0x4200000000000000000000000000000000000006,0xb79dd08ea68a908a97220c76d19a6aa9cbde4376,0xcfa3ef56d303ae4faaba0592388f19d7c3399fb4,0xcb327b99ff831bf8223cced12b1338ff3aa322ff,0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22,0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452,0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42,0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf,0xdd468a1ddc392dcdbef6db6e34e89aa338f9f186,0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b",VITE_CONVERT_SUSDT_TOKENS:"8453:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913=0xe92e51d99ae33114c60d9621fb2e1ec0acea7e30",VITE_CSP_FRAME:"https://verify.walletconnect.org/",VITE_CSP_IMG:"https://raw.githubusercontent.com data: blob:",VITE_CSP_SCRIPT:"",VITE_CSP_STYLE:"",VITE_DEFAULT_SLIPPAGE:"1.0",VITE_DEFAULT_SWAP_MINUTES:"10",VITE_DEFAULT_TOKENS_8453:"0x940181a94a35a4569e4529a3cdfb74e38fd98631,eth",VITE_DEFAULT_TOKEN_ORDER:"WETH,AERO,USDC,cbBTC",VITE_ECOSYSTEM:"Base",VITE_EXPLORER_CHAIN_IDS:"",VITE_EXTERNAL_CHAIN_IDS:"10",VITE_FACTORY_ADDRESS_10:"0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a",VITE_FACTORY_ADDRESS_8453:"0x420DD381b31aEf6683db6B902084cB0FFECe40Da",VITE_FC_META:"miniapp",VITE_FEATURE_FLAGS:"v2,relay,cl,vapr,alm,batched-txs,skip-batch-sim,tx-suffix",VITE_HIGHLIGHTED_POOLS:"",VITE_HL_EXPLORER:"https://explorer.hyperlane.xyz/?search=",VITE_HL_HEALTH_URL:"https://offchain-lookup.services.hyperlane.xyz/health",VITE_HL_RELAYERS:"0x74Cae0ECC47B02Ed9B9D32E000Fd70B9417970C5,0x09B96417602Ed6AC76651F7A8c4860E60e3aA6d0",VITE_HL_RELAY_URL:"https://offchain-lookup.services.hyperlane.xyz/callCommitments/calls",VITE_ICA_ADDRESS_8453:"0x44647Cd983E80558793780f9a0c7C2aa9F384D07",VITE_LABEL:"AERO",VITE_LAUNCHER_LANDING_PAGE_TOKENS:"VIRTUAL,KTA,AERO,cbBTC,cbXRP,cbDOGE,cbADA,cbLTC,GIZA,MAMO",VITE_LAUNCH_TOKENS:"",VITE_LOCKER_IMPL_ADDRESS:"0xfe678BFfC3C1c8D1De4478CC5C3e1b93EE4638aE",VITE_LP_SUGAR_ADDRESS_10:"0x347512180804A8B40AA7525AE932a31198F074aA",VITE_LP_SUGAR_ADDRESS_8453:"0x69dD9db6d8f8E7d83887A704f447b1a584b599A1",VITE_MAX_RESERVE_DEVIATION:"1000000000000000",VITE_MESSAGE_BRIDGE_ADDRESS:"0xF278761576f45472bdD721EACA19317cE159c011",VITE_MESSAGE_MODULE_ADDRESS:"0x2BbA7515F7cF114B45186274981888D8C2fBA15E",VITE_MIGRATOR_ADDRESS_8453:"0x4Ab4313D12D3c17Dd172dCd9453105EB3d775f42",VITE_MINTER_ADDRESS_10:"0x6dc9E1C04eE59ed3531d73a72256C0da46D10982",VITE_MINTER_ADDRESS_8453:"0xeB018363F0a9Af8f91F06FEe6613a751b2A33FE5",VITE_NATIVE_TOKEN_LOGO:"/tokens/ETH.svg",VITE_NFPM_ADDRESS_10:"0xf7f8ccce99Ca2896eC75D3A399D152dB96808399",VITE_NFPM_ADDRESS_8453:"0xe1f8cd9AC4e4A65F54f38a5CdAfCA44f6dD68b53",VITE_OLD_SLIPSTREAM_FACTORY_ADDRESS_10:"0xCc0bDDB707055e04e497aB22a59c2aF4391cd12F",VITE_OLD_SLIPSTREAM_FACTORY_ADDRESS_8453:"0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A",VITE_OPEN_USDT_TOKEN:"0x1217bfe6c773eec6cc4a38b5dc45b92292b6e189",VITE_OP_TOKEN:"0x4200000000000000000000000000000000000042",VITE_POOL_LAUNCHER_CL_ADDRESS:"0x3C890c7454C17410E49E035F6C4755c4E2012b4b",VITE_POOL_LAUNCHER_V2_ADDRESS:"0xA81eEbdEb3129bf5B89AEd89EDe9eC5fB6FDE3B3",VITE_POOL_PLACEHOLDER_TYPES:"-1,0,1,10,50,80,100,150,200,500,2000",VITE_PRICES_ADDRESS_10:"0x58238e3d556226defE35d3056335f48938707324",VITE_PRICES_ADDRESS_8453:"0xfbC91Fc9C6E70Afbea84b69FB0bF5EBa7F90aaFd",VITE_PRICE_MAPS:"10:0x4200000000000000000000000000000000000042=0xafcc6ae807187a31e84138f3860d4ce27973e01b,10:0x4200000000000000000000000000000000000042=0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca",VITE_PRICE_THRESHOLD_FILTER:"10",VITE_QUOTER_ADDRESS_10:"0xAf6EBdf4c70061C5961994Ae9c9956fBc2bCC32E",VITE_QUOTER_ADDRESS_8453:"0xCd2A7D98e82D6107eac1828ce8DeAA6acB65b555",VITE_QUOTER_STABLE_POOL_FILLER:"2097152",VITE_QUOTER_VOLATILE_POOL_FILLER:"4194304",VITE_RELAYS_HIDE_IDS:"9605,10296",VITE_RELAYS_PINNED_IDS:"10298",VITE_RELAY_SUGAR_ADDRESS_10:"0x5197Eb73253EF90E2089ad7308E572Ea6898c8D7",VITE_RELAY_SUGAR_ADDRESS_8453:"0x3dd0849D66DBd63D06f11442502e200601c50790",VITE_REWARDS_SUGAR_ADDRESS_10:"0x62CCFB2496f49A80B0184AD720379B529E9152fB",VITE_REWARDS_SUGAR_ADDRESS_8453:"0x1b121EfDaF4ABb8785a315C51D29BCE0552A7678",VITE_ROUTER_ADDRESS_10:"0xa062aE8A9c5e11aaA026fc2670B0D65cCc8B2858",VITE_ROUTER_ADDRESS_8453:"0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43",VITE_RPC_URIS_10:"https://lb.drpc.live/optimism/Avibgvi26EjPsw76UtdwmsQOcPkUJIUR8YARurWHF38a:1,https://opt-mainnet.g.alchemy.com/v2/4aBLuZOavL1N3YUWe8c9ylHandj-Ez4f:0",VITE_RPC_URIS_8453:"https://lb.drpc.live/base/Avibgvi26EjPsw76UtdwmsQOcPkUJIUR8YARurWHF38a:1,https://base-mainnet.g.alchemy.com/v2/NueAMkvMI625bpEhxN6_-:0",VITE_SAFE_PI:"3.0",VITE_SLIPSTREAM_FACTORY_ADDRESS_10:"0xe13Dd1fbA721Aa81a1826D9523AC9BC7d260c879",VITE_SLIPSTREAM_FACTORY_ADDRESS_8453:"0xf8f2eB4940CFE7d13603DDDD87f123820Fc061Ef",VITE_SLIPSTREAM_SUGAR_ADDRESS_10:"0xD45624bf2CB9f65ecbdF3067d21992b099b56202",VITE_SLIPSTREAM_SUGAR_ADDRESS_8453:"0x9c62ab10577fB3C20A22E231b7703Ed6D456CC7a",VITE_SOLANA_RPC_URL:"https://lb.drpc.live/solana/Avibgvi26EjPsw76UtdwmsQ-HuQB0FUR8K6aOmy9-kY5",VITE_STABLE_TOKEN_10:"0x7f5c764cbc14f9669b88837ca1490cca17c31607",VITE_STABLE_TOKEN_8453:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",VITE_STOCK_POOLS:"8453:0x853F5f1B92b16714Fe6CDA67CAad0856B83C7ab9,8453:0xA3b1E3f9747065e2073722Ff4c9027d3eA4994F0,8453:0xB1987CAD1682841b4b641d50E520777eC5Ab5542,8453:0xEAF57753BC382E0324a1D43F72E7027705a2273E,8453:0xe942B86f5c6d4a780fd673317Ee7E565d25aB7F3,8453:0x20E5fAd2661Ee9Eb0c04824524030AF31943B62D,8453:0x25F63549b2Bb9ffF114cDc39e8cfb16B450E2f9b,8453:0xD5B83c33A8711e727C0Abb6f72ee508755D37e10,8453:0xd03Bc8C7F2FAedCe2aac81bF0444AEA08Ea06E9b,8453:0x7103eB3c9590d1281f7dc03b2A9EE27C39dF5D54,8453:0x8b27f626ab668197000BC722A1012022CAeD10E2,8453:0x5A8236f575471e7BfCA2C8462a200c28f737246E,8453:0x0bf58fe0FAc935Ac69595c19B12Ba0d75E3F8c0E,8453:0x469337fDcc5E8f38e2E4B670B04F57865D13a7BB",VITE_STOCK_TOKENS:"8453:0xb20000000000000000000078ee7ce2fE4908108C,8453:0xb2000000000000000000008bC8786B856E61707C,8453:0xb200000000000000000000C2e324d24d7eEcd1fb,8453:0xb2000000000000000000002D0BA3164cc74f58B7,8453:0xCEF8Db49E456f872E288E1C042F916E9ceD7c781",VITE_TOKEN_ASSETS_CDN:"https://raw.githubusercontent.com/SmolDapp/tokenAssets/main/tokens",VITE_TOKEN_SYMBOL_0x102d758f688a4c1c5a80b116bd945d4455460282:"USDT0",VITE_TOKEN_SYMBOL_0x7f5c764cbc14f9669b88837ca1490cca17c31607:"USDC.e",VITE_TOKEN_SYMBOL_0xa1a0b2e02b0e6830ad5a4a7211691200945d8919:"TEA",VITE_TOKEN_SYMBOL_0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca:"OP",VITE_TOKEN_SYMBOL_0xafcc6ae807187a31e84138f3860d4ce27973e01b:"OP",VITE_TOKEN_SYMBOL_0xbce0af241a9c06778968ce1d3782c61d9a9c7c32:"METEORA",VITE_TOKEN_SYMBOL_0xde5ed76e7c05ec5e4572cfc88d1acea165109e44:"DEUS FINANCE",VITE_TOLERATED_SERVER_TIMESTAMP_DIFFERENCE:"30",VITE_TWITTER_HANDLE:"@aeroxyz",VITE_UNCLAIMABLE_TOKENS:"",VITE_UNIVERSAL_ROUTER_ADDRESS_10:"0xcAF22ce31298CF2BF1D152862F80216478ad7c67",VITE_UNIVERSAL_ROUTER_ADDRESS_8453:"0xcAF22ce31298CF2BF1D152862F80216478ad7c67",VITE_UNSAFE_PI:"3.0",VITE_UNSAFE_TOKENS_8453:"0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979,0x8901cb2e82cc95c01e42206f8d1f417fe53e7af0,0x9cbd543f1b1166b2df36b68eb6bb1dce24e6abdf,0x025f99977db78317a4eba606998258b502bb256f,0xd260115030b9fb6849da169a01ed80b6496d1e99,0
55x608d5401d377228e465ba6113517dcf9bd1f95ca,0xd260115030b9fb6849da169a01ed80b6496d1e99,0x728cda34d732a87fd6429129e23d4742d9ff0064,0x728cda34d732a87fd6429129e23d4742d9ff0064,0xac1bd2486aaf3b5c0fc3fd868558b082a531b2b4,0x0f929c29dce303f96b1d4104505f2e60ee795cac,0x47e78d664e6c339693e8638b7a7d9543abcc99d4,0xff0c532fdb8cd566ae169c1cb157ff2bdc83e105,0x373504da48418c67e6fcd071f33cb0b3b47613c7,0x0f929c29dce303f96b1d4104505f2e60ee795cac,0x628c5ba9b775dacecd14e237130c537f497d1cc7",VITE_USDT_BRIDGE_ADDRESS_8453:"0x4F0654395d621De4d1101c0F98C1Dba73ca0a61f",VITE_VE_ADDRESS_10:"0xFAf8FD17D9840595845582fCB047DF13f006787d",VITE_VE_ADDRESS_8453:"0xeBf418Fe2512e7E6bd9b87a8F0f294aCDC67e6B4",VITE_VE_SUGAR_ADDRESS_10:"0x94f913362b232e31daB49a1aFB775cfd25DaA6a1",VITE_VE_SUGAR_ADDRESS_8453:"0x4c5d3925fe65DFeB5A079485136e4De09cb664A5",VITE_VOTER_ADDRESS_10:"0x41C914ee0c7E1A5edCD0295623e6dC557B5aBf3C",VITE_VOTER_ADDRESS_8453:"0x16613524e02ad97eDfeF371bC883F2F5d6C480A5",VITE_WALLETCONNECT_PROJECT_ID:"a1ea2a919a3465f5a79109a93fa032fb",VITE_WRAPPED_NATIVE_TOKEN_10:"0x4200000000000000000000000000000000000006",VITE_WRAPPED_NATIVE_TOKEN_8453:"0x4200000000000000000000000000000000000006",VITE_XOP_BRIDGE:"0xac6A6080E002D2803959242C0FE10050C482D214",VITE_XOP_BRIDGE_V2:"0xfFCA1231d43Cf55B58d62627fD171ab1293C3050",VITE_XOP_TOKEN:"0xafcc6ae807187a31e84138f3860d4ce27973e01b",VITE_XOP_TOKEN_V2:"0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca"};Object.entries({[-1]:3000n,0:500n,1:100n,10:500n,50:500n,80:10000n,100:500n,150:30000n,200:3000n,500:20000n,2e3:10000n}).reduce((n,[i,r])=>(n[i]=V9(r,10000n,0,0),n),{});const tn="8453".split(",").map(Number),G9="10".split(",").map(Number)??[];jn[`VITE_RELAY_SUGAR_ADDRESS_${tn[0]}`];jn[`VITE_VE_SUGAR_ADDRESS_${tn[0]}`];jn[`VITE_ROUTER_ADDRESS_${tn[0]}`];jn[`VITE_MINTER_ADDRESS_${tn[0]}`];jn[`VITE_VOTER_ADDRESS_${tn[0]}`];jn[`VITE_VE_ADDRESS_${tn[0]}`];String(void 0).toLowerCase();"0xafcc6ae807187a31e84138f3860d4ce27973e01b".toLowerCase();String(void 0).toLowerCase();"0xac6A6080E002D2803959242C0FE10050C482D214".toLowerCase();"WETH,AERO,USDC,cbBTC".split(",");"".split(",").map(n=>n.toLowerCase());Vo(void 0);const k9=Vo("8453:0xb20000000000000000000078ee7ce2fE4908108C,8453:0xb2000000000000000000008bC8786B856E61707C,8453:0xb200000000000000000000C2e324d24d7eEcd1fb,8453:0xb2000000000000000000002D0BA3164cc74f58B7,8453:0xCEF8Db49E456f872E288E1C042F916E9ceD7c781");Vo("8453:0x853F5f1B92b16714Fe6CDA67CAad0856B83C7ab9,8453:0xA3b1E3f9747065e2073722Ff4c9027d3eA4994F0,8453:0xB1987CAD1682841b4b641d50E520777eC5Ab5542,8453:0xEAF57753BC382E0324a1D43F72E7027705a2273E,8453:0xe942B86f5c6d4a780fd673317Ee7E565d25aB7F3,8453:0x20E5fAd2661Ee9Eb0c04824524030AF31943B62D,8453:0x25F63549b2Bb9ffF114cDc39e8cfb16B450E2f9b,8453:0xD5B83c33A8711e727C0Abb6f72ee508755D37e10,8453:0xd03Bc8C7F2FAedCe2aac81bF0444AEA08Ea06E9b,8453:0x7103eB3c9590d1281f7dc03b2A9EE27C39dF5D54,8453:0x8b27f626ab668197000BC722A1012022CAeD10E2,8453:0x5A8236f575471e7BfCA2C8462a200c28f737246E,8453:0x0bf58fe0FAc935Ac69595c19B12Ba0d75E3F8c0E,8453:0x469337fDcc5E8f38e2E4B670B04F57865D13a7BB");Object.keys(k9).length>0;gi("3.0");gi("3.0");gi("0.001");gi("0.01");"https://raw.githubusercontent.com/SmolDapp/tokenAssets/main/tokens".split(",");const H9="".split(",").map(Number);"".split(",").map(Number);const[_i]=Ei(tn);JSON.parse(JSON.stringify(_i));const[a1]=Ei(G9);JSON.parse(JSON.stringify(a1));[..._i,...a1];const c1=_i[0];N9("10:0x4200000000000000000000000000000000000042=0xafcc6ae807187a31e84138f3860d4ce27973e01b,10:0x4200000000000000000000000000000000000042=0xab77a4cc84bb8bcc0fcb54a00eca32680d6f96ca");const zo="v2,relay,cl,vapr,alm,batched-txs,skip-batch-sim,tx-suffix".split(",");zo.includes("base-superswaps");U9("8453:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913=0xe92e51d99ae33114c60d9621fb2e1ec0acea7e30",zo);"9605,10296".split(",");"10298".split(",");"-1,0,1,10,50,80,100,150,200,500,2000".split(",").map(Number);const W9=z9(_i),K9=[],[Y9]=Ei(Uo.uniq(W9.concat(K9)));JSON.parse(JSON.stringify(Y9));String(void 0).toLowerCase();String(void 0).split(",").map(n=>n.toLowerCase());String(void 0).toLowerCase();"".split(",").map(n=>n.toLowerCase().split(":"));function j9(n,i={}){const{key:r="fallback",name:o="Fallback",retryCount:c,retryDelay:f}=i;return(({chain:l,timeout:b,...E})=>{const y=n;let w=()=>{};function T(S,O,z){return"code"in S&&typeof S.code=="number"&&(S.code===zn.code||S.code===pn.code||S.code===5e3||S.c
55ode===3&&![z.superchainConfig.sugar].includes(O[0].to))}return No({key:r,name:o,async request({method:S,params:O}){const z=async(Z=0)=>{const j=y[Z]({...E,chain:l,retryCount:0,timeout:b});try{const K=await j.request({method:S,params:O});return w({method:S,params:O,response:K,transport:j,status:"success"}),K}catch(K){if(w({error:K,method:S,params:O,transport:j,status:"error"}),T(K,O,l)||Z===y.length-1)throw K;return z(Z+1)}};return z()},retryCount:c,retryDelay:f,type:"fallback"},{onResponse:S=>w=S,transports:y.map(S=>S({chain:l,retryCount:0}))})})}const q9=(n,i)=>({chain:r,retryCount:o,timeout:c})=>{const f=n.filter(([E,y])=>y!==0).map(([E])=>j9([go(E,i),...n.filter(([y])=>y!==E).map(([y])=>go(y,i))])).map(E=>E(r===void 0?{retryCount:0,timeout:c}:{chain:r,retryCount:0,timeout:c}));let l=0,b=0;return No({key:"loadBalance",name:"Load Balance",request:E=>(b++,b>n[l][1]&&(l++,l===f.length&&(l=0),b=0),f[l].request(E)),retryCount:o,timeout:c,type:"loadBalance"})};function X9({chain:n,chainId:i,customRpc:r}){const o={retryCount:0,timeout:6e4,batch:zo.includes("no-batch-rpc-calls")?!1:{wait:10,batchSize:300}},c=n||Ei([i])[0][0],{superchainConfig:f}=c,l=r?go(r,o):q9(f.rpcs,o);return o9({chain:c,transport:l})}function Z9(n,i=void 0,r){const o=n.reduce((l,b,E)=>{const y=b.chainId;return l[y]||(l[y]=[]),l[y].push({idx:E,item:b}),l},{}),c={};Object.entries(o).map(([l,b])=>{c[Number(l)]=Uo.chunk(b,i||b.length)});const f=Object.entries(c).map(([l,b])=>b.map(E=>r(Number(l),E.map(y=>y.item)).then(y=>y.map((w,T)=>({idx:E[T].idx,result:w})))));return Promise.all(f.flat()).then(l=>l.flat().reduce((b,{idx:E,result:y})=>(b[E]=y,b),[]))}const Un=(()=>{const n=new Map,i=r=>JSON.stringify(r.map(o=>({...o,abi:""})));return{has:r=>n.has(i(r)),get:r=>n.get(i(r)),set:(r,o)=>n.set(i(r),o)}})(),qs=new Map;function Go(n,i){return qs.has(n)||qs.set(n,X9({chainId:n,customRpc:i})),qs.get(n)}function J9(n,{cache:i}={}){if(i&&Un.has([n]))return Un.get([n]);const r=kf(Go(n.chainId||c1.id,n.customRpc),n);return i&&Un.set([n],r),r}function Q9(n,{cache:i,chunkSize:r,noErrors:o}={}){if(i&&Un.has(n))return Un.get(n);const c=Z9(n,r,(f,l)=>r9(Go(f,l[0].customRpc),{contracts:l}).then(b=>b.map(E=>t4(E,o))));return i&&Un.set(n,c),c}function e4(n){return Dg(Go(n.chainId||c1.id),n)}function t4(n,i=!1){return n.status==="success"?i?n.result:[n.result]:i?null:n.error.message.toLowerCase().includes("out of gas")?[null,"oog"]:[null]}globalThis.window||Eo({readContract:J9,readContracts:Q9,getBalance:e4});export{s4 as A,P as B,Sr as H,m2 as I,i4 as a,r4 as b,Mt as c,bf as d,hf as e,Nn as f,Ro as g,fi as h,p2 as i,n4 as j,E3 as k,Ae as l,Qe as m,Oo as n,Zt as o,m3 as p,sg as q,Vn as r,Pr as s,Co as t,Hn as u};

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.