1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4963],{37836:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,a),!0;case 6:return l.fn.call(l.context,t,r,i,a,o),!0}for(u=1,c=Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var f,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},63858:function(e,t,n){"use strict";var r,i,a,o,s,c,u=n(2265);u&&"object"==typeof u&&"default"in u&&u.default;var l=n(17914),d=new l,f=d.getBrowser(),p=d.getCPU(),h=d.getDevice(),b=d.getEngine(),m=d.getOS(),y=d.getUA(),g={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},w={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},x=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},_=function(e){var t=x();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},E=function(e){return e.type===g.Browser},A=function(e){return e.name===w.Edge},k=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},C=function(){return _("iPad")};h.type,g.SmartTv,h.type,g.Console,h.type,g.Wearable,h.type,g.Embedded,f.name===w.MobileSafari||C(),f.name,w.Chromium;var P=(r=h.type)===g.Mobile||r===g.Tablet||C(),S=(h.type,g.Mobile,h.type===g.Tablet||C(),E(h),E(h),"Android"===m.name),I=(m.name,"iOS"===m.name||C()),T=(f.name,w.Chrome,f.name===w.Firefox),O=(i=f.name)===w.Safari||i===w.MobileSafari;f.name,w.Opera,(a=f.name)===w.InternetExplorer||w.Ie,v(m.version),v(m.name),v(f.version),v(f.major),v(f.name),v(h.vendor),v(h.model),v(b.name),v(b.version),v(y),A(f)||k(y),f.name,w.Yandex,v(h.type,"browser"),(o=x())&&(/iPad|iPhone|iPod/.test(o.platform)||"MacIntel"===o.platform&&o.maxTouchPoints>1)&&window.MSStream,C(),_("iPhone"),_("iPod"),"string"==typeof(c=(s=x())&&s.userAgent&&s.userAgent.toLowerCase())&&/electron/.test(c),k(y),A(f)&&k(y),m.name,m.name,f.name,w.MIUI,f.name,w.SamsungBrowser,t.Dt=S,t.vU=T,t.gn=I,t.tq=P,t.G6=O},17914:function(e,t,n){var r;!function(i,a){"use strict";var o="function",s="undefined",c="object",u="string",l="major",d="model",f="name",p="type",h="vendor",b="version",m="architecture",y="console",g="mobile",w="tablet",v="smarttv",x="wearable",_="embedded",E="Amazon",A="Apple",k="ASUS",C="BlackBerry",P="Browser",S="Chrome",I="Firefox",T="Google",O="Honor",M="Huawei",N="Microsoft",B="Motorola",R="Nvidia",U="OnePlus",F="Opera",$="OPPO",D="Samsung",L="Sharp",j="Sony",z="Xiaomi",W="Zebra",G="Facebook",q="Chromium OS",H="Mac OS",V=" Browser",Z=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===u&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},Q=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(i=0;i<p.length;i++)l=u[++r],typeof(s=p[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||a;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Y(t[n][r],e))return"?"===n?a:n}else if(Y(t[n],e))return"?"===n?a:n;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[f,F+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[f,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[f,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+P],b],[/\bfocus\/([\w\.]+)/i],[b,[f,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI"+V]],[/fxios\/([\w\.-]+)/i],[b,[f,I]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+V],b],[/samsungbrowser\/([\w\.]+)/i],[b,[f,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,G],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.
vendor: 4,239 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,S+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,ee,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",J]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,D],[p,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,D],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,A],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,A],[p,w]],[/(macintosh);/i],[d,[h,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,L],[p,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[h,O],[p,w]],[/honor([-\w ]+)[;\)]/i],[d,[h,O],[p,g]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[h,M],[p,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,M],[p,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[h,z],[p,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[h,z],[p,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,$],[p,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[h,ee,{OnePlus:["304","403","203"],"*":$}],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,B],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,B],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,"LG"],[p,g]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 5,513 bytes, line 1
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[h,"Lenovo"],[p,w]],[/(nokia) (t[12][01])/i],[h,d,[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[p,g],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[h,T],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,T],[p,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,j],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,j],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,U],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,E],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,E],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,C],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,k],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,k],[p,g]],[/(nexus 9)/i],[d,[h,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[h,"TCL"],[p,w]],[/(itel) ((\w+))/i],[[h,J],d,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[h,"Energizer"],[p,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[h,"Cat"],[p,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[h,"Smartfren"],[p,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[p,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[h,"Archos"],[p,w]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[h,"Archos"],[p,g]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,d,[p,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,w]],[/(surface duo)/i],[d,[h,N],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,g]],[/(u304aa)/i],[d,[h,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,w]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,w]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,g]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[h,R],[p,w]],[/(sprint) (\w+)/i],[h,d,[p,g]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,N],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,W],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,W],[p,g]],[/smart-tv.+(samsung)/i],[h,[p,v]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,D],[p,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,v]],[/(apple) ?tv/i],[h,[d,A+" TV"],[p,v]],[/crkey/i],[[d,S+"cast"],[h,T],[p,v]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,E],[p,v]],[/(shield \w+ tv)/i],[d,[h,R],[p,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,L],[p,v]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,j],[p,v]],[/(mi(tv|box)-?\w+) bui/i],[d,[h,z],[p,v]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,X],[d,X],[p,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[p,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,y]],[/droid.+; (shield)( bui|\))/i],[d,[h,R],[p,y]],[/(playstation \w+)/i],[d,[h,j],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,N],[p,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[h,D],[p,x]],[/((pebble))app/i,/(asu
vendor: 4,965 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,d,[p,x]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[h,$],[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,A],[p,x]],[/(opwwe\d{3})/i],[d,[h,U],[p,x]],[/(moto 360)/i],[d,[h,B],[p,x]],[/(smartwatch 3)/i],[d,[h,j],[p,x]],[/(g watch r)/i],[d,[h,"LG"],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,W],[p,x]],[/droid.+; (glass) \d/i],[d,[h,T],[p,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,d,[p,x]],[/; (quest( \d| pro)?)/i],[d,[h,G],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,_]],[/(aeobc)\b/i],[d,[h,E],[p,_]],[/(homepod).+mac os/i],[d,[h,A],[p,_]],[/windows iot/i],[[p,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[b,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,ee,et],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,H],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],b],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,b],[/\(bb(10);/i],[b,[f,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,q],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},er=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof er))return new er(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:a,v=t?Z(en,t):en,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=a,t[b]=a,Q.call(t,r,v.browser),t[l]=typeof(e=t[b])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:a,x&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=a,Q.call(e,r,v.cpu),e},this.getDevice=function(){var e={};return e[h]=a,e[d]=a,e[p]=a,Q.call(e,r,v.device),x&&!e[p]&&y&&y.mobile&&(e[p]=g),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[f]=a,e[b]=a,Q.call(e,r,v.engine),e},this.getOS=function(){var e={};return e[f]=a,e[b]=a,Q.call(e,r,v.os),x&&!e[f]&&y&&y.platform&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,q).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?X(e,500):e,this},this.setUA(r),this};er.VERSION="1.0.41",er.BROWSER=K([f,b,l]),er.CPU=K([m]),er.DEVICE=K([d,h,p,y,g,v,w,x,_]),er.ENGINE=er.OS=K([f,b]),typeof t!==s?(e.exp
1orts&&(t=e.exports=er),t.UAParser=er):n.amdO?a!==(r=(function(){return er}).call(t,n,t,e))&&(e.exports=r):typeof i!==s&&(i.UAParser=er);var ei=typeof i!==s&&(i.jQuery||i.Zepto);if(ei&&!ei.ua){var ea=new er;ei.ua=ea.getResult(),ei.ua.get=function(){return ea.getUA()},ei.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var n in t)ei.ua[n]=t[n]}}}("object"==typeof window?window:this)},75390:function(e,t,n){"use strict";n.d(t,{$p:function(){return d},EP:function(){return f},FL:function(){return l},Fn:function(){return g},IH:function(){return m},Iq:function(){return s},NI:function(){return o},Ou:function(){return u},SD:function(){return h},Vl:function(){return a},Xb:function(){return w},ac:function(){return y},gm:function(){return p},m_:function(){return c},mk:function(){return b},pp:function(){return _},u8:function(){return v},zP:function(){return x}});let r=BigInt(4294967296-1),i=BigInt(32);function a(e,t=!1){let n=e.length,a=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){let{h:n,l:c}=function(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}(e[s],t);[a[s],o[s]]=[n,c]}return[a,o]}let o=(e,t,n)=>e>>>n,s=(e,t,n)=>e<<32-n|t>>>n,c=(e,t,n)=>e>>>n|t<<32-n,u=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n,f=(e,t,n)=>e<<n|t>>>32-n,p=(e,t,n)=>t<<n|e>>>32-n,h=(e,t,n)=>t<<n-32|e>>>64-n,b=(e,t,n)=>e<<n-32|t>>>64-n;function m(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}}let y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),g=(e,t,n,r)=>t+n+r+(e/4294967296|0)|0,w=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),v=(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0,x=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),_=(e,t,n,r,i,a)=>t+n+r+i+a+(e/4294967296|0)|0},93557:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(68104);class i extends r.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.z3)(e);let n=(0,r.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,a=new Uint8Array(i);a.set(n.length>i?e.create().update(n).digest():n);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,r.ru)(a)}update(e){return(0,r.$h)(this),this.iHash.update(e),this}digestInto(e){(0,r.$h)(this),(0,r.gk)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let a=(e,t,n)=>new i(e,t).update(n).digest();a.create=(e,t)=>new i(e,t)},90733:function(e,t,n){"use strict";n.d(t,{JQ:function(){return d}});var r=n(68104);class i extends r.kb{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.GL)(this.buffer)}update(e){(0,r.$h)(this),e=(0,r.O0)(e),(0,r.gk)(e);let{view:t,buffer:n,blockLen:i}=this,a=e.length;for(let o=0;o<a;){let s=Math.min(i-this.pos,a-o);if(s===i){let t=(0,r.GL)(e);for(;i<=a-o;o+=i)this.process(t,o);continue}n.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.$h)(this),(0,r.eB)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:i,isLE:a}=this,{pos:o}=this;t[o++]=128,(0,r.ru)(this.buffer.subarray(o)),this.padOffset>i-o&&(this.process(n,0),o=0);for(let e=o;e<i;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,i-8,BigInt(8*this.length),a),this.process(n,0);let s=(0,r.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)s.setUint32(4*e,l[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}let a=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var o=n(75390);let s=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,2756
vendor: 2,085 bytes, line 1
1734187,3204031479,3329325298]),c=new Uint32Array(64);class u extends i{constructor(e=32){super(64,e,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],n=c[e-2],i=(0,r.np)(t,7)^(0,r.np)(t,18)^t>>>3,a=(0,r.np)(n,17)^(0,r.np)(n,19)^n>>>10;c[e]=a+c[e-7]+i+c[e-16]|0}let{A:n,B:i,C:a,D:o,E:u,F:l,G:d,H:f}=this;for(let e=0;e<64;e++){var p,h,b,m;let t=f+((0,r.np)(u,6)^(0,r.np)(u,11)^(0,r.np)(u,25))+((p=u)&l^~p&d)+s[e]+c[e]|0,y=((0,r.np)(n,2)^(0,r.np)(n,13)^(0,r.np)(n,22))+((h=n)&(b=i)^h&(m=a)^b&m)|0;f=d,d=l,l=u,u=o+t|0,o=a,a=i,i=n,n=t+y|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,o=o+this.D|0,u=u+this.E|0,l=l+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(n,i,a,o,u,l,d,f)}roundClean(){(0,r.ru)(c)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.ru)(this.buffer)}}let l=o.Vl(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e)));l[0],l[1];let d=(0,r.V1)(()=>new u)},65530:function(e,t,n){"use strict";n.d(t,{JQ:function(){return r}});let r=n(90733).JQ},35743:function(e,t,n){"use strict";n.d(t,{fr:function(){return v}});var r=n(75390),i=n(68104);let a=BigInt(0),o=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),d=[],f=[],p=[];for(let e=0,t=o,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],d.push(2*(5*r+n)),f.push((e+1)*(e+2)/2%64);let i=a;for(let e=0;e<7;e++)(t=(t<<o^(t>>c)*l)%u)&s&&(i^=o<<(o<<BigInt(e))-o);p.push(i)}let h=(0,r.Vl)(p,!0),b=h[0],m=h[1],y=(e,t,n)=>n>32?(0,r.SD)(e,t,n):(0,r.EP)(e,t,n),g=(e,t,n)=>n>32?(0,r.mk)(e,t,n):(0,r.gm)(e,t,n);class w extends i.kb{constructor(e,t,n,r=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=a,(0,i.k8)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.Jq)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.Ux)(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],o=n[i+1],s=y(a,o,1)^n[r],c=g(a,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=f[n],a=y(t,i,r),o=g(t,i,r),s=d[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=m[r]}(0,i.ru)(n)}(this.state32,this.rounds),(0,i.Ux)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.$h)(this),e=(0,i.O0)(e),(0,i.gk)(e);let{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){let a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.$h)(this,!1),(0,i.gk)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.k8)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.eB)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.ru)(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new w(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}let v=(0,i.V1)(()=>new w(136,1,32))},68104:function(e,t,n){"use strict";n.d(t,{kb:function(){return E},gk:function(){return o},$h:function(){return c},z3:function(){return s},k8:function(){return a},eB:function(){return u},ci:function(){return y},ru:function(){return d},eV:function(){return _},V1:function(){return A},GL:function(){return f},nr:function(){return v},_t:function(){return i},O6:function(){return k},np:function(){return p},Ux:function(){return h},O0:function(){return x},Jq:function(){return l}});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");a(e.outputLen),a(e.blockLen)}function c(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function u(e,t){o(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function d(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function f(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function p(e,t){return e<<32-t|e>>>t}let h=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}return e},b="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e){if(o(e),b)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}let g={_0:48,_9:57,A:65,F:70,a:97,f:102};function w(e){return e>=g._0&&e<=g._9?e-g._0:e>=g.A&&e<=g.F?e-(g.A-10):e>=g.a&&e<=g.f?e-(g.a-10):void 0}function v(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(b)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=w(e.charCodeAt(i)),a=w(e.charCodeAt(i+1));if(void 0===n||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);r[t]=16*n+a}return r}function x(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),o(e),e}function _(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];o(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}class E{}function A(e){let t=t=>e().update(x(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function k(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},90626:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(520);let i=e=>e.map(e=>{if(e.rpcUrls.privyWalletOverride)return e;let t=r.B.find(t=>
1t.id===e.id),n=t?.rpcUrls.privy?.http[0];return n?{...e,rpcUrls:{...e.rpcUrls,privy:{http:[n]}}}:e})},520:function(e,t,n){"use strict";n.d(t,{B:function(){return g},e:function(){return w}});var r=n(85470),i=n(8891),a=n(1229),o=n(93352),s=n(26072),c=n(3265),u=n(48744),l=n(71683),d=n(21207),f=n(23561),p=n(38795),h=n(7455),b=n(93784),m=n(16914),y=n(88253);let g=[d.R,m.F,{id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}},r.y,i.Z,f.v,p.O,h.y,b.v,u.D,{id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0},{id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}},{id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}},s.u,c.L,{id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0},{id:56,network:"bsc",name:"Binance Smart Chain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{privy:{http:["https://bsc-mainnet.rpc.privy.systems"]},default:{http:["https://56.rpc.thirdweb.com"]},public:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}}},{id:43419,name:"Gunz Mainnet",network:"gunz",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{privy:{http:["https://gunz-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]},public:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io"}}},{id:13371,name:"Immutable zkEVM",network:"immutable-zkevm",nativeCurrency:{name:"Immutable Coin",symbol:"IMX",decimals:18},rpcUrls:{privy:{http:["https://immutable-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.immutable.com"]},public:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com"}}},{id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}},l.P,{id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0},a.p,o.c,{id:1868,name:"Soneium Mainnet",network:"soneium",nativeCurrency:{name:"Ether",symbol
1:"ETH",decimals:18},rpcUrls:{privy:{http:["https://soneium-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.soneium.org"]},public:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com"}}},{id:130,name:"Unichain",network:"unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://unichain-mainnet.rpc.privy.systems"]},default:{http:["https://mainnet.unichain.org"]},public:{http:["https://mainnet.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz"}}},y.l,{id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0},{id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0},{id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}},{id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}}],w=new Set(g.map(e=>e.id))},85470:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}}},8891:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]}
1,default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0}},1229:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}}},93352:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});let r={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0}},26072:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});let r={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}}},3265:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0}},48744:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});let r={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1}},71683:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1}},21207:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}}},76470:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});let r={id:143,name:"Monad",network:"monad",nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{privy:{http:["https://monad-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.monad.xyz"]},public:{http:["https://rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monadscan",url:"https://mainnet-beta.monvision.io"}}}},23561:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});let r={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol
1:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}}},38795:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r={id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0}},7455:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}}},93784:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});let r={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0}},16914:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});let r={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0}},88253:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});let r={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{privy:{http:["https://zora-mainnet.rpc.privy.systems"]},default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}}},87201:function(e,t,n){"use strict";var r;n.d(t,{C5:function(){return c},M9:function(){return s},AY:function(){return o},M_:function(){return u},YS:function(){return l}});let i=["error","invalid_request_arguments","wallet_not_on_device","invalid_recovery_pin","insufficient_funds","mfa_timeout","missing_or_invalid_mfa","mfa_verification_max_attempts_reached"];(r={}).MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",r.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",r.INVALID_DATA="invalid_data",r.LINKED_TO_ANOTHER_USER="linked_to_another_user",r.ALLOWLIST_REJECTED="allowlist_rejected",r.OAUTH_USER_DENIED="oauth_user_denied",r.UNKNOWN_AUTH_ERROR="unknown_auth_error",r.USER_EXITED_AUTH_FLOW="exited_auth_flow",r.MUST_BE_AUTHENTICATED="must_be_authenticated",r.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",r.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",r.CLIENT_REQUEST_TIMEOUT="client_request_timeout",r.INVALID_CREDENTIALS="invalid_credentials";
1class a extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,n){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=n}}class o extends Error{constructor(e,t){super(t),this.type=e}}class s extends a{constructor(e,t,n){super(e,t,n),this.type="connector_error"}}class c extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n}}let u={UNKNOWN_ERROR:{eipCode:0,message:"Unknown error",detail:"Unknown error",retryable:!0},E4001_DEFAULT_USER_REJECTED_REQUEST:{eipCode:4001,message:"User Rejected Request",detail:"The user rejected the request.",default:!0,retryable:!0},E4100_DEFAULT_UNAUTHORIZED:{eipCode:4100,message:"Unauthorized",detail:"The requested method and/or account has not been authorized by the user.",default:!0,retryable:!1},E4200_DEFAULT_UNSUPPORTED_METHOD:{eipCode:4200,message:"Unsupported Method",detail:"The Provider does not support the requested method.",default:!0,retryable:!1},E4900_DEFAULT_DISCONNECTED:{eipCode:4900,message:"Disconnected",detail:"The Provider is disconnected from all chains.",default:!0,retryable:!0},E4901_DEFAULT_CHAIN_DISCONNECTED:{eipCode:4901,message:"Chain Disconnected",detail:"The Provider is not connected to the requested chain.",default:!0,retryable:!0},E32700_DEFAULT_PARSE_ERROR:{eipCode:-32700,message:"Parse error",detail:"Invalid JSON",default:!0,retryable:!1},E32600_DEFAULT_INVALID_REQUEST:{eipCode:-32600,message:"Invalid request",detail:"JSON is not a valid request object",default:!0,retryable:!1},E32601_DEFAULT_METHOD_NOT_FOUND:{eipCode:-32601,message:"Method not found",detail:"Method does not exist",default:!0,retryable:!1},E32602_DEFAULT_INVALID_PARAMS:{eipCode:-32602,message:"Invalid params",detail:"Invalid method parameters",default:!0,retryable:!1},E32603_DEFAULT_INTERNAL_ERROR:{eipCode:-32603,message:"Internal error",detail:"Internal JSON-RPC error",default:!0,retryable:!0},E32000_DEFAULT_INVALID_INPUT:{eipCode:-32e3,message:"Invalid input",detail:"Missing or invalid parameters",default:!0,retryable:!1},E32001_DEFAULT_RESOURCE_NOT_FOUND:{eipCode:-32001,message:"Resource not found",detail:"Requested resource not found",default:!0,retryable:!1},E32002_DEFAULT_RESOURCE_UNAVAILABLE:{eipCode:-32002,message:"Resource unavailable",detail:"Requested resource not available",default:!0,retryable:!0},E32003_DEFAULT_TRANSACTION_REJECTED:{eipCode:-32003,message:"Transaction rejected",detail:"Transaction creation failed",default:!0,retryable:!0},E32004_DEFAULT_METHOD_NOT_SUPPORTED:{eipCode:-32004,message:"Method not supported",detail:"Method is not implemented",default:!0,retryable:!1},E32005_DEFAULT_LIMIT_EXCEEDED:{eipCode:-32005,message:"Limit exceeded",detail:"Request exceeds defined limit",default:!0,retryable:!1},E32006_DEFAULT_JSON_RPC_VERSION_NOT_SUPPORTED:{eipCode:-32006,message:"JSON-RPC version not supported",detail:"Version of JSON-RPC protocol is not supported",default:!0,retryable:!1},E32002_CONNECTION_ALREADY_PENDING:{eipCode:-32002,message:"Connection request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_REQUEST_ALREADY_PENDING:{eipCode:-32002,message:"Resource request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_WALLET_LOCKED:{eipCode:-32002,message:"Wallet might be locked",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E4001_USER_REJECTED_REQUEST:{eipCode:4001,message:"Signature rejected",detail:"Please try signing again.",retryable:!0}};function l(e){let t;return"string"==typeof(t=e.type)&&i.includes(t)&&"wallet_not_on_device"===e.type}},5653:function(e,t,n){"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}n.d(t,{O:function(){return c}});var i=0;function a(e){return"__private_"+i+++"_"+e}var o=a("_wallet"),s=a("_account");class c{get standardWallet(){return r(this,o)[o]}get address(){return r(this,s)[s].address}async disconnect(){if(!r(this,o)[o].features["standard:disconnect"]?.disconnect)throw Error("Wallet does not support disconnect");await r(this,o)[o].features["standard:disconnect"].disconnect()}async signMessage(...e){if(!r(this,o)[o].features["solana:signMessage"]?.signMessage)throw Error("Wallet does not support signMessage");let t=await r(this,o)[o].features["solana:signMessage"].signMessage(...e.map(e=>({...e,account:r(this,s)[s]})));return 1===e.length?t[0]:[...t]}async signTransaction(...e){if(!r(this,o)[o].features["solana:signTransaction"]?.signTransaction)throw Error("Wallet does not support signTransaction");let t=await r(this,o)[o].features["solana:signTransaction"].signTransaction(...e.map(e=>({...e,account:r(this,s)[s]})));return 1===e.length?t[0]:[...t]}async signAndSendTransaction(...e){if(!r(this,o)[o].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");let t=await r(this,o)[o].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:r(this,s)[s]})));return 1===e.length?t[0]:[...t]}async signAndSendAllTransactions(e){if(!r(this,o)[o].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");return[...await r(this,o)[o].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:r(this,s)[s]})))]}constructor({wallet:e,account:t}){Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),r(this,o)[o]=e,r(this,s)[s]=t}}},8764:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(2725);async function i(e,{request:t,headers:n}
1){return await e.fetchPrivyRoute(r.zd,{body:t,headers:n})}},7756:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let r=({w:e,h:t})=>{let n=void 0!==window.screenLeft?window.screenLeft:window.screenX,r=void 0!==window.screenTop?window.screenTop:window.screenY,i=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,a=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;return`toolbar=0,location=0,menubar=0,height=${t},width=${e},popup=1,left=${(i-e)/2/(i/window.screen.availWidth)+n},top=${(a-t)/2/(a/window.screen.availHeight)+r}`},i=e=>window.open(e?.location,void 0,r({w:440,h:680}))},13461:function(e,t,n){"use strict";n.d(t,{C:function(){return P},D:function(){return L},H:function(){return S},I:function(){return v},M:function(){return F},O:function(){return I},P:function(){return w},R:function(){return y},S:function(){return C},V:function(){return h},W:function(){return R},a:function(){return b},b:function(){return k},c:function(){return _},d:function(){return m},e:function(){return g},f:function(){return x},g:function(){return A},h:function(){return u},i:function(){return l},j:function(){return E}
1,k:function(){return O},l:function(){return ei},m:function(){return en},n:function(){return M},o:function(){return T},p:function(){return B},q:function(){return d},r:function(){return f},s:function(){return N},t:function(){return p},u:function(){return er},v:function(){return U},w:function(){return D},x:function(){return $}});var r=n(57437),i=n(2265),a=n(90626),o=n(520),s=n(21207),c=n(13130);let u="https://auth.privy.io",l=2e4,d=1400,f=2500,p=4e3,h="3.23.1",b="privy:token",m="privy-token",y="privy:refresh_token",g="privy-refresh-token",w="privy:pat",v="privy:id_token",x="privy-id-token",_="privy-session",E="privy:caid",A=e=>`privy:guest:${e}`,k=e=>`privy:cross-app:${e}`,C="privy:state_code",P="privy:code_verifier",S="privy:headless_oauth",I="privy:oauth_disable_signup",T=e=>`privy:wallet:${e}`,O="privy:connections",M=12e4,N=1,B="0x1",R=3e4,U="https://api.moonpay.com/v1",F="https://api.moonpay.com/v1",$="pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL",D="pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI",L="deprecated",j={appearance:{landingHeader:"Log in or sign up",theme:"light",walletList:["detected_ethereum_wallets","detected_solana_wallets","metamask","coinbase_wallet","rainbow","base_account","wallet_connect","phantom"]},walletConnectCloudProjectId:"34357d3c125c2bcf2ce2bc3309d98715",_render:{standalone:!1},fundingMethodConfig:{moonpay:{useSandbox:!1}}},z=new Set(["coinbase_wallet","base_account","cryptocom","metamask","okx_wallet","phantom","rainbow","uniswap","zerion","universal_profile","bybit_wallet","ronin_wallet","haha_wallet","wallet_connect","wallet_connect_qr","wallet_connect_qr_solana","detected_solana_wallets","detected_ethereum_wallets","rabby_wallet","safe","solflare","backpack","jupiter","binance","binanceus","bitget_wallet","kraken_wallet"]),W=e=>z.has(e),G=(e,t,n)=>n.indexOf(e)===t,q=({input:e,overrides:t})=>t?t.primary.concat(t.overflow??[]).filter(W).filter(G):e?e.filter(W).filter(G):j.appearance.walletList,H=/paymaster\.biconomy\.io\/api/i,V={mode:"SPONSORED",calculateGasLimits:!0,expiryDuration:300,sponsorshipInfo:{webhookData:{},smartAccountInfo:{name:"BICONOMY",version:"2.0.0"}}},Z=(e,t)=>e&&H.test(e)?V:t&&t.policy_id?{policyId:t.policy_id}:void 0;function K(e,t){let n=Math.max(0,Math.min(1,e.toHsl().l+t));return(0,c.Z)({...e.toHsl(),l:n})}function Y(e,t){let n=e.getLuminance(),r=t.getLuminance();return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}let J={background:{default:"#020713",elevated:"#1A2230","default-hover":"#101724","default-clicked":"#1A2230","default-disabled":"#020713",success:"#0E3E2D",warning:"#373827",error:"#2E0C18",interactive:"#8B86FF","error-hover":"#441821","interactive-hover":"#7B73E5","interactive-clicked":"#6560CC","interactive-disabled":"#141824",info:"#1F2937","info-hover":"#141824"},icon:{default:"#F8F8F8",muted:"#9BA2AE",subtle:"#7B8491",inverse:"#020713",success:"#88E3B5",warning:"#FDF27B",error:"#EF4444",interactive:"#88B6FF","default-hover":"#F8F8F8","muted-hover":"#AEB3BD","subtle-hover":"#8B939E","default-clicked":"#F8F8F8","muted-clicked":"#9097A5","subtle-clicked":"#78818E","default-disabled":"#404452","muted-disabled":"#404452","subtle-disabled":"#404452","error-hover":"#F05555","interactive-hover":"#7B73E5","error-clicked":"#
1EF4444","interactive-clicked":"#6560CC"},text:{default:"#F8F8F8",muted:"#9BA2AE",placeholder:"#7B8491",success:"#ACEECB",warning:"#FEF9A0",error:"#FCA5A5",interactive:"#A29EFF","default-disabled":"#404452","interactive-hover":"#8C88E5"},border:{default:"#1F2937",interactive:"#88B0FF",focused:"#F8F8FC",info:"#5B83D3",success:"#317056",warning:"#FBBF24",error:"#F87171","default-hover":"#34304A","interactive-hover":"#88B0FF"}},X={background:{default:"#FFFFFF",elevated:"#F1F2F9","default-hover":"#F8F9FC","default-clicked":"#F1F2F9","default-disabled":"#FFFFFF",success:"#DCFCE7",warning:"#FEF3C7",error:"#FEE2E2",interactive:"#5B4FFF","error-hover":"#FECACA","interactive-hover":"#4F46E5","interactive-clicked":"#4338CA","interactive-disabled":"#F1F2F9",info:"#E0E7FF","info-hover":"#EEF2FF"},icon:{default:"#110F2A",muted:"#64668B",subtle:"#9498B8",inverse:"#FFFFFF",success:"#33B287",warning:"#F59E0B",error:"#EF4444",interactive:"#564FFF","default-hover":"#1D1B35","muted-hover":"#64668B","subtle-hover":"#888AAE","default-clicked":"#060C23","muted-clicked":"#64668B","subtle-clicked":"#788804","default-disabled":"#CBCDE1","muted-disabled":"#CBCDE1","subtle-disabled":"#CBCDE1","error-hover":"#F06060","interactive-hover":"#4F46E5","error-clicked":"#DC3838","interactive-clicked":"#2BA482"},text:{default:"#040217",muted:"#64668B",placeholder:"#9498B8",success:"#135638",warning:"#906218",error:"#991B1B",interactive:"#5B4FFF","default-disabled":"#CBCDE1","interactive-hover":"#5B4FFF"},border:{default:"#E2E3F0",interactive:"#5B4FFF",focused:"#949DF9",info:"#F1F2F9",success:"#87D7B7",warning:"#FACD63",error:"#F69393","default-hover":"#E2E3F0","interactive-hover":"#5B4FFF"}};function Q(e,t,n,r,i){let u,l,d,f,p,h,b,m,y,g,w,v,x,_,E,A,k,C,P=n?console.warn:()=>{},S=[];if(t?.loginMethods)for(let e of(u=t.loginMethods.includes("email"),l=t.loginMethods.includes("sms"),f=t.loginMethods.includes("wallet"),p=t.loginMethods.includes("google"),h=t.loginMethods.includes("twitter"),b=t.loginMethods.includes("discord"),w=t.loginMethods.includes("spotify"),v=t.loginMethods.includes("instagram"),m=t.loginMethods.includes("tiktok"),y=t.loginMethods.includes("line"),g=t.loginMethods.includes("twitch"),_=t.loginMethods.includes("github"),x=t.loginMethods.includes("linkedin"),E=t.loginMethods.includes("apple"),A=t.loginMethods.includes("farcaster"),k=t.loginMethods.includes("telegram"),d=t.loginMethods.includes("passkey"),t.loginMethods))"string"==typeof e&&e.startsWith("privy:")&&S.push(e);else u=e.email_auth,l=e.sms_auth,f=e.wallet_auth||e.solana_wallet_auth,p=e.google_oauth,h=e.twitter_oauth,b=e.discord_oauth,_=e.github_oauth,w=e.spotify_oauth,v=e.instagram_oauth,m=e.tiktok_oauth,y=e.line_oauth,g=e.twitch_oauth,x=e.linkedin_oauth,E=e.apple_oauth,A=e.farcaster_auth,k=e.telegram_auth,d=e.passkey_auth,C=e.custom_jwt_auth;e.passkey_auth&&(d=!0),"undefined"!=typeof window&&"function"!=typeof window.PublicKeyCredential&&(d=!1);
1let I=[u,l].filter(Boolean),T=[p,h,b,_,w,v,m,y,g,x,E,A,k].filter(Boolean),O=[f].filter(Boolean),M=t?.loginMethods?.includes("passkey")??!1,N=e.passkeys_for_signup_enabled??!1,B=[d&&(N||M)].filter(Boolean),R=[C].filter(Boolean);if(I.length+T.length+O.length+B.length+R.length+S.length===0)throw Error("You must enable at least one login method");let U=void 0!==t?.appearance?.showWalletLoginFirst?t?.appearance?.showWalletLoginFirst:e.show_wallet_login_first;U&&0===O.length?(P("You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false"),U=!1):U||T.length+I.length!==0||(P("You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true"),U=!0);let F=t?.externalWallets?.walletConnect?.enabled??!0;t?.loginMethods&&t.loginMethodsAndOrder&&P("You should only configure one of `loginMethods` or `loginMethodsAndOrder`");let $=q({input:t?.appearance?.walletList,overrides:t?.loginMethodsAndOrder});if(($.includes("wallet_connect_qr")||$.includes("wallet_connect"))&&$.includes("wallet_connect_qr_solana"))throw Error("wallet_connect_qr and wallet_connect_qr_solana cannot both be present in walletList due to WalletConnect session conflicts.");let D=(({input:e})=>{if(!e||!e.primary[0])return;let t=[e.primary[0]],n=[];for(let n of(e.primary.length>4&&console.warn("You should not specify greater than 4 login methods in `loginMethodsAndOrder.primary`"),e.primary.slice(1)))t.includes(n)?console.warn(`Duplicated login method: ${n}`):t.push(n);for(let r of e.overflow??[])t.includes(r)||n.includes(r)?console.warn(`Duplicated login method: ${r}`):n.push(r);return{primary:t,overflow:n}})({input:t?.loginMethodsAndOrder}),L=t?.intl?.defaultCountry??"US",{chains:z,defaultChain:W}=function({supportedChains:e,defaultChainFromConfig:t}){let n;if(e){if(0===e.length)throw Error("`supportedChains` must contain at least one chain");n=(0,a.G)(e)}else n=[...o.B];let r=e?n[0]:s.R,i=t??r;if(!n.find(e=>e.id===i.id))throw Error("`defaultChain` must be included in `supportedChains`");return{chains:n,defaultChain:i}}({supportedChains:t?.supportedChains,defaultChainFromConfig:t?.defaultChain}),G=!!t?.defaultChain,H=t?.customAuth?.getCustomAccessToken&&!1!==t?.customAuth?.enabled,V=H?"all-users":e.embedded_wallet_config.ethereum.create_on_login,Q=e.embedded_wallet_config.solana.create_on_login;e.solana_wallet_auth&&!t?.externalWallets?.solana?.connectors&&console.warn("App configuration has Solana wallet login enabled, but no Solana wallet connectors have been passed to Privy. Make sure to pass Solana connectors to the `config.externalWallets.solana.connectors` field of the `PrivyProvider`");let ee=e.telegram_auth_config?{botId:e.telegram_auth_config.bot_id,botName:e.telegram_auth_config.bot_name,linkEnabled:e.telegram_auth_config.link_enabled,seamlessAuthEnabled:e.telegram_auth_config.seamless_auth_enabled}:void 0,et=e.funding_config?{methods:e.funding_config.methods,options:e.funding_config.options,defaultRecommendedAmount:e.funding_config.default_recommended_amount,defaultRecommendedCurrency:e.funding_config.default_recommended_currency,promptFundingOnWalletCreation:e.funding_config.prompt_funding_on_wallet_creation,crossChainBridgingEnabled:e.funding_config.cross_chain_bridging_enabled}:void 0,en=e.smart_wallet_config;return{id:e.id,appClientId:i,name:e.name,allowlistConfig:{errorTitle:e.allowlist_config.error_title,errorDetail:e.allowlist_config.error_detail,errorCtaText:e.allowlist_config.cta_text,errorCtaLink:e.allowlist_config.cta_link},legacyWalletUiConfig:e.legacy_wallet_ui_config,appearance:{logo:t?.appearance?.logo??e.logo_url??void 0,emailDomain:t?.appearance?.emailDomain,landingHeader:t?.appearance?.landingHeader??j.appearance.landingHeader,loginMessage:"string"==typeof t?.appearance?.loginMessage?t?.appearance?.loginMessage.slice(0,100):t?.appearance?.loginMessage,footerLogo:t?.appearance?.footerLogo,palette:function({backgroundTheme:e,accentHex:t}){let n,r,i,a,o,s,u;"light"===e?n=!1:"dark"===e?n=!0:(n=.5>=(0,c.Z)(e).getLuminance(),r=(0,c.Z)(e).toHslString());let l=n?"dark":"light",d=n?J:X,{accent:f,accentLight:p,accentHover:h,accentDark:b,accentDarkest:m}=function(e,t){if(!e){let e=t?J:X;
1return{accent:(0,c.Z)(e.background.interactive),accentLight:(0,c.Z)(e.background.interactive),accentHover:(0,c.Z)(e.background["interactive-hover"]),accentDark:(0,c.Z)(e.background["interactive-clicked"]),accentDarkest:(0,c.Z)(e.background["interactive-disabled"])}}let n=(0,c.Z)(e);return{accent:n,accentLight:K(n,.15),accentHover:K(n,.3),accentDark:K(n,-.06),accentDarkest:K(n,-.6)}}(t,n),y=(i=(0,c.Z)(X.text.default),a=(0,c.Z)(J.text.default),o=Y(f,i),s=Y(f,a),(u=f.toHsl()).h>=220&&u.h<=300&&s>=3?J.text.default:o>s?X.text.default:J.text.default),g=(0,c.Z)(y),w=Y(f,(0,c.Z)(d.background.default))>=3;return{colorScheme:l,background:r||d.background.default,background2:d.background.elevated,background3:d.background.interactive,foreground:d.text.default,foreground2:d.text.muted,foreground3:d.text.placeholder,foreground4:d.border.default,accent:f.toHslString(),accentLight:p.toHslString(),accentHover:h.toHslString(),accentDark:b.toHslString(),accentDarkest:m.toHslString(),foregroundAccent:g.toHslString(),success:d.background.success,successDark:d.text.success,successLight:d.background.success,error:d.text.error,errorLight:d.background.error,warn:d.background.warning,warnLight:d.background.warning,warningDark:d.text.warning,errorDark:d.text.error,successBg:d.background.success,errorBg:d.background.error,errorBgHover:d.background["error-hover"],warnBg:d.background.warning,infoBg:d.background.info,infoBgHover:d.background["info-hover"],borderDefault:d.border.default,borderHover:d.border["default-hover"],borderFocus:d.border.focused,borderError:d.border.error,borderSuccess:d.border.success,borderWarning:d.border.warning,borderInfo:d.border.info,borderInteractive:d.border.interactive,borderInteractiveHover:d.border["interactive-hover"],backgroundHover:d.background["default-hover"],backgroundClicked:d.background["default-clicked"],backgroundDisabled:d.background["default-disabled"],backgroundInteractive:d.background.interactive,backgroundInteractiveHover:d.background["interactive-hover"],backgroundInteractiveClicked:d.background["interactive-clicked"],backgroundInteractiveDisabled:d.background["interactive-disabled"],foregroundHover:d.text.default,foregroundClicked:d.text.default,foregroundDisabled:d.text["default-disabled"],foregroundInteractive:d.text.interactive,foregroundInteractiveHover:d.text["interactive-hover"],accentHasGoodContrast:w?"1":"0",linkNavigationColor:w?f.toHslString():d.text.default,linkNavigationDecoration:w?"none":"underline",iconDefault:d.icon.default,iconMuted:d.icon.muted,iconSubtle:d.icon.subtle,iconInverse:d.icon.inverse,iconSuccess:d.icon.success,iconWarning:d.icon.warning,iconError:d.icon.error,iconInteractive:d.icon.interactive,iconDefaultHover:d.icon["default-hover"],iconMutedHover:d.icon["muted-hover"],iconSubtleHover:d.icon["subtle-hover"],iconDefaultClicked:d.icon["default-clicked"],iconMutedClicked:d.icon["muted-clicked"],iconSubtleClicked:d.icon["subtle-clicked"],iconDefaultDisabled:d.icon["default-disabled"],iconMutedDisabled:d.icon["muted-disabled"],iconSubtleDisabled:d.icon["subtle-disabled"],iconErrorHover:d.icon["error-hover"],iconInteractiveHover:d.icon["interactive-hover"],iconErrorClicked:d.icon["error-clicked"],iconInteractiveClicked:d.icon["interactive-clicked"],iconMutedDisabledAlt:d.icon["muted-disabled"],iconSubtleDisabledAlt:d.icon["subtle-disabled"]}}({backgroundTheme:t?.appearance?.theme??j.appearance.theme,accentHex:t?.appearance?.accentColor??e.accent_color}),loginGroupPriority:U?"web3-first":"web2-first",hideDirectWeb2Inputs:!!t?.appearance?.hideDirectWeb2Inputs,walletList:$,walletChainType:t?.appearance?.walletChainType??(({evmWalletAuth:e,solanaWalletAuth:t})=>e&&t?"ethereum-and-solana":e?"ethereum-only":t?"solana-only":"ethereum-only")({evmWalletAuth:e.wallet_auth??!1,solanaWalletAuth:e.solana_wallet_auth??!1})},loginMethods:{wallet:f,email:u,sms:l,passkey:d,google:p,twitter:h,discord:b,github:_,spotify:w,instagram:v,tiktok:m,line:y,twitch:g,linkedin:x,apple:E,farcaster:A,telegram:k},globalDisablePasskeys:t?.globalDisablePasskeys??!1,customOAuthProviders:(e.custom_oauth_providers??[]).filter(e=>!1!==e.enabled),crossAppProviders:S,disablePlusEmails:e.disable_plus_emails,loginMethodsAndOrder:D,legal:{termsAndConditionsUrl:t?.legal?.termsAndConditionsUrl??e.terms_and_conditions_url,privacyPolicyUrl:t?.legal?.privacyPolicyUrl??e.privacy_policy_url,requireUsersAcceptTerms:e.require_users_accept_terms??!1},walletConnectCloudProjectId:t?.walletConnectCloudProjectId??e.wallet_connect_cloud_project_id??j.walletConnectCloudProjectId,rpcConfig:{rpcUrls:{},rpcTimeouts:t?.externalWallets?.signatureRequestTimeouts??{}},chains:z,defaultChain:W,intl:{defaultCountry:L,textLocalization:t?.intl?.textLocalization},shouldEnforceDefaultChainOnConnect:G,captcha:{enabledProvider:e.enabled_captcha_provider??null,siteKey:e.captcha_site_key}
1,externalWallets:{coinbaseWallet:{config:{appName:e.name,appLogoUrl:e.logo_url,preference:{options:"all",...t?.externalWallets?.coinbaseWallet?.config?.preference},...t?.externalWallets?.coinbaseWallet?.config}},baseAccount:{config:{appName:e.name,appLogoUrl:e.logo_url,...t?.externalWallets?.baseAccount?.config,preference:{...t?.externalWallets?.baseAccount?.config?.preference,telemetry:!1}}},walletConnect:{enabled:F},solana:{connectors:t?.externalWallets?.solana?.connectors},disableAllExternalWallets:t?.externalWallets?.disableAllExternalWallets??!1},embeddedWallets:{requireUserOwnedRecoveryOnCreate:!H&&(e.embedded_wallet_config.require_user_owned_recovery_on_create??!1),userOwnedRecoveryOptions:H?["user-passcode"]:e.embedded_wallet_config.user_owned_recovery_options,priceDisplay:t?.embeddedWallets?.priceDisplay??{primary:"fiat-currency",secondary:"native-token"},ethereum:{createOnLogin:t?.embeddedWallets?.ethereum?.createOnLogin??V},solana:{createOnLogin:t?.embeddedWallets?.solana?.createOnLogin??Q},disableAutomaticMigration:t?.embeddedWallets?.disableAutomaticMigration??!1,mode:e.embedded_wallet_config.mode,showWalletUIs:t?.embeddedWallets?.showWalletUIs??e.enforce_wallet_uis??!0,extendedCalldataDecoding:t?.embeddedWallets?.extendedCalldataDecoding??!1,transactionScanning:{enabled:t?.embeddedWallets?.transactionScanning?.enabled??!1,domain:t?.embeddedWallets?.transactionScanning?.domain??r??"https://auth.privy.io"}}
1,mfa:{methods:e.mfa_methods??[],noPromptOnMfaRequired:t?.mfa?.noPromptOnMfaRequired??!1},passkeys:{shouldUnlinkOnUnenrollMfa:t?.passkeys?.shouldUnlinkOnUnenrollMfa,shouldUnenrollMfaOnUnlink:t?.passkeys?.shouldUnenrollMfaOnUnlink,registration:t?.passkeys?.registration},customAuth:H?{enabled:!0,...t.customAuth}:void 0,loginConfig:{telegramAuthConfiguration:ee,passkeysForSignupEnabled:e.passkeys_for_signup_enabled},headless:!!t?.headless,render:{standalone:t?._render?.standalone??j._render.standalone},fundingConfig:et,fundingMethodConfig:{...t?.fundingMethodConfig??j.fundingMethodConfig,moonpay:{...t?.fundingMethodConfig?.moonpay??j.fundingMethodConfig.moonpay,useSandbox:t?.fundingMethodConfig?.moonpay.useSandbox??j.fundingMethodConfig.moonpay.useSandbox}},whatsAppEnabled:!!e.whatsapp_enabled,customOAuthRedirectUrl:t?.customOAuthRedirectUrl,allowOAuthInEmbeddedBrowsers:t?.allowOAuthInEmbeddedBrowsers??!1,solanaRpcs:{"solana:mainnet":t?.solana?.rpcs?.["solana:mainnet"]??null,"solana:devnet":t?.solana?.rpcs?.["solana:devnet"]??null,"solana:testnet":t?.solana?.rpcs?.["solana:testnet"]??null},smartWallets:en?.enabled?{enabled:en.enabled,smartWalletVersion:en.smart_wallet_version,smartWalletType:en.smart_wallet_type,configuredNetworks:en.configured_networks.map(e=>({chainId:e.chain_id,bundlerUrl:e.bundler_url,paymasterUrl:e.paymaster_url,paymasterContext:Z(e.paymaster_url,e.paymaster_context)}))}:{enabled:en?.enabled??!1},connectorsDebugLogs:t?.connectorsDebugLogs??!1}}let ee={show_wallet_login_first:!0,allowlist_config:{error_title:null,error_detail:null,cta_text:null,cta_link:null},wallet_auth:!0,email_auth:!0,sms_auth:!1,google_oauth:!1,twitter_oauth:!1,discord_oauth:!1,github_oauth:!1,linkedin_oauth:!1,apple_oauth:!1,disable_plus_emails:!1,terms_and_conditions_url:null,privacy_policy_url:null,embedded_wallet_config:{create_on_login:"off",ethereum:{create_on_login:"off"},solana:{create_on_login:"off"},require_user_owned_recovery_on_create:!1,user_owned_recovery_options:["user-passcode"],mode:"user-controlled-server-wallets-only"},captcha_site_key:"",enforce_wallet_uis:!1,legacy_wallet_ui_config:!1,id:"",name:"",passkeys_for_signup_enabled:!1,whatsapp_enabled:!1},et=(0,i.createContext)({appConfig:Q(ee,void 0,!1),isServerConfigLoaded:!1}),en=({children:e,client:t,legacyClient:n,clientConfig:a,appClientId:o})=>{let[s,c]=(0,i.useState)(null),u=(0,i.useMemo)(()=>Q(s??ee,a,!!s,"undefined"!=typeof window?window.location.origin:void 0,o),[s,a,o]);return(0,i.useEffect)(()=>{if(!s)return;let e=function(e){if(!e)return{};let{appearance:t,supportedChains:n,defaultChain:r,externalWallets:i,...a}=e;return{...a,...n?{supportedChains:n.map(e=>e.id)}:void 0,...r?{defaultChain:r.id}:void 0,...i?{walletConnect:i.walletConnect?{enabled:i.walletConnect.enabled}
1:void 0,coinbaseWallet:i.coinbaseWallet,solana:{connectors:i.solana?.connectors?.get().map(e=>e.walletClientType)}}:void 0}}(a),t=(function(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t,i=0;i<e.length;i++)n=Math.imul(n^(t=e.charCodeAt(i)),2654435761),r=Math.imul(r^t,1597334677);return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&(r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909)))+(n>>>0)})(JSON.stringify(e)).toString(),r=`privy:sent:${s.id}:${t}`;localStorage.getItem(r)||(n.createAnalyticsEvent({eventName:"sdk_initialize",payload:e}),localStorage.setItem(r,"t"))},[a,s]),(0,i.useEffect)(()=>{s||(async()=>{try{await t.initialize();let e=t.app.getConfig();e.custom_api_url&&n.updateApiUrl(e.custom_api_url),c(e)}catch(e){console.warn("Error generating app config: ",e)}})()},[]),(0,r.jsx)(et.Provider,{value:{appConfig:u,isServerConfigLoaded:!!s},children:e})},er=()=>{let{appConfig:e}=(0,i.useContext)(et);return e},ei=()=>{let{isServerConfigLoaded:e}=(0,i.useContext)(et);return e}},24257:function(e,t,n){"use strict";n.d(t,{P:function(){return a},a:function(){return u},e:function(){return c},p:function(){return i},u:function(){return s}});var r=n(2265);let i={login:{onComplete:[],onError:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},connectOrCreateWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},update:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},signTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]},fundSolanaWallet:{onUserExited:[]},customAuth:{onAuthenticated:[],onUnauthenticated:[]}},a=(0,r.createContext)(void 0),o=()=>(0,r.useContext)(a);function s(e,t){if(!t)return;let n=o().current[e];return(0,r.useEffect)(()=>{for(let[r,i]of Object.entries(t))Object.prototype.hasOwnProperty.call(n,r)||console.warn(`Invalid event type "${r}" for action "${e}"`),n[r]?.push(i);return()=>{for(let[r,i]of Object.entries(t))Object.prototype.hasOwnProperty.call(n,r)||console.warn(`Invalid event type "${r}" for action "${e}"`),n[r]=n[r]?.filter(e=>e!==i)}},[t])}function c(e,t,n,...r){for(let i of e.current[t][n])i(...r)}function u(){let e=o();return(t,n,...r)=>c(e,t,n,...r)}},28771:function(e,t,n){"use strict";n.d(t,{P:function(){return g},a:function(){return p},b:function(){return v},c:function(){return m},d:function(){return _},e:function(){return y},f:function(){return h},g:function(){return u},h:function(){return w},i:function(){return l},j:function(){return b},s:function(){return f},t:function(){return x},u:function(){return d}});var r=n(60152),i=n(62536),a=n(97422),o=n(2265),s=n(10903),c=n(35293);let u=(e,t,n,o)=>{let s=Number(e),c=t.find(e=>e.id===s);if(!c)throw new a.P(`Unsupported chainId ${e}`,4901);return(0,r.v)({transport:(0,i.d)(l(c,n,o.appId)),chain:c})},l=(e,t,n)=>{let r,i=e.id,o=Number(e.id);if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])r=e.rpcUrls.privyWalletOverride.http[0];else if(t.rpcUrls&&t.rpcUrls[o])r=t.rpcUrls[o];else if(e.rpcUrls.privy?.http[0]){let t=new URL(e.rpcUrls.privy.http[0]);t.searchParams.append("privyAppId",n),r=t.toString()}else r=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!r)throw new a.P(`No RPC url found for ${i}`);return r},d=(0,s.U)(()=>({user:null,authenticated:!1,hasResolvedInitialUser:!1})),f=e=>d.setState({user:e}),p=e=>d.setState({authenticated:e}),h=e=>d.setState({hasResolvedInitialUser:e}),b=(e,{chainType:t,walletIndex:n}={})=>e?.linkedAccounts.filter(e=>!("wallet"!==e.type||"privy"!==e.walletClientType||void 0!==n&&e.walletIndex!==n||void 0!==t&&e.chainType!==t))??[],m=(0,s.U)(()=>({ethereumExternal:[],areExternalConnectorsReady:!1,ethereumEmbedded:[]})),y=e=>
1m.setState({areExternalConnectorsReady:e}),g=(0,o.createContext)(!1),w=()=>{if((0,o.useContext)(g))throw new a.b("Multiple PrivyProvider instances found","Found multiple instances of PrivyProvider, ensure there is only one mounted in your application tree.")};function v(){let e=(0,o.useContext)(g),t=(0,a.u)(),n=m(e=>e.ethereumEmbedded),r=m(e=>e.ethereumExternal),i=m(e=>e.areExternalConnectorsReady),s=d(e=>e.user),c=d(e=>e.hasResolvedInitialUser),u=(0,o.useMemo)(()=>[...n,...r].sort((e,t)=>t.connectedAt-e.connectedAt),[n,r]),l=b(s,{chainType:"ethereum"}).length>0,f=n.length>0,p=!!i&&!!c&&!!t.walletProxy&&(!l||f);return e?(0,o.useMemo)(()=>({wallets:u,ready:p}),[u,p]):(console.warn("`useWallets` was called outside the PrivyProvider component"),{wallets:[],ready:!1})}let x=e=>{if("ethereum"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"ethereum-address-verifier"};if("solana"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"solana-address-verifier"};throw Error("Failed to get account entropy details")},_=(e,t)=>{if(t?.imported)return x(t);let n=(0,c.g)(e);if(!n)throw Error("Failed to find primary wallet");return x(n)}},97422:function(e,t,n){"use strict";n.d(t,{I:function(){return _},P:function(){return l},a:function(){return u},b:function(){return c},c:function(){return p},d:function(){return f},e:function(){return s},f:function(){return d},g:function(){return o},h:function(){return x},i:function(){return h},j:function(){return g},k:function(){return y},l:function(){return v},m:function(){return b},n:function(){return w},o:function(){return m},u:function(){return E}});var r,i=n(94498),a=n(2265);class o extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,n){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=n}}class s extends o{constructor(e,t,n,r,i,a){super(n,r,i),this.type=e,this.status=t,this.data=a}}class c extends o{constructor(e,t,n){super(e,t,n),this.type="client_error"}}class u extends c{constructor(){super("Request timed out",void 0,"client_request_timeout")}}class l extends o{constructor(e,t,n){super(e,t,n),this.type="connector_error"}}let d=e=>{if(e instanceof o)return e;if(!(e instanceof i.F))return f(e);if(!e.response)return new s("api_error",null,e.message,e);let{type:t,message:n,error:r,code:a}=e.data;return new s(t||"ApiError",e.response.status,n||r,e,a,e.data)},f=e=>e instanceof o?e:e instanceof Error?new c(e.message,e):new c(`Internal error: ${e}`);var p=((r={}).OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",r.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",r.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",r.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",r.INVALID_DATA="invalid_data",r.INVALID_CAPTCHA="invalid_captcha",r.LINKED_TO_ANOTHER_USER="linked_to_another_user",r.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",r.FAILED_TO_LINK_ACCOUNT="failed_to_link_account",r.FAILED_TO_UPDATE_ACCOUNT="failed_to_update_account",r.USER_EXITED_UPDATE_FLOW="exited_update_flow",r.ALLOWLIST_REJECTED="allowlist_rejected",r.OAUTH_USER_DENIED="oauth_user_denied",r.OAUTH_UNEXPECTED="oauth_unexpected",r.UNKNOWN_AUTH_ERROR="unknown_auth_error",r.USER_EXITED_AUTH_FLOW="exited_auth_flow",r.USER_EXITED_LINK_FLOW="exited_link_flow",r.USER_EXITED_SET_PASSWORD_FLOW="user_exited_set_password_flow",r.MUST_BE_AUTHENTICATED="must_be_authenticated",r.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",r.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",r.CLIENT_REQUEST_TIMEOUT="client_request_timeout",r.INVALID_CREDENTIALS="invalid_credentials",r.MISSING_MFA_CREDENTIALS="missing_or_invalid_mfa",r.UNKNOWN_MFA_ERROR="unknown_mfa_error",r.EMBEDDED_WALLET_ALREADY_EXISTS="embedded_wallet_already_exists",r.EMBEDDED_WALLET_NOT_FOUND="embedded_wallet_not_found",r.EMBEDDED_WALLET_CREATE_ERROR="embedded_wallet_create_error",r.UNKNOWN_EMBEDDED_WALLET_ERROR="unknown_embedded_wallet_error",r.EMBEDDED_WALLET_PASSWORD_UNCONFIRMED="embedded_wallet_password_unconfirmed",r.EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS="embedded_wallet_password_already_exists",r.EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS="embedded_wallet_recovery_already_exists",r.TRANSACTION_FAILURE="transaction_failure",r.UNSUPPORTED_CHAIN_ID="unsupported_chain_id",r.NOT_SUPPORTED="not_supported",r.CAPTCHA_TIMEOUT="captcha_timeout",r.INVALID_MESSAGE="invalid_message",r.UNABLE_TO_SIGN="unable_to_sign",r.CAPTCHA_FAILURE="captcha_failure",r.CAPTCHA_DISABLED="captcha_disabled",r.SESSION_STORAGE_UNAVAILABLE="session_storage_unavailable",r.TOO_MANY_REQUESTS="too_many_requests",r.USER_LIMIT_REACHED="max_accounts_reached",r.DISALLOWED_LOGIN_METHOD="disallowed_login_method",r.DISALLOWED_PLUS_EMAIL="disallowed_plus_email",r.PASSKEY_NOT_ALLOWED="passkey_not_allowed",r.USER_DOES_NOT_EXIST="user_does_not_exist",r.INSUFFICIENT_BALANCE="insufficient_balance",r.ACCOUNT_TRANSFER_REQUIRED="account_transfer_required",r.BUFFER_NOT_DEFINED="buffer_not_defined",r.UNSUPPORTED_WALLET_TYPE="unsupported_wallet_type",r.NO_SOLANA_ACCOUNTS="no_solana_accounts",r.UNKNOWN_FUNDING_ERROR="unknown_funding_error",r);class h extends c{constructor(){super("Method called before `ready`. Ensure you wait until `ready` is true before calling.")}}class b extends c{constructor(e="Embedded wallet error",t){super(e,t,"unknown_embedded_wallet_error")}}class m extends c{constructor(e="User must be authenticated"){super(e,void 0,"must_be_authenticated")}}class y extends c{constructor(e){super("This application is in development mode and must be upgraded to production to log in new users.",e,"max_accounts_reached")}}class g extends l{constructor(){super("No Solana accounts found in wallet",void 0,"no_solana_accounts")}}let w=()=>{throw Error("You need to wrap your application with the <PrivyProvider> initialized with your app id.")},v=e=>()=>{throw Error(e.trim())},x=()=>{},_=(0,a.createContext)({setAuthenticated:w,setUser:w,setIsNewUser:w,isNewUserThisSession:!1,walletConnectionStatus:null,setWalletConnectionStatus:w,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,client:null,privy:null,appId:"notAdded",hideWalletUIs:{current:!1},nativeTokenSymbolForChainId:w,initializeWalletProxy:w,getAuthMeta:w,getAuthFlow:w,closePrivyModal:w,openPrivyModal:w,connectWallet:w,initLoginWithWallet:w,loginWithWallet:w,initLoginWithFarcaster:w,loginWithFarcaster:w,loginWithCode:w,initLoginWithEmail:w,initLoginWithSms:w,initUpdateEmail:w,initUpdatePhone:w,resendEmailCode:w,resendSmsCode:w,initLoginWithHeadlessOAuth:w,loginWithHeadlessOAuth:w,crossAppAuthFlow:w,initLoginWithOAuth:w,loginWithOAuth:w,passkeyAuthState:{status:"initial"},setPasskeyAuthState:w,initSignupWithPasskey:w,signupWithPasskey:w,initLoginWithPasskey:w,loginWithPasskey:w,initLinkWithPasskey:w,linkWithPasskey:w,refreshSessionAndUser:w,walletProxy:null,createAnalyticsEvent:w,acceptTerms:w,getUsdTokenPrice:w,getUsdPriceForSol:w,get
1SplTokenMetadata:w,recoverEmbeddedWallet:w,updateWallets:w,fundWallet:w,openModal:w,setReadyToTrue:w,requestFarcasterSignerStatus:w,initLoginWithTelegram:w,loginWithTelegram:w,generateSiweMessage:w,generateSiweMessageForSmartWallet:w,loginWithSiwe:w,linkWithSiwe:w,linkSmartWallet:w,delegateWallet:w,revokeDelegatedWallets:w,connectCoinbaseSmartWallet:w,connectBaseAccount:w,initiateAccountTransfer:w,emailOtpState:{status:"initial"},setEmailOtpState:w,smsOtpState:{status:"initial"},setSmsOtpState:w,siweState:{status:"initial"},setSiweState:w,oAuthState:{status:"initial"},setOAuthState:w,telegramAuthState:{status:"initial"},setTelegramAuthState:w,isHeadlessOAuthLoading:!1,isHeadlessSigning:w,inProgressAuthFlowRef:{current:null},inProgressLoginOrLinkMethodRef:{current:null},baseAccountSdk:void 0,setBaseAccountSdk:w}),E=()=>(0,a.useContext)(_)},23406:function(e,t,n){"use strict";n.d(t,{$:function(){return q},A:function(){return Y},B:function(){return ec},C:function(){return ea},D:function(){return eo},E:function(){return es},F:function(){return a},G:function(){return o},H:function(){return s},I:function(){return c},J:function(){return d},K:function(){return f},L:function(){return $},M:function(){return b},N:function(){return J},O:function(){return x},P:function(){return l},Q:function(){return N},R:function(){return P},S:function(){return p},T:function(){return eu},U:function(){return el},V:function(){return y},W:function(){return g},X:function(){return m},Y:function(){return w},Z:function(){return V},_:function(){return H},a:function(){return i},a0:function(){return G},a1:function(){return W},a2:function(){return z},a3:function(){return Z},a4:function(){return K},a8:function(){return j},a9:function(){return L},aa:function(){return D},b:function(){return et},c:function(){return en},d:function(){return er},e:function(){return A},f:function(){return _},g:function(){return ei},h:function(){return U},i:function(){return B},j:function(){return O},k:function(){return I},l:function(){return S},m:function(){return M},n:function(){return X},o:function(){return R},p:function(){return E},q:function(){return Q},r:function(){return ee},s:function(){return r},t:function(){return k},u:function(){return C},v:function(){return T},w:function(){return u},x:function(){return h},y:function(){return F},z:function(){return v}});let r="/api/v1/sessions",i="/api/v1/sessions/logout",a="/api/v1/siwe/init",o="/api/v1/siwe/authenticate",s="/api/v1/siwe/link",c="/api/v1/siwe/link_smart_wallet",u="/api/v1/siwe/unlink",l="/api/v1/siwe/transfer",d="/api/v1/siws/init",f="/api/v1/siws/authenticate",p="/api/v1/siws/link",h="/api/v1/siws/unlink",b="/api/v1/siws/transfer",m="/api/v1/farcaster/init",y="/api/v1/farcaster/authenticate",g="/api/v1/farcaster/link",w="/api/v1/farcaster/status",v="/api/v1/farcaster/unlink",x="/api/v1/farcaster/transfer",_="/api/v1/passwordless/init",E="/api/v1/passwordless/authenticate",A="/api/v1/passwordless/link",k="/api/v1/passwordless/unlink",C="/api/v1/passwordless/update",P="/api/v1/passwordless/transfer",S="/api/v1/passwordless_sms/init",I="/api/v1/passwordless_sms/link",T="/api/v1/passwordless_sms/unlink",O="/api/v1/passwordless_sms/authenticate",M="/api/v1/passwordless_sms/update",N="/api/v1/passwordless_sms/transfer",B="/api/v1/oauth/init",R="/api/v1/oauth/authenticate",U="/api/v1/oauth/link",F="/api/v1/oauth/unlink",$="/api/v1/oauth/transfer",D="/api/v1/recovery/oauth/init",L="/api/v1/recovery/oauth/init_icloud",j="/api/v1/recovery/oauth/authenticate",z="/api/v1/passkeys/link/init",W="/api/v1/passkeys/authenticate/init",G="/api/v1/passkeys/register/init",q="/api/v1/passkeys/link",H="/api/v1/passkeys/authenticate",V="/api/v1/passkeys/register",Z="/api/v1/telegram/authenticate",K="/api/v1/telegram/link",Y="/api/v1/telegram/unlink",J="/api/v1/telegram/transfer",X="/api/v1/mfa/passwordless_sms/init",Q="/api/v1/mfa/passkeys/init",ee="/api/v1/users/me/accept_terms",et="/api/v1/analytics_events",en="/api/v1/custom_jwt_account/authenticate",er="/api/v1/custom_jwt_account/link",ei="/api/v1/guest/authenticate",ea="/api/v1/plugins/moonpay_on_ramp/sign",eo="/api/v1/funding/coinbase_on_ramp/init",es="/api/v1/funding/coinbase_on_ramp/status",ec="/api/v1/wallets/revoke",eu="/api/v1/users/me",el="/api/v1/scan/transaction"},35293:function(e,t,n){"use strict";n.d(t,{M:function(){return C},P:function(){return S},a:function(){return P},b:function(){return l},c:function(){return E},d:function(){return p},e:function(){return g},f:function(){return y},g:function(){return _},h:function(){return w},i:function(){return u},j:function(){return v},k:function(){return x},m:function(){return m},u:function(){return I}});var r=n(99112);let i=(e,t)=>e===t||!(!e.startsWith("0x")||!t.startsWith("0x"))&&42===e.length&&42===t.length&&(0,r.K)(e)===(0,r.K)(t);var a=n(57437),o=n(2265),s=n(13461),c=n(97422);function u(e){return"string"==typeof e&&/^custom:[a-zA-Z0-9_-]+$/i.test(e)}let l=e=>!!e.id&&"privy-v2"===e.recoveryMethod;function d(e){return e?new Date(1e3*e):null}function f(e,t){return e.slice().sort((e,t)=>
1(e.firstVerifiedAt?.getTime()??0)-(t.firstVerifiedAt?.getTime()??0)).find(e=>e.type===t)}let p=e=>e?h(e).find(e=>0===e.walletIndex)??null:null,h=e=>e?b(e,"ethereum"):[],b=(e,t)=>e.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&!e.imported&&e.chainType===t),m=e=>e?b(e,"solana"):[],y=e=>e?m(e).find(e=>0===e.walletIndex)??null:null,g=e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.imported&&"ethereum"===e.chainType),w=e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&e.imported&&"privy"===e.walletClientType&&"solana"===e.chainType),v=(e,t)=>e?.linkedAccounts.find(e=>"wallet"===e.type&&"privy"===e.walletClientType&&i(e.address,t))||null,x=(e,t)=>e.find(e=>i(e.address,t))||null,_=e=>{let t=p(e),n=y(e);return t&&n&&!l(n)&&l(t)?n:p(e)??y(e)};function E(e){if(!e)return null;let t=function(e){let t=[];for(let n of e){let e=n.type;switch(n.type){case"wallet":let r={id:n.id,address:n.address,type:n.type,imported:n.imported,delegated:n.delegated,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at),chainType:n.chain_type,walletClientType:n.wallet_client_type,connectorType:n.connector_type,recoveryMethod:n.recovery_method,walletIndex:n.wallet_index,publicKey:n.public_key};t.push(r);break;case"smart_wallet":let i={address:n.address,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at),smartWalletType:n.smart_wallet_type,smartWalletVersion:n.smart_wallet_version};t.push(i);break;case"cross_app":let a={type:n.type,subject:n.subject,embeddedWallets:n.embedded_wallets,smartWallets:n.smart_wallets,providerApp:{id:n.provider_app_id},firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(a);break;case"email":let o={address:n.address,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(o);break;case"phone":let s={number:n.phoneNumber,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(s);break;case"google_oauth":let c={subject:n.subject,email:n.email,name:n.name,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(c);break;case"spotify_oauth":let l={subject:n.subject,email:n.email,name:n.name,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(l);break;case"instagram_oauth":let f={subject:n.subject,username:n.username,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(f);break;case"twitter_oauth":let p={subject:n.subject,username:n.username,name:n.name,type:n.type,profilePictureUrl:n.profile_picture_url,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(p);break;case"discord_oauth":let h={subject:n.subject,username:n.username,email:n.email,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(h);break;case"github_oauth":let b={subject:n.subject,username:n.username,name:n.name,email:n.email,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(b);break;case"tiktok_oauth":let m={subject:n.subject,username:n.username,name:n.name,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(m);break;case"line_oauth":let y={subject:n.subject,name:n.name,email:n.email,profilePictureUrl:n.profile_picture_url,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(y);break;case"twitch_oauth":let g={subject:n.subject,username:n.username,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(g);break;case"linkedin_oauth":let w={subject:n.subject,name:n.name,email:n.email,vanityName:n.vanity_name,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(w);break;case"apple_oauth":let v={subject:n.subject,email:n.email,type:n.type,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(v);break;case"custom_auth":t.push({type:n.type,customUserId:n.custom_user_id,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)});break;case"farcaster":let x={type:n.type,fid:n.fid,ownerAddress:n.owner_address,displayName:n.display_name,username:n.username,bio:n.bio,pfp:n.profile_picture_url,url:n.homepage_url,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at),signerPublicKey:n.signer_public_key};t.push(x);break;case"passkey":let _={type:n.type,enrolledInMfa:n.enrolled_in_mfa,credentialId:n.credential_id,publicKey:n.public_key,authenticatorName:n.authenticator_name,createdWithDevice:n.created_with_device,createdWithOs:n.created_with_os,createdWithBrowser:n.created_with_browser,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(_);break;case"telegram":let E={type:n.type,telegramUserId:n.telegram_user_id,firstName:n.first_name,lastName:n.last_name,username:n.username,photoUrl:n.photo_url,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(E);break;default:if(u(n.type)){let e={type:n.type,subject:n.subject,name:n.name,username:n.username,email:n.email,profilePictureUrl:n.profile_picture_url,firstVerifiedAt:d(n.first_verified_at),latestVerifiedAt:d(n.latest_verified_at)};t.push(e);break}console.warn(`Unrecognized account type: ${e}. Please consider upgrading the Privy SDK.`)}}return t}(e.linked_accounts),n=f(t,"wallet"),r=f(t,"smart_wallet"),i=f(t,"email"),a=f(t,"phone"),o=f(t,"google_oauth"),s=f(t,"twitter_oauth"),c=f(t,"discord_oauth"),l=f(t,"github_oauth"),p=f(t,"spotify_oauth"),h=f(t,"instagram_oauth"),b=f(t,"tiktok_oauth"),m=f(t,"line_oauth"),y=f(t,"twitch_oauth"),g=f(t,"linkedin_oauth"),w=f(t,"apple_oauth"),v=f(t,"farcaster"),x=f(t,"telegram"),_=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:d(t)}));return{id:e.id,createdAt:d(e.created_at),linkedAccounts:t,email:i&&{address:i?.address},phone:a&&{number:a?.number},wallet:n&&{id:n.id,address:n.address,chainType:n.chainType,walletClientType:n.walletClientType,connectorType:n.connectorType,recoveryMethod:n.recoveryMethod,imported:n.imported,delegated:n.delegated,walletIndex:n.walletIndex,publicKey:n.publicKey},smartWallet:r&&{address:r.address,smartWalletType:r.smartWalletType,smartWalletVersion:r.smartWalletVersion},google:o&&{subject:o.subject,email:o.email,name:o.name},twitter:s&&{subject:s.subject,username:s.username,name:s.name,profilePictureUrl:s.profilePictureUrl},discord:c&&{subject:c.subject,username:c.username,email:c.email},github:l&&{subject:l.subject,username:l.username,name:l.name,email:l.email},spotify:p&&{subject:p.subject,email:p.email,name:p.name},instagram:h&&{subject:h.subject,username:h.username},tiktok:b&&{subject:b.subject,username:b.username,name:b.name},line:m&&{subject:m.subject,name:m.name,email:m.email,profilePictureUrl:m.profilePictureUrl},twitch:y&&{subject:y.subject,username:y.username},linkedin:g&&{subject:g.subject,name:g.name,email:g.email,vanityName:g.vanityName},apple:w&&{subject:w.subject,email:w.email},farcaster:v&&{fid:v.fid,ownerAddress:v.ownerAddress,displayName:v.displayName,username:v.username,bio:v.bio,pfp:v.pfp,url:v.url,signerPublicKey:v.signerPublicKey},telegram:x&&{telegramUserId:x.telegramUserId,firstName:x.firstName,lastName:x.lastName,username:x.username,photoUrl:x.photoUrl},delegatedWallets:[],mfaMethods:_.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest,customMetadata:e.custom_metadata}}function A({src:e,...t}){return(0,a.jsx)("img",{src:e,...t,style:{display:"none"}})}let k=(0,o.createContext)({currentScreen:null,lastScreen:null,navigate:c.n,navigateBack:c.n,resetNavigation:c.n,setModalData:c.n,onUserCloseViaDialogOrKeybindRef:void 0}),C=e=>{let t=(0,s.u)(),[n,r]=(0,o.useState)(e.initialScreen),i=(0,o.useRef)(null);(0,o.useEffect)(()=>{e.open||(i.current=null)},[e.open]),(0,o.useEffect)(()=>{i.current=null},[e.initialScreen]);let c={data:e.data,setModalData:e.setModalData,currentScreen:e.initialScreen,lastScreen:n,navigate:(t,n=!0)=>{e.setInitialScreen(t),n&&r(e.initialScreen)},navigateBack:()=>{e.setInitialScreen(n)},resetNavigation:()=>{e.setInitialScreen(null),r(null)},onUserCloseViaDialogOrKeybindRef:i};return(0,a.jsxs)(k.Provider,{value:c,children:[("string"==typeof t.appearance.logo||"img"===t.appearance.logo?.type)&&(0,a.jsx)(A,{src:"string"==typeof t.appearance.logo?t.appearance.logo:t.a
1ppearance.logo.props.src}),e.children]})},P=()=>(0,o.useContext)(k),S=(0,o.createContext)({ready:!1,authenticated:!1,user:null,walletConnectors:null,connectWallet:c.n,login:c.n,connectOrCreateWallet:c.n,linkEmail:c.n,linkPhone:c.n,linkFarcaster:c.n,linkWallet:c.n,linkGoogle:c.n,linkTwitter:c.n,linkTwitch:c.n,linkDiscord:c.n,linkGithub:c.n,linkSpotify:c.n,linkInstagram:c.n,linkTelegram:c.n,linkTiktok:c.n,linkLine:c.n,linkLinkedIn:c.n,linkApple:c.n,linkPasskey:c.n,linkOAuth:c.n,updateEmail:c.n,updatePhone:c.n,logout:c.n,getAccessToken:c.n,signMessage:c.n,signTypedData:c.n,enrollInMfa:c.n,initEnrollmentWithSms:c.n,initEnrollmentWithTotp:c.n,initEnrollmentWithPasskey:c.n,promptMfa:c.n,init:c.n,submitEnrollmentWithSms:c.n,submitEnrollmentWithTotp:c.n,submitEnrollmentWithPasskey:c.n,unenroll:c.n,submit:c.n,cancel:c.n,sendTransaction:c.n,signTransaction:c.n,setWalletPassword:c.n,setWalletRecovery:c.n,requestFarcasterSignerFromWarpcast:c.n,getFarcasterSignerPublicKey:c.n,signFarcasterMessage:c.n,isModalOpen:!1,mfaMethods:[]}),I=()=>(0,o.useContext)(S)},56079:function(e,t,n){"use strict";n.d(t,{A:function(){return I},B:function(){return eu},C:function(){return Q},D:function(){return T},E:function(){return O},F:function(){return G},G:function(){return z},H:function(){return J},I:function(){return eo},J:function(){return N},P:function(){return X},S:function(){return es},W:function(){return el},a:function(){return en},b:function(){return ed},c:function(){return Z},d:function(){return D},e:function(){return et},f:function(){return Y},g:function(){return j},h:function(){return ep},i:function(){return U},j:function(){return W},k:function(){return eb},l:function(){return ei},m:function(){return B},n:function(){return L},o:function(){return ef},p:function(){return R},q:function(){return q},r:function(){return er},s:function(){return F},t:function(){return $},u:function(){return ey},v:function(){return eg},w:function(){return M},x:function(){return K},y:function(){return em},z:function(){return S}});var r=n(97422),i=n(28771),a=n(87201),o=n(5653),s=n(21207),c=n(16914),u=n(23561),l=n(38795),d=n(7455),f=n(93784),p=n(26072),h=n(3265),b=n(1229),m=n(93352),y=n(85470),g=n(8891),w=n(76470),v=n(36393),x=n(13461),_=n(57437),E=n(2265),A=n(64113),k=n(35293);let C=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isClover?"Clover":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom||"isPhantom"in e?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally||e.isTaho?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0,P=(e,t)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!t)return!0;if(e.isBraveWallet&&!e._events&&!e._state||"MetaMask"!==C(e))return!1;if(e.providers){for(let t of e.providers)if(!P(t))return!1}return!0},S=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers){for(let t of e.ethereum.providers)if(t&&t.isCoinbaseWallet)return!0}return!1},I=(e,t)=>{let n=[],r=[];for(let[i,a]of e.entries())i<t?n.push(a):r.push(a);return[n,r]},T=e=>!!String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}
1))$/),O=(e,t)=>{let n=e.slice(0),r=[];for(;n.length;)r.push(n.splice(0,t));return r},M=(e,t=3,n=4,r="ethereum")=>{if(!e)return"";let i="ethereum"===r?2:0;return t+n+i+3>=e.length?e:`${e.slice(0,i+t)}...${e.slice(e.length-n,e.length)}`},N=(e,t=3,n=4)=>M(e,t,n,"solana"),B=e=>new Promise(t=>setTimeout(t,e));function R(e,{interval:t=100,timeout:n=5e3}={}){return new Promise((r,i)=>{let a,o=0,s=()=>{o>=n?i("Max attempts reached without result"):(a=e(),o+=t,null==a?setTimeout(s,t):r(a))};s()})}let U=(e,t={})=>{let n=t.delayMs||150,r=t.maxAttempts||270;return new Promise(async(i,a)=>{let o=!1,s=0;for(;!o&&s<r;){if(t.abortSignal?.aborted)return;e().then(e=>{o=!0,i(e)},(...e)=>{o=!0,a(...e)}),s+=1,await B(n)}o||a(Error("Exceeded max attempts before resolving function"))})},F=e=>e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),$=e=>"string"==typeof e?e:"0x"+e.toString(16);async function D({store:e,walletList:t,externalWalletConfig:n,walletChainType:r,timeout:i=3e3}){let a=!1,o=window;return new Promise(s=>{function c(){if(a)return;a=!0,window.removeEventListener("ethereum#initialized",c);let i=e.getProviders();console.debug("Detected injected providers:",i.map(e=>e.info));let o=[];for(let e of i)t.includes("coinbase_wallet")&&"com.coinbase.wallet"===e.info.rdns||"solana-only"===r&&"app.phantom"===e.info.rdns||o.push({type:e.info.name.toLowerCase().replace(/\s/g,"_"),eip6963InjectedProvider:e});if("solana-only"!==r)for(let e of function(){let e=window,t=e.ethereum;if(!t)return[];let n=[];if(t.providers?.length)for(let e of t.providers)e&&n.push(e);return n.push(e.ethereum),n}()){let t=C(e);if(!i.some(e=>e.info.name===t)){if(P(e,!0)&&!o.find(e=>"metamask"===e.type)){o.push({type:"metamask",legacyInjectedProvider:e});continue}if("Phantom"===t&&!o.find(e=>"phantom"===e.type)){o.push({type:"phantom",legacyInjectedProvider:e});continue}if("Coinbase Wallet"===t&&!o.find(e=>"coinbase_wallet"===e.type&&"smartWalletOnly"!==n.coinbaseWallet?.config?.preference?.options)){o.push({type:"coinbase_wallet",legacyInjectedProvider:e});continue}o.find(e=>"unknown_browser_extension"===e.type)||o.push({type:"unknown_browser_extension",legacyInjectedProvider:e})}}s(o)}o.ethereum?c():(window.addEventListener("ethereum#initialized",c,{once:!0}),setTimeout(()=>{c()},i))})}function L(e){return`eip155:${String(Number(e))}`}let j=(e,t,n,a)=>{let o=Number(e),s=t.find(e=>e.id===o);if(!s)throw new r.P(`Unsupported chainId ${e}`,4901);return(0,i.i)(s,n,a)},z=(e,t)=>{let n=Number(e),i=t.find(e=>e.id===n);if(!i)throw new r.P(`Unsupported chainId ${e}`,4901);return i.blockExplorers?.default.url},W=e=>{let t={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},n=e.types.EIP712Domain??Object.entries(e.domain).map(([e,n])=>{if(null!=n&&"string"==typeof e&&e in t)return{name:e,type:t[e]}}).filter(e=>void 0!==e);return{...e,types:{...e.types,EIP712Domain:n}}};function G(e,{min:t,max:n}){return Math.min(Math.max(e,t),n)}let q=e=>e?.map(e=>({signer_id:e.signerId,override_policy_ids:e.policyIds})),H="[Privy:Connectors]";function V(e){if(!e||0===Object.keys(e).length)return"";let t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${String(t)}`);return t.length>0?` (${t.join(", ")})`:""}let Z=new class{setEnabled(e){this._enabled=e,e&&this.info("Debug logging enabled")}get enabled(){return this._enabled}debug(e,t){this._enabled&&console.debug(`${H} ${e}${V(t)}`)}info(e,t){this._enabled&&console.info(`${H} ${e}${V(t)}`)}warn(e,t){this._enabled&&console.warn(`${H} ${e}${V(t)}`)}error(e,t,n){if(!this._enabled)return;let r=t instanceof Error?t.message:t?String(t):void 0,i=r?{...n,error:r}:n;console.error(`${H} ${e}${V(i)}`)}connectionStart(e,t,n){this.info("Connection attempt started",{wallet:e,method:t,...n})}connectionSuccess(e,t){this.info("Connection successful",{wallet:e,...t})}connectionFailed(e,t,n){this.error("Connection failed",t,{wallet:e,...n})}connectorInit(e,t,n){this.debug("Connector initialized",{connector:e,wallet:t,...n})}connectorCreated(e,t,n){this.debug("Connector created",{connector:e,wallet:t,...n})}providerEvent(e,t,n){this.debug(`Provider event: ${e}`,{wallet:t,...n})}rpcRequest(e,t,n){this.debug(`RPC request: ${e}`,{wallet:t,...n})}rpcResponse(e,t,n){this.debug(`RPC response: ${e}`,{wallet:t,...n})}constructor(){this._enabled=!1}};class K extends r.P{constructor(){super("Wallet timeout"),this.type="wallet_error",Z.warn("Wallet request timed out")}}let Y=e=>{if(e instanceof r.P)return Z.debug("Connector error (already formatted)",{error:e.message}),e;if(e?.code){let t=new X(e);return Z.debug("Provider RPC error",{code:t.code,error:t.message}),t}let t=e instanceof Error?e.message:String(e);return Z.debug("Unknown connector error",{error:t}),new r.P("Unknown connector error",e)};class J extends r.g{constructor(e,t,n){super(e),this.type="provider_error",this.co
1de=t,this.data=n}}class X extends J{constructor(e){super(e.message,e.code,e.data);let t=Object.values(a.M_).find(t=>t.eipCode===e.code);this.details=t||a.M_.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes("already pending for origin")?e.message?.includes("wallet_requestPermissions")?this.details=a.M_.E32002_CONNECTION_ALREADY_PENDING:this.details=a.M_.E32002_REQUEST_ALREADY_PENDING:e.message?.includes("Already processing")&&e.message.includes("eth_requestAccounts")&&(this.details=a.M_.E32002_WALLET_LOCKED))}}let Q={ERROR_USER_EXISTS:{message:"User already exists for this address",detail:"Try another address!",retryable:!1},ERROR_TIMED_OUT:{message:"Wallet request timed out",detail:"Please try connecting again.",retryable:!0},ERROR_WALLET_CONNECTION:{message:"Could not log in with wallet",detail:"Please try connecting again.",retryable:!0},ERROR_USER_LIMIT_REACHED:{message:"Unable to link",detail:"You've reached the maximum number of linked wallets.",retryable:!1},...a.M_};class ee{get(e){let t=localStorage.getItem(e);return null===t?void 0:JSON.parse(t)}put(e,t){void 0!==t?localStorage.setItem(e,JSON.stringify(t)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map(([e])=>e)}}function et(){try{let e="privy:__session_storage__test",t=new ee;return t.put(e,"blobby"),t.del(e),!0}catch(e){return!1}}var en="undefined"!=typeof window&&window.localStorage?new ee:new class{get(e){return this._cache[e]}put(e,t){void 0!==t?this._cache[e]=t:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}constructor(){this._cache={}}};class er extends v.Z{constructor(e){super(),this.walletClientType=e,this.connected=!1,this.initialized=!1}}let ei=()=>{let e=en.get(x.k);return e&&Array.isArray(e)&&e.map(e=>e&&"string"==typeof e.address&&"string"==typeof e.connectorType&&"string"==typeof e.walletClientType&&"number"==typeof e.connectedAt).every(Boolean)?e:[]},ea=["phantom","metamask","glow","solflare","backpack","okx_wallet","walletconnect","mobile_wallet_adapter","jupiter"];function eo(e){return e.toLowerCase().split(" ").join("_")}class es extends er{get isInstalled(){return!0}get wallet(){return this._wallet}buildConnectedWallet(){return this._wallet.accounts.map(e=>({type:"solana",provider:new o.O({wallet:this._wallet,account:e}),address:e.address,connectedAt:Date.now(),walletClientType:this._wallet.name,connectorType:this.connectorType,imported:!1,meta:{name:this._wallet.name,id:this._wallet.name,icon:this._wallet.icon},isConnected:async()=>this._wallet.accounts.length>0,disconnect:async()=>{await this.disconnect()}}))}async syncAccounts(){this.wallets=this.buildConnectedWallet(),this.emit("walletsUpdated")}get walletBranding(){return{id:ec(this.wallet)?"walletconnect_solana":this.wallet.name,name:this.wallet.name,icon:this.wallet.icon}}async initialize(){Z.debug("Initializing Solana connector",{wallet:this.walletClientType}),this.subscribeListeners(),await this.syncAccounts(),this.shouldAttemptAutoConnect()&&(Z.debug("Attempting Solana auto-connect",{wallet:this.walletClientType}),await this.wallet.features["standard:connect"]?.connect({silent:!0}).catch(()=>{}),await this.isConnected()&&(Z.debug("Solana auto-connect successful",{wallet:this.walletClientType}),await this.syncAccounts())),this.initialized=!0,this.emit("initialized")}async connect(e){if(Z.connectionStart(this.walletClientType,"solana_adapter",{showPrompt:e.showPrompt}),e.showPrompt)try{await this.promptConnection()}catch(e){if(0===this._wallet.accounts.length)throw Z.warn("Solana wallet connected but has no accounts",{wallet:this.walletClientType}),new r.j;throw Z.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),e}if(!await this.isConnected())throw Z.warn("Solana wallet not connected after prompt",{wallet:this.walletClientType}),new r.j;await this.syncAccounts();let t=await this.getConnectedWallet();return t&&Z.connectionSuccess(this.walletClientType),t}async getConnectedWallet(){return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt)[0]||null}async isConnected(){return this._wallet.accounts.length>0}subscribeListeners(){this._unsubscribeListeners=this.wallet.features["standard:events"]?.on("change",this.onChange)}unsubscribeListeners(){this._unsubscribeListeners?.()}shouldAttemptAutoConnect(){return!(!this.autoConnectEnabled||!ea.includes(this.walletClientType))&&("phantom"!==this.walletClientType&&"metamask"!==this.walletClientType.toLowerCase()||ei().some(({walletClientType:e})=>"phantom"===e||"metamask"===e.toLowerCase()))}constructor(e,t){super(eo(ec(e)?"walletconnect_solana":e.name)),this.chainType="solana",this.connectorType="solana_adapter",this.disconnect=async()=>{Z.debug("Disconnecting Solana wallet",{wallet:this.walletClientType}),await this.wallet.features["standard:disconnect"]?.disconnect().catch(e=>{Z.error("Error disconnecting Solana wallet",e,{wallet:this.walletClientType})}),await this.syncAccounts()},this.promptConnection=async()=>{Z.debug("Prompting Solana connection",{wallet:this.walletClientType});try{await this.wallet.features["standard:connect"]?.connect()}catch(e){throw Z.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),Y(e)}},this.onChange=()=>{this.syncAccounts()},this._wallet=e,this.autoConnectEnabled=t,this.wallets=[]}}
1function ec(e){return"isWalletConnectSolana"in e&&e.isWalletConnectSolana}let eu=({style:e,...t})=>{let n=(0,x.u)();return(0,_.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px",...e},...t,children:[(0,_.jsx)("rect",{width:"28",height:"28",rx:"3",fill:"dark"===n?.appearance.palette.colorScheme?"#3396ff":"#141414"}),(0,_.jsx)("g",{clipPath:"url(#clip0_1765_9946)",children:(0,_.jsx)("path",{d:"M8.09448 10.3941C11.3558 7.20196 16.6442 7.20196 19.9055 10.3941L20.2982 10.7782C20.3369 10.8157 20.3677 10.8606 20.3887 10.9102C20.4097 10.9599 20.4206 11.0132 20.4206 11.0671C20.4206 11.121 20.4097 11.1744 20.3887 11.224C20.3677 11.2737 20.3369 11.3186 20.2982 11.3561L18.9554 12.6702C18.9158 12.7086 18.8628 12.7301 18.8077 12.7301C18.7526 12.7301 18.6996 12.7086 18.66 12.6702L18.1198 12.1415C15.8448 9.91503 12.1557 9.91503 9.88015 12.1415L9.30167 12.7075C9.26207 12.7459 9.20909 12.7673 9.15395 12.7673C9.0988 12.7673 9.04582 12.7459 9.00622 12.7075L7.66346 11.3934C7.62475 11.3559 7.59397 11.3109 7.57295 11.2613C7.55193 11.2117 7.5411 11.1583 7.5411 11.1044C7.5411 11.0505 7.55193 10.9971 7.57295 10.9475C7.59397 10.8979 7.62475 10.8529 7.66346 10.8154L8.09448 10.3941ZM22.6829 13.1115L23.8776 14.2814C23.9163 14.319 23.9471 14.3639 23.9681 14.4135C23.9892 14.4632 24 14.5165 24 14.5704C24 14.6243 23.9892 14.6777 23.9681 14.7273C23.9471 14.777 23.9163 14.8219 23.8776 14.8594L18.4893 20.1332C18.4102 20.2101 18.3042 20.2531 18.1938 20.2531C18.0835 20.2531 17.9775 20.2101 17.8984 20.1332L14.0743 16.3901C14.0545 16.3708 14.0279 16.36 14.0003 16.36C13.9726 16.36 13.9461 16.3708 13.9263 16.3901L10.1021 20.1332C10.023 20.2101 9.91703 20.2531 9.8067 20.2531C9.69636 20.2531 9.59038 20.2101 9.51124 20.1332L4.12236 14.8594C4.08365 14.8219 4.05287 14.777 4.03185 14.7273C4.01083 14.6777 4 14.6243 4 14.5704C4 14.5165 4.01083 14.4632 4.03185 14.4135C4.05287 14.3639 4.08365 14.319 4.12236 14.2814L5.31767 13.1115C5.39678 13.0348 5.50265 12.9919 5.61285 12.9919C5.72305 12.9919 5.82892 13.0348 5.90803 13.1115L9.73216 16.8546C9.75194 16.874 9.7785 16.8848 9.80616 16.8848C9.83381 16.8848 9.86037 16.874 9.88015 16.8546L13.7043 13.1115C13.7834 13.0346 13.8894 12.9916 13.9997 12.9916C14.1101 12.9916 14.216 13.0346 14.2952 13.1115L18.1198 16.8546C18.1396 16.874 18.1662 16.8848 18.1938 16.8848C18.2215 16.8848 18.2481 16.874 18.2678 16.8546L22.092 13.1115C22.1711 13.0346 22.2771 12.9916 22.3874 12.9916C22.4977 12.9916 22.6037 13.0346 22.6829 13.1115Z",fill:"white"})}),(0,_.jsx)("defs",{children:(0,_.jsx)("clipPath",{id:"clip0_1765_9946",children:(0,_.jsx)("rect",{width:"20",height:"12.2531",fill:"white",transform:"translate(4 8)"})})})]})},el="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAHdElNRQfoDAIVODUC+w+GAAAGsUlEQVRYw6WXbYwWVxXHf+fOLAtCXYS2QJdIaClipGCTknXXNqBQMVHbfmhItH4Aral+IAEaG03UxJgYKQJGTUxtDWjaxDSNtcZqIGDwpRuW1oYiVqpdpZSlpC3qysu+PHPP3w/3mXnmeXZbPzjJZO7cefn/z/mfe865xlscq3dGDIguGiHLaMQVLja4s87FShcLo5jtApdddnHexUmHIy475JmdUkPRAQMu7gzT4ljnxJpdk0QPmMFkyAKN2OfOFpc2uuh1J3MZDrjAvXmVEQUuoosRxw642FcEG7IoDxiFxNiu8NYE+vcUYIFYRKKs113bXWx2Z34CoQZsVHOiCZ7mopdzdsFhv8NexEgRDHMxUSNREbh1bwNZwBsFblmfu/a4a6AEENYO5i3AOoEWeEUCF4MOOxBDMQAOk99OJALA2u80sBCwWGBZWG/yRwMaCAbBIAsQTJT3gea1OWfNeaPzvjoHEI85rA8ObtB1v7cIdJkIHgkh9AXpocy0LJjIKvB2wPpZB0v3wkrw5jdNEjeYeMhFX3BAyfn2ke9NUrgB9LrrcZcGJFCld4fWNddXbvbWfWzGR6xJFZsBGh0cBh3bBIxIEGTQ3W0h4NuDaSAzyAxCmGq11Vzf5uaa1aG8p+WFtrEYQGwvjICJkAEqvC+YNmcmMlMNvEaCdrcbyUvQAWDTjVuESHObM6cPGWHmzDwLaEtmzG9Z3qF1zUpXmuuZBb1z4bqeNC6f0WE1NtUTwHzEloiy3BvFisy0sYoLlQtT6XW15md2Qf9SY+2Ngfdca/TMSm/9ewz+/Boc/It45h/i4kSTsKw90SQJsPTvjSZbkWemDW7qTRZ0JEYJWSKxZJ7xmf6M224MzMzbX1s8F1YugjtvMg6eErt/4/z1jUrz1rXUKxnZC2zIg2mdBTK1mFUOKC1fOt/48kdzVixIz86Nij+eEacvpJWyZJ5xy7th8VzjjpuMJfMCW58QL73ekXPVlhsyE+vyzFiplJyauEIyrGIquruMq7qTxk+dcB495rzyTzFepCUWLIFv/kBg081Gd55WUk1IDGFTS89K++TDYxddzKnWcbluHd450xgdh7EGrOo1rr868PMTzqWJRGZ2d8oB/xpL33Xnxl2rjeNn4blXRXduzJ4B5y+28kWscA
1wXl+yeR654FFZPHoUb710YuPeDOUdPO48di1xptKpeEeHqOcYXNwQKGd88EDk3mqxtxPSfGRlsXRtYt8z4ytPOH/7eqpg1Aso7fYKgK4NPrMpYvsC4/poMA34yVJIQC3sCD9yecdsNyaV5yPj6ryJnR1PAvSNP4J+/1cgDfLbfePaMGGtM7Qdyl12WmKOmXgKKAp54vmBRTxfLrjE+tSYjBPjRM5FrrzIeuD2jf2lLzw8vN4JlfPVp581LsO1DgXv7jSzAiXPw/d+JiYLpjsu26Yfjf5O0rF5WoxsNT9G/bX0XKxakmPjlSee6HlizJJXSX7/oRDc+vjKR+f2wODcKd78/gR8/C9uedF44myJxmhh4OY/ipMQyqaWxmjn95TfEroMFOzbkvG+RceeqViPx1Aln1yEnOow1AnffHCpJAJ5/Vex4UvzptZRdY/O/1dJIS/NkcNmR6MTYah6qzseA4TfFtw4UvHBW1bc/O+7sPhwZHYf/jMODh5yfPudVbXj2TAJ/8XxrOZagNamj4Ei2/GNfuyRxh8t6BG2l15up+MIVODEiFr8rcPS0+O6RBF6mrrEGHHtFzOo2Lo7Dl37hvPQ6mNV6R9JYKgnYWcE37K5HlE2OT/5A0udaPUBHH+BQOMzuNsYLuDyZflTW+fTcmJFDHhJhaZqewMuewXDxcDR9IYyPN6Jj+6K4MF2vV8qBtZJScqVRNi6lpGONVJis5mpKi1WbgwsY+zIsBpcR8mzIZfuTRVZrtdu9odrptR/Xx5XONXJqBmCN0P6YMUQq9WJiwt0Je102WHdbpxSqydMObBWYdwDWLVcqcIMYe3NPjg0Ht84od0Ajju1w2XCr9e6QoqM9V23ZtnmI6cfAMMb9AY0YEHdb6oobEh4y3H3Ize6LsmGvN5IdUnhttdQ9UVrfLk/ljWEZ9wXsqAdQk1EA+O22GcgdZTke/bAs3OPY4HSdcB20HhvVtTMu0jmI8ekAhz2IICj2hKpNqI60NcuIRUHEej1quzubXa2tmZhenrfZmv3YYQ9ipDAIgvHptmblccuDjdRcmjFpWbDi/9ycZjZkRbk5jYztai/AUwiUx+qdEQB/m+25i9lxyvbcjrg45Lmd0uT/3p7/Fw6ODf+WO019AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI0LTEyLTAyVDIxOjU2OjQ4KzAwOjAwMVpslgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNC0xMi0wMlQyMTo1Njo0OCswMDowMEAH1CoAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjQtMTItMDJUMjE6NTY6NTMrMDA6MDDZv6GRAAAAAElFTkSuQmCC";function ed(e){return["ethereum","solana"].includes(e.chainType)}function ef(e){let t=e.replace("eip155:","");if(t)return parseInt(t);throw Error("Chain ID not compatible with CAIP-2 format.")}let ep=e=>e.filter(e=>"wallets"===e.method||("exchange"===e.method?"coinbase"===e.provider:"card"===e.method||"payment-request"===e.method?"coinbase"===e.provider||"moonpay"===e.provider:(e.method,!1))),eh={[s.R.id]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[c.F.id]:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",[u.v.id]:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",[l.O.id]:"0x5fd84259d66Cd46123540766Be93DFE6D43130D7",[d.y.id]:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",[f.v.id]:"0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",[p.u.id]:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",[h.L.id]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[b.p.id]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[m.c.id]:"0x5425890298aed601595a70ab815c96711a31bc65",[y.y.id]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[g.Z.id]:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",999:"0xb88339CB7199b77E23DB6E890353E22632Ba630f",[w.m.id]:"0x754704Bc059F8C67012fEd69BC8A327a5aafb603"},eb=({address:e,appConfig:t,fundWalletConfig:n,methodScreen:i,chainIdOverride:a,comingFromSendTransactionScreen:o=!1,onComplete:s,onError:c})=>{let u,l;if(!t.fundingConfig)throw Error("Wallet funding is not enabled");let d=ep(t.fundingConfig.options);if(d.length<1)throw Error("Wallet funding is not enabled");u=a||(n?.chain?n.chain.id:ef(t.fundingConfig.defaultRecommendedCurrency.chain));let f=t.chains.find(e=>e.id===u);if(!f)throw new r.b(`Funding chain ${u} is not in PrivyProvider chains list`);let p=n?.amount??t.fundingConfig.defaultRecommendedAmount,h=!1;function b(){if(!u)return;let e=eh[u];d.find(e=>"wallets"===e.method)&&!e&&console.warn("Attempting to fund with USDC on chain where USDC address is not known. Funding via external wallet will be disabled."),l=e,h=!0}n&&"asset"in n?"USDC"===n.asset?b():"string"!=typeof n.asset&&"erc20"in n.asset&&(h=(l=n.asset.erc20)===eh[f.id]):"USDC"===t.fundingConfig.defaultRecommendedCurrency.asset&&b();let m=n?.defaultFundingMethod;return{chainType:"ethereum",address:e,amount:p,chain:f,erc20Address:l,erc20ContractInfo:h?{symbol:"USDC",decimals:6}:void 0,isUSDC:h,methodScreen:i,supportedOptions:d,comingFromSendTransactionScreen:o,defaultFundingMethod:m,usingDefaultFundingMethod:!!m,preferredCardProvider:n?.card?.preferredProvider,crossChainBridgingEnabled:t.fundingConfig.crossChainBridgingEnabled??!1,solanaChain:"solana:mainnet",uiConfig:n&&"uiConfig"in n?n.uiConfig:void 0,externalSolanaFundingScreen:null,onComplete:s??(()=>{}),onError:c??(()=>{})}};function em({address:e,fundWalletConfig:t,appConfig:n,comingFromSendTransactionScreen:r,externalSolanaFundingScreen:i,methodScreen:a}){if(!n.fundingConfig)throw Error("Wallet funding is not enabled");let o=ep(n.fundingConfig.options);if(o.length<1)throw Error("Wallet funding is not enabled");if("USDC"===t?.asset&&"solana:testnet"===t?.chain)throw Error("USDC funding is not supported on the Solana testnet");let s=t?.amount??n.fundingConfig.defaultRecommendedAmount,c=t?.defaultFundingMethod;return{chainType:"solana",address:e,supportedOptions:o,amount:s,isUSDC:"USDC"===t?.asset,methodScreen:a,comingFromSendTransactionScreen:r,chain:t?.chain||"solana:mainnet",crossChainBridgingEnabled:n.fundingConfig.crossChainBridgingEnabled??!1,defaultFundingMethod:c,preferredCardProvider:t?.card?.preferredProvider,usingDefaultFundingMethod:!!c,uiConfig:t?.uiConfig,externalSolanaFundingScreen:i,onComplete:()=>{},onError:()=>{}}}function ey(){let{user:e,getAccessToken:t}
1=(0,k.u)(),{walletProxy:n,openModal:a,client:o}=(0,r.u)(),{setModalData:s}=(0,k.a)(),c=(0,x.u)();return(0,E.useMemo)(()=>({exportWallet:u=>new Promise(async(l,d)=>{if(!e)return void d(Error("User must be authenticated before exporting their Privy wallet"));u&&"target"in u&&u&&(u=void 0);let f=u?.address?(0,k.j)(e,u.address):(0,k.d)(e);if(!f)return void d(new r.b("User must have an embedded wallet."));let p=f.address,{entropyId:h,entropyIdVerifier:b}=(0,i.d)(e,f),m=(0,k.b)(f);if(!p)return void d(Error("User does not have an HD Ethereum wallet. To export an imported wallet, pass the `address` of the wallet to `exportWallet`."));if(!(0,A.U)(p))return void d(Error("Must provide a valid Ethereum address."));let y={recoveryMethod:f.recoveryMethod,connectingWalletAddress:f.address,isUnifiedWallet:m,entropyId:h,entropyIdVerifier:b,onCompleteNavigateTo:"EmbeddedWalletKeyExportScreen",onFailure:d,shouldForceMFA:!0};await t()&&n?ed(f)?(s({keyExport:{appId:c.id,appClientId:c.appClientId,origin:o.apiUrl,address:f.address,entropyId:h,entropyIdVerifier:b,hdWalletIndex:f.walletIndex,chainType:f.chainType,walletId:f.id,isUnifiedWallet:m,imported:f.imported,onSuccess:l,onFailure:d,showBackButton:u?.showBackButton},connectWallet:y}),a("EmbeddedWalletConnectingScreen")):d(Error(`Export is not supported for ${f.chainType} wallets`)):d(Error("Must have valid access token."))})}),[e,t,n,a,o,s,c])}let eg=()=>{let{client:e,setUser:t}=(0,r.u)();return{unlink:(0,E.useCallback)(async({address:n})=>{let r;return t(r=n.startsWith("0x")?await e.unlinkEthereumWallet(n):await e.unlinkSolanaWallet(n)),r},[e,t])}}},52986:function(e,t,n){"use strict";n.d(t,{S:function(){return F},a:function(){return g},b:function(){return y},c:function(){return P},d:function(){return v},e:function(){return S},f:function(){return I},g:function(){return O},h:function(){return T},i:function(){return D},j:function(){return R},k:function(){return U},l:function(){return $},m:function(){return W},o:function(){return C},p:function(){return M},r:function(){return _},s:function(){return x},u:function(){return er},y:function(){return V}});var r=n(63858),i=n(97422),a=n(2265),o=n(56079),s=n(35293),c=n(7756),u=n(13461),l=n(23406),d=n(18482),f=n(95046),p=n(24257),h=n(28771),b=n(8764);function m(e){return{name:e.metadata?.shortName||e.name||"",universalLink:e.mobile.universal,deepLink:e.mobile.native}}function y(e,t){let n=m(t);if(r.tq&&r.Dt&&n.universalLink)return k(n.universalLink,e);if(n.deepLink)return A(n.deepLink,e);if(n.universalLink)return k(n.universalLink,e);throw new i.b(`Unsupported wallet ${t.id}`)}function g(e,t){let n=m(t);if(n.universalLink)return k(n.universalLink,e)}let w="WALLETCONNECT_DEEPLINK_CHOICE";function v(){try{localStorage.removeItem(w)}catch{}}function x({href:e,name:t}){try{localStorage.setItem(w,JSON.stringify({href:e,name:t}))}catch{}}function _(){try{localStorage.removeItem(w)}catch{}}function E(e){return e.startsWith("http://")||e.startsWith("https://")}function A(e,t){if(E(e))return k(e,t);let n=e;return n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),{redirect:`${n}wc?uri=${encodeURIComponent(t)}`,href:n}}function k(e,t){if(!E(e))return A(e,t);let n=e;return n.endsWith("/")||(n=`${n}/`),{redirect:`${n}wc?uri=${encodeURIComponent(t)}`,href:n}}function C(e,t){window.open(e,t,"noreferrer noopener")}function P(e){return crypto.getRandomValues(new Uint8Array(e))}function S(){return d.c(P(36))}function I(){return S()}async function T(e,t="S256"){if("S256"!=t)return e;{let t=await async function(e){let t=(new TextEncoder).encode(e);return new Uint8Array(await crypto.subtle.digest("SHA-256",t))}(e);return d.c(t)}}function O(){let e=o.a.get(u.C);if(!e)throw new i.b("Authentication error.");return e}let M=({address:e,nonce:t})=>`${window.location.host} wants you to sign in with your Solana account: 2${e} 3 4You are proving you own ${e}. 5 6URI: ${window.location.origin} 7Version: 1 8Chain ID: mainnet 9Nonce: ${t} 10Issued At: ${(new Date).toISOString()} 11Resources: 12- https://privy.io`;class N{async authenticate(){if(!this.api)throw new i.b("Auth flow has no API instance");try{return await this.api.post(l.o,{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:this.meta.codeVerifier,provider:this.meta.provider,mode:this.meta.disableSignup?"no-signup":"login-or-sign-up"})}catch(e){throw(0,i.f)(e)}}async link(){if(!this.api)throw new i.b("Auth flow has no API instance");try{return await this.api.post(l.h,{authorization_code:this.meta.authorizationCode,state_code:this.meta.stateCode,code_verifier:this.meta.codeVerifier,provider:this.meta.provider})}catch(e){throw(0,i.f)(e)}}constructor(e){this.meta=e}}async function B({api:e,requesterAppId:t,providerAppId:n}){let r=(await e.get(`/api/v1/apps/${t}/cross-app/connections`)).connections.find(e=>e.provider_app_id===n);if(!r)throw new i.b("Invalid connected app");return{name:r.provider_app_name,logoUrl:r.provider_app_icon_url||void 0,apiUrl:r.provider_app_custom_api_url,readOnly:r.read_only,customAuthAuthorizeUrl:r.provider_app_custom_auth_authorize_url,customAuthTransactUrl:r.provider_app_custom_auth_transact_url}}async function R({api:e,appId:t}){let n=S(),r=I(),a=await T(n);try{let{url:i}=await e.post(l.i,{provider:`privy:${t}`,redirect_to:window.location.href,code_challenge:a,state_code:r});return{url:i,stateCode:r,codeVerifier:n}}catch(e){throw(0,i.f)(e)}}async function U({appId:e,stateCode:t,codeVerifier:n,authorizationCode:r,action:a,client:o,disableSignup:s}){if(!r||!t)throw new i.b("[Cross-App AuthFlow] Authorization and state codes code must be set prior to calling authenicate.");if("undefined"===r)throw new i.b("User denied confirmation during cross-app auth flow");try{let i=new N({authorizationCode:r,stateCode:t,codeVerifier:n,provider:`privy:${e}`,disableSignup:!!s});o.startAuthFlow(i);let c="link"===a?await o.link():await o.authenticate(),u=c.oAuthTokens?.accessToken;return console.debug(),u}catch(t){let e=(0,i.f)(t);if(e.privyErrorCode===i.c.ACCOUNT_TRANSFER_REQUIRED)throw e;if(e.privyErrorCode)throw new i.b(e.message||"Invalid code during cross-app auth flow.",void 0,e.privyErrorCode);
12if("User denied confirmation during cross-app auth flow"===e.message)throw new i.b("Invalid code during cross-app auth flow.",void 0,i.c.OAUTH_USER_DENIED);throw new i.b("Invalid code during cross-app auth flow.",void 0,i.c.UNKNOWN_AUTH_ERROR)}}let F=Symbol("solana-funding-plugin"),$=Symbol("solana-ledger-plugin"),D=async({user:e,accessToken:t,proxy:n,refreshSessionAndUser:r,privy:i,appConfig:a,recoverEmbeddedWallet:c,setUser:u,walletIndex:l,chainType:d,recoveryMethod:f,recoveryPassword:p,recoveryAccessToken:m,idempotencyKey:y,additionalSigners:g})=>{if(0===l){if("user-controlled-server-wallets-only"===a.embeddedWallets.mode)await (0,b.U)(i,{request:{chain_type:d,additional_signers:g?(0,o.q)(g):void 0},headers:y?{"privy-idempotency-key":y}:void 0});else if("ethereum"===d){let r=(0,s.f)(e);r&&await c({address:r.address}),await n.create({accessToken:t,solanaAddress:r?.address,recoveryMethod:f,recoveryPassword:p,recoveryAccessToken:m})}else{if("solana"!==d)throw Error("Invalid input to create wallet");{let r=(0,s.d)(e);r&&await c({address:r.address}),await n.createSolana({accessToken:t,ethereumAddress:r?.address,recoveryMethod:f,recoveryPassword:p,recoveryAccessToken:m})}}}else if("user-controlled-server-wallets-only"===a.embeddedWallets.mode)await (0,b.U)(i,{request:{chain_type:d,additional_signers:g?(0,o.q)(g):void 0}});else{let{entropyId:r,entropyIdVerifier:i}=(0,h.d)(e);await c(),await n.addWallet({accessToken:t,entropyId:r,entropyIdVerifier:i,chainType:d,hdWalletIndex:l})}let w=await r(),v=(0,h.j)(w,{chainType:d,walletIndex:l})[0];return u(w),{user:w,account:v}},L=async({user:e,address:t,client:n,request:r,requesterAppId:a,reconnect:o})=>{n.createAnalyticsEvent({eventName:"cross_app_request_started",payload:{address:t,method:r.method}});let s=e?.linkedAccounts.find(e=>"cross_app"===e.type&&(e.embeddedWallets.some(e=>e.address===t)||e.smartWallets.some(e=>e.address===t)));if(!e||!s)throw n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:"Cannot request a signature with this wallet address",address:t}}),new i.b("Cannot request a signature with this wallet address");let u=n.getProviderAccessToken(s.providerApp.id),l=await B({api:n.api,requesterAppId:a,providerAppId:s.providerApp.id});if(!u){if(l.readOnly)throw console.error("cannot transact against a read-only provider app"),new i.b("Cannot transact against a read-only provider app");await o({appId:s.providerApp.id,action:"link"})&&(u=n.getProviderAccessToken(s.providerApp.id))}if(!u)throw n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:"Transactions require a valid token",address:t}}),new i.b("Transactions require a valid token");let d=new URL(l.customAuthTransactUrl||`${l.apiUrl}/oauth/transact`);d.searchParams.set("token",u||""),d.searchParams.set("request",j(r));let f=(0,c.X)({location:d.href});if(!f)throw n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:"Missing token",address:t}}),new i.b("Failed to initialize signature request");return new Promise((e,a)=>{let o=setTimeout(()=>{l(),a(new i.b("Request timeout")),n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:"Request timeout",address:t}})},12e4),c=setInterval(()=>{f.closed&&(l(),a(new i.b("User rejected request")),n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:"User rejected request",address:t}}))},300),u=i=>{i.data&&("set"===i.data.token?.action&&void 0!==i.data.token?.value?n.storeProviderAccessToken(s.providerApp.id,i.data.token.value):"clear"===i.data.token?.action&&n.storeProviderAccessToken(s.providerApp.id,null),"PRIVY_CROSS_APP_ACTION_RESPONSE"===i.data.type&&i.data.result&&(l(),e(i.data.result),n.createAnalyticsEvent({eventName:"cross_app_request_success",payload:{address:t,method:r.method}})),"PRIVY_CROSS_APP_ACTION_ERROR"===i.data.type&&i.data.error&&(l(),a(i.data.error),n.createAnalyticsEvent({eventName:"cross_app_request_error",payload:{error:i.data.error,address:t}})))};window.addEventListener("message",u);let l=()=>{f.close(),clearInterval(c),clearTimeout(o),window.removeEventListener("message",u)}})},j=e=>JSON.stringify({content:{request:{request:z(e,f.NC)}},timestamp:Date.now(),callbackUrl:window.origin}),z=(e,t)=>"bigint"==typeof e?t(e):Array.isArray(e)?e.map(e=>z(e,t)):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[e,z(n,t)])):e,W=()=>{let{user:e,getAccessToken:t}=(0,s.u)(),{client:n,setUser:r,openModal:l,inProgressAuthFlowRef:d,inProgressLoginOrLinkMethodRef:f}=(0,i.u)(),h=(0,u.u)(),b=(0,p.a)(),{setModalData:m}=(0,s.a)(),y=(0,a.useCallback)(t=>e?.linkedAccounts.some(e=>
12"cross_app"===e.type&&e.smartWallets.some(e=>e.address===t))??!1,[e]),g=(0,a.useCallback)(async({appId:e,action:r,disableSignup:a})=>{let o=await t();if("link"===r&&!o)throw b("linkAccount","onError",i.c.MUST_BE_AUTHENTICATED,{linkMethod:`privy:${e}`}),new i.b("User must be authenticated before linking an account.");if("login"===r&&o)throw b("login","onError",i.c.UNKNOWN_AUTH_ERROR),new i.b("Attempted to log in, but user is already logged in. Use a `link` helper instead.");f.current=`privy:${e}`,d.current=r;let s=(0,c.X)();return n.createAnalyticsEvent({eventName:"cross_app_auth_started",payload:{providerAppId:e}}),new Promise(async(t,i)=>{let{name:o,logoUrl:c}=await B({api:n.api,providerAppId:e,requesterAppId:h.id});m({crossAppAuth:{appId:e,name:o,logoUrl:c,action:r,popup:s,disableSignup:a,onSuccess:t,onError:i}}),l("CrossAppAuthScreen")})},[t,b,f,d,n,h.id,m,l]),w=(0,a.useCallback)(async({subject:t})=>{let a=e?.linkedAccounts.find(e=>"cross_app"===e.type&&e.subject===t)?.providerApp;if(!a)throw new i.b("Invalid subject");n.storeProviderAccessToken(a.id,null);let o=await n.unlinkOAuth(`privy:${a.id}`,t);return r(o),o},[e,n,r]),v=(0,a.useCallback)((t,{address:r,chainId:i})=>L({user:e,client:n,address:r,requesterAppId:h.id,request:{method:y(r)?"privy_signSmartWalletMessage":"personal_sign",params:[t,r],chainId:i},reconnect:g}),[e,n,h.id,y,g]),x=(0,a.useCallback)((t,{address:r,chainId:i})=>{let a=(0,o.j)(t);return L({user:e,client:n,address:r,requesterAppId:h.id,request:{method:y(r)?"privy_signSmartWalletTypedData":"eth_signTypedData_v4",params:[r,a],chainId:i},reconnect:g})},[e,n,h.id,y,g]),_=(0,a.useCallback)((t,{address:r})=>L({user:e,client:n,address:r,requesterAppId:h.id,request:{method:y(r)?"privy_sendSmartWalletTx":"eth_sendTransaction",params:[t],chainId:t.chainId},reconnect:g}),[e,n,h.id,y,g]),E=(0,a.useCallback)((t,{address:r})=>L({user:e,client:n,address:r,requesterAppId:h.id,request:{method:y(r)?"privy_signSmartWalletTx":"eth_signTransaction",params:[t],chainId:t.chainId},reconnect:g}),[e,n,h.id,y,g]);return(0,a.useMemo)(()=>({startCrossAppAuthFlow:g,unlinkCrossAppAccount:w,signMessageWithCrossAppWallet:v,signTypedDataWithCrossAppWallet:x,sendTransactionWithCrossAppWallet:_,signTransactionWithCrossAppWallet:E}),[g,w,v,x,_,E])},G=()=>{let{client:e,setUser:t}=(0,i.u)();return{unlink:(0,a.useCallback)(async({address:n})=>{let r=await e.unlinkEmail(n);return t(r),r},[e,t])}},q=()=>{let{client:e,setUser:t}=(0,i.u)();return{unlink:(0,a.useCallback)(async({fid:n})=>{let r=await e.unlinkFarcaster(n);return t(r),r},[e,t])}},H=()=>{let{client:e,setUser:t}=(0,i.u)();return{unlink:(0,a.useCallback)(async({provider:n,subject:r})=>{let i=await e.unlinkOAuth(n,r);return t(i),i},[e,t])}},V=()=>{let{client:e,setUser:t,walletProxy:n}=(0,i.u)(),{getAccessToken:r}=(0,s.u)(),o=(0,u.u)(),c=o?.passkeys?.shouldUnenrollMfaOnUnlink??!1;return{unlink:(0,a.useCallback)(async({credentialId:i})=>{let a=await r();if(!a)throw Error("Must have valid access token to enroll in MFA");if(!n)throw Error("Wallet proxy not initialized.");await n.unlinkPasskeyAccount({credentialId:i,accessToken:a,removeAsMfa:c});let o=await e.getAuthenticatedUser();return t(o),o},[c,e,r,t,n])}},Z=()=>{let{client:e,setUser:t}=(0,i.u)();return{unlink:(0,a.useCallback)(async({phoneNumber:n})=>{let r=await e.unlinkPhone(n);return t(r),r},[e,t])}},K=()=>{let{client:e,setUser:t}=(0,i.u)();return{unlink:(0,a.useCallback)(async({telegramUserId:n})=>{let r=await e.unlinkTelegram(n);return t(r),r},[e,t])}},Y=e=>e.reduce((e,t)=>!e||e.walletIndex<t.walletIndex?t:e,null),J=async({appConfig:e,getAccessToken:t,initializeWalletProxy:n,user:r,privy:a,emitPrivyEvent:o,recoverEmbeddedWallet:s,setModalData:c,openModal:u,setUser:l,options:d,timeoutDuration:f,refreshSessionAndUser:p,chainType:b,idempotencyKey:m,additionalSigners:y})=>{let[g,w]=await Promise.all([n(f),t()]);if(!w||!r)throw o("createWallet","onError",i.c.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");if(!g&&e.customAuth?.enabled)throw o("createWallet","onError",i.c.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");if(y&&"user-controlled-server-wallets-only"!==e.embeddedWallets.mode)throw new i.b("Specifying additionalSigners is only supported for TEE execution and this app uses on-device execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");
12if(d&&"walletIndex"in d&&"number"==typeof d.walletIndex){if("user-controlled-server-wallets-only"===e.embeddedWallets.mode)throw o("createWallet","onError",i.c.INVALID_DATA),Error("Invalid input, use `createAdditional` instead of `walletIndex` to create additional wallets.");return X({accessToken:w,appConfig:e,privy:a,emitPrivyEvent:o,openModal:u,proxy:g,refreshSessionAndUser:p,recoverEmbeddedWallet:s,setModalData:c,user:r,walletIndex:d.walletIndex,chainType:b,setUser:l,additionalSigners:y})}let v=d&&"createAdditional"in d&&d.createAdditional,x=(0,h.j)(r,{chainType:b});if(x[0]&&!v)throw o("createWallet","onError",i.c.EMBEDDED_WALLET_ALREADY_EXISTS),Error("User already has an embedded wallet.");return X({accessToken:w,appConfig:e,privy:a,emitPrivyEvent:o,openModal:u,proxy:g,recoverEmbeddedWallet:s,setModalData:c,user:r,walletIndex:(Y(x)?.walletIndex??-1)+1,chainType:b,refreshSessionAndUser:p,setUser:l,idempotencyKey:m,additionalSigners:y})},X=async({accessToken:e,appConfig:t,privy:n,emitPrivyEvent:r,proxy:a,refreshSessionAndUser:o,recoverEmbeddedWallet:c,user:u,walletIndex:l,setModalData:d,openModal:f,chainType:p,setUser:b,idempotencyKey:m,additionalSigners:y})=>{if(l<0)throw r("createWallet","onError",i.c.EMBEDDED_WALLET_CREATE_ERROR),Error(`A negative walletIndex (${l}
12) is invalid.`);let g=(0,s.g)(u);if(l>0&&!g)throw r("createWallet","onError",i.c.EMBEDDED_WALLET_NOT_FOUND),Error("Must have an existing embedded wallet to create an additional wallet.");if(t.embeddedWallets.requireUserOwnedRecoveryOnCreate&&"user-controlled-server-wallets-only"===t.embeddedWallets.mode)throw r("createWallet","onError",i.c.EMBEDDED_WALLET_CREATE_ERROR),Error("User owned recovery not yet supported for this app.");if(!g&&t.embeddedWallets.requireUserOwnedRecoveryOnCreate)return await Q({emitPrivyEvent:r,setModalData:d,openModal:f,chainType:p});let w=(0,h.j)(u,{chainType:p,walletIndex:l})[0];if(w)return{user:u,account:w};if(0===l&&!a)return Q({emitPrivyEvent:r,setModalData:d,openModal:f,chainType:p});if(!a)throw r("createWallet","onError",i.c.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");return D({appConfig:t,walletIndex:l,chainType:p,user:u,accessToken:e,proxy:a,refreshSessionAndUser:o,privy:n,recoverEmbeddedWallet:c,setUser:b,idempotencyKey:m,additionalSigners:y})},Q=async({emitPrivyEvent:e,setModalData:t,openModal:n,chainType:r})=>new Promise((a,o)=>{t({createWallet:{onSuccess:({user:t,account:n})=>{e("createWallet","onSuccess",{wallet:n}),a({user:t,account:n})},onFailure:t=>{e("createWallet","onError",i.c.UNKNOWN_EMBEDDED_WALLET_ERROR),o(t)},callAuthOnSuccessOnClose:!1,shouldCreateEth:"ethereum"===r,shouldCreateSol:"solana"===r}}),n("EmbeddedWalletOnAccountCreateScreen")}),ee=()=>{let e=(0,u.u)(),t=(0,p.a)(),{setModalData:n}=(0,s.a)(),{initializeWalletProxy:r,recoverEmbeddedWallet:a,setUser:o,openModal:c,refreshSessionAndUser:l,privy:d,client:f}=(0,i.u)();return{create:async({chainType:s,options:p,latestUser:h,idempotencyKey:b})=>{let m=h;if(m||(m=await l()),!m)throw t("createWallet","onError",i.c.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");return await J({appConfig:e,privy:d,getAccessToken:()=>f.getAccessToken(),refreshSessionAndUser:l,initializeWalletProxy:r,user:m,emitPrivyEvent:t,recoverEmbeddedWallet:a,setModalData:n,openModal:c,setUser:o,options:p,timeoutDuration:u.W,chainType:s,idempotencyKey:b,additionalSigners:p?.signers})}}},et=async({emitPrivyEvent:e,getAccessToken:t,initializeWalletProxy:n,refreshSessionAndUser:r,user:a,appConfig:o},{privateKey:c,chainType:u,additionalSigners:l})=>{if(!a)throw e("linkAccount","onError",i.c.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new i.b("User must be authenticated before linking an account.");let d="user-controlled-server-wallets-only"===o.embeddedWallets.mode?"tee":"on-device";if(l&&"on-device"===d)throw new i.b("Specifying additionalSigners is only supported for TEE execution and this app uses on-device execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");let[f,p]=await Promise.all([t(),n(15e3)]);if(!p||!f)throw e("linkAccount","onError",i.c.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new i.b("User must be authenticated before linking an account.");let{address:h}=await p.importWallet({privateKey:c,accessToken:f,chainType:u,mode:d,additionalSigners:l}),b=await r(),m="solana"===u?(0,s.h)(b):(0,s.e)(b),y=m?.find(e=>e.address===h);if(!y)throw e("createWallet","onError",i.c.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to import wallet");return e("createWallet","onSuccess",{wallet:y}),y},en=()=>{let{user:e}=(0,s.u)(),{client:t,refreshSessionAndUser:n,initializeWalletProxy:r}=(0,i.u)(),o=(0,p.a)(),c=(0,u.u)();return{importWallet:(0,a.useCallback)(({privateKey:i,additionalSigners:a})=>et({getAccessToken:()=>t.getAccessToken(),user:e,initializeWalletProxy:r,refreshSessionAndUser:n,emitPrivyEvent:o,appConfig:c},{privateKey:i,chainType:"ethereum",additionalSigners:a}),[e,t,n,r,o,c])}},er=()=>{let{importWallet:e}=en(),{exportWallet:t}=(0,o.u)(),{createWallet:n}=function(e){let{create:t}=ee();return(0,p.u)("createWallet",void 0),{createWallet:async e=>{e&&"target"in e&&e&&(e=void 0);let{account:n}=await t({chainType:"ethereum",options:e});return n}}}(),{unlinkCrossAppAccount:r}=W(),{unlink:i}=(0,o.v)(),{unlink:c}=G(),{unlink:u}=Z(),{unlink:l}=q(),{unlink:d}=K(),{unlink:f}=V(),{unlink:h}=H(),b=(0,a.useCallback)(e=>i({address:e}),[i]),m=(0,a.useCallback)(e=>c({address:e}),[c]),y=(0,a.useCallback)(e=>u({phoneNumber:e}),[u]),g=(0,a.useCallback)(e=>l({fid:e}),[l]),w=(0,a.useCallback)(e=>d({telegramUserId:e}),[d]),v=(0,a.useCallback)(e=>f({credentialId:e}),[f]),x=(0,a.useCallback)(e=>h(e),[h]),_=(0,a.useCallback)(e=>h({provider:"google",subject:e}),[h]),E=(0,a.useCallback)(e=>h({provider:"twitter",subject:e}),[h]),A=(0,a.useCallback)(e=>h({provider:"twitch",subject:e}),[h]),k=(0,a.useCallback)(e=>h({provider:"discord",subject:e}),[h]),C=(0,a.useCallback)(e=>h({provider:"github",subject:e}),[h]),P=(0,a.useCallback)(e=>h({provider:"spotify",subject:e}),[h]),S=(0,a.useCallback)(e=>h({provider:"instagram",subject:e}),[h]),I=(0,a.useCallback)(e=>h({provider:"tiktok",subject:e}),[h]),T=(0,a.useCallback)(e=>h({provider:"line",subject:e}),[h]),O=(0,a.useCallback)(e=>h({provider:"linkedin",subject:e}),[h]),M=(0,a.useCallback)(e=>h({provider:"apple",subject:e}),[h]);return{...(0,a.useContext)(s.P),importWallet:e,createWallet:n,exportWallet:t,unlinkCrossAppAccount:r,unlinkWallet:b,unlinkEmail:m,unlinkPhone:y,unlinkGoogle:_,unlinkTwitter:E,unlinkTwitch:A,unlinkDiscord:k,unlinkGithub:C,unlinkSpotify:P,unlinkInstagram:S,unlinkTiktok:I,unlinkLine:T,unlinkLinkedIn:O,unlinkApple:M,unlinkFarcaster:g,unlinkTelegram:w,unlinkPasskey:v,unlinkOAuth:x}}},2725:function(e,t,n){"use strict";n.d(t,{dQ:function(){return i},t:function(){return a},zd:function(){return r}});let r={path:"/api/v1/wallets",method:"POST"},i={path:"/api/v1/wallets/:wallet_id/rpc",method:"POST"},a={path:"/api/v1/wallets/revoke",method:"POST"}},10259:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});
12let r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);return}return t}function s(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!a.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(r.test(e)||i.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}},36393:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=n(37836);t.Z=r},50069:function(e,t,n){"use strict";n.d(t,{g7:function(){return r},xv:function(){return i}});let r=new TextEncoder,i=new TextDecoder},18482:function(e,t,n){"use strict";n.d(t,{J:function(){return s},c:function(){return o}});var r=n(50069);let i=e=>{let t=e;"string"==typeof t&&(t=r.g7.encode(t));let n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))},a=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n},o=e=>i(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),s=e=>{let t=e;t instanceof Uint8Array&&(t=r.xv.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return a(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}}},55153:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(37335);function i(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=i(0,r.T_);i(0,r.Gb)},94498:function(e,t,n){"use strict";n.d(t,{F:function(){return A},c:function(){return function e(t={}){let{fetch:n=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:a=globalThis.AbortController}=t;async function o(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:C(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):T.has(n))){let n="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),s(e.request,{...e.options,retry:t-1})}}let n=function(e){let t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new A(`${i}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,n]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[n]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,s),n}let s=async function(e,s={}){let u;let l={request:e,options:function(e,t,n,r){let i;let a=function(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}(t?.headers??e?.headers,n?.headers,r);return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:a}}(e,s,t.defaults,i),response:void 0,error:void 0};if(l.options.method&&(l.options.method=l.options.method.toUpperCase()),!l.options.onRequest||(await I(l,l.options.onRequest),l.options.headers instanceof i||(l.options.headers=new i(l.options.headers||{}))),"string"==typeof l.request&&(l.options.baseURL&&(l.request=function(e,t){if(!t||"/"===t||x(e))return e;let n=function(e="",t){return(!function(e="",t){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(v,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}(n,e)}(l.request,l.options.baseURL)),l.options.query&&(l.request=function(e,t){let n=function e(t="",n){let r=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){let[,e,t=""]=r;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!x(t,{acceptRelative:!0}))return n?e(n+t):E(t);let[,i="",a,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",c=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(c=c.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:u,search:l,hash:d}=E(c);return{protocol:i.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:s,pathname:u,search:l,hash:d,[_]:!i}}(e),r={...function(e=""){let t=Object.create(null);for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=b(e[1].replace(c," "));if("__proto__"===r||"constructor"===r)continue;let i=b((e[2]||"").replace(c," "));void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}(n.search),...t};return n.search=Object.keys(r).filter(e=>void 0!==r[e]).map(e=>{var t;return(("number"==typeof(t=r[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${h(e)}=${p(t)}`).join("&"):`${h(e)}=${p(t)}`:h(e)}
12).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[_]?(e.protocol||"")+"//":"")+i+a+t+n+r}(n)}(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&C(l.options.method)){if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(l.options.body)){let e=l.options.headers.get("content-type");"string"!=typeof l.options.body&&(l.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(l.options.body).toString():JSON.stringify(l.options.body)),e||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")}else("pipeTo"in l.options.body&&"function"==typeof l.options.body.pipeTo||"function"==typeof l.options.body.pipe)&&!("duplex"in l.options)&&(l.options.duplex="half")}if(!l.options.signal&&l.options.timeout){let e=new a;u=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},l.options.timeout),l.options.signal=e.signal}try{l.response=await n(l.request,l.options)}catch(e){return l.error=e,l.options.onRequestError&&await I(l,l.options.onRequestError),await o(l)}finally{u&&clearTimeout(u)}if((l.response.body||l.response._bodyInit)&&!O.has(l.response.status)&&"HEAD"!==l.options.method){let e=(l.options.parseResponse?"json":l.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return S.test(t)?"json":"text/event-stream"===t?"stream":P.has(t)||t.startsWith("text/")?"text":"blob"}(l.response.headers.get("content-type")||"");switch(e){case"json":{let e=await l.response.text(),t=l.options.parseResponse||r.ZP;l.response._data=t(e);break}case"stream":l.response._data=l.response.body||l.response._bodyInit;break;default:l.response._data=await l.response[e]()}}return(l.options.onResponse&&await I(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600)?(l.options.onResponseError&&await I(l,l.options.onResponseError),await o(l)):l.response},u=async function(e,t){return(await s(e,t))._data};return u.raw=s,u.native=(...e)=>n(...e),u.create=(n={},r={})=>e({...t,...r,defaults:{...t.defaults,...r.defaults,...n}}),u}}});var r=n(10259);let i=/#/g,a=/&/g,o=/\//g,s=/=/g,c=/\+/g,u=/%5e/gi,l=/%60/gi,d=/%7c/gi,f=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(d,"|").replace(c,"%2B").replace(f,"+").replace(i,"%23").replace(a,"%26").replace(l,"`").replace(u,"^").replace(o,"%2F")}function h(e){return p(e).replace(s,"%3D")}function b(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let m=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g=/^([/\\]\s*){2,}[^/\\]/,w=/\/$|\/\?|\/#/,v=/^\.?\//;function x(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?m.test(e):y.test(e)||!!t.acceptRelative&&g.test(e)}let _=Symbol.for("ufo:protocolRelative");function E(e=""){let[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}class A extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let k=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function C(e="GET"){return k.has(e.toUpperCase())}let P=new Set(["image/svg","application/xml","application/xhtml","application/html"]),S=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function I(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}let T=new Set([408,409,425,429,500,502,503,504]),O=new Set([101,204,205,304])},13130:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return u}});var i,a,o,s=/^\s+/,c=/\s+$/;function u(e,t){if(t=t||{},(e=e||"")instanceof u)return e;if(!(this instanceof u))return new u(e,t);var n,i,a,o,l,d,f,p,h,b,m,y,g,w,v,x,_,E,A,k,P=(i={r:0,g:0,b:0},a=1,o=null,l=null,d=null,f=!1,p=!1,"string"==typeof(n=e)&&(n=function(e){e=e.replace(s,"").replace(c,"").toLowerCase();var t,n=!1;if(C[e])e=C[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=R.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=R.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=R.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=R.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=R.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=R.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=R.hex8.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),a:O(t[4])/255,format:n?"name":"hex8"}:(t=R.hex6.exec(e))?{r:O(t[1]),g:O(t[2]),b:O(t[3]),format:n?"name":"hex"}:(t=R.hex4.exec(e))?{r:O(t[1]+""+t[1]),g:O(t[2]+""+t[2]),b:O(t[3]+""+t[3]),a:O(t[4]+""+t[4])/255,format:n?"name":"hex8"}:!!(t=R.hex3.exec(e))&&{r:O(t[1]+""+t[1]),g:O(t[2]+""+t[2]),b:O(t[3]+""+t[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(U(n.r)&&U(n.g)&&U(n.b)?(h=n.r,b=n.g,m=n.b,i={r:255*I(h,255),g:255*I(b,255),b:255*I(m,255)},f=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):U(n.h)&&U(n.s)&&U(n.v)?(o=N(n.s),l=N(n.v),y=n.h,g=o,w=l,y=6*I(y,360),g=I(g,100),w=I(w,100),v=Math.floor(y),x=y-v,_=w*(1-g),E=w*(1-x*g),A=w*(1-(1-x)*g),i={r:255*[w,E,_,_,A,w][k=v%6],g:255*[A,w,w,E,_,_][k],b:255*[_,_,A,w,w,E][k]},f=!0,p="hsv"):U(n.h)&&U(n.s)&&U(n.l)&&(o=N(n.s),d=N(n.l),i=function(e,t,n){var r,i,a;function o(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(n.h,o,d),f=!0,p="hsl"),n.hasOwnProperty("a")&&(a=n.a)),a=S(a),{ok:f,format:n.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:a});this._originalInput=e,this._r=P.r,this._g=P.g,this._b=P.b,this._a=P.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||P.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=P.ok}function l(e,t,n){var r,i,a=Math.max(e=I(e,255),t=I(t,255),n=I(n,255)),o=Math.min(e,t,n),s=(a+o)/2;if(a==o)r=i=0;else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function d(e,t,n){var r,i,a=Math.max(e=I(e,255),t=I(t,255),n=I(n,255)),o=Math.min(e,t,n),s=a-o;if(i=0===a?0:s/a,a==o)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,v:a}}function f(e,t,n,r){var i=[M(Math.round(e).toString(16)),M(Math.round(t).toString(16)),M(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function p(e,t,n,r){return[M(B(r)),M(Math.round(e).toString(16)),M(Math.round(t).toString(16)),M(Math.round(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=u(e).toHsl();return n.s-=t/100,n.s=T(n.s),u(n)}function b(e,t){t=0===t?0:t||10;var n=u(e).toHsl();return n.s+=t/100,n.s=T(n.s),u(n)}function m(e){return u(e).desaturate(100)}
vendor: 8,537 bytes, line 12
12function y(e,t){t=0===t?0:t||10;var n=u(e).toHsl();return n.l+=t/100,n.l=T(n.l),u(n)}function g(e,t){t=0===t?0:t||10;var n=u(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),u(n)}function w(e,t){t=0===t?0:t||10;var n=u(e).toHsl();return n.l-=t/100,n.l=T(n.l),u(n)}function v(e,t){var n=u(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,u(n)}function x(e){var t=u(e).toHsl();return t.h=(t.h+180)%360,u(t)}function _(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var n=u(e).toHsl(),r=[u(e)],i=360/t,a=1;a<t;a++)r.push(u({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function E(e){var t=u(e).toHsl(),n=t.h;return[u(e),u({h:(n+72)%360,s:t.s,l:t.l}),u({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t=t||6,n=n||30;var r=u(e).toHsl(),i=360/n,a=[u(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(u(r));return a}function k(e,t){t=t||6;for(var n=u(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(u({h:r,s:i,v:a})),a=(a+s)%1;return o}u.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*((t=r.g/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,a;return t=this._r,n=this._g,r=this._b,i=this._a,a=[M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(Math.round(r).toString(16)),M(B(i))],e&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*I(this._r,255))+"%",g:Math.round(100*I(this._g,255))+"%",b:Math.round(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%)":"rgba("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=u(e);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},u.fromRatio=function(e,t){if("object"==r(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?n[i]=e[i]:n[i]=N(e[i]));e=n}return u(e,t)},u.equals=function(e,t){return!!e&&!!t&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},u.mix=function(e,t,n){n=0===n?0:n||50;var r=u(e).toRgb(),i=u(t).toRgb(),a=n/100;return u({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},u.readability=function(e,t){var n=u(e),r=u(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},u.isReadable=function(e,t,n){var r,i,a,o,s,c=u.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),a=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==a&&"large"!==a&&(a="small"),o={level:i,size:a}).level+o.size){case"AAsmall":case"AAAlarge":s=c>=4.5;break;case"AAlarge":s=c>=3;break;case"AAAsmall":s=c>=7}return s},u.mostReadable=function(e,t,n){var r,i,a,o,s=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,o=n.size;for(var l=0;l<t.length;l++)(r=u.readability(e,t[l]))>c&&(c=r,s=u(t[l]));return u.isReadable(e,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))};var C=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
120",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=u.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(C);function S(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function I(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,i="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function T(e){return Math.min(1,Math.max(0,e))}function O(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function B(e){return Math.round(255*parseFloat(e)).toString(16)}var R=(a="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",o="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+o),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+o),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"
vendor: 3,906 bytes, line 12
12+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!R.CSS_UNIT.exec(e)}},96104:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},19605:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(99112),i=n(29886);function a(e){let t=(0,i.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},6951:function(e,t,n){"use strict";n.d(t,{R:function(){return _}});var r=n(81830),i=n(30042),a=n(96104),o=n(21620),s=n(13955),c=n(6649),u=n(89045),l=n(58591),d=n(97225),f=n(32637),p=n(31006),h=n(18543),b=n(95046),m=n(8114),y=n(27031),g=n(37669),w=n(10639),v=n(11667),x=n(82857);async function _(e,t){let{account:o=e.account,authorizationList:d,batch:p=!!e.batch?.multicall,blockNumber:h,blockTag:w=e.experimental_blockTag??"latest",accessList:_,blobs:k,blockOverrides:C,code:P,data:S,factory:I,factoryData:T,gas:O,gasPrice:M,maxFeePerBlobGas:N,maxFeePerGas:B,maxPriorityFeePerGas:R,nonce:U,to:F,value:$,stateOverride:D,...L}=t,j=o?(0,a.T)(o):void 0;if(P&&(I||T))throw new c.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(P&&F)throw new c.G("Cannot provide both `code` & `to` as parameters.");let z=P&&S,W=I&&T&&F&&S,G=z||W,q=z?A({code:P,data:S}):W?function(e){let{data:t,factory:n,factoryData:i,to:a}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:s.pG,args:[a,t,n,i]})}({data:S,factory:I,factoryData:T,to:F}):S;try{(0,x.F)(t);let n=("bigint"==typeof h?(0,b.eC)(h):void 0)||w,r=C?i.o(C):void 0,a=(0,v.mF)(D),o=e.chain?.formatters?.transactionRequest?.format,s=(o||g.tG)({...(0,y.K)(L,{format:o}),accessList:_,account:j,authorizationList:d,blobs:k,data:q,gas:O,gasPrice:M,maxFeePerBlobGas:N,maxFeePerGas:B,maxPriorityFeePerGas:R,nonce:U,to:G?void 0:F,value:$},"call");if(p&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:s})&&!a&&!r)try{return await E(e,{...s,blockNumber:h,blockTag:w})}catch(e){if(!(e instanceof u.pZ)&&!(e instanceof u.mm))throw e}let c=(()=>{let e=[s,n];return a&&r?[...e,a,r]:a?[...e,a]:r?[...e,{},r]:e})(),l=await e.request({method:"eth_call",params:c});if("0x"===l)return{data:void 0};return{data:l}}catch(o){let r=function(e){if(!(e instanceof c.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:a}=await n.e(5026).then(n.bind(n,35026));if(!1!==e.ccipRead&&r?.slice(0,10)===a&&F)return{data:await i(e,{data:r,to:F})};if(G&&r?.slice(0,10)==="0x101bb98d")throw new l.Mo({factory:I});throw(0,m.P)(o,{...t,account:j,chain:e.chain})}}async function E(e,t){let{batchSize:n=1024,deployless:r=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:c=e.experimental_blockTag??"latest",data:f,to:m}=t,y=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,h.L)({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new u.pZ})(),g=("bigint"==typeof a?(0,b.eC)(a):void 0)||c,{schedule:v}=(0,w.S)({id:`${e.uid}.${g}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,p.R)({abi:o.F8,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===y?{data:A({code:s.xd,data:r})}:{to:y,data:r}},g]});return(0,d.k)({abi:o.F8,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:x,success:_}]=await v({data:f,to:m});if(!_)throw new l.VQ({data:x});return"0x"===x?{data:void 0}:{data:x}}
12function A(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:s.NO,args:[t,n]})}},92498:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(36212),i=n(95046),a=n(48586);async function o(e,t){let{address:n,abi:o,args:s,eventName:c,fromBlock:u,strict:l,toBlock:d}=t,f=(0,a.g)(e,{method:"eth_newFilter"}),p=c?(0,r.O)({abi:o,args:s,eventName:c}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof u?(0,i.eC)(u):u,toBlock:"bigint"==typeof d?(0,i.eC)(d):d,topics:p}]});return{abi:o,args:s,eventName:c,id:h,request:f(h),strict:!!l,type:"event"}}},89431:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(96104),i=n(31006),a=n(92915),o=n(93413),s=n(60730);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,dataSuffix:d="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...f}=t,p=(0,i.R)({abi:n,args:u,functionName:l});try{return await (0,o.s)(e,s.Q,"estimateGas")({data:`${p}${d?d.replace("0x",""):""}`,to:c,...f})}catch(t){let e=f.account?(0,r.T)(f.account):void 0;throw(0,a.S)(t,{abi:n,address:c,args:u,docsPath:"/docs/contract/estimateContractGas",functionName:l,sender:e?.address})}}},42665:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return c}});var r=n(25511),i=n(93413),a=n(72127),o=n(49235),s=n(48206);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),h=n||await (0,i.s)(e,o.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof h.baseFeePerGas)throw new r.e5;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,a.h)(e,{block:h,chain:c,request:u}),n=p(h.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},60730:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(96104),i=n(6649),a=n(87369),o=n(95046),s=n(85053),c=n(49268),u=n(97658);class l extends i.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.xr)({from:t?.address,to:p,value:void 0!==h&&`${(0,s.d)(h)}
12 ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==o&&`${(0,c.o)(o)} gwei`,maxFeePerGas:void 0!==l&&`${(0,c.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,c.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(37764),f=n(43149),p=n(27031),h=n(37669),b=n(11667),m=n(82857),y=n(86348);async function g(e,t){let{account:n=e.account,prepare:s=!0}=t,c=n?(0,r.T)(n):void 0,u=Array.isArray(s)?s:c?.type!=="local"?["blobVersionedHashes"]:void 0;try{let n=await (async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await (0,a.z)({authorization:t.authorizationList[0]}).catch(()=>{throw new i.G("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:r,authorizationList:l,blobs:d,blobVersionedHashes:f,blockNumber:g,blockTag:w,data:v,gas:x,gasPrice:_,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:k,nonce:C,value:P,stateOverride:S,...I}=s?await (0,y.ZE)(e,{...t,parameters:u,to:n}):t;if(x&&t.gas!==x)return x;let T=("bigint"==typeof g?(0,o.eC)(g):void 0)||w,O=(0,b.mF)(S);(0,m.F)(t);let M=e.chain?.formatters?.transactionRequest?.format,N=(M||h.tG)({...(0,p.K)(I,{format:M}),account:c,accessList:r,authorizationList:l,blobs:d,blobVersionedHashes:f,data:v,gasPrice:_,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:k,nonce:C,to:n,value:P},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:O?[N,T??e.experimental_blockTag??"latest",O]:T?[N,T]:[N]}))}catch(n){throw function(e,{docsPath:t,...n}){return new l((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:c,chain:e.chain})}}},72127:function(e,t,n){"use strict";n.d(t,{_:function(){return c},h:function(){return u}});var r=n(25511),i=n(21019),a=n(93413),o=n(49235),s=n(48206);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,a.s)(e,o.Q,"getBlock")({}),i=await t({block:r,client:e,request:u});if(null===i)throw Error();return i}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(r)}catch{let[t,i]=await Promise.all([n?Promise.resolve(n):(0,a.s)(e,o.Q,"getBlock")({}),(0,a.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let c=i-t.baseFeePerGas;if(c<0n)return 0n;return c}}},40909:function(e,t,n){"use strict";n.d(t,{b:function(){return p}});var r=n(96104),i=n(25511),a=n(79320),o=n(27031),s=n(16719),c=n(37669),u=n(93413),l=n(82857),d=n(49235),f=n(16416);async function p(e,t){let{account:n=e.account,accessList:p,authorizationList:h,chain:b=e.chain,blobVersionedHashes:m,blobs:y,data:g,gas:w,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:_,maxPriorityFeePerGas:E,nonce:A,nonceManager:k,to:C,type:P,value:S,...I}=t,T=await (async()=>{if(!n||!k||void 0!==A)return A;let t=(0,r.T)(n),i=b?b.id:await (0,u.s)(e,f.L,"getChainId")({});return await k.consume({address:t.address,chainId:i,client:e})})();(0,l.F)(t);let O=b?.formatters?.transactionRequest?.format,M=(O||c.tG)({...(0,o.K)(I,{format:O}),account:n?(0,r.T)(n):void 0,accessList:p,authorizationList:h,blobs:y,blobVersionedHashes:m,data:g,gas:w,gasPrice:v,maxFeePerBlobGas:x,maxFeePerGas:_,maxPriorityFeePerGas:E,nonce:T,to:C,type:P,value:S},"fillTransaction");try{let n=await e.request({method:"eth_fillTransaction",params:[M]}),r=(b?.formatters?.transaction?.format||s.Tr)(n.tx);delete r.blockHash,delete r.blockNumber,delete r.r,delete r.s,delete r.transactionIndex,delete r.v,delete r.yParity,r.data=r.input,r.gas&&(r.gas=t.gas??r.gas),r.gasPrice&&(r.gasPrice=t.gasPrice??r.gasPrice),r.maxFeePerBlobGas&&(r.maxFeePerBlobGas=t.maxFeePerBlobGas??r.maxFeePerBlobGas),r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas??r.maxFeePerGas),r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas??r.maxPriorityFeePerGas),r.nonce&&(r.nonce=t.nonce??r.nonce);let a=await (async()=>
12{if("function"==typeof b?.fees?.baseFeeMultiplier){let n=await (0,u.s)(e,d.Q,"getBlock")({});return b.fees.baseFeeMultiplier({block:n,client:e,request:t})}return b?.fees?.baseFeeMultiplier??1.2})();if(a<1)throw new i.Fz;let o=a.toString().split(".")[1]?.length??0,c=10**o,l=e=>e*BigInt(Math.ceil(a*c))/BigInt(c);return r.maxFeePerGas&&!t.maxFeePerGas&&(r.maxFeePerGas=l(r.maxFeePerGas)),r.gasPrice&&!t.gasPrice&&(r.gasPrice=l(r.gasPrice)),{raw:n.raw,transaction:{from:M.from,...r}}}catch(n){throw(0,a.$)(n,{...t,chain:e.chain})}}},49235:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(87655),i=n(95046),a=n(20621);async function o(e,{blockHash:t,blockNumber:n,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:s}={}){let c=s??!1,u=void 0!==n?(0,i.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||o,c]},{dedupe:!!u})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||a.Z)(l,"getBlock")}},75304:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});let r=new Map,i=new Map;async function a(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let a=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),a=t(e,i);return{clear:()=>{n.clear(),a.clear()},promise:n,response:a}}(t),o=a.response.get();if(o&&n>0&&Date.now()-o.created.getTime()<n)return o.data;let s=a.promise.get();s||(s=e(),a.promise.set(s));try{let e=await s;return a.response.set({created:new Date,data:e}),e}finally{a.promise.clear()}}let o=e=>`blockNumber.${e}`;async function s(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await a(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:t}))}},16416:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(21019);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},55094:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(95046);async function i(e,{address:t,blockNumber:n,blockTag:i="latest"}){let a=void 0!==n?(0,r.eC)(n):void 0,o=await e.request({method:"eth_getCode",params:[t,a||i]},{dedupe:!!a});if("0x"!==o)return o}},83677:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(18748),i=n(93413),a=n(5729);async function o(e,t){let{abi:n,address:o,args:s,blockHash:c,eventName:u,fromBlock:l,toBlock:d,strict:f}=t,p=u?(0,r.mE)({abi:n,name:u}):void 0,h=p?void 0:n.filter(e=>"event"===e.type);return(0,i.s)(e,a.y,"getLogs")({address:o,args:s,blockHash:c,event:p,events:h,fromBlock:l,toBlock:d,strict:f})}},99597:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(31703),i=n(21677);async function a(e,{filter:t}){let n="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof a[0])return a;let o=a.map(e=>(0,i.U)(e));return"abi"in t&&t.abi?(0,r.h)({abi:t.abi,logs:o,strict:n}):o}},48206:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},5729:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(36212),i=n(31703),a=n(95046),o=n(21677);async function s(e,{address:t,blockHash:n,fromBlock:s,toBlock:c,event:u,events:l,args:d,strict:f}={}){let p=l??(u?[u]:void 0),h=[];p&&(h=[p.flatMap(e=>(0,r.O)({abi:[e],eventName:e.name,args:l?void 0:d}))],u&&(h=h[0]));let b=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:h,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:h,fromBlock:"bigint"==typeof s?(0,a.eC)(s):s,toBlock:"bigint"==typeof c?(0,a.eC)(c):c}]})).map(e=>(0,o.U)(e));return p?(0,i.h)({abi:p,args:d,logs:b,strict:f??!1}):b}},85753:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(97658),i=n(95046),a=n(16719);async function o(e,{blockHash:t,blockNumber:n,blockTag:o,hash:s,index:c,sender:u,nonce:l}){let d=o||"latest",f=void 0!==n?(0,i.eC)(n):void 0,p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(c)]},{dedupe:!0}):(f||d)&&"number"==typeof c?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||d,(0,i.eC)(c)]},{dedupe:!!f}):u&&"number"==typeof l&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[u,(0,i.eC)(l)]},{dedupe:!0})),!p)throw new r.Bh({blockHash:t,blockNumber:n,blockTag:d,hash:s,index:c});return(e.chain?.formatters?.transaction?.format||a.Tr)(p,"getTransaction")}},33208:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(21019),i=n(95046);async function a(e,{address:t,blockTag:n="latest",blockNumber:a}){let o=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof a?(0,i.eC)(a):n]},{dedupe:!!a});return(0,r.ly)(o)}},30911:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(97658),i=n(55875);async function a(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.fA)(n,"getTransactionReceipt")}},3796:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(97225),i=n(31006),a=n(92915),o=n(93413),s=n(6951);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,...d}=t,f=(0,i.R)({abi:n,args:u,functionName:l});try{let{data:t}=await (0,o.s)(e,s.R,"call")({...d,data:f,to:c});return(0,r.k)({abi:n,args:u,functionName:l,data:t||"0x"})}catch(e){throw(0,a.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}},9660:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(96104),i=n(97225),a=n(31006),o=n(92915),s=n(93413),c=n(6951);async function u(e,t){let{abi:n,address:u,args:l,functionName:d,dataSuffix:f="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...p}=t,h=p.account?(0,r.T)(p.account):e.account,b=(0,a.R)({abi:n,args:l,functionName:d});try{let{data:r}=await (0,s.s)(e,c.R,"call")({batch:!1,data:`${b}${f?f.replace("0x",""):""}`,to:u,...p,account:h}),a=(0,i.k)({abi:n,args:l,functionName:d,data:r||"0x"}),o=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:a,request:{abi:o,address:u,args:l,dataSuffix:f,functionName:d,...p,account:h}}}catch(e){throw(0,o.S)(e,{abi:n,address:u,args:l,docsPath:"/docs/contract/simulateContract",functionName:d,sender:h?.address})}}},57478:function(e,t,n){"use strict";async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}n.d(t,{W:function(){return r}})},95131:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(87655),i=n(97658),a=n(93413),o=n(24606),s=n(49568),c=n(55894),u=n(47499),l=n(49235),d=n(85753),f=n(30911),p=n(38128);async function h(e,t){let n,h,b,m,y;let{checkReplacement:g=!0,confirmations:w=1,hash:v,onReplaced:x,retryCount:_=6,retryDelay:E=({count:e})=>200*~~(1<<e),timeout:A=18e4}=t,k=(0,u.P)(["waitForTransactionReceipt",e.uid,v]),C=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,P=!1,{promise:S,resolve:I,reject:T}=(0,s.n)(),O=A?setTimeout(()=>{y?.(),m?.(),T(new i.mc({hash:v}))},A):void 0;return m=(0,o.N7)(k,{onReplaced:x,resolve:I,reject:T},async t=>{if((b=await (0,a.s)(e,f.a,"getTransactionReceipt")({hash:v}).catch(()=>void 0))&&w<=1){clearTimeout(O),t.resolve(b),m?.();return}y=(0,a.s)(e,p.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:C,async onBlockNumber(o){let s=e=>{clearTimeout(O),y?.(),e(),m?.()},u=o;if(!P)try{if(b){if(w>1&&(!b.blockNumber||u-b.blockNumber+1n<w))return;s(()=>t.resolve(b));return}if(g&&!n&&(P=!0,await (0,c.J)(async()=>{(n=await (0,a.s)(e,d.f,"getTransaction")({hash:v})).blockNumber&&(u=n.blockNumber)},{delay:E,retryCount:_}),P=!1),b=await (0,a.s)(e,f.a,"getTransactionReceipt")({hash:v}),w>1&&(!b.blockNumber||u-b.blockNumber+1n<w))return;s(()=>t.resolve(b))}catch(o){if(o instanceof i.Bh||o instanceof i.Yb){if(!n){P=!1;return}try{h=n,P=!0;let i=await (0,c.J)(()=>(0,a.s)(e,l.Q,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:E,retryCount:_,shouldRetry:({error:e})=>e instanceof r.f});P=!1;let o=i.transactions.find(({from:e,nonce:t})=>e===h.from&&t===h.nonce);if(!o||(b=await (0,a.s)(e,f.a,"getTransactionReceipt")({hash:o.hash}),w>1&&(!b.blockNumber||u-b.blockNumber+1n<w)))return;let d="replaced";o.to===h.to&&o.value===h.value&&o.input===h.input?d="repriced":o.from===o.to&&0n===o.value&&(d="cancelled"),s(()=>{t.onReplaced?.({reason:d,replacedTransaction:h,transaction:o,transactionReceipt:b}),t.resolve(b)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(o))}}})}),S}},38128:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(21019),i=n(93413),a=n(24606),o=n(9338),s=n(47499),c=n(75304);function u(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:u,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
12onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,a.N7)(r,{onBlockNumber:u,onError:l},r=>(0,o.$)(async()=>{try{let t=await (0,i.s)(e,c.z,"getBlockNumber")({cacheTime:0});if(void 0!==p){if(t===p)return;if(t-p>1&&n)for(let e=p+1n;e<t;e++)r.onBlockNumber(e,p),p=e}(void 0===p||t>p)&&(r.onBlockNumber(t,p),p=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let i=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,a.N7)(i,{onBlockNumber:u,onError:l},t=>{let n=!0,i=()=>n=!1;return(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await a.subscribe({params:["newHeads"],onData(e){if(!n)return;let i=(0,r.y_)(e.result?.number);t.onBlockNumber(i,p),p=i},onError(e){t.onError?.(e)}});i=o,n||i()}catch(e){l?.(e)}})(),()=>i()})})()}},19205:function(e,t,n){"use strict";n.d(t,{Y:function(){return y}});var r=n(52186),i=n(96329),a=n(46699),o=n(36212),s=n(21677),c=n(93413),u=n(24606),l=n(9338),d=n(47499),f=n(92498),p=n(75304),h=n(83677),b=n(99597),m=n(57478);function y(e,t){let{abi:n,address:y,args:g,batch:w=!0,eventName:v,fromBlock:x,onError:_,onLogs:E,poll:A,pollingInterval:k=e.pollingInterval,strict:C}=t;return(void 0!==A?A:"bigint"==typeof x||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
12onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=C??!1,r=(0,d.P)(["watchContractEvent",y,g,w,e.uid,v,k,t,x]);return(0,u.N7)(r,{onLogs:E,onError:_},r=>{let a,o;void 0!==x&&(a=x-1n);let s=!1,u=(0,l.$)(async()=>{if(!s){try{o=await (0,c.s)(e,f.A,"createContractEventFilter")({abi:n,address:y,args:g,eventName:v,strict:t,fromBlock:x})}catch{}s=!0;return}try{let i;if(o)i=await (0,c.s)(e,b.K,"getFilterChanges")({filter:o});else{let r=await (0,c.s)(e,p.z,"getBlockNumber")({});i=a&&a<r?await (0,c.s)(e,h.m,"getContractEvents")({abi:n,address:y,args:g,eventName:v,fromBlock:a+1n,toBlock:r,strict:t}):[],a=r}if(0===i.length)return;if(w)r.onLogs(i);else for(let e of i)r.onLogs([e])}catch(e){o&&e instanceof i.yR&&(s=!1),r.onError?.(e)}},{emitOnBegin:!0,interval:k});return async()=>{o&&await (0,c.s)(e,m.W,"uninstallFilter")({filter:o}),u()}})})():(()=>{let t=(0,d.P)(["watchContractEvent",y,g,w,e.uid,v,k,C??!1]),i=!0,c=()=>i=!1;return(0,u.N7)(t,{onLogs:E,onError:_},t=>((async()=>{try{let u=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=v?(0,o.O)({abi:n,eventName:v,args:g}):[],{unsubscribe:d}=await u.subscribe({params:["logs",{address:y,topics:l}],onData(e){if(!i)return;let o=e.result;try{let{eventName:e,args:r}=(0,a.F)({abi:n,data:o.data,topics:o.topics,strict:C}),i=(0,s.U)(o,{args:r,eventName:e});t.onLogs([i])}catch(a){let e,n;if(a instanceof r.SM||a instanceof r.Gy){if(C)return;e=a.abiItem.name,n=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,s.U)(o,{args:n?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});c=d,i||c()}catch(e){_?.(e)}})(),()=>c()))})()}},86348:function(e,t,n){"use strict";n.d(t,{QZ:function(){return w},ZE:function(){return _}});var r=n(96104),i=n(42665),a=n(60730),o=n(49235),s=n(33208),c=n(25511),u=n(40598),l=n(18383),d=n(55551),f=n(30721),p=n(93413),h=n(98992),b=n(82857),m=n(33884),y=n(40909),g=n(16416);let w=["blobVersionedHashes","chainId","fees","gas","nonce","type"],v=new Map,x=new h.k(128);async function _(e,t){let n,h,_=t;_.account??=e.account,_.parameters??=w;let{account:E,chain:A=e.chain,nonceManager:k,parameters:C}=_,P="function"==typeof A?.prepareTransactionRequest?{fn:A.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(A?.prepareTransactionRequest)?{fn:A.prepareTransactionRequest[0],runAt:A.prepareTransactionRequest[1].runAt}:void 0;async function S(){return n||(void 0!==_.chainId?_.chainId:A?A.id:n=await (0,p.s)(e,g.L,"getChainId")({}))}let I=E?(0,r.T)(E):E,T=_.nonce;if(C.includes("nonce")&&void 0===T&&I&&k){let t=await S();T=await k.consume({address:I.address,chainId:t,client:e})}P?.fn&&P.runAt?.includes("beforeFillTransaction")&&(_=await P.fn({..._,chain:A},{phase:"beforeFillTransaction"}),T??=_.nonce);let O=(!(C.includes("blobVersionedHashes")||C.includes("sidecars"))||!_.kzg||!_.blobs)&&!1!==x.get(e.uid)&&["fees","gas"].some(e=>C.includes(e))&&(C.includes("chainId")&&"number"!=typeof _.chainId||C.includes("nonce")&&"number"!=typeof T||C.includes("fees")&&"bigint"!=typeof _.gasPrice&&("bigint"!=typeof _.maxFeePerGas||"bigint"!=typeof _.maxPriorityFeePerGas)||C.includes("gas")&&"bigint"!=typeof _.gas)?await (0,p.s)(e,y.b,"fillTransaction")({..._,nonce:T}).then(t=>{let{chainId:n,from:r,gas:i,gasPrice:a,nonce:o,maxFeePerBlobGas:s,maxFeePerGas:c,maxPriorityFeePerGas:u,type:l,...d}=t.transaction;return x.set(e.uid,!0),{..._,...r?{from:r}:{},...l&&!_.type?{type:l}:{},...void 0!==n?{chainId:n}:{},...void 0!==i?{gas:i}:{},...void 0!==a?{gasPrice:a}:{},...void 0!==o?{nonce:o}:{},...void 0!==s&&"legacy"!==_.type&&"eip2930"!==_.type?{maxFeePerBlobGas:s}:{},...void 0!==c&&"legacy"!==_.type&&"eip2930"!==_.type?{maxFeePerGas:c}:{},...void 0!==u&&"legacy"!==_.type&&"eip2930"!==_.type?{maxPriorityFeePerGas:u}:{},..."nonceKey"in d&&void 0!==d.nonceKey?{nonceKey:d.nonceKey}:{},..."keyAuthorization"in d&&void 0!==d.keyAuthorization&&null!==d.keyAuthorization&&!("keyAuthorization"in _)?{keyAuthorization:d.keyAuthorization}:{},..."feePayerSignature"in d&&void 0!==d.feePayerSignature&&null!==d.feePayerSignature?{feePayerSignature:d.feePayerSignature}:{}}}).catch(t=>{if("TransactionExecutionError"!==t.name)return _;if(t.walk?.(e=>"ExecutionRevertedError"===e.name))throw t;return t.walk?.(e=>"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name||e.message?.includes("eth_fillTransaction is not available"))&&x.set(e.uid,!1),_}):_;T??=O.nonce;let{blobs:M,gas:N,kzg:B,type:R}=_={...O,...I?{from:I?.address}:{},...T?{nonce:T}:{}};async function U(){return h||(h=await (0,p.s)(e,o.Q,"getBlock")({blockTag:"latest"}))}if(P?.fn&&P.runAt?.includes("beforeFillParameters")&&(_=await P.fn({..._,chain:A},{phase:"beforeFillParameters"})),C.includes("nonce")&&void 0===T&&I&&!k&&(_.nonce=await (0,p.s)(e,s.K,"getTransactionCount")({address:I.address,blockTag:"pending"})),(C.includes("blobVersionedHashes")||C.includes("sidecars"))&&M&&B){let e=(0,u.P)({blobs:M,kzg:B});if(C.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});_.blobVersionedHashes=t}if(C.includes("sidecars")){let t=(0,l.y)({blobs:M,commitments:e,kzg:B}),n=(0,f.j)({blobs:M,commitments:e,proofs:t,to:"hex"});_.sidecars=n}}if(C.includes("chainId")&&(_.chainId=await S()),(C.includes("fees")||C.includes("type"))&&void 0===R)try{_.type=(0,m.l)(_)}catch{let t=v.get(e.uid);if(void 0===t){let n=await U();t="bigint"==typeof n?.baseFeePerGas,v.set(e.uid,t)}_.type=t?"eip1559":"legacy"}if(C.includes("fees")){if("legacy"!==_.type&&"eip2930"!==_.type){if(void 0===_.maxFeePerGas||void 0===_.maxPriorityFeePerGas){let t=await U(),{maxFeePerGas:n,maxPriorityFeePerGas:r}=await (0,i.C)(e,{block:t,chain:A,request:_});if(void 0===_.maxPriorityFeePerGas&&_.maxFeePerGas&&_.maxFeePerGas<r)throw new c.ld({maxPriorityFeePerGas:r});_.maxPriorityFeePerGas=r,_.maxFeePerGas=n}}else{if(void 0!==_.maxFeePerGas||void 0!==_.maxPriorityFeePerGas)throw new c.e5;if(void 0===_.gasPrice){let t=await U(),{gasPrice:n}=await (0,i.C)(e,{block:t,chain:A,request:_,type:"legacy"});_.gasPrice=n}}}return C.includes("gas")&&void 0===N&&(_.gas=await (0,p.s)(e,a.Q,"estimateGas")({..._,account:I,prepare:I?.type==="local"?[]:["blobVersionedHashes"]})),P?.fn&&P.runAt?.includes("afterFillParameters")&&(_=await P.fn({..._,chain:A},{phase:"afterFillParameters"})),(0,b.F)(_),delete _.parameters,_}},96432:function(e,t,n){"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}n.d(t,{p:function(){return r}})},56232:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var r=n(97658),i=n(55875);async function a(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:a}){let o=await e.request({method:"eth_sendRawTransactionSync",params:a?[t,a]:[t]},{retryCount:0}),s=(e.chain?.formatters?.transactionReceipt?.format||i.fA)(o);if("reverted"===s.status&&n)throw new r.A3({receipt:s});return s}},72688:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(96104),i=n(14851);function a(e){let{batch:t,chain:n,ccipRead:a,dataSuffix:o,key:s="base",n
vendor: 4,865 bytes, line 12
12ame:c="Base Client",type:u="base"}=e,l=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),d=n?.blockTime??12e3,f=e.pollingInterval??Math.min(Math.max(Math.floor(d/2),500),4e3),p=e.cacheTime??f,h=e.account?(0,r.T)(e.account):void 0,{config:b,request:m,value:y}=e.transport({account:h,chain:n,pollingInterval:f}),g={account:h,batch:t,cacheTime:p,ccipRead:a,chain:n,dataSuffix:o,key:s,name:c,pollingInterval:f,request:m,transport:{...b,...y},type:u,uid:(0,i.h)(),...l?{experimental_blockTag:l}:{}};return Object.assign(g,{extend:function e(t){return n=>{let r=n(t);for(let e in g)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(g)})}},60152:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(72688),i=n(13862);function a(e){let{key:t="public",name:n="Public Client"}=e;return(0,r.e)({...e,key:t,name:n,type:"publicClient"}).extend(i.I)}},13862:function(e,t,n){"use strict";n.d(t,{I:function(){return nN}});var r=n(21620),i=n(97225),a=n(31006),o=n(18543),s=n(77955),c=n(95046),u=n(6649),l=n(58591);function d(e){if(!(e instanceof u.G))return!1;let t=e.walk(e=>e instanceof l.Lu);return t instanceof l.Lu&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}var f=n(3429),p=n(53932),h=n(82361),b=n(29886),m=n(40369);function y(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,m.v)(t)?t:null}function g(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,c.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let r=y(n[e]),i=r?(0,h.O0)(r):(0,b.w)((0,h.qX)(n[e]),"bytes");t=(0,b.w)((0,p.zo)([t,i]),"bytes")}return(0,c.ci)(t)}function w(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,h.qX)(t).byteLength+2),r=0,i=t.split(".");for(let e=0;e<i.length;e++){let t=(0,h.qX)(i[e]);if(t.byteLength>255){var a;t=(0,h.qX)((a=function(e){let t=new Uint8Array(32).fill(0);return e?y(e)||(0,b.w)((0,h.qX)(e)):(0,c.ci)(t)}(i[e]),`[${a.slice(2)}]`))}n[r]=t.length,n.set(t,r+1),r+=t.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var v=n(93413),x=n(3796);async function _(e,t){let{blockNumber:n,blockTag:u,coinType:l,name:p,gatewayUrls:h,strict:b}=t,{chain:m}=e,y=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!m)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.L)({blockNumber:n,chain:m,contract:"ensUniversalResolver"})})(),_=m?.ensTlds;if(_&&!_.some(e=>p.endsWith(e)))return null;let E=null!=l?[g(p),BigInt(l)]:[g(p)];try{let t=(0,a.R)({abi:r.X$,functionName:"addr",args:E}),o={address:y,abi:r.k3,functionName:"resolveWithGateways",args:[(0,c.NC)(w(p)),t,h??[f.M]],blockNumber:n,blockTag:u},l=(0,v.s)(e,x.L,"readContract"),d=await l(o);if("0x"===d[0])return null;let b=(0,i.k)({abi:r.X$,args:E,functionName:"addr",data:d[0]});if("0x"===b||"0x00"===(0,s.f)(b))return null;return b}catch(e){if(b)throw e;if(d(e))return null;throw e}}class E extends u.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class A extends u.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class k extends u.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class C extends u.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let P=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,S=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,I=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,T=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function O(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function M(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function N({uri:e,gatewayUrls:t}){let n=I.test(e);
vendor: 4,101 bytes, line 12
12if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=M(t?.ipfs,"https://ipfs.io"),i=M(t?.arweave,"https://arweave.net"),a=e.match(P),{protocol:o,subpath:s,target:c,subtarget:u=""}=a?.groups||{},l="ipns:/"===o||"ipns/"===s,d="ipfs:/"===o||"ipfs/"===s||S.test(e);if(e.startsWith("http")&&!l&&!d){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((l||d)&&c)return{uri:`${r}/${l?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&c)return{uri:`${i}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(T,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new k({uri:e})}function B(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new E({data:e});return e.image||e.image_url||e.image_data}async function R({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await U({gatewayUrls:e,uri:B(n)})}catch{throw new k({uri:t})}}async function U({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=N({uri:t,gatewayUrls:e});if(r||await O(n))return n;throw new k({uri:t})}async function F(e,{nft:t}){if("erc721"===t.namespace)return(0,x.L)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,x.L)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new C({namespace:t.namespace})}async function $(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?D(e,{gatewayUrls:t,record:n}):U({uri:n,gatewayUrls:t})}async function D(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,i]=t.split("/"),[a,o]=n.split(":"),[s,c]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new A({reason:"Only EIP-155 supported"});if(!o)throw new A({reason:"Chain ID not found"});if(!c)throw new A({reason:"Contract address not found"});if(!i)throw new A({reason:"Token ID not found"});if(!s)throw new A({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o,10),namespace:s.toLowerCase(),contractAddress:c,tokenID:i}}(n),{uri:i,isOnChain:a,isEncoded:o}=N({uri:await F(e,{nft:r}),gatewayUrls:t});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return U({uri:B(JSON.parse(o?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let s=r.tokenID;return"erc1155"===r.namespace&&(s=s.replace("0x","").padStart(64,"0")),R({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,s)})}async function L(e,t){let{blockNumber:n,blockTag:s,key:u,name:l,gatewayUrls:p,strict:h}=t,{chain:b}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!b)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.L)({blockNumber:n,chain:b,contract:"ensUniversalResolver"})})(),y=b?.ensTlds;if(y&&!y.some(e=>l.endsWith(e)))return null;try{let t={address:m,abi:r.k3,args:[(0,c.NC)(w(l)),(0,a.R)({abi:r.nZ,functionName:"text",args:[g(l),u]}),p??[f.M]],functionName:"resolveWithGateways",blockNumber:n,blockTag:s},o=(0,v.s)(e,x.L,"readContract"),d=await o(t);if("0x"===d[0])return null;let h=(0,i.k)({abi:r.nZ,functionName:"text",data:d[0]});return""===h?null:h}catch(e){if(h)throw e;if(d(e))return null;throw e}}async function j(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:a,strict:o,universalResolverAddress:s}){let c=await (0,v.s)(e,L,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:a,strict:o});if(!c)return null;try{return await $(e,{record:c,gatewayUrls:r})}catch{return null}}async function z(e,t){let{address:n,blockNumber:i,blockTag:a,coinType:s=60n,gatewayUrls:c,strict:u}=t,{chain:l}=e,p=(()=>
12{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.L)({blockNumber:i,chain:l,contract:"ensUniversalResolver"})})();try{let t={address:p,abi:r.du,args:[n,s,c??[f.M]],functionName:"reverseWithGateways",blockNumber:i,blockTag:a},o=(0,v.s)(e,x.L,"readContract"),[u]=await o(t);return u||null}catch(e){if(u)throw e;if(d(e))return null;throw e}}async function W(e,t){let{blockNumber:n,blockTag:r,name:i}=t,{chain:a}=e,s=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.L)({blockNumber:n,chain:a,contract:"ensUniversalResolver"})})(),u=a?.ensTlds;if(u&&!u.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${u?.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);let[l]=await (0,v.s)(e,x.L,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,c.NC)(w(i))],blockNumber:n,blockTag:r});return l}var G=n(6951),q=n(96104),H=n(8114),V=n(27031),Z=n(37669),K=n(82857);async function Y(e,t){let{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:a,data:o,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h,...b}=t,m=n?(0,q.T)(n):void 0;try{(0,K.F)(t);let n="bigint"==typeof r?(0,c.eC)(r):void 0,y=e.chain?.formatters?.transactionRequest?.format,g=(y||Z.tG)({...(0,V.K)(b,{format:y}),account:m,blobs:a,data:o,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:h},"createAccessList"),w=await e.request({method:"eth_createAccessList",params:[g,n||i]});return{accessList:w.accessList,gasUsed:BigInt(w.gasUsed)}}catch(n){throw(0,H.P)(n,{...t,account:m,chain:e.chain})}}var J=n(48586);async function X(e){let t=(0,J.g)(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var Q=n(92498),ee=n(36212);async function et(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:o,toBlock:s}={}){let u=i??(r?[r]:void 0),l=(0,J.g)(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>(0,ee.O)({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,c.eC)(a):a,toBlock:"bigint"==typeof s?(0,c.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:a,id:f,request:l(f),strict:!!o,toBlock:s,type:"event"}}async function en(e){let t=(0,J.g)(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var er=n(89431),ei=n(42665),ea=n(60730),eo=n(72127),es=n(40909);async function ec(e,{address:t,blockNumber:n,blockTag:o=e.experimental_blockTag??"latest"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let s=e.chain.contracts.multicall3.address,c=(0,a.R)({abi:r.F8,functionName:"getEthBalance",args:[t]}),{data:u}=await (0,v.s)(e,G.R,"call")({to:s,data:c,blockNumber:n,blockTag:o});return(0,i.k)({abi:r.F8,functionName:"getEthBalance",args:[t],data:u||"0x"})}let s="bigint"==typeof n?(0,c.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,s||o]}))}async function eu(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var el=n(49235),ed=n(75304),ef=n(21019);async function ep(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let a=void 0!==n?(0,c.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:!!a}),(0,ef.ly)(i)}var eh=n(16416),eb=n(55094),em=n(83677),ey=n(99112),eg=n(7508),ew=n(49014);async function ev(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=await (0,eb.C)(e,{address:t,...void 0!==n?{blockNumber:n}:{blockTag:r}});if(i&&23===(0,eg.d)(i)&&i.startsWith("0xef0100"))return(0,ey.K)((0,ew.tP)(i,3,23))}class ex extends u.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function e_(e,t){let{address:n,factory:r,factoryData:i}=t;try{let[t,a,o,s,c,u,l]=await (0,v.s)(e,x.L,"readContract")({abi:eE,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:a,version:o,chainId:Number(s),verifyingContract:c,salt:u},extensions:l,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new ex({address:n});throw e}}let eE=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function eA(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){var a;let o="bigint"==typeof n?(0,c.eC)(n):void 0;return{baseFeePerGas:(a=await e.request({method:"eth_feeHistory",params:[(0,c.eC)(t),o||r,i]},{dedupe:!!o})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(e=>e.map(e=>BigInt(e)))}}var ek=n(99597),eC=n(31703),eP=n(21677);async function eS(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,eP.U)(e));return t.abi?(0,eC.h)({abi:t.abi,logs:r,strict:n}):r}var eI=n(48206),eT=n(5729);async function eO(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){var a;let o=void 0!==n?(0,c.eC)(n):void 0;return{...a=await e.request({method:"eth_getProof",params:[t,i,o||(r??"latest")]}),balance:a.balance?BigInt(a.balance):void 0,nonce:a.nonce?(0,ef.ly)(a.nonce):void 0,storageProof:a.storageProof?a.storageProof.map(e=>
12({...e,value:BigInt(e.value)})):void 0}}async function eM(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let a=void 0!==n?(0,c.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,a||r]})}var eN=n(85753);async function eB(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([(0,v.s)(e,ed.z,"getBlockNumber")({}),t?(0,v.s)(e,eN.f,"getTransaction")({hash:t}):void 0]),a=n?.blockNumber||i?.blockNumber;return a?r-a+1n:0n}var eR=n(33208),eU=n(30911),eF=n(13955),e$=n(52186),eD=n(92915);async function eL(e,t){let{account:n,authorizationList:s,allowFailure:c=!0,blockNumber:d,blockOverrides:f,blockTag:p,stateOverride:h}=t,b=t.contracts,{batchSize:m=t.batchSize??1024,deployless:y=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},g=(()=>{if(t.multicallAddress)return t.multicallAddress;if(y)return null;if(e.chain)return(0,o.L)({blockNumber:d,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),w=[[]],_=0,E=0;for(let e=0;e<b.length;e++){let{abi:t,address:r,args:i,functionName:o}=b[e];try{let e=(0,a.R)({abi:t,args:i,functionName:o});E+=(e.length-2)/2,m>0&&E>m&&w[_].length>0&&(_++,E=(e.length-2)/2,w[_]=[]),w[_]=[...w[_],{allowFailure:!0,callData:e,target:r}]}catch(a){let e=(0,eD.S)(a,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:o,sender:n});if(!c)throw e;w[_]=[...w[_],{allowFailure:!0,callData:"0x",target:r}]}}let A=await Promise.allSettled(w.map(t=>(0,v.s)(e,x.L,"readContract")({...null===g?{code:eF.xd}:{address:g},abi:r.F8,account:n,args:[t],authorizationList:s,blockNumber:d,blockOverrides:f,blockTag:p,functionName:"aggregate3",stateOverride:h}))),k=[];for(let e=0;e<A.length;e++){let t=A[e];if("rejected"===t.status){if(!c)throw t.reason;for(let n=0;n<w[e].length;n++)k.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:r,success:a}=n[t],{callData:o}=w[e][t],{abi:s,address:u,functionName:d,args:f}=b[k.length];try{if("0x"===o)throw new e$.wb;if(!a)throw new l.VQ({data:r});let e=(0,i.k)({abi:s,args:f,data:r,functionName:d});k.push(c?{result:e,status:"success"}:e)}catch(t){let e=(0,eD.S)(t,{abi:s,address:u,args:f,docsPath:"/docs/contract/multicall",functionName:d});if(!c)throw e;k.push({error:e,result:void 0,status:"failure"})}}}if(k.length!==b.length)throw new u.G("multicall results mismatch");return k}var ej=n(30042),ez=n(37764),eW=n(43149),eG=n(20621),eq=n(11667);async function eH(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:o,returnFullTransactions:s,traceTransfers:u,validation:d}=t;try{let t=[];for(let e of o){let n=e.blockOverrides?ej.o(e.blockOverrides):void 0,r=e.calls.map(e=>{let t=e.account?(0,q.T)(e.account):void 0,n=e.abi?(0,a.R)(e):e.data,r={...e,account:t,data:e.dataSuffix?(0,p.zo)([n||"0x",e.dataSuffix]):n,from:e.from??t?.address};return(0,K.F)(r),(0,Z.tG)(r)}),i=e.stateOverrides?(0,eq.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:i})}let f="bigint"==typeof n?(0,c.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:u,validation:d},f||r]})).map((e,t)=>({...(0,eG.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:a,functionName:s,to:c}=o[t].calls[n],u=e.error?.data??e.returnData,d=BigInt(e.gasUsed),f=e.logs?.map(e=>eP.U(e)),p="0x1"===e.status?"success":"failure",h=r&&"success"===p&&"0x"!==u?(0,i.k)({abi:r,data:u,functionName:s}):null,b=(()=>{let e;if("success"!==p&&("0x"===u?e=new e$.wb:u&&(e=new l.VQ({data:u})),e))return(0,eD.S)(e,{abi:r??[],address:c??"0x",args:a,functionName:s??"<unknown>"})})();return{data:u,gasUsed:d,logs:f,status:p,..."success"===p?{result:h}:{error:b}}})}))}catch(t){let e=(0,eW.k)(t,{});if(e instanceof ez.cj)throw t;throw e}}var eV=n(93044),eZ=n(83997),eK=n(591),eY=n(31882),eJ=n(15579),eX=n(87324),eQ=n(35743),e0=n(74727);function e1(e,t){if(te(e)>t)throw new ti({givenSize:te(e),maxSize:t})}let e6={zero:48,nine:57,A:65,F:70,a:97,f:102};function e5(e){return e>=e6.zero&&e<=e6.nine?e-e6.zero:e>=e6.A&&e<=e6.F?e-(e6.A-10):e>=e6.a&&e<=e6.f?e-(e6.a-10):void 0}function e2(e,t={}){let{dir:n="left"}=t,r=0;for(let t=0;t<e.length-1&&"0"===e["left"===n?t:e.length-t-1].toString();t++)r++;return"left"===n?e.slice(r):e.slice(0,e.length-r)}var e8=n(23601),e3=n(28690);
vendor: 4,611 bytes, line 12
12let e9=new TextDecoder,e4=new TextEncoder;function e7(e,t={}){let{size:n}=t,r=e;n&&(e8.Yf(e,n),r=e0.eh(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,o=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let n=e5(i.charCodeAt(t++)),r=e5(i.charCodeAt(t++));if(void 0===n||void 0===r)throw new eX.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);o[e]=n<<4|r}return o}function te(e){return e.length}function tt(e,t={}){let{size:n}=t;void 0!==n&&e1(e,n);let r=e0.xv(e,t);return e0.He(r,t)}function tn(e){return e2(e,{dir:"left"})}class tr extends eX.G{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class ti extends eX.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class ta extends eX.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}class to extends eX.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function ts(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=(0,eQ.fr)(e instanceof Uint8Array?e:"string"==typeof e?e7(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:e0.xv(r)}class tc extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let tu={checksum:new tc(8192)}.checksum,tl=/^0x[a-fA-F0-9]{40}$/;function td(e,t={}){let{strict:n=!0}=t;if(!tl.test(e))throw new th({address:e,cause:new tb});if(n){if(e.toLowerCase()===e)return;if(tf(e)!==e)throw new th({address:e,cause:new tm})}}function tf(e){if(tu.has(e))return tu.get(e);td(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=ts(function(e,t={}){let{size:n}=t,r=e4.encode(e);return"number"==typeof n?(e1(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new to({size:e.length,targetSize:r,type:"Bytes"});let i=new Uint8Array(r);for(let t=0;t<r;t++){let a="right"===n;i[a?t:r-t-1]=e[a?t:e.length-t-1]}return i}(r,{dir:"right",size:n})):r}(t),{as:"Bytes"}),r=t.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());let i=`0x${r.join("")}`;return tu.set(e,i),i}function tp(e,t={}){let{strict:n=!0}=t??{};try{return td(e,{strict:n}),!0}catch{return!1}}class th extends eX.G{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class tb extends eX.G{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class tm extends eX.G{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function ty(e){let t=!0,n="",r=0,i="",a=!1;for(let o=0;o<e.length;o++){let s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function","error",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}continue}if(" "===s){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=s,n+=s}}if(!a)throw new eX.G("Unable to normalize signature.");return i}function tg(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,eY.cK)(e);else{let n=(0,eK.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!(0,eZ.N0)(r)){t=(0,eY.cK)(r,n);break}}}if(!t)throw new eV.a_({signature:e});return t}(e):e;return{...r,...n?{hash:tx(r)}
vendor: 13,412 bytes, lines 12-14
12:{}}}function tw(e,t,n){let r;let{args:i=[],prepare:a=!0}=n??{},o=e0.Gu(t,{strict:!1}),s=e.filter(e=>o?"function"===e.type||"error"===e.type?tv(e)===e0.tP(t,0,4):"event"===e.type&&tx(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new tE({name:t});if(1===s.length)return{...s[0],...a?{hash:tx(s[0])}:{}};for(let e of s)if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...a?{hash:tx(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return tp(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(r&&"inputs"in r&&r.inputs){let t=function e(t,n,r){for(let i in t){let a=t[i],o=n[i];if("tuple"===a.type&&"tuple"===o.type&&"components"in a&&"components"in o)return e(a.components,o.components,r[i]);let s=[a.type,o.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&tp(r[i],{strict:!1}))return s}}(e.inputs,r.inputs,i);if(t)throw new t_({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}let c=(()=>{if(r)return r;let[e,...t]=s;return{...e,overloads:t}})();if(!c)throw new tE({name:t});return{...c,...a?{hash:tx(c)}:{}}}function tv(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tw(t,n)}return e[0]})();return e0.tP(tx(t),0,4)}function tx(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tw(t,n)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:ts(e0.mL(function(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tw(t,n)}return e[0]})();return ty("string"==typeof t?t:eJ.t(t))}(t)))}class t_ extends eX.G{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${ty(eJ.t(e.abiItem))}\`, and`,`\`${t.type}\` in \`${ty(eJ.t(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class tE extends eX.G{constructor({name:e,data:t,type:n="item"}){super(`ABI ${n}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}var tA=n(94171),tk=n(37731);let tC=/^(.*)\[([0-9]*)\]$/,tP=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tS=/^(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)?$/,tI=2n**256n-1n;function tT(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=e0.dp(i)}let n=[],r=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:s}=e[a];o?(n.push(e0.xS(t+i,{size:32})),r.push(s),i+=e0.dp(s)):n.push(s)}return e0.zo(...n,...r)}function tO(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function tM(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(tM);let n=tO(e.type);return!!(n&&tM({...e,type:n[1]}))}let tN={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 tU({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new tR({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tB({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new tB({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class tB extends eX.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class tR extends eX.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class tU extends eX.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function tF(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new tG({expectedLength:e.length,givenLength:t.length});let i=tT(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let i=0;i<t.length;i++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let i=tO(n.type);if(i){let[a,o]=i;return function(t,n){let{checksumAddress:r,length:i,parameter:a}=n,o=null===i;if(!Array.isArray(t))throw new tq(t);if(!o&&t.length!==i)throw new tz({expectedLength:i,givenLength:t.length,type:`${a.type}[${i}]`});let s=!1,c=[];for(let n=0;n<t.length;n++){let i=e({checksumAddress:r,parameter:a,value:t[n]});i.dynamic&&(s=!0),c.push(i)}if(o||s){let e=tT(c);if(o){let t=e0.xS(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?e0.zo(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:e0.zo(...c.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:a,parameter:{...n,type:o}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:i}=n,a=!1,o=[];for(let n=0;n<i.components.length;n++){let s=i.components[n],c=Array.isArray(t)?n:s.name,u=e({checksumAddress:r,parameter:s,value:t[c]});o.push(u),u.dynamic&&(a=!0)}return{dynamic:a,encoded:a?tT(o):e0.zo(...o.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return td(e,{strict:n}),{dynamic:!1,encoded:e0.Q_(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new eX.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:e0.Q_(e0.O3(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=tS.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new e0.J5({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:e0.xS(e,{size:32,signed:t})}}(r,{signed:e,size:Number(t)})}if(n.type.startsWith("bytes"))return function(e,{type:t}){let[,n]=t.split("bytes"),r=e0.dp(e);if(!n){let t=e;return r%32!=0&&(t=e0.eh(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:e0.zo(e0.Q_(e0.xS(r,{size:32})),t)}}if(r!==Number.parseInt(n,10))throw new tW({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:e0.eh(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=e0.mL(e),n=Math.ceil(e0.dp(t)/32),r=[];for(let e=0;e<n;e++)r.push(e0.eh(e0.tP(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:e0.zo(e0.eh(e0.xS(e0.dp(t),{size:32})),...r)}}(r);throw new tH(n.type)}({checksumAddress:e,parameter:t[i],value:n[i]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===i.length?"0x":i}function t$(e,t){if(e.length!==t.length)throw new tG({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r];n.push(t$.encode(i,a))}return e0.zo(...n)}function tD(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let n=(0,eY.Q4)(e),r=n.length;for(let e=0;e<r;e++)t.push((0,eY.C$)(n[e],{modifiers:eZ.LY}))}else{let n=(0,eK.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if((0,eZ.N0)(r))continue;let a=(0,eY.Q4)(r),o=a.length;for(let e=0;e<o;e++)t.push((0,eY.C$)(a[e],{modifiers:eZ.LY,structs:n}))}}if(0===t.length)throw new tA.$r({params:e});return t}(e):e}(t$||(t$={})).encode=function e(t,n,r=!1){if("address"===t)return td(n),e0.Q_(n.toLowerCase(),r?32:0);if("string"===t)return e0.mL(n);if("bytes"===t)return n;if("bool"===t)return e0.Q_(e0.O3(n),r?32:1);let i=t.match(tS);if(i){let[e,t,a="256"]=i,o=Number.parseInt(a,10)/8;return e0.xS(n,{size:r?32:o,signed:"int"===t})}let a=t.match(tP);if(a){let[e,t]=a;if(Number.parseInt(t,10)!==(n.length-2)/2)throw new tW({expectedSize:Number.parseInt(t,10),value:n});return e0.eh(n,r?32:0)}let o=t.match(tC);if(o&&Array.isArray(n)){let[t,r]=o,i=[];for(let t=0;t<n.length;t++)i.push(e(r,n[t],!0));return 0===i.length?"0x":e0.zo(...i)}throw new tH(t)};class tL extends eX.G{constructor({data:e,parameters:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tk.P(t)})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class tj extends eX.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class tz extends eX.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class tW extends eX.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${e0.dp(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tG extends eX.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 13Expected length (parameters): ${e} 14Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tq extends eX.G{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tH extends eX.G{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function tV(e,t={}){return tg(e,t)}
vendor: 4,181 bytes, line 14
14function tZ(e,t,n){let r=tw(e,t,n);if("function"!==r.type)throw new tE({name:t,type:"function"});return r}let tK="0x0000000000000000000000000000000000000000";async function tY(e,t){let{blockNumber:n,blockTag:r,calls:i,stateOverrides:o,traceAssetChanges:s,traceTransfers:c,validation:l}=t,d=t.account?(0,q.T)(t.account):void 0;if(s&&!d)throw new u.G("`account` is required when `traceAssetChanges` is true");let f=d?function(...e){let[t,n]=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return[function(e){let t=e.find(e=>"constructor"===e.type);if(!t)throw new tE({name:"constructor"});return t}(t),n]}return e})(),{bytecode:r,args:i}=n;return e0.zo(r,t.inputs?.length&&i?.length?tF(t.inputs,i):"0x")}(tg("constructor(bytes, bytes)"),{bytecode:eF.NO,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(...e){let[t,n=[]]=(()=>{if(Array.isArray(e[0])){let[t,n,r]=e;return[tZ(t,n,{args:r}),r]}let[t,n]=e;return[t,n]})(),{overloads:r}=t,i=r?tZ([t,...r],t.name,{args:n}):t,a=tv(i),o=n.length>0?tF(i.inputs,n):void 0;return o?e0.zo(a,o):a}(tV("function getBalance(address)"),[d.address])]}):void 0,p=s?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await Y(e,{account:d.address,...t,data:t.abi?(0,a.R)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],h=await eH(e,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:f}],stateOverrides:o},{calls:p.map((e,t)=>({abi:[tV("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[d.address],to:e,from:tK,nonce:t})),stateOverrides:[{address:tK,nonce:0}]}]:[],{calls:[...i,{to:tK}].map(e=>({...e,from:d?.address})),stateOverrides:o},...s?[{calls:[{data:f}]},{calls:p.map((e,t)=>({abi:[tV("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[d.address],to:e,from:tK,nonce:t})),stateOverrides:[{address:tK,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[tV("function decimals() returns (uint256)")],functionName:"decimals",from:tK,nonce:t})),stateOverrides:[{address:tK,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[tV("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:tK,nonce:t})),stateOverrides:[{address:tK,nonce:0}]},{calls:p.map((e,t)=>({to:e,abi:[tV("function symbol() returns (string)")],functionName:"symbol",from:tK,nonce:t})),stateOverrides:[{address:tK,nonce:0}]}]:[]],traceTransfers:c,validation:l}),b=s?h[2]:h[0],[m,y,,g,w,v,x,_]=s?h:[],{calls:E,...A}=b,k=E.slice(0,-1)??[],C=[...m?.calls??[],...y?.calls??[]].map(e=>"success"===e.status?(0,ef.y_)(e.data):null),P=[...g?.calls??[],...w?.calls??[]].map(e=>"success"===e.status?(0,ef.y_)(e.data):null),S=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),I=(_?.calls??[]).map(e=>"success"===e.status?e.result:null),T=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),O=[];for(let[e,t]of P.entries()){let n=C[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=S[e-1],i=I[e-1],a=T[e-1],o=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:p[e-1],decimals:a||r?Number(r??1):void 0,symbol:i??void 0};O.some(e=>e.token.address===o.address)||O.push({token:o,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:O,block:A,results:k}}var tJ=n(9660),tX=n(57478);let tQ="0x6492649264926492649264926492649264926492649264926492649264926492";class t0 extends eX.G{constructor(e){super(`Value \`${e}
vendor: 10,410 bytes, line 14
14\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function t1(e,t={}){let{recovered:n}=t;if(void 0===e.r||void 0===e.s||n&&void 0===e.yParity)throw new t8({signature:e});if(e.r<0n||e.r>tI)throw new t3({value:e.r});if(e.s<0n||e.s>tI)throw new t9({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new t4({value:e.yParity})}function t6(e){if(130!==e.length&&132!==e.length)throw new t2({signature:e});let t=BigInt(e0.tP(e,0,32)),n=BigInt(e0.tP(e,32,64)),r=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return t5(t)}catch{throw new t4({value:t})}})();return void 0===r?{r:t,s:n}:{r:t,s:n,yParity:r}}function t5(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new t7({value:e})}class t2 extends eX.G{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${e0.dp(e0.Dp(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class t8 extends eX.G{constructor({signature:e}){super(`Signature \`${e3.Pz(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class t3 extends eX.G{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class t9 extends eX.G{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class t4 extends eX.G{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class t7 extends eX.G{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}let ne=tD("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function nt(e){if("string"==typeof e){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==e0.tP(e,-32))throw new nn(e)}else t1(e.authorization)}class nn extends eX.G{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}var nr=n(32637),ni=n(65937),na=n(87369);async function no({address:e,authorization:t,signature:n}){return(0,ni.E)((0,ey.K)(e),await (0,na.z)({authorization:t,signature:n}))}var ns=n(60107),nc=n(57426);async function nu(e,t){let{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??r?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??r?.contracts?.multicall3?.address,mode:s="auto"}=t;if(r?.verifyHash)return await r.verifyHash(e,t);let u=(()=>{let e=t.signature;return(0,m.v)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?(0,nc.V)(e):(0,c.ci)(e)})();try{if("eoa"===s)try{if((0,ni.E)((0,ey.K)(n),await (0,ns.R)({hash:i,signature:u})))return!0}catch{}if(function(e){try{return nt(e),!0}catch{return!1}}(u))return await nl(e,{...t,multicallAddress:o,signature:u});return await nd(e,{...t,verifierAddress:a,signature:u})}catch(e){if("eoa"!==s)try{if((0,ni.E)((0,ey.K)(n),await (0,ns.R)({hash:i,signature:u})))return!0}catch{}if(e instanceof np)return!1;throw e}}async function nl(e,t){let{address:n,blockNumber:i,blockTag:o,hash:s,multicallAddress:u}=t,{authorization:l,data:d,signature:f,to:h}=function(e){nt(e);let t=e0.He(e0.tP(e,-64,-32)),n=e0.tP(e,-t-64,-64),r=e0.tP(e,0,-t-64),[i,a,o]=function(e,t,n={}){let{as:r="Array",checksumAddress:i=!1}=n,a="string"==typeof t?e7(t):t,o=function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(tN);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}(a);if(0===te(a)&&e.length>0)throw new tj;if(te(a)&&32>te(a))throw new tL({data:"string"==typeof t?t:e0.xv(t),parameters:e,size:te(a)});let s=0,c="Array"===r?[]:{};for(let t=0;t<e.length;++t){let n=e[t];o.setPosition(s);let[a,u]=function e(t,n,r){let{checksumAddress:i,staticPosition:a}=r,o=tO(n.type);if(o){let[r,s]=o;return function(t,n,r){let{checksumAddress:i,length:a,staticPosition:o}=r;if(!a){let r=o+tt(t.readBytes(32)),a=r+32;t.setPosition(r);let s=tt(t.readBytes(32)),c=tM(n),u=0,l=[];for(let r=0;r<s;++r){t.setPosition(a+(c?32*r:u));let[o,s]=e(t,n,{checksumAddress:i,staticPosition:a});u+=s,l.push(o)}return t.setPosition(o+32),[l,32]}if(tM(n)){let r=o+tt(t.readBytes(32)),s=[];for(let o=0;o<a;++o){t.setPosition(r+32*o);let[a]=e(t,n,{checksumAddress:i,staticPosition:r});s.push(a)}return t.setPosition(o+32),[s,32]}let s=0,c=[];for(let r=0;r<a;++r){let[r,a]=e(t,n,{checksumAddress:i,staticPosition:o+s});s+=a,c.push(r)}return[c,s]}(t,{...n,type:s},{checksumAddress:i,length:r,staticPosition:a})}if("tuple"===n.type)return function(t,n,r){let{checksumAddress:i,staticPosition:a}=r,o=0===n.components.length||n.components.some(({name:e})=>!e),s=o?[]:{},c=0;if(tM(n)){let r=a+tt(t.readBytes(32));for(let a=0;a<n.components.length;++a){let u=n.components[a];t.setPosition(r+c);let[l,d]=e(t,u,{checksumAddress:i,staticPosition:r});c+=d,s[o?a:u?.name]=l}return t.setPosition(a+32),[s,32]}for(let r=0;r<n.components.length;++r){let u=n.components[r],[l,d]=e(t,u,{checksumAddress:i,staticPosition:a});s[o?r:u?.name]=l,c+=d}return[s,c]}(t,n,{checksumAddress:i,staticPosition:a});if("address"===n.type)return function(e,t={}){let n;let{checksum:r=!1}=t,i=e.readBytes(32);return[(n=e0.xv(function(e,t,n,r={}){var i,a;let{strict:o}=r;i=0,a=0;let s=e.slice(-20,void 0);return o&&function(e,t,n){if("number"==typeof n&&te(e)!==n-t)throw new ta({offset:n,position:"end",size:te(e)})}(s,-20,void 0),s}(i,0)),r?tf(n):n),32]}(t,{checksum:i});if("bool"===n.type)return[function(e,t={}){let{size:n}=t,r=e;if(void 0!==n&&(e1(r,n),r=tn(r)),r.length>1||r[0]>1)throw new tr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=tt(e.readBytes(32));e.setPosition(n+t);let r=tt(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[e0.xv(i),32]}return[e0.xv(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:a});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?function(e,t={}){let{size:n}=t;void 0!==n&&e1(e,n);let r=e0.xv(e,t);return e0.Gh(r,t)}(i,{signed:n}):tt(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=tt(e.readBytes(32));e.setPosition(t+n);let r=tt(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=function(e,t={}){let{size:n}=t,r=e;return void 0!==n&&(e1(r,n),r=e2(r,{dir:"right"})),e9.decode(r)}(tn(e.readBytes(r,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:a});throw new tH(n.type)}(o,n,{checksumAddress:i,staticPosition:0});s+=u,"Array"===r?c.push(a):c[n.name??t]=a}return c}(ne,n);return{authorization:function(e,t={}){return"string"==typeof e.chainId?function(e){let{address:t,chainId:n,nonce:r}=e,i=function(e){if(void 0!==e.r&&void 0!==e.s)return function(e){let t=(()=>"string"==typeof e?t6(e):e instanceof Uint8Array?t6(e0.xv(e)):"string"==typeof e.r?function(e){let t=(()=>{let t=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof n&&(n=t5(t)),"number"!=typeof n)throw new t4({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}(e):e.v?{r:e.r,s:e.s,yParity:t5(e.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}})();return t1(t),t}(e)}(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}(e):{...e,...t.signature}}({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...o&&"0x"!==o?{data:o,to:a}:{}}}(t.signature);if(await (0,eb.C)(e,{address:n,blockNumber:i,blockTag:o})===(0,p.SM)(["0xef0100",l.address]))return await nf(e,{address:n,blockNumber:i,blockTag:o,hash:s,signature:f});let b={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:(0,c.eC)(l.r,{size:32}),s:(0,c.eC)(l.s,{size:32}),yParity:l.yParity};if(!await no({address:n,authorization:b}))throw new np;let m=await (0,v.s)(e,x.L,"readContract")({...u?{address:u}:{code:eF.xd},authorizationList:[b],abi:r.F8,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:h??n,callData:d}]:[],{allowFailure:!0,target:n,callData:(0,a.R)({abi:r._A,functionName:"isValidSignature",args:[s,f]})}]]}),y=m[m.length-1]?.returnData;if(y?.startsWith("0x1626ba7e"))return!0;throw new np}async function nd(e,t){let{address:n,factory:i,factoryData:o,hash:s,signature:c,verifierAddress:u,...d}=t,f=await (async()=>!i&&!o||function(e){try{return!function(e){if(e0.tP(e,-32)!==tQ)throw new t0(e)}(e),!0}catch{return!1}}(c)?c:function(e){let{data:t,signature:n,to:r}=e;return e0.zo(tF(tD("address, bytes, bytes"),[r,t,n]),tQ)}({data:o,signature:c,to:i}))(),p=u?{to:u,data:(0,a.R)({abi:r.MR,functionName:"isValidSig",args:[n,s,f]}),...d}:{data:(0,nr.w)({abi:r.MR,args:[n,s,f],bytecode:eF.de}),...d},{data:h}=await (0,v.s)(e,G.R,"call")(p).catch(e=>{if(e instanceof l.cg)throw new np;throw e});if((0,ef.XA)(h??"0x0"))return!0;throw new np}async function nf(e,t){let{address:n,blockNumber:i,blockTag:a,hash:o,signature:s}=t;if((await (0,v.s)(e,x.L,"readContract")({address:n,abi:r._A,args:[o,s],blockNumber:i,blockTag:a,functionName:"isValidSignature"}).catch(e=>{if(e instanceof l.uq)throw new np;throw e})).startsWith("0x1626ba7e"))return!0;throw new np}
vendor: 4,141 bytes, line 14
14class np extends Error{}var nh=n(32933);async function nb(e,{address:t,message:n,factory:r,factoryData:i,signature:a,...o}){let s=(0,nh.r)(n);return(0,v.s)(e,nu,"verifyHash")({address:t,factory:r,factoryData:i,hash:s,signature:a,...o})}var nm=n(51930);async function ny(e,t){let{address:n,factory:r,factoryData:i,signature:a,message:o,primaryType:s,types:c,domain:u,...l}=t,d=(0,nm.Jv)({message:o,primaryType:s,types:c,domain:u});return(0,v.s)(e,nu,"verifyHash")({address:n,factory:r,factoryData:i,hash:d,signature:a,...l})}var ng=n(95131),nw=n(38128),nv=n(24606),nx=n(9338),n_=n(47499),nE=n(19205),nA=n(96329),nk=n(46699);let nC=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,nP=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;var nS=n(64113);async function nI(e,t){let{address:n,domain:r,message:i,nonce:a,scheme:o,signature:s,time:c=new Date,...u}=t,l=function(e){let{scheme:t,statement:n,...r}=e.match(nC)?.groups??{},{chainId:i,expirationTime:a,issuedAt:o,notBefore:s,requestId:c,...u}=e.match(nP)?.groups??{},l=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...i?{chainId:Number(i)}:{},...a?{expirationTime:new Date(a)}:{},...o?{issuedAt:new Date(o)}:{},...s?{notBefore:new Date(s)}:{},...c?{requestId:c}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(i);if(!l.address||!function(e){let{address:t,domain:n,message:r,nonce:i,scheme:a,time:o=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||a&&r.scheme!==a||r.expirationTime&&o>=r.expirationTime||r.notBefore&&o<r.notBefore)return!1;try{if(!r.address||!(0,nS.U)(r.address,{strict:!1})||t&&!(0,ni.E)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:l,nonce:a,scheme:o,time:c}))return!1;let d=(0,nh.r)(i);return nu(e,{address:l.address,hash:d,signature:s,...u})}var nT=n(86348),nO=n(96432),nM=n(56232);function nN(e){return{call:t=>(0,G.R)(e,t),createAccessList:t=>Y(e,t),createBlockFilter:()=>X(e),createContractEventFilter:t=>(0,Q.A)(e,t),createEventFilter:t=>et(e,t),createPendingTransactionFilter:()=>en(e),estimateContractGas:t=>(0,er.D)(e,t),estimateGas:t=>(0,ea.Q)(e,t),getBalance:t=>ec(e,t),getBlobBaseFee:()=>eu(e),getBlock:t=>(0,el.Q)(e,t),getBlockNumber:t=>(0,ed.z)(e,t),getBlockTransactionCount:t=>ep(e,t),getBytecode:t=>(0,eb.C)(e,t),getChainId:()=>(0,eh.L)(e),getCode:t=>(0,eb.C)(e,t),getContractEvents:t=>(0,em.m)(e,t),getDelegation:t=>ev(e,t),getEip712Domain:t=>e_(e,t),getEnsAddress:t=>_(e,t),getEnsAvatar:t=>j(e,t),getEnsName:t=>z(e,t),getEnsResolver:t=>W(e,t),getEnsText:t=>L(e,t),getFeeHistory:t=>eA(e,t),estimateFeesPerGas:t=>(0,ei.X)(e,t),getFilterChanges:t=>(0,ek.K)(e,t),getFilterLogs:t=>eS(e,t),getGasPrice:()=>(0,eI.o)(e),getLogs:t=>(0,eT.y)(e,t),getProof:t=>eO(e,t),estimateMaxPriorityFeePerGas:t=>(0,eo._)(e,t),fillTransaction:t=>(0,es.b)(e,t),getStorageAt:t=>eM(e,t),getTransaction:t=>(0,eN.f)(e,t),getTransactionConfirmations:t=>eB(e,t),getTransactionCount:t=>(0,eR.K)(e,t),getTransactionReceipt:t=>(0,eU.a)(e,t),multicall:t=>eL(e,t),prepareTransactionRequest:t=>(0,nT.ZE)(e,t),readContract:t=>(0,x.L)(e,t),sendRawTransaction:t=>(0,nO.p)(e,t),sendRawTransactionSync:t=>(0,nM.s)(e,t),simulate:t=>eH(e,t),simulateBlocks:t=>eH(e,t),simulateCalls:t=>tY(e,t),simulateContract:t=>(0,tJ.a)(e,t),verifyHash:t=>nu(e,t),verifyMessage:t=>nb(e,t),verifySiweMessage:t=>nI(e,t),verifyTypedData:t=>ny(e,t),uninstallFilter:t=>(0,tX.W)(e,t),waitForTransactionReceipt:t=>(0,ng.e)(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:o,poll:s,pollingInterval:c=e.pollingInterval}){let u,l,d,f;let p=void 0!==s?s:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
14onfig.type&&"ipc"!==e.transport.transports[0].config.type),h=o??!1;return p?(()=>{let o=(0,n_.P)(["watchBlocks",e.uid,t,n,r,h,c]);return(0,nv.N7)(o,{onBlock:i,onError:a},i=>(0,nx.$)(async()=>{try{let r=await (0,v.s)(e,el.Q,"getBlock")({blockTag:t,includeTransactions:h});if(null!==r.number&&u?.number!=null){if(r.number===u.number)return;if(r.number-u.number>1&&n)for(let t=u?.number+1n;t<r.number;t++){let n=await (0,v.s)(e,el.Q,"getBlock")({blockNumber:t,includeTransactions:h});i.onBlock(n,u),u=n}}(u?.number==null||"pending"===t&&r?.number==null||null!==r.number&&r.number>u.number)&&(i.onBlock(r,u),u=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:c}))})():(l=!0,d=!0,f=()=>l=!1,(async()=>{try{r&&(0,v.s)(e,el.Q,"getBlock")({blockTag:t,includeTransactions:h}).then(e=>{l&&d&&(i(e,void 0),d=!1)}).catch(a);let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await n.subscribe({params:["newHeads"],async onData(t){if(!l)return;let n=await (0,v.s)(e,el.Q,"getBlock")({blockNumber:t.result?.number,includeTransactions:h}).catch(()=>{});l&&(i(n,u),d=!1,u=n)},onError(e){a?.(e)}});f=o,l||f()}catch(e){a?.(e)}})(),()=>f())})(e,t),watchBlockNumber:t=>(0,nw.q)(e,t),watchContractEvent:t=>(0,nE.Y)(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:a,fromBlock:o,onError:s,onLogs:c,poll:u,pollingInterval:l=e.pollingInterval,strict:d}){let f,p;let h=void 0!==u?u:"bigint"==typeof o||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
14onfig.type&&"ipc"!==e.transport.transports[0].config.type),b=d??!1;return h?(()=>{let u=(0,n_.P)(["watchEvent",t,n,r,e.uid,i,l,o]);return(0,nv.N7)(u,{onLogs:c,onError:s},s=>{let c,u;void 0!==o&&(c=o-1n);let d=!1,f=(0,nx.$)(async()=>{if(!d){try{u=await (0,v.s)(e,et,"createEventFilter")({address:t,args:n,event:i,events:a,strict:b,fromBlock:o})}catch{}d=!0;return}try{let o;if(u)o=await (0,v.s)(e,ek.K,"getFilterChanges")({filter:u});else{let r=await (0,v.s)(e,ed.z,"getBlockNumber")({});o=c&&c!==r?await (0,v.s)(e,eT.y,"getLogs")({address:t,args:n,event:i,events:a,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===o.length)return;if(r)s.onLogs(o);else for(let e of o)s.onLogs([e])}catch(e){u&&e instanceof nA.yR&&(d=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:l});return async()=>{u&&await (0,v.s)(e,tX.W,"uninstallFilter")({filter:u}),f()}})})():(f=!0,p=()=>f=!1,(async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),o=a??(i?[i]:void 0),u=[];o&&(u=[o.flatMap(e=>(0,ee.O)({abi:[e],eventName:e.name,args:n}))],i&&(u=u[0]));let{unsubscribe:l}=await r.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:n}=(0,nk.F)({abi:o??[],data:t.data,topics:t.topics,strict:b}),r=(0,eP.U)(t,{args:n,eventName:e});c([r])}catch(i){let e,n;if(i instanceof e$.SM||i instanceof e$.Gy){if(d)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eP.U)(t,{args:n?[]:{},eventName:e});c([r])}},onError(e){s?.(e)}});p=l,f||p()}catch(e){s?.(e)}})(),()=>p())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){let o,s;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let i=(0,n_.P)(["watchPendingTransactions",e.uid,t,a]);return(0,nv.N7)(i,{onTransactions:r,onError:n},n=>{let r;let i=(0,nx.$)(async()=>{try{if(!r)try{r=await (0,v.s)(e,en,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let a=await (0,v.s)(e,ek.K,"getFilterChanges")({filter:r});if(0===a.length)return;if(t)n.onTransactions(a);else for(let e of a)n.onTransactions([e])}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:a});return async()=>{r&&await (0,v.s)(e,tX.W,"uninstallFilter")({filter:r}),i()}})})():(o=!0,s=()=>o=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!o)return;let t=e.result;r([t])},onError(e){n?.(e)}});s=t,o||s()}catch(e){n?.(e)}})(),()=>s())})(e,t)}}},93423:function(e,t,n){"use strict";n.d(t,{q:function(){return d}});var r=n(6649),i=n(4456),a=n(96329),o=n(95046);let s=new(n(98992)).k(8192);var c=n(55894),u=n(47499),l=n(14851);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:p=150,timeout:h,type:b},m){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:p,timeout:h,type:b},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:p=150,retryCount:h=3,uid:b}={...t,...l},{method:m}=n;if(f?.exclude?.includes(m)||f?.include&&!f.include.includes(m))throw new a.gS(Error("method not supported"),{method:m});let y=d?(0,o.$G)(`${b}.${(0,u.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,c.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case a.s7.code:throw new a.s7(e);case a.B.code:throw new a.B(e);case a.LX.code:throw new a.LX(e,{method:n.method});case a.nY.code:throw new a.nY(e);case a.XS.code:throw new a.XS(e);case a.yR.code:throw new a.yR(e);case a.Og.code:throw new a.Og(e);case a.pT.code:throw new a.pT(e);case a.KB.code:throw new a.KB(e);case a.gS.code:throw new a.gS(e,{method:n.method});case a.Pv.code:throw new a.Pv(e);case a.GD.code:throw new a.GD(e);case a.ab.code:throw new a.ab(e);case a.PE.code:throw new a.PE(e);case a.Ts.code:throw new a.Ts(e);case a.u5.code:throw new a.u5(e);case a.I0.code:throw new a.I0(e);case a.x3.code:throw new a.x3(e);case a.vl.code:throw new a.vl(e);case a.Uu.code:throw new a.Uu(e);case a.Nt.code:throw new a.Nt(e);case a.EJ.code:throw new a.EJ(e);case a.fl.code:throw new a.fl(e);case a.NO.code:throw new a.NO(e);case a.r0.code:throw new a.r0(e);case 5e3:throw new a.ab(e);case a.UF.code:throw new a.UF(e);default:if(e instanceof r.G)throw e;throw new a.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*p},retryCount:h,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===a.Pv.code||e.code===a.XS.code||429===e.code:!(e instanceof i.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:d,id:y})}}(d,{methods:t,retryCount:f,retryDelay:p,uid:(0,l.h)()}),value:m}}},62536:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var r=n(4456),i=n(6649);class a extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var o=n(10639),s=n(13581),c=n(47499);let u={current:0,take(){return this.current++},reset(){this.current=0}};var l=n(93423);function d(e,t={}){let{batch:n,fetchFn:i,fetchOptions:d,key:f="http",methods:p,name:h="HTTP JSON-RPC",onFetchRequest:b,onFetchResponse:m,retryDelay:y,raw:g}=t;return({chain:w,retryCount:v,timeout:x})=>{let{batchSize:_=1e3,wait:E=0}="object"==typeof n?n:{},A=t.retryCount??v,k=x??t.timeout??1e4,C=e||w?.rpcUrls.default.http[0];if(!C)throw new a;let P=function(e,t={}){let{url:n,headers:i}=function(e){try{let t=new URL(e),n=(()=>
14{if(t.username){let e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}(e);return{async request(e){let{body:a,fetchFn:o=t.fetchFn??fetch,onRequest:l=t.onRequest,onResponse:d=t.onResponse,timeout:f=t.timeout??1e4}=e,p={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:h,method:b,signal:m}=p;try{let e;let t=await (0,s.F)(async({signal:e})=>{let t={...p,body:Array.isArray(a)?(0,c.P)(a.map(e=>({jsonrpc:"2.0",id:e.id??u.take(),...e}))):(0,c.P)({jsonrpc:"2.0",id:a.id??u.take(),...a}),headers:{...i,"Content-Type":"application/json",...h},method:b||"POST",signal:m||(f>0?e:null)},r=new Request(n,t),s=await l?.(r,t)??{...t,url:n};return await o(s.url??n,s)},{errorInstance:new r.W5({body:a,url:n}),timeout:f,signal:!0});if(d&&await d(t),t.headers.get("Content-Type")?.startsWith("application/json"))e=await t.json();else{e=await t.text();try{e=JSON.parse(e||"{}")}catch(n){if(t.ok)throw n;e={error:e}}}if(!t.ok){if("number"==typeof e.error?.code&&"string"==typeof e.error?.message)return e;throw new r.Gg({body:a,details:(0,c.P)(e.error)||t.statusText,headers:t.headers,status:t.status,url:n})}return e}catch(e){if(e instanceof r.Gg||e instanceof r.W5)throw e;throw new r.Gg({body:a,cause:e,url:n})}}}}(C,{fetchFn:i,fetchOptions:d,onRequest:b,onResponse:m,timeout:k});return(0,l.q)({key:f,methods:p,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:a}=(0,o.S)({id:C,wait:E,shouldSplitBatch:e=>e.length>_,fn:e=>P.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>n?a(e):[await P.request({body:e})],[{error:c,result:u}]=await s(i);if(g)return{error:c,result:u};if(c)throw new r.bs({body:i,error:c,url:C});return u},retryCount:A,retryDelay:y,timeout:k,type:"http"},{fetchOptions:d,url:C})}}},21620:function(e,t,n){"use strict";n.d(t,{F8:function(){return r},MR:function(){return d},Wo:function(){return f},X$:function(){return u},Yi:function(){return i},_A:function(){return l},du:function(){return s},k3:function(){return o},nZ:function(){return c}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],i=[{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"}]}],a=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],o=[...a,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...a,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],c=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],l=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],d=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}
14],f=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}]},13955:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},de:function(){return a},pG:function(){return i},xd:function(){return o}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",a="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
1460405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
14603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",o="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
14150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},9383:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});let r=1},62798:function(e,t,n){"use strict";n.d(t,{rU:function(){return r},zL:function(){return i}});let r=2n**16n-1n,i=2n**256n-1n},47807:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return a}});
14let r={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."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},90408:function(e,t,n){"use strict";n.d(t,{Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9}},52186:function(e,t,n){"use strict";n.d(t,{CI:function(){return P},FM:function(){return m},Gy:function(){return k},KY:function(){return E},M4:function(){return d},MS:function(){return h},MX:function(){return v},Mi:function(){return T},S4:function(){return _},SM:function(){return A},Zh:function(){return p},cO:function(){return s},dh:function(){return C},eF:function(){return x},fM:function(){return o},fs:function(){return f},gr:function(){return l},hn:function(){return S},lC:function(){return y},mv:function(){return g},wM:function(){return I},wb:function(){return u},xB:function(){return c},xL:function(){return w},yP:function(){return b}});var r=n(20101),i=n(7508),a=n(6649);class o extends a.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends a.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class c extends a.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends a.G{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class l extends a.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 15Expected length: ${e} 16Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 17Expected length (params): ${e} 18Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends a.G{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 19Cannot encode error result without knowing what the parameter types are. 20Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class h extends a.G{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 21Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends a.G{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 22Make sure you are using the correct ABI and that the error exists on it. 23You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class m extends a.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends a.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 24Make sure you are using the correct ABI and that the event exists on it. 25You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends a.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 26Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class w extends a.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 27Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class v extends a.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 28Cannot decode function result without knowing what the parameter types are. 29Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class x extends a.G{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 30Make sure you are using the correct ABI and that the function exists on it. 31You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class _ extends a.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends a.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class A extends a.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class k extends a.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 32Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 33Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class S extends a.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class I extends a.G{constructor(e){super(`"${e}" is not a valid definition type. 34Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class T extends a.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},51359:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(6649);class i extends r.G{constructor({address:e}){super(`Address "${e}
34" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},6649:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});let r="2.47.12",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class a extends Error{constructor(e,t={}){let n=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof a&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}},25678:function(e,t,n){"use strict";n.d(t,{RX:function(){return o},cJ:function(){return c},m7:function(){return a},xd:function(){return s}});var r=n(9383),i=n(6649);class a extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class s extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class c extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},87655:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(6649);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},89045:function(e,t,n){"use strict";n.d(t,{Bk:function(){return o},Yl:function(){return a},hJ:function(){return c},mm:function(){return i},pZ:function(){return s}});var r=n(6649);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class a extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class o extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class s extends r.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class c extends r.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
34" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},58591:function(e,t,n){"use strict";n.d(t,{cg:function(){return y},uq:function(){return g},Lu:function(){return w},Dk:function(){return v},Mo:function(){return x},VQ:function(){return _}});var r=n(96104),i=n(47807),a=n(71108),o=n(20101),s=n(47499);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,s.P)(t[n]):t[n]}`).join(", ")})`}var u=n(18748),l=n(85053),d=n(49268),f=n(52186),p=n(6649),h=n(75534),b=n(97658),m=n(87137);class y extends p.G{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:o,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:m,stateOverride:y}){let g=t?(0,r.T)(t):void 0,w=(0,b.xr)({from:g?.address,to:p,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});y&&(w+=` 35${(0,h.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends p.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:s}){let l=(0,u.mE)({abi:t,args:n,name:a}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,o.t)(l,{includeName:!0}):void 0,p=(0,b.xr)({address:r&&(0,m.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=s}}class w extends p.G{constructor({abi:e,data:t,functionName:n,message:r,cause:s}){let u,l,d,p,h;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:u}=l=(0,a.p)({abi:e,data:t,cause:s});if("Error"===r)p=u[0];else if("Panic"===r){let[e]=u;p=i.$[e]}else{let e=n?(0,o.t)(n,{includeName:!0}):void 0,t=n&&u?c({abiItem:n,args:u,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else r&&(p=r);u instanceof f.yP&&(h=u.signature,d=[`Unable to decode signature "${h}" 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://4byte.sourcify.dev/?q=${h}.`]),super(p&&"execution reverted"!==p||h?[`The contract function "${n}" reverted with the following ${h?"signature":"reason"}:`,p||h].join("\n"):`The contract function "${n}" reverted.`,{cause:u??s,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=p,this.signature=h}}class v extends p.G{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}class x extends p.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class _ extends p.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},19477:function(e,t,n){"use strict";n.d(t,{KD:function(){return o},T_:function(){return i},lQ:function(){return a}});var r=n(6649);class i extends r.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class a extends r.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},75057:function(e,t,n){"use strict";n.d(t,{$s:function(){return a},W_:function(){return o},mV:function(){return i}});var r=n(6649);class i extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class a extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}},74188:function(e,t,n){"use strict";
vendor: 5,034 bytes, lines 35-36
35n.d(t,{Cd:function(){return o},J5:function(){return i},M6:function(){return s},yr:function(){return a}});var r=n(6649);class i extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class a extends r.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class s extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},25511:function(e,t,n){"use strict";n.d(t,{Fz:function(){return a},e5:function(){return o},ld:function(){return s}});var r=n(49268),i=n(6649);class a extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class o extends i.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},37764:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return s},Hh:function(){return o},M_:function(){return a},WF:function(){return f},ZI:function(){return c},cj:function(){return m},cs:function(){return b},dR:function(){return p},pZ:function(){return h},se:function(){return l},vU:function(){return u}});var r=n(49268),i=n(6649);class a extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 36Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}
vendor: 6,085 bytes, line 36
36Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class h extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},4456:function(e,t,n){"use strict";n.d(t,{Gg:function(){return o},W5:function(){return c},bs:function(){return s}});var r=n(47499),i=n(6649),a=n(87137);class o extends i.G{constructor({body:e,cause:t,details:n,headers:i,status:o,url:s}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,a.G)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=o,this.url=s}}class s extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}class c extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}},96329:function(e,t,n){"use strict";n.d(t,{B:function(){return c},EJ:function(){return S},GD:function(){return g},I0:function(){return E},KB:function(){return b},LX:function(){return u},NO:function(){return T},Nt:function(){return P},Og:function(){return p},PE:function(){return v},Pv:function(){return y},Ts:function(){return x},UF:function(){return M},Uu:function(){return C},XS:function(){return d},ab:function(){return w},fl:function(){return I},gS:function(){return m},ir:function(){return N},nY:function(){return l},pT:function(){return h},r0:function(){return O},s7:function(){return s},u5:function(){return _},vl:function(){return k},x3:function(){return A},yR:function(){return f}});var r=n(6649),i=n(4456);class a extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:a,shortMessage:o}){super(o,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof i.bs?e.code:t??-1}}class o extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends a{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends a{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends a{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends a{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});
36class h extends a{constructor(e){super(e,{code:h.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends a{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends a{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends a{constructor(e){super(e,{code:y.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends a{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class w extends o{constructor(e){super(e,{code:w.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends o{constructor(e){super(e,{code:v.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class x extends o{constructor(e,{method:t}={}){super(e,{code:x.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class _ extends o{constructor(e){super(e,{code:_.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class E extends o{constructor(e){super(e,{code:E.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class A extends o{constructor(e){super(e,{code:A.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends o{constructor(e){super(e,{code:k.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class C extends o{constructor(e){super(e,{code:C.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class P extends o{constructor(e){super(e,{code:P.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class S extends o{constructor(e){super(e,{code:S.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class I extends o{constructor(e){super(e,{code:I.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class T extends o{constructor(e){super(e,{code:T.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
vendor: 6,442 bytes, lines 36-41
36);class O extends o{constructor(e){super(e,{code:O.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class M extends o{constructor(e){super(e,{code:M.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class N extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},75534:function(e,t,n){"use strict";n.d(t,{Bj:function(){return s},Nc:function(){return i},Z8:function(){return a}});var r=n(6649);class i extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class a extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n} 37`,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}: 38`;return n.nonce&&(r+=` nonce: ${n.nonce} 39`),n.balance&&(r+=` balance: ${n.balance} 40`),n.code&&(r+=` code: ${n.code} 41`),n.state&&(r+=" state:\n"+o(n.state)),n.stateDiff&&(r+=" stateDiff:\n"+o(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},97658:function(e,t,n){"use strict";n.d(t,{A3:function(){return p},Bh:function(){return d},JC:function(){return u},Yb:function(){return f},j3:function(){return c},mc:function(){return h},mk:function(){return l},vl:function(){return s},xr:function(){return o}});var r=n(85053),i=n(49268),a=n(6649);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class s extends a.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends a.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends a.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class l extends a.G{constructor(e,{account:t,docsPath:n,chain:a,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:p,value:void 0!==h&&`${(0,r.d)(h)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class d extends a.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&void 0!==i&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class f extends a.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class p extends a.G{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class h extends a.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},87137:function(e,t,n){"use strict";n.d(t,{C:function(){return r},G:function(){return i}});let r=e=>e,i=e=>e},52998:function(e,t,n){"use strict";n.d(t,{r:function(){return b}});var r=n(52186),i=n(99112),a=n(15222),o=n(7508),s=n(49014),c=n(77955),u=n(74188),l=n(21019),d=n(95046);function f(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.ly)(n,t)}var p=n(82361),h=n(39480);function b(e,t){let n="string"==typeof t?(0,p.nr)(t):t,b=(0,a.q)(n);if(0===(0,o.d)(n)&&e.length>0)throw new r.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,o.d)(t)});let y=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];b.setPosition(y);let[a,o]=function e(t,n,{staticPosition:a}){let o=(0,h.S)(n.type);if(o){let[r,i]=o;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+f(t.readBytes(32)),a=r+32;t.setPosition(r);let o=f(t.readBytes(32)),s=m(n),c=0,u=[];for(let r=0;r<o;++r){t.setPosition(a+(s?32*r:c));let[i,o]=e(t,n,{staticPosition:a});c+=o,u.push(i)}return t.setPosition(i+32),[u,32]}if(m(n)){let a=i+f(t.readBytes(32)),o=[];for(let i=0;i<r;++i){t.setPosition(a+32*i);let[r]=e(t,n,{staticPosition:a});o.push(r)}return t.setPosition(i+32),[o,32]}let a=0,o=[];for(let s=0;s<r;++s){let[r,s]=e(t,n,{staticPosition:i+a});a+=s,o.push(r)}return[o,a]}(t,{...n,type:i},{length:r,staticPosition:a})}if("tuple"===n.type)return function(t,n,{staticPosition:r}
41){let i=0===n.components.length||n.components.some(({name:e})=>!e),a=i?[]:{},o=0;if(m(n)){let s=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let c=n.components[r];t.setPosition(s+o);let[u,l]=e(t,c,{staticPosition:s});o+=l,a[i?r:c?.name]=u}return t.setPosition(r+32),[a,32]}for(let s=0;s<n.components.length;++s){let c=n.components[s],[u,l]=e(t,c,{staticPosition:r});a[i?s:c?.name]=u,o+=l}return[a,o]}(t,n,{staticPosition:a});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n)),n.length>1||n[0]>1)throw new u.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=f(e.readBytes(32));e.setPosition(n+t);let r=f(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:a});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.y_)(n,t)}(i,{signed:n}):f(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=f(e.readBytes(32));e.setPosition(t+n);let r=f(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),a=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.f)(i));return e.setPosition(t+32),[a,32]}(t,{staticPosition:a});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,n,{staticPosition:0});y+=o,g.push(a)}return g}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let n=(0,h.S)(e.type);return!!(n&&m({...e,type:n[1]}))}},71108:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(47807),i=n(52186),a=n(49014),o=n(87522),s=n(52998),c=n(20101);function u(e){let{abi:t,data:n,cause:u}=e,l=(0,a.tP)(n,0,4);if("0x"===l)throw new i.wb({cause:u});let d=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&l===(0,o.C)((0,c.t)(e)));if(!d)throw new i.yP(l,{docsPath:"/docs/contract/decodeErrorResult",cause:u});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,s.r)(d.inputs,(0,a.tP)(n,4)):void 0,errorName:d.name}}},46699:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var r=n(52186),i=n(19477),a=n(7508),o=n(53263),s=n(52998),c=n(20101);let u="/docs/contract/decodeEventLog";function l(e){let{abi:t,data:n,strict:l,topics:d}=e,f=l??!0,[p,...h]=d;if(!p)throw new r.FM({docsPath:u});let b=t.find(e=>"event"===e.type&&p===(0,o.n)((0,c.t)(e)));if(!(b&&"name"in b)||"event"!==b.type)throw new r.lC(p,{docsPath:u});let{name:m,inputs:y}=b,g=y?.some(e=>!("name"in e&&e.name)),w=g?[]:{},v=y.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed),x=[];for(let e=0;e<v.length;e++){let[t,n]=v[e],i=h[e];if(!i){if(f)throw new r.Gy({abiItem:b,param:t});x.push([t,n]);continue}w[g?n:t.name||n]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.r)([e],t)||[])[0]}({param:t,value:i})}let _=y.filter(e=>!("indexed"in e&&e.indexed)),E=f?_:[...x.map(([e])=>e),..._];if(E.length>0){if(n&&"0x"!==n)try{let e=(0,s.r)(E,n);if(e){let t=0;if(!f)for(let[n,r]of x)w[g?r:n.name||r]=e[t++];if(g)for(let n=0;n<y.length;n++)void 0===w[n]&&t<e.length&&(w[n]=e[t++]);else for(let n=0;n<_.length;n++)w[_[n].name]=e[t++]}}catch(e){if(f){if(e instanceof r.xB||e instanceof i.lQ)throw new r.SM({abiItem:b,data:n,params:E,size:(0,a.d)(n)});throw e}}else if(f)throw new r.SM({abiItem:b,data:"0x",params:E,size:0})}return{eventName:m,args:Object.values(w).length>0?w:void 0}}},43408:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(52186),i=n(49014),a=n(87522),o=n(52998),s=n(20101);function c(e){let{abi:t,data:n}=e,c=(0,i.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,a.C)((0,s.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,o.r)(u.inputs,(0,i.tP)(n,4)):void 0}}},97225:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(52186),i=n(52998),a=n(18748);let o="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:c}=e,u=t[0];if(s){let e=(0,a.mE)({abi:t,args:n,name:s});if(!e)throw new r.xL(s,{docsPath:o});u=e}if("function"!==u.type)throw new r.xL(void 0,{docsPath:o});if(!u.outputs)throw new r.MX(u.name,{docsPath:o});let l=(0,i.r)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},39480:function(e,t,n){"use strict";n.d(t,{E:function(){return h},S:function(){return m}});var r=n(52186),i=n(51359),a=n(6649),o=n(74188),s=n(64113),c=n(53932),u=n(88202),l=n(7508),d=n(49014),f=n(95046),p=n(88
vendor: 6,548 bytes, line 41
41056);function h(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=b(function({params:e,values:t}){let n=[];for(let h=0;h<e.length;h++)n.push(function e({param:t,value:n}){let h=m(t.type);if(h){let[i,a]=h;return function(t,{length:n,param:i}){let a=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!a&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,s=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),s.push(r)}if(a||o){let e=b(s);if(a){let t=(0,f.eC)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,c.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.zo)(s.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let a=0;a<n.components.length;a++){let o=n.components[a],s=Array.isArray(t)?a:o.name,c=e({param:o,value:t[s]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(i):(0,c.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,u.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new a.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.gc)((0,f.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=p.lh.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new o.J5({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.eC)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,l.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,u.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.M4({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,f.$G)(e),n=Math.ceil((0,l.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)((0,l.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function b(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,l.d)(i)}let n=[],r=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:s}=e[a];o?(n.push((0,f.eC)(t+i,{size:32})),r.push(s),i+=(0,l.d)(s)):n.push(s)}return(0,c.zo)([...n,...r])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},32637:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(52186),i=n(53932),a=n(39480);let o="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new r.fM({docsPath:o});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new r.cO({docsPath:o});let u=(0,a.E)(c.inputs,n);return(0,i.SM)([s,u])}},36212:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(52186),i=n(6649);class a extends i.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var o=n(82361),s=n(29886),c=n(53263),u=n(39480),l=n(20101),d=n(18748);let f="/docs/contract/encodeEventTopics";function p(e){let{abi:t,eventName:n,args:i}=e,a=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new r.mv(n,{docsPath:f});a=e}if("event"!==a.type)throw new r.mv(void 0,{docsPath:f});let o=(0,l.t)(a),s=(0,c.n)(o),u=[];if(i&&"inputs"in a){let e=a.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(i)?i:Object.values(i).length>0?e?.map(e=>i[e.name])??[]:[];t.length>0&&(u=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>h({param:e,value:t[n][i]})):void 0!==t[n]&&null!==t[n]?h({param:e,value:t[n]}):null)??[])}return[s,...u]}function h({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.w)((0,o.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new a(e.type);return(0,u.E)([e],[t])}},31006:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(53932),i=n(39480),a=n(52186),o=n(87522),s=n(20101),c=n(18748);let u="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,i=t[0];if(r){let e=(0,c.mE)({abi:t,args:n,name:r});if(!e)throw new a.xL(r,{docsPath:u});i=e}if("function"!==i.type)throw new a.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,o.C)((0,s.t)(i))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,r.SM)([l,f??"0x"])}},20101:function(e,t,n){"use strict";n.d(t,{h:function(){return a},t:function(){return i}});var r=n(52186);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},18748:function(e,t,n){"use strict";n.d(t,{mE:function(){return c}});var r=n(52186),i=n(40369),a=n(64113),o=n(53263),s=n(87522);function c(e){let t;let{abi:n,args:c=[],name:u}=e,l=(0,i.v)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,s.C)(e)===u:"event"===e.type&&(0,o.n)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,a.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,i)=>
41"object"===r&&e(Object.values(t)[i],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let o=t[i],s=n[i];if("tuple"===o.type&&"tuple"===s.type&&"components"in o&&"components"in s)return e(o.components,s.components,r[i]);let c=[o.type,s.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,a.U)(r[i],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},31703:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(65937),i=n(82361),a=n(21677),o=n(29886),s=n(53263),c=n(46699);function u(e){let{abi:t,args:n,logs:u,strict:l=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),f=t.filter(e=>"event"===e.type).map(e=>({abi:e,selector:(0,s.n)(e)}));return u.map(e=>{let t,s;let u="string"==typeof e.blockNumber?(0,a.U)(e):e,p=f.filter(e=>u.topics[0]===e.selector);if(0===p.length)return null;for(let e of p)try{t=(0,c.F)({...u,abi:[e.abi],strict:!0}),s=e;break}catch{}if(!t&&!l){s=p[0];try{t=(0,c.F)({data:u.data,topics:u.topics,abi:[s.abi],strict:!1})}catch{let e=s.abi.inputs?.some(e=>!("name"in e&&e.name));return{...u,args:e?[]:{},eventName:s.abi.name}}}return t&&s&&(!d||d.includes(t.eventName))&&function(e){let{args:t,inputs:n,matchArgs:a}=e;if(!a)return!0;if(!t)return!1;function s(e,t,n){try{if("address"===e.type)return(0,r.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,o.w)((0,i.O0)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(a)?a.every((e,r)=>{if(null==e)return!0;let i=n[r];return!!i&&(Array.isArray(e)?e:[e]).some(e=>s(i,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof a||Array.isArray(a))&&Object.entries(a).every(([e,r])=>{if(null==r)return!0;let i=n.find(t=>t.name===e);return!!i&&(Array.isArray(r)?r:[r]).some(n=>s(i,n,t[e]))})}({args:t.args,inputs:s.abi.inputs,matchArgs:n})?{...t,...u}:null}).filter(Boolean)}},99112:function(e,t,n){"use strict";n.d(t,{K:function(){return l},x:function(){return u}});var r=n(51359),i=n(82361),a=n(29886),o=n(98992),s=n(64113);let c=new o.k(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.w)((0,i.qX)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let s=`0x${o.join("")}`;return c.set(`${e}.${t}`,s),s}function l(e,t){if(!(0,s.U)(e,{strict:!1}))throw new r.b({address:e});return u(e,t)}},64113:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(98992),i=n(99112);let a=/^0x[a-fA-F0-9]{40}$/,o=new r.k(8192);function s(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(o.has(r))return o.get(r);let s=!!a.test(e)&&(e.toLowerCase()===e||!n||(0,i.x)(e)===e);return o.set(r,s),s}},65937:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(51359),i=n(64113);function a(e,t){if(!(0,i.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},92064:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(53932),i=n(82361),a=n(95046),o=n(7092),s=n(29886);function c(e){let{chainId:t,nonce:n,to:c}=e,u=e.contractAddress??e.address,l=(0,s.w)((0,r.SM)(["0x05",(0,o.LV)([t?(0,a.eC)(t):"0x",u,n?(0,a.eC)(n):"0x"])]));return"bytes"===c?(0,i.nr)(l):l}},87369:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(60107),i=n(92064);async function a(e){let{authorization:t,signature:n}=e;return(0,r.R)({hash:(0,i.t)(t),signature:n??t})}},40598:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(82361),i=n(95046);function a(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o=[];for(let e of a)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?o:o.map(e=>(0,i.ci)(e))}},18383:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(82361),i=n(95046);function a(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.nr)(e)):e.commitments,s=[];for(let e=0;e<a.length;e++){let n=a[e],r=o[e];s.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?s:s.map(e=>(0,i.ci)(e))}},55551:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(95046),i=n(79965);
vendor: 5,034 bytes, line 41
41function a(e){let{commitments:t,version:n}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),o=[];for(let e of t)o.push(function(e){let{commitment:t,version:n=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),o=(0,i.J)(t,"bytes");return o.set([n],0),"bytes"===a?o:(0,r.ci)(o)}({commitment:e,to:a,version:n}));return o}},30721:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(40598),i=n(18383),a=n(25678),o=n(15222),s=n(7508),c=n(82361),u=n(95046);function l(e){let{data:t,kzg:n,to:l}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,c.nr)(e.data):e.data,r=(0,s.d)(n);if(!r)throw new a.RX;if(r>761855)throw new a.m7({maxSize:761855,size:r});let i=[],l=!0,d=0;for(;l;){let e=(0,o.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(d,d+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:l}),f=e.commitments??(0,r.P)({blobs:d,kzg:n,to:l}),p=e.proofs??(0,i.y)({blobs:d,commitments:f,kzg:n,to:l}),h=[];for(let e=0;e<d.length;e++)h.push({blob:d[e],commitment:f[e],proof:p[e]});return h}},18543:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(89045);function i({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},15222:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(19477);let i={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 r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function a(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},53932:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>
41e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},40369:function(e,t,n){"use strict";function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}n.d(t,{v:function(){return r}})},88202:function(e,t,n){"use strict";n.d(t,{gc:function(){return a},vk:function(){return i}});var r=n(75057);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?a(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$s({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let a="right"===t;i[a?r:n-r-1]=e[a?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function a(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.$s({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},7508:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(40369);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},49014:function(e,t,n){"use strict";n.d(t,{T4:function(){return u},p5:function(){return l},tP:function(){return o}});var r=n(75057),i=n(40369),a=n(7508);function o(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?l(e,t,n,{strict:r}):u(e,t,n,{strict:r})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,a.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,a.d)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,a.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,a.d)(e)})}function u(e,t,n,{strict:r}={}){s(e,t);let i=e.slice(t,n);return r&&c(i,t,n),i}function l(e,t,n,{strict:r}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&c(i,t,n),i}},77955:function(e,t,n){"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)r++;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{f:function(){return r}})},21019:function(e,t,n){"use strict";n.d(t,{XA:function(){return u},Yf:function(){return s},ly:function(){return l},rR:function(){return d},y_:function(){return c}});var r=n(74188),i=n(7508),a=n(77955),o=n(82361);function s(e,{size:t}){if((0,i.d)(e)>t)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function c(e,t={}){let{signed:n}=t;t.size&&s(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let n=e;if(t.size&&(s(n,{size:t.size}),n=(0,a.f)(n)),"0x00"===(0,a.f)(n))return!1;if("0x01"===(0,a.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){let n=c(e,t),i=Number(n);if(!Number.isSafeInteger(i))throw new r.J5({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return i}function d(e,t={}){let n=(0,o.nr)(e);return t.size&&(s(n,{size:t.size}),n=(0,a.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},82361:function(e,t,n){"use strict";n.d(t,{O0:function(){return u},nr:function(){return f},qX:function(){return p}});var r=n(6649),i=n(40369),a=n(88202),o=n(21019),s=n(95046);let c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?f((0,s.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(n,{size:t.size}),(0,a.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?f(e,t):p(e,t)}let l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let n=e;t.size&&((0,o.Yf)(n,{size:t.size}),n=(0,a.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,c=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let n=d(i.charCodeAt(t++)),a=d(i.charCodeAt(t++));if(void 0===n||void 0===a)throw new r.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);c[e]=16*n+a}return c}function p(e,t={}){let n=c.encode(e);return"number"==typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,a.vk)(n,{dir:"right",size:t.size})):n}},95046:function(e,t,n){"use strict";n.d(t,{$G:function(){return f},C4:function(){return c},NC:function(){return s},ci:function(){return u},eC:function(){return l}});var r=n(74188),i=n(88202),a=n(21019);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):u(e,t)}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=o[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:a,size:o}=t,s=BigInt(e);o?n=a?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof n&&a?-n-1n:0;if(n&&s>n||s<c){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${c}${t}`,signed:a,size:o,value:`${e}${t}`})}let u=`0x${(a&&s<0?(1n<<BigInt(8*o))+BigInt(s):s).toString(16)}`;return o?(0,i.vk)(u,{size:o}):u}let d=new TextEncoder;function f(e,t={}){return u(d.encode(e),t)}},7092:function(e,t,n){"use strict";n.d(t,{LV:function(){return s}});var r=n(6649),i=n(15222),a=n(82361),o=n(95046);function s(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>
41e+t.length,0),n=c(t);return{length:t<=55?1+t:1+n+t,encode(r){for(let{encode:i}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))i(r)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,a.nr)(e):e,n=c(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),r=(0,i.q)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,o.ci)(r.bytes):r.bytes}function c(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.G("Length is too large.")}},3429:function(e,t,n){"use strict";n.d(t,{w:function(){return m},M:function(){return b}});var r=n(21620),i=n(47807),a=n(43408),o=n(52186),s=n(53932),c=n(87522),u=n(39480),l=n(20101),d=n(18748);let f="/docs/contract/encodeErrorResult";function p(e){let{abi:t,errorName:n,args:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,args:r,name:n});if(!e)throw new o.MS(n,{docsPath:f});i=e}if("error"!==i.type)throw new o.MS(void 0,{docsPath:f});let a=(0,l.t)(i),p=(0,c.C)(a),h="0x";if(r&&r.length>0){if(!i.inputs)throw new o.Zh(i.name,{docsPath:f});h=(0,u.E)(i.inputs,r)}return(0,s.SM)([p,h])}let h="/docs/contract/encodeFunctionResult",b="x-batch-gateway:true";async function m(e){let{data:t,ccipRequest:n}=e,{args:[s]}=(0,a.p)({abi:r.Yi,data:t}),c=[],l=[];return await Promise.all(s.map(async(e,t)=>{try{l[t]=e.urls.includes(b)?await m({data:e.data,ccipRequest:n}):await n(e),c[t]=!1}catch(e){c[t]=!0,l[t]="HttpRequestError"===e.name&&e.status?p({abi:r.Yi,errorName:"HttpError",args:[e.status,e.shortMessage]}):p({abi:[i.Up],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}})),function(e){let{abi:t,functionName:n,result:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new o.xL(n,{docsPath:h});i=e}if("function"!==i.type)throw new o.xL(void 0,{docsPath:h});if(!i.outputs)throw new o.MX(i.name,{docsPath:h});let a=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[r];if(Array.isArray(r))return r;throw new o.hn(r)})();return(0,u.E)(i.outputs,a)}({abi:r.Yi,functionName:"query",result:[c,l]})}},8114:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(58591),i=n(37764),a=n(43149);function o(e,{docsPath:t,...n}){let o=(()=>{let t=(0,a.k)(e,n);return t instanceof i.cj?e:t})();return new r.cg(o,{docsPath:t,...n})}},92915:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(52186),i=n(6649),a=n(58591),o=n(4456),s=n(96329);function c(e,{abi:t,address:n,args:c,docsPath:u,functionName:l,sender:d}){let f=e instanceof a.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:h,details:b,message:m,shortMessage:y}=f,g=e instanceof r.wb?new a.Dk({functionName:l,cause:e}):[3,s.XS.code].includes(p)&&(h||b||m||y)||p===s.yR.code&&"execution reverted"===b&&h?new a.Lu({abi:t,data:"object"==typeof h?h.data:h,functionName:l,message:f instanceof o.bs?b:y??m,cause:e}):e;return new a.uq(g,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:l,sender:d})}},43149:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(6649),i=n(37764);function a(e,t){let n=(e.details||"").toLowerCase(),a=e instanceof r.G?e.walk(e=>e?.code===i.M_.code):e;return a instanceof r.G?new i.M_({cause:e,message:a.details}):i.M_.nodeMessage.test(n)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(n)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(n)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(n)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(n)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(n)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(n)?new i.C_({cause:e}):i.WF.nodeMessage.test(n)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(n)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(n)?new i.pZ({cause:e}):i.cs.nodeMessage.test(n)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},79320:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(37764),i=n(97658),a=n(43149);function o(e,{docsPath:t,...n}){let o=(()=>{let t=(0,a.k)(e,n);return t instanceof r.cj?e:t})();return new i.mk(o,{docsPath:t,...n})}},48586:function(e,t,n){"use strict";function r(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:a})=>{"success"===i&&t===e&&(n[r]=a.request)}),t=>n[t]||e.request}n.d(t,{g:function(){return r}})},20621:function(e,t,n){"use strict";n.d(t,{G:function(){return o},Z:function(){return a}});var r=n(74558),i=n(16719);function a(e,t){let n=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLim
41it?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,r.$)("block",a)},27031:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let i of Object.keys(r))i in e&&(n[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}n.d(t,{K:function(){return r}})},74558:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{let a=t(e,i);if(n)for(let e of n)delete a[e];return{...a,...r(e,i)}},type:e})}n.d(t,{$:function(){return r}})},21677:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},16719:function(e,t,n){"use strict";n.d(t,{Tr:function(){return o},c8:function(){return a},y_:function(){return s}});var r=n(21019),i=n(74558);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e,t){let n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}let s=(0,i.$)("transaction",o)},55875:function(e,t,n){"use strict";n.d(t,{dI:function(){return u},ew:function(){return s},fA:function(){return c}});var r=n(21019),i=n(74558),a=n(21677),o=n(16719);let s={"0x0":"reverted","0x1":"success"};function c(e,t){let n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?o.c8[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}let u=(0,i.$)("transactionReceipt",c)},37669:function(e,t,n){"use strict";n.d(t,{iy:function(){return s},tG:function(){return o}});var r=n(95046),i=n(74558);let a={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.eC)(BigInt(e.r)):e.r,s:e.s?(0,r.eC)(BigInt(e.s)):e.s,chainId:(0,r.eC)(e.chainId),nonce:(0,r.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.eC)(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,r.ci)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.eC)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.eC)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=a[e.type]),void 0!==e.value&&(n.value=(0,r.eC)(e.value)),n}let s=(0,i.$)("transactionRequest",o)},93413:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},29886:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(35743),i=n(40369),a=n(82361),o=n(95046);function s(e,t){let n=(0,r.fr)((0,i.v)(e,{strict:!1})?(0,a.O0)(e):e);return"bytes"===(t||"hex")?n:(0,o.NC)(n)}},79965:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(65530),i=n(40369),a=n(82361),o=n(95046);function s(e,t){let n=(0,r.JQ)((0,i.v)(e,{strict:!1})?(0,a.O0)(e):e);return"bytes"===(t||"hex")?n:(0,o.NC)(n)}},53263:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});let r=n(81430).r},87522:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(49014),i=n(81430);let a=e=>(0,r.tP)((0,i.r)(e),0,4)},81430:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(82361),i=n(29886);let a=e=>(0,i.w)((0,r.O0)(e));var o=n(15579),s=n(6649);let c=e=>(function(e){let t=!0,n="",r=0,i="",a=!1;for(let o=0;o<e.length;o++){let s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}continue}if(" "===s){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=s,n+=s}}if(!a)throw new s.G("Unable to normalize signature.");return i}
41)("string"==typeof e?e:(0,o.t)(e));function u(e){return a(c(e))}},98992:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}},24606:function(e,t,n){"use strict";n.d(t,{N7:function(){return o}});let r=new Map,i=new Map,a=0;function o(e,t,n){let o=++a,s=()=>r.get(e)||[],c=()=>{let t=s();r.set(e,t.filter(e=>e.id!==o))},u=()=>{let t=s();if(!t.some(e=>e.id===o))return;let n=i.get(e);if(1===t.length&&n){let e=n();e instanceof Promise&&e.catch(()=>{})}c()},l=s();if(r.set(e,[...l,{id:o,fns:t}]),l&&l.length>0)return u;let d={};for(let e in t)d[e]=(...t)=>{let n=s();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&i.set(e,f),u}},9338:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(97317);function i(e,{emitOnBegin:t,initialWaitTime:n,interval:i}){let a=!0,o=()=>a=!1;return(async()=>{let s;t&&(s=await e({unpoll:o}));let c=await n?.(s)??i;await (0,r.D)(c);let u=async()=>{a&&(await e({unpoll:o}),await (0,r.D)(i),u())};u()})(),o}},10639:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(49568);let i=new Map;function a({fn:e,id:t,shouldSplitBatch:n,wait:a=0,sort:o}){let s=async()=>{let t=l();c();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{o&&Array.isArray(e)&&e.sort(o);for(let n=0;n<t.length;n++){let{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{reject:r}=t[n];r?.(e)}})},c=()=>i.delete(t),u=()=>l().map(({args:e})=>e),l=()=>i.get(t)||[],d=e=>i.set(t,[...l(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:i,reject:o}=(0,r.n)();return(n?.([...u(),e])&&s(),l().length>0)?d({args:e,resolve:i,reject:o}):(d({args:e,resolve:i,reject:o}),setTimeout(s,a)),t}}}},49568:function(e,t,n){"use strict";function r(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{n:function(){return r}})},55894:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(97317);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((a,o)=>{let s=async({count:c=0}={})=>{let u=async({error:e})=>{let n="function"==typeof t?t({count:c,error:e}):t;n&&await (0,r.D)(n),s({count:c+1})};try{let t=await e();a(t)}catch(e){if(c<n&&await i({count:c,error:e}))return u({error:e});o(e)}};s()})}},13581:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let o;try{let s=new AbortController;n>0&&(o=setTimeout(()=>{r?s.abort():a(t)},n)),i(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(o)}})()})}n.d(t,{F:function(){return r}})},88056:function(e,t,n){"use strict";n.d(t,{Ow:function(){return r},eL:function(){return i},lh:function(){return a}});let r=/^(.*)\[([0-9]*)\]$/,i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^(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)?$/},32933:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(29886),i=n(53932),a=n(7508),o=n(95046);function s(e,t){return(0,r.w)(function(e){let t="string"==typeof e?(0,o.$G)(e):"string"==typeof e.raw?e.raw:(0,o.ci)(e.raw),n=(0,o.$G)(`\x19Ethereum Signed Message: 42${(0,a.d)(t)}`);return(0,i.zo)([n,t])}(e),t)}},51930:function(e,t,n){"use strict";n.d(t,{Jv:function(){return c}});var r=n(39480),i=n(53932),a=n(95046),o=n(29886),s=n(92180);function c(e){let{domain:t={},message:n,primaryType:r}=e,a={EIP712Domain:(0,s.cj)({domain:t}),...e.types};(0,s.iC)({domain:t,message:n,primaryType:r,types:a});let c=["0x1901"];return t&&c.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:a})),"EIP712Domain"!==r&&c.push(u({data:n,primaryType:r,types:a})),(0,o.w)((0,i.zo)(c))}function u({data:e,primaryType:t,types:n}){let i=function e({data:t,primaryType:n,types:i}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let n=(0,a.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u),a=i?.[0];if(r.has(a)||void 0===n[a])return r;for(let t of(r.add(a),n[a]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let i of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,o.w)(n)}({primaryType:n,types:i})];for(let u of i[n]){let[n,l]=function t({types:n,name:i,type:s,value:c}){if(void 0!==n[s])return[{type:"bytes32"},(0,o.w)(e({data:c,primaryType:s,types:n}))];if("bytes"===s)return[{type:"bytes32"},(0,o.w)(c)];if("string"===s)return[{type:"bytes32"},(0,o.w)((0,a.NC)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),a=c.map(r=>
vendor: 4,120 bytes, line 42
42t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},(0,o.w)((0,r.E)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:s},c]}({types:i,name:u.name,type:u.type,value:t[u.name]});s.push(n),c.push(l)}return(0,r.E)(s,c)}({data:e,primaryType:t,types:n});return(0,o.w)(i)}},60107:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(19605),i=n(40369),a=n(7508),o=n(21019),s=n(95046);async function c({hash:e,signature:t}){let r=(0,i.v)(e)?e:(0,s.NC)(e),{secp256k1:c}=await Promise.resolve().then(n.bind(n,73645)),l=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:i}=t,a=u(Number(i??r));return new c.Signature((0,o.y_)(e),(0,o.y_)(n)).addRecoveryBit(a)}let e=(0,i.v)(t)?t:(0,s.NC)(t);if(65!==(0,a.d)(e))throw Error("invalid signature length");let n=u((0,o.ly)(`0x${e.slice(130)}`));return c.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${l}`}function u(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function l({hash:e,signature:t}){return(0,r.y)(await c({hash:e,signature:t}))}},57426:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(73645),i=n(21019),a=n(82361);function o({r:e,s:t,to:n="hex",v:o,yParity:s}){let c=(()=>{if(0===s||1===s)return s;if(o&&(27n===o||28n===o||o>=35n))return o%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),u=`0x${new r.secp256k1.Signature((0,i.y_)(e),(0,i.y_)(t)).toCompactHex()}${0===c?"1b":"1c"}`;return"hex"===n?u:(0,a.nr)(u)}},11667:function(e,t,n){"use strict";n.d(t,{mF:function(){return u}});var r=n(51359),i=n(75057),a=n(75534),o=n(64113),s=n(95046);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,o.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new a.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,u={};if(void 0!==o&&(u.code=o),void 0!==t&&(u.balance=(0,s.eC)(t)),void 0!==n&&(u.nonce=(0,s.eC)(n)),void 0!==r&&(u.state=c(r)),void 0!==i){if(u.state)throw new a.Z8;u.stateDiff=c(i)}return u}(i)}return t}},47499:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},82857:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(96104),i=n(62798),a=n(51359),o=n(37764),s=n(64113);function c(e){let{account:t,maxFeePerGas:n,maxPriorityFeePerGas:c,to:u}=e,l=t?(0,r.T)(t):void 0;if(l&&!(0,s.U)(l.address))throw new a.b({address:l.address});if(u&&!(0,s.U)(u))throw new a.b({address:u});if(n&&n>i.zL)throw new o.Hh({maxFeePerGas:n});if(c&&n&&c>n)throw new o.cs({maxFeePerGas:n,maxPriorityFeePerGas:c})}},33884:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(97658);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new r.j3({transaction:e})}},92180:function(e,t,n){"use strict";n.d(t,{cj:function(){return m},H6:function(){return h},iC:function(){return b}});var r=n(52186),i=n(51359),a=n(47499),o=n(6649);class s extends o.G{constructor({domain:e}){super(`Invalid domain "${(0,a.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class c extends o.G{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class u extends o.G{constructor({type:e}){super(`Struct type "${e}
42" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var l=n(64113),d=n(7508),f=n(95046),p=n(88056);function h(e){let{domain:t,message:n,primaryType:r,types:i}=e,o=(e,t)=>{let n={...t};for(let t of e){let{name:e,type:r}=t;"address"===r&&(n[e]=n[e].toLowerCase())}return n},s=i.EIP712Domain&&t?o(i.EIP712Domain,t):{},c=(()=>{if("EIP712Domain"!==r)return o(i[r],n)})();return(0,a.P)({domain:s,message:c,primaryType:r,types:i})}function b(e){let{domain:t,message:n,primaryType:a,types:o}=e,h=(e,t)=>{for(let n of e){let{name:e,type:a}=n,s=t[e],c=a.match(p.lh);if(c&&("number"==typeof s||"bigint"==typeof s)){let[e,t,n]=c;(0,f.eC)(s,{signed:"int"===t,size:Number.parseInt(n,10)/8})}if("address"===a&&"string"==typeof s&&!(0,l.U)(s))throw new i.b({address:s});let b=a.match(p.eL);if(b){let[e,t]=b;if(t&&(0,d.d)(s)!==Number.parseInt(t,10))throw new r.KY({expectedSize:Number.parseInt(t,10),givenSize:(0,d.d)(s)})}let m=o[a];m&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new u({type:e})}(a),h(m,s))}};if(o.EIP712Domain&&t){if("object"!=typeof t)throw new s({domain:t});h(o.EIP712Domain,t)}if("EIP712Domain"!==a){if(o[a])h(o[a],n);else throw new c({primaryType:a,types:o})}}function m({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},14851:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return a}});let i=256;function a(e=11){if(!r||i+e>512){r="",i=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(i,i+++e)}},85053:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(90408),i=n(42921);function a(e,t="wei"){return(0,i.b)(e,r.ez[t])}},49268:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(90408),i=n(42921);function a(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},42921:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,a]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}n.d(t,{b:function(){return r}})},97317:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},73645:function(e,t,n){"use strict";n.d(t,{secp256k1:function(){return eE}});var r=n(90733),i=n(93557),a=n(68104);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=BigInt(0),s=BigInt(1);function c(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function u(e){if(!c(e))throw Error("Uint8Array expected")}function l(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function d(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?o:BigInt("0x"+e)}let p="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,h=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function b(e){if(u(e),p)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=h[e[n]];return t}let m={_0:48,_9:57,A:65,F:70,a:97,f:102};function y(e){return e>=m._0&&e<=m._9?e-m._0:e>=m.A&&e<=m.F?e-(m.A-10):e>=m.a&&e<=m.f?e-(m.a-10):void 0}function g(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(p)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=y(e.charCodeAt(i)),a=y(e.charCodeAt(i+1));if(void 0===n||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);r[t]=16*n+a}return r}function w(e){return f(b(e))}function v(e){return u(e),f(b(Uint8Array.from(e).reverse()))}function x(e,t){return g(e.toString(16).padStart(2*t,"0"))}function _(e,t){return x(e,t).reverse()}function E(e,t,n){let r;if("string"==typeof t)try{r=g(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(c(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=r.length;if("number"==typeof n&&i!==n)throw Error(e+" of length "+n+" expected, got "+i);return r}function A(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];u(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}let k=e=>"bigint"==typeof e&&o<=e;
vendor: 4,886 bytes, line 42
42function C(e,t,n){return k(e)&&k(t)&&k(n)&&t<=e&&e<n}function P(e,t,n,r){if(!C(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}let S=e=>(s<<BigInt(e))-s,I=e=>new Uint8Array(e),T=e=>Uint8Array.from(e),O={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||c(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function M(e,t,n={}){let r=(t,n,r)=>{let i=O[n];if("function"!=typeof i)throw Error("invalid validator function");let a=e[t];if((!r||void 0!==a)&&!i(a,e))throw Error("param "+String(t)+" is invalid. Expected "+n+", got "+a)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}function N(e){let t=new WeakMap;return(n,...r)=>{let i=t.get(n);if(void 0!==i)return i;let a=e(n,...r);return t.set(n,a),a}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let B=BigInt(0),R=BigInt(1),U=BigInt(2),F=BigInt(3),$=BigInt(4),D=BigInt(5),L=BigInt(8);function j(e,t){let n=e%t;return n>=B?n:t+n}function z(e,t,n){let r=e;for(;t-- >B;)r*=r,r%=n;return r}function W(e,t){if(e===B)throw Error("invert: expected non-zero number");if(t<=B)throw Error("invert: expected positive modulus, got "+t);let n=j(e,t),r=t,i=B,a=R,o=R,s=B;for(;n!==B;){let e=r/n,t=r%n,c=i-o*e,u=a-s*e;r=n,n=t,i=o,a=s,o=c,s=u}if(r!==R)throw Error("invert: does not exist");return j(i,t)}function G(e,t){let n=(e.ORDER+R)/$,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw Error("Cannot find square root");return r}function q(e,t){let n=(e.ORDER-D)/L,r=e.mul(t,U),i=e.pow(r,n),a=e.mul(t,i),o=e.mul(e.mul(a,U),i),s=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(s),t))throw Error("Cannot find square root");return s}let H=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function V(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),a=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),a),r}function Z(e,t){let n=(e.ORDER-R)/U,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),o=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!o)throw Error("invalid Legendre symbol result");return i?1:a?0:-1}function K(e,t){void 0!==t&&(0,a.k8)(t);let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Y(e,t,n=!1,r={}){let i;if(e<=B)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:a,nByteLength:o}=K(e,t);if(o>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:n,BITS:a,BYTES:o,MASK:S(a),ZERO:B,ONE:R,create:t=>j(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return B<=t&&t<e},is0:e=>e===B,isOdd:e=>(e&R)===R,neg:t=>j(-t,e),eql:(e,t)=>e===t,sqr:t=>j(t*t,e),add:(t,n)=>j(t+n,e),sub:(t,n)=>j(t-n,e),mul:(t,n)=>j(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<B)throw Error("invalid exponent, negatives unsupported");if(n===B)return e.ONE;if(n===R)return t;let r=e.ONE,i=t;for(;n>B;)n&R&&(r=e.mul(r,i)),i=e.sqr(i),n>>=R;return r})(s,e,t),div:(t,n)=>j(t*W(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>W(t,e),sqrt:r.sqrt||(t=>(!i&&(i=e%$===F?G:e%L===D?q:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-R,n=0;for(;t%U===B;)t/=U,n++;let r=U,i=Y(e);for(;1===Z(i,r);)if(r++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===n)return G;let a=i.pow(r,t),o=(t+R)/U;return function(e,r){if(e.is0(r))return r;if(1!==Z(e,r))throw Error("Cannot find square root");let i=n,s=e.mul(e.ONE,a),c=e.pow(r,t),u=e.pow(r,o);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error("Cannot find square root");let r=R<<BigInt(i-t-1),a=e.pow(s,r);i=t,s=e.sqr(a),c=e.mul(c,s),u=e.mul(u,a)}return u}}(e)),i(s,t))),toBytes:e=>n?_(e,o):x(e,o),fromBytes:e=>{if(e.length!==o)throw Error("Field.fromBytes: expected "+o+" bytes, got "+e.length);return n?v(e):w(e)},invertBatch:e=>V(s,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(s)}function J(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function X(e){let t=J(e);return t+Math.ceil(t/2)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let Q=BigInt(0),ee=BigInt(1);function et(e,t){let n=t.negate();return e?n:t}function en(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function er(e,t){en(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:S(e),maxNumber:i,shiftBy:BigInt(e)}}
vendor: 16,106 bytes, line 42
42function ei(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),c=e>>o;s>r&&(s-=a,c+=ee);let u=t*r,l=u+Math.abs(s)-1;return{nextN:c,offset:l,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:u}}let ea=new WeakMap,eo=new WeakMap;function es(e){return eo.get(e)||1}function ec(e){return M(e.Fp,H.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),M(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...K(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function eu(e){void 0!==e.lowS&&l("lowS",e.lowS),void 0!==e.prehash&&l("prehash",e.prehash)}class el extends Error{constructor(e=""){super(e)}}let ed={Err:el,_tlv:{encode:(e,t)=>{let{Err:n}=ed;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");let r=t.length/2,i=d(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");let a=r>127?d(i.length/2|128):"";return d(e)+a+i+t},decode(e,t){let{Err:n}=ed,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let i=t[r++],a=0;if(128&i){let e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let o=t.subarray(r,r+e);if(o.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===o[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of o)a=a<<8|e;if(r+=e,a<128)throw new n("tlv.decode(long): not minimal encoding")}else a=i;let o=t.subarray(r,r+a);if(o.length!==a)throw new n("tlv.decode: wrong value length");return{v:o,l:t.subarray(r+a)}}},_int:{encode(e){let{Err:t}=ed;if(e<ef)throw new t("integer: negative integers are not allowed");let n=d(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=ed;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return w(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ed,i=E("signature",e),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:c}=r.decode(2,a),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=ed,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s));return t.encode(48,r+i)}},ef=BigInt(0),ep=BigInt(1),eh=(BigInt(2),BigInt(3)),eb=BigInt(4),em=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ey=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eg=BigInt(0),ew=BigInt(1),ev=BigInt(2),ex=(e,t)=>(e+t/ev)/t,e_=Y(em,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%em,u=c*c*e%em,l=z(u,t,em)*u%em,d=z(l,t,em)*u%em,f=z(d,ev,em)*c%em,p=z(f,r,em)*f%em,h=z(p,i,em)*p%em,b=z(h,o,em)*h%em,m=z(b,s,em)*b%em,y=z(m,o,em)*h%em,g=z(y,t,em)*u%em,w=z(g,a,em)*p%em,v=z(w,n,em)*c%em,x=z(v,ev,em);if(!e_.eql(e_.sqr(x),e))throw Error("Cannot find square root");return x}}),eE=function(e,t){let n=t=>(function(e){let t=function(e){let t=ec(e);return M(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r,nByteLength:i,nBitLength:a}=t,u=n.BYTES+1,d=2*n.BYTES+1;function f(e){return j(e,r)}let{ProjectivePoint:p,normPrivateKeyToScalar:h,weierstrassEquation:m,isWithinCurveOrder:y}=function(e){var t;let n=function(e){let t=ec(e);M(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=n,i=Y(n.n,n.nBitLength),a=n.toBytes||((e,t,n)=>{let i=t.toAffine();return A(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),u=n.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:t,b:i}=n,a=r.sqr(e),o=r.mul(a,e);return r.add(r.add(o,r.mul(e,t)),i)}function f(e,t){let n=r.sqr(t),i=d(e);return r.eql(n,i)}if(!f(n.Gx,n.Gy))throw Error("bad curve params: generator point");let p=r.mul(r.pow(n.a,eh),eb),h=r.mul(r.sqr(n.b),BigInt(27));if(r.is0(r.add(p,h)))throw Error("bad curve params: a or b");function m(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:a,n:o}=n;if(r&&"bigint"!=typeof e){if(c(e)&&(e=b(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{t="bigint"==typeof e?e:w(E("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return a&&(t=j(t,o)),P("private key",t,ep,o),t}function y(e){if(!(e instanceof x))throw Error("ProjectivePoint expected")}let g=N((e,t)=>{let{px:n,py:i,pz:a}=e;if(r.eql(a,r.ONE))return{x:n,y:i};let o=e.is0();null==t&&(t=o?r.ONE:r.inv(a));let s=r.mul(n,t),c=r.mul(i,t),u=r.mul(a,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:s,y:c}}),v=N(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:i}=e.toAffine();if(!r.isValid(t)||!r.isValid(i))throw Error("bad point: x or y not FE");if(!f(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class x{constructor(e,t,n){if(null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof x)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?x.ZERO:new x(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=V(r,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(x.fromAffine)}static fromHex(e){let t=x.fromAffine(u(E("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return x.BASE.multiply(m(e))}static msm(e,t){return function(e,t,n,r){!function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)})}(r,t);let i=n.length,a=r.length;if(i!==a)throw Error("arrays of points and scalars must have equal length");let c=e.ZERO,u=function(e){let t;for(t=0;e>o;e>>=s,t+=1);return t}(BigInt(i)),l=1;u>12?l=u-3:u>4?l=u-2:u>0&&(l=2);let d=S(l),f=Array(Number(d)+1).fill(c),p=Math.floor((t.BITS-1)/l)*l,h=c;for(let e=p;e>=0;e-=l){f.fill(c);for(let t=0;t<a;t++){let i=Number(r[t]>>BigInt(e)&d);f[i]=f[i].add(n[t])}let t=c;for(let e=f.length-1,n=c;e>0;e--)n=n.add(f[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<l;e++)h=h.double()}return h}(x,i,e,t)}_setWindowSize(e){I.setWindowSize(this,e)}assertValidity(){v(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:i}=this,{px:a,py:o,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(a,i)),u=r.eql(r.mul(n,s),r.mul(o,i));return c&&u}negate(){return new x(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,i=r.mul(t,eh),{px:a,py:o,pz:s}=this,c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(a,a),f=r.mul(o,o),p=r.mul(s,s),h=r.mul(a,o);return h=r.add(h,h),l=r.mul(a,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,p),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(h,c),l=r.mul(i,l),p=r.mul(e,p),h=r.sub(d,p),h=r.mul(e,h),h=r.add(h,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,h),u=r.add(u,d),p=r.mul(o,s),p=r.add(p,p),d=r.mul(p,h),c=r.sub(c,d),l=r.mul(p,f),l=r.add(l,l),new x(c,u,l=r.add(l,l))}add(e){y(e);let{px:t,py:i,pz:a}=this,{px:o,py:s,pz:c}=e,u=r.ZERO,l=r.ZERO,d=r.ZERO,f=n.a,p=r.mul(n.b,eh),h=r.mul(t,o),b=r.mul(i,s),m=r.mul(a,c),g=r.add(t,i),w=r.add(o,s);g=r.mul(g,w),w=r.add(h,b),g=r.sub(g,w),w=r.add(t,a);let v=r.add(o,c);return w=r.mul(w,v),v=r.add(h,m),w=r.sub(w,v),v=r.add(i,a),u=r.add(s,c),v=r.mul(v,u),u=r.add(b,m),v=r.sub(v,u),d=r.mul(f,w),u=r.mul(p,m),d=r.add(u,d),u=r.sub(b,d),d=r.add(b,d),l=r.mul(u,d),b=r.add(h,h),b=r.add(b,h),m=r.mul(f,m),w=r.mul(p,w),b=r.add(b,m),m=r.sub(h,m),m=r.mul(f,m),w=r.add(w,m),h=r.mul(b,w),l=r.add(l,h),h=r.mul(v,w),u=r.mul(g,u),u=r.sub(u,h),h=r.mul(g,b),d=r.mul(v,d),new x(u,l,d=r.add(d,h))}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}wNAF(e){return I.wNAFCached(this,e,x.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=n;P("scalar",e,ef,i);let a=x.ZERO;if(e===ef)return a;if(this.is0()||e===ep)return this;if(!t||I.hasPrecomputes(this))return I.wNAFCachedUnsafe(this,e,x.normalizeZ);let{k1neg:o,k1:s,k2neg:c,k2:u}=t.splitScalar(e),l=a,d=a,f=this;for(;s>ef||u>ef;)s&ep&&(l=l.add(f)),u&ep&&(d=d.add(f)),f=f.double(),s>>=ep,u>>=ep;return o&&(l=l.negate()),c&&(d=d.negate()),d=new x(r.mul(d.px,t.beta),d.py,d.pz),l.add(d)}multiply(e){let t,i;let{endo:a,n:o}=n;if(P("scalar",e,ep,o),a){let{k1neg:n,k1:o,k2neg:s,k2:c}=a.splitScalar(e),{p:u,f:l}=this.wNAF(o),{p:d,f:f}=this.wNAF(c);u=I.constTimeNegate(n,u),d=I.constTimeNegate(s,d),d=new x(r.mul(d.px,a.beta),d.py,d.pz),t=u.add(d),i=l.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,i=r}return x.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,n){let r=x.BASE,i=(e,t)=>t!==ef&&t!==ep&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,n));return a.is0()?void 0:a}toAffine(e){return g(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===ep)return!0;if(t)return t(x,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===ep?this:t?t(x,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return l("isCompressed",e),this.assertValidity(),a(x,this,e)}toHex(e=!0){return l("isCompressed",e),b(this.toRawBytes(e))}}x.BASE=new x(n.Gx,n.Gy,r.ONE),x.ZERO=new x(r.ZERO,r.ONE,r.ZERO);let{endo:_,nBitLength:k}=n,I=(t=_?Math.ceil(k/2):k,{constTimeNegate:et,hasPrecomputes:e=>1!==es(e),unsafeLadder(e,t,n=x.ZERO){let r=e;for(;t>Q;)t&ee&&(n=n.add(r)),r=r.double(),t>>=ee;return n},precomputeWindow(e,n){let{windows:r,windowSize:i}=er(n,t),a=[],o=e,s=o;for(let e=0;e<r;e++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(e,n,r){let i=x.ZERO,a=x.BASE,o=er(e,t);for(let e=0;e<o.windows;e++){let{nextN:t,offset:s,isZero:c,isNeg:u,isNegF:l,offsetF:d}=ei(r,e,o);r=t,c?a=a.add(et(l,n[d])):i=i.add(et(u,n[s]))}return{p:i,f:a}},wNAFUnsafe(e,n,r,i=x.ZERO){let a=er(e,t);for(let e=0;e<a.windows&&r!==Q;e++){let{nextN:t,offset:o,isZero:s,isNeg:c}=ei(r,e,a);if(r=t,!s){let e=n[o];i=i.add(c?e.negate():e)}}return i},getPrecomputes(e,t,n){let r=ea.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&ea.set(t,n(r))),r},wNAFCached(e,t,n){let r=es(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let i=es(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){en(n,t),eo.set(e,n),ea.delete(e)}});return{CURVE:n,ProjectivePoint:x,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:function(e){return C(e,ep,n.n)}}}({...t,toBytes(e,t,r){let i=t.toAffine(),a=n.toBytes(i.x);return(l("isCompressed",r),r)?A(Uint8Array.from([t.hasEvenY()?2:3]),a):A(Uint8Array.from([4]),a,n.toBytes(i.y))},fromBytes(e){let t=e.length,r=e[0],i=e.subarray(1);if(t===u&&(2===r||3===r)){let e;let t=w(i);if(!C(t,ep,n.ORDER))throw Error("Point is not on curve");let a=m(t);try{e=n.sqrt(a)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&ep)===ep)&&(e=n.neg(e)),{x:t,y:e}}if(t===d&&4===r)return{x:n.fromBytes(i.subarray(0,n.BYTES)),y:n.fromBytes(i.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+u+", or uncompressed "+d+", got "+t)}}),k=(e,t,n)=>w(e.slice(t,n));class O{constructor(e,t,n){P("r",e,ep,r),P("s",t,ep,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){return new O(k(e=E("compactSignature",e,2*i),0,i),k(e,i,2*i))}static fromDER(e){let{r:t,s:n}=ed.toSig(E("DER",e));return new O(t,n)}assertValidity(){}addRecoveryBit(e){return new O(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:a,recovery:o}=this,s=F(E("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let c=2===o||3===o?i+t.n:i;if(c>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&o)==0?"02":"03",l=p.fromHex(u+b(x(c,n.BYTES))),d=W(c,r),h=f(-s*d),m=f(a*d),y=p.BASE.multiplyAndAddUnsafe(l,h,m);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>r>>ep}normalizeS(){return this.hasHighS()?new O(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return g(this.toDERHex())}toDERHex(){return ed.hexFromSig(this)}toCompactRawBytes(){return g(this.toCompactHex())}toCompactHex(){return b(x(this.r,i))+b(x(this.s,i))}}function B(e){if("bigint"==typeof e)return!1;if(e instanceof p)return!0;let r=E("key",e).length,a=n.BYTES,o=a+1;if(!t.allowedPrivateKeyLengths&&i!==o)return r===o||r===2*a+1}let U=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=w(e),n=8*e.length-a;return n>0?t>>BigInt(n):t},F=t.bits2int_modN||function(e){return f(U(e))},$=S(a);function D(e){return P("num < 2^"+a,e,ef,$),x(e,i)}let L={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};return p.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return p.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===B(e))throw Error("first arg must be private key");if(!1===B(t))throw Error("second arg must be public key");return p.fromHex(t).multiply(h(e)).toRawBytes(n)},sign:function(e,i,a=L){let{seed:o,k2sig:s}=function(e,i,a=L){if(["recovered","canonical"].some(e=>e in a))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:s}=t,{lowS:c,prehash:u,extraEntropy:l}=a;null==c&&(c=!0),e=E("msgHash",e),eu(a),u&&(e=E("prehashed msgHash",o(e)));let d=F(e),b=h(i),m=[D(b),D(d)];if(null!=l&&!1!==l){let e=!0===l?s(n.BYTES):l;m.push(E("extraEntropy",e))}return{seed:A(...m),k2sig:function(e){let t=U(e);if(!y(t))return;let n=W(t,r),i=p.BASE.multiply(t).toAffine(),a=f(i.x);if(a===ef)return;let o=f(n*f(d+a*b));if(o===ef)return;let s=(i.x===a?0:2)|Number(i.y&ep),u=o;if(c&&o>r>>ep)u=o>r>>ep?f(-o):o,s^=1;return new O(a,u,s)}}}(e,i,a);return(function(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=I(e),i=I(e),a=0,o=()=>{r.fill(1),i.fill(0),a=0},s=(...e)=>n(i,r,...e),c=(e=I(0))=>{i=s(T([0]),e),r=s(),0!==e.length&&(i=s(T([1]),e),r=s())},u=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return A(...n)};return(e,t)=>{let n;for(o(),c(e);!(n=t(u()));)c();return o(),n}})(t.hash.outputLen,t.nByteLength,t.hmac)(o,s)},verify:function(e,n,i,a=z){let o,s;n=E("msgHash",n),i=E("publicKey",i);let{lowS:u,prehash:l,format:d}=a;if(eu(a),"strict"in a)throw Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw Error("format must be compact or der");
vendor: 5,679 bytes, line 42
42let h="string"==typeof e||c(e),b=!h&&!d&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!h&&!b)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(b&&(s=new O(e.r,e.s)),h){try{"compact"!==d&&(s=O.fromDER(e))}catch(e){if(!(e instanceof ed.Err))throw e}s||"der"===d||(s=O.fromCompact(e))}o=p.fromHex(i)}catch(e){return!1}if(!s||u&&s.hasHighS())return!1;l&&(n=t.hash(n));let{r:m,s:y}=s,g=F(n),w=W(y,r),v=f(g*w),x=f(m*w),_=p.BASE.multiplyAndAddUnsafe(o,v,x)?.toAffine();return!!_&&f(_.x)===m},ProjectivePoint:p,Signature:O,utils:{isValidPrivateKey(e){try{return h(e),!0}catch(e){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{let e=X(t.n);return function(e,t,n=!1){let r=e.length,i=J(t),a=X(t);if(r<16||r<a||r>1024)throw Error("expected "+a+"-1024 bytes of input, got "+r);let o=j(n?v(e):w(e),t-R)+R;return n?_(o,i):x(o,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=p.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>(0,i.b)(t,e,(0,a.eV)(...n)),randomBytes:a.O6});return{...n(t),create:n}}({a:eg,b:BigInt(7),Fp:e_,n:ey,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-ew*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=ex(t*e,ey),o=ex(-n*e,ey),s=j(e-a*t-o*r,ey),c=j(-a*n-o*t,ey),u=s>i,l=c>i;if(u&&(s=ey-s),l&&(c=ey-c),s>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:s,k2neg:l,k2:c}}}},r.JQ)},21377:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},93044:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Hk:function(){return o},a_:function(){return i}});var r=n(21377);class i extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class a extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},94171:function(e,t,n){"use strict";n.d(t,{$r:function(){return i},TT:function(){return o},_D:function(){return c},aZ:function(){return u},jO:function(){return a},zL:function(){return s}});var r=n(21377);class i extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class a extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class c extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
42d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},70088:function(e,t,n){"use strict";n.d(t,{H6:function(){return o},Vs:function(){return a},wn:function(){return i}});var r=n(21377);class i extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class a extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class o extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},15579:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(37731);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.P)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.P)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.P)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.P)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.P)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},37731:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(71563);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function a(e){let t="",n=e.length;for(let a=0;a<n;a++)t+=function e(t){let n=t.type;if(i.test(t.type)&&"components"in t){n="(";let a=t.components.length;for(let r=0;r<a;r++)n+=e(t.components[r]),r<a-1&&(n+=", ");let o=(0,r.Zw)(i,t.type);return n+=`)${o?.array||""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
42 indexed`),t.name)?`${n} ${t.name}`:n}(e[a]),a!==n-1&&(t+=", ");return t}},81830:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(83997),i=n(591),a=n(31882);function o(e){let t=(0,i.D)(e),n=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,r.N0)(o)||n.push((0,a.cK)(o,t))}return n}},83997:function(e,t,n){"use strict";n.d(t,{Dt:function(){return C},EC:function(){return v},LY:function(){return A},N0:function(){return h},PI:function(){return g},QM:function(){return E},SA:function(){return o},Wg:function(){return k},_c:function(){return a},a4:function(){return y},c3:function(){return c},g1:function(){return b},l$:function(){return f},qm:function(){return x},rh:function(){return d},wA:function(){return u}});var r=n(71563);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function a(e){return i.test(e)}function o(e){return(0,r.Zw)(i,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function b(e){return(0,r.Zw)(p,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return m.test(e)}function g(e){return(0,r.Zw)(m,e)}let w=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return w.test(e)}function x(e){return(0,r.Zw)(w,e)}let _=/^receive\(\) external payable$/;function E(e){return _.test(e)}let A=new Set(["memory","indexed","storage","calldata"]),k=new Set(["indexed"]),C=new Set(["calldata","memory","storage"])},591:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(71563),i=n(93044),a=n(94171),o=n(70088),s=n(21377);class c extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=n(83997),l=n(31882);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let i=(0,u.g1)(n);if(!i)throw new o.wn({signature:n,type:"struct"});let a=i.properties.split(";"),s=[],c=a.length;for(let e=0;e<c;e++){let t=a[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new o.H6({signature:n});t[i.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,o]=d[e];s[n]=function e(t=[],n={},o=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new a.aZ({abiParameter:u});let{array:d,type:p}=t;if(p in n){if(o.has(p))throw new c({type:p});s.push({...u,type:`tuple${d??""}`,components:e(n[p],n,new Set([...o,p]))})}else if((0,l.uN)(p))s.push(u);else throw new i.F({type:p})}}return s}(o,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},31882:function(e,t,n){"use strict";n.d(t,{uN:function(){return y},C$:function(){return b},cK:function(){return d},Q4:function(){return m}});var r=n(71563),i=n(93044),a=n(94171),o=n(70088),s=n(21377);class c extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=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}]]);var l=n(83997);function d(e,t={}){if((0,l.rh)(e))return function(e,t={}){let n=(0,l.l$)(e);if(!n)throw new o.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(b(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(b(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:s}}(e,t);if((0,l.c3)(e))return function(e,t={}){let n=(0,l.wA)(e);if(!n)throw new o.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(b(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if((0,l._c)(e))return function(e,t={}){let n=(0,l.SA)(e);if(!n)throw new o.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(b(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if((0,l.a4)(e))return function(e,t={}){let n=(0,l.PI)(e);if(!n)throw new o.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(b(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,l.EC)(e))return function(e){let t=(0,l.qm)(e);if(!t)throw new o.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new o.Vs({signature:e})}let f=/^(?<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$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function b(e,t){var n,o;let s;let c=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:`${e}${r}`}(e,t?.type,t?.structs);if(u.has(c))return u.get(c);let d=r.cN.test(e),w=(0,r.Zw)(d?p:f,e);if(!w)throw new a.jO({param:e});if(w.name&&("address"===(n=w.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||g.test(n)))throw new a.TT({param:e,name:w.name});let v=w.name?{name:w.name}:{},x="indexed"===w.modifier?{indexed:!0}:{},_=t?.structs??{},E={};if(d){s="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(b(e[r],{structs:_}));E={components:t}}else if(w.type in _)s="tuple",E={components:_[w.type]};else if(h.test(w.type))s=`${w.type}256`;else if("address payable"===w.type)s="address";else if(s=w.type,t?.type!=="struct"&&!y(s))throw new i.Hk({type:s});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new a.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(o=s,!w.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new a._D({param:e,type:t?.type,modifier:w.modifier})}let A={type:`${s}${w.array??""}`,...v,...x,...E};return u.set(c,A),A}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],o=e.slice(a+1);switch(i){case",":return 0===r?m(o,[...t,n.trim()]):m(o,t,`${n}${i}`,r);case"(":return m(o,t,`${n}${i}`,r+1);case")":return m(o,t,`${n}${i}`,r-1);default:return m(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let g=/^(?: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)$/},71563:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return o},eL:function(){return i},lh:function(){return a}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^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)?$/,o=/^\(.+?\).*?$/},30042:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(74727);function i(e){return{address:e.address,amount:r.xS(e.amount),index:r.xS(e.index),validatorIndex:r.xS(e.validatorIndex)}}function a(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.xS(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.xS(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient}
vendor: 4,642 bytes, line 42
42,..."bigint"==typeof e.gasLimit&&{gasLimit:r.xS(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.xS(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.xS(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.xS(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},87324:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{static setStaticOptions(e){r.prototype.docsOrigin=e.docsOrigin,r.prototype.showVersion=e.showVersion,r.prototype.version=e.version}constructor(e,t={}){let n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=t.docsOrigin??r.prototype.docsOrigin,o=`${a}${i??""}`,s=!!(t.version??r.prototype.showVersion),c=t.version??r.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||i||s?["",n?`Details: ${n}`:void 0,i?`See: ${o}`:void 0,s?`Version: ${c}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsOrigin=a,this.docsPath=i,this.shortMessage=e,this.showVersion=s,this.version=c}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}Object.defineProperty(r,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"[email protected]"}}),r.setStaticOptions(r.defaultStaticOptions)},74727:function(e,t,n){"use strict";n.d(t,{$s:function(){return C},Dp:function(){return u},Gh:function(){return g},Gu:function(){return v},He:function(){return w},J5:function(){return x},M6:function(){return A},O3:function(){return l},Q_:function(){return h},dp:function(){return y},eh:function(){return b},mL:function(){return p},mV:function(){return k},tP:function(){return m},xS:function(){return f},xv:function(){return d},zo:function(){return c}});var r=n(87324),i=n(23601),a=n(28690);let o=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function u(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e}function l(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(i.Yf(n,t.size),h(n,t.size)):n}function d(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(i.Yf(r,t.size),b(r,t.size)):r}function f(e,t={}){let n;let{signed:r,size:i}=t,a=BigInt(e);i?n=r?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let o="bigint"==typeof n&&r?-n-1n:0;if(n&&a>n||a<o){let t="bigint"==typeof e?"n":"";throw new x({max:n?`${n}${t}`:void 0,min:`${o}${t}`,signed:r,size:i,value:`${e}${t}`})}let s=(r&&a<0?BigInt.asUintN(8*i,BigInt(a)):a).toString(16),c=`0x${s}`;return i?h(c,i):c}function p(e,t={}){return d(o.encode(e),t)}function h(e,t){return i.vk(e,{dir:"left",size:t})}function b(e,t){return i.vk(e,{dir:"right",size:t})}function m(e,t,n,r={}){let{strict:a}=r;i.EM(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&i.Ro(o,t,n),o}function y(e){return Math.ceil((e.length-2)/2)}function g(e,t={}){let{signed:n}=t;t.size&&i.Yf(e,t.size);let r=BigInt(e);if(!n)return r;let a=(1n<<8n*BigInt((e.length-2)/2))-1n;return r<=a>>1n?r:r-a-1n}function w(e,t={}){let{signed:n,size:r}=t;return n||r?Number(g(e,t)):Number(e)}function v(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new _(e);
42if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new E(e)}(e,{strict:n}),!0}catch{return!1}}class x extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class _ extends r.G{constructor(e){super(`Value \`${"object"==typeof e?a.Pz(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class E extends r.G{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class A extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class k extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class C extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},28690:function(e,t,n){"use strict";function r(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}n.d(t,{Pz:function(){return r}})},23601:function(e,t,n){"use strict";n.d(t,{EM:function(){return a},Ro:function(){return o},Yf:function(){return i},vk:function(){return s}});var r=n(74727);function i(e,t){if(r.dp(e)>t)throw new r.M6({givenSize:r.dp(e),maxSize:t})}function a(e,t){if("number"==typeof t&&t>0&&t>r.dp(e)-1)throw new r.mV({offset:t,position:"start",size:r.dp(e)})}function o(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.dp(e)!==n-t)throw new r.mV({offset:n,position:"end",size:r.dp(e)})}function s(e,t={}){let{dir:n,size:i=32}=t;if(0===i)return e;let a=e.replace("0x","");if(a.length>2*i)throw new r.$s({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*i,"0")}`}},10903:function(e,t,n){"use strict";n.d(t,{U:function(){return c}});var r=n(2265);let i=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},a=e=>e?i(e):i,o=e=>e,s=e=>{let t=a(e),n=e=>(function(e,t=o){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},c=e=>e?s(e):s}}]);
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.