1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4939],{73334:function(t){var e;e=function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var s=e[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,i),s.loaded=!0,s.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e,i){let r=i(1),s=i(2),n=[,,,,];function o(){let t=n[0]^n[0]<<11;return n[0]=n[1],n[1]=n[2],n[2]=n[3],n[3]=n[3]^n[3]>>19^t^t>>8,(n[3]>>>0)/2147483648}function a(){return[Math.floor(360*o())/360,(60*o()+40)/100,(o()+o()+o()+o())*25/100]}t.exports=function(t){let e=function(t){if(!t.seed)throw Error("No seed provided");return function(t){for(let t=0;t<n.length;t++)n[t]=0;for(let e=0;e<t.length;e++)n[e%4]=(n[e%4]<<5)-n[e%4]+t.charCodeAt(e)}(t.seed),Object.assign({size:8,scale:16,color:a(),bgcolor:a(),spotcolor:a()},t)}({seed:t.toLowerCase()}),i=function(t){let e=Math.ceil(t/2),i=t-e,r=[];for(let s=0;s<t;s++){let t=[];for(let i=0;i<e;i++)t[i]=Math.floor(2.3*o());let s=t.slice(0,i).reverse();t=t.concat(s);for(let e=0;e<t.length;e++)r.push(t[e])}return r}(e.size),f=Math.sqrt(i.length),u=new r(e.size*e.scale,e.size*e.scale,3);u.color(...s(...e.bgcolor));let l=u.color(...s(...e.color)),h=u.color(...s(...e.spotcolor));for(let t=0;t<i.length;t++){let r=Math.floor(t/f),s=t%f;if(i[t]){let n=1==i[t]?l:h;!function(t,e,i,r,s,n){for(let o=0;o<r;o++)for(let r=0;r<s;r++)t.buffer[t.index(e+o,i+r)]=n}(u,s*e.scale,r*e.scale,e.scale,e.scale,n)}}return`data:image/png;base64,${u.getBase64()}`}},function(t,e){t.exports=function(t,e,i){function r(t,e){for(var i=2;i<arguments.length;i++)for(var r=0;r<arguments[i].length;r++)t[e++]=arguments[i].charAt(r)}function s(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}function n(t){return String.fromCharCode(255&t,t>>8&255)}this.width=t,this.height=e,this.depth=i,this.pix_size=e*(t+1),this.data_size=2+this.pix_size+5*Math.floor((65534+this.pix_size)/65535)+4,this.ihdr_offs=0,this.ihdr_size=25,this.plte_offs=this.ihdr_offs+this.ihdr_size,this.plte_size=8+3*i+4,this.trns_offs=this.plte_offs+this.plte_size,this.trns_size=8+i+4,this.idat_offs=this.trns_offs+this.trns_size,this.idat_size=8+this.data_size+4,this.iend_offs=this.idat_offs+this.idat_size,this.iend_size=12,this.buffer_size=this.iend_offs+this.iend_size,this.buffer=[],this.palette={},this.pindex=0;for(var o,a,f,u=[],l=0;l<this.buffer_size;l++)this.buffer[l]="\0";r(this.buffer,this.ihdr_offs,s(this.ihdr_size-12),"IHDR",s(t),s(e),"\b\x03"),r(this.buffer,this.plte_offs,s(this.plte_size-12),"PLTE"),r(this.buffer,this.trns_offs,s(this.trns_size-12),"tRNS"),r(this.buffer,this.idat_offs,s(this.idat_size-12),"IDAT"),r(this.buffer,this.iend_offs,s(this.iend_size-12),"IEND");var h=30912;h+=31-h%31,r(this.buffer,this.idat_offs+8,String.fromCharCode((o=h)>>8&255,255&o));for(var l=0;(l<<16)-1<this.pix_size;l++)l+65535<this.pix_size?(a=65535,f="\0"):(a=this.pix_size-(l<<16)-l,f="\x01"),r(this.buffer,this.idat_offs+8+2+(l<<16)+(l<<2),f,n(a),n(~a));for(var l=0;l<256;l++){for(var c=l,d=0;d<8;d++)c=1&c?-306674912^c>>1&2147483647:c>>1&2147483647;u[l]=c}this.index=function(t,e){var i=e*(this.width+1)+t+1;return this.idat_offs+8+2+5*Math.floor(i/65535+1)+i},this.color=function(t,e,i,r){var s=(((r=r>=0?r:255)<<8|t)<<8|e)<<8|i;if(void 0===this.palette[s]){if(this.pindex==this.depth)return"\0";var n=this.plte_offs+8+3*this.pindex;this.buffer[n+0]=String.fromCharCode(t),this.buffer[n+1]=String.fromCharCode(e),this.buffer[n+2]=String.fromCharCode(i),this.buffer[this.trns_offs+8+this.pindex]=String.fromCharCode(r),this.palette[s]=String.fromCharCode(this.pindex++)}return this.palette[s]},this.getBase64=function(){var t,e,i,r,s,n,o,a=this.getDump(),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=a.length,l=0,h="";do r=(t=a.charCodeAt(l))>>2,s=(3&t)<<4|(e=a.charCodeAt(l+1))>>4,i=a.charCodeAt(l+2),n=u<l+2?64:(15&e)<<2|i>>6,o=u<l+3?64:63&i,h+=f.charAt(r)+f.charAt(s)+f.charAt(n)+f.charAt(o);while((l+=3)<u);return h},this.getDump=function(){for(var t=1,e=0,i=5552,n=0;n<this.height;n++)for(var o=-1;o<this.width;
1o++)t+=this.buffer[this.index(o,n)].charCodeAt(0),e+=t,0==(i-=1)&&(t%=65521,e%=65521,i=5552);function a(t,e,i){for(var n=-1,o=4;o<i-4;o+=1)n=u[(n^t[e+o].charCodeAt(0))&255]^n>>8&16777215;r(t,e+i-4,s(-1^n))}return t%=65521,e%=65521,r(this.buffer,this.idat_offs+this.idat_size-8,s(e<<16|t)),a(this.buffer,this.ihdr_offs,this.ihdr_size),a(this.buffer,this.plte_offs,this.plte_size),a(this.buffer,this.trns_offs,this.trns_size),a(this.buffer,this.idat_offs,this.idat_size),a(this.buffer,this.iend_offs,this.iend_size),"\x89PNG\r\n\x1a\n"+this.buffer.join("")}}},function(t,e){function i(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}t.exports=function(t,e,r){let s,n,o;if(0==e)s=n=o=r;else{let a=r<.5?r*(1+e):r+e-r*e,f=2*r-a;s=i(f,a,t+1/3),n=i(f,a,t),o=i(f,a,t-1/3)}return[Math.round(255*s),Math.round(255*n),Math.round(255*o),255]}}])},t.exports=e()},49038:function(t,e,i){"use strict";i.d(e,{s:function(){return C}});var r=i(51453),s=i(338),n=i(16395),o=i(1666),a=i(79625),f=i(85705),u=i(7734);function l(t){return"number"==typeof t?t:"wei"===t?0:Math.abs(u.Bd[t])}var h=i(42269),c=i(61384),d=i(18635),p=i(39600),b=i(92644),_=i(71739),g=i(24413),m=i(35428),y=i(69489);async function v(t,e){let{allowFailure:i=!0,batchSize:s,blockNumber:n,blockTag:o,multicallAddress:a,stateOverride:f}=e,u=e.contracts,l=s??("object"==typeof t.batch?.multicall&&t.batch.multicall.batchSize||1024),v=a;if(!v){if(!t.chain)throw Error("client chain not configured. multicallAddress is required.");v=(0,_.L)({blockNumber:n,chain:t.chain,contract:"multicall3"})}let w=[[]],z=0,x=0;for(let t=0;t<u.length;t++){let{abi:e,address:r,args:s,functionName:n}=u[t];try{let t=(0,b.R)({abi:e,args:s,functionName:n});x+=(t.length-2)/2,l>0&&x>l&&w[z].length>
10&&(z++,x=(t.length-2)/2,w[z]=[]),w[z]=[...w[z],{allowFailure:!0,callData:t,target:r}]}catch(o){let t=(0,g.S)(o,{abi:e,address:r,args:s,docsPath:"/docs/contract/multicall",functionName:n});if(!i)throw t;w[z]=[...w[z],{allowFailure:!0,callData:"0x",target:r}]}}let C=await Promise.allSettled(w.map(e=>(0,m.s)(t,y.L,"readContract")({abi:h.F8,address:v,args:[e],blockNumber:n,blockTag:o,functionName:"aggregate3",stateOverride:f}))),S=[];for(let t=0;t<C.length;t++){let e=C[t];if("rejected"===e.status){if(!i)throw e.reason;for(let i=0;i<w[t].length;i++)S.push({status:"failure",error:e.reason,result:void 0});continue}let s=e.value;for(let e=0;e<s.length;e++){let{returnData:n,success:o}=s[e],{callData:a}=w[t][e],{abi:f,address:l,functionName:h,args:d}=u[S.length];try{if("0x"===a)throw new c.wb;if(!o)throw new r.VQ({data:n});let t=(0,p.k)({abi:f,args:d,data:n,functionName:h});S.push(i?{result:t,status:"success"}:t)}catch(e){let t=(0,g.S)(e,{abi:f,address:l,args:d,docsPath:"/docs/contract/multicall",functionName:h});if(!i)throw t;S.push({error:t,result:void 0,status:"failure"})}}}if(S.length!==u.length)throw new d.G("multicall results mismatch");return S}async function w(t,e){let{allowFailure:i=!0,chainId:r,contracts:s,...n}=e,o=t.getClient({chainId:r});return(0,f.s)(o,v,"multicall")({allowFailure:i,contracts:s,...n})}var z=i(41668);async function x(t,e){let{allowFailure:i=!0,blockNumber:s,blockTag:n,...o}=e,a=e.contracts;try{let e={};for(let[i,r]of a.entries()){let s=r.chainId??t.state.chainId;e[s]||(e[s]=[]),e[s]?.push({contract:r,index:i})}let r=(await Promise.all(Object.entries(e).map(([e,r])=>w(t,{...o,allowFailure:i,blockNumber:s,blockTag:n,chainId:Number.parseInt(e),contracts:r.map(({contract:t})=>t)})))).flat(),f=Object.values(e).flatMap(t=>t.map(({index:t})=>t));return r.reduce((t,e,i)=>(t&&(t[f[i]]=e),t),[])}catch(o){if(o instanceof r.uq)throw o;let e=()=>a.map(e=>(0,z.L)(t,{...e,blockNumber:s,blockTag:n}));if(i)return(await Promise.allSettled(e())).map(t=>"fulfilled"===t.status?{result:t.value,status:"success"}:{error:t.reason,result:void 0,status:"failure"});return await Promise.all(e())}}async function C(t,e){let{address:i,blockNumber:u,blockTag:h,chainId:c,token:d,unit:p="ether"}=e;if(d)try{return S(t,{balanceAddress:i,chainId:c,symbolType:"string",tokenAddress:d})}catch(e){if(e instanceof r.uq){let e=await S(t,{balanceAddress:i,chainId:c,symbolType:"bytes32",tokenAddress:d}),r=(0,s.rR)((0,n.f)(e.symbol,{dir:"right"}));return{...e,symbol:r}}throw e}let b=t.getClient({chainId:c}),_=(0,f.s)(b,a.s,"getBalance"),g=await _(u?{address:i,blockNumber:u}:{address:i,blockTag:h}),m=t.chains.find(t=>t.id===c)??b.chain;return{decimals:m.nativeCurrency.decimals,formatted:(0,o.b)(g,l(p)),symbol:m.nativeCurrency.symbol,value:g}}async function S(t,e){let{balanceAddress:i,chainId:r,symbolType:s,tokenAddress:n,unit:a}=e,f={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:s}]}],address:n},[u,h,c]=await x(t,{allowFailure:!1,contracts:[{...f,functionName:"balanceOf",args:[i],chainId:r},{...f,functionName:"decimals",chainId:r},{...f,functionName:"symbol",chainId:r}]}),d=(0,o.b)(u??"0",l(a??h));return{decimals:h,formatted:d,symbol:c,value:u}}},92540:function(t,e,i){"use strict";i.d(e,{OP:function(){return f},if:function(){return n},kq:function(){return o}});var r=i(63583),s=i(8123);function n(t,e){return(0,s.v)(t,e)?t:(0,r.Q$)(t,e)}function o(t){return JSON.stringify(t,(t,e)=>!function(t){if(!a(t))return!1;let e=t.constructor;if(void 0===e)return!0;let i=e.prototype;return!!(a(i)&&i.hasOwnProperty("isPrototypeOf"))}(e)?"bigint"==typeof e?e.toString():e:Object.keys(e).sort().reduce((t,i)=>(t[i]=e[i],t),{}))}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){let{_defaulted:e,behavior:i,gcTime:r,initialData:s,initialDataUpdatedAt:n,maxPages:o,meta:a,networkMode:f,queryFn:u,queryHash:l,queryKey:h,queryKeyHashFn:c,retry:d,retryDelay:p,structuralSharing:b,getPreviousPageParam:_,getNextPageParam:g,initialPageParam:m,_optimisticResults:y,enabled:v,notifyOnChangeProps:w,placeholderData:z,refetchInterval:x,refetchIntervalInBackgroun
1d:C,refetchOnMount:S,refetchOnReconnect:M,refetchOnWindowFocus:A,retryOnMount:O,select:q,staleTime:N,suspense:P,throwOnError:j,config:I,connector:k,query:E,...L}=t;return L}},34843:function(t,e,i){"use strict";i.d(e,{K:function(){return f}});var r=i(49038),s=i(92540),n=i(99688),o=i(58008),a=i(26989);function f(){var t,e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:f,query:u={}}=i,l=(0,a.Z)(i),h=(0,o.x)({config:l}),c=function(t,e={}){return{async queryFn({queryKey:e}){let{address:i,scopeKey:s,...n}=e[1];if(!i)throw Error("address is required");return await (0,r.s)(t,{...n,address:i})??null},queryKey:function(t={}){return["balance",(0,s.OP)(t)]}(e)}}(l,{...i,chainId:null!==(t=i.chainId)&&void 0!==t?t:h}),d=!!(f&&(null===(e=u.enabled)||void 0===e||e));return(0,n.aM)({...u,...c,enabled:d})}},58008:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var r=i(32237),s=i(7653),n=i(26989);function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,n.Z)(t);return(0,s.useSyncExternalStore)(t=>(function(t,e){let{onChange:i}=e;return t.subscribe(t=>t.chainId,i)})(e,{onChange:t}),()=>(0,r.L)(e),()=>(0,r.L)(e))}},99688:function(t,e,i){"use strict";i.d(e,{aM:function(){return n}});var r=i(2560),s=i(92540);function n(t){let e=(0,r.useQuery)({...t,queryKeyHashFn:s.kq});return e.queryKey=t.queryKey,e}}}]);
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.