PageSourceSearch

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

js aerodrome.finance collected 2026-10-02 06:14:56 UTC 240,666 bytes, 55 lines download raw bytes

vendor: 4,189 bytes, line 1
1const Vu=Symbol("Comlink.proxy"),Xh=Symbol("Comlink.endpoint"),Zh=Symbol("Comlink.releaseProxy"),Vs=Symbol("Comlink.finalizer"),oi=Symbol("Comlink.thrown"),zu=n=>typeof n=="object"&&n!==null||typeof n=="function",Jh={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(),n8(n)}},Qh={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",Jh],["throw",Qh]]);function e8(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(!e8(r,c.origin)){console.warn(`Invalid origin '${c.origin}' for comlink proxy`);return}const{id:f,type:d,path:h}=Object.assign({path:[]},c.data),E=(c.data.argumentList||[]).map(ln);let m;try{const w=h.slice(0,-1).reduce((A,C)=>A[C],n),T=h.reduce((A,C)=>A[C],n);switch(d){case"GET":m=T;break;case"SET":w[h.slice(-1)[0]]=ln(c.data.value),m=!0;break;case"APPLY":m=T.apply(w,E);break;case"CONSTRUCT":{const A=new T(...E);m=a8(A)}break;case"ENDPOINT":{const{port1:A,port2:C}=new MessageChannel;Eo(n,C),m=o8(A,[A])}break;case"RELEASE":m=void 0;break;default:return}}catch(w){m={value:w,[oi]:0}}Promise.resolve(m).catch(w=>({value:w,[oi]:0})).then(w=>{const[T,A]=ui(w);i.postMessage(Object.assign(Object.assign({},T),{id:f}),A),d==="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 t8(n){return n.constructor.name==="MessagePort"}function ku(n){t8(n)&&n.close()}function n8(n,i){const r=new Map;return n.addEventListener("message",function(c){const{data:f}=c;if(!f||!f.id)return;const d=r.get(f.id);if(d)try{d(f)}finally{r.delete(f.id)}}),Xs(n,r,[],i)}function jr(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 r8(n,i){const r=(ai.get(i)||0)+1;ai.set(i,r),ci&&ci.register(n,i,n)}function i8(n){ci&&ci.unregister(n)}function Xs(n,i,r=[],o=function(){}){let c=!1;const f=new Proxy(o,{get(d,h){if(jr(c),h===Zh)return()=>{i8(f),Hu(n),i.clear(),c=!0};if(h==="then"){if(r.length===0)return{then:()=>f};const E=Ln(n,i,{type:"GET",path:r.map(m=>m.toString())}).then(ln);return E.then.bind(E)}return Xs(n,i,[...r,h])},set(d,h,E){jr(c);const[m,w]=ui(E);return Ln(n,i,{type:"SET",path:[...r,h].map(T=>T.toString()),value:m},w).then(ln)},apply(d,h,E){jr(c);const m=r[r.length-1];if(m===Xh)return Ln(n,i,{type:"ENDPOINT"}).then(ln);if(m==="bind")return Xs(n,i,r.slice(0,-1));const[w,T]=mu(E);return Ln(n,i,{type:"APPLY",path:r.map(A=>A.toString()),argumentList:w},T).then(ln)},construct(d,h){jr(c);const[E,m]=mu(h);return Ln(n,i,{type:"CONSTRUCT",path:r.map(w=>w.toString()),argumentList:E},m).then(ln)}});return r8(f,n),f}function s8(n){return Array.prototype.concat.apply([],n)}function mu(n){const i=n.map(ui);return[i.map(r=>r[0]),s8(i.map(r=>r[1]))]}const Wu=new WeakMap;function o8(n,i){return Wu.set(n,i),n}function a8(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 ln(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=c8();i.set(f,c),n.start&&n.start(),n.postMessage(Object.assign({id:f},r),o)})}function c8(){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"}],ng=[{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 m8(n.type);return`${n.name}(${xo(n.inputs,{includeName:i})})`}function xo(n,{includeName:i=!1}={}){return n?n.map(r=>u8(r,{includeName:i})).join(i?", ":","):""}function u8(n,{includeName:i}){return n.type.startsWith("tuple")?`(${xo(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}`},B=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}),d=[i||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...o?[`Details: ${o}`]:[],...zs.version?[`Version: ${zs.version}`]:[]].join(`
2`);super(d,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 f8 extends B{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 yu extends B{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 d8 extends B{constructor({data:i,params:r,size:o}){super([`Data size of ${o} bytes is too small for given parameters.`].join(`
5`),{metaMessages:[`Params: (${xo(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 li extends B{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l8 extends B{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 b8 extends B{constructor({expectedSize:i,value:r}){super(`Size of bytes "${r}" (bytes${Ee(r)}) does not match expected size (bytes${i}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h8 extends B{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 rg extends B{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 ig extends B{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 B{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 B{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 p8 extends B{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 sg extends B{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 g8 extends B{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 E8 extends B{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 x8 extends B{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 _8 extends B{constructor(i){super([`Value "${i}" is not a valid array.`].join(`
16`),{name:"InvalidArrayError"})}}class m8 extends B{constructor(i){super([`"${i}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
17`),{name:"InvalidDefinitionTypeError"})}}class Qe extends B{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 B{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 B{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 B{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}):y8(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 y8(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 B{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 A8 extends B{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 w8 extends B{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 _t(n,{size:i}){if(Ee(n)>i)throw new w8({givenSize:Ee(n),maxSize:i})}function xt(n,i={}){const{signed:r}=i;i.size&&_t(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 S0(n,i={}){return Number(xt(n,i))}const v8=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"?_o(n,i):typeof n=="boolean"?Ju(n,i):Se(n,i)}function Ju(n,i={}){const r=`0x${Number(n)}`;return typeof i.size=="number"?(_t(r,{size:i.size}),Wn(r,{size:i.size})):r}function Se(n,i={}){let r="";for(let c=0;c<n.length;c++)r+=v8[n[c]];const o=`0x${r}`;return typeof i.size=="number"?(_t(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 d=typeof f=="bigint"&&r?-f-1n:0;if(f&&c>f||c<d){const E=typeof n=="bigint"?"n":"";throw new Zu({max:f?`${f}${E}`:void 0,min:`${d}${E}`,signed:r,size:o,value:`${n}${E}`})}const h=`0x${(r&&c<0?(1n<<BigInt(o*8))+BigInt(c):c).toString(16)}`;return o?Wn(h,{size:o}):h}const T8=new TextEncoder;function _o(n,i={}){const r=T8.encode(n);return Se(r,i)}const C8=new TextEncoder;function mo(n,i={}){return typeof n=="number"||typeof n=="bigint"?I8(n,i):typeof n=="boolean"?S8(n,i):Hn(n)?Jt(n,i):Qu(n,i)}function S8(n,i={}){const r=new Uint8Array(1);return r[0]=Number(n),typeof i.size=="number"?(_t(r,{size:i.size}),Wn(r,{size:i.size})):r}const Ft={zero:48,nine:57,A:65,F:70,a:97,f:102};function wu(n){if(n>=Ft.zero&&n<=Ft.nine)return n-Ft.zero;if(n>=Ft.A&&n<=Ft.F)return n-(Ft.A-10);if(n>=Ft.a&&n<=Ft.f)return n-(Ft.a-10)}function Jt(n,i={}){let r=n;i.size&&(_t(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 d=0,h=0;d<c;d++){const E=wu(o.charCodeAt(h++)),m=wu(o.charCodeAt(h++));if(E===void 0||m===void 0)throw new B(`Invalid byte sequence ("${o[h-2]}${o[h-1]}" in "${o}").`);f[d]=E*16+m}return f}function I8(n,i){const r=L(n,i);return Jt(r)}function Qu(n,i={}){const r=C8.encode(n);return typeof i.size=="number"?(_t(r,{size:i.size}),Wn(r,{dir:"right",size:i.size})):r}const qr=BigInt(2**32-1),vu=BigInt(32);function D8(n,i=!1){return i?{h:Number(n&qr),l:Number(n>>vu&qr)}:{h:Number(n>>vu&qr)|0,l:Number(n&qr)|0}}function B8(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:d,l:h}=D8(n[f],i);[o[f],c[f]]=[d,h]}return[o,c]}const R8=(n,i,r)=>n<<r|i>>>32-r,P8=(n,i,r)=>i<<r|n>>>32-r,F8=(n,i,r)=>i<<r-32|n>>>64-r,O8=(n,i,r)=>n<<r-32|i>>>64-r;function L8(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 I0(n,...i){if(!L8(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 di(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){I0(n);const r=i.outputLen;if(n.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function $8(n){return new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4))}function D0(...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}
17const M8=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function U8(n){return n<<24&4278190080|n<<8&16711680|n>>>8&65280|n>>>24&255}function N8(n){for(let i=0;i<n.length;i++)n[i]=U8(n[i]);return n}const Cu=M8?n=>n:N8;function V8(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function yo(n){return typeof n=="string"&&(n=V8(n)),I0(n),n}class tf{}function nf(n){const i=o=>n().update(yo(o)).digest(),r=n();return i.outputLen=r.outputLen,i.blockLen=r.blockLen,i.create=()=>n(),i}const z8=BigInt(0),x0=BigInt(1),G8=BigInt(2),k8=BigInt(7),H8=BigInt(256),W8=BigInt(113),rf=[],sf=[],of=[];for(let n=0,i=x0,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=z8;for(let f=0;f<7;f++)i=(i<<x0^(i>>k8)*W8)%H8,i&G8&&(c^=x0<<(x0<<BigInt(f))-x0);of.push(c)}const af=B8(of,!0),K8=af[0],Y8=af[1],Su=(n,i,r)=>r>32?F8(n,i,r):R8(n,i,r),Iu=(n,i,r)=>r>32?O8(n,i,r):P8(n,i,r);function j8(n,i=24){const r=new Uint32Array(10);for(let o=24-i;o<24;o++){for(let d=0;d<10;d++)r[d]=n[d]^n[d+10]^n[d+20]^n[d+30]^n[d+40];for(let d=0;d<10;d+=2){const h=(d+8)%10,E=(d+2)%10,m=r[E],w=r[E+1],T=Su(m,w,1)^r[h],A=Iu(m,w,1)^r[h+1];for(let C=0;C<50;C+=10)n[d+C]^=T,n[d+C+1]^=A}let c=n[2],f=n[3];for(let d=0;d<24;d++){const h=sf[d],E=Su(c,f,h),m=Iu(c,f,h),w=rf[d];c=n[w],f=n[w+1],n[w]=E,n[w+1]=m}for(let d=0;d<50;d+=10){for(let h=0;h<10;h++)r[h]=n[d+h];for(let h=0;h<10;h++)n[d+h]^=~r[(h+2)%10]&r[(h+4)%10]}n[0]^=K8[o],n[1]^=Y8[o]}D0(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=$8(this.state)}clone(){return this._cloneInto()}keccak(){Cu(this.state32),j8(this.state32,this.rounds),Cu(this.state32),this.posOut=0,this.pos=0}update(i){di(this),i=yo(i),I0(i);const{blockLen:r,state:o}=this,c=i.length;for(let f=0;f<c;){const d=Math.min(r-this.pos,c-f);for(let h=0;h<d;h++)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){di(this,!1),I0(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 d=Math.min(o-this.posOut,f-c);i.set(r.subarray(this.posOut,this.posOut+d),c),this.posOut+=d,c+=d}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,D0(this.state)}_cloneInto(i){const{blockLen:r,suffix:o,outputLen:c,rounds:f,enableXOF:d}=this;return i||(i=new Ao(r,o,c,d,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=d,i.destroyed=this.destroyed,i}}const q8=(n,i,r)=>nf(()=>new Ao(i,n,r)),X8=q8(1,136,256/8);function cf(n,i){const r=i||"hex",o=X8(Hn(n,{strict:!1})?mo(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 Z8=/^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=Z8.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 d=0;d<40;d+=2)o[d>>1]>>4>=8&&c[d]&&(c[d]=c[d].toUpperCase()),(o[d>>1]&15)>=8&&c[d+1]&&(c[d+1]=c[d+1].toUpperCase());const f=`0x${c.join("")}`;return Hs.set(`${n}.${i}`,f),f}class Du extends B{constructor({offset:i}){super(`Offset \`${i}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class J8 extends B{constructor({length:i,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${i}\`).`,{name:"PositionOutOfBoundsError"})}}class Q8 extends B{constructor({count:i,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${i}\`).`,{name:"RecursiveReadLimitExceededError"})}}const ep={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 Q8({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(n){if(n<0||n>this.bytes.length-1)throw new J8({length:this.bytes.length,position:n})},decrementPosition(n){if(n<0)throw new Du({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 Du({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(ep);return r.bytes=n,r.dataView=new DataView(n.buffer,n.byteOffset,n.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=i,r}function B0(n,i,r,{strict:o}={}){return Hn(n,{strict:!1})?tp(n,i,r,{strict:o}):lf(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 df(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 lf(n,i,r,{strict:o}={}){ff(n,i);const c=n.slice(i,r);return o&&df(c,i,r),c}function tp(n,i,r,{strict:o}={}){ff(n,i);
17const c=`0x${n.replace("0x","").slice((i??0)*2,(r??n.length)*2)}`;return o&&df(c,i,r),c}function np(n,i={}){typeof i.size<"u"&&_t(n,{size:i.size});const r=Se(n,i);return xt(r,i)}function rp(n,i={}){let r=n;if(typeof i.size<"u"&&(_t(r,{size:i.size}),r=$t(r)),r.length>1||r[0]>1)throw new A8(r);return!!r[0]}function Lt(n,i={}){typeof i.size<"u"&&_t(n,{size:i.size});const r=Se(n,i);return S0(r,i)}function ip(n,i={}){let r=n;return typeof i.size<"u"&&(_t(r,{size:i.size}),r=$t(r,{dir:"right"})),new TextDecoder().decode(r)}function Vn(n){return typeof n[0]=="string"?Mt(n):sp(n)}function sp(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 op=/^(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 bf(n,i){if(n.length!==i.length)throw new h8({expectedLength:n.length,givenLength:i.length});const r=ap({params:n,values:i}),o=Co(r);return o.length===0?"0x":o}function ap({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=So(n.type);if(r){const[o,c]=r;return up(i,{length:o,param:{...n,type:c}})}if(n.type==="tuple")return hp(i,{param:n});if(n.type==="address")return cp(i);if(n.type==="bool")return dp(i);if(n.type.startsWith("uint")||n.type.startsWith("int")){const o=n.type.startsWith("int"),[,,c="256"]=op.exec(n.type)??[];return lp(i,{signed:o,size:Number(c)})}if(n.type.startsWith("bytes"))return fp(i,{param:n});if(n.type==="string")return bp(i);throw new E8(n.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Co(n){let i=0;for(let f=0;f<n.length;f++){const{dynamic:d,encoded:h}=n[f];d?i+=32:i+=Ee(h)}const r=[],o=[];let c=0;for(let f=0;f<n.length;f++){const{dynamic:d,encoded:h}=n[f];d?(r.push(L(i+c,{size:32})),o.push(h),c+=Ee(h)):r.push(h)}return Vn([...r,...o])}function cp(n){if(!Ae(n))throw new Qe({address:n});return{dynamic:!1,encoded:Xt(n.toLowerCase())}}function up(n,{length:i,param:r}){const o=i===null;if(!Array.isArray(n))throw new _8(n);if(!o&&n.length!==i)throw new l8({expectedLength:i,givenLength:n.length,type:`${r.type}[${i}]`});let c=!1;const f=[];for(let d=0;d<n.length;d++){const h=To({param:r,value:n[d]});h.dynamic&&(c=!0),f.push(h)}if(o||c){const d=Co(f);if(o){const h=L(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?Vn([h,d]):h}}if(c)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:Vn(f.map(({encoded:d})=>d))}}function fp(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 b8({expectedSize:Number.parseInt(r,10),value:n});return{dynamic:!1,encoded:Xt(n,{dir:"right"})}}function dp(n){if(typeof n!="boolean")throw new B(`Invalid boolean value: "${n}" (type: ${typeof n}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Xt(Ju(n))}}function lp(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 bp(n){const i=_o(n),r=Math.ceil(Ee(i)/32),o=[];for(let c=0;c<r;c++)o.push(Xt(B0(i,c*32,(c+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Vn([Xt(L(Ee(i),{size:32})),...o])}}function hp(n,{param:i}){let r=!1;const o=[];for(let c=0;c<i.components.length;c++){const f=i.components[c],d=Array.isArray(n)?c:f.name,h=To({param:f,value:n[d]});o.push(h),h.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Co(o):Vn(o.map(({encoded:c})=>c))}}function So(n){const i=n.match(/^(.*)\[(\d+)?\]$/);return i?[i[2]?Number(i[2]):null,i[1]]:void 0}function hf(n,i){const r=typeof i=="string"?Jt(i):i,o=vo(r);if(Ee(r)===0&&n.length>0)throw new li;if(Ee(i)&&Ee(i)<32)throw new d8({data:typeof i=="string"?i:Se(i),params:n,size:Ee(i)});let c=0;const f=[];for(let d=0;d<n.length;++d){const h=n[d];o.setPosition(c);const[E,m]=Mn(o,h,{staticPosition:0});c+=m,f.push(E)}return f}function Mn(n,i,{staticPosition:r}
17){const o=So(i.type);if(o){const[c,f]=o;return gp(n,{...i,type:f},{length:c,staticPosition:r})}if(i.type==="tuple")return mp(n,i,{staticPosition:r});if(i.type==="address")return pp(n);if(i.type==="bool")return Ep(n);if(i.type.startsWith("bytes"))return xp(n,i,{staticPosition:r});if(i.type.startsWith("uint")||i.type.startsWith("int"))return _p(n,i);if(i.type==="string")return yp(n,{staticPosition:r});throw new x8(i.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Bu=32,Qs=32;function pp(n){const i=n.readBytes(32);return[uf(Se(lf(i,-20))),32]}function gp(n,i,{length:r,staticPosition:o}){if(!r){const d=Lt(n.readBytes(Qs)),h=o+d,E=h+Bu;n.setPosition(h);const m=Lt(n.readBytes(Bu)),w=R0(i);let T=0;const A=[];for(let C=0;C<m;++C){n.setPosition(E+(w?C*32:T));const[F,z]=Mn(n,i,{staticPosition:E});T+=z,A.push(F)}return n.setPosition(o+32),[A,32]}if(R0(i)){const d=Lt(n.readBytes(Qs)),h=o+d,E=[];for(let m=0;m<r;++m){n.setPosition(h+m*32);const[w]=Mn(n,i,{staticPosition:h});E.push(w)}return n.setPosition(o+32),[E,32]}let c=0;const f=[];for(let d=0;d<r;++d){const[h,E]=Mn(n,i,{staticPosition:o+c});c+=E,f.push(h)}return[f,c]}function Ep(n){return[rp(n.readBytes(32),{size:32}),32]}function xp(n,i,{staticPosition:r}){const[o,c]=i.type.split("bytes");if(!c){const d=Lt(n.readBytes(32));n.setPosition(r+d);const h=Lt(n.readBytes(32));if(h===0)return n.setPosition(r+32),["0x",32];const E=n.readBytes(h);return n.setPosition(r+32),[Se(E),32]}return[Se(n.readBytes(Number.parseInt(c,10),32)),32]}function _p(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?np(c,{signed:r}):Lt(c,{signed:r}),32]}function mp(n,i,{staticPosition:r}){const o=i.components.length===0||i.components.some(({name:d})=>!d),c=o?[]:{};let f=0;if(R0(i)){const d=Lt(n.readBytes(Qs)),h=r+d;for(let E=0;E<i.components.length;++E){const m=i.components[E];n.setPosition(h+f);const[w,T]=Mn(n,m,{staticPosition:h});f+=T,c[o?E:m?.name]=w}return n.setPosition(r+32),[c,32]}for(let d=0;d<i.components.length;++d){const h=i.components[d],[E,m]=Mn(n,h,{staticPosition:r});c[o?d:h?.name]=E,f+=m}return[c,f]}function yp(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),d=ip($t(f));return n.setPosition(i+32),[d,32]}function R0(n){const{type:i}=n;if(i==="string"||i==="bytes"||i.endsWith("[]"))return!0;if(i==="tuple")return n.components?.some(R0);const r=So(n.type);return!!(r&&R0({...n,type:r[1]}))}const Ap=n=>cf(mo(n));function wp(n){return Ap(n)}const vp="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@${vp}`].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=/^\(.+?\).*?$/,Ru=/^tuple(?<array>(\[(\d*)\])*)$/;function to(n){let i=n.type;if(Ru.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(Ru,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 _0(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 Tp(n){return n.type==="function"?`function ${n.name}(${_0(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${n.outputs?.length?` returns (${_0(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${_0(n.inputs)})`:n.type==="error"?`error ${n.name}(${_0(n.inputs)})`:n.type==="constructor"?`constructor(${_0(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const xf=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Cp(n){return xf.test(n)}function Sp(n){return Ut(xf,n)}const _f=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Ip(n){return _f.test(n)}function Dp(n){return Ut(_f,n)}const mf=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function Bp(n){return mf.test(n)}function Rp(n){return Ut(mf,n)}const yf=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Af(n){return yf.test(n)}function Pp(n){return Ut(yf,n)}const wf=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function Fp(n){return wf.test(n)}function Op(n){return Ut(wf,n)}const vf=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Lp(n){return vf.test(n)}function $p(n){return Ut(vf,n)}const Mp=/^receive\(\) external payable$/;function Up(n){return Mp.test(n)}const Np=new Set(["indexed"]),no=new Set(["calldata","memory","storage"]);class Vp 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 zp 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 Gp extends et{constructor({param:i}){super("Invalid ABI parameter.",{details:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class kp 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 Hp 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 Wp 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 Kp 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 Yp extends et{constructor({signature:i}){super("Unknown signature.",{details:i}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class jp 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 qp 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 Xp 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 Zp(n,i,r){let o="";if(r)for(const c of Object.entries(r)){if(!c)continue;let f="";for(const d of c[1])f+=`[${d.type}${d.name?`:${d.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 Jp(n,i={}){if(Bp(n))return Qp(n,i);if(Ip(n))return e3(n,i);if(Cp(n))return t3(n,i);if(Fp(n))return n3(n,i);if(Lp(n))return r3(n);if(Up(n))return{type:"receive",stateMutability:"payable"};throw new Yp({signature:n})}function Qp(n,i={}){const r=Rp(n);if(!r)throw new Kn({signature:n,type:"function"});const o=ut(r.parameters),c=[],f=o.length;for(let h=0;h<f;h++)c.push(gn(o[h],{modifiers:no,structs:i,type:"function"}));const d=[];if(r.returns){const h=ut(r.returns),E=h.length;for(let m=0;m<E;m++)d.push(gn(h[m],{modifiers:no,structs:i,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:c,outputs:d}}function e3(n,i={}){const r=Dp(n);if(!r)throw new Kn({signature:n,type:"event"});const o=ut(r.parameters),c=[],f=o.length;for(let d=0;d<f;d++)c.push(gn(o[d],{modifiers:Np,structs:i,type:"event"}));return{name:r.name,type:"event",inputs:c}}function t3(n,i={}){const r=Sp(n);if(!r)throw new Kn({signature:n,type:"error"});const o=ut(r.parameters),c=[],f=o.length;for(let d=0;d<f;d++)c.push(gn(o[d],{structs:i,type:"error"}));return{name:r.name,type:"error",inputs:c}}function n3(n,i={}){const r=Op(n);if(!r)throw new Kn({signature:n,type:"constructor"});const o=ut(r.parameters),c=[],f=o.length;for(let d=0;d<f;d++)c.push(gn(o[d],{structs:i,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:c}}function r3(n){const i=$p(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=Zp(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 Gp({param:n});if(c.name&&c3(c.name))throw new kp({param:n,name:c.name});const f=c.name?{name:c.name}:{},d=c.modifier==="indexed"?{indexed:!0}:{},h=i?.structs??{};let E,m={};if(o){E="tuple";const T=ut(c.type),A=[],C=T.length;for(let F=0;F<C;F++)A.push(gn(T[F],{structs:h}));m={components:A}}else if(c.type in h)E="tuple",m={components:h[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 zp({type:E});if(c.modifier){if(!i?.modifiers?.has?.(c.modifier))throw new Hp({param:n,type:i?.type,modifier:c.modifier});if(no.has(c.modifier)&&!u3(E,!!c.array))throw new Wp({param:n,type:i?.type,modifier:c.modifier})}const w={type:`${E}${c.array??""}`,...f,...d,...m};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 d=n[f],h=n.slice(f+1);switch(d){case",":return o===0?ut(h,[...i,r.trim()]):ut(h,i,`${r}${d}`,o);case"(":return ut(h,i,`${r}${d}`,o+1);case")":return ut(h,i,`${r}${d}`,o-1);default:return ut(h,i,`${r}${d}`,o)}}if(r==="")return i;if(o!==0)throw new Xp({current:r,depth:o});return i.push(r.trim()),i}function Tf(n){return n==="address"||n==="bool"||n==="function"||n==="str
18ing"||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 d=0;d<r;d++){const h=n[d];if(!Af(h))continue;const E=Pp(h);if(!E)throw new Kn({signature:h,type:"struct"});const m=E.properties.split(";"),w=[],T=m.length;for(let A=0;A<T;A++){const F=m[A].trim();if(!F)continue;const z=gn(F,{type:"struct"});w.push(z)}if(!w.length)throw new jp({signature:h});i[E.name]=w}const o={},c=Object.entries(i),f=c.length;for(let d=0;d<f;d++){const[h,E]=c[d];o[h]=Cf(E,i)}return o}const d3=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Cf(n,i,r=new Set){const o=[],c=n.length;for(let f=0;f<c;f++){const d=n[f];if(Ef.test(d.type))o.push(d);else{const E=Ut(d3,d.type);if(!E?.type)throw new Kp({abiParameter:d});const{array:m,type:w}=E;if(w in i){if(r.has(w))throw new qp({type:w});o.push({...d,type:`tuple${m??""}`,components:Cf(i[w]??[],i,new Set([...r,w]))})}else if(Tf(w))o.push(d);else throw new Vp({type:w})}}return o}function Sf(n){const i=f3(n),r=[],o=n.length;for(let c=0;c<o;c++){const f=n[c];Af(f)||r.push(Jp(f,i))}return r}function l3(n){let i=!0,r="",o=0,c="",f=!1;for(let d=0;d<n.length;d++){const h=n[d];if(["(",")",","].includes(h)&&(i=!0),h==="("&&o++,h===")"&&o--,!!i){if(o===0){if(h===" "&&["event","function",""].includes(c))c="";else if(c+=h,h===")"){f=!0;break}continue}if(h===" "){n[d-1]!==","&&r!==","&&r!==",("&&(r="",i=!1);continue}c+=h,r+=h}}if(!f)throw new B("Unable to normalize signature.");return c}const b3=n=>{const i=typeof n=="string"?n:Tp(n);return l3(i)};function If(n){return wp(b3(n))}const h3=If,Io=n=>B0(If(n),0,4);function Do(n){const{abi:i,args:r=[],name:o}=n,c=Hn(o,{strict:!1}),f=i.filter(h=>c?h.type==="function"?Io(h)===o:h.type==="event"?h3(h)===o:!1:"name"in h&&h.name===o);if(f.length===0)return;if(f.length===1)return f[0];let d;for(const h of f){if(!("inputs"in h))continue;if(!r||r.length===0){if(!h.inputs||h.inputs.length===0)return h;continue}if(!h.inputs||h.inputs.length===0||h.inputs.length!==r.length)continue;if(r.every((m,w)=>{const T="inputs"in h&&h.inputs[w];return T?ro(m,T):!1})){if(d&&"inputs"in d&&d.inputs){const m=Df(h.inputs,d.inputs,r);if(m)throw new g8({abiItem:h,type:m[0]},{abiItem:d,type:m[1]})}d=h}}return d||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 Df(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 Df(c.components,f.components,r[o]);const d=[c.type,f.type];if(d.includes("address")&&d.includes("bytes20")?!0:d.includes("address")&&d.includes("string")?Ae(r[o],{strict:!1}):d.includes("address")&&d.includes("bytes")?Ae(r[o],{strict:!1}):!1)return d}}const Ks="/docs/contract/decodeFunctionResult";function Bo(n){const{abi:i,args:r,functionName:o,data:c}=n;let f=i[0];if(o){const h=Do({abi:i,args:r,name:o});if(!h)throw new fi(o,{docsPath:Ks});f=h}if(f.type!=="function")throw new fi(void 0,{docsPath:Ks});if(!f.outputs)throw new p8(f.name,{docsPath:Ks});const d=hf(f.outputs,c);if(d&&d.length>1)return d;if(d&&d.length===1)return d[0]}const Pu="/docs/contract/encodeFunctionData";function p3(n){const{abi:i,args:r,functionName:o}=n;let c=i[0];if(o){const f=Do({abi:i,args:r,name:o});if(!f)throw new fi(o,{docsPath:Pu});c=f}if(c.type!=="function")throw new fi(void 0,{docsPath:Pu});return{abi:[c],functionName:Io(Nn(c))}}function Ro(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,d="inputs"in c&&c.inputs?bf(c.inputs,i??[]):void 0;return Mt([f,d??"0x"])}class io extends B{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 Bf extends B{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Q0 extends B{constructor({chainId:i}){super(typeof i=="number"?`Chain ID "${i}
18" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function Rf({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 bi(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"},x3={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function _3(n){const{abi:i,data:r}=n,o=B0(r,0,4);if(o==="0x")throw new li;const f=[...i||[],E3,x3].find(d=>d.type==="error"&&o===Io(Nn(d)));if(!f)throw new ju(o,{docsPath:"/docs/contract/decodeErrorResult"});
18return{abiItem:f,args:"inputs"in f&&f.inputs&&f.inputs.length>0?hf(f.inputs,B0(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 Pf({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 Ff={gwei:9,wei:18},m3={ether:-9,wei:9};function Of(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 y3(n,i="wei"){return Of(n,Ff[i])}function hn(n,i="wei"){return Of(n,m3[i])}class A3 extends B{constructor({address:i}){super(`State for account "${i}" is set multiple times.`,{name:"AccountStateConflictError"})}}class w3 extends B{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Fu(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+=Fu(o.state)),o.stateDiff&&(c+=`      stateDiff:
25`,c+=Fu(o.stateDiff)),c},`  State Override:
26`).slice(0,-1)}function Po(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 B{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 C3 extends B{constructor({v:i}){super(`Invalid \`v\` value "${i}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class S3 extends B{constructor({transaction:i}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Po(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 I3 extends B{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 D3=n=>n,Fo=n=>n;class B3 extends B{constructor(i,{account:r,docsPath:o,chain:c,data:f,gas:d,gasPrice:h,maxFeePerGas:E,maxPriorityFeePerGas:m,nonce:w,to:T,value:A,stateOverride:C}){const F=r?bi(r):void 0;let z=Po({from:F?.address,to:T,value:typeof A<"u"&&`${y3(A)} ${c?.nativeCurrency?.symbol||"ETH"}`,data:f,gas:d,gasPrice:typeof h<"u"&&`${hn(h)} gwei`,maxFeePerGas:typeof E<"u"&&`${hn(E)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${hn(m)} gwei`,nonce:w});C&&(z+=`
29${v3(C)}`),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 R3 extends B{constructor(i,{abi:r,args:o,contractAddress:c,docsPath:f,functionName:d,sender:h}){const E=Do({abi:r,args:o,name:d}),m=E?Pf({abiItem:E,args:o,includeFunctionName:!1,includeName:!1}):void 0,w=E?Nn(E,{includeName:!0}):void 0,T=Po({address:c&&D3(c),function:w,args:m&&m!=="()"&&`${[...Array(d?.length??0).keys()].map(()=>" ").join("")}${m}`,sender:h});super(i.shortMessage||`An unknown error occurred while executing the contract function "${d}".`,{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=d,this.sender=h}}class P3 extends B{constructor({abi:i,data:r,functionName:o,message:c}){let f,d,h,E;if(r&&r!=="0x")try{d=_3({abi:i,data:r});const{abiItem:w,errorName:T,args:A}=d;if(T==="Error")E=A[0];else if(T==="Panic"){const[C]=A;E=g3[C]}else{const C=w?Nn(w,{includeName:!0}):void 0,F=w&&A?Pf({abiItem:w,args:A,includeFunctionName:!1,includeName:!1}):void 0;h=[C?`Error: ${C}`:"",F&&F!=="()"?`       ${[...Array(T?.length??0).keys()].map(()=>" ").join("")}${F}`:""]}}catch(w){f=w}else c&&(E=c);let m;f instanceof ju&&(m=f.signature,h=[`Unable to decode signature "${m}" 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=${m}.`]),super(E&&E!=="execution reverted"||m?[`The contract function "${o}" reverted with the following ${m?"signature":"reason"}:`,E||m].join(`
30`):`The contract function "${o}" reverted.`,{cause:f,metaMessages:h,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=d,this.raw=r,this.reason=E,this.signature=m}}class F3 extends B{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 O3 extends B{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 Oo extends B{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 C0 extends B{constructor({body:i,cause:r,details:o,headers:c,status:f,url:d}){super("HTTP request failed.",{cause:r,details:o,metaMessages:[f&&`Status: ${f}`,`URL: ${Fo(d)}`,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=d}}class Lo extends B{constructor({body:i,error:r,url:o}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Fo(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 Ou extends B{constructor({body:i,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Fo(r)}`,`Request body: ${Zt(i)}`],name:"TimeoutError"})}}const L3=-1;class Fe extends B{constructor(i,{code:r,docsPath:o,metaMessages:c,name:f,shortMessage:d}){super(d,{cause:i,docsPath:o,metaMessages:c||i?.metaMessages,name:f||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
vendor: 5,641 bytes, lines 30-32
30),this.name=f||i.name,this.code=i instanceof Lo?i.code:r??L3}}class ze extends Fe{constructor(i,r){super(i,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class P0 extends Fe{constructor(i){super(i,{code:P0.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(P0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class F0 extends Fe{constructor(i){super(i,{code:F0.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(F0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class O0 extends Fe{constructor(i,{method:r}={}){super(i,{code:O0.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(O0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class L0 extends Fe{constructor(i){super(i,{code:L0.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
31`)})}}Object.defineProperty(L0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class En extends Fe{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 $0 extends Fe{constructor(i){super(i,{code:$0.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
32`)})}}Object.defineProperty($0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class M0 extends Fe{constructor(i){super(i,{code:M0.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(M0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class U0 extends Fe{constructor(i){super(i,{code:U0.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(U0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class zn extends Fe{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 bn extends Fe{constructor(i,{method:r}={}){super(i,{code:bn.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(bn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Gn extends Fe{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 N0 extends Fe{constructor(i){super(i,{code:N0.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(N0,"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 V0 extends ze{constructor(i){super(i,{code:V0.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(V0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class z0 extends ze{constructor(i,{method:r}={}){super(i,{code:z0.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(z0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class G0 extends ze{constructor(i){super(i,{code:G0.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(G0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class k0 extends ze{constructor(i){super(i,{code:k0.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(k0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class H0 extends ze{constructor(i){super(i,{code:H0.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(H0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class W0 extends ze{constructor(i){super(i,{code:W0.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(W0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class K0 extends ze{constructor(i){super(i,{code:K0.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(K0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Y0 extends ze{constructor(i){super(i,{code:Y0.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Y0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});
32class j0 extends ze{constructor(i){super(i,{code:j0.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(j0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class q0 extends ze{constructor(i){super(i,{code:q0.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(q0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class X0 extends ze{constructor(i){super(i,{code:X0.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(X0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Z0 extends ze{constructor(i){super(i,{code:Z0.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Z0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class $3 extends Fe{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:d}){const h=n instanceof Oo?n:n instanceof B?n.walk(F=>"data"in F)||n.walk():{},{code:E,data:m,details:w,message:T,shortMessage:A}=h,C=n instanceof li?new F3({functionName:f}):[M3,En.code].includes(E)&&(m||w||T||A)?new P3({abi:i,data:typeof m=="object"?m.data:m,functionName:f,message:h instanceof Lo?w:A??T}):n;return new R3(C,{abi:i,args:o,contractAddress:r,docsPath:c,functionName:f,sender:d})}const U3="0.1.1";function N3(){return U3}class J0 extends Error{constructor(i,r={}){const o=(()=>{if(r.cause instanceof J0){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 J0&&r.cause.docsPath||r.docsPath,d=`https://oxlib.sh${c??""}`,h=[i||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...o||c?["",o?`Details: ${o}`:void 0,c?`See: ${d}`:void 0]:[]].filter(E=>typeof E=="string").join(`
33`);super(h,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=d,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 Ot(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 d=typeof f=="bigint"&&r?-f-1n:0;if(f&&c>f||c<d){const m=typeof n=="bigint"?"n":"";throw new G3({max:f?`${f}${m}`:void 0,min:`${d}${m}`,signed:r,size:o,value:`${n}${m}`})}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 J0{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 J0{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:Ot(n.amount),index:Ot(n.index),validatorIndex:Ot(n.validatorIndex)}}function W3(n){return{...typeof n.baseFeePerGas=="bigint"&&{baseFeePerGas:Ot(n.baseFeePerGas)},...typeof n.blobBaseFee=="bigint"&&{blobBaseFee:Ot(n.blobBaseFee)},...typeof n.feeRecipient=="string"&&{feeRecipient:n.feeRecipient},...typeof n.gasLimit=="bigint"&&{gasLimit:Ot(n.gasLimit)},...typeof n.number=="bigint"&&{number:Ot(n.number)},...typeof n.prevRandao=="bigint"&&{prevRandao:Ot(n.prevRandao)},...typeof n.time=="bigint"&&{time:Ot(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(d=>"type"in d&&d.type==="constructor");if(!c)throw new f8({docsPath:Ys});if(!("inputs"in c))throw new yu({docsPath:Ys});if(!c.inputs||c.inputs.length===0)throw new yu({docsPath:Ys});const f=bf(c.inputs,r);return Mt([o,f])}class $n extends B{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 B{constructor({cause:i,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${hn(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 B{constructor({cause:i,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${hn(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 B{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 B{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 B{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 B{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 B{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 bo extends B{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(bo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ho extends B{constructor({cause:i}){super("The transaction type is not supported for this chain.",{cause:i,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ho,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class kn extends B{constructor({cause:i,maxPriorityFeePerGas:r,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${hn(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${hn(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 B{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 B?n.walk(c=>c?.code===$n.code):n;return o instanceof B?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}):bo.nodeMessage.test(r)?new bo({cause:n,gas:i?.gas}):ho.nodeMessage.test(r)?new ho({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 B3(o,{docsPath:i,...r})}function Z3(n,{format:i}){if(!i)return{};const r={};function o(f){const d=Object.keys(f);for(const h of d)h in n&&(r[h]=n[h]),f[h]&&typeof f[h]=="object"&&!Array.isArray(f[h])&&o(f[h])}const c=i(n||{});return o(c),r}function hi(n,i){return({exclude:r,format:o})=>({exclude:r,format:(c,f)=>{const d=i(c,f);if(r)for(const h of r)delete d[h];return{...d,...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=e4(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=>Se(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=hi("transactionRequest",Vf);function e4(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 t4(){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();d();const T=w.map(({args:A})=>A);T.length!==0&&n(T).then(A=>{c&&Array.isArray(A)&&A.sort(c);for(let C=0;C<w.length;C++){const{resolve:F}=w[C];F?.([A[C],A])}}).catch(A=>{for(let C=0;C<w.length;C++){const{reject:F}=w[C];F?.(A)}})},d=()=>js.delete(i),h=()=>E().map(({args:w})=>w),E=()=>js.get(i)||[],m=w=>js.set(i,[...E(),w]);return{flush:d,async schedule(w){const{promise:T,resolve:A,reject:C}=t4();return r?.([...h(),w])&&f(),E().length>0?(m({args:w,resolve:A,reject:C}),T):(m({args:w,resolve:A,reject:C}),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 n4(n){const{balance:i,nonce:r,state:o,stateDiff:c,code:f}=n,d={};if(f!==void 0&&(d.code=f),i!==void 0&&(d.balance=L(i)),r!==void 0&&(d.nonce=L(r)),o!==void 0&&(d.state=Lu(o)),c!==void 0){if(d.state)throw new w3;d.stateDiff=Lu(c)}return d}function r4(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]=n4(o)}return i}const er=2n**256n-1n;function i4(n){const{account:i,gasPrice:r,maxFeePerGas:o,maxPriorityFeePerGas:c,to:f}=n,d=i?bi(i):void 0;if(d&&!Ae(d.address))throw new Qe({address:d.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>er)throw new Qt({maxFeePerGas:o});if(c&&o&&c>o)throw new kn({maxFeePerGas:o,maxPriorityFeePerGas:c})}async function s4(n,i){const{account:r=n.account,authorizationList:o,batch:c=!!n.batch?.multicall,blockNumber:f,blockTag:d=n.experimental_blockTag??"latest",accessList:h,blobs:E,blockOverrides:m,code:w,data:T,factory:A,factoryData:C,gas:F,gasPrice:z,maxFeePerBlobGas:Z,maxFeePerGas:j,maxPriorityFeePerGas:K,nonce:G,to:te,value:J,stateOverride:oe,...ae}=i,Ie=r?bi(r):void 0;if(w&&(A||C))throw new B("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(w&&te)throw new B("Cannot provide both `code` & `to` as parameters.");const tt=w&&T,ft=A&&C&&te&&T,dt=tt||ft,we=tt?Gf({code:w,data:T}):ft?c4({data:T,factory:A,factoryData:C,to:te}):T;try{i4(i);const nt=(typeof f=="bigint"?L(f):void 0)||d,mt=m?W3(m):void 0,yt=r4(oe),lt=n.chain?.formatters?.transactionRequest?.format,qn=(lt||Vf)({...Z3(ae,{format:lt}),accessList:h,account:Ie,authorizationList:o,blobs:E,data:we,gas:F,gasPrice:z,maxFeePerBlobGas:Z,maxFeePerGas:j,maxPriorityFeePerGas:K,nonce:G,to:dt?void 0:te,value:J},"call");if(c&&o4({request:qn})&&!yt&&!mt)try{return await a4(n,{...qn,blockNumber:f,blockTag:d})}catch(bt){if(!(bt instanceof Bf)&&!(bt instanceof io))throw bt}const xn=(()=>{const bt=[qn,nt];return yt&&mt?[...bt,yt,mt]:yt?[...bt,yt]:mt?[...bt,{},mt]:bt})(),Oe=await n.request({method:"eth_call",params:xn});return Oe==="0x"?{data:void 0}:{data:Oe}}catch(ke){const nt=u4(ke),{offchainLookup:mt,offchainLookupSignature:yt}=await import("./ccip-b4JCUY4f.js");if(n.ccipRead!==!1&&nt?.slice(0,10)===yt&&te)return{data:await mt(n,{data:nt,to:te})};throw dt&&nt?.slice(0,10)==="0x101bb98d"?new O3({factory:A}):X3(ke,{...i,account:Ie,chain:n.chain})}}function o4({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 a4(n,i){const{batchSize:r=1024,deployless:o=!1,wait:c=0}=typeof n.batch?.multicall=="object"?n.batch.multicall:{},{blockNumber:f,blockTag:d=n.experimental_blockTag??"latest",data:h,to:E}=i,m=(()=>
36{if(o)return null;if(i.multicallAddress)return i.multicallAddress;if(n.chain)return Rf({blockNumber:f,chain:n.chain,contract:"multicall3"});throw new Bf})(),T=(typeof f=="bigint"?L(f):void 0)||d,{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=Ro({abi:Zs,args:[Z],functionName:"aggregate3"}),K=await n.request({method:"eth_call",params:[{...m===null?{data:Gf({code:Mf,data:j})}:{to:m,data:j}},T]});return Bo({abi:Zs,args:[Z],functionName:"aggregate3",data:K||"0x"})}}),[{returnData:C,success:F}]=await A({data:h,to:E});if(!F)throw new Oo({data:C});return C==="0x"?{data:void 0}:{data:C}}function Gf(n){const{code:i,data:r}=n;return Uf({abi:Sf(["constructor(bytes, bytes)"]),bytecode:Y3,args:[i,r]})}function c4(n){const{data:i,factory:r,factoryData:o,to:c}=n;return Uf({abi:Sf(["constructor(address, bytes, address, bytes)"]),bytecode:j3,args:[c,i,r,o]})}function u4(n){if(!(n instanceof B))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,...d}=i,h=Ro({abi:r,args:c,functionName:f});try{const{data:E}=await Lf(n,s4,"call")({...d,data:h,to:o});return Bo({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"?Se(o.bytes):o.bytes}function Hf(n){return Array.isArray(n)?f4(n.map(i=>Hf(i))):d4(n)}function f4(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 d4(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 B("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?S0(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?S0(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=l4(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=hi("transaction",pi);function l4(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 b4(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=hi("block",b4);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=>Se(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(d=>Jt(d)):n.blobs,c=typeof n.commitments[0]=="string"?n.commitments.map(d=>
36Jt(d)):n.commitments,f=[];for(let d=0;d<o.length;d++){const h=o[d],E=c[d];f.push(Uint8Array.from(i.computeBlobKzgProof(h,E)))}return r==="bytes"?f:f.map(d=>Se(d))}function h4(n,i,r,o){if(typeof n.setBigUint64=="function")return n.setBigUint64(i,r,o);const c=BigInt(32),f=BigInt(4294967295),d=Number(r>>c&f),h=Number(r&f),E=o?4:0,m=o?0:4;n.setUint32(i+E,d,o),n.setUint32(i+m,h,o)}function p4(n,i,r){return n&i^~n&r}function g4(n,i,r){return n&i^n&r^i&r}class E4 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){di(this),i=yo(i),I0(i);const{view:r,buffer:o,blockLen:c}=this,f=i.length;for(let d=0;d<f;){const h=Math.min(c-this.pos,f-d);if(h===c){const E=Gs(i);for(;c<=f-d;d+=c)this.process(E,d);continue}o.set(i.subarray(d,d+h),this.pos),this.pos+=h,d+=h,this.pos===c&&(this.process(r,0),this.pos=0)}return this.length+=i.length,this.roundClean(),this}digestInto(i){di(this),ef(i,this),this.finished=!0;const{buffer:r,view:o,blockLen:c,isLE:f}=this;let{pos:d}=this;r[d++]=128,D0(this.buffer.subarray(d)),this.padOffset>c-d&&(this.process(o,0),d=0);for(let T=d;T<c;T++)r[T]=0;h4(o,c-8,BigInt(this.length*8),f),this.process(o,0);const h=Gs(i),E=this.outputLen;if(E%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const m=E/4,w=this.get();if(m>w.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;T<m;T++)h.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:d,pos:h}=this;return i.destroyed=d,i.finished=f,i.length=c,i.pos=h,c%r&&i.buffer.set(o),i}clone(){return this._cloneInto()}}const jt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),x4=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 _4 extends E4{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:d,G:h,H:E}=this;return[i,r,o,c,f,d,h,E]}set(i,r,o,c,f,d,h,E){this.A=i|0,this.B=r|0,this.C=o|0,this.D=c|0,this.E=f|0,this.F=d|0,this.G=h|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],C=qt[T-2],F=Et(A,7)^Et(A,18)^A>>>3,z=Et(C,17)^Et(C,19)^C>>>10;qt[T]=z+qt[T-7]+F+qt[T-16]|0}let{A:o,B:c,C:f,D:d,E:h,F:E,G:m,H:w}=this;for(let T=0;T<64;T++){const A=Et(h,6)^Et(h,11)^Et(h,25),C=w+A+p4(h,E,m)+x4[T]+qt[T]|0,z=(Et(o,2)^Et(o,13)^Et(o,22))+g4(o,c,f)|0;w=m,m=E,E=h,h=d+C|0,d=f,f=c,c=o,o=C+z|0}o=o+this.A|0,c=c+this.B|0,f=f+this.C|0,d=d+this.D|0,h=h+this.E|0,E=E+this.F|0,m=m+this.G|0,w=w+this.H|0,this.set(o,c,f,d,h,E,m,w)}roundClean(){D0(qt)}destroy(){this.set(0,0,0,0,0,0,0,0),D0(this.buffer)}}const m4=nf(()=>new _4),y4=m4;function A4(n,i){return y4(Hn(n,{strict:!1})?mo(n):n)}function w4(n){const{commitment:i,version:r=1}=n,o=n.to??(typeof i=="string"?"hex":"bytes"),c=A4(i);return c.set([r],0),o==="bytes"?c:Se(c)}function v4(n){const{commitments:i,version:r}=n,o=n.to??(typeof i[0]=="string"?"hex":"bytes"),c=[];for(const f of i)c.push(w4({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 T4 extends B{constructor({maxSize:i,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${i} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class e1 extends B{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class C4 extends B{constructor({hash:i,size:r}){super(`Versioned hash "${i}
36" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class S4 extends B{constructor({hash:i,version:r}){super(`Versioned hash "${i}" version is invalid.`,{metaMessages:[`Expected: ${Qf}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function I4(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 T4({maxSize:Mu,size:o});const c=[];let f=!0,d=0;for(;f;){const h=vo(new Uint8Array(Jf));let E=0;for(;E<$o;){const m=r.slice(d,d+(Zf-1));if(h.pushByte(0),h.pushBytes(m),m.length<31){h.pushByte(128),f=!1;break}E++,d+=31}c.push(h)}return i==="bytes"?c.map(h=>h.bytes):c.map(h=>Se(h.bytes))}function D4(n){const{data:i,kzg:r,to:o}=n,c=n.blobs??I4({data:i,to:o}),f=n.commitments??qf({blobs:c,kzg:r,to:o}),d=n.proofs??Xf({blobs:c,commitments:f,kzg:r,to:o}),h=[];for(let E=0;E<c.length;E++)h.push({blob:c[E],commitment:f[E],proof:d[E]});return h}function B4(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 S3({transaction:n})}async function R4(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 P4(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 F4(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 Q0({chainId:o})}Mo(n)}function O4(n){const{blobVersionedHashes:i}=n;if(i){if(i.length===0)throw new e1;for(const r of i){const o=Ee(r),c=S0(B0(r,0,1));if(o!==32)throw new C4({hash:r,size:o});if(c!==Qf)throw new S4({hash:r,version:c})}}Mo(n)}function Mo(n){const{chainId:i,maxPriorityFeePerGas:r,maxFeePerGas:o,to:c}=n;if(i<=0)throw new Q0({chainId:i});if(c&&!Ae(c))throw new Qe({address:c});if(o&&o>er)throw new Qt({maxFeePerGas:o});if(r&&o&&r>o)throw new kn({maxFeePerGas:o,maxPriorityFeePerGas:r})}function L4(n){const{chainId:i,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:c,to:f}=n;if(i<=0)throw new Q0({chainId:i});if(f&&!Ae(f))throw new Qe({address:f});if(r||c)throw new B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>er)throw new Qt({maxFeePerGas:o})}function $4(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 Q0({chainId:i});if(r||c)throw new B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>er)throw new Qt({maxFeePerGas:o})}function tr(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 I3({storageKey:c[f]});if(!Ae(o,{strict:!1}))throw new Qe({address:o});i.push([o,c])}return i}function M4(n,i){const r=B4(n);return r==="eip1559"?V4(n,i):r==="eip2930"?z4(n,i):r==="eip4844"?N4(n,i):r==="eip7702"?U4(n,i):G4(n,i)}function U4(n,i){const{authorizationList:r,chainId:o,gas:c,nonce:f,to:d,value:h,maxFeePerGas:E,maxPriorityFeePerGas:m,accessList:w,data:T}=n;F4(n);const A=tr(w),C=k4(r);return Mt(["0x04",en([L(o),f?L(f):"0x",m?L(m):"0x",E?L(E):"0x",c?L(c):"0x",d??"0x",h?L(h):"0x",T??"0x",A,C,...Yn(n,i)])])}function N4(n,i){const{chainId:r,gas:o,nonce:c,to:f,value:d,maxFeePerBlobGas:h,maxFeePerGas:E,maxPriorityFeePerGas:m,accessList:w,data:T}=n;O4(n);let A=n.blobVersionedHashes,C=n.sidecars;if(n.blobs&&(typeof A>"u"||typeof C>"u")){const G=typeof n.blobs[0]=="string"?n.blobs:n.blobs.map(oe=>Se(oe)),te=n.kzg,J=qf({blobs:G,kzg:te});if(typeof A>"u"&&(A=v4({commitments:J})),typeof C>"u"){const oe=Xf({blobs:G,commitments:J,kzg:te});C=D4({blobs:G,commitments:J,proofs:oe})}}const F=tr(w),z=[L(r),c?L(c):"0x",m?L(m):"0x",E?L(E):"0x",o?L(o):"0x",f??"0x",d?L(d):"0x",T??"0x",F,h?L(h):"0x",A??[],...Yn(n,i)],Z=[],j=[],K=[];if(C)for(let G=0;G<C.length;G++){const{blob:te,commitment:J,proof:oe}=C[G];Z.push(te),j.push(J),K.push(oe)}return Mt(["0x03",en(C?[z,Z,j,K]:z)])}function V4(n,i){const{chainId:r,gas:o,nonce:c,to:f,value:d,maxFeePerGas:h,maxPriorityFeePerGas:E,accessList:m,data:w}=n;Mo(n);const T=tr(m),A=[L(r),c?L(c):"0x",E?L(E):"0x",h?L(h):"0x",o?L(o):"0x",f??"0x",d?L(d):"0x",w??"0x",T,...Yn(n,i)];return Mt(["0x02",en(A)])}function z4(n,i){const{chainId:r,gas:o,data:c,nonce:f,to:d,value:h,accessList:E,gasPrice:m}=n;L4(n);const w=tr(E),T=[L(r),f?L(f):"0x",m?L(m):"0x",o?L(o):"0x",d??"0x",h?L(h):"0x",c??"0x",w,...Yn(n,i)];return Mt(["0x01",en(T)])}function G4(n,i){const{chainId:r=0,gas:o,data:c,nonce:f,to:d,value:h,gasPrice:E}=n;$4(n);let m=[f?L(f):"0x",E?L(E):"0x",o?L(o):"0x",d??"0x",h?L(h):"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 C=27n+(i.v===27n?0n:1n);if(i.v!==C)throw new C3({v:i.v});return C})(),T=$t(i.r),A=$t(i.s);m=[...m,L(w),T==="0x00"?"0x":T,A==="0x00"?"0x":A]}else r>0&&(m=[...m,L(r),"0x","0x"]);return en(m)}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),d=$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,d==="0x00"?"0x":d]}function k4(n){if(!n||n.length===0)return[];const i=[];for(const r of n){const{chainId:o,nonce:c,...f}=r,d=r.address;i.push([o?Je(o):"0x",d,c?Je(c):"0x",...Yn({},f)])}return i}const Xr=new wo(8192);function H4(n,{enabled:i=!0,id:r}){if(!i||!r)return n();if(Xr.get(r))return Xr.get(r);const o=n().finally(()=>Xr.delete(r));return Xr.set(r,o),o}async function W4(n){return new Promise(i=>setTimeout(i,n))}function K4(n,{delay:i=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((c,f)=>{const d=async({count:h=0}={})=>{const E=async({error:m})=>{const w=typeof i=="function"?i({count:h,error:m}):i;w&&await W4(w),d({count:h+1})};try{const m=await n();c(m)}catch(m){if(h<r&&await o({count:h,error:m}))return E({error:m});f(m)}};d()})}function Y4(n,i={}){return async(r,o={})=>{const{dedupe:c=!1,methods:f,retryDelay:d=150,retryCount:h=3,uid:E}={...i,...o},{method:m}=r;if(f?.exclude?.includes(m))throw new bn(new Error("method not supported"),{method:m});if(f?.include&&!f.include.includes(m))throw new bn(new Error("method not supported"),{method:m});const w=c?_o(`${E}.${Zt(r)}`):void 0;return H4(()=>K4(async()=>{try{return await n(r)}catch(T){const A=T;switch(A.code){case P0.code:throw new P0(A);case F0.code:throw new F0(A);case O0.code:throw new O0(A,{method:r.method});case L0.code:throw new L0(A);case En.code:throw new En(A);case $0.code:throw new $0(A);case M0.code:throw new M0(A);case U0.code:throw new U0(A);case zn.code:throw new zn(A);case bn.code:throw new bn(A,{method:r.method});case Gn.code:throw new Gn(A);case N0.code:throw new N0(A);case pn.code:throw new pn(A);case V0.code:throw new V0(A);case z0.code:throw new z0(A);case G0.code:throw new G0(A);case k0.code:throw new k0(A);case H0.code:throw new H0(A);case W0.code:throw new W0(A);case K0.code:throw new K0(A);case Y0.code:throw new Y0(A);case j0.code:throw new j0(A);case q0.code:throw new q0(A);case X0.code:throw new X0(A);case Z0.code:throw new Z0(A);case 5e3:throw new pn(A);default:throw T instanceof B?T:new $3(A)}}},{delay:({count:T,error:A})=>{if(A&&A instanceof C0){const C=A?.headers?.get("Retry-After");if(C?.match(/\d/))return Number.parseInt(C,10)*1e3}return~~(1<<T)*d},retryCount:h,shouldRetry:({error:T})=>j4(T)}),{enabled:c,id:w})}}function j4(n){return"code"in n&&typeof n.code=="number"?n.code===-1||n.code===Gn.code||n.code===En.code:n instanceof C0&&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 q4={"0x0":"reverted","0x1":"success"};function X4(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=>P4(o)):null,to:n.to?n.to:null,transactionIndex:n.transactionIndex?S0(n.transactionIndex):null,status:n.status?q4[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 Z4=hi("transactionReceipt",X4);function J4(n,{errorInstance:i=new Error("timed out"),timeout:r,signal:o}){return new Promise((c,f)=>{(async()=>{let d;try{const h=new AbortController;r>0&&(d=setTimeout(()=>{o&&h.abort()},r)),c(await n({signal:h?.signal||null}))}catch(h){h?.name==="AbortError"&&f(i),f(h)}finally{clearTimeout(d)}})()})}function Q4(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Uu=Q4();function e9(n,i={}){return{async request(r){const{body:o,fetchFn:c=i.fetchFn??fetch,onRequest:f=i.onRequest,onResponse:d=i.onResponse,timeout:h=i.timeout??1e4}=r,E={...i.fetchOptions??{},...r.fetchOptions??{}},{headers:m,method:w,signal:T}=E;try{const A=await J4(async({signal:F})=>{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",...m},method:w||"POST",signal:T||(h>0?F:null)}
36,Z=new Request(n,z),j=await f?.(Z,z)??{...z,url:n};return await c(j.url??n,j)},{errorInstance:new Ou({body:o,url:n}),timeout:h,signal:!0});d&&await d(A);let C;if(A.headers.get("Content-Type")?.startsWith("application/json"))C=await A.json();else{C=await A.text();try{C=JSON.parse(C||"{}")}catch(F){if(A.ok)throw F;C={error:C}}}if(!A.ok)throw new C0({body:o,details:Zt(C.error)||A.statusText,headers:A.headers,status:A.status,url:n});return C}catch(A){throw A instanceof C0||A instanceof Ou?A:new C0({body:o,cause:A,url:n})}}}}class t9 extends B{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,d,h]=[o.slice(0,i-1),o.slice(i-1,i),o.slice(i)],E=Math.round(+`${d}.${h}`);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,Ff[i])}async function r9(n,i){const{account:r,authorizationList:o,allowFailure:c=!0,blockNumber:f,blockOverrides:d,blockTag:h,stateOverride:E}=i,m=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 Rf({blockNumber:f,chain:n.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),C=[[]];let F=0,z=0;for(let K=0;K<m.length;K++){const{abi:G,address:te,args:J,functionName:oe}=m[K];try{const ae=Ro({abi:G,args:J,functionName:oe});z+=(ae.length-2)/2,w>0&&z>w&&C[F].length>0&&(F++,z=(ae.length-2)/2,C[F]=[]),C[F]=[...C[F],{allowFailure:!0,callData:ae,target:te}]}catch(ae){const Ie=so(ae,{abi:G,address:te,args:J,docsPath:"/docs/contract/multicall",functionName:oe,sender:r});if(!c)throw Ie;C[F]=[...C[F],{allowFailure:!0,callData:"0x",target:te}]}}const Z=await Promise.allSettled(C.map(K=>Lf(n,kf,"readContract")({...A===null?{code:Mf}:{address:A},abi:Zs,account:r,args:[K],authorizationList:o,blockNumber:f,blockOverrides:d,blockTag:h,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<C[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:Ie}=C[K][J],{abi:tt,address:ft,functionName:dt,args:we}=m[j.length];try{if(Ie==="0x")throw new li;if(!ae)throw new Oo({data:oe});const ke=Bo({abi:tt,args:we,data:oe,functionName:dt});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:dt});if(!c)throw nt;j.push({error:nt,result:void 0,status:"failure"})}}}if(j.length!==m.length)throw new B("multicall results mismatch");return j}var Zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},v0={exports:{}};var i9=v0.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.",d="Expected a function",h="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",m=500,w="__lodash_placeholder__",T=1,A=2,C=4,F=1,z=2,Z=1,j=2,K=4,G=8,te=16,J=32,oe=64,ae=128,Ie=256,tt=512,ft=30,dt="...",we=800,ke=16,nt=1,mt=2,yt=3,lt=1/0,At=9007199254740991,qn=17976931348623157e292,xn=NaN,Oe=4294967295,bt=Oe-1,u1=Oe>>>1,f1=[["ary",ae],["bind",Z],["bindKey",j],["curry",G],["curryRight",te],["flip",tt],["partial",J],["partialRight",oe],["rearg",Ie]],_n="[object Arguments]",nr="[object Array]",d1="[object AsyncFunction]",Xn="[object Boolean]",Zn="[object Date]",l1="[object DOMException]",rr="[object Error]",ir="[object Function]",ko="[object GeneratorFunction]",rt="[object Map]",Jn="[object Number]",b1="[object Null]",wt="[object Object]",Ho="[object Promise]",h1="[object Proxy]",Qn="[object RegExp]",it="[object Set]",e0="[object String]",sr="[object Symbol]",p1="[object Undef
36ined]",t0="[object WeakMap]",g1="[object WeakSet]",n0="[object ArrayBuffer]",mn="[object DataView]",_i="[object Float32Array]",mi="[object Float64Array]",yi="[object Int8Array]",Ai="[object Int16Array]",wi="[object Int32Array]",vi="[object Uint8Array]",Ti="[object Uint8ClampedArray]",Ci="[object Uint16Array]",Si="[object Uint32Array]",E1=/\b__p \+= '';/g,x1=/\b(__p \+=) '' \+/g,_1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wo=/&(?:amp|lt|gt|quot|#39);/g,Ko=/[&<>"']/g,m1=RegExp(Wo.source),y1=RegExp(Ko.source),A1=/<%-([\s\S]+?)%>/g,w1=/<%([\s\S]+?)%>/g,Yo=/<%=([\s\S]+?)%>/g,v1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T1=/^\w*$/,C1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ii=/[\\^$.*+?()[\]{}|]/g,S1=RegExp(Ii.source),Di=/^\s+/,I1=/\s/,D1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,B1=/\{\n\/\* \[wrapped with (.+)\] \*/,R1=/,? & /,P1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,F1=/[()=,{}\[\]\/\s]/,O1=/\\(\\)?/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: 8,342 bytes, line 36
367f]/g,or=/($^)/,G1=/['\n\r\u2028\u2029\\]/g,ar="\\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,Bi="['’]",X1="["+ar+"]",ta="["+ea+"]",cr="["+qo+"]",na="\\d+",Z1="["+Xo+"]",ra="["+Zo+"]",ia="[^"+ar+ea+na+Xo+Zo+Jo+"]",Ri="\\ud83c[\\udffb-\\udfff]",J1="(?:"+cr+"|"+Ri+")",sa="[^"+ar+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",Fi="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+Jo+"]",oa="\\u200d",aa="(?:"+ra+"|"+ia+")",Q1="(?:"+yn+"|"+ia+")",ca="(?:"+Bi+"(?:d|ll|m|re|s|t|ve))?",ua="(?:"+Bi+"(?:D|LL|M|RE|S|T|VE))?",fa=J1+"?",da="["+Qo+"]?",ed="(?:"+oa+"(?:"+[sa,Pi,Fi].join("|")+")"+da+fa+")*",td="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",la=da+fa+ed,rd="(?:"+[Z1,Pi,Fi].join("|")+")"+la,id="(?:"+[sa+cr+"?",cr,Pi,Fi,X1].join("|")+")",sd=RegExp(Bi,"g"),od=RegExp(cr,"g"),Oi=RegExp(Ri+"(?="+Ri+")|"+id+la,"g"),ad=RegExp([yn+"?"+ra+"+"+ca+"(?="+[ta,yn,"$"].join("|")+")",Q1+"+"+ua+"(?="+[ta,yn+aa,"$"].join("|")+")",yn+"?"+aa+"+"+ca,yn+"+"+ua,nd,td,na,rd].join("|"),"g"),cd=RegExp("["+oa+ar+qo+Qo+"]"),ud=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fd=["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"],dd=-1,se={};se[_i]=se[mi]=se[yi]=se[Ai]=se[wi]=se[vi]=se[Ti]=se[Ci]=se[Si]=!0,se[_n]=se[nr]=se[n0]=se[Xn]=se[mn]=se[Zn]=se[rr]=se[ir]=se[rt]=se[Jn]=se[wt]=se[Qn]=se[it]=se[e0]=se[t0]=!1;var ie={};ie[_n]=ie[nr]=ie[n0]=ie[mn]=ie[Xn]=ie[Zn]=ie[_i]=ie[mi]=ie[yi]=ie[Ai]=ie[wi]=ie[rt]=ie[Jn]=ie[wt]=ie[Qn]=ie[it]=ie[e0]=ie[sr]=ie[vi]=ie[Ti]=ie[Ci]=ie[Si]=!0,ie[rr]=ie[ir]=ie[t0]=!1;var ld={À:"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"},bd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hd={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gd=parseFloat,Ed=parseInt,ba=typeof Zr=="object"&&Zr&&Zr.Object===Object&&Zr,xd=typeof self=="object"&&self&&self.Object===Object&&self,xe=ba||xd||Function("return this")(),Li=i&&!i.nodeType&&i,nn=Li&&!0&&n&&!n.nodeType&&n,ha=nn&&nn.exports===Li,$i=ha&&ba.process,He=(function(){try{var x=nn&&nn.require&&nn.require("util").types;return x||$i&&$i.binding&&$i.binding("util")}catch{}})(),pa=He&&He.isArrayBuffer,ga=He&&He.isDate,Ea=He&&He.isMap,xa=He&&He.isRegExp,_a=He&&He.isSet,ma=He&&He.isTypedArray;function Le(x,v,y){switch(y.length){case 0:return x.call(v);case 1:return x.call(v,y[0]);case 2:return x.call(v,y[0],y[1]);case 3:return x.call(v,y[0],y[1],y[2])}return x.apply(v,y)}function _d(x,v,y,P){for(var N=-1,Q=x==null?0:x.length;++N<Q;){var he=x[N];v(P,he,y(he),x)}return P}function We(x,v){for(var y=-1,P=x==null?0:x.length;++y<P&&v(x[y],y,x)!==!1;);return x}function md(x,v){for(var y=x==null?0:x.length;y--&&v(x[y],y,x)!==!1;);return x}function ya(x,v){for(var y=-1,P=x==null?0:x.length;++y<P;)if(!v(x[y],y,x))return!1;return!0}function Nt(x,v){for(var y=-1,P=x==null?0:x.length,N=0,Q=[];++y<P;){var he=x[y];v(he,y,x)&&(Q[N++]=he)}return Q}function ur(x,v){var y=x==null?0:x.length;return!!y&&An(x,v,0)>-1}function Mi(x,v,y){for(var P=-1,N=x==null?0:x.length;++P<N;)if(y(v,x[P]))return!0;return!1}function ce(x,v){for(var y=-1,P=x==null?0:x.length,N=Array(P);++y<P;)N[y]=v(x[y],y,x);return N}function Vt(x,v){for(var y=-1,P=v.length,N=x.length;++y<P;)x[N+y]=v[y];return x}function Ui(x,v,y,P){var N=-1,Q=x==null?0:x.length;for(P&&Q&&(y=x[++N]);++N<Q;)y=v(y,x[N],N,x);return y}function yd(x,v,y,P){var N=x==null?0:x.length;for(P&&N&&(y=x[--N]);N--;)y=v(y,x[N],N,x);return y}function Ni(x,v){for(var y=-1,P=x==null?0:x.length;++y<P;)if(v(x[y],y,x))return!0;return!1}var Ad=Vi("length");function wd(x){return x.split("")}function vd(x){return x.match(P1)||[]}function Aa(x,v,y){var P;return y(x,function(N,Q,he){if(v(N,Q,he))return P=Q,!1}),P}function fr(x,v,y,P){for(var N=x.length,Q=y+(P?1:-1);P?Q--:++Q<N;)if(v(x[Q],Q,x))return Q;return-1}function An(x,v,y){return v===v?$d(x,v,y):fr(x,wa,y)}function Td(x,v,y,P){for(var N=y-1,Q=x.length;++N<Q;)if(P(x[N],v))return N;return-1}function wa(x){return x!==x}function va(x,v){var y=x==null?0:x.length;return y?Gi(x,v)/y:xn}function Vi(x){return function(v){return v==null?r:v[x]}}function zi(x){return function(v){return x==null?r:x[v]}}function Ta(x,v,y,P,N){return N(x,function(Q,he,re){y=P?(P=!1,Q):v(y,Q,he,re)}),y}function Cd(x,v){var y=x.length;for(x.sort(v);y--;)x[y]=x[y].value;return x}function Gi(x,v){for(var y,P=-1,N=x.length;++P<N;){var Q=v(x[P]);Q!==r&&(y=y===r?Q:y+Q)}return y}function ki(x,v){for(var y=-1,P=Array(x);++y<x;)P[y]=v(y);return P}function Sd(x,v){return ce(v,function(y){return[y,x[y]]})}function Ca(x){return x&&x.slice(0,Ba(x)+1).replace(Di,"")}function $e(x){return function(v){return x(v)}}function Hi(x,v){return ce(v,function(y){return x[y]})}function r0(x,v){return x.has(v)}function Sa(x,v){for(var y=-1,P=x.length;++y<P&&An(v,x[y],0)>-1;);return y}function Ia(x,v){for(var y=x.length;y--&&An(v,x[y],0)>-1;);return y}function Id(x,v){for(var y=x.length,P=0;y--;)x[y]===v&&++P;return P}var Dd=zi(ld),Bd=zi(bd);function Rd(x){return"\\"+pd[x]}function Pd(x,v){return x==null?r:x[v]}function wn(x){return cd.test(x)}function Fd(x){return ud.test(x)}function Od(x){for(var v,y=[];!(v=x.next()).done;)y.push(v.value);return y}function Wi(x){var v=-1,y=Array(x.size);return x.forEach(function(P,N){y[++v]=[N,P]}),y}function Da(x,v){return function(y){return x(v(y))}}function zt(x,v){for(var y=-1,P=x.length,N=0,Q=[];++y<P;){var he=x[y];(he===v||he===w)&&(x[y]=w,Q[N++]=y)}return Q}function dr(x){var v=-1,y=Array(x.size);return x.forEach(function(P){y[++v]=P}),y}function Ld(x){var v=-1,y=Array(x.size);return x.forEach(function(P){y[++v]=[P,P]}),y}function $d(x,v,y){for(var P=y-1,N=x.length;++P<N;)if(x[P]===v)return P;return-1}function Md(x,v,y){for(var P=y+1;P--;)if(x[P]===v)return P;return P}function vn(x){return wn(x)?Nd(x):Ad(x)}function st(x){return wn(x)?Vd(x):wd(x)}function Ba(x){for(var v=x.length;v--&&I1.test(x.charAt(v)););return v}var Ud=zi(hd);function Nd(x){for(var v=Oi.lastIndex=0;Oi.test(x);)++v;return v}function Vd(x){return x.match(Oi)||[]}function zd(x){return x.match(ad)||[]}var Gd=(function x(v){v=v==null?xe:Tn.defaults(xe.Object(),v,Tn.pick(xe,fd));var y=v.Array,P=v.Date,N=v.Error,Q=v.Function,he=v.Math,re=v.Object,Ki=v.RegExp,kd=v.String,Ke=v.TypeError,lr=y.prototype,Hd=Q.prototype,Cn=re.prototype,br=v["__c
36ore-js_shared__"],hr=Hd.toString,ne=Cn.hasOwnProperty,Wd=0,Ra=(function(){var e=/[^.]+$/.exec(br&&br.keys&&br.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),pr=Cn.toString,Kd=hr.call(re),Yd=xe._,jd=Ki("^"+hr.call(ne).replace(Ii,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gr=ha?v.Buffer:r,Gt=v.Symbol,Er=v.Uint8Array,Pa=gr?gr.allocUnsafe:r,xr=Da(re.getPrototypeOf,re),Fa=re.create,Oa=Cn.propertyIsEnumerable,_r=lr.splice,La=Gt?Gt.isConcatSpreadable:r,i0=Gt?Gt.iterator:r,rn=Gt?Gt.toStringTag:r,mr=(function(){try{var e=un(re,"defineProperty");return e({},"",{}),e}catch{}})(),qd=v.clearTimeout!==xe.clearTimeout&&v.clearTimeout,Xd=P&&P.now!==xe.Date.now&&P.now,Zd=v.setTimeout!==xe.setTimeout&&v.setTimeout,yr=he.ceil,Ar=he.floor,Yi=re.getOwnPropertySymbols,Jd=gr?gr.isBuffer:r,$a=v.isFinite,Qd=lr.join,el=Da(re.keys,re),pe=he.max,me=he.min,tl=P.now,nl=v.parseInt,Ma=he.random,rl=lr.reverse,ji=un(v,"DataView"),s0=un(v,"Map"),qi=un(v,"Promise"),Sn=un(v,"Set"),o0=un(v,"WeakMap"),a0=un(re,"create"),wr=o0&&new o0,In={},il=fn(ji),sl=fn(s0),ol=fn(qi),al=fn(Sn),cl=fn(o0),vr=Gt?Gt.prototype:r,c0=vr?vr.valueOf:r,Ua=vr?vr.toString:r;function l(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 Dn=(function(){function e(){}return function(t){if(!ue(t))return{};if(Fa)return Fa(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function Tr(){}function Ye(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:A1,evaluate:w1,interpolate:Yo,variable:"",imports:{_:l}},l.prototype=Tr.prototype,l.prototype.constructor=l,Ye.prototype=Dn(Tr.prototype),Ye.prototype.constructor=Ye;function q(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function ul(){var e=new q(this.__wrapped__);return e.__actions__=De(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=De(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=De(this.__views__),e}function fl(){if(this.__filtered__){var e=new q(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function dl(){var e=this.__wrapped__.value(),t=this.__dir__,s=V(e),a=t<0,u=s?e.length:0,b=w5(0,u,this.__views__),p=b.start,g=b.end,_=g-p,S=a?g:p-1,I=this.__iteratees__,D=I.length,R=0,O=me(_,this.__takeCount__);if(!s||!a&&u==_&&O==_)return cc(e,this.__actions__);var M=[];e:for(;_--&&R<O;){S+=t;for(var H=-1,U=e[S];++H<D;){var Y=I[H],X=Y.iteratee,Ne=Y.type,Ce=X(U);if(Ne==mt)U=Ce;else if(!Ce){if(Ne==nt)continue e;break e}}M[R++]=U}return M}q.prototype=Dn(Tr.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 ll(){this.__data__=a0?a0(null):{},this.size=0}function bl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function hl(e){var t=this.__data__;if(a0){var s=t[e];return s===E?r:s}return ne.call(t,e)?t[e]:r}function pl(e){var t=this.__data__;return a0?t[e]!==r:ne.call(t,e)}function gl(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=a0&&t===r?E:t,this}sn.prototype.clear=ll,sn.prototype.delete=bl,sn.prototype.get=hl,sn.prototype.has=pl,sn.prototype.set=gl;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 El(){this.__data__=[],this.size=0}function xl(e){var t=this.__data__,s=Cr(t,e);if(s<0)return!1;var a=t.length-1;return s==a?t.pop():_r.call(t,s,1),--this.size,!0}function _l(e){var t=this.__data__,s=Cr(t,e);return s<0?r:t[s][1]}function ml(e){return Cr(this.__data__,e)>-1}function yl(e,t){var s=this.__data__,a=Cr(s,e);return a<0?(++this.size,s.push([e,t])):s[a][1]=t,this}vt.prototype.clear=El,vt.prototype.delete=xl,vt.prototype.get=_l,vt.prototype.has=ml,vt.prototype.set=yl;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 Al(){this.size=0,this.__data__={hash:new sn,map:new(s0||vt),string:new sn}}function wl(e){var t=Ur(this,e).delete(e);return this.size-=t?1:0,t}function vl(e){return Ur(this,e).get(e)}function Tl(e){return Ur(this,e).has(e)}function Cl(e,t){var s=Ur(this,e),a=s.size;return s.set(e,t),this.size+=s.size==a?0:1,this}Tt.prototype.clear=Al,Tt.prototype.delete=wl,Tt.prototype.get=vl,Tt.prototype.has=Tl,Tt.prototype.set=Cl;function on(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Tt;++t<s;)this.add(e[t])}function Sl(e){return this.__data__.set(e,E),this}function Il(e){return this.__data__.has(e)}on.prototype.add=on.prototype.push=Sl,on.prototype.has=Il;function ot(e){var t=this.__data__=new vt(e);this.size=t.size}function Dl(){this.__data__=new vt,this.size=0}function Bl(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function Rl(e){return this.__data__.get(e)}function Pl(e){return this.__data__.has(e)}function Fl(e,t){var s=this.__data__;if(s instanceof vt){var a=s.__data__;if(!s0||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=Dl,ot.prototype.delete=Bl,ot.prototype.get=Rl,ot.prototype.has=Pl,ot.prototype.set=Fl;function Na(e,t){var s=V(e),a=!s&&dn(e),u=!s&&!a&&Yt(e),b=!s&&!a&&!u&&Fn(e),p=s||a||u||b,g=p?ki(e.length,kd):[],_=g.length;for(var S in e)(t||ne.call(e,S))&&!(p&&(S=="length"||u&&(S=="offset"||S=="parent")||b&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Dt(S,_)))&&g.push(S);return g}function Va(e){var t=e.length;return t?e[os(0,t-1)]:r}function Ol(e,t){return Nr(De(e),an(t,0,e.length))}function Ll(e){return Nr(De(e))}function Xi(e,t,s){(s!==r&&!at(e[t],s)||s===r&&!(t in e))&&Ct(e,t,s)}function u0(e,t,s){var a=e[t];(!(ne.call(e,t)&&at(a,s))||s===r&&!(t in e))&&Ct(e,t,s)}function Cr(e,t){for(var s=e.length;s--;
vendor: 8,084 bytes, line 36
36)if(at(e[s][0],t))return s;return-1}function $l(e,t,s,a){return kt(e,function(u,b,p){t(a,u,s(u),p)}),a}function za(e,t){return e&&pt(t,ge(t),e)}function Ml(e,t){return e&&pt(t,Re(t),e)}function Ct(e,t,s){t=="__proto__"&&mr?mr(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=y(a),b=e==null;++s<a;)u[s]=b?r:Rs(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,b){var p,g=t&T,_=t&A,S=t&C;if(s&&(p=u?s(e,a,u,b):s(e)),p!==r)return p;if(!ue(e))return e;var I=V(e);if(I){if(p=T5(e),!g)return De(e,p)}else{var D=ye(e),R=D==ir||D==ko;if(Yt(e))return dc(e,g);if(D==wt||D==_n||R&&!u){if(p=_||R?{}:Bc(e),!g)return _?h5(e,Ml(p,e)):b5(e,za(p,e))}else{if(!ie[D])return u?e:{};p=C5(e,D,g)}}b||(b=new ot);var O=b.get(e);if(O)return O;b.set(e,p),su(e)?e.forEach(function(U){p.add(je(U,t,s,U,e,b))}):ru(e)&&e.forEach(function(U,Y){p.set(Y,je(U,t,s,Y,e,b))});var M=S?_?Es:gs:_?Re:ge,H=I?r:M(e);return We(H||e,function(U,Y){H&&(Y=U,U=e[Y]),u0(p,Y,je(U,t,s,Y,e,b))}),p}function Ul(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],b=t[u],p=e[u];if(p===r&&!(u in e)||!b(p))return!1}return!0}function ka(e,t,s){if(typeof e!="function")throw new Ke(d);return g0(function(){e.apply(r,s)},t)}function f0(e,t,s,a){var u=-1,b=ur,p=!0,g=e.length,_=[],S=t.length;if(!g)return _;s&&(t=ce(t,$e(s))),a?(b=Mi,p=!1):t.length>=c&&(b=r0,p=!1,t=new on(t));e:for(;++u<g;){var I=e[u],D=s==null?I:s(I);if(I=a||I!==0?I:0,p&&D===D){for(var R=S;R--;)if(t[R]===D)continue e;_.push(I)}else b(t,D,a)||_.push(I)}return _}var kt=gc(ht),Ha=gc(Qi,!0);function Nl(e,t){var s=!0;return kt(e,function(a,u,b){return s=!!t(a,u,b),s}),s}function Sr(e,t,s){for(var a=-1,u=e.length;++a<u;){var b=e[a],p=t(b);if(p!=null&&(g===r?p===p&&!Ue(p):s(p,g)))var g=p,_=b}return _}function Vl(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,b){t(a,u,b)&&s.push(a)}),s}function _e(e,t,s,a,u){var b=-1,p=e.length;for(s||(s=I5),u||(u=[]);++b<p;){var g=e[b];t>0&&s(g)?t>1?_e(g,t-1,s,a,u):Vt(u,g):a||(u[u.length]=g)}return u}var Ji=Ec(),Ka=Ec(!0);function ht(e,t){return e&&Ji(e,t,ge)}function Qi(e,t){return e&&Ka(e,t,ge)}function Ir(e,t){return Nt(t,function(s){return Bt(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:b1:rn&&rn in re(e)?A5(e):L5(e)}function es(e,t){return e>t}function zl(e,t){return e!=null&&ne.call(e,t)}function Gl(e,t){return e!=null&&t in re(e)}function kl(e,t,s){return e>=me(t,s)&&e<pe(t,s)}function ts(e,t,s){for(var a=s?Mi:ur,u=e[0].length,b=e.length,p=b,g=y(b),_=1/0,S=[];p--;){var I=e[p];p&&t&&(I=ce(I,$e(t))),_=me(I.length,_),g[p]=!s&&(t||u>=120&&I.length>=120)?new on(p&&I):r}I=e[0];var D=-1,R=g[0];e:for(;++D<u&&S.length<_;){var O=I[D],M=t?t(O):O;if(O=s||O!==0?O:0,!(R?r0(R,M):a(S,M,s))){for(p=b;--p;){var H=g[p];if(!(H?r0(H,M):a(e[p],M,s)))continue e}R&&R.push(M),S.push(O)}}return S}function Hl(e,t,s,a){return ht(e,function(u,b,p){t(a,s(u),b,p)}),a}function d0(e,t,s){t=Wt(t,e),e=Oc(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)==_n}function Wl(e){return fe(e)&&ve(e)==n0}function Kl(e){return fe(e)&&ve(e)==Zn}function l0(e,t,s,a,u){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:Yl(e,t,s,a,l0,u)}function Yl(e,t,s,a,u,b){var p=V(e),g=V(t),_=p?nr:ye(e),S=g?nr:ye(t);_=_==_n?wt:_,S=S==_n?wt:S;var I=_==wt,D=S==wt,R=_==S;if(R&&Yt(e)){if(!Yt(t))return!1;p=!0,I=!1}if(R&&!I)return b||(b=new ot),p||Fn(e)?Sc(e,t,s,a,u,b):m5(e,t,_,s,a,u,b);if(!(s&F)){var O=I&&ne.call(e,"__wrapped__"),M=D&&ne.call(t,"__wrapped__");if(O||M){var H=O?e.value():e,U=M?t.value():t;return b||(b=new ot),u(H,U,s,a,b)}}return R?(b||(b=new ot),y5(e,t,s,a,u,b)):!1}function jl(e){return fe(e)&&ye(e)==rt}function ns(e,t,s,a){var u=s.length,b=u,p=!a;if(e==null)return!b;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<b;){g=s[u];var _=g[0],S=e[_],I=g[1];if(p&&g[2]){if(S===r&&!(_ in e))return!1}else{var D=new ot;if(a)var R=a(S,I,_,e,t,D);if(!(R===r?l0(I,S,F|z,a,D):R))return!1}}return!0}function qa(e){if(!ue(e)||B5(e))return!1;var t=Bt(e)?jd:U1;return t.test(fn(e))}function ql(e){return fe(e)&&ve(e)==Qn}function Xl(e){return fe(e)&&ye(e)==it}function Zl(e){return fe(e)&&Wr(e.length)&&!!se[ve(e)]}function Xa(e){return typeof e=="function"?e:e==null?Pe:typeof e=="object"?V(e)?Qa(e[0],e[1]):Ja(e):xu(e)}function rs(e){if(!p0(e))return el(e);var t=[];for(var s in re(e))ne.call(e,s)&&s!="constructor"&&t.push(s);return t}function Jl(e){if(!ue(e))return O5(e);var t=p0(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=Be(e)?y(e.length):[];return kt(e,function(u,b,p){a[++s]=t(u,b,p)}),a}function Ja(e){var t=_s(e);return t.length==1&&t[0][2]?Pc(t[0][0],t[0][1]):function(s){return s===e||ns(s,e,t)}}function Qa(e,t){return ys(e)&&Rc(t)?Pc(gt(e),t):function(s){var a=Rs(s,e);return a===r&&a===t?Ps(s,e):l0(t,a,F|z)}}function Dr(e,t,s,a,u){e!==t&&Ji(t,function(b,p){if(u||(u=new ot),ue(b))Ql(e,t,p,s,Dr,a,u);else{var g=a?a(ws(e,p),b,p+"",e,t,u):r;g===r&&(g=b),Xi(e,p,g)}},Re)}function Ql(e,t,s,a,u,b,p){var g=ws(e,s),_=ws(t,s),S=p.get(_);if(S){Xi(e,s,S);return}var I=b?b(g,_,s+"",e,t,p):r,D=I===r;if(D){var R=V(_),O=!R&&Yt(_),M=!R&&!O&&Fn(_);I=_,R||O||M?V(g)?I=g:de(g)?I=De(g):O?(D=!1,I=dc(_,!0)):M?(D=!1,I=lc(_,!0)):I=[]:E0(_)||dn(_)?(I=g,dn(g)?I=cu(g):(!ue(g)||Bt(g))&&(I=Bc(_))):D=!1}D&&(p.set(_,I),u(I,_,a,b,p),p.delete(_)),Xi(e,s,I)}function ec(e,t){var s=e.length;if(s)return t+=t<0?s:0,Dt(t,s)?e[t]:r}function tc(e,t,s){t.length?t=ce(t,function(b){return V(b)?function(p){return cn(p,b.length===1?b[0]:b)}:b}):t=[Pe];var a=-1;t=ce(t,$e($()));var u=Za(e,function(b,p,g){var _=ce(t,function(S){return S(b)});return{criteria:_,index:++a,value:b}});return Cd(u,function(b,p){return l5(b,p,s)})}function e5(e,t){return nc(e,t,function(s,a){return Ps(e,a)})}function nc(e,t,s){for(var a=-1,u=t.length,b={};++a<u;){var p=t[a],g=cn(e,p);s(g,p)&&b0(b,Wt(p,e),g)}return b}function t5(e){return function(t){return cn(t,e)}}function ss(e,t,s,a){var u=a?Td:An,b=-1,p=t.length,g=e;for(e===t&&(t=De(t)),s&&(g=ce(e,$e(s)));++b<p;)for(var _=0,S=t[b],I=s?s(S):S;(_=u(g,I,_,a))>-1;)g!==e&&_r.call(g,_,1),_r.call(e,_,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!==b){var b=u;Dt(u)?_r.call(e,u,1):us(e,u)}}return e}function os(e,t){return e+Ar(Ma()*(t-e+1))}function n5(e,t,s,a){for(var u=-1,b=pe(yr((t-e)/(s||1)),0),p=y(b);b--;)p[a?b:++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=Ar(t/2),t&&(e+=e);while(t);return s}function W(e,t){return vs(Fc(e,t,Pe),e+"")}function r5(e){return Va(On(e))}function i5(e,t){var s=On(e);return Nr(s,an(t,0,s.length))}function b0(e,t,s,a){if(!ue(e))return e;t=Wt(t,e);for(var u=-1,b=t.length,p=b-1,g=e;g!=null&&++u<b;){var _=gt(t[u]),S=s;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(u!=p){var I=g[_];S=a?a(I,_,g):r,S===r&&(S=ue(I)?I:Dt(t[u+1])?[]:{})}u0(g,_,S),g=g[_]}return e}var ic=wr?function(e,t){return wr.set(e,t),e}:Pe,s5=mr?function(e,t){return mr(e,"toString",{configurable:!0,enumerable:!1,value:Os(t),writable:!0})}:Pe;function o5(e){return Nr(On(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 b=y(u);++a<u;)b[a]=e[a+t];return b}function a5(e,t){var s;return kt(e,function(a,u,b){return s=t(a,u,b),!s}),!!s}function Br(e,t,s){var a=0,u=e==null?a:e.length;if(typeof t=="number"&&t===t&&u<=u1){for(;a<u;){var b=a+u>>>1,p=e[b];p!==null&&!Ue(p)&&(s?p<=t:p<t)?a=b+1:u=b}return u}return cs(e,t,Pe,s)}function cs(e,t,s,a){var u=0,b=e==null?0:e.length;if(b===0)return 0;t=s(t);
vendor: 5,671 bytes, line 36
36for(var p=t!==t,g=t===null,_=Ue(t),S=t===r;u<b;){var I=Ar((u+b)/2),D=s(e[I]),R=D!==r,O=D===null,M=D===D,H=Ue(D);if(p)var U=a||M;else S?U=M&&(a||R):g?U=M&&R&&(a||!O):_?U=M&&R&&!O&&(a||!H):O||H?U=!1:U=a?D<=t:D<t;U?u=I+1:b=I}return me(b,bt)}function sc(e,t){for(var s=-1,a=e.length,u=0,b=[];++s<a;){var p=e[s],g=t?t(p):p;if(!s||!at(g,_)){var _=g;b[u++]=p===0?0:p}}return b}function oc(e){return typeof e=="number"?e:Ue(e)?xn:+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==-lt?"-0":t}function Ht(e,t,s){var a=-1,u=ur,b=e.length,p=!0,g=[],_=g;if(s)p=!1,u=Mi;else if(b>=c){var S=t?null:x5(e);if(S)return dr(S);p=!1,u=r0,_=new on}else _=t?[]:g;e:for(;++a<b;){var I=e[a],D=t?t(I):I;if(I=s||I!==0?I:0,p&&D===D){for(var R=_.length;R--;)if(_[R]===D)continue e;t&&_.push(D),g.push(I)}else u(_,D,s)||(_!==g&&_.push(D),g.push(I))}return g}function us(e,t){return t=Wt(t,e),e=Oc(e,t),e==null||delete e[gt(Xe(t))]}function ac(e,t,s,a){return b0(e,t,s(cn(e,t)),a)}function Rr(e,t,s,a){for(var u=e.length,b=a?u:-1;(a?b--:++b<u)&&t(e[b],b,e););return s?qe(e,a?0:b,a?b+1:u):qe(e,a?b+1:0,a?u:b)}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,b=y(a);++u<a;)for(var p=e[u],g=-1;++g<a;)g!=u&&(b[u]=f0(b[u]||p,e[g],t,s));return Ht(_e(b,1),t,s)}function uc(e,t,s){for(var a=-1,u=e.length,b=t.length,p={};++a<u;){var g=a<b?t[a]:r;s(p,e[a],g)}return p}function ds(e){return de(e)?e:[]}function ls(e){return typeof e=="function"?e:Pe}function Wt(e,t){return V(e)?e:ys(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=qd||function(e){return xe.clearTimeout(e)};function dc(e,t){if(t)return e.slice();var s=e.length,a=Pa?Pa(s):new e.constructor(s);return e.copy(a),a}function bs(e){var t=new e.constructor(e.byteLength);return new Er(t).set(new Er(e)),t}function u5(e,t){var s=t?bs(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 d5(e){return c0?re(c0.call(e)):{}}function lc(e,t){var s=t?bs(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function bc(e,t){if(e!==t){var s=e!==r,a=e===null,u=e===e,b=Ue(e),p=t!==r,g=t===null,_=t===t,S=Ue(t);if(!g&&!S&&!b&&e>t||b&&p&&_&&!g&&!S||a&&p&&_||!s&&_||!u)return 1;if(!a&&!b&&!S&&e<t||S&&s&&u&&!a&&!b||g&&s&&u||!p&&u||!_)return-1}return 0}function l5(e,t,s){for(var a=-1,u=e.criteria,b=t.criteria,p=u.length,g=s.length;++a<p;){var _=bc(u[a],b[a]);if(_){if(a>=g)return _;var S=s[a];return _*(S=="desc"?-1:1)}}return e.index-t.index}function hc(e,t,s,a){for(var u=-1,b=e.length,p=s.length,g=-1,_=t.length,S=pe(b-p,0),I=y(_+S),D=!a;++g<_;)I[g]=t[g];for(;++u<p;)(D||u<b)&&(I[s[u]]=e[u]);for(;S--;)I[g++]=e[u++];return I}function pc(e,t,s,a){for(var u=-1,b=e.length,p=-1,g=s.length,_=-1,S=t.length,I=pe(b-g,0),D=y(I+S),R=!a;++u<I;)D[u]=e[u];for(var O=u;++_<S;)D[O+_]=t[_];for(;++p<g;)(R||u<b)&&(D[O+s[p]]=e[u++]);return D}function De(e,t){var s=-1,a=e.length;for(t||(t=y(a));++s<a;)t[s]=e[s];return t}function pt(e,t,s,a){var u=!s;s||(s={});for(var b=-1,p=t.length;++b<p;){var g=t[b],_=a?a(s[g],e[g],g,s,e):r;_===r&&(_=e[g]),u?Ct(s,g,_):u0(s,g,_)}return s}function b5(e,t){return pt(e,ms(e),t)}function h5(e,t){return pt(e,Ic(e),t)}function Pr(e,t){return function(s,a){var u=V(s)?_d:$l,b=t?t():{};return u(s,e,$(a,2),b)}}function Bn(e){return W(function(t,s){var a=-1,u=s.length,b=u>1?s[u-1]:r,p=u>2?s[2]:r;for(b=e.length>3&&typeof b=="function"?(u--,b):r,p&&Te(s[0],s[1],p)&&(b=u<3?r:b,u=1),t=re(t);++a<u;){var g=s[a];g&&e(t,g,a,b)}return t})}function gc(e,t){return function(s,a){if(s==null)return s;if(!Be(s))return e(s,a);for(var u=s.length,b=t?u:-1,p=re(s);(t?b--:++b<u)&&a(p[b],b,p)!==!1;);return s}}function Ec(e){return function(t,s,a){for(var u=-1,b=re(t),p=a(t),g=p.length;g--;){var _=p[e?g:++u];if(s(b[_],_,b)===!1)break}return t}}function p5(e,t,s){var a=t&Z,u=h0(e);function b(){var p=this&&this!==xe&&this instanceof b?u:e;return p.apply(a?s:this,arguments)}return b}function xc(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 Rn(e){return function(t){return Ui(gu(pu(t).replace(sd,"")),e,"")}}function h0(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=Dn(e.prototype),a=e.apply(s,t);return ue(a)?a:s}}function g5(e,t,s){var a=h0(e);function u(){for(var b=arguments.length,p=y(b),g=b,_=Pn(u);g--;)p[g]=arguments[g];var S=b<3&&p[0]!==_&&p[b-1]!==_?[]:zt(p,_);if(b-=S.length,b<s)return wc(e,t,Fr,u.placeholder,r,p,S,r,r,s-b);var I=this&&this!==xe&&this instanceof u?a:e;return Le(I,this,p)}return u}function _c(e){return function(t,s,a){var u=re(t);if(!Be(t)){var b=$(s,3);t=ge(t),s=function(g){return b(u[g],g,u)}}var p=e(t,s,a);return p>-1?u[b?t[p]:p]:r}}function mc(e){return It(function(t){var s=t.length,a=s,u=Ye.prototype.thru;for(e&&t.reverse();a--;){var b=t[a];if(typeof b!="function")throw new Ke(d);if(u&&!p&&Mr(b)=="wrapper")var p=new Ye([],!0)}for(a=p?a:s;++a<s;){b=t[a];var g=Mr(b),_=g=="wrapper"?xs(b):r;_&&As(_[0])&&_[1]==(ae|G|J|Ie)&&!_[4].length&&_[9]==1?p=p[Mr(_[0])].apply(
vendor: 5,147 bytes, line 36
36p,_[3]):p=b.length==1&&As(b)?p[g]():p.thru(b)}return function(){var S=arguments,I=S[0];if(p&&S.length==1&&V(I))return p.plant(I).value();for(var D=0,R=s?t[D].apply(this,S):I;++D<s;)R=t[D].call(this,R);return R}})}function Fr(e,t,s,a,u,b,p,g,_,S){var I=t&ae,D=t&Z,R=t&j,O=t&(G|te),M=t&tt,H=R?r:h0(e);function U(){for(var Y=arguments.length,X=y(Y),Ne=Y;Ne--;)X[Ne]=arguments[Ne];if(O)var Ce=Pn(U),Ve=Id(X,Ce);if(a&&(X=hc(X,a,u,O)),b&&(X=pc(X,b,p,O)),Y-=Ve,O&&Y<S){var le=zt(X,Ce);return wc(e,t,Fr,U.placeholder,s,X,le,g,_,S-Y)}var ct=D?s:this,Pt=R?ct[e]:e;return Y=X.length,g?X=$5(X,g):M&&Y>1&&X.reverse(),I&&_<Y&&(X.length=_),this&&this!==xe&&this instanceof U&&(Pt=H||h0(Pt)),Pt.apply(ct,X)}return U}function yc(e,t){return function(s,a){return Hl(s,e,t(a),{})}}function Or(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 hs(e){return It(function(t){return t=ce(t,$e($())),W(function(s){var a=this;return e(t,function(u){return Le(u,a,s)})})})}function Lr(e,t){t=t===r?" ":Me(t);var s=t.length;if(s<2)return s?as(t,e):t;var a=as(t,yr(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,b=h0(e);function p(){for(var g=-1,_=arguments.length,S=-1,I=a.length,D=y(I+_),R=this&&this!==xe&&this instanceof p?b:e;++S<I;)D[S]=a[S];for(;_--;)D[S++]=arguments[++g];return Le(R,u?s:this,D)}return p}function Ac(e){return function(t,s,a){return a&&typeof a!="number"&&Te(t,s,a)&&(s=a=r),t=Rt(t),s===r?(s=t,t=0):s=Rt(s),a=a===r?t<s?1:-1:Rt(a),n5(t,s,a,e)}}function $r(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,b,p,g,_,S){var I=t&G,D=I?p:r,R=I?r:p,O=I?b:r,M=I?r:b;t|=I?J:oe,t&=~(I?oe:J),t&K||(t&=-4);var H=[e,t,u,O,D,M,R,g,_,S],U=s.apply(r,H);return As(e)&&Lc(U,H),U.placeholder=a,$c(U,e,t)}function ps(e){var t=he[e];return function(s,a){if(s=Ze(s),a=a==null?0:me(k(a),292),a&&$a(s)){var u=(ee(s)+"e").split("e"),b=t(u[0]+"e"+(+u[1]+a));return u=(ee(b)+"e").split("e"),+(u[0]+"e"+(+u[1]-a))}return t(s)}}var x5=Sn&&1/dr(new Sn([,-0]))[1]==lt?function(e){return new Sn(e)}:Ms;function vc(e){return function(t){var s=ye(t);return s==rt?Wi(t):s==it?Ld(t):Sd(t,e(t))}}function St(e,t,s,a,u,b,p,g){var _=t&j;if(!_&&typeof e!="function")throw new Ke(d);var S=a?a.length:0;if(S||(t&=-97,a=u=r),p=p===r?p:pe(k(p),0),g=g===r?g:k(g),S-=u?u.length:0,t&oe){var I=a,D=u;a=u=r}var R=_?r:xs(e),O=[e,t,s,a,u,I,D,b,p,g];if(R&&F5(O,R),e=O[0],t=O[1],s=O[2],a=O[3],u=O[4],g=O[9]=O[9]===r?_?0:e.length:pe(O[9]-S,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=Fr.apply(r,O);var H=R?ic:Lc;return $c(H(M,O),e,t)}function Tc(e,t,s,a){return e===r||at(e,Cn[s])&&!ne.call(a,s)?t:e}function Cc(e,t,s,a,u,b){return ue(e)&&ue(t)&&(b.set(t,e),Dr(e,t,r,Cc,b),b.delete(t)),e}function _5(e){return E0(e)?r:e}function Sc(e,t,s,a,u,b){var p=s&F,g=e.length,_=t.length;if(g!=_&&!(p&&_>g))return!1;var S=b.get(e),I=b.get(t);if(S&&I)return S==t&&I==e;var D=-1,R=!0,O=s&z?new on:r;for(b.set(e,t),b.set(t,e);++D<g;){var M=e[D],H=t[D];if(a)var U=p?a(H,M,D,t,e,b):a(M,H,D,e,t,b);if(U!==r){if(U)continue;R=!1;break}if(O){if(!Ni(t,function(Y,X){if(!r0(O,X)&&(M===Y||u(M,Y,s,a,b)))return O.push(X)})){R=!1;break}}else if(!(M===H||u(M,H,s,a,b))){R=!1;break}}return b.delete(e),b.delete(t),R}function m5(e,t,s,a,u,b,p){switch(s){case mn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case n0:return!(e.byteLength!=t.byteLength||!b(new Er(e),new Er(t)));case Xn:case Zn:case Jn:return at(+e,+t);case rr:return e.name==t.name&&e.message==t.message;case Qn:case e0:return e==t+"";case rt:var g=Wi;case it:var _=a&F;if(g||(g=dr),e.size!=t.size&&!_)return!1;var S=p.get(e);if(S)return S==t;a|=z,p.set(e,t);var I=Sc(g(e),g(t),a,u,b,p);return p.delete(e),I;case sr:if(c0)return c0.call(e)==c0.call(t)}return!1}function y5(e,t,s,a,u,b){var p=s&F,g=gs(e),_=g.length,S=gs(t),I=S.length;if(_!=I&&!p)return!1;for(var D=_;D--;){var R=g[D];if(!(p?R in t:ne.call(t,R)))return!1}var O=b.get(e),M=b.get(t);if(O&&M)return O==t&&M==e;var H=!0;b.set(e,t),b.set(t,e);for(var U=p;++D<_;){R=g[D];var Y=e[R],X=t[R];if(a)var Ne=p?a(X,Y,R,t,e,b):a(Y,X,R,e,t,b);if(!(Ne===r?Y===X||u(Y,X,s,a,b):Ne)){H=!1;break}U||(U=R=="constructor")}if(H&&!U){var Ce=e.constructor,Ve=t.constructor;Ce!=Ve&&"constructor"in e&&"constructor"in t&&!(typeof Ce=="function"&&Ce instanceof Ce&&typeof Ve=="function"&&Ve instanceof Ve)&&(H=!1)}return b.delete(e),b.delete(t),H}function It(e){return vs(Fc(e,r,Gc),e+"")}function gs(e){return Ya(e,ge,ms)}function Es(e){return Ya(e,Re,Ic)}var xs=wr?function(e){return wr.get(e)}:Ms;function Mr(e){for(var t=e.name+"",s=In[t],a=ne.call(In,t)?s.length:0;a--;){var u=s[a],b=u.func;if(b==null||b==e)return u.name}return t}function Pn(e){var t=ne.call(l,"placeholder")?l:e;return t.placeholder}function $(){var e=l.iteratee||Ls;return e=e===Ls?Xa:e,arguments.length?e(arguments[0],arguments[1]):e}function Ur(e,t){var s=e.__data__;
vendor: 11,310 bytes, lines 36-38
36return D5(t)?s[typeof t=="string"?"string":"hash"]:s.map}function _s(e){for(var t=ge(e),s=t.length;s--;){var a=t[s],u=e[a];t[s]=[a,u,Rc(u)]}return t}function un(e,t){var s=Pd(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=pr.call(e);return a&&(t?e[rn]=s:delete e[rn]),u}var ms=Yi?function(e){return e==null?[]:(e=re(e),Nt(Yi(e),function(t){return Oa.call(e,t)}))}:Us,Ic=Yi?function(e){for(var t=[];e;)Vt(t,ms(e)),e=xr(e);return t}:Us,ye=ve;(ji&&ye(new ji(new ArrayBuffer(1)))!=mn||s0&&ye(new s0)!=rt||qi&&ye(qi.resolve())!=Ho||Sn&&ye(new Sn)!=it||o0&&ye(new o0)!=t0)&&(ye=function(e){var t=ve(e),s=t==wt?e.constructor:r,a=s?fn(s):"";if(a)switch(a){case il:return mn;case sl:return rt;case ol:return Ho;case al:return it;case cl:return t0}return t});function w5(e,t,s){for(var a=-1,u=s.length;++a<u;){var b=s[a],p=b.size;switch(b.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=me(t,e+p);break;case"takeRight":e=pe(e,t-p);break}}return{start:e,end:t}}function v5(e){var t=e.match(B1);return t?t[1].split(R1):[]}function Dc(e,t,s){t=Wt(t,e);for(var a=-1,u=t.length,b=!1;++a<u;){var p=gt(t[a]);if(!(b=e!=null&&s(e,p)))break;e=e[p]}return b||++a!=u?b:(u=e==null?0:e.length,!!u&&Wr(u)&&Dt(p,u)&&(V(e)||dn(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 Bc(e){return typeof e.constructor=="function"&&!p0(e)?Dn(xr(e)):{}}function C5(e,t,s){var a=e.constructor;switch(t){case n0:return bs(e);case Xn:case Zn:return new a(+e);case mn:return u5(e,s);case _i:case mi:case yi:case Ai:case wi:case vi:case Ti:case Ci:case Si:return lc(e,s);case rt:return new a;case Jn:case e0:return new a(e);case Qn:return f5(e);case it:return new a;case sr:return d5(e)}}function S5(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(D1,`{
37/* [wrapped with `+t+`] */
38`)}function I5(e){return V(e)||dn(e)||!!(La&&e&&e[La])}function Dt(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"?Be(s)&&Dt(t,s.length):a=="string"&&t in s)?at(s[t],e):!1}function ys(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 D5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function As(e){var t=Mr(e),s=l[t];if(typeof s!="function"||!(t in q.prototype))return!1;if(e===s)return!0;var a=xs(s);return!!a&&e===a[0]}function B5(e){return!!Ra&&Ra in e}var R5=br?Bt:Ns;function p0(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||Cn;return e===s}function Rc(e){return e===e&&!ue(e)}function Pc(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in re(s))}}function P5(e){var t=kr(e,function(a){return s.size===m&&s.clear(),a}),s=t.cache;return t}function F5(e,t){var s=e[1],a=t[1],u=s|a,b=u<(Z|j|ae),p=a==ae&&s==G||a==ae&&s==Ie&&e[7].length<=t[8]||a==(ae|Ie)&&t[7].length<=t[8]&&s==G;if(!(b||p))return e;a&Z&&(e[2]=t[2],u|=s&Z?0:K);var g=t[3];if(g){var _=e[3];e[3]=_?hc(_,g,t[4]):g,e[4]=_?zt(e[3],w):t[4]}return g=t[5],g&&(_=e[5],e[5]=_?pc(_,g,t[6]):g,e[6]=_?zt(e[5],w):t[6]),g=t[7],g&&(e[7]=g),a&ae&&(e[8]=e[8]==null?t[8]:me(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function O5(e){var t=[];if(e!=null)for(var s in re(e))t.push(s);return t}function L5(e){return pr.call(e)}function Fc(e,t,s){return t=pe(t===r?e.length-1:t,0),function(){for(var a=arguments,u=-1,b=pe(a.length-t,0),p=y(b);++u<b;)p[u]=a[t+u];u=-1;for(var g=y(t+1);++u<t;)g[u]=a[u];return g[t]=s(p),Le(e,this,g)}}function Oc(e,t){return t.length<2?e:cn(e,qe(t,0,-1))}function $5(e,t){for(var s=e.length,a=me(t.length,s),u=De(e);a--;){var b=t[a];e[a]=Dt(b,s)?u[b]:r}return e}function ws(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lc=Mc(ic),g0=Zd||function(e,t){return xe.setTimeout(e,t)},vs=Mc(s5);function $c(e,t,s){var a=t+"";return vs(e,S5(a,M5(v5(a),s)))}function Mc(e){var t=0,s=0;return function(){var a=tl(),u=ke-(a-s);if(s=a,u>0){if(++t>=we)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Nr(e,t){var s=-1,a=e.length,u=a-1;for(t=t===r?a:t;++s<t;){var b=os(s,u),p=e[b];e[b]=e[s],e[s]=p}return e.length=t,e}var Uc=P5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(C1,function(s,a,u,b){t.push(u?b.replace(O1,"$1"):a||s)}),t});function gt(e){if(typeof e=="string"||Ue(e))return e;var t=e+"";return t=="0"&&1/e==-lt?"-0":t}function fn(e){if(e!=null){try{return hr.call(e)}catch{}try{return e+""}catch{}}return""}function M5(e,t){return We(f1,function(s){var a="_."+s[0];t&s[1]&&!ur(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__=De(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,b=0,p=y(yr(a/t));u<a;)p[b++]=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 b=e[t];b&&(u[a++]=b)}return u}function V5(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),s=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Vt(V(s)?De(s):[s],_e(t,1))}var z5=W(function(e,t){return de(e)?f0(e,_e(t,1,de,!0)):[]}),G5=W(function(e,t){var s=Xe(t);return de(s)&&(s=r),de(e)?f0(e,_e(t,1,de,!0),$(s,2)):[]}),k5=W(function(e,t){var s=Xe(t);return de(s)&&(s=r),de(e)?f0(e,_e(t,1,de,!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?Rr(e,$(t,3),!0,!0):[]}function Y5(e,t){return e&&e.length?Rr(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),Vl(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)),fr(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):me(u,a-1)),fr(e,$(t,3),u,!0)}function Gc(e){var t=e==null?0:e.length;return t?_e(e,1):[]}function q5(e){var t=e==null?0:e.length;return t?_e(e,lt):[]}function X5(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:k(t),_e(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,ds);return t.length&&t[0]===e[0]?ts(t):[]}),t6=W(function(e){var t=Xe(e),s=ce(e,ds);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,ds);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?"":Qd.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):me(u,a-1)),t===t?Md(e,t,u):fr(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=It(function(e,t){var s=e==null?0:e.length,a=Zi(e,t);return rc(e,ce(t,function(u){return Dt(u,s)?+u:u}).sort(bc)),a});function f6(e,t){var s=[];if(!(e&&e.length))return s;var a=-1,u=[],b=e.length;for(t=$(t,3);++a<b;){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:rl.call(e)}function d6(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 l6(e,t){return Br(e,t)}function b6(e,t,s){return cs(e,t,$(s,2))}function h6(e,t){var s=e==null?0:e.length;if(s){var a=Br(e,t);if(a<s&&at(e[a],t))return a}return-1}function p6(e,t){return Br(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=Br(e,t,!0)-1;if(at(e[a],t))return a}return-1}function x6(e){return e&&e.length?sc(e):[]}function _6(e,t){return e&&e.length?sc(e,$(t,2)):[]}function m6(e){var t=e==null?0:e.length;return t?qe(e,1,t):[]}function y6(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?Rr(e,$(t,3),!1,!0):[]}function v6(e,t){return e&&e.length?Rr(e,$(t,3)):[]}var T6=W(function(e){return Ht(_e(e,1,de,!0))}),C6=W(function(e){var t=Xe(e);return de(t)&&(t=r),Ht(_e(e,1,de,!0),$(t,2))}),S6=W(function(e){var t=Xe(e);return t=typeof t=="function"?t:r,Ht(_e(e,1,de,!0),r,t)});function I6(e){return e&&e.length?Ht(e):[]}function D6(e,t){return e&&e.length?Ht(e,$(t,2)):[]}function B6(e,t){return t=typeof t=="function"?t:r,e&&e.length?Ht(e,r,t):[]}function Cs(e){if(!(e&&e.length))return[];var t=0;return e=Nt(e,function(s){if(de(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=Cs(e);return t==null?s:ce(s,function(a){return Le(t,r,a)})}var R6=W(function(e,t){return de(e)?f0(e,t):[]}),P6=W(function(e){return fs(Nt(e,de))}),F6=W(function(e){var t=Xe(e);return de(t)&&(t=r),fs(Nt(e,de),$(t,2))}),O6=W(function(e){var t=Xe(e);return t=typeof t=="function"?t:r,fs(Nt(e,de),r,t)}),L6=W(Cs);function $6(e,t){return uc(e||[],t||[],u0)}function M6(e,t){return uc(e||[],t||[],b0)}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=l(e);return t.__chain__=!0,t}function N6(e,t){return t(e),e}function Vr(e,t){return t(e)}var V6=It(function(e){var t=e.length,s=t?e[0]:0,a=this.__wrapped__,u=function(b){return Zi(b,e)};return t>1||this.__actions__.length||!(a instanceof q)||!Dt(s)?this.thru(u):(a=a.slice(s,+s+(t?1:0)),a.__actions__.push({func:Vr,args:[u],thisArg:r}),new Ye(a,this.__chain__).thru(function(b){return t&&!b.length&&b.push(r),b}))});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 Tr;){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:Vr,args:[Ts],thisArg:r}),new Ye(t,this.__chain__)}return this.thru(Ts)}function Y6(){return cc(this.__wrapped__,this.__actions__)}var j6=Pr(function(e,t,s){ne.call(e,s)?++e[s]:Ct(e,s,1)});function q6(e,t,s){var a=V(e)?ya:Nl;
vendor: 3,638 bytes, line 38
38return 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=_c(Vc),J6=_c(zc);function Q6(e,t){return _e(zr(e,t),1)}function eb(e,t){return _e(zr(e,t),lt)}function tb(e,t,s){return s=s===r?1:k(s),_e(zr(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)?md:Ha;return s(e,$(t,3))}var nb=Pr(function(e,t,s){ne.call(e,s)?e[s].push(t):Ct(e,s,[t])});function rb(e,t,s,a){e=Be(e)?e:On(e),s=s&&!a?k(s):0;var u=e.length;return s<0&&(s=pe(u+s,0)),Kr(e)?s<=u&&e.indexOf(t,s)>-1:!!u&&An(e,t,s)>-1}var ib=W(function(e,t,s){var a=-1,u=typeof t=="function",b=Be(e)?y(e.length):[];return kt(e,function(p){b[++a]=u?Le(t,p,s):d0(p,t,s)}),b}),sb=Pr(function(e,t,s){Ct(e,s,t)});function zr(e,t){var s=V(e)?ce:Za;return s(e,$(t,3))}function ob(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 ab=Pr(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function cb(e,t,s){var a=V(e)?Ui:Ta,u=arguments.length<3;return a(e,$(t,4),s,u,kt)}function ub(e,t,s){var a=V(e)?yd:Ta,u=arguments.length<3;return a(e,$(t,4),s,u,Ha)}function fb(e,t){var s=V(e)?Nt:Wa;return s(e,Hr($(t,3)))}function db(e){var t=V(e)?Va:r5;return t(e)}function lb(e,t,s){(s?Te(e,t,s):t===r)?t=1:t=k(t);var a=V(e)?Ol:i5;return a(e,t)}function bb(e){var t=V(e)?Ll:o5;return t(e)}function hb(e){if(e==null)return 0;if(Be(e))return Kr(e)?vn(e):e.length;var t=ye(e);return t==rt||t==it?e.size:rs(e).length}function pb(e,t,s){var a=V(e)?Ni:a5;return s&&Te(e,t,s)&&(t=r),a(e,$(t,3))}var gb=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,_e(t,1),[])}),Gr=Xd||function(){return xe.Date.now()};function Eb(e,t){if(typeof t!="function")throw new Ke(d);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,St(e,ae,r,r,r,r,t)}function Xc(e,t){var s;if(typeof t!="function")throw new Ke(d);return e=k(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var Ss=W(function(e,t,s){var a=Z;if(s.length){var u=zt(s,Pn(Ss));a|=J}return St(e,a,t,s,u)}),Zc=W(function(e,t,s){var a=Z|j;if(s.length){var u=zt(s,Pn(Zc));a|=J}return St(t,a,e,s,u)});function Jc(e,t,s){t=s?r:t;var a=St(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=St(e,te,r,r,r,r,r,t);return a.placeholder=Qc.placeholder,a}function eu(e,t,s){var a,u,b,p,g,_,S=0,I=!1,D=!1,R=!0;if(typeof e!="function")throw new Ke(d);t=Ze(t)||0,ue(s)&&(I=!!s.leading,D="maxWait"in s,b=D?pe(Ze(s.maxWait)||0,t):b,R="trailing"in s?!!s.trailing:R);function O(le){var ct=a,Pt=u;return a=u=r,S=le,p=e.apply(Pt,ct),p}function M(le){return S=le,g=g0(Y,t),I?O(le):p}function H(le){var ct=le-_,Pt=le-S,_u=t-ct;return D?me(_u,b-Pt):_u}function U(le){var ct=le-_,Pt=le-S;return _===r||ct>=t||ct<0||D&&Pt>=b}function Y(){var le=Gr();if(U(le))return X(le);g=g0(Y,H(le))}function X(le){return g=r,R&&a?O(le):(a=u=r,p)}function Ne(){g!==r&&fc(g),S=0,a=_=u=g=r}function Ce(){return g===r?p:X(Gr())}function Ve(){var le=Gr(),ct=U(le);if(a=arguments,u=this,_=le,ct){if(g===r)return M(_);if(D)return fc(g),g=g0(Y,t),O(_)}return g===r&&(g=g0(Y,t)),p}return Ve.cancel=Ne,Ve.flush=Ce,Ve}var xb=W(function(e,t){return ka(e,1,t)}),_b=W(function(e,t,s){return ka(e,Ze(t)||0,s)});function mb(e){return St(e,tt)}function kr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ke(d);var s=function(){var a=arguments,u=t?t.apply(this,a):a[0],b=s.cache;if(b.has(u))return b.get(u);var p=e.apply(this,a);return s.cache=b.set(u,p)||b,p};
vendor: 5,071 bytes, line 38
38return s.cache=new(kr.Cache||Tt),s}kr.Cache=Tt;function Hr(e){if(typeof e!="function")throw new Ke(d);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 yb(e){return Xc(2,e)}var Ab=c5(function(e,t){t=t.length==1&&V(t[0])?ce(t[0],$e($())):ce(_e(t,1),$e($()));var s=t.length;return W(function(a){for(var u=-1,b=me(a.length,s);++u<b;)a[u]=t[u].call(this,a[u]);return Le(e,this,a)})}),Is=W(function(e,t){var s=zt(t,Pn(Is));return St(e,J,r,t,s)}),tu=W(function(e,t){var s=zt(t,Pn(tu));return St(e,oe,r,t,s)}),wb=It(function(e,t){return St(e,Ie,r,r,r,t)});function vb(e,t){if(typeof e!="function")throw new Ke(d);return t=t===r?t:k(t),W(e,t)}function Tb(e,t){if(typeof e!="function")throw new Ke(d);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 Cb(e,t,s){var a=!0,u=!0;if(typeof e!="function")throw new Ke(d);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 Sb(e){return qc(e,1)}function Ib(e,t){return Is(ls(t),e)}function Db(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function Bb(e){return je(e,C)}function Rb(e,t){return t=typeof t=="function"?t:r,je(e,C,t)}function Pb(e){return je(e,T|C)}function Fb(e,t){return t=typeof t=="function"?t:r,je(e,T|C,t)}function Ob(e,t){return t==null||Ga(e,t,ge(t))}function at(e,t){return e===t||e!==e&&t!==t}var Lb=$r(es),$b=$r(function(e,t){return e>=t}),dn=ja((function(){return arguments})())?ja:function(e){return fe(e)&&ne.call(e,"callee")&&!Oa.call(e,"callee")},V=y.isArray,Mb=pa?$e(pa):Wl;function Be(e){return e!=null&&Wr(e.length)&&!Bt(e)}function de(e){return fe(e)&&Be(e)}function Ub(e){return e===!0||e===!1||fe(e)&&ve(e)==Xn}var Yt=Jd||Ns,Nb=ga?$e(ga):Kl;function Vb(e){return fe(e)&&e.nodeType===1&&!E0(e)}function zb(e){if(e==null)return!0;if(Be(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||Yt(e)||Fn(e)||dn(e)))return!e.length;var t=ye(e);if(t==rt||t==it)return!e.size;if(p0(e))return!rs(e).length;for(var s in e)if(ne.call(e,s))return!1;return!0}function Gb(e,t){return l0(e,t)}function kb(e,t,s){s=typeof s=="function"?s:r;var a=s?s(e,t):r;return a===r?l0(e,t,r,s):!!a}function Ds(e){if(!fe(e))return!1;var t=ve(e);return t==rr||t==l1||typeof e.message=="string"&&typeof e.name=="string"&&!E0(e)}function Hb(e){return typeof e=="number"&&$a(e)}function Bt(e){if(!ue(e))return!1;var t=ve(e);return t==ir||t==ko||t==d1||t==h1}function nu(e){return typeof e=="number"&&e==k(e)}function Wr(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):jl;function Wb(e,t){return e===t||ns(e,t,_s(t))}function Kb(e,t,s){return s=typeof s=="function"?s:r,ns(e,t,_s(t),s)}function Yb(e){return iu(e)&&e!=+e}function jb(e){if(R5(e))throw new N(f);return qa(e)}function qb(e){return e===null}function Xb(e){return e==null}function iu(e){return typeof e=="number"||fe(e)&&ve(e)==Jn}function E0(e){if(!fe(e)||ve(e)!=wt)return!1;var t=xr(e);if(t===null)return!0;var s=ne.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&hr.call(s)==Kd}var Bs=xa?$e(xa):ql;function Zb(e){return nu(e)&&e>=-At&&e<=At}var su=_a?$e(_a):Xl;function Kr(e){return typeof e=="string"||!V(e)&&fe(e)&&ve(e)==e0}function Ue(e){return typeof e=="symbol"||fe(e)&&ve(e)==sr}var Fn=ma?$e(ma):Zl;function Jb(e){return e===r}function Qb(e){return fe(e)&&ye(e)==t0}function e2(e){return fe(e)&&ve(e)==g1}var t2=$r(is),n2=$r(function(e,t){return e<=t});function ou(e){if(!e)return[];if(Be(e))return Kr(e)?st(e):De(e);if(i0&&e[i0])return Od(e[i0]());var t=ye(e),s=t==rt?Wi:t==it?dr:On;return s(e)}function Rt(e){if(!e)return e===0?e:0;if(e=Ze(e),e===lt||e===-lt){var t=e<0?-1:1;return t*qn}return e===e?e:0}function k(e){var t=Rt(e),s=t%1;return t===t?s?t-s:t:0}function au(e){return e?an(k(e),0,Oe):0}function Ze(e){if(typeof e=="number")return e;if(Ue(e))return xn;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=Ca(e);var s=M1.test(e);return s||N1.test(e)?Ed(e.slice(2),s?2:8):$1.test(e)?xn:+e}function cu(e){return pt(e,Re(e))}function r2(e){return e?an(k(e),-At,At):e===0?e:0}function ee(e){return e==null?"":Me(e)}var i2=Bn(function(e,t){if(p0(t)||Be(t)){pt(t,ge(t),e);return}for(var s in t)ne.call(t,s)&&u0(e,s,t[s])}),uu=Bn(function(e,t){pt(t,Re(t),e)}),Yr=Bn(function(e,t,s,a){pt(t,Re(t),e,a)}),s2=Bn(function(e,t,s,a){pt(t,ge(t),e,a)}),o2=It(Zi);function a2(e,t){var s=Dn(e);return t==null?s:za(s,t)}var c2=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 b=t[s],p=Re(b),g=-1,_=p.length;++g<_;){var S=p[g],I=e[S];(I===r||at(I,Cn[S])&&!ne.call(e,S))&&(e[S]=b[S])}return e}),u2=W(function(e){return e.push(r,Cc),Le(fu,r,e)}
vendor: 8,939 bytes, lines 38-55
38);function f2(e,t){return Aa(e,$(t,3),ht)}function d2(e,t){return Aa(e,$(t,3),Qi)}function l2(e,t){return e==null?e:Ji(e,$(t,3),Re)}function b2(e,t){return e==null?e:Ka(e,$(t,3),Re)}function h2(e,t){return e&&ht(e,$(t,3))}function p2(e,t){return e&&Qi(e,$(t,3))}function g2(e){return e==null?[]:Ir(e,ge(e))}function E2(e){return e==null?[]:Ir(e,Re(e))}function Rs(e,t,s){var a=e==null?r:cn(e,t);return a===r?s:a}function x2(e,t){return e!=null&&Dc(e,t,zl)}function Ps(e,t){return e!=null&&Dc(e,t,Gl)}var _2=yc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=pr.call(t)),e[t]=s},Os(Pe)),m2=yc(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=pr.call(t)),ne.call(e,t)?e[t].push(s):e[t]=[s]},$),y2=W(d0);function ge(e){return Be(e)?Na(e):rs(e)}function Re(e){return Be(e)?Na(e,!0):Jl(e)}function A2(e,t){var s={};return t=$(t,3),ht(e,function(a,u,b){Ct(s,t(a,u,b),a)}),s}function w2(e,t){var s={};return t=$(t,3),ht(e,function(a,u,b){Ct(s,u,t(a,u,b))}),s}var v2=Bn(function(e,t,s){Dr(e,t,s)}),fu=Bn(function(e,t,s,a){Dr(e,t,s,a)}),T2=It(function(e,t){var s={};if(e==null)return s;var a=!1;t=ce(t,function(b){return b=Wt(b,e),a||(a=b.length>1),b}),pt(e,Es(e),s),a&&(s=je(s,T|A|C,_5));for(var u=t.length;u--;)us(s,t[u]);return s});function C2(e,t){return du(e,Hr($(t)))}var S2=It(function(e,t){return e==null?{}:e5(e,t)});function du(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 I2(e,t,s){t=Wt(t,e);var a=-1,u=t.length;for(u||(u=1,e=r);++a<u;){var b=e==null?r:e[gt(t[a])];b===r&&(a=u,b=s),e=Bt(b)?b.call(e):b}return e}function D2(e,t,s){return e==null?e:b0(e,t,s)}function B2(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:b0(e,t,s,a)}var lu=vc(ge),bu=vc(Re);function R2(e,t,s){var a=V(e),u=a||Yt(e)||Fn(e);if(t=$(t,4),s==null){var b=e&&e.constructor;u?s=a?new b:[]:ue(e)?s=Bt(b)?Dn(xr(e)):{}:s={}}return(u?We:ht)(e,function(p,g,_){return t(s,p,g,_)}),s}function P2(e,t){return e==null?!0:us(e,t)}function F2(e,t,s){return e==null?e:ac(e,t,ls(s))}function O2(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:ac(e,t,ls(s),a)}function On(e){return e==null?[]:Hi(e,ge(e))}function L2(e){return e==null?[]:Hi(e,Re(e))}function $2(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 M2(e,t,s){return t=Rt(t),s===r?(s=t,t=0):s=Rt(s),e=Ze(e),kl(e,t,s)}function U2(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=Rt(e),t===r?(t=e,e=0):t=Rt(t)),e>t){var a=e;e=t,t=a}if(s||e%1||t%1){var u=Ma();return me(e+u*(t-e+gd("1e-"+((u+"").length-1))),t)}return os(e,t)}var N2=Rn(function(e,t,s){return t=t.toLowerCase(),e+(s?hu(t):t)});function hu(e){return Fs(ee(e).toLowerCase())}function pu(e){return e=ee(e),e&&e.replace(z1,Dd).replace(od,"")}function V2(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 z2(e){return e=ee(e),e&&y1.test(e)?e.replace(Ko,Bd):e}function G2(e){return e=ee(e),e&&S1.test(e)?e.replace(Ii,"\\$&"):e}var k2=Rn(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),H2=Rn(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),W2=xc("toLowerCase");function K2(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 Lr(Ar(u),s)+e+Lr(yr(u),s)}function Y2(e,t,s){e=ee(e),t=k(t);var a=t?vn(e):0;return t&&a<t?e+Lr(t-a,s):e}function j2(e,t,s){e=ee(e),t=k(t);var a=t?vn(e):0;return t&&a<t?Lr(t-a,s)+e:e}function q2(e,t,s){return s||t==null?t=0:t&&(t=+t),nl(ee(e).replace(Di,""),t||0)}function X2(e,t,s){return(s?Te(e,t,s):t===r)?t=1:t=k(t),as(ee(e),t)}function Z2(){var e=arguments,t=ee(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var J2=Rn(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Q2(e,t,s){return s&&typeof s!="number"&&Te(e,t,s)&&(t=s=r),s=s===r?Oe:s>>>0,s?(e=ee(e),e&&(typeof t=="string"||t!=null&&!Bs(t))&&(t=Me(t),!t&&wn(e))?Kt(st(e),0,s):e.split(t,s)):[]}var eh=Rn(function(e,t,s){return e+(s?" ":"")+Fs(t)});function th(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 nh(e,t,s){var a=l.templateSettings;s&&Te(e,t,s)&&(t=r),e=ee(e),t=Yr({},t,a,Tc);var u=Yr({},t.imports,a.imports,Tc),b=ge(u),p=Hi(u,b),g,_,S=0,I=t.interpolate||or,D="__p += '",R=Ki((t.escape||or).source+"|"+I.source+"|"+(I===Yo?L1:or).source+"|"+(t.evaluate||or).source+"|$","g"),O="//# sourceURL="+(ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dd+"]")+`
39`;e.replace(R,function(U,Y,X,Ne,Ce,Ve){return X||(X=Ne),D+=e.slice(S,Ve).replace(G1,Rd),Y&&(g=!0,D+=`' +
40__e(`+Y+`) +
41'`),Ce&&(_=!0,D+=`';
42`+Ce+`;
43__p += '`),X&&(D+=`' +
44((__t = (`+X+`)) == null ? '' : __t) +
45'`),S=Ve+U.length,U}),D+=`';
46`;var M=ne.call(t,"variable")&&t.variable;if(!M)D=`with (obj) {
47`+D+`
48}
49`;else if(F1.test(M))throw new N(h);D=(_?D.replace(E1,""):D).replace(x1,"$1").replace(_1,"$1;"),D="function("+(M||"obj")+`) {
50`+(M?"":`obj || (obj = {});
51`)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
52function print() { __p += __j.call(arguments, '') }
53`:`;
54`)+D+`return __p
55}`;var H=Eu(function(){return Q(b,O+"return "+D).apply(r,p)});if(H.source=D,Ds(H))throw H;return H}function rh(e){return ee(e).toLowerCase()}function ih(e){return ee(e).toUpperCase()}function sh(e,t,s){if(e=ee(e),e&&(s||t===r))return Ca(e);if(!e||!(t=Me(t)))return e;var a=st(e),u=st(t),b=Sa(a,u),p=Ia(a,u)+1;return Kt(a,b,p).join("")}function oh(e,t,s){if(e=ee(e),e&&(s||t===r))return e.slice(0,Ba(e)+1);if(!e||!(t=Me(t)))return e;var a=st(e),u=Ia(a,st(t))+1;return Kt(a,0,u).join("")}function ah(e,t,s){if(e=ee(e),e&&(s||t===r))return e.replace(Di,"");if(!e||!(t=Me(t)))return e;var a=st(e),u=Sa(a,st(t));return Kt(a,u).join("")}function ch(e,t){var s=ft,a=dt;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 b=e.length;if(wn(e)){var p=st(e);b=p.length}if(s>=b)return e;var g=s-vn(a);if(g<1)return a;var _=p?Kt(p,0,g).join(""):e.slice(0,g);if(u===r)return _+a;if(p&&(g+=_.length-g),Bs(u)){if(e.slice(g).search(u)){var S,I=_;for(u.global||(u=Ki(u.source,ee(jo.exec(u))+"g")),u.lastIndex=0;S=u.exec(I);)var D=S.index;_=_.slice(0,D===r?g:D)}}else if(e.indexOf(Me(u),g)!=g){var R=_.lastIndexOf(u);R>-1&&(_=_.slice(0,R))}return _+a}function uh(e){return e=ee(e),e&&m1.test(e)?e.replace(Wo,Ud):e}var fh=Rn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Fs=xc("toUpperCase");function gu(e,t,s){return e=ee(e),t=s?r:t,t===r?Fd(e)?zd(e):vd(e):e.match(t)||[]}var Eu=W(function(e,t){try{return Le(e,r,t)}catch(s){return Ds(s)?s:new N(s)}}),dh=It(function(e,t){return We(t,function(s){s=gt(s),Ct(e,s,Ss(e[s],e))}),e});function lh(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(a){if(typeof a[1]!="function")throw new Ke(d);return[s(a[0]),a[1]]}):[],W(function(a){for(var u=-1;++u<t;){var b=e[u];if(Le(b[0],this,a))return Le(b[1],this,a)}})}function bh(e){return Ul(je(e,T))}function Os(e){return function(){return e}}function hh(e,t){return e==null||e!==e?t:e}var ph=mc(),gh=mc(!0);function Pe(e){return e}function Ls(e){return Xa(typeof e=="function"?e:je(e,T))}function Eh(e){return Ja(je(e,T))}function xh(e,t){return Qa(e,je(t,T))}var _h=W(function(e,t){return function(s){return d0(s,e,t)}}),mh=W(function(e,t){return function(s){return d0(e,s,t)}});function $s(e,t,s){var a=ge(t),u=Ir(t,a);s==null&&!(ue(t)&&(u.length||!a.length))&&(s=t,t=e,e=this,u=Ir(t,ge(t)));var b=!(ue(s)&&"chain"in s)||!!s.chain,p=Bt(e);return We(u,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var S=this.__chain__;if(b||S){var I=e(this.__wrapped__),D=I.__actions__=De(this.__actions__);return D.push({func:_,args:arguments,thisArg:e}),I.__chain__=S,I}return _.apply(e,Vt([this.value()],arguments))})}),e}function yh(){return xe._===this&&(xe._=Yd),this}function Ms(){}function Ah(e){return e=k(e),W(function(t){return ec(t,e)})}var wh=hs(ce),vh=hs(ya),Th=hs(Ni);function xu(e){return ys(e)?Vi(gt(e)):t5(e)}function Ch(e){return function(t){return e==null?r:cn(e,t)}}var Sh=Ac(),Ih=Ac(!0);function Us(){return[]}function Ns(){return!1}function Dh(){return{}}function Bh(){return""}function Rh(){return!0}function Ph(e,t){if(e=k(e),e<1||e>At)return[];var s=Oe,a=me(e,Oe);t=$(t),e-=Oe;for(var u=ki(a,t);++s<e;)t(s);return u}function Fh(e){return V(e)?ce(e,gt):Ue(e)?[e]:De(Uc(ee(e)))}function Oh(e){var t=++Wd;return ee(e)+t}var Lh=Or(function(e,t){return e+t},0),$h=ps("ceil"),Mh=Or(function(e,t){return e/t},1),Uh=ps("floor");function Nh(e){return e&&e.length?Sr(e,Pe,es):r}function Vh(e,t){return e&&e.length?Sr(e,$(t,2),es):r}function zh(e){return va(e,Pe)}function Gh(e,t){return va(e,$(t,2))}function kh(e){return e&&e.length?Sr(e,Pe,is):r}function Hh(e,t){return e&&e.length?Sr(e,$(t,2),is):r}var Wh=Or(function(e,t){return e*t}
vendor: 4,732 bytes, line 55
55,1),Kh=ps("round"),Yh=Or(function(e,t){return e-t},0);function jh(e){return e&&e.length?Gi(e,Pe):0}function qh(e,t){return e&&e.length?Gi(e,$(t,2)):0}return l.after=Eb,l.ary=qc,l.assign=i2,l.assignIn=uu,l.assignInWith=Yr,l.assignWith=s2,l.at=o2,l.before=Xc,l.bind=Ss,l.bindAll=dh,l.bindKey=Zc,l.castArray=Db,l.chain=Kc,l.chunk=U5,l.compact=N5,l.concat=V5,l.cond=lh,l.conforms=bh,l.constant=Os,l.countBy=j6,l.create=a2,l.curry=Jc,l.curryRight=Qc,l.debounce=eu,l.defaults=c2,l.defaultsDeep=u2,l.defer=xb,l.delay=_b,l.difference=z5,l.differenceBy=G5,l.differenceWith=k5,l.drop=H5,l.dropRight=W5,l.dropRightWhile=K5,l.dropWhile=Y5,l.fill=j5,l.filter=X6,l.flatMap=Q6,l.flatMapDeep=eb,l.flatMapDepth=tb,l.flatten=Gc,l.flattenDeep=q5,l.flattenDepth=X5,l.flip=mb,l.flow=ph,l.flowRight=gh,l.fromPairs=Z5,l.functions=g2,l.functionsIn=E2,l.groupBy=nb,l.initial=Q5,l.intersection=e6,l.intersectionBy=t6,l.intersectionWith=n6,l.invert=_2,l.invertBy=m2,l.invokeMap=ib,l.iteratee=Ls,l.keyBy=sb,l.keys=ge,l.keysIn=Re,l.map=zr,l.mapKeys=A2,l.mapValues=w2,l.matches=Eh,l.matchesProperty=xh,l.memoize=kr,l.merge=v2,l.mergeWith=fu,l.method=_h,l.methodOf=mh,l.mixin=$s,l.negate=Hr,l.nthArg=Ah,l.omit=T2,l.omitBy=C2,l.once=yb,l.orderBy=ob,l.over=wh,l.overArgs=Ab,l.overEvery=vh,l.overSome=Th,l.partial=Is,l.partialRight=tu,l.partition=ab,l.pick=S2,l.pickBy=du,l.property=xu,l.propertyOf=Ch,l.pull=o6,l.pullAll=Hc,l.pullAllBy=a6,l.pullAllWith=c6,l.pullAt=u6,l.range=Sh,l.rangeRight=Ih,l.rearg=wb,l.reject=fb,l.remove=f6,l.rest=vb,l.reverse=Ts,l.sampleSize=lb,l.set=D2,l.setWith=B2,l.shuffle=bb,l.slice=d6,l.sortBy=gb,l.sortedUniq=x6,l.sortedUniqBy=_6,l.split=Q2,l.spread=Tb,l.tail=m6,l.take=y6,l.takeRight=A6,l.takeRightWhile=w6,l.takeWhile=v6,l.tap=N6,l.throttle=Cb,l.thru=Vr,l.toArray=ou,l.toPairs=lu,l.toPairsIn=bu,l.toPath=Fh,l.toPlainObject=cu,l.transform=R2,l.unary=Sb,l.union=T6,l.unionBy=C6,l.unionWith=S6,l.uniq=I6,l.uniqBy=D6,l.uniqWith=B6,l.unset=P2,l.unzip=Cs,l.unzipWith=Wc,l.update=F2,l.updateWith=O2,l.values=On,l.valuesIn=L2,l.without=R6,l.words=gu,l.wrap=Ib,l.xor=P6,l.xorBy=F6,l.xorWith=O6,l.zip=L6,l.zipObject=$6,l.zipObjectDeep=M6,l.zipWith=U6,l.entries=lu,l.entriesIn=bu,l.extend=uu,l.extendWith=Yr,$s(l,l),l.add=Lh,l.attempt=Eu,l.camelCase=N2,l.capitalize=hu,l.ceil=$h,l.clamp=$2,l.clone=Bb,l.cloneDeep=Pb,l.cloneDeepWith=Fb,l.cloneWith=Rb,l.conformsTo=Ob,l.deburr=pu,l.defaultTo=hh,l.divide=Mh,l.endsWith=V2,l.eq=at,l.escape=z2,l.escapeRegExp=G2,l.every=q6,l.find=Z6,l.findIndex=Vc,l.findKey=f2,l.findLast=J6,l.findLastIndex=zc,l.findLastKey=d2,l.floor=Uh,l.forEach=Yc,l.forEachRight=jc,l.forIn=l2,l.forInRight=b2,l.forOwn=h2,l.forOwnRight=p2,l.get=Rs,l.gt=Lb,l.gte=$b,l.has=x2,l.hasIn=Ps,l.head=kc,l.identity=Pe,l.includes=rb,l.indexOf=J5,l.inRange=M2,l.invoke=y2,l.isArguments=dn,l.isArray=V,l.isArrayBuffer=Mb,l.isArrayLike=Be,l.isArrayLikeObject=de,l.isBoolean=Ub,l.isBuffer=Yt,l.isDate=Nb,l.isElement=Vb,l.isEmpty=zb,l.isEqual=Gb,l.isEqualWith=kb,l.isError=Ds,l.isFinite=Hb,l.isFunction=Bt,l.isInteger=nu,l.isLength=Wr,l.isMap=ru,l.isMatch=Wb,l.isMatchWith=Kb,l.isNaN=Yb,l.isNative=jb,l.isNil=Xb,l.isNull=qb,l.isNumber=iu,l.isObject=ue,l.isObjectLike=fe,l.isPlainObject=E0,l.isRegExp=Bs,l.isSafeInteger=Zb,l.isSet=su,l.isString=Kr,l.isSymbol=Ue,l.isTypedArray=Fn,l.isUndefined=Jb,l.isWeakMap=Qb,l.isWeakSet=e2,l.join=r6,l.kebabCase=k2,l.last=Xe,l.lastIndexOf=i6,l.lowerCase=H2,l.lowerFirst=W2,l.lt=t2,l.lte=n2,l.max=Nh,l.maxBy=Vh,l.mean=zh,l.meanBy=Gh,l.min=kh,l.minBy=Hh,l.stubArray=Us,l.stubFalse=Ns,l.stubObject=Dh,l.stubString=Bh,l.stubTrue=Rh,l.multiply=Wh,l.nth=s6,l.noConflict=yh,l.noop=Ms,l.now=Gr,l.pad=K2,l.padEnd=Y2,l.padStart=j2,l.parseInt=q2,l.random=U2,l.reduce=cb,l.reduceRight=ub,l.repeat=X2,l.replace=Z2,l.result=I2,l.round=Kh,l.runInContext=x,l.sample=db,l.size=hb,l.snakeCase=J2,l.some=pb,l.sortedIndex=l6,l.sortedIndexBy=b6,l.sortedIndexOf=h6,l.sortedLastIndex=p6,l.sortedLastIndexBy=g6,l.sortedLastIndexOf=E6,l.startCase=eh,l.startsWith=th,l.subtract=Yh,l.sum=jh,l.sumBy=qh,l.template=nh,l.times=Ph,l.toFinite=Rt,l.toInteger=k,l.toLength=au,l.toLower=rh,l.toNumber=Ze,l.toSafeInteger=r2,l.toString=ee,l.toUpper=ih,l.trim=sh,l.trimEnd=oh,l.trimStart=ah,l.truncate=ch,l.unescape=uh,l.uniqueId=Oh,l.upperCase=fh,l.upperFirst=Fs,l.each=Yc,l.eachRight=jc,l.first=kc,$s(l,(function(){var e={};return ht(l,function(t,s){ne.call(l.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),l.VERSION=o,We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),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__=me(s,a.__takeCount__):a.__views__.push({size:me(s,Oe),t
55ype: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==yt;q.prototype[e]=function(u){var b=this.clone();return b.__iteratees__.push({iteratee:$(u,3),type:s}),b.__filtered__=b.__filtered__||a,b}}),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(Pe)},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 d0(s,e,t)})}),q.prototype.reject=function(e){return this.filter(Hr($(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(Oe)},ht(q.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),u=l[a?"take"+(t=="last"?"Right":""):t],b=a||/^find/.test(t);u&&(l.prototype[t]=function(){var p=this.__wrapped__,g=a?[1]:arguments,_=p instanceof q,S=g[0],I=_||V(p),D=function(Y){var X=u.apply(l,Vt([Y],g));return a&&R?X[0]:X};I&&s&&typeof S=="function"&&S.length!=1&&(_=I=!1);var R=this.__chain__,O=!!this.__actions__.length,M=b&&!R,H=_&&!O;if(!b&&I){p=H?p:new q(this);var U=e.apply(p,g);return U.__actions__.push({func:Vr,args:[D],thisArg:r}),new Ye(U,R)}return M&&H?e.apply(this,g):(U=this.thru(D),M?a?U.value()[0]:U.value():U)})}),We(["pop","push","shift","sort","splice","unshift"],function(e){var t=lr[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var u=arguments;if(a&&!this.__chain__){var b=this.value();return t.apply(V(b)?b:[],u)}return this[s](function(p){return t.apply(V(p)?p:[],u)})}}),ht(q.prototype,function(e,t){var s=l[t];if(s){var a=s.name+"";ne.call(In,a)||(In[a]=[]),In[a].push({name:t,func:s})}}),In[Fr(r,j).name]=[{name:"wrapper",func:r}],q.prototype.clone=ul,q.prototype.reverse=fl,q.prototype.value=dl,l.prototype.at=V6,l.prototype.chain=z6,l.prototype.commit=G6,l.prototype.next=k6,l.prototype.plant=W6,l.prototype.reverse=K6,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Y6,l.prototype.first=l.prototype.head,i0&&(l.prototype[i0]=H6),l}),Tn=Gd();nn?((nn.exports=Tn)._=Tn,Li._=Tn):xe._=Tn}).call(i9)})(v0,v0.exports)),v0.exports}var Uo=s9();const po=256;let Jr=po,Qr;function t1(n=11){if(!Qr||Jr+n>po*2){Qr="",Jr=0;for(let i=0;i<po;i++)Qr+=(256+Math.random()*256|0).toString(16).substring(1)}return Qr.substring(Jr,Jr+++n)}function o9(n){const{batch:i,chain:r,ccipRead:o,key:c="base",name:f="Base Client",type:d="base"}=n,h=n.experimental_blockTag??(typeof r?.experimental_preconfirmationTime=="number"?"pending":void 0),E=r?.blockTime??12e3,m=Math.min(Math.max(Math.floor(E/2),500),4e3),w=n.pollingInterval??m,T=n.cacheTime??w,A=n.account?bi(n.account):void 0,{config:C,request:F,value:z}=n.transport({chain:r,pollingInterval:w}),Z={...C,...z},j={account:A,batch:i,cacheTime:T,ccipRead:o,chain:r,key:c,name:f,pollingInterval:w,request:F,transport:Z,type:d,uid:t1(),...h?{experimental_blockTag:h}:{}};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:d,type:h},E){const m=t1();return{config:{key:n,methods:i,name:r,request:o,retryCount:c,retryDelay:f,timeout:d,type:h},request:Y4(o,{methods:i,retryCount:c,retryDelay:f,uid:m}),value:E}}class a9 extends B{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:d,name:h="HTTP JSON-RPC",onFetchRequest:E,onFetchResponse:m,retryDelay:w,raw:T}=i;return({chain:A,retryCount:C,timeout:F})=>{const{batchSize:z=1e3,wait:Z=0}=typeof r=="object"?r:{},j=i.retryCount??C,K=F??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:m,timeout:K});
55return No({key:f,methods:d,name:h,async request({method:J,params:oe}){const ae={method:J,params:oe},{schedule:Ie}=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?Ie(we):[await te.request({body:we})],[{error:ft,result:dt}]=await tt(ae);if(T)return{error:ft,result:dt};if(ft)throw new Lo({body:ae,error:ft,url:G});return dt},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?xt(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?xt(n.mint):void 0,i.sourceHash=n.sourceHash,i.type="deposit"),i}}),transactionReceipt:Z4({format(n){return{l1GasPrice:n.l1GasPrice?xt(n.l1GasPrice):null,l1GasUsed:n.l1GasUsed?xt(n.l1GasUsed):null,l1Fee:n.l1Fee?xt(n.l1Fee):null,l1FeeScalar:n.l1FeeScalar?Number(n.l1FeeScalar):null}}})};function r1(n,i){return d9(n)?f9(n):M4(n,i)}const u9={transaction:r1};function f9(n){l9(n);const{sourceHash:i,data:r,from:o,gas:c,isSystemTx:f,mint:d,to:h,value:E}=n,m=[i,o,h??"0x",d?Je(d):"0x",E?Je(E):"0x",c?Je(c):"0x",f?"0x1":"0x",r??"0x"];return Mt(["0x7e",en(m)])}function d9(n){return n.type==="deposit"||typeof n.sourceHash<"u"}function l9(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 be={blockTime:2e3,contracts:n1,formatters:c9,serializers:u9},m0=1,i1=Ge({...be,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...be.contracts,disputeGameFactory:{[m0]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[m0]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[m0]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[m0]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:m0});({...i1});const b9={estimateFeesPerGas:async n=>{if(!n.request?.feeCurrency)return null;const[i,r]=await Promise.all([h9(n.client,n.request.feeCurrency),p9(n.client,n.request.feeCurrency)]);return{maxFeePerGas:n.multiply(i-r)+r,maxPriorityFeePerGas:r}}};async function h9(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 T0(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)&&T0(n.feeCurrency)}const E9={block:jf({format(n){return{transactions:n.transactions?.map(r=>typeof r=="string"?r:{...pi(r),...r.gatewayFee?{gatewayFee:xt(r.gatewayFee),gatewayFeeRecipient:r.gatewayFeeRecipient}:{},feeCurrency:r.feeCurrency})}}}),transaction:Yf({format(n){if(n.type==="0x7e")return{isSystemTx:n.isSystemTx,mint:n.mint?xt(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?xt(n.gatewayFee):null,i.gatewayFeeRecipient=n.gatewayFeeRecipient),i}}),transactionRequest:Q3({format(n){const i={};
55return n.feeCurrency&&(i.feeCurrency=n.feeCurrency),o1(n)&&(i.type="0x7b"),i}})};function x9(n,i){return o1(n)?m9(n,i):r1(n,i)}const _9={transaction:x9};function m9(n,i){A9(n);const{chainId:r,gas:o,nonce:c,to:f,value:d,maxFeePerGas:h,maxPriorityFeePerGas:E,accessList:m,feeCurrency:w,data:T}=n,A=[Je(r),c?Je(c):"0x",E?Je(E):"0x",h?Je(h):"0x",o?Je(o):"0x",f??"0x",d?Je(d):"0x",T??"0x",tr(m),w,...Yn(n,i)];return Mt(["0x7b",en(A)])}const y9=er;function A9(n){const{chainId:i,maxPriorityFeePerGas:r,gasPrice:o,maxFeePerGas:c,to:f,feeCurrency:d}=n;if(i<=0)throw new Q0({chainId:i});if(f&&!Ae(f))throw new Qe({address:f});if(o)throw new B("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(T0(c)&&c>y9)throw new Qt({maxFeePerGas:c});if(T0(r)&&T0(c)&&r>c)throw new kn({maxFeePerGas:c,maxPriorityFeePerGas:r});if(T0(d)&&!Ae(d))throw new B("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(s1(d))throw new B("`feeCurrency` must be provided for CIP-64 transactions.")}const w9={blockTime:1e3,contracts:n1,formatters:E9,serializers:_9,fees:b9},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({...be,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:{...be.contracts,l2OutputOracle:{[ei]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[ei]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[ei]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:ei}),ti=1,C9=Ge({...be,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"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},...be.contracts,disputeGameFactory:{[ti]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[ti]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[ti]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:ti}),ni=1,S9=Ge({...be,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:{...be.contracts,multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[ni]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[ni]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[ni]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:ni}),I9=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,D9=Ge({...be,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:{...be.contracts,l2OutputOracle:{[ri]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}
55,portal:{[ri]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[ri]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:ri}),ii=1,B9=Ge({...be,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:{...be.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[ii]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[ii]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[ii]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:ii}),y0=1,R9=Ge({...be,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:{...be.contracts,disputeGameFactory:{[y0]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[y0]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[y0]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[y0]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:y0}),A0=1,P9=Ge({...be,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:{...be.contracts,disputeGameFactory:{[A0]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[A0]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[A0]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[A0]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:A0}),w0=1,F9=Ge({...be,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"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:{...be.contracts,disputeGameFactory:{[w0]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[w0]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[w0]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[w0]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:w0}),si=1,O9=Ge({...be,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:{...be.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,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:"0x1ef035205f94c7734827961c438474d089a334a0",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,8453:0x1f4a5e3112AE53cA2864c89d5C0AEf85282b4C62,8453:0xe210B7e5bcAddd50cf0E5A20a3Fb956f35085611,8453:0xbBe3491582DD226bB35C6bC14AfB825941390f45,8453:0x9a7e46Dd197e8833e10CEA9c2Cf8967f4cad7279,8453:0x92B8c276cc7f9C7FE7Bd5D8180BCe26Ea8ded53A,8453:0x17e1bEB2cD65493Da73ed4BbbC7BEcAAa0F91C73,8453:0xD04b3D91f370Cd080cB4e809C22DB0f5F9882173,8453:0x650cc267AA248191978013d5Ae421e5Dc2A6e242,8453:0x2C0009a907d2616740D1F5db90CA9Dfe8e3Cbc20,8453:0xAdeCCF7f9738
550f24c0590EA78aE6717c7DF29fc8,8453:0x51642769e591Fe72275219750E0FB469adD35441,8453:0xe42Cbc27fBe686340DA23dF13195dB0E410Ee935,8453:0x38aBBA8bABA53b9FB82419f8FFB5c7791c9047bc,8453:0xDFbE5887d9CCc48a4B491D0DF6D0fB5b2235F0cC,8453:0x4506545bFaf122F4A035af51C462125900951179,8453:0xceCB091bDA2e31DB239fE7FDb9eDFfD2c9D9fB05,8453:0x1914226EddA7E7970949c7e1c8f491F13cae2468,8453:0xD10042824199f7B04a764e11659eC810618970e8,8453:0x821b8671e0F3512F412Cc3c380F957320f184D13",VITE_STOCK_TOKENS:"8453:0xb20000000000000000000078ee7ce2fE4908108C,8453:0xb2000000000000000000008bC8786B856E61707C,8453:0xb200000000000000000000C2e324d24d7eEcd1fb,8453:0xb2000000000000000000002D0BA3164cc74f58B7,8453:0xCEF8Db49E456f872E288E1C042F916E9ceD7c781,8453:0x78c31580c97101694C70022c83D570150c11e935,8453:0xb200000000000000000000d9192b6B456483C2E8,8453:0xB200000000000000000000Ab99cFa739E253872B,8453:0xb2000000000000000000004884b426556b92883d,8453:0xb200000000000000000000397293Cb8cda9a10c5,8453:0xb2000000000000000000007b9fcbd005511aCBd5,8453:0xb2000000000000000000001e800a7f5189430cD0,8453:0xB200000000000000000000Fc737aeA6196aB5a4c,8453:0xb200000000000000000000428E3a3eebBb20692B,8453:0xb2000000000000000000007790ed6E48e06eD935,8453:0xb2000000000000000000002601C5C94F435da168,8453:0xB200000000000000000000f1a0F91e34892E4718,8453:0xb200000000000000000000Fd2f87532B90095211,8453:0xb20000000000000000000058B8c947e44011dFE6,8453:0xb2000000000000000000007d16372840dF4dAbbe,8453:0xb20000000000000000000066242d4067724cB7A1,8453:0xB200000000000000000000f720C26062Bc3067Da,8453:0xB2000000000000000000005bd7AE89b9E6189Bb5,8453:0xb200000000000000000000CA425ab42e07C35bC3,8453:0xb200000000000000000000347AFbA223D7B6b63C,8453:0xB200000000000000000000eC3c4c7395Cc609813,8453:0xB200000000000000000000e215e9B76ecBA02468,8453:0xB20000000000000000000043a599976181Bcf336,8453:0xb20000000000000000000016f9dfe862feBA122b,8453:0xB200000000000000000000B1a29cF17A1819288a,8453:0xB2000000000000000000000d8Ce462E99ee7A47B",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=[R9,B9,S9,D9,T9,C9,P9,F9,O9,v9,i1,I9];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]),d={...o,superchainConfig:f,name:c.toLowerCase()==="op"?"OP Mainnet":c};return H9.includes(o.id)&&(d.blockExplorers={default:{name:"Superscan",url:"https://thesuperscan.io"}}),d});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("="),d=f[0],h=f[1],E=d.split(":")[1];r[E]=h,o.push(d)}),{superchainKeys:o,map:r}}function N9(n){const i={},r=[];return n.split(",").forEach(o=>{const c=o.split("="),f=c[0],d=c[1],h=f.split(":")[1];i[d]=h,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:"0x1ef035205f94c7734827961c438474d089a334a0",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,8453:0x1f4a5e3112AE53cA2864c89d5C0AEf85282b4C62,8453:0xe210B7e5bcAddd50cf0E5A20a3Fb956f35085611,8453:0xbBe3491582DD226bB35C6bC14AfB825941390f45,8453:0x9a7e46Dd197e8833e10CEA9c2Cf8967f4cad7279,8453:0x92B8c276cc7f9C7FE7Bd5D8180BCe26Ea8ded53A,8453:0x17e1bEB2cD65493Da73ed4BbbC7BEcAAa0F91C73,8453:0xD04b3D91f370Cd080cB4e809C22DB0f5F9882173,8453:0x650cc267AA248191978013d5Ae421e5Dc2A6e242,8453:0x2C0009a907d2616740D1F5db90CA9Dfe8e3Cbc20,8453:0xAdeCCF7f9738
550f24c0590EA78aE6717c7DF29fc8,8453:0x51642769e591Fe72275219750E0FB469adD35441,8453:0xe42Cbc27fBe686340DA23dF13195dB0E410Ee935,8453:0x38aBBA8bABA53b9FB82419f8FFB5c7791c9047bc,8453:0xDFbE5887d9CCc48a4B491D0DF6D0fB5b2235F0cC,8453:0x4506545bFaf122F4A035af51C462125900951179,8453:0xceCB091bDA2e31DB239fE7FDb9eDFfD2c9D9fB05,8453:0x1914226EddA7E7970949c7e1c8f491F13cae2468,8453:0xD10042824199f7B04a764e11659eC810618970e8,8453:0x821b8671e0F3512F412Cc3c380F957320f184D13",VITE_STOCK_TOKENS:"8453:0xb20000000000000000000078ee7ce2fE4908108C,8453:0xb2000000000000000000008bC8786B856E61707C,8453:0xb200000000000000000000C2e324d24d7eEcd1fb,8453:0xb2000000000000000000002D0BA3164cc74f58B7,8453:0xCEF8Db49E456f872E288E1C042F916E9ceD7c781,8453:0x78c31580c97101694C70022c83D570150c11e935,8453:0xb200000000000000000000d9192b6B456483C2E8,8453:0xB200000000000000000000Ab99cFa739E253872B,8453:0xb2000000000000000000004884b426556b92883d,8453:0xb200000000000000000000397293Cb8cda9a10c5,8453:0xb2000000000000000000007b9fcbd005511aCBd5,8453:0xb2000000000000000000001e800a7f5189430cD0,8453:0xB200000000000000000000Fc737aeA6196aB5a4c,8453:0xb200000000000000000000428E3a3eebBb20692B,8453:0xb2000000000000000000007790ed6E48e06eD935,8453:0xb2000000000000000000002601C5C94F435da168,8453:0xB200000000000000000000f1a0F91e34892E4718,8453:0xb200000000000000000000Fd2f87532B90095211,8453:0xb20000000000000000000058B8c947e44011dFE6,8453:0xb2000000000000000000007d16372840dF4dAbbe,8453:0xb20000000000000000000066242d4067724cB7A1,8453:0xB200000000000000000000f720C26062Bc3067Da,8453:0xB2000000000000000000005bd7AE89b9E6189Bb5,8453:0xb200000000000000000000CA425ab42e07C35bC3,8453:0xb200000000000000000000347AFbA223D7B6b63C,8453:0xB200000000000000000000eC3c4c7395Cc609813,8453:0xB200000000000000000000e215e9B76ecBA02468,8453:0xB20000000000000000000043a599976181Bcf336,8453:0xb20000000000000000000016f9dfe862feBA122b,8453:0xB200000000000000000000B1a29cF17A1819288a,8453:0xB2000000000000000000000d8Ce462E99ee7A47B",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,8453:0x78c31580c97101694C70022c83D570150c11e935,8453:0xb200000000000000000000d9192b6B456483C2E8,8453:0xB200000000000000000000Ab99cFa739E253872B,8453:0xb2000000000000000000004884b426556b92883d,8453:0xb200000000000000000000397293Cb8cda9a10c5,8453:0xb2000000000000000000007b9fcbd005511aCBd5,8453:0xb2000000000000000000001e800a7f5189430cD0,8453:0xB200000000000000000000Fc737aeA6196aB5a4c,8453:0xb200000000000000000000428E3a3eebBb20692B,8453:0xb2000000000000000000007790ed6E48e06eD935,8453:0xb2000000000000000000002601C5C94F435da168,8453:0xB200000000000000000000f1a0F91e34892E4718,8453:0xb200000000000000000000Fd2f87532B90095211,8453:0xb20000000000000000000058B8c947e44011dFE6,8453:0xb2000000000000000000007d16372840dF4dAbbe,8453:0xb20000000000000000000066242d4067724cB7A1,8453:0xB200000000000000000000f720C26062Bc3067Da,8453:0xB2000000000000000000005bd7AE89b9E6189Bb5,8453:0xb200000000000000000000CA425ab42e07C35bC3,8453:0xb200000000000000000000347AFbA223D7B6b63C,8453:0xB200000000000000000000eC3c4c7395Cc609813,8453:0xB200000000000000000000e215e9B76ecBA02468,8453:0xB20000000000000000000043a599976181Bcf336,8453:0xb20000000000000000000016f9dfe862feBA122b,8453:0xB200000000000000000000B1a29cF17A1819288a,8453:0xB2000000000000000000000d8Ce462E99ee7A47B");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,8453:0x1f4a5e3112AE53cA2864c89d5C0AEf85282b4C62,8453:0xe210B7e5bcAddd50cf0E5A20a3Fb956f35085611,8453:0xbBe3491582DD226bB35C6bC14AfB825941390f45,8453:0x9a7e46Dd197e8833e10CEA9c2Cf8967f4cad7279,8453:0x92B8c276cc7f9C7FE7Bd5D8180BCe26Ea8ded53A,8453:0x17e1bEB2cD65493Da73ed4BbbC7BEcAAa0F91C73,8453:0xD04b3D91f370Cd080cB4e809C22DB0f5F9882173,8453:0x650cc267AA248191978013d5Ae421e5Dc2A6e242,8453:0x2C0009a907d2616740D1F5db90CA9Dfe8e3Cbc20,8453:0xAdeCCF7f9738
550f24c0590EA78aE6717c7DF29fc8,8453:0x51642769e591Fe72275219750E0FB469adD35441,8453:0xe42Cbc27fBe686340DA23dF13195dB0E410Ee935,8453:0x38aBBA8bABA53b9FB82419f8FFB5c7791c9047bc,8453:0xDFbE5887d9CCc48a4B491D0DF6D0fB5b2235F0cC,8453:0x4506545bFaf122F4A035af51C462125900951179,8453:0xceCB091bDA2e31DB239fE7FDb9eDFfD2c9D9fB05,8453:0x1914226EddA7E7970949c7e1c8f491F13cae2468,8453:0xD10042824199f7B04a764e11659eC810618970e8,8453:0x821b8671e0F3512F412Cc3c380F957320f184D13");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[xi]=Ei(tn);JSON.parse(JSON.stringify(xi));const[a1]=Ei(G9);JSON.parse(JSON.stringify(a1));[...xi,...a1];const c1=xi[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(xi),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();"0x1ef035205f94c7734827961c438474d089a334a0".split(",").map(n=>n.toLowerCase().split(":"));function j9(n,i={}){const{key:r="fallback",name:o="Fallback",retryCount:c,retryDelay:f}=i;return(({chain:d,timeout:h,...E})=>{const m=n;let w=()=>{};function T(C,F,z){return"code"in C&&typeof C.code=="number"&&(C.code===zn.code||C.code===pn.code||C.code===5e3||C.code===3&&![z.superchainConfig.sugar].includes(F[0].to))}return No({key:r,name:o,async request({method:C,params:F}){const z=async(Z=0)=>{const j=m[Z]({...E,chain:d,retryCount:0,timeout:h});try{const K=await j.request({method:C,params:F});return w({method:C,params:F,response:K,transport:j,status:"success"}),K}catch(K){if(w({error:K,method:C,params:F,transport:j,status:"error"}),T(K,F,d)||Z===m.length-1)throw K;return z(Z+1)}};return z()},retryCount:c,retryDelay:f,type:"fallback"},{onResponse:C=>w=C,transports:m.map(C=>C({chain:d,retryCount:0}))})})}const q9=(n,i)=>({chain:r,retryCount:o,timeout:c})=>{const f=n.filter(([E,m])=>m!==0).map(([E])=>j9([go(E,i),...n.filter(([m])=>m!==E).map(([m])=>go(m,i))])).map(E=>E(r===void 0?{retryCount:0,timeout:c}:{chain:r,retryCount:0,timeout:c}));let d=0,h=0;return No({key:"loadBalance",name:"Load Balance",request:E=>(h++,h>n[d][1]&&(d++,d===f.length&&(d=0),h=0),f[d].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,d=r?go(r,o):q9(f.rpcs,o);return o9({chain:c,transport:d})}function Z9(n,i=void 0,r){const o=n.reduce((d,h,E)=>{const m=h.chainId;return d[m]||(d[m]=[]),d[m].push({idx:E,item:h}),d},{}),c={};Object.entries(o).map(([d,h])=>{c[Number(d)]=Uo.chunk(h,i||h.length)});const f=Object.entries(c).map(([d,h])=>h.map(E=>r(Number(d),E.map(m=>m.item)).then(m=>m.map((w,T)=>({idx:E[T].idx,result:w})))));return Promise.all(f.flat()).then(d=>d.flat().reduce((h,{idx:E,result:m})=>(h[E]=m,h),[]))}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,d)=>r9(Go(f,d[0].customRpc),{contracts:d}).then(h=>h.map(E=>tg(E,o))));return i&&Un.set(n,c),c}function eg(n){return R4(Go(n.chainId||c1.id),n)}function tg(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:eg});export{sg as A,B,C0 as H,_8 as I,ig as a,rg as b,Mt as c,hf as d,bf as e,Nn as f,Do as g,fi as h,p8 as i,ng as j,E3 as k,Ae as l,Qe as m,Fo as n,Zt as o,_3 as p,s4 as q,Vn as r,B0 as s,Io 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.