PageSourceSearch

https://playsout.com/_next/static/chunks/pages/_app-d052fa4b8975d1be.js

js playsout.com collected 2026-09-24 10:47:10 UTC 695,625 bytes, 1,638 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(26563)}])},629:(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,{T:()=>r})},845:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(1855),i=n(58547);async function a(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.uL)(n,"getTransactionReceipt")}},1081:(e,t,n)=>{"use strict";function r(e){return e.state.chainId}n.d(t,{i:()=>o});var i=n(14232),a=n(61511);function o(e={}){let t=(0,a.U)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},1162:(e,t,n)=>{"use strict";n.d(t,{UG:()=>o,xo:()=>i,zz:()=>a});var r=n(94817);class i extends r.C{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.C{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.C{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"})}}},1379:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(74517),i=n(58798),a=n(38047),o=n(81645);function s(e,t){let n,s;return(0,r.S)((n="string"==typeof e?(0,o.i3)(e):"string"==typeof e.raw?e.raw:(0,o.My)(e.raw),s=(0,o.i3)(`\x19Ethereum Signed Message:
2${(0,a.E)(n)}`),(0,i.xW)([s,n])),t)}},1855:(e,t,n)=>{"use strict";n.d(t,{Kc:()=>u,Kz:()=>c,Vg:()=>s,WA:()=>d,aO:()=>i,fZ:()=>l,n3:()=>a,zW:()=>o}),n(12305),n(5639);var r=n(76200);function i(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 a extends r.C{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class o extends r.C{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class s extends r.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",i(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"})}}r.C,r.C;class l extends r.C{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}r.C;class c extends r.C{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 u extends r.C{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 d extends r.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},2397:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var r=n(93778),i=n(94833),a=n(14237),o=n(49048),s=n(81645),l=n(10459),c=n(44928),u=n(12283),d=n(46240),f=n(8481),h=n(75977);async function p(e,t){let{blockNumber:n,blockTag:p,key:m,name:b,gatewayUrls:g,strict:w}=t,{chain:y}=e,v=(()=>
2{if(t.universalResolverAddress)return t.universalResolverAddress;if(!y)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.M)({blockNumber:n,chain:y,contract:"ensUniversalResolver"})})(),C=y?.ensTlds;if(C&&!C.some(e=>b.endsWith(e)))return null;try{let t={address:v,abi:r.Ag,args:[(0,s.nj)((0,d.F)(b)),(0,a.p)({abi:r.SJ,functionName:"text",args:[(0,u.k)(b),m]}),g??[c.J]],functionName:"resolveWithGateways",blockNumber:n,blockTag:p},o=(0,f.T)(e,h.J,"readContract"),l=await o(t);if("0x"===l[0])return null;let w=(0,i.e)({abi:r.SJ,functionName:"text",data:l[0]});return""===w?null:w}catch(e){if(w)throw e;if((0,l.J)(e))return null;throw e}}},2774:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(83878),i=n(81645),a=n(37744);async function o(e,{blockHash:t,blockNumber:n,blockTag:s=e.experimental_blockTag??"latest",includeTransactions:l}={}){let c=l??!1,u=void 0!==n?(0,i.cK)(n):void 0,d=null;if(!(d=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||s,c]},{dedupe:!!u})))throw new r.l({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||a.$)(d,"getBlock")}},3190:(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,{Y:()=>r})},3796:(e,t,n)=>{"use strict";n.d(t,{BD:()=>i,D5:()=>r,Ge:()=>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)?$/},4972:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(81645);async function i(e,{address:t,blockNumber:n,blockTag:a="latest"}){let o=void 0!==n?(0,r.cK)(n):void 0,s=await e.request({method:"eth_getCode",params:[t,o||a]},{dedupe:!!o});if("0x"!==s)return s}},5639:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(6927),i=n(32602);function a(e,t="wei"){return(0,i.J)(e,r.sz[t])}},6927:(e,t,n)=>{"use strict";n.d(t,{eL:()=>r,pj:()=>a,sz:()=>i});let r={gwei:9,wei:18},i={ether:-9,wei:9},a={ether:-18,gwei:-9}},7877:(e,t,n)=>{"use strict";n.d(t,{e:()=>d});var r=n(65809),i=n(1162),a=n(71400),o=n(27761),s=n(94817);class l extends s.C{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 c=n(91497),u=n(46685);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.WL)(n))continue;let i=(0,c.FO)(n);if(!i)throw new o.s7({signature:n,type:"struct"});let a=i.properties.split(";"),s=[],l=a.length;for(let e=0;e<l;e++){let t=a[e].trim();if(!t)continue;let n=(0,u.Pj)(t,{type:"struct"});s.push(n)}if(!s.length)throw new o.X9({signature:n});t[i.name]=s}let s={},d=Object.entries(t),h=d.length;for(let e=0;e<h;e++){let[n,o]=d[e];s[n]=function e(t,n,o=new Set){let s=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.wj.test(c.type))s.push(c);else{let t=(0,r.Yv)(f,c.type);if(!t?.type)throw new a.nx({abiParameter:c});let{array:d,type:h}=t;if(h in n){if(o.has(h))throw new l({type:h});s.push({...c,type:`tuple${d??""}`,components:e(n[h]??[],n,new Set([...o,h]))})}else if((0,u._o)(h))s.push(c);else throw new i.zz({type:h})}}return s}(o,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},8047:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var r=n(30817),i=n(19972),a=n(61511),o=n(26949),s=n(14232),l=n(45712);let c=e=>"object"==typeof e&&!Array.isArray(e);function u(e={}){let t=(0,a.U)(e);return function(e,t,n=t,r=o.b){let i=(0,s.useRef)([]),a=(0,l.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(c(e)&&c(t)&&i.current.length){for(let n of i.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)});return(0,s.useMemo)(()=>{if(c(a)){let e={...a},t={};
vendor: 10,131 bytes, line 2
2for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(n)||i.current.push(n),r)}};return Object.defineProperties(e,t),e}return a},[a])}(e=>(0,r.F)(t,{onChange:e}),()=>(0,i.s)(t))}},8481:(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,{T:()=>r})},8759:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{U:()=>r})},8922:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(26715),i=n(81645);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.aT)(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.My)(e))}},9431:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});class r extends Error{constructor(e,t={}){const 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=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||i?["",n?`Details: ${n}`:void 0,i?`See: ${a}`: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,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=n,this.docs=a,this.docsPath=i,this.shortMessage=e}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)}}},9678:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,R:()=>r});let r=e=>e,i=e=>e},10459:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(76200),i=n(57353);function a(e){if(!(e instanceof r.C))return!1;let t=e.walk(e=>e instanceof i.M);return t instanceof i.M&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}},10708:(e,t,n)=>{"use strict";n.d(t,{J9:()=>a,Mc:()=>i,fD:()=>r});let 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"}},10924:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(91497),i=n(7877),a=n(46685);function o(e){let t=(0,i.e)(e),n=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,r.WL)(o)||n.push((0,a.uT)(o,t))}return n}},12283:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(58798),i=n(26715),a=n(81645),o=n(74517),s=n(39925);function l(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,a.My)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let a=(0,s.q)(n[e]),l=a?(0,i.ZJ)(a):(0,o.S)((0,i.Af)(n[e]),"bytes");t=(0,o.S)((0,r.xW)([t,l]),"bytes")}return(0,a.My)(t)}},12305:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(6927),i=n(32602);function a(e,t="wei"){return(0,i.J)(e,r.eL[t])}},12355:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(60539);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({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.B4({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===1/0)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.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},12392: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),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=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 l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,a),!0;case 6:return u.fn.call(u.context,t,r,i,a,o),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(f=1,l=Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}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 l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c: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}
2,12748:(e,t,n)=>{"use strict";n.d(t,{H2:()=>o,Ty:()=>i,u:()=>s,xO:()=>a});var r=n(76200);class i extends r.C{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.C{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.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}r.C;class s extends r.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},12932:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,V:()=>a});var r=n(19342);class i extends r.C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class a extends r.C{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},13003:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(79313),i=n(58798),a=n(23414);let o="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;let l=t.find(e=>"type"in e&&"constructor"===e.type);if(!l)throw new r.YW({docsPath:o});if(!("inputs"in l)||!l.inputs||0===l.inputs.length)throw new r.YF({docsPath:o});let c=(0,a.h)(l.inputs,n);return(0,i.aP)([s,c])}},13799:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=n(12392)},13800:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(1855);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.Vg({transaction:e})}},13847:(e,t,n)=>{"use strict";n.d(t,{N:()=>c,b:()=>l});var r=n(22859),i=n(16006),a=n(8481),o=n(2774),s=n(14867);async function l(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:l=e.chain,request:c}=t||{};try{let t=l?.fees?.maxPriorityFeePerGas??l?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,a.T)(e,o.g,"getBlock")({}),i=await t({block:r,client:e,request:c});if(null===i)throw Error();return i}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.uU)(r)}catch{let[t,i]=await Promise.all([n?Promise.resolve(n):(0,a.T)(e,o.g,"getBlock")({}),(0,a.T)(e,s.L,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.pw;let l=i-t.baseFeePerGas;if(l<0n)return 0n;return l}}},14237:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(58798),i=n(23414),a=n(79313),o=n(35794),s=n(52346),l=n(96019);let c="/docs/contract/encodeFunctionData";function u(e){let{args:t}=e,{abi:n,functionName:u}=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,l.iY)({abi:t,args:n,name:r});if(!e)throw new a.Iz(r,{docsPath:c});i=e}if("function"!==i.type)throw new a.Iz(void 0,{docsPath:c});return{abi:[i],functionName:(0,o.V)((0,s.B)(i))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,i.h)(d.inputs,t??[]):void 0;return(0,r.aP)([u,f??"0x"])}},14437:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(8759),i=n(12932),a=n(32544),o=n(94254);function s(e={}){let t,l,{shimDisconnect:c=!1}=e;return(0,r.U)(r=>({id:"safe",name:"Safe",type:s.type,async connect({withCapabilities:e}={}){let t=await this.getProvider();if(!t)throw new i.N;let n=await this.getAccounts(),a=await this.getChainId();return l||(l=this.onDisconnect.bind(this),t.on("disconnect",l)),c&&await r.storage?.removeItem("safe.disconnected"),{accounts:e?n.map(e=>({address:e,capabilities:{}})):n,chainId:a}},async disconnect(){let e=await this.getProvider();if(!e)throw new i.N;l&&(e.removeListener("disconnect",l),l=void 0),c&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new i.N;return(await e.request({method:"eth_accounts"})).map(a.b)}
2,async getProvider(){if("u">typeof window&&window?.parent!==window){if(!t){let{default:r}=await Promise.all([n.e(7099),n.e(6945)]).then(n.bind(n,49326)),i=new r(e),a=await (0,o.w)(()=>i.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!a)throw Error("Could not load Safe information");t=new(await (async()=>{let e=await Promise.all([n.e(7099),n.e(5524)]).then(n.t.bind(n,15524,19));return"function"!=typeof e.SafeAppProvider&&"function"==typeof e.default.SafeAppProvider?e.default.SafeAppProvider:e.SafeAppProvider})())(a,i)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return Number(e.chainId)},async isAuthorized(){try{if(c&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}s.type="safe"},14867:(e,t,n)=>{"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{L:()=>r})},15368:()=>{},15488:(e,t,n)=>{"use strict";n.d(t,{Ez:()=>o,LX:()=>r,WN:()=>i,fT:()=>a});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",a="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b
26001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
2603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",o="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
2150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},16006:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>f,ME:()=>d,Nx:()=>u,Sl:()=>s,aD:()=>l,uU:()=>c});var r=n(12748),i=n(38047),a=n(49154),o=n(26715);function s(e,{size:t}){if((0,i.E)(e)>t)throw new r.u({givenSize:(0,i.E)(e),maxSize:t})}function l(e,t){let n="string"==typeof t?{to:t}:t,r=n.to;return"number"===r?d(e,n):"bigint"===r?c(e,n):"string"===r?f(e,n):"boolean"===r?u(e,n):(0,o.aT)(e,n)}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.B)(n)),"0x00"===(0,a.B)(n))return!1;if("0x01"===(0,a.B)(n))return!0;throw new r.H2(n)}function d(e,t={}){return Number(c(e,t))}function f(e,t={}){let n=(0,o.aT)(e);return t.size&&(s(n,{size:t.size}),n=(0,a.B)(n,{dir:"right"})),new TextDecoder().decode(n)}},16053:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>a,NV:()=>o,ii:()=>i});var r=n(76200);class i extends r.C{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.C{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.C{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"})}}},16167:(e,t,n)=>{"use strict";n.d(t,{HF:()=>c,aj:()=>s,gC:()=>o,nM:()=>a,nk:()=>i,xU:()=>l});var r=n(19342);class i extends r.C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class a extends r.C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class o extends r.C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}r.C;class s extends r.C{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class l extends r.C{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class c extends r.C{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},16891:(e,t,n)=>{"use strict";n.d(t,{P:()=>p});var r=n(18912),i=n(32544),a=n(16006),o=n(81645),s=n(36262),l=n(74517),c=n(70238),u=n(41262);let d=(e,t)=>(0,u.d)(e).request(t);var f=n(16167),h=n(8759);function p(e){let t,n=new Map,u=e.features??{defaultConnected:!1},m=u.defaultConnected;return(0,h.U)(h=>({id:"mock",name:"Mock Connector",type:p.type,async setup(){t=h.chains[0].id},async connect({chainId:e,withCapabilities:t}={}){if(u.connectError){if("boolean"==typeof u.connectError)throw new r.vx(Error("Failed to connect."));throw u.connectError}let n=await this.getProvider(),a=await n.request({method:"eth_requestAccounts"}),o=await this.getChainId();return e&&o!==e&&(o=(await this.switchChain({chainId:e})).id),m=!0,{accounts:t?a.map(e=>({address:(0,i.b)(e),capabilities:{foo:{bar:e}}})):a.map(e=>(0,i.b)(e)),chainId:o}},async disconnect(){m=!1},async getAccounts(){if(!m)throw new f.gC;let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,i.b)(e))},async getChainId(){let e=await this.getProvider(),t=await e.request({method:"eth_chainId"});return(0,a.aD)(t,"number")},async isAuthorized(){return!!u.reconnect&&!!m&&!!(await this.getAccounts()).length},async switchChain({chainId:e}){let t=await this.getProvider(),n=h.chains.find(t=>
2t.id===e);if(!n)throw new r.ch(new f.nk);return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.cK)(e)}]}),n},onAccountsChanged(e){0===e.length?this.onDisconnect():h.emitter.emit("change",{accounts:e.map(e=>(0,i.b)(e))})},onChainChanged(e){let t=Number(e);h.emitter.emit("change",{chainId:t})},async onDisconnect(e){h.emitter.emit("disconnect"),m=!1},async getProvider({chainId:i}={}){let f=(h.chains.find(e=>e.id===i)??h.chains[0]).rpcUrls.default.http[0],p=async({method:i,params:c})=>{if("eth_chainId"===i)return(0,o.cK)(t);if("eth_requestAccounts"===i)return e.accounts;if("eth_signTypedData_v4"===i&&u.signTypedDataError){if("boolean"==typeof u.signTypedDataError)throw new r.vx(Error("Failed to sign typed data."));throw u.signTypedDataError}if("wallet_switchEthereumChain"===i){if(u.switchChainError){if("boolean"==typeof u.switchChainError)throw new r.vx(Error("Failed to switch chain."));throw u.switchChainError}t=(0,a.aD)(c[0].chainId,"number"),this.onChainChanged(t.toString());return}if("wallet_watchAsset"===i){if(u.watchAssetError){if("boolean"==typeof u.watchAssetError)throw new r.vx(Error("Failed to switch chain."));throw u.watchAssetError}return m}if("wallet_getCapabilities"===i)return{"0x2105":{paymasterService:{supported:"0x95132632579b073D12a6673e18Ab05777a6B86f8"===c[0]},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:"0x95132632579b073D12a6673e18Ab05777a6B86f8"===c[0]}}};if("wallet_sendCalls"===i){let e=[],t=c[0].calls,r=c[0].from;for(let n of t){let{result:t,error:a}=await d(f,{body:{method:"eth_sendTransaction",params:[{...n,...void 0!==r?{from:r}:{}}]}});if(a)throw new s.J8({body:{method:i,params:c},error:a,url:f});e.push(t)}let a=(0,l.S)((0,o.i3)(JSON.stringify(t)));return n.set(a,e),{id:a}}if("wallet_getCallsStatus"===i){let e=n.get(c[0]);if(!e)return{atomic:!1,chainId:"0x1",id:c[0],status:100,receipts:[],version:"2.0.0"};let t=(await Promise.all(e.map(async e=>{let{result:t,error:n}=await d(f,{body:{method:"eth_getTransactionReceipt",params:[e],id:0}});if(n)throw new s.J8({body:{method:i,params:c},error:n,url:f});return t?{blockHash:t.blockHash,blockNumber:t.blockNumber,gasUsed:t.gasUsed,logs:t.logs,status:t.status,transactionHash:t.transactionHash}:null}))).filter(e=>null!==e);return 0===t.length?{atomic:!1,chainId:"0x1",id:c[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:c[0],status:200,receipts:t,version:"2.0.0"}}if("wallet_showCallsStatus"===i)return;if("personal_sign"===i){if(u.signMessageError){if("boolean"==typeof u.signMessageError)throw new r.vx(Error("Failed to sign message."));throw u.signMessageError}i="eth_sign",c=[c[1],c[0]]}let h={method:i,params:c},{error:p,result:b}=await d(f,{body:h});if(p)throw new s.J8({body:h,error:p,url:f});return b};return(0,c.I)({request:p})({retryCount:0})}}))}p.type="mock"},17191:(e,t,n)=>{"use strict";n.d(t,{lY:()=>v});var r=n(71090),i=n(23084);let a=BigInt(0),o=BigInt(1),s=BigInt(2),l=BigInt(7),c=BigInt(256),u=BigInt(113),d=[],f=[],h=[];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>>l)*u)%c)&s&&(i^=o<<(o<<BigInt(e))-o);h.push(i)}let p=(0,r.lD)(h,!0),m=p[0],b=p[1],g=(e,t,n)=>n>32?(0,r.WM)(e,t,n):(0,r.P5)(e,t,n),w=(e,t,n)=>n>32?(0,r.im)(e,t,n):(0,r.B4)(e,t,n);class y extends i.Vw{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.Fe)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.fd)(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=g(a,o,1)^n[r],l=w(a,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=f[n],a=g(t,i,r),o=w(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]^=m[r],e[1]^=b[r]}(0,i.uH)(n)}(this.state32,this.rounds),(0,i.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.CC)(this),e=(0,i.ZJ)(e),(0,i.DO)(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.CC)(this,!1),(0,i.DO)(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.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.Ht)(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.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new y(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.qj)(()=>new y(136,1,32))},17211:()=>{},17477:(e,t,n)=>{"use strict";n.d(t,{R:()=>s,x:()=>l});var r=n(14232);let i=!1;async function a(e,t={}){let n;if(i)return[];i=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let o={};for(let[,t]of e.state.connections)o[t.connector.id]=1;n&&(o[n]=0);let s=Object.keys(o).length>0?[...r].sort((e,t)=>
2(o[e.id]??10)-(o[t.id]??10)):r,l=!1,c=[],u=[];for(let t of s){let n=await t.getProvider().catch(()=>void 0);if(!n||u.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(l?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:l?e.current:t.uid,connections:n}}),c.push({accounts:r.accounts,chainId:r.chainId,connector:t}),u.push(n),l=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(l?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,c}function o(e){let{children:t,config:n,initialState:i,reconnectOnMount:o=!0}=e,{onMount:s}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let n=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])n.add(t);let r=[];for(let t of e._internal.mipd?.getProviders()??[]){if(n.has(t.info.rdns))continue;let i=e._internal.connectors.providerDetailToConnector(t),a=e._internal.connectors.setup(i);r.push(a)}return[...t,...r]})),r?a(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:o});n._internal.ssr||s();let l=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(l.current&&n._internal.ssr)return s(),()=>{l.current=!1}},[]),t}let s=(0,r.createContext)(void 0);function l(e){let{children:t,config:n}=e;return(0,r.createElement)(o,e,(0,r.createElement)(s.Provider,{value:n},t))}},17830:(e,t,n)=>{"use strict";n.d(t,{Hi:()=>i,ft:()=>a,uj:()=>s});var r=n(76200);class i extends r.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class a extends r.C{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}
3`,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e}    ${t}:
4`;return n.nonce&&(r+=`      nonce: ${n.nonce}
5`),n.balance&&(r+=`      balance: ${n.balance}
6`),n.code&&(r+=`      code: ${n.code}
7`),n.state&&(r+="      state:\n",r+=o(n.state)),n.stateDiff&&(r+="      stateDiff:\n",r+=o(n.stateDiff)),r},"  State Override:\n").slice(0,-1)}},18070:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(90089);let i=new class extends r.Q{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}}},18071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(14232),i=r.useLayoutEffect,a=r.useEffect;function o(e){let{headManager:t,reduceComponentsToState:n}=e;function o(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},18594:(e,t,n)=>{"use strict";function r(e,t,n={}){"129299"===new URLSearchParams(window.location.search).get("debug")&&console.info(`[PlaysOut][${e}] ${t}`,n)}function i(e){return{code:"string"==typeof e?.code?e.code:null,httpStatus:Number.isInteger(e?.httpStatus)?Number(e.httpStatus):null,name:e instanceof Error?e.name:typeof e}}n.d(t,{F:()=>i,c:()=>r})}
vendor: 5,617 bytes, line 7
7,18912:(e,t,n)=>{"use strict";n.d(t,{CL:()=>l,D5:()=>u,Di:()=>f,G1:()=>P,Gi:()=>c,L5:()=>k,MI:()=>T,RV:()=>x,Sf:()=>C,WT:()=>j,XU:()=>s,YW:()=>m,ab:()=>b,bq:()=>d,cg:()=>I,ch:()=>E,hA:()=>h,hl:()=>B,jz:()=>O,qZ:()=>p,s0:()=>g,sV:()=>v,uL:()=>S,vx:()=>y,xQ:()=>w,xq:()=>A});var r=n(76200),i=n(36262);class a extends r.C{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.J8?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 l extends a{constructor(e){super(e,{code:l.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends a{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends a{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(u,"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 h extends a{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class b extends a{constructor(e,{method:t}={}){super(e,{code:b.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class g extends a{constructor(e){super(e,{code:g.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class w extends a{constructor(e){super(e,{code:w.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class y extends o{constructor(e){super(e,{code:y.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(y,"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 C extends o{constructor(e,{method:t}={}){super(e,{code:C.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends o{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends o{constructor(e){super(e,{code:A.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends o{constructor(e){super(e,{code:E.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(E,"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});
7class j extends o{constructor(e){super(e,{code:j.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class B extends o{constructor(e){super(e,{code:B.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class I extends o{constructor(e){super(e,{code:I.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends o{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class P extends o{constructor(e){super(e,{code:P.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});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 T extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},19031:(e,t,n)=>{"use strict";n.d(t,{W:()=>c});var r=n(10708),i=n(79313),a=n(66320),o=n(35794),s=n(42802),l=n(52346);function c(e){let{abi:t,data:n}=e,c=(0,a.di)(n,0,4);if("0x"===c)throw new i.O;let u=[...t||[],r.Mc,r.J9].find(e=>"error"===e.type&&c===(0,o.V)((0,l.B)(e)));if(!u)throw new i.Wq(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.n)(u.inputs,(0,a.di)(n,4)):void 0,errorName:u.name}}},19342:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r,i,a=n(82421),o=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class s extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${a.r}`}constructor(e,t={}){super(),r.add(this),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:"WagmiCoreError"});const n=t.cause instanceof s?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof s&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return o(this,r,"m",i).call(this,this,e)}}r=new WeakSet,i=function e(t,n){return n?.(t)?t:t.cause?o(this,r,"m",e).call(this,t.cause,n):t}},19532:(e,t,n)=>{"use strict";n.d(t,{C:()=>p});var r=n(93778),i=n(15488),a=n(79313),o=n(76200),s=n(57353),l=n(94833),c=n(14237),u=n(49048),d=n(66655),f=n(8481),h=n(75977);async function p(e,t){let{account:n,authorizationList:p,allowFailure:m=!0,blockNumber:b,blockOverrides:g,blockTag:w,stateOverride:y}=t,v=t.contracts,{batchSize:C=t.batchSize??1024,deployless:x=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},A=(()=>
7{if(t.multicallAddress)return t.multicallAddress;if(x)return null;if(e.chain)return(0,u.M)({blockNumber:b,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),E=[[]],k=0,j=0;for(let e=0;e<v.length;e++){let{abi:t,address:r,args:i,functionName:a}=v[e];try{let e=(0,c.p)({abi:t,args:i,functionName:a});j+=(e.length-2)/2,C>0&&j>C&&E[k].length>0&&(k++,j=(e.length-2)/2,E[k]=[]),E[k]=[...E[k],{allowFailure:!0,callData:e,target:r}]}catch(o){let e=(0,d.j)(o,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:a,sender:n});if(!m)throw e;E[k]=[...E[k],{allowFailure:!0,callData:"0x",target:r}]}}let B=await Promise.allSettled(E.map(t=>(0,f.T)(e,h.J,"readContract")({...null===A?{code:i.Ez}:{address:A},abi:r.v2,account:n,args:[t],authorizationList:p,blockNumber:b,blockOverrides:g,blockTag:w,functionName:"aggregate3",stateOverride:y}))),I=[];for(let e=0;e<B.length;e++){let t=B[e];if("rejected"===t.status){if(!m)throw t.reason;for(let n=0;n<E[e].length;n++)I.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:i}=n[t],{callData:o}=E[e][t],{abi:c,address:u,functionName:f,args:h}=v[I.length];try{if("0x"===o)throw new a.O;if(!i)throw new s.$S({data:r});let e=(0,l.e)({abi:c,args:h,data:r,functionName:f});I.push(m?{result:e,status:"success"}:e)}catch(t){let e=(0,d.j)(t,{abi:c,address:u,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!m)throw e;I.push({error:e,result:void 0,status:"failure"})}}}if(I.length!==v.length)throw new o.C("multicall results mismatch");return I}},19953:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(76200),i=n(98877);function a(e,t){let n=(e.details||"").toLowerCase(),a=e instanceof r.C?e.walk(e=>e?.code===i.A7.code):e;return a instanceof r.C?new i.A7({cause:e,message:a.details}):i.A7.nodeMessage.test(n)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(n)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(n)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(n)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(n)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(n)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(n)?new i.k5({cause:e}):i.lY.nodeMessage.test(n)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(n)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(n)?new i.uC({cause:e}):i.lN.nodeMessage.test(n)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},19972:(e,t,n)=>{"use strict";function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,i=r?.[0],a=e.chains.find(e=>e.id===n?.chainId),o=e.state.status;switch(o){case"connected":return{address:i,addresses:r,chain:a,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:o};case"reconnecting":return{address:i,addresses:r,chain:a,chainId:n?.chainId,connector:n?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:o};case"connecting":return{address:i,addresses:r,chain:a,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:o};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:o}}}n.d(t,{s:()=>r})},20289:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var r=n(8922),i=n(39151),a=n(32942),o=n(12355),s=n(38047),l=n(26715),c=n(81645);function u(e){let{data:t,kzg:n,to:u}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,l.aT)(e.data):e.data,r=(0,s.E)(n);if(!r)throw new a.zF;if(r>761855)throw new a.iq({maxSize:761855,size:r});let i=[],u=!0,d=0;for(;u;){let e=(0,o.l)(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),u=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,c.My)(e.bytes))}({data:t,to:u}),f=e.commitments??(0,r.S)({blobs:d,kzg:n,to:u}),h=e.proofs??(0,i.t)({blobs:d,commitments:f,kzg:n,to:u}),p=[];for(let e=0;e<d.length;e++)p.push({blob:d[e],commitment:f[e],proof:h[e]});return p}},21407:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,s:()=>o});var r=n(60388),i=n(48149),a=n(46305),o=class extends a.k{#r;#i;#a;#o;constructor(e){super(),this.#r=e.client,this.mutationId=e.mutationId,this.#a=e.mutationCache,this.#i=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter(t=>t!==e),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#a.remove(this))}continue(){return this.#o?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#s({type:"continue"})},n={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#o=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)}),a="pending"===this.state.status,o=!r.canStart();try{if(a)t();else{this.#s({type:"pending",variables:e,isPaused:o}),this.#a.config.onMutate&&await this.#a.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:o})}let i=await r.start();return await this.#a.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#a.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#s({type:"success",data:i}),i}catch(t){try{await this.#a.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#a.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#s({type:"error",error:t}),t}finally{this.#o===r&&(this.#o=void 0),this.#a.runNext(this)}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
7case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#i.forEach(t=>{t.onMutationUpdate(e)}),this.#a.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21537:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r=`{
8  "connect_wallet": {
9    "label": "Connect Wallet",
10    "wrong_network": {
11      "label": "Wrong network"
12    }
13  },
14
15  "intro": {
16    "title": "What is a Wallet?",
17    "description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
18    "digital_asset": {
19      "title": "A Home for your Digital Assets",
20      "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
21    },
22    "login": {
23      "title": "A New Way to Log In",
24      "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
25    },
26    "get": {
27      "label": "Get a Wallet"
28    },
29    "learn_more": {
30      "label": "Learn More"
31    }
32  },
33
34  "sign_in": {
35    "label": "Verify your account",
36    "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
37    "message": {
38      "send": "Sign message",
39      "preparing": "Preparing message...",
40      "cancel": "Cancel",
41      "preparing_error": "Error preparing message, please retry!"
42    },
43    "signature": {
44      "waiting": "Waiting for signature...",
45      "verifying": "Verifying signature...",
46      "signing_error": "Error signing message, please retry!",
47      "verifying_error": "Error verifying signature, please retry!",
48      "oops_error": "Oops, something went wrong!"
49    }
50  },
51
52  "connect": {
53    "label": "Connect",
54    "title": "Connect a Wallet",
55    "new_to_ethereum": {
56      "description": "New to Ethereum wallets?",
57      "learn_more": {
58        "label": "Learn More"
59      }
60    },
61    "learn_more": {
62      "label": "Learn more"
63    },
64    "recent": "Recent",
65    "status": {
66      "opening": "Opening %{wallet}...",
67      "connecting": "Connecting",
68      "connect_mobile": "Continue in %{wallet}",
69      "not_installed": "%{wallet} is not installed",
70      "not_available": "%{wallet} is not available",
71      "confirm": "Confirm connection in the extension",
72      "confirm_mobile": "Accept connection request in the wallet"
73    },
74    "secondary_action": {
75      "get": {
76        "description": "Don't have %{wallet}?",
77        "label": "GET"
78      },
79      "install": {
80        "label": "INSTALL"
81      },
82      "retry": {
83        "label": "RETRY"
84      }
85    },
86    "walletconnect": {
87      "description": {
88        "full": "Need the official WalletConnect modal?",
89        "compact": "Need the WalletConnect modal?"
90      },
91      "open": {
92        "label": "OPEN"
93      }
94    }
95  },
96
97  "connect_scan": {
98    "title": "Scan with %{wallet}",
99    "fallback_title": "Scan with your phone"
100  },
101
102  "connector_group": {
103    "installed": "Installed",
104    "recommended": "Recommended",
105    "other": "Other",
106    "popular": "Popular",
107    "more": "More",
108    "others": "Others"
109  },
110
111  "get": {
112    "title": "Get a Wallet",
113    "action": {
114      "label": "GET"
115    },
116    "mobile": {
117      "description": "Mobile Wallet"
118    },
119    "extension": {
120      "description": "Browser Extension"
121    },
122    "mobile_and_extension": {
123      "description": "Mobile Wallet and Extension"
124    },
125    "mobile_and_desktop": {
126      "description": "Mobile and Desktop Wallet"
127    },
128    "looking_for": {
129      "title": "Not what you're looking for?",
130      "mobile": {
131        "description": "Select a wallet on the main screen to get started with a different wallet provider."
132      },
133      "desktop": {
134        "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
135        "wide_description": "Select a wallet on the left to get started with a different wallet provider."
136      }
137    }
138  },
139
140  "get_options": {
141    "title": "Get started with %{wallet}",
142    "short_title": "Get %{wallet}",
143    "mobile": {
144      "title": "%{wallet} for Mobile",
145      "description": "Use the mobile wallet to explore the world of Ethereum.",
146      "download": {
147        "label": "Get the app"
148      }
149    },
150    "extension": {
151      "title": "%{wallet} for %{browser}",
152      "description": "Access your wallet right from your favorite web browser.",
153      "download": {
154        "label": "Add to %{browser}"
155      }
156    },
157    "desktop": {
158      "title": "%{wallet} for %{platform}",
159      "description": "Access your wallet natively from your powerful desktop.",
160      "download": {
161        "label": "Add to %{platform}"
162      }
163    }
164  },
165
166  "get_mobile": {
167    "title": "Install %{wallet}",
168    "description": "Scan with your phone to download on iOS or Android",
169    "continue": {
170      "label": "Continue"
171    }
172  },
173
174  "get_instructions": {
175    "mobile": {
176      "connect": {
177        "label": "Connect"
178      },
179      "learn_more": {
180        "label": "Learn More"
181      }
182    },
183    "extension": {
184      "refresh": {
185        "label": "Refresh"
186      },
187      "learn_more": {
188        "label": "Learn More"
189      }
190    },
191    "desktop": {
192      "connect": {
193        "label": "Connect"
194      },
195      "learn_more": {
196        "label": "Learn More"
197      }
198    }
199  },
200
201  "chains": {
202    "title": "Switch Networks",
203    "wrong_network": "Wrong network detected, switch or disconnect to continue.",
204    "confirm": "Confirm in Wallet",
205    "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
206    "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
207    "disconnect": "Disconnect",
208    "connected": "Connected"
209  },
210
211  "profile": {
212    "disconnect": {
213      "label": "Disconnect"
214    },
215    "copy_address": {
216      "label": "Copy Address",
217      "copied": "Copied!"
218    },
219    "explorer": {
220      "label": "View more on explorer"
221    },
222    "transactions": {
223      "description": "%{appName} transactions will appear here...",
224      "description_fallback": "Your transactions will appear here...",
225      "recent": {
226        "title": "Recent Transactions"
227      },
228      "clear": {
229        "label": "Clear All"
230      }
231    }
232  },
233
234  "wallet_connectors": {
235    "ready": {
236      "qr_code": {
237        "step1": {
238          "description": "Add Ready to your home screen for faster access to your wallet.",
239          "title": "Open the Ready app"
240        },
241        "step2": {
242          "description": "Create a wallet and username, or import an existing wallet.",
243          "title": "Create or Import a Wallet"
244        },
245        "step3": {
246          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
247          "title": "Tap the Scan QR button"
248        }
249      }
250    },
251
252    "berasig": {
253      "extension": {
254        "step1": {
255          "title": "Install the BeraSig extension",
256          "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
257        },
258        "step2": {
259          "title": "Create a Wallet",
260          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
261        },
262        "step3": {
263          "title": "Refresh your browser",
264          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
265        }
266      }
267    },
268
269    "best": {
270      "qr_code": {
271        "step1": {
272          "title": "Open the Best Wallet app",
273          "description": "Add Best Wallet to your home screen for faster access to your wallet."
274        },
275        "step2": {
276          "title": "Create or Import a Wallet",
277          "description": "Create a new wallet or import an existing one."
278        },
279        "step3": {
280          "title": "Tap the QR icon and scan",
281          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
282        }
283      }
284    },
285
286    "bifrost": {
287      "qr_code": {
288        "step1": {
289          "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
290          "title": "Open the Bifrost Wallet app"
291        },
292        "step2": {
293          "description": "Create or import a wallet using your recovery phrase.",
294          "title": "Create or Import a Wallet"
295        },
296        "step3": {
297          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
298          "title": "Tap the scan button"
299        }
300      }
301    },
302
303    "bitget": {
304      "qr_code": {
305        "step1": {
306          "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
307          "title": "Open the Bitget Wallet app"
308        },
309        "step2": {
310          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
311          "title": "Create or Import a Wallet"
312        },
313        "step3": {
314          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
315          "title": "Tap the scan button"
316        }
317      },
318
319      "extension": {
320        "step1": {
321          "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
322          "title": "Install the Bitget Wallet extension"
323        },
324        "step2": {
325          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
326          "title": "Create or Import a Wallet"
327        },
328        "step3": {
329          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
330          "title": "Refresh your browser"
331        }
332      }
333    },
334
335    "bitski": {
336      "extension": {
337        "step1": {
338          "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
339          "title": "Install the Bitski extension"
340        },
341        "step2": {
342          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
343          "title": "Create or Import a Wallet"
344        },
345        "step3": {
346          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
347          "title": "Refresh your browser"
348        }
349      }
350    },
351
352    "bitverse": {
353      "qr_code": {
354        "step1": {
355          "title": "Open the Bitverse Wallet app",
356          "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
357        },
358        "step2": {
359          "title": "Create or Import a Wallet",
360          "description": "Create a new wallet or import an existing one."
361        },
362        "step3": {
363          "title": "Tap the QR icon and scan",
364          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
365        }
366      }
367    },
368
369    "bloom": {
370      "desktop": {
371        "step1": {
372          "title": "Open the Bloom Wallet app",
373          "description": "We recommend putting Bloom Wallet on your home screen for quicker access."
374        },
375        "step2": {
376          "description": "Create or import a wallet using your recovery phrase.",
377          "title": "Create or Import a Wallet"
378        },
379        "step3": {
380          "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
381          "title": "Click on Connect"
382        }
383      }
384    },
385
386    "bybit": {
387      "qr_code": {
388        "step1": {
389          "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
390          "title": "Open the Bybit app"
391        },
392        "step2": {
393          "description": "You can easily backup your wallet using our backup feature on your phone.",
394          "title": "Create or Import a Wallet"
395        },
396        "step3": {
397          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
398          "title": "Tap the scan button"
399        }
400      },
401
402      "extension": {
403        "step1": {
404          "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
405          "title": "Install the Bybit Wallet extension"
406        },
407        "step2": {
408          "description": "Create a new wallet or import an existing one.",
409          "title": "Create or Import a wallet"
410        },
411        "step3": {
412          "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
413          "title": "Refresh your browser"
414        }
415      }
416    },
417
418    "binance": {
419      "qr_code": {
420        "step1": {
421          "description": "We recommend putting Binance on your home screen for faster access to your wallet.",
422          "title": "Open the Binance app"
423        },
424        "step2": {
425          "description": "You can easily backup your wallet using our backup feature on your phone.",
426          "title": "Create or Import a Wallet"
427        },
428        "step3": {
429          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
430          "title": "Tap the WalletConnect button"
431        }
432      },
433      "extension": {
434        "step1": {
435          "title": "Install the Binance Wallet extension",
436          "description": "We recommend pinning Binance Wallet to your taskbar for quicker access to your wallet."
437        },
438        "step2": {
439          "title": "Create or Import a Wallet",
440          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
441        },
442        "step3": {
443          "title": "Refresh your browser",
444          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
445        }
446      }
447    },
448
449    "coin98": {
450      "qr_code": {
451        "step1": {
452          "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
453          "title": "Open the Coin98 Wallet app"
454        },
455        "step2": {
456          "description": "You can easily backup your wallet using our backup feature on your phone.",
457          "title": "Create or Import a Wallet"
458        },
459        "step3": {
460          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
461          "title": "Tap the WalletConnect button"
462        }
463      },
464
465      "extension": {
466        "step1": {
467          "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
468          "title": "Install the Coin98 Wallet extension"
469        },
470        "step2": {
471          "description": "Create a new wallet or import an existing one.",
472          "title": "Create or Import a wallet"
473        },
474        "step3": {
475          "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
476          "title": "Refresh your browser"
477        }
478      }
479    },
480
481    "coinbase": {
482      "qr_code": {
483        "step1": {
484          "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
485          "title": "Open the Coinbase Wallet app"
486        },
487        "step2": {
488          "description": "You can easily backup your wallet using the cloud backup feature.",
489          "title": "Create or Import a Wallet"
490        },
491        "step3": {
492          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
493          "title": "Tap the scan button"
494        }
495      },
496
497      "extension": {
498        "step1": {
499          "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
500          "title": "Install the Coinbase Wallet extension"
501        },
502        "step2": {
503          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
504          "title": "Create or Import a Wallet"
505        },
506        "step3": {
507          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
508          "title": "Refresh your browser"
509        }
510      }
511    },
512
513    "compass": {
514      "extension": {
515        "step1": {
516          "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
517          "title": "Install the Compass Wallet extension"
518        },
519        "step2": {
520          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
521          "title": "Create or Import a Wallet"
522        },
523        "step3": {
524          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
525          "title": "Refresh your browser"
526        }
527      }
528    },
529
530    "core": {
531      "qr_code": {
532        "step1": {
533          "description": "We recommend putting Core on your home screen for faster access to your wallet.",
534          "title": "Open the Core app"
535        },
536        "step2": {
537          "description": "You can easily backup your wallet using our backup feature on your phone.",
538          "title": "Create or Import a Wallet"
539        },
540        "step3": {
541          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
542          "title": "Tap the WalletConnect button"
543        }
544      },
545
546      "extension": {
547        "step1": {
548          "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
549          "title": "Install the Core extension"
550        },
551        "step2": {
552          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
553          "title": "Create or Import a Wallet"
554        },
555        "step3": {
556          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
557          "title": "Refresh your browser"
558        }
559      }
560    },
561
562    "fox": {
563      "qr_code": {
564        "step1": {
565          "description": "We recommend putting FoxWallet on your home screen for quicker access.",
566          "title": "Open the FoxWallet app"
567        },
568        "step2": {
569          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
570          "title": "Create or Import a Wallet"
571        },
572        "step3": {
573          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
574          "title": "Tap the scan button"
575        }
576      }
577    },
578
579    "frontier": {
580      "qr_code": {
581        "step1": {
582          "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
583          "title": "Open the Frontier Wallet app"
584        },
585        "step2": {
586          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
587          "title": "Create or Import a Wallet"
588        },
589        "step3": {
590          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
591          "title": "Tap the scan button"
592        }
593      },
594
595      "extension": {
596        "step1": {
597          "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
598          "title": "Install the Frontier Wallet extension"
599        },
600        "step2": {
601          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
602          "title": "Create or Import a Wallet"
603        },
604        "step3": {
605          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
606          "title": "Refresh your browser"
607        }
608      }
609    },
610
611    "im_token": {
612      "qr_code": {
613        "step1": {
614          "title": "Open the imToken app",
615          "description": "Put imToken app on your home screen for faster access to your wallet."
616        },
617        "step2": {
618          "title": "Create or Import a Wallet",
619          "description": "Create a new wallet or import an existing one."
620        },
621        "step3": {
622          "title": "Tap Scanner Icon in top right corner",
623          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
624        }
625      }
626    },
627
628    "iopay": {
629      "qr_code": {
630        "step1": {
631          "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
632          "title": "Open the ioPay app"
633        },
634        "step2": {
635          "description": "You can easily backup your wallet using our backup feature on your phone.",
636          "title": "Create or Import a Wallet"
637        },
638        "step3": {
639          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
640          "title": "Tap the WalletConnect button"
641        }
642      }
643    },
644
645    "kaikas": {
646      "extension": {
647        "step1": {
648          "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
649          "title": "Install the Kaikas extension"
650        },
651        "step2": {
652          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
653          "title": "Create or Import a Wallet"
654        },
655        "step3": {
656          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
657          "title": "Refresh your browser"
658        }
659      },
660      "qr_code": {
661        "step1": {
662          "title": "Open the Kaikas app",
663          "description": "Put Kaikas app on your home screen for faster access to your wallet."
664        },
665        "step2": {
666          "title": "Create or Import a Wallet",
667          "description": "Create a new wallet or import an existing one."
668        },
669        "step3": {
670          "title": "Tap Scanner Icon in top right corner",
671          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
672        }
673      }
674    },
675
676    "kaia": {
677      "extension": {
678        "step1": {
679          "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
680          "title": "Install the Kaia extension"
681        },
682        "step2": {
683          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
684          "title": "Create or Import a Wallet"
685        },
686        "step3": {
687          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
688          "title": "Refresh your browser"
689        }
690      },
691      "qr_code": {
692        "step1": {
693          "title": "Open the Kaia app",
694          "description": "Put Kaia app on your home screen for faster access to your wallet."
695        },
696        "step2": {
697          "title": "Create or Import a Wallet",
698          "description": "Create a new wallet or import an existing one."
699        },
700        "step3": {
701          "title": "Tap Scanner Icon in top right corner",
702          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
703        }
704      }
705    },
706
707    "kraken": {
708      "qr_code": {
709        "step1": {
710          "title": "Open the Kraken Wallet app",
711          "description": "Add Kraken Wallet to your home screen for faster access to your wallet."
712        },
713        "step2": {
714          "title": "Create or Import a Wallet",
715          "description": "Create a new wallet or import an existing one."
716        },
717        "step3": {
718          "title": "Tap the QR icon and scan",
719          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
720        }
721      }
722    },
723
724    "kresus": {
725      "qr_code": {
726        "step1": {
727          "title": "Open the Kresus Wallet app",
728          "description": "Add Kresus Wallet to your home screen for faster access to your wallet."
729        },
730        "step2": {
731          "title": "Create or Import a Wallet",
732          "description": "Create a new wallet or import an existing one."
733        },
734        "step3": {
735          "title": "Tap the QR icon and scan",
736          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
737        }
738      }
739    },
740
741    "magicEden": {
742      "extension": {
743        "step1": {
744          "title": "Install the Magic Eden extension",
745          "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
746        },
747        "step2": {
748          "title": "Create or Import a Wallet",
749          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
750        },
751        "step3": {
752          "title": "Refresh your browser",
753          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
754        }
755      }
756    },
757
758    "metamask": {
759      "qr_code": {
760        "step1": {
761          "title": "Open the MetaMask app",
762          "description": "We recommend putting MetaMask on your home screen for quicker access."
763        },
764        "step2": {
765          "title": "Create or Import a Wallet",
766          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
767        },
768        "step3": {
769          "title": "Tap the scan button",
770          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
771        }
772      },
773
774      "extension": {
775        "step1": {
776          "title": "Install the MetaMask extension",
777          "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
778        },
779        "step2": {
780          "title": "Create or Import a Wallet",
781          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
782        },
783        "step3": {
784          "title": "Refresh your browser",
785          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
786        }
787      }
788    },
789
790    "nestwallet": {
791      "extension": {
792        "step1": {
793          "title": "Install the NestWallet extension",
794          "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
795        },
796        "step2": {
797          "title": "Create or Import a Wallet",
798          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
799        },
800        "step3": {
801          "title": "Refresh your browser",
802          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
803        }
804      }
805    },
806
807    "okx": {
808      "qr_code": {
809        "step1": {
810          "title": "Open the OKX Wallet app",
811          "description": "We recommend putting OKX Wallet on your home screen for quicker access."
812        },
813        "step2": {
814          "title": "Create or Import a Wallet",
815          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
816        },
817        "step3": {
818          "title": "Tap the scan button",
819          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
820        }
821      },
822
823      "extension": {
824        "step1": {
825          "title": "Install the OKX Wallet extension",
826          "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
827        },
828        "step2": {
829          "title": "Create or Import a Wallet",
830          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
831        },
832        "step3": {
833          "title": "Refresh your browser",
834          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
835        }
836      }
837    },
838
839    "omni": {
840      "qr_code": {
841        "step1": {
842          "title": "Open the Omni app",
843          "description": "Add Omni to your home screen for faster access to your wallet."
844        },
845        "step2": {
846          "title": "Create or Import a Wallet",
847          "description": "Create a new wallet or import an existing one."
848        },
849        "step3": {
850          "title": "Tap the QR icon and scan",
851          "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
852        }
853      }
854    },
855
856    "1inch": {
857      "qr_code": {
858        "step1": {
859          "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
860          "title": "Open the 1inch Wallet app"
861        },
862        "step2": {
863          "description": "Create a wallet and username, or import an existing wallet.",
864          "title": "Create or Import a Wallet"
865        },
866        "step3": {
867          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
868          "title": "Tap the Scan QR button"
869        }
870      }
871    },
872
873    "token_pocket": {
874      "qr_code": {
875        "step1": {
876          "title": "Open the TokenPocket app",
877          "description": "We recommend putting TokenPocket on your home screen for quicker access."
878        },
879        "step2": {
880          "title": "Create or Import a Wallet",
881          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
882        },
883        "step3": {
884          "title": "Tap the scan button",
885          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
886        }
887      },
888
889      "extension": {
890        "step1": {
891          "title": "Install the TokenPocket extension",
892          "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
893        },
894        "step2": {
895          "title": "Create or Import a Wallet",
896          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
897        },
898        "step3": {
899          "title": "Refresh your browser",
900          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
901        }
902      }
903    },
904
905    "trust": {
906      "qr_code": {
907        "step1": {
908          "title": "Open the Trust Wallet app",
909          "description": "Put Trust Wallet on your home screen for faster access to your wallet."
910        },
911        "step2": {
912          "title": "Create or Import a Wallet",
913          "description": "Create a new wallet or import an existing one."
914        },
915        "step3": {
916          "title": "Tap WalletConnect in Settings",
917          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
918        }
919      },
920
921      "extension": {
922        "step1": {
923          "title": "Install the Trust Wallet extension",
924          "description": "Click at the top right of your browser and pin Trust Wallet for easy access."
925        },
926        "step2": {
927          "title": "Create or Import a wallet",
928          "description": "Create a new wallet or import an existing one."
929        },
930        "step3": {
931          "title": "Refresh your browser",
932          "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
933        }
934      }
935    },
936
937    "uniswap": {
938      "qr_code": {
939        "step1": {
940          "title": "Open the Uniswap app",
941          "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
942        },
943        "step2": {
944          "title": "Create or Import a Wallet",
945          "description": "Create a new wallet or import an existing one."
946        },
947        "step3": {
948          "title": "Tap the QR icon and scan",
949          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
950        }
951      }
952    },
953
954    "zerion": {
955      "qr_code": {
956        "step1": {
957          "title": "Open the Zerion app",
958          "description": "We recommend putting Zerion on your home screen for quicker access."
959        },
960        "step2": {
961          "title": "Create or Import a Wallet",
962          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
963        },
964        "step3": {
965          "title": "Tap the scan button",
966          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
967        }
968      },
969
970      "extension": {
971        "step1": {
972          "title": "Install the Zerion extension",
973          "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
974        },
975        "step2": {
976          "title": "Create or Import a Wallet",
977          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
978        },
979        "step3": {
980          "title": "Refresh your browser",
981          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
982        }
983      }
984    },
985
986    "rainbow": {
987      "qr_code": {
988        "step1": {
989          "title": "Open the Rainbow app",
990          "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
991        },
992        "step2": {
993          "title": "Create or Import a Wallet",
994          "description": "You can easily backup your wallet using our backup feature on your phone."
995        },
996        "step3": {
997          "title": "Tap the scan button",
998          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
999        }
1000      }
1001    },
1002
1003    "enkrypt": {
1004      "extension": {
1005        "step1": {
1006          "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
1007          "title": "Install the Enkrypt Wallet extension"
1008        },
1009        "step2": {
1010          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1011          "title": "Create or Import a Wallet"
1012        },
1013        "step3": {
1014          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1015          "title": "Refresh your browser"
1016        }
1017      }
1018    },
1019
1020    "frame": {
1021      "extension": {
1022        "step1": {
1023          "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
1024          "title": "Install Frame & the companion extension"
1025        },
1026        "step2": {
1027          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1028          "title": "Create or Import a Wallet"
1029        },
1030        "step3": {
1031          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1032          "title": "Refresh your browser"
1033        }
1034      }
1035    },
1036
1037    "one_key": {
1038      "extension": {
1039        "step1": {
1040          "title": "Install the OneKey Wallet extension",
1041          "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
1042        },
1043        "step2": {
1044          "title": "Create or Import a Wallet",
1045          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1046        },
1047        "step3": {
1048          "title": "Refresh your browser",
1049          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1050        }
1051      }
1052    },
1053
1054    "paraswap": {
1055      "qr_code": {
1056        "step1": {
1057          "title": "Open the ParaSwap app",
1058          "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
1059        },
1060        "step2": {
1061          "title": "Create or Import a Wallet",
1062          "description": "Create a new wallet or import an existing one."
1063        },
1064        "step3": {
1065          "title": "Tap the QR icon and scan",
1066          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1067        }
1068      }
1069    },
1070
1071    "phantom": {
1072      "extension": {
1073        "step1": {
1074          "title": "Install the Phantom extension",
1075          "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
1076        },
1077        "step2": {
1078          "title": "Create or Import a Wallet",
1079          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1080        },
1081        "step3": {
1082          "title": "Refresh your browser",
1083          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1084        }
1085      }
1086    },
1087
1088    "rabby": {
1089      "extension": {
1090        "step1": {
1091          "title": "Install the Rabby extension",
1092          "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
1093        },
1094        "step2": {
1095          "title": "Create or Import a Wallet",
1096          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1097        },
1098        "step3": {
1099          "title": "Refresh your browser",
1100          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1101        }
1102      }
1103    },
1104
1105    "ronin": {
1106      "qr_code": {
1107        "step1": {
1108          "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
1109          "title": "Open the Ronin Wallet app"
1110        },
1111        "step2": {
1112          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1113          "title": "Create or Import a Wallet"
1114        },
1115        "step3": {
1116          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1117          "title": "Tap the scan button"
1118        }
1119      },
1120
1121      "extension": {
1122        "step1": {
1123          "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
1124          "title": "Install the Ronin Wallet extension"
1125        },
1126        "step2": {
1127          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1128          "title": "Create or Import a Wallet"
1129        },
1130        "step3": {
1131          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1132          "title": "Refresh your browser"
1133        }
1134      }
1135    },
1136
1137    "ramper": {
1138      "extension": {
1139        "step1": {
1140          "title": "Install the Ramper extension",
1141          "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
1142        },
1143        "step2": {
1144          "title": "Create a Wallet",
1145          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1146        },
1147        "step3": {
1148          "title": "Refresh your browser",
1149          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1150        }
1151      }
1152    },
1153
1154    "safeheron": {
1155      "extension": {
1156        "step1": {
1157          "title": "Install the Core extension",
1158          "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
1159        },
1160        "step2": {
1161          "title": "Create or Import a Wallet",
1162          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1163        },
1164        "step3": {
1165          "title": "Refresh your browser",
1166          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1167        }
1168      }
1169    },
1170
1171    "taho": {
1172      "extension": {
1173        "step1": {
1174          "title": "Install the Taho extension",
1175          "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
1176        },
1177        "step2": {
1178          "title": "Create or Import a Wallet",
1179          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1180        },
1181        "step3": {
1182          "title": "Refresh your browser",
1183          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1184        }
1185      }
1186    },
1187
1188    "wigwam": {
1189      "extension": {
1190        "step1": {
1191          "title": "Install the Wigwam extension",
1192          "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
1193        },
1194        "step2": {
1195          "title": "Create or Import a Wallet",
1196          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1197        },
1198        "step3": {
1199          "title": "Refresh your browser",
1200          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1201        }
1202      }
1203    },
1204
1205    "talisman": {
1206      "extension": {
1207        "step1": {
1208          "title": "Install the Talisman extension",
1209          "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
1210        },
1211        "step2": {
1212          "title": "Create or Import an Ethereum Wallet",
1213          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1214        },
1215        "step3": {
1216          "title": "Refresh your browser",
1217          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1218        }
1219      }
1220    },
1221
1222    "ctrl": {
1223      "extension": {
1224        "step1": {
1225          "title": "Install the CTRL Wallet extension",
1226          "description": "We recommend pinning CTRL Wallet to your taskbar for quicker access to your wallet."
1227        },
1228        "step2": {
1229          "title": "Create or Import a Wallet",
1230          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1231        },
1232        "step3": {
1233          "title": "Refresh your browser",
1234          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1235        }
1236      }
1237    },
1238
1239    "zeal": {
1240      "qr_code": {
1241        "step1": {
1242          "title": "Open the Zeal app",
1243          "description": "Add Zeal Wallet to your home screen for faster access to your wallet."
1244        },
1245        "step2": {
1246          "title": "Create or Import a Wallet",
1247          "description": "Create a new wallet or import an existing one."
1248        },
1249        "step3": {
1250          "title": "Tap the QR icon and scan",
1251          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1252        }
1253      },
1254      "extension": {
1255        "step1": {
1256          "title": "Install the Zeal extension",
1257          "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
1258        },
1259        "step2": {
1260          "title": "Create or Import a Wallet",
1261          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1262        },
1263        "step3": {
1264          "title": "Refresh your browser",
1265          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1266        }
1267      }
1268    },
1269
1270    "safepal": {
1271      "extension": {
1272        "step1": {
1273          "title": "Install the SafePal Wallet extension",
1274          "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
1275        },
1276        "step2": {
1277          "title": "Create or Import a wallet",
1278          "description": "Create a new wallet or import an existing one."
1279        },
1280        "step3": {
1281          "title": "Refresh your browser",
1282          "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
1283        }
1284      },
1285      "qr_code": {
1286        "step1": {
1287          "title": "Open the SafePal Wallet app",
1288          "description": "Put SafePal Wallet on your home screen for faster access to your wallet."
1289        },
1290        "step2": {
1291          "title": "Create or Import a Wallet",
1292          "description": "Create a new wallet or import an existing one."
1293        },
1294        "step3": {
1295          "title": "Tap WalletConnect in Settings",
1296          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
1297        }
1298      }
1299    },
1300
1301    "desig": {
1302      "extension": {
1303        "step1": {
1304          "title": "Install the Desig extension",
1305          "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
1306        },
1307        "step2": {
1308          "title": "Create a Wallet",
1309          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1310        },
1311        "step3": {
1312          "title": "Refresh your browser",
1313          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1314        }
1315      }
1316    },
1317
1318    "subwallet": {
1319      "extension": {
1320        "step1": {
1321          "title": "Install the SubWallet extension",
1322          "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
1323        },
1324        "step2": {
1325          "title": "Create or Import a Wallet",
1326          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1327        },
1328        "step3": {
1329          "title": "Refresh your browser",
1330          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1331        }
1332      },
1333      "qr_code": {
1334        "step1": {
1335          "title": "Open the SubWallet app",
1336          "description": "We recommend putting SubWallet on your home screen for quicker access."
1337        },
1338        "step2": {
1339          "title": "Create or Import a Wallet",
1340          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1341        },
1342        "step3": {
1343          "title": "Tap the scan button",
1344          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1345        }
1346      }
1347    },
1348
1349    "clv": {
1350      "extension": {
1351        "step1": {
1352          "title": "Install the CLV Wallet extension",
1353          "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
1354        },
1355        "step2": {
1356          "title": "Create or Import a Wallet",
1357          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1358        },
1359        "step3": {
1360          "title": "Refresh your browser",
1361          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1362        }
1363      },
1364      "qr_code": {
1365        "step1": {
1366          "title": "Open the CLV Wallet app",
1367          "description": "We recommend putting CLV Wallet on your home screen for quicker access."
1368        },
1369        "step2": {
1370          "title": "Create or Import a Wallet",
1371          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1372        },
1373        "step3": {
1374          "title": "Tap the scan button",
1375          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1376        }
1377      }
1378    },
1379
1380    "okto": {
1381      "qr_code": {
1382        "step1": {
1383          "title": "Open the Okto app",
1384          "description": "Add Okto to your home screen for quick access"
1385        },
1386        "step2": {
1387          "title": "Create an MPC Wallet",
1388          "description": "Create an account and generate a wallet"
1389        },
1390        "step3": {
1391          "title": "Tap WalletConnect in Settings",
1392          "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
1393        }
1394      }
1395    },
1396
1397    "ledger": {
1398      "desktop": {
1399        "step1": {
1400          "title": "Open the Ledger Live app",
1401          "description": "We recommend putting Ledger Live on your home screen for quicker access."
1402        },
1403        "step2": {
1404          "title": "Set up your Ledger",
1405          "description": "Set up a new Ledger or connect to an existing one."
1406        },
1407        "step3": {
1408          "title": "Connect",
1409          "description": "A connection prompt will appear for you to connect your wallet."
1410        }
1411      },
1412      "qr_code": {
1413        "step1": {
1414          "title": "Open the Ledger Live app",
1415          "description": "We recommend putting Ledger Live on your home screen for quicker access."
1416        },
1417        "step2": {
1418          "title": "Set up your Ledger",
1419          "description": "You can either sync with the desktop app or connect your Ledger."
1420        },
1421        "step3": {
1422          "title": "Scan the code",
1423          "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
1424        }
1425      }
1426    },
1427
1428    "valora": {
1429      "qr_code": {
1430        "step1": {
1431          "title": "Open the Valora app",
1432          "description": "We recommend putting Valora on your home screen for quicker access."
1433        },
1434        "step2": {
1435          "title": "Create or import a wallet",
1436          "description": "Create a new wallet or import an existing one."
1437        },
1438        "step3": {
1439          "title": "Tap the scan button",
1440          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1441        }
1442      }
1443    },
1444
1445    "gate": {
1446      "qr_code": {
1447        "step1": {
1448          "title": "Open the Gate app",
1449          "description": "We recommend putting Gate on your home screen for quicker access."
1450        },
1451        "step2": {
1452          "title": "Create or Import a Wallet",
1453          "description": "Create a new wallet or import an existing one."
1454        },
1455        "step3": {
1456          "title": "Tap the scan button",
1457          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1458        }
1459      },
1460      "extension": {
1461        "step1": {
1462          "title": "Install the Gate extension",
1463          "description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
1464        },
1465        "step2": {
1466          "title": "Create or Import a Wallet",
1467          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1468        },
1469        "step3": {
1470          "title": "Refresh your browser",
1471          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1472        }
1473      }
1474    },
1475
1476    "gemini": {
1477      "qr_code": {
1478        "step1": {
1479          "title": "Open keys.gemini.com",
1480          "description": "Visit keys.gemini.com on your mobile browser - no app download required."
1481        },
1482        "step2": {
1483          "title": "Create Your Wallet Instantly",
1484          "description": "Set up your smart wallet in seconds using your device's built-in authentication."
1485        },
1486        "step3": {
1487          "title": "Scan to Connect",
1488          "description": "Scan the QR code to instantly connect your wallet - it just works."
1489        }
1490      },
1491      "extension": {
1492        "step1": {
1493          "title": "Go to keys.gemini.com",
1494          "description": "No extensions or downloads needed - your wallet lives securely in the browser."
1495        },
1496        "step2": {
1497          "title": "One-Click Setup",
1498          "description": "Create your smart wallet instantly with passkey authentication - easier than any wallet out there."
1499        },
1500        "step3": {
1501          "title": "Connect and Go",
1502          "description": "Approve the connection and you're ready - the unopinionated wallet that just works."
1503        }
1504      }
1505    },
1506
1507    "xportal": {
1508      "qr_code": {
1509        "step1": {
1510          "description": "Put xPortal on your home screen for faster access to your wallet.",
1511          "title": "Open the xPortal app"
1512        },
1513        "step2": {
1514          "description": "Create a wallet or import an existing one.",
1515          "title": "Create or Import a Wallet"
1516        },
1517        "step3": {
1518          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1519          "title": "Tap the Scan QR button"
1520        }
1521      }
1522    },
1523
1524    "mew": {
1525      "qr_code": {
1526        "step1": {
1527          "description": "We recommend putting MEW Wallet on your home screen for quicker access.",
1528          "title": "Open the MEW Wallet app"
1529        },
1530        "step2": {
1531          "description": "You can easily backup your wallet using the cloud backup feature.",
1532          "title": "Create or Import a Wallet"
1533        },
1534        "step3": {
1535          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1536          "title": "Tap the scan button"
1537        }
1538      }
1539    },
1540
1541    "zilpay": {
1542      "qr_code": {
1543        "step1": {
1544          "title": "Open the ZilPay app",
1545          "description": "Add ZilPay to your home screen for faster access to your wallet."
1546        },
1547        "step2": {
1548          "title": "Create or Import a Wallet",
1549          "description": "Create a new wallet or import an existing one."
1550        },
1551        "step3": {
1552          "title": "Tap the scan button",
1553          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1554        }
1555      }
1556    },
1557
1558    "nova": {
1559      "qr_code": {
1560        "step1": {
1561          "title": "Open the Nova Wallet app",
1562          "description": "Add Nova Wallet to your home screen for faster access to your wallet."
1563        },
1564        "step2": {
1565          "title": "Create or Import a Wallet",
1566          "description": "Create a new wallet or import an existing one."
1567        },
1568        "step3": {
1569          "title": "Tap the scan button",
1570          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1571        }
1572      }
1573    },
1574
1575    "meco": {
1576      "qr_code": {
1577        "step1": {
1578          "title": "Open the MeCo Wallet app",
1579          "description": "Put MeCo Wallet on your home screen for faster access to your wallet."
1580        },
1581        "step2": {
1582          "title": "Create or Import a Wallet",
1583          "description": "Create a new wallet or import an existing one."
1584        },
1585        "step3": {
1586          "title": "Tap the scan button",
1587          "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1588        }
1589      }
1590    },
1591
1592    "anchorage_digital": {
1593      "extension": {
1594        "step1": {
1595          "title": "Install the Anchorage Digital extension",
1596          "description": "We recommend pinning Anchorage Digital to your taskbar for easier access to your wallet."
1597        },
1598        "step2": {
1599          "title": "Scan the QR code to login",
1600          "description": "Securely connect your organization's wallets to dApps with institutional-grade security."
1601        },
1602        "step3": {
1603          "title": "Refresh your browser",
1604          "description": "Once you log in, click below to refresh the browser and load up the extension."
1605        }
1606      }
1607    }
1608  }
1609}
1610`},22729:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(66585);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.Q)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.Q)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.Q)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.Q)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.Q)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},22859:(e,t,n)=>{"use strict";n.d(t,{RR:()=>s,pw:()=>o,sM:()=>a});var r=n(5639),i=n(76200);class a extends i.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class o extends i.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends i.C{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.Q)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},23084:(e,t,n)=>{"use strict";n.d(t,{Vw:()=>b,DO:()=>a,CC:()=>s,sd:()=>o,Fe:()=>i,Ht:()=>l,uH:()=>u,Id:()=>m,qj:()=>g,O8:()=>d,po:()=>w,Ow:()=>f,fd:()=>h,ZJ:()=>p,DH:()=>c});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function a(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)}function s(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 l(e,t){a(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function c(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}let h=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e};function p(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),a(e),e}function m(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];a(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 b{}function g(e){let t=t=>e().update(p(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function w(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")}}
1610,23414:(e,t,n)=>{"use strict";n.d(t,{h:()=>p,k:()=>b});var r=n(79313),i=n(45755),a=n(76200),o=n(12748),s=n(57512),l=n(58798),c=n(80403),u=n(38047),d=n(66320),f=n(81645),h=n(3796);function p(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});let n=m(function({params:e,values:t}){let n=[];for(let p=0;p<e.length;p++)n.push(function e({param:t,value:n}){let p=b(t.type);if(p){let[i,a]=p;return function(t,{length:n,param:i}){let a=null===n;if(!Array.isArray(t))throw new r.dm(t);if(!a&&t.length!==n)throw new r.Nc({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=m(s);if(a){let t=(0,f.cK)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,l.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.xW)(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,l=e({param:o,value:t[s]});i.push(l),l.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(i):(0,l.xW)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var g=n;if(!(0,s.P)(g))throw new i.M({address:g});return{dynamic:!1,encoded:(0,c.db)(g.toLowerCase())}}if("bool"===t.type){var w=n;if("boolean"!=typeof w)throw new a.C(`Invalid boolean value: "${w}" (type: ${typeof w}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.db)((0,f.$P)(w))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=h.Ge.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.Ty({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.cK)(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,u.E)(e);if(!n){let t=e;return i%32!=0&&(t=(0,c.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.xW)([(0,c.db)((0,f.cK)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,c.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var y=n;let e=(0,f.i3)(y),t=Math.ceil((0,u.E)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,c.db)((0,d.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,l.xW)([(0,c.db)((0,f.cK)((0,u.E)(e),{size:32})),...r])}}throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[p],value:t[p]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,u.E)(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.cK)(t+i,{size:32})),r.push(s),i+=(0,u.E)(s)):n.push(s)}return(0,l.xW)([...n,...r])}function b(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},23511:(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,{A:()=>r})},24456:(e,t,n)=>{"use strict";n.d(t,{o:()=>O});var r=n(16006),i=n(37744),a=n(93505),o=n(58547);let s={block:(0,i.R)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=(0,a.uP)(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,a.gU)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,o.WB)({format:e=>({l1GasPrice:e.l1GasPrice?(0,r.uU)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,r.uU)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,r.uU)(e.l1Fee):null,l1FeeScalar:e.l
16101FeeScalar?Number(e.l1FeeScalar):null})})};var l=n(45755),c=n(57512),u=n(58798),d=n(81645),f=n(83894),h=n(1855),p=n(8922),m=n(39151),b=n(47714),g=n(20289),w=n(49154),y=n(90153),v=n(50136),C=n(76200),x=n(32942),A=n(33450),E=n(98877),k=n(38047),j=n(66320);function B(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new A.qD({chainId:t});if(i&&!(0,c.P)(i))throw new l.M({address:i});if(r&&r>v.Ao)throw new E.BG({maxFeePerGas:r});if(n&&r&&n>r)throw new E.lN({maxFeePerGas:r,maxPriorityFeePerGas:n})}var I=n(13800);function S(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new h.fZ({storageKey:i[e]});if(!(0,c.P)(r,{strict:!1}))throw new l.M({address:r});t.push([r,i])}return t}function P(e,t){let n=t??e,{v:r,yParity:i}=n;if(void 0===n.r||void 0===n.s||void 0===r&&void 0===i)return[];let a=(0,w.B)(n.r),o=(0,w.B)(n.s);return["number"==typeof i?i?(0,d.cK)(1):"0x":0n===r?"0x":1n===r?(0,d.cK)(1):27n===r?"0x":(0,d.cK)(1),"0x00"===a?"0x":a,"0x00"===o?"0x":o]}let O={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:s,serializers:{transaction:function(e,t){var n;let i;return"deposit"===(n=e).type||void 0!==n.sourceHash?function(e){!function(e){let{from:t,to:n}=e;if(t&&!(0,c.P)(t))throw new l.M({address:t});if(n&&!(0,c.P)(n))throw new l.M({address:n})}(e);let{sourceHash:t,data:n,from:r,gas:i,isSystemTx:a,mint:o,to:s,value:h}=e,p=[t,r,s??"0x",o?(0,d.nj)(o):"0x",h?(0,d.nj)(h):"0x",i?(0,d.nj)(i):"0x",a?"0x1":"0x",n??"0x"];return(0,u.aP)(["0x7e",(0,f.EQ)(p)])}(e):"eip1559"===(i=(0,I.L)(e))?function(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:o,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:c,data:h}=e;B(e);let p=S(c),m=[(0,d.cK)(n),i?(0,d.cK)(i):"0x",l?(0,d.cK)(l):"0x",s?(0,d.cK)(s):"0x",r?(0,d.cK)(r):"0x",a??"0x",o?(0,d.cK)(o):"0x",h??"0x",p,...P(e,t)];return(0,u.aP)(["0x02",(0,f.EQ)(m)])}(e,t):"eip2930"===i?function(e,t){let{chainId:n,gas:r,data:i,nonce:a,to:o,value:s,accessList:h,gasPrice:p}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new A.qD({chainId:t});if(a&&!(0,c.P)(a))throw new l.M({address:a});if(n||i)throw new C.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>v.Ao)throw new E.BG({maxFeePerGas:r})}(e);let m=S(h),b=[(0,d.cK)(n),a?(0,d.cK)(a):"0x",p?(0,d.cK)(p):"0x",r?(0,d.cK)(r):"0x",o??"0x",s?(0,d.cK)(s):"0x",i??"0x",m,...P(e,t)];return(0,u.aP)(["0x01",(0,f.EQ)(b)])}(e,t):"eip4844"===i?function(e,t){let{chainId:n,gas:i,nonce:a,to:o,value:s,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:h,accessList:w,data:v}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new x.zF;for(let e of t){let t=(0,k.E)(e),n=(0,r.ME)((0,j.di)(e,0,1));if(32!==t)throw new x.uP({hash:e,size:t});if(n!==y.E)throw new x.PK({hash:e,version:n})}}B(e)}(e);let C=e.blobVersionedHashes,A=e.sidecars;if(e.blobs&&(void 0===C||void 0===A)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,d.My)(e)),n=e.kzg,r=(0,p.S)({blobs:t,kzg:n});if(void 0===C&&(C=(0,b.d)({commitments:r})),void 0===A){let e=(0,m.t)({blobs:t,commitments:r,kzg:n});A=(0,g.T)({blobs:t,commitments:r,proofs:e})}}let E=S(w),I=[(0,d.cK)(n),a?(0,d.cK)(a):"0x",h?(0,d.cK)(h):"0x",c?(0,d.cK)(c):"0x",i?(0,d.cK)(i):"0x",o??"0x",s?(0,d.cK)(s):"0x",v??"0x",E,l?(0,d.cK)(l):"0x",C??[],...P(e,t)],O=[],T=[],M=[];if(A)for(let e=0;e<A.length;e++){let{blob:t,commitment:n,proof:r}=A[e];O.push(t),T.push(n),M.push(r)}return(0,u.aP)(["0x03",A?(0,f.EQ)([I,O,T,M]):(0,f.EQ)(I)])}(e,t):"eip7702"===i?function(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:a,to:o,value:s,maxFeePerGas:h,maxPriorityFeePerGas:p,accessList:m,data:b}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,n=e.address;if(!(0,c.P)(n))throw new l.M({address:n});if(t<0)throw new A.qD({chainId:t})}B(e)}(e);let g=S(m),w=function(e){if(!e||0===e.length)return[];let t=[];for(let n of e){let{chainId:e,nonce:r,...i}=n,a=n.address;t.push([e?(0,d.nj)(e):"0x",a,r?(0,d.nj)(r):"0x",...P({},i)])}return t}(n);return(0,u.aP)(["0x04",(0,f.EQ)([(0,d.cK)(r),a?(0,d.cK)(a):"0x",p?(0,d.cK)(p):"0x",h?(0,d.cK)(h):"0x",i?(0,d.cK)(i):"0x",o??"0x",s?(0,d.cK)(s):"0x",b??"0x",g,w,...P(e,t)])])}(e,t):function(e,t){let{chainId:n=0,gas:r,data:i,nonce:a,to:o,value:s,gasPrice:u}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(a&&!(0,c.P)(a))throw new l.M({address:a});if(void 0!==t&&t<=0)throw new A.qD({chainId:t});
1610if(n||i)throw new C.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>v.Ao)throw new E.BG({maxFeePerGas:r})}(e);let p=[a?(0,d.cK)(a):"0x",u?(0,d.cK)(u):"0x",r?(0,d.cK)(r):"0x",o??"0x",s?(0,d.cK)(s):"0x",i??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new h.zW({v:t.v});return e})(),r=(0,w.B)(t.r),i=(0,w.B)(t.s);p=[...p,(0,d.cK)(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else n>0&&(p=[...p,(0,d.cK)(n),"0x","0x"]);return(0,f.EQ)(p)}(e,t)}}}},25028:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(37149);let i=()=>r.S$},25139:(e,t,n)=>{"use strict";function r(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}n.d(t,{R:()=>r})},26268:(e,t,n)=>{"use strict";let r,i,a,o,s,l,c,u,d,f,h,p,m,b,g,w;n.d(t,{pK:()=>sc,aN:()=>io,qL:()=>a7,kT:()=>ii,Y8:()=>sC,Vx:()=>sa});var y,v,C,x,A,E,k,j,B,I=n(80585),S={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},P=S.blue,O=({accentColor:e=P.accentColor,accentColorForeground:t=P.accentColorForeground,...n}={})=>({...(0,I.$)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackgroun
1610d:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});O.accentColors=S;var T=n(21537),M=n(14232);function F(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}function R(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return F(function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return{[t.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in t))throw Error("Responsive arrays are not supported");var n={};for(var r in t.responsiveArray)null!=e[r]&&(n[t.responsiveArray[r]]=e[r]);return n}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var U=e=>e,L=n(8047),q=n(30817),W=n(61511);function z(e={}){let{onConnect:t,onDisconnect:n}=e,r=(0,W.U)(e);(0,M.useEffect)(()=>(0,q.F)(r,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:i,chain:a,chainId:o,connector:s}=e,l="reconnecting"===r.status||void 0===r.status;t?.({address:n,addresses:i,chain:a,chainId:o,connector:s,isReconnected:l})}else"connected"===r.status&&"disconnected"===e.status&&n?.()}}),[r,t,n])}let Q=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r};var G=n(16006),$=n(49154),H=n(32602),_=n(87291),K=n(629),V=n(6927);function J(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(V.pj[e])}var Y=n(57353),Z=n(19532);async function X(e,t){let{allowFailure:n=!0,chainId:r,contracts:i,...a}=t,o=e.getClient({chainId:r});return(0,K.T)(o,Z.C,"multicall")({allowFailure:n,contracts:i,...a})}var ee=n(75977);async function et(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:i,...a}=t,o=t.contracts;try{let t={};for(let[n,r]of o.entries()){let i=r.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:r,index:n})}let s=(await Promise.all(Object.entries(t).map(([t,o])=>X(e,{...a,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(t,10),contracts:o.map(({contract:e})=>e)})))).flat(),l=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[l[n]]=t),e),[])}catch(a){if(a instanceof Y.bG)throw a;let t=()=>o.map(t=>(function(e,t){let{chainId:n,...r}=t,i=e.getClient({chainId:n});return(0,K.T)(i,ee.J,"readContract")(r)})(e,{...t,blockNumber:r,blockTag:i}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function en(e,t){let{address:n,blockNumber:r,blockTag:i,chainId:a,token:o,unit:s="ether"}=t;if(o)try{return await er(e,{balanceAddress:n,chainId:a,symbolType:"string",tokenAddress:o})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await er(e,{balanceAddress:n,chainId:a,symbolType:"bytes32",tokenAddress:o}),r=(0,G.IQ)((0,$.B)(t.symbol,{dir:"right"}));
1610return{...t,symbol:r}}throw t}let l=e.getClient({chainId:a}),c=(0,K.T)(l,_.r,"getBalance"),u=await c(r?{address:n,blockNumber:r}:{address:n,blockTag:i}),d=e.chains.find(e=>e.id===a)??l.chain;return{decimals:d.nativeCurrency.decimals,formatted:(0,H.J)(u,J(s)),symbol:d.nativeCurrency.symbol,value:u}}async function er(e,t){let{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:a,unit:o}=t,s={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:a},[l,c,u]=await et(e,{allowFailure:!1,contracts:[{...s,functionName:"balanceOf",args:[n],chainId:r},{...s,functionName:"decimals",chainId:r},{...s,functionName:"symbol",chainId:r}]}),d=(0,H.J)(l??"0",J(o??c));return{decimals:c,formatted:d,symbol:u,value:l}}function ei(e){return JSON.stringify(e,(e,t)=>!function(e){if(!ea(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!ea(n)&&!!n.hasOwnProperty("isPrototypeOf")}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function ea(e){return"[object Object]"===Object.prototype.toString.call(e)}function eo(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:a,maxPages:o,meta:s,networkMode:l,queryFn:c,queryHash:u,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:p,structuralSharing:m,getPreviousPageParam:b,getNextPageParam:g,initialPageParam:w,_optimisticResults:y,enabled:v,notifyOnChangeProps:C,placeholderData:x,refetchInterval:A,refetchIntervalInBackground:E,refetchOnMount:k,refetchOnReconnect:j,refetchOnWindowFocus:B,retryOnMount:I,select:S,staleTime:P,suspense:O,throwOnError:T,config:M,connector:F,query:R,...N}=e;return N}var es=n(67914);function el(e){let t=(0,es.I)({...e,queryKeyHashFn:ei});return t.queryKey=e.queryKey,t}var ec=n(1081);function eu(e={}){let{address:t,query:n={}}=e,r=(0,W.U)(e),i=(0,ec.i)({config:r}),a=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await en(e,{...i,address:n})??null},queryKey:function(e={}){return["balance",eo(e)]}(t)}}(r,{...e,chainId:e.chainId??i}),o=!!(t&&(n.enabled??!0));return el({...n,...a,enabled:o})}let ed=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function ef(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let e=1;e<r;e++)a.push(i+=n());let o=n(),s=t;t+=o;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=0x80000000-1,f=0;for(let e=0;e<31;e++)f=f<<1|u();let h=[],p=0,m=0x80000000;for(;;){let e=Math.floor(((f-p+1)*i-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<a[r]?n=r:t=r}if(0==t)break;h.push(t);let o=p+Math.floor(m*a[t]/i),s=p+Math.floor(m*a[t+1]/i)-1;for(;((o^s)&0x40000000)==0;)f=f<<1&d|u(),o=o<<1&d,s=s<<1&d|1;for(;o&~s&0x20000000;)f=0x40000000&f|f<<1&d>>>1|u(),o=o<<1^0x40000000,s=(0x40000000^s)<<1|0x40000001;p=o,m=1+s-o}let b=r-4;return h.map(t=>{switch(t-b){case 3:return b+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return b+256+(e[s++]<<8|e[s++]);case 1:return b+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,o=0,s=0;i<n;i++)s=s<<6|t[e.charCodeAt(i)],(o+=6)>=8&&(r[a++]=s>>(o-=8));return r}(e)),n=0,()=>t[n++]}function eh(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function ep(e){return eb(()=>{let t=eh(e);if(t.length)return t})}function em(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=eb(t);return eg(i.length,1+e,t).flatMap((e,t)=>{let[a,...o]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[a+t*n,o.map(e=>e+i)]})})}(n,e))}for(;;){var n,r;let i=e()-1;if(i<0)break;t.push((n=i,eg(1+(r=e)(),1+n,r).map(e=>[e[0],e.slice(1)])))}return t.flat()}function eb(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function eg(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let n=Array(e);for(let i=0,a=0;i<e;i++){var r;n[i]=a+=1&(r=t())?~r>>1:r>>1}return n}
1610)(e,n).forEach((e,t)=>r[t].push(e));return r}function ew(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function ey(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function ev(e,t){let n=e.length,r=n-t.length;for(let i=0;0==r&&i<n;i++)r=e[i]-t[i];return r}let eC=55204;function ex(e){return e>>24&255}function eA(e){return 0xffffff&e}function eE(e){return e>=44032&&e<eC}function ek(e){r||function(){let e=ef("AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8P
1610soYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA");for(let[t,n]of(r=new Map(ep(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(eh(e)),a=new Map,o=new Map,em(e))){if(!i.has(t)&&2==n.length){let[e,r]=n,i=o.get(e);i||(i=new Map,o.set(e,i)),i.set(r,t)}a.set(t,n.reverse())}}();let t=[],n=[],s=!1;function l(e){let n=r.get(e);n&&(s=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(eE(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,i=e%28;l(4352+t),l(4449+n),i>0&&l(4519+i)}else{let e=a.get(r);e?n.push(...e):l(r)}if(!n.length)break;r=n.pop()}if(s&&t.length>1){let e=ex(t[0]);for(let n=1;n<t.length;n++){let r=ex(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i||(e=ex(t[--i]))<=r)break}e=ex(t[n])}}return t}function ej(e){return function(e){let t=[],n=[],r=-1,i=0;for(let a of e){let e=ex(a),s=eA(a);if(-1==r)0==e?r=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),i=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;{if(eE(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);let n=o.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);a>=0?r=a:0==i&&0==e?(t.push(r),r=s):(n.push(s),i=e)}}return r>=0&&t.push(r,...n),t}(ek(e))}let eB=e=>Array.from(e);function eI(e,t){return e.P.has(t)||e.Q.has(t)}class eS extends Array{get is_emoji(){return!0}}function eP(){let e,t;if(s)return;let n=ef("
vendor: 20,100 bytes, line 1610
1610AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI
1610"),r=()=>new Set(eh(n)),i=(e,t)=>t.forEach(t=>e.add(t));s=new Map(em(n)),l=r(),c=eh(n),u=new Set(eh(n).map(e=>c[e])),c=new Set(c),d=r(),r();let a=ep(n),o=n(),w=()=>{let e=new Set;return eh(n).forEach(t=>i(e,a[t])),i(e,eh(n)),e};f=eb(e=>{let t=eb(n).map(e=>e+96);if(t.length){let r=e>=o;t[0]-=32,t=ey(t),r&&(t=`Restricted[${t}]`);let i=w();return{N:t,P:i,Q:w(),M:!n(),R:r}}}),h=r(),p=new Map;let y=eh(n).concat(eB(h)).sort((e,t)=>e-t);for(let{V:e,M:t}of(y.forEach((e,t)=>{let r=n(),i=y[t]=r?y[t-r]:{V:[],M:new Map};i.V.push(e),h.has(e)||p.set(e,i)}),new Set(p.values()))){let n=[];for(let t of e){let e=f.filter(e=>eI(e,t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),i(r.G,e)}let r=n.flatMap(e=>eB(e.G));for(let{G:e,V:i}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of i)t.set(e,n)}}m=new Set;let v=new Set,C=e=>m.has(e)?v.add(e):m.add(e);for(let e of f){for(let t of e.P)C(t);for(let t of e.Q)C(t)}for(let e of m)p.has(e)||v.has(e)||p.set(e,1);for(let r of(i(m,ek(m).map(eA)),b=(e=[],t=eh(n),function t({S:n,B:r},i,a){if(!(4&n)||a!==i[i.length-1])for(let o of(2&n&&(a=i[i.length-1]),1&n&&e.push(i),r))for(let e of o.Q)t(o,[...i,e],a)}(function e(r){return{S:n(),B:eb(()=>{let r=eh(n).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>eS.from(e)).sort(ev),g=new Map,b)){let e=[g];for(let t of r){let n=e.map(e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n});65039===t?e.push(...n):e=n}for(let t of e)t.V=r}}function eO(e){return(eF(e)?"":`${eT(eM([e]))} `)+ew(e)}function eT(e){return`"${e}"\u200E`}function eM(e,t=1/0,n=ew){var r;let i=[];r=e[0],eP(),c.has(r)&&i.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,o=e.length;for(let t=0;t<o;t++){let r=e[t];eF(r)&&(i.push(ey(e.slice(a,t))),i.push(n(r)),a=t+1)}return i.push(ey(e.slice(a,o))),i.join("")}function eF(e){return eP(),d.has(e)}function eR(e){return Error(`disallowed character: ${eO(e)}`)}function eN(e,t){let n=eO(t),r=f.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function eD(e){return Error(`illegal placement: ${e}`)}function eU(e){return e.filter(e=>65039!=e)}var eL=n(27575),eq=n(73303),eW=n(73689),ez=n(57512),eQ=n(96397);function eG(e,t={}){let n=function(e,t={}){try{return e.getClient(t)}catch{return}}(e,t);return n?.extend(eQ.$)}var e$=n(45712),eH=n(34597),e_=n(40097);async function eK(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,i=t.get(r);n=i?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var eV=n(26949);let eJ=[];function eY(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,eV.b)(eJ,t)?eJ:(eJ=t,t)}function eZ(e={}){let{mutation:t}=e,n=(0,W.U)(e),r={mutationFn:e=>eK(n,e),mutationKey:["disconnect"]},{mutate:i,mutateAsync:a,...o}=(0,e_.n)({...t,...r});return{...o,connectors:(function(e={}){let t=(0,W.U)(e);return(0,M.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>eY(e),n,{equalityFn:eV.b})})(t,{onChange:e}),()=>eY(t),()=>eY(t))})({config:n}).map(e=>e.connector),disconnect:i,disconnectAsync:a}}var eX=n(98477),e0=function(){return(e0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function e1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var e6=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),e5="width-before-scroll-bar";function e2(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var e3="u">typeof window?M.useLayoutEffect:M.useEffect,e8=new WeakMap,e7=(void 0===y&&(y={}),(void 0===v&&(v=function(e){return e}),C=[],x=!1,A={read:function(){if(x)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return C.length?C[C.length-1]:null},useMedium:function(e){var t=v(e,x);return C.push(t),function(){C=C.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(x=!0;C.length;){var t=C;C=[],t.forEach(e)}C={push:function(t){return e(t)},filter:function(){return C}}},assignMedium:function(e){x=!0;var t=[];if(C.length){var n=C;
1610C=[],n.forEach(e),t=C}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),C={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),C}}}}).options=e0({async:!0,ssr:!1},y),A),e4=function(){},e9=M.forwardRef(function(e,t){var n,r,i,a,o=M.useRef(null),s=M.useState({onScrollCapture:e4,onWheelCapture:e4,onTouchMoveCapture:e4}),l=s[0],c=s[1],u=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,m=e.shards,b=e.sideCar,g=e.noRelative,w=e.noIsolation,y=e.inert,v=e.allowPinchZoom,C=e.as,x=e.gapMode,A=e1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(n=[o,t],r=function(e){return n.forEach(function(t){return e2(t,e)})},(i=(0,M.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,e3(function(){var e=e8.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||e2(e,null)}),r.forEach(function(e){t.has(e)||e2(e,i)})}e8.set(a,n)},[n]),a),k=e0(e0({},A),l);return M.createElement(M.Fragment,null,p&&M.createElement(b,{sideCar:e7,removeScrollBar:h,shards:m,noRelative:g,noIsolation:w,inert:y,setCallbacks:c,allowPinchZoom:!!v,lockRef:o,gapMode:x}),u?M.cloneElement(M.Children.only(d),e0(e0({},k),{ref:E})):M.createElement(void 0===C?"div":C,e0({},k,{className:f,ref:E}),d))});e9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e9.classNames={fullWidth:e5,zeroRight:e6};var te=function(e){var t=e.sideCar,n=e1(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return M.createElement(r,e0({},n))};te.isSideCarExport=!0;var tt=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=j||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tn=function(){var e=tt();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tr=function(){var e=tn();return function(t){return e(t.styles,t.dynamic),null}},ti={left:0,top:0,right:0,gap:0},ta=function(e){return parseInt(e||"",10)||0},to=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[ta(n),ta(r),ta(i)]},ts=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ti;var t=to(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tl=tr(),tc="data-scroll-locked",tu=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(tc,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(e6," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(e5," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(e6," .").concat(e6," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(e5," .").concat(e5," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tc,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},td=function(){var e=parseInt(document.body.getAttribute(tc)||"0",10);return isFinite(e)?e:0},tf=function(){M.useEffect(function(){return document.body.setAttribute(tc,(td()+1).toString()),function(){var e=td()-1;e<=0?document.body.removeAttribute(tc):document.body.setAttribute(tc,e.toString())}},[])},th=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tf();var a=M.useMemo(function(){return ts(i)},[i]);return M.createElement(tl,{styles:tu(a,!t,i,n?"":"!important")})},tp=!1;if("u">typeof window)try{var tm=Object.defineProperty({},"passive",{get:function(){return tp=!0,!0}});window.addEventListener("test",tm,tm),window.removeEventListener("test",tm,tm)}catch(e){tp=!1}var tb=!!tp&&{passive:!1},tg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tw=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ty(e,r)){var i=tv(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ty=function(e,t){return"v"===e?tg(t,"overflowY"):tg(t,"overflowX")},tv=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tC=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,c=t.contains(l),u=!1,d=s>0,f=0,h=0;
1610do{if(!l)break;var p=tv(e,l),m=p[0],b=p[1]-p[2]-o*m;(m||b)&&ty(e,l)&&(f+=b,h+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?u=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(u=!0),u},tx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tA=function(e){return[e.deltaX,e.deltaY]},tE=function(e){return e&&"current"in e?e.current:e},tk=0,tj=[];let tB=(E=function(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),i=M.useState(tk++)[0],a=M.useState(tr)[0],o=M.useRef(e);M.useEffect(function(){o.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=tx(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===u||h.contains(u)))return!1;var p=tw(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=tw(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return tC(m,t,e,"h"===m?l:c,!0)},[]),l=M.useCallback(function(e){if(tj.length&&tj[tj.length-1]===a){var n="deltaY"in e?tA(e):tx(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(tE).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=M.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=M.useCallback(function(e){n.current=tx(e),r.current=void 0},[]),d=M.useCallback(function(t){c(t.type,tA(t),t.target,s(t,e.lockRef.current))},[]),f=M.useCallback(function(t){c(t.type,tx(t),t.target,s(t,e.lockRef.current))},[]);M.useEffect(function(){return tj.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,tb),document.addEventListener("touchmove",l,tb),document.addEventListener("touchstart",u,tb),function(){tj=tj.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,tb),document.removeEventListener("touchmove",l,tb),document.removeEventListener("touchstart",u,tb)}},[]);var h=e.removeScrollBar,p=e.inert;return M.createElement(M.Fragment,null,p?M.createElement(a,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?M.createElement(th,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},e7.useMedium(E),te);var tI=M.forwardRef(function(e,t){return M.createElement(e9,e0({},e,{ref:t,sideCar:tB}))});function tS(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function tP(e,t){var n={};if("object"==typeof t)!function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={};for(var a in t){var o=t[a],s=[...r,a];"string"==typeof o||"number"==typeof o||null==o?i[a]=n(o,s):"object"!=typeof o||Array.isArray(o)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(o)?"Array":typeof o,'"')):i[a]=e(o,n,s)}return i}(t,(t,r)=>{null!=t&&(n[tS(function(e,t){var n=e;for(var r of t){if(!(r in n))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}(e,r))]=String(t))});else for(var r in e){var i=e[r];null!=i&&(n[tS(r)]=i)}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),n}tI.classNames=e9.classNames;var tO=n(16167);async function tT(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new tO.nM;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});
1610let{connector:r,...i}=t,a=await n.connect(i);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:i.withCapabilities?a.accounts.map(e=>"object"==typeof e?e.address:e):a.accounts,chainId:a.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:i.withCapabilities?a.accounts.map(e=>"object"==typeof e?e:{address:e,capabilities:{}}):a.accounts,chainId:a.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var tM=n(27027),tF="user-agent",tR="function",tN="object",tD="string",tU="undefined",tL="browser",tq="device",tW="engine",tz="result",tQ="name",tG="type",t$="vendor",tH="version",t_="architecture",tK="major",tV="model",tJ="console",tY="mobile",tZ="tablet",tX="smarttv",t0="wearable",t1="embedded",t6="inapp",t5="brands",t2="formFactors",t3="fullVersionList",t8="platform",t7="platformVersion",t4="bitness",t9="sec-ch-ua",ne=t9+"-full-version-list",nt=t9+"-arch",nn=t9+"-"+t4,nr=t9+"-form-factors",ni=t9+"-"+tY,na=t9+"-"+tV,no=t9+"-"+t8,ns=no+"-version",nl=[t5,t3,tY,tV,t8,t7,t_,t2,t4],nc="Amazon",nu="Apple",nd="ASUS",nf="BlackBerry",nh="Google",np="Huawei",nm="Lenovo",nb="Honor",ng="Microsoft",nw="Motorola",ny="Nvidia",nv="OnePlus",nC="OPPO",nx="Samsung",nA="Sharp",nE="Sony",nk="Xiaomi",nj="Zebra",nB="Chrome",nI="Chromium",nS="Chromecast",nP="Edge",nO="Firefox",nT="Opera",nM="Facebook",nF="Sogou",nR="Mobile ",nN=" Browser",nD="Windows",nU=typeof window!==tU&&window.navigator?window.navigator:void 0,nL=nU&&nU.userAgentData?nU.userAgentData:void 0,nq=function(e,t){var n={},r=t;if(!nQ(t))for(var i in r={},t)for(var a in t[i])r[a]=t[i][a].concat(r[a]?r[a]:[]);for(var o in e)n[o]=r[o]&&r[o].length%2==0?r[o].concat(e[o]):e[o];return n},nW=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},nz=function(e,t){if(typeof e===tN&&e.length>0){for(var n in e)if(nH(t)==nH(e[n]))return!0;return!1}return!!nG(e)&&nH(t)==nH(e)},nQ=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||!!t&&nQ(e[n])},nG=function(e){return typeof e===tD},n$=function(e){if(e){for(var t=[],n=nK(e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=nY(n[r]).split(";v=");t[r]={brand:i[0],version:i[1]}}else t[r]=nY(n[r]);return t}},nH=function(e){return nG(e)?e.toLowerCase():e},n_=function(e){return nG(e)?nJ(/[^\d\.]/g,e).split(".")[0]:void 0},nK=function(e){return nG(e)?nY(nJ(/\\?\"/g,e),500):void 0},nV=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==tN&&2==n.length?this[n[0]]=n[1]:this[n]=void 0}return this},nJ=function(e,t){return nG(t)?t.replace(e,""):t},nY=function(e,t){return e=nJ(/^\s\s*/,String(e)),typeof t===tU?e:e.substring(0,t)},nZ=function(e,t){if(e&&t)for(var n,r,i,a,o,s,l=0;l<t.length&&!o;){var c=t[l],u=t[l+1];for(n=r=0;n<c.length&&!o&&c[n];)if(o=c[n++].exec(e))for(i=0;i<u.length;i++)s=o[++r],typeof(a=u[i])===tN&&a.length>0?2===a.length?typeof a[1]==tR?this[a[0]]=a[1].call(this,s):this[a[0]]=a[1]:a.length>=3&&(typeof a[1]!==tR||a[1].exec&&a[1].test?3==a.length?this[a[0]]=s?s.replace(a[1],a[2]):void 0:4==a.length?this[a[0]]=s?a[3].call(this,s.replace(a[1],a[2])):void 0:a.length>4&&(this[a[0]]=s?a[3].apply(this,[s.replace(a[1],a[2])].concat(a.slice(4))):void 0):a.length>3?this[a[0]]=s?a[1].apply(this,a.slice(2)):void 0:this[a[0]]=s?a[1].call(this,s,a[2]):void 0):this[a]=s||void 0;l+=2}},nX=function(e,t){for(var n in t)if(typeof t[n]===tN&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(nz(t[n][r],e))return"?"===n?void 0:n}else if(nz(t[n],e))return"?"===n?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},n0={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},n1={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},n6={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},n5={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[tH,[tQ,nR+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[tH,[tQ,nP+" WebView"],[tG,t6]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[tH,[tQ,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[tQ,tH],[/opios[\/ ]+([\w\.]+)/i],[tH,[tQ,nT+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[tH,[tQ,nT+" GX"]],[/\bopr\/([\w\.]+)/i],[tH,[tQ,nT]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[tH,[tQ,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[tH,[tQ,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[tQ,tH],[/quark(?:pc)?\/([-\w\.]+)/i],[tH,[tQ,"Quark"]],[/\bddg\/([\w\.]+)/i],[tH,[tQ,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb| ucpc)[\/ ]?([\w\.]+)/i],[tH,[tQ,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[tH,[tQ,"WeChat"]],[/konqueror\/([\w\.]+)/i],[tH,[tQ,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[tH,[tQ,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[tH,[tQ,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[tH,[tQ,"Smart "+nm+nN]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[tQ,/(.+)/,"$1 Secure"+nN],tH],[/norton\/([\w\.]+)/i],[tH,[tQ,"Norton Private"+nN]],[/\bfocus\/([\w\.]+)/i],[tH,[tQ,nO+" Focus"]],[/ mms\/([\w\.]+)$/i],[tH,[tQ,nT+" Neon"]],[/ opt\/([\w\.]+)$/i],[tH,[tQ,nT+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[tH,[tQ,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[tH,[tQ,"Dolphin"]],[/coast\/([\w\.]+)/i],[tH,[tQ,nT+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[tH,[tQ,"MIUI"+nN]],[/fxios\/([\w\.-]+)/i],[tH,[tQ,nR+nO]],[/\bqihoobrowser\/?([\w\.]*)/i],[tH,[tQ,"360"]],[/\b(qq)\/([\w\.]+)/i],[[tQ,/(.+)/,"$1Browser"],tH],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[tQ,/(.+)/,"$1"+nN],tH],[/ HBPC\/([\w\.]+)/],[tH,[tQ,np+nN]],[/samsungbrowser\/([\w\.]+)/i],[tH,[tQ,nx+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[tH,[tQ,nF+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[tQ,nF+" Mobile"],tH],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[tQ,tH],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[tQ],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[tH,tQ],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[tQ,nM],tH,[tG,t6]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[tQ,tH,[tG,t6]],[/\bgsa\/([\w\.]+) .*safari\//i],[tH,[tQ,"GSA"],[tG,t6]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[tH,[tQ,"TikTok"],[tG,t6]],[/\[(linkedin)app\]/i],[tQ,[tG,t6]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[tQ,/(.+)/,"Zalo"],tH,[tG,t6]],[/(chromium)[\/ ]([-\w\.]+)/i],[tQ,tH],[/ome-(lighthouse)$/i],[tQ,[tG,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[tH,[tQ,nB+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[tH,[tQ,nP+" WebView2"],[tG,t6]],[/; wv\).+(chrome)\/([\w\.]+)/i],[[tQ,nB+" WebView"],tH,[tG,t6]],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[tH,[tQ,"Android"+nN]],[/chrome\/([\w\.]+) mobile/i],[tH,[tQ,nR+"Chrome"]],[/(chrome|omniweb|arora|[t
1610izenoka]{5} ?browser)\/v?([\w\.]+)/i],[tQ,tH],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[tH,[tQ,nR+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[tQ,nR+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[tH,tQ],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[tQ,[tH,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[tQ,tH],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[tQ,nR+nO],tH],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[tQ,"Netscape"],tH],[/(wolvic|librewolf)\/([\w\.]+)/i],[tQ,tH],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[tH,[tQ,nO+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[tQ,[tH,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[tQ,[tH,/[^\d\.]+./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[t_,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[t_,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[t_,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[t_,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[t_,"arm"]],[/ sun4\w[;\)]/i],[[t_,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[t_,/ower/,"",nH]],[/mc680.0/i],[[t_,"68k"]],[/winnt.+\[axp/i],[[t_,"alpha"]]],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],[tV,[t$,nx],[tG,tZ]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[tV,[t$,nx],[tG,tY]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[tV,[t$,nu],[tG,tY]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[tV,[t$,nu],[tG,tZ]],[/(macintosh);/i],[tV,[t$,nu]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[tV,[t$,nA],[tG,tY]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[tV,[t$,nb],[tG,tZ]],[/honor([-\w ]+)[;\)]/i],[tV,[t$,nb],[tG,tY]],[/\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],[tV,[t$,np],[tG,tZ]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[tV,[t$,np],[tG,tY]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[tV,/_/g," "],[t$,nk],[tG,tZ]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/; ([\w ]+) miui\/v?\d/i],[[tV,/_/g," "],[t$,nk],[tG,tY]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[tV,[t$,nv],[tG,tY]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[tV,[t$,nC],[tG,tY]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[tV,[t$,nX,{OnePlus:["203","304","403","404","413","415"],"*":nC}],[tG,tZ]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[tV,[t$,"BLU"],[tG,tY]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[tV,[t$,"Vivo"],[tG,tY]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[tV,[t$,"Realme"],[tG,tY]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?: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],[tV,[t$,nm],[tG,tZ]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[tV,[t$,nm],[tG,tY]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[tV,[t$,nw],[tG,tY]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[tV,[t$,nw],[tG,tZ]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[tV,[t$,"LG"],[tG,tZ]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[tV,[t$,"LG"],[tG,tY]],[/(nokia) (t[12][01])/i],[t$,tV,[tG,tZ]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[tV,/_/g," "],[tG,tY],[t$,"Nokia"]],[/(pixel (c|tablet))\b/i],[tV,[t$,nh],[tG,tZ]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[tV,[t$,nh],[tG,tY]],[/(google) (pixelbook( go)?)/i],[t$,tV],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[tV,[t$,nE],[tG,tY]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[tV,"Xperia Tablet"],[t$,nE],[tG,tZ]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[tV,[t$,nc],[tG,tZ]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[tV,/(.+)
vendor: 4,747 bytes, line 1610
1610/g,"Fire Phone $1"],[t$,nc],[tG,tY]],[/(playbook);[-\w\),; ]+(rim)/i],[tV,t$,[tG,tZ]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[tV,[t$,nf],[tG,tY]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[tV,[t$,nd],[tG,tZ]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[tV,[t$,nd],[tG,tY]],[/(nexus 9)/i],[tV,[t$,"HTC"],[tG,tZ]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[t$,[tV,/_/g," "],[tG,tY]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[tV,[t$,"TCL"],[tG,tZ]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[tV,[t$,"TCL"],[tG,tY]],[/(itel) ((\w+))/i],[[t$,nH],tV,[tG,nX,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[tV,[t$,"Acer"],[tG,tZ]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[tV,[t$,"Meizu"],[tG,tY]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[tV,[t$,"Ulefone"],[tG,tY]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[tV,[t$,"Energizer"],[tG,tY]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[tV,[t$,"Cat"],[tG,tY]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[tV,[t$,"Smartfren"],[tG,tY]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[tV,[t$,"Nothing"],[tG,tY]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[tV,[t$,"Archos"],[tG,tZ]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[tV,[t$,"Archos"],[tG,tY]],[/blackview ([-\w ]+)( b|\))/i,/; (bv\d{4}[-\w ]*)( b|\))/i],[tV,[t$,"Blackview"],[tG,tY]],[/; (n159v)/i],[tV,[t$,"HMD"],[tG,tY]],[/((revvl[ \w\+]+|tm(?:rv|af)\w*[45]g(?:tb)?))( b|\))/i],[tV,[tG,function(e,t){return t.test.test(e)?t.ifTrue:t.ifFalse},{test:/ta?b/i,ifTrue:tZ,ifFalse:tY}],[t$,"T-Mobile"]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[t$,tV,[tG,tZ]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|coolpad|cubot|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([-\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[t$,tV,[tG,tY]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[t$,tV,[tG,tZ]],[/(surface duo)/i],[tV,[t$,ng],[tG,tZ]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[tV,[t$,"Fairphone"],[tG,tY]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[tV,[t$,ny],[tG,tZ]],[/(sprint) (\w+)/i],[t$,tV,[tG,tY]],[/(kin\.[onetw]{3})/i],[[tV,/\./g," "],[t$,ng],[tG,tY]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[tV,[t$,nj],[tG,tZ]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[tV,[t$,nj],[tG,tY]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[t$,[tG,tX]],[/hbbtv.+maple;(\d+)/i],[[tV,/^/,"SmartTV"],[t$,nx],[tG,tX]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[t$,tV,[tG,tX]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[t$,"LG"],[tG,tX]],[/(apple) ?tv/i],[t$,[tV,nu+" TV"],[tG,tX]],[/crkey.*devicetype\/chromecast/i],[[tV,nS+" Third Generation"],[t$,nh],[tG,tX]],[/crkey.*devicetype\/([^/]*)/i],[[tV,/^/,"Chromecast "],[t$,nh],[tG,tX]],[/fuchsia.*crkey/i],[[tV,nS+" Nest Hub"],[t$,nh],[tG,tX]],[/crkey/i],[[tV,nS],[t$,nh],[tG,tX]],[/(portaltv)/i],[tV,[t$,nM],[tG,tX]],[/droid.+aft(\w+)( bui|\))/i],[tV,[t$,nc],[tG,tX]],[/(shield \w+ tv)/i],[tV,[t$,ny],[tG,tX]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[tV,[t$,nA],[tG,tX]],[/(bravia[\w ]+)( bui|\))/i],[tV,[t$,nE],[tG,tX]],[/(mi(tv|box)-?\w+) bui/i],[tV,[t$,nk],[tG,tX]],[/Hbbtv.*(technisat) (.*);/i],[t$,tV,[tG,tX]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[t$,/.+\/(\w+)/,"$1",nX,{LG:"lge"}],[tV,nY],[tG,tX]],[/(playstation \w+)/i],[tV,[t$,nE],[tG,tJ]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[tV,[t$,ng],[tG,tJ]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[t$,nX,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],tV,[tG,tJ]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[tV,[t$,nx],[tG,t0]],[/((pebble))app/i,/(asu
1610s|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[t$,tV,[tG,t0]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[tV,[t$,nC],[tG,t0]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[tV,[t$,nu],[tG,t0]],[/(opwwe\d{3})/i],[tV,[t$,nv],[tG,t0]],[/(moto 360)/i],[tV,[t$,nw],[tG,t0]],[/(smartwatch 3)/i],[tV,[t$,nE],[tG,t0]],[/(g watch r)/i],[tV,[t$,"LG"],[tG,t0]],[/droid.+; (wt63?0{2,3})\)/i],[tV,[t$,nj],[tG,t0]],[/droid.+; (glass) \d/i],[tV,[t$,nh],[tG,"xr"]],[/(pico) ([\w ]+) os\d/i],[t$,tV,[tG,"xr"]],[/(quest( \d| pro)?s?).+vr/i],[tV,[t$,nM],[tG,"xr"]],[/mobile vr; rv.+firefox/i],[[tG,"xr"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[t$,[tG,t1]],[/(aeobc)\b/i],[tV,[t$,nc],[tG,t1]],[/(homepod).+mac os/i],[tV,[t$,nu],[tG,t1]],[/windows iot/i],[[tG,t1]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[tV,[tG,tX]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[tG,tX]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[tV,[tG,nX,{mobile:"Mobile",xr:"VR","*":tZ}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[tG,tZ]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[tG,tY]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[tV,[t$,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[tH,[tQ,nP+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[tQ,tH],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[tH,[tQ,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[tQ,tH],[/ladybird\//i],[[tQ,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[tH,tQ]],os:[[/(windows nt) (6\.[23]); arm/i],[[tQ,/N/,"R"],[tH,nX,n0]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[tQ,tH],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[tH,/(;|\))/g,"",nX,n0],[tQ,nD]],[/(windows ce)\/?([\d\.]*)/i],[tQ,tH],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[tH,/_/g,"."],[tQ,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[tQ,"macOS"],[tH,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[tH,[tQ,nS+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[tH,[tQ,nS+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[tH,[tQ,nS+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[tH,[tQ,nS+" Linux"]],[/crkey\/([\d\.]+)/i],[tH,[tQ,nS]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[tH,tQ],[/(ubuntu) ([\w\.]+) like android/i],[[tQ,/(.+)/,"$1 Touch"],tH],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[tQ,tH],[/\(bb(10);/i],[tH,[tQ,nf]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[tH,[tQ,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[tH,[tQ,nO+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[tH,[tQ,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[tH,nX,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[tQ,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[tH,[tQ,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[tH,[tQ,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[tH,[tQ,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[tQ,tH],[/(sunos) ?([\d\.]*)/i],[[tQ,"Solaris"],tH],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[tQ,tH]]},n2=(k={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},nV.call(k.init,[[tL,[tQ,tH,tK,tG]],["cpu",[t_]],[tq,[tG,tV,t$]],[tW,[tQ,tH]],["os",[tQ,tH]]]),nV.call(k.isIgnore,[[tL,[tH,tK]],[tW,[tH]],["os",[tH]]]),nV.call(k.isIgnoreRgx,[[tL,/ ?browser$/i],["os",/ ?os$/i]]),nV.call(k.toString,[[tL,[tQ,tH]],["cpu",[t_]],[tq,[t$,tV]],[tW,[tQ,tH]],["os",[tQ,tH]]]),k),n3=function(e,t){var n=n2.init[t],r=n2.isIgnore[t]||0,i=n2.isIgnoreRgx[t]||0,a=n2.toString[t]||0;function o(){nV.call(this,n)}return o.prototype.getItem=function(){return e},o.prototype.withClientHints=function(){return nL?nL.getHighEntropyValues(nl).then(function(t){return e.setCH(new n8(t,!1)).parseCH().get()}):e.parseCH().get()}
1610,o.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=tz&&(o.prototype.is=function(e){var t=!1;for(var n in this)if(this.hasOwnProperty(n)&&!nz(r,n)&&nH(i?nJ(i,this[n]):this[n])==nH(i?nJ(i,e):e)){if(t=!0,e!=tU)break}else if(e==tU&&t){t=!t;break}return t},o.prototype.toString=function(){var e="";for(var t in a)typeof this[a[t]]!==tU&&(e+=(e?" ":"")+this[a[t]]);return e||tU}),o.prototype.then=function(e){var t=this,n=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};n.prototype={is:o.prototype.is,toString:o.prototype.toString,withClientHints:o.prototype.withClientHints,withFeatureCheck:o.prototype.withFeatureCheck};var r=new n;return e(r),r},new o};function n8(e,t){if(e=e||{},nV.call(this,nl),t)nV.call(this,[[t5,n$(e[t9])],[t3,n$(e[ne])],[tY,/\?1/.test(e[ni])],[tV,nK(e[na])],[t8,nK(e[no])],[t7,nK(e[ns])],[t_,nK(e[nt])],[t2,n$(e[nr])],[t4,nK(e[nn])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==tU&&(this[n]=e[n])}function n7(e,t,n,r){return nV.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",n3(this,e)]]),this}function n4(e,t,n){if(typeof e===tN?(nQ(e,!0)?(typeof t===tN&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e!==tD||nQ(t,!0)||(n=t,t=void 0),n)if(typeof n.append===tR){var r={};n.forEach(function(e,t){r[String(t).toLowerCase()]=e}),n=r}else{var i={};for(var a in n)n.hasOwnProperty(a)&&(i[String(a).toLowerCase()]=n[a]);n=i}if(!(this instanceof n4))return new n4(e,t,n).getResult();var o=typeof e===tD?e:n&&n[tF]?n[tF]:nU&&nU.userAgent?nU.userAgent:"",s=new n8(n,!0),l=n5,c=function(e){return e==tz?function(){return new n7(e,o,l,s).set("ua",o).set(tL,this.getBrowser()).set("cpu",this.getCPU()).set(tq,this.getDevice()).set(tW,this.getEngine()).set("os",this.getOS()).get()}:function(){return new n7(e,o,l[e],s).parseUA().get()}};return nV.call(this,[["getBrowser",c(tL)],["getCPU",c("cpu")],["getDevice",c(tq)],["getEngine",c(tW)],["getOS",c("os")],["getResult",c(tz)],["getUA",function(){return o}],["setUA",function(e){return nG(e)&&(o=nY(e,500)),this}],["useExtension",function(e){return e&&(l=nq(l,e)),this}]]).setUA(o).useExtension(t),this}n7.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},n7.prototype.set=function(e,t){return this.data[e]=t,this},n7.prototype.setCH=function(e){return this.uaCH=e,this},n7.prototype.detectFeature=function(){if(nU&&nU.userAgent==this.ua)switch(this.itemType){case tL:nU.brave&&typeof nU.brave.isBrave==tR&&this.set(tQ,"Brave");break;case tq:!this.get(tG)&&nL&&nL[tY]&&this.set(tG,tY),"Macintosh"==this.get(tV)&&nU&&typeof nU.standalone!==tU&&nU.maxTouchPoints&&nU.maxTouchPoints>2&&this.set(tV,"iPad").set(tG,tZ);break;case"os":!this.get(tQ)&&nL&&nL[t8]&&this.set(tQ,nL[t8]);break;case tz:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(tL,t(tL)).set("cpu",t("cpu")).set(tq,t(tq)).set(tW,t(tW)).set("os",t("os"))}return this},n7.prototype.parseUA=function(){switch(this.itemType!=tz&&nZ.call(this.data,this.ua,this.rgxMap),this.itemType){case tL:this.set(tK,n_(this.get(tH)));break;case"os":if("iOS"==this.get(tQ)&&this.get(tH)&&/^1[89][^\d]/.exec(this.get(tH))){var e=/\) Version\/((\d+)[\d\.]*)/.exec(this.ua);e&&parseInt(e[2],10)>=26&&this.set(tH,e[1])}}return this},n7.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case tL:case tW:var n,r=e[t3]||e[t5];if(r)for(var i=0;i<r.length;i++){var a=r[i].brand||r[i],o=r[i].version;this.itemType==tL&&!/not.a.brand/i.test(a)&&(!n||/Chrom/.test(n)&&a!=nI||n==nP&&/WebView2/.test(a))&&(a=nX(a,n6),(n=this.get(tQ))&&!/Chrom/.test(n)&&/Chrom/.test(a)||this.set(tQ,a).set(tH,o).set(tK,n_(o)),n=a),this.itemType==tW&&a==nI&&this.set(tH,o)}break;case"cpu":var s=e[t_];s&&(s&&"64"==e[t4]&&(s+="64"),nZ.call(this.data,s+";",t));break;case tq:if(e[tY]&&this.set(tG,tY),e[tV]&&(this.set(tV,e[tV]),!this.get(tG)||!this.get(t$))){var l,c={};nZ.call(c,"droid 9; "+e[tV]+")",t),!this.get(tG)&&c.type&&this.set(tG,c.type),!this.get(t$)&&c.vendor&&this.set(t$,c.vendor)}if(e[t2]){if("string"!=typeof e[t2])for(var u=0;!l&&u<e[t2].length;)l=nX(e[t2][u++],n1);else l=nX(e[t2],n1);this.set(tG,l)}
1610break;case"os":var d=e[t8];if(d){var f=e[t7];d==nD&&(f=parseInt(n_(f),10)>=13?"11":"10"),this.set(tQ,d).set(tH,f)}this.get(tQ)==nD&&"Xbox"==e[tV]&&this.set(tQ,"Xbox").set(tH,void 0);break;case tz:var h=this.data,p=function(t){return h[t].getItem().setCH(e).parseCH().get()};this.set(tL,p(tL)).set("cpu",p("cpu")).set(tq,p(tq)).set(tW,p(tW)).set("os",p("os"))}return this},n4.VERSION="2.0.10",n4.BROWSER=nW([tQ,tH,tK,tG]),n4.CPU=nW([t_]),n4.DEVICE=nW([tV,t$,tG,tJ,tY,tX,tZ,t0,t1]),n4.ENGINE=n4.OS=nW([tQ,tH]);var n9=n(18912),re=n(71613),rt=n(12932);async function rn(e,t){let{addEthereumChainParameter:n,chainId:r}=t,i=e.state.connections.get(t.connector?.uid??e.state.current);if(i){let e=i.connector;if(!e.switchChain)throw new rt.V({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let a=e.chains.find(e=>e.id===r);if(!a)throw new tO.nk;return e.setState(e=>({...e,chainId:r})),a}let rr=[];function ri(e){let t=e.chains;return(0,eV.b)(rr,t)?rr:(rr=t,t)}var ra=n(37876);function ro(e,t){return e.toString(2).padStart(t,"0")}function rs(e,t){let n=e%t;return n>=0?n:t+n}function rl(e,t){return Array(e).fill(t)}function rc(e){return e-=e>>>1&0x55555555,((e=(0x33333333&e)+(e>>>2&0x33333333))+(e>>>4)&0xf0f0f0f)*0x1010101>>>24}function ru(e){let t=0,n=0;for(let r of e)t=Math.max(t,r.length),n+=r.length;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++)for(let t of e)n<t.length&&(r[i++]=t[n]);return r}function rd(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(!Number.isSafeInteger(t))throw Error(`integer expected: ${t}`);if(t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}}}function rf(e){if(32!==e.length)throw Error("expects 32 element matrix");let t=[0x55555555,0x33333333,0xf0f0f0f,0xff00ff,65535];for(let n=0;n<5;n++){let r=t[n]>>>0,i=1<<n,a=i<<1;for(let t=0;t<32;t+=a)for(let n=0;n<i;n++){let a=t+n,o=a+i,s=e[a]>>>0,l=e[o]>>>0,c=(s>>>i^l)&r;e[a]=(s^c<<i)>>>0,e[o]=(l^c)>>>0}}}let rh=e=>1<<(31&e)>>>0,rp=(e,t)=>0===t?0:32===t?0xffffffff:(1<<t)-1<<e>>>0;class rm{static size(e,t){if("number"==typeof e&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return void 0!==t&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(e){let t,n=(e=e.replace(/^\n+/g,"").replace(/\n+$/g,"")).split("\n"),r=n.length,i=[];for(let e of n){let n=e.split("").map(e=>{if("X"===e)return!0;if(" "===e)return!1;if("?"!==e)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(void 0!==t&&n.length!==t)throw Error(`Bitmap.fromString different row sizes: width=${t} cur=${n.length}`);t=n.length,i.push(n)}return void 0===t&&(t=0),new rm({height:r,width:t},i)}defined;value;tailMask;words;fullWords;height;width;constructor(e,t){const{height:n,width:r}=rm.size(e);if(this.height=n,this.width=r,this.tailMask=rp(0,31&r||32),this.words=0|Math.ceil(r/32),this.fullWords=0|Math.floor(r/32),this.value=new Uint32Array(this.words*n),this.defined=new Uint32Array(this.value.length),t){if(t.length!==n)throw Error(`Bitmap: data height mismatch: exp=${n} got=${t.length}`);for(let e=0;e<n;e++){const n=t[e];if(!n||n.length!==r)throw Error(`Bitmap: data width mismatch at y=${e}: exp=${r} got=${n?.length}`);for(let t=0;t<r;t++)this.set(t,e,n[t])}}}point(e){return this.get(e.x,e.y)}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if("number"==typeof e&&(e={x:e,y:e}
1610),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=rs(e.x,this.width),e.y=rs(e.y,this.height),e}wordIndex(e,t){return t*this.words+(e>>>5)}bitIndex(e,t){return{word:this.wordIndex(e,t),bit:31&e}}isDefined(e,t){let n=this.wordIndex(e,t),r=rh(e);return(this.defined[n]&r)!=0}get(e,t){let n=this.wordIndex(e,t),r=rh(e);return(this.value[n]&r)!=0}maskWord(e,t,n){let{defined:r,value:i}=this;r[e]|=t,i[e]=i[e]&~t|-n&t}set(e,t,n){void 0!==n&&this.maskWord(this.wordIndex(e,t),rh(e),n)}fillRectConst(e,t,n,r,i){if(n<=0||r<=0||void 0===i)return;let{value:a,defined:o,words:s}=this,l=e>>>5,c=e+n-1>>>5,u=31&e,d=e+n-1&31;for(let e=0;e<r;e++){let n=(t+e)*s;if(l===c){let e=rp(u,d-u+1);this.maskWord(n+l,e,i);continue}this.maskWord(n+l,rp(u,32-u),i);for(let e=l+1;e<c;e++)o[n+e]=0xffffffff,a[n+e]=0xffffffff*!!i;this.maskWord(n+c,rp(0,d+1),i)}}rectWords(e,t,n,r,i){for(let a=0;a<r;a++){let r=t+a;for(let t=0;t<n;){let o=e+t,{bit:s,word:l}=this.bitIndex(o,r),c=Math.min(32-s,n-t);i(l,o,t,a,c),t+=c}}}rect(e,t,n){let{x:r,y:i}=this.xy(e),{height:a,width:o}=rm.size(t,this.size({x:r,y:i}));if("function"!=typeof n)return this.fillRectConst(r,i,o,a,n),this;let{defined:s,value:l}=this;return this.rectWords(r,i,o,a,(e,t,r,i,a)=>{let o=0,c=l[e];for(let e=0;e<a;e++){let a=rh(t+e),s=n({x:r+e,y:i},(c&a)!=0);void 0!==s&&(o|=a,c=c&~a|-s&a)}s[e]|=o,l[e]=c}),this}rectRead(e,t,n){let{x:r,y:i}=this.xy(e),{height:a,width:o}=rm.size(t,this.size({x:r,y:i})),{value:s}=this;return this.rectWords(r,i,o,a,(e,t,r,i,a)=>{let o=s[e];for(let e=0;e<a;e++){let a=rh(t+e);n({x:r+e,y:i},(o&a)!=0)}}),this}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(e=2,t){let n=new rm({height:this.height+2*e,width:this.width+2*e});return n.rect(0,1/0,t),n.embed({x:e,y:e},this),n}embed(e,t){let{x:n,y:r}=this.xy(e),{height:i,width:a}=rm.size(t.size(),this.size({x:n,y:r}));if(a<=0||i<=0)return this;let{value:o,defined:s}=this,{words:l,value:c}=t;for(let e=0;e<i;e++){let i=e*l;for(let u=0;u<a;){let d=n+u,{word:f,bit:h}=this.bitIndex(d,r+e),{word:p,bit:m}=t.bitIndex(u,e),b=Math.min(32-h,a-u),g=c[p],w=m&&p+1<i+l?c[p+1]:0,y=m?(g>>>m|w<<32-m)>>>0:g,v=rp(h,b),C=(y&rp(0,b))<<h>>>0;s[f]|=v,o[f]=o[f]&~v|C,u+=b}}return this}rectSlice(e,t=this.size()){let{x:n,y:r}=this.xy(e),{height:i,width:a}=rm.size(t,this.size({x:n,y:r})),o=new rm({height:i,width:a});return this.rectRead({x:n,y:r},{height:i,width:a},(e,t)=>{this.isDefined(n+e.x,r+e.y)&&o.set(e.x,e.y,t)}),o}transpose(){let{height:e,width:t,value:n,defined:r,words:i}=this,a=new rm({height:t,width:e}),{words:o,value:s,defined:l,tailMask:c}=a,u=new Uint32Array(32),d=new Uint32Array(32);for(let f=0;f<e;f+=32)for(let h=0;h<i;h++){let i=Math.min(32,e-f);for(let e=0;e<i;e++){let t=this.wordIndex(32*h,f+e);u[e]=n[t],d[e]=r[t]}u.fill(0,i),d.fill(0,i),rf(u),rf(d);for(let e=0;e<32;e++){let n=32*h+e;if(n>=t)break;let r=a.wordIndex(f,n),i=f>>>5==o-1?c:0xffffffff;s[r]=u[e]&i,l[r]=d[e]&i}}return a}negate(){let e=this.defined.length;for(let t=0;t<e;t++)this.value[t]=~this.value[t],this.defined[t]=0xffffffff;return this}scale(e){if(!Number.isSafeInteger(e)||e>1024)throw Error(`invalid scale factor: ${e}`);let{height:t,width:n}=this;return new rm({height:e*t,width:e*n}).rect({x:0,y:0},1/0,({x:t,y:n})=>this.get(t/e|0,n/e|0))}clone(){let e=new rm(this.size());return e.defined.set(this.defined),e.value.set(this.value),e}assertDrawn(){let{height:e,width:t,defined:n,tailMask:r,fullWords:i,words:a}=this;if(e&&t)for(let t=0;t<e;t++){let e=t*a;for(let t=0;t<i;t++)if(0xffffffff!==n[e+t])throw Error("Invalid color type=undefined");if(a!==i&&(n[e+i]&r)!==r)throw Error("Invalid color type=undefined")}}countPatternInRow(e,t,...n){if(t<=0||t>=32)throw Error("wrong patternLen");let r=(1<<t)-1,{width:i,value:a,words:o}=this,s=0,l=this.wordIndex(0,e);for(let e=0,c=0;e<o;e++){let u=a[l+e],d=e===o-1&&31&i||32;for(let i=0;i<d;i++)if(c=(c<<1|u>>>i&1)&r,!(32*e+i+1<t)){for(let e of n)if(c===e){s++;break}}}return s}getRuns(e,t){let n,{width:r,value:i,words:a}=this;if(0===r)return;let o=0,s=this.wordIndex(0,e);for(let e=0;e<a;e++){let l=i[s+e],c=e===a-1&&31&r||32;for(let e=0;e<c;e++){let r=(l&1<<e)!=0;if(r===n){o++;continue}void 0!==n&&t(o,n),n=r,o=1}}void 0!==n&&t(o,n)}popcnt(){let{height:e,width:t,words:n,fullWords:r,tailMask:i}=this;if(!e||!t)return 0;let a=0;for(let t=0;t<e;t++){let e=t*n;for(let t=0;t<r;t++)a+=rc(this.value[e+t]);n!==r&&(a+=rc(this.value[e+r]&i))}return a}countBoxes2x2(e){let{width:t,words:n}=this;if(t<2||(0|e)<0||e+1>=this.height)return 0;let r=0|this.wordIndex(0,e),i=0|this.wordIndex(0,e+1),a=0==(31&t)?0x7fffffff:rp(0,t-1&31),o=0;for(let e=0;e<n;e++){let t=this.value[r+e],s=this.value[i+e],l=(~(t^s)>>>0&~(t^(t>>>1|(1&(e+1<n?this.value[r+e+1]>>>0:0))<<31)>>>0)>>>0&~(s^(s>>>1|(1&(e+1<n?this.value[i+e+1]>>>0:0))<<31)>>>0)>>>0)>>>0;e===n-1&&(l&=a),o+=rc(l)}return o}toString(){let e="";for(let t=0;t<this.height;t++){let n="";for(let e=0;e<this.width;e++){let r=this.get(e,t);n+=this.isDefined(e,t)?r?"X":" ":"?"}e+=n+(t+1===this.height?"":"\n")}return e}toRaw(){let e=Array.from({length:this.height}
1610,()=>Array(this.width));for(let t=0;t<this.height;t++){let n=e[t];for(let e=0;e<this.width;e++)n[e]=this.get(e,t)}return e}toASCII(){let{height:e,width:t}=this,n="";for(let r=0;r<e;r+=2){for(let i=0;i<t;i++){let t=this.get(i,r),a=r+1>=e||this.get(i,r+1);t||a?!t&&a?n+="▀":t&&!a?n+="▄":t&&a&&(n+=" "):n+="█"}n+="\n"}return n}toTerm(){let e="\x1b[0m",t="\x1b[1;47m  "+e,n="\x1b[40m  "+e,r="";for(let e=0;e<this.height;e++){for(let i=0;i<this.width;i++)r+=this.get(i,e)?n:t;r+="\n"}return r}toSVG(e=!0){let t,n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="";return this.rectRead(0,1/0,(i,a)=>{if(!a)return;let{x:o,y:s}=i;if(!e){n+=`<rect x="${o}" y="${s}" width="1" height="1" />`;return}let l=`M${o} ${s}`;if(t){let e=`m${o-t.x} ${s-t.y}`;e.length<=l.length&&(l=e)}let c=o<10?`H${o}`:"h-1";r+=`${l}h1v1${c}Z`,t=i}),e&&(n+=`<path d="${r}"/>`),n+="</svg>"}toGIF(){let e=e=>[255&e,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(!0===t)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...rl(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(126*i).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let a=0;a<t;a++)for(let t=0;t<n;t++){let n=255*!this.get(t,a);r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}}let rb=["low","medium","quartile","high"],rg=["numeric","alphanumeric","byte","kanji","eci"],rw=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],ry={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},rv={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},rC={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(1===e)return[];let t=rC.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let a=[6];for(let e=1;e<r;e++)a.push(t-(r-e)*i);return a.push(t),a},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=rC.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^rC.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:rd("0123456789"),alphanumerc:rd("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")},lengthBits:(e,t)=>({numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]})[t][rC.sizeType(e)],modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){let n=rw[e-1],r=ry[t][e-1],i=rv[t][e-1],a=Math.floor(n/i)-r,o=i-n%i;return{words:r,numBlocks:i,shortBlocks:o,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-o}}},rx=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],rA={tables:(()=>{let e=rl(256,0),t=rl(256,0);for(let n=0,r=1;n<256;n++)e[n]=r,t[r]=n,256&(r<<=1)&&(r^=285);return{exp:e,log:t}})(),exp:e=>rA.tables.exp[e],log(e){if(0===e)throw Error(`GF.log: invalid arg=${e}`);return rA.tables.log[e]%255},mul:(e,t)=>
16100===e||0===t?0:rA.tables.exp[(rA.tables.log[e]+rA.tables.log[t])%255],add:(e,t)=>e^t,pow:(e,t)=>rA.tables.exp[rA.tables.log[e]*t%255],inv(e){if(0===e)throw Error(`GF.inverse: invalid arg=${e}`);return rA.tables.exp[255-rA.tables.log[e]]},polynomial(e){if(0==e.length)throw Error("GF.polymomial: invalid length");if(0!==e[0])return e;let t=0;for(;t<e.length-1&&0==e[t];t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(0==t)return[0];let n=rl(e+1,0);return n[0]=t,rA.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[rA.degree(e)-t],mulPoly(e,t){if(0===e[0]||0===t[0])return[0];let n=rl(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=rA.add(n[r+i],rA.mul(e[r],t[i]));return rA.polynomial(n)},mulPolyScalar(e,t){if(0==t)return[0];if(1==t)return e;let n=rl(e.length,0);for(let r=0;r<e.length;r++)n[r]=rA.mul(e[r],t);return rA.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error("GF.mulPolyMonomial: invalid degree");if(0==n)return[0];let r=rl(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=rA.mul(e[t],n);return rA.polynomial(r)},addPoly(e,t){if(0===e[0])return t;if(0===t[0])return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=rl(r.length,0),a=r.length-n.length,o=r.slice(0,a);for(let e=0;e<o.length;e++)i[e]=o[e];for(let e=a;e<r.length;e++)i[e]=rA.add(n[e-a],r[e]);return rA.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(0!==e)for(let i=1;i<t.length;i++)0!==t[i]&&(n[r+i]=rA.add(n[r+i],rA.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=rA.mulPoly(t,[1,rA.pow(2,n)]);return t},evalPoly(e,t){if(0==t)return rA.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=rA.add(rA.mul(t,n),e[r]);return n},euclidian(e,t,n){rA.degree(e)<rA.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],o=[1];for(;2*rA.degree(i)>=n;){let e=r,t=a;if(r=i,a=o,0===r[0])throw Error("rLast[0] === 0");i=e;let n=[0],s=rA.inv(r[0]);for(;rA.degree(i)>=rA.degree(r)&&0!==i[0];){let e=rA.degree(i)-rA.degree(r),t=rA.mul(i[0],s);n=rA.addPoly(n,rA.monomial(e,t)),i=rA.addPoly(i,rA.mulPolyMonomial(r,e,t))}if(n=rA.mulPoly(n,a),o=rA.addPoly(n,t),rA.degree(i)>=rA.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let s=rA.coefficient(o,0);if(0==s)throw Error("sigmaTilde(0) was zero");let l=rA.inv(s);return[rA.mulPolyScalar(o,l),rA.mulPolyScalar(i,l)]}};function rE(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function rk(e,t,n,r,i=rE){let a="",o=n.length;if("numeric"===r){let e=rC.alphabet.numeric.decode(n.split("")),t=e.length;for(let n=0;n<t-2;n+=3)a+=ro(100*e[n]+10*e[n+1]+e[n+2],10);t%3==1?a+=ro(e[t-1],4):t%3==2&&(a+=ro(10*e[t-2]+e[t-1],7))}else if("alphanumeric"===r){let e=rC.alphabet.alphanumerc.decode(n.split("")),t=e.length;for(let n=0;n<t-1;n+=2)a+=ro(45*e[n]+e[n+1],11);t%2==1&&(a+=ro(e[t-1],6))}else if("byte"===r){let e=i(n);o=e.length,a=Array.from(e).map(e=>ro(e,8)).join("")}else throw Error("encode: unsupported type");let{capacity:s}=rC.capacity(e,t),l=ro(o,rC.lengthBits(e,r)),c=rC.modeBits[r]+l+a;if(c.length>s)throw Error("Capacity overflow");(c+="0".repeat(Math.min(4,Math.max(0,s-c.length)))).length%8&&(c+="0".repeat(8-c.length%8));let u="1110110000010001";for(let e=0;c.length!==s;e++)c+=u[e%u.length];let d=Uint8Array.from(c.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return(function(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:o}=rC.capacity(e,t),s={encode(e){let t=rA.divisorPoly(n),r=Array.from(e);return r.push(...t.slice(0,-1).fill(0)),Uint8Array.from(rA.remainderPoly(r,t))},decode(e){let t=e.slice(),r=rA.polynomial(Array.from(e)),i=rl(n,0),a=!1;for(let e=0;e<n;e++){let t=rA.evalPoly(r,rA.exp(e));i[i.length-1-e]=t,0!==t&&(a=!0)}if(!a)return t;i=rA.polynomial(i);let o=rA.monomial(n,1),[s,l]=rA.euclidian(o,i,n),c=rl(rA.degree(s),0),u=0;for(let e=1;e<256&&u<c.length;e++)0===rA.evalPoly(s,e)&&(c[u++]=rA.inv(e));if(u!==c.length)throw Error("RS.decode: invalid errors number");for(let e=0;e<c.length;e++){let n=t.length-1-rA.log(c[e]);if(n<0)throw Error("RS.decode: invalid error location");let r=rA.inv(c[e]),i=1;for(let t=0;t<c.length;t++)e!==t&&(i=rA.mul(i,rA.add(1,rA.mul(c[t],r))));t[n]=rA.add(t[n],rA.mul(rA.evalPoly(l,r),rA.inv(i)))}return t}};return{encode(e){let t=[],n=[];for(let o=0;o<i;o++){let i=a+ +!(o<r);t.push(e.subarray(0,i)),n.push(s.encode(e.subarray(0,i))),e=e.subarray(i)}let o=ru(t),l=ru(n),c=new Uint8Array(o.length+l.length);return c.set(o),c.set(l,o.length),c},decode(e){if(e.length!==o)throw Error(`interleave.decode: len(data)=${e.length}, total=${o}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+a+ +!i))}let l=0;for(let n=0;n<a;n++)for(let r=0;r<i;r++)t[r][n]=e[l++];for(let n=r;n<i;n++)t[n][a]=e[l++];for(let o=a;o<a+n;o++)for(let n=0;n<i;n++){let i=n<r;t[n][o+ +!i]=e[l++]}let c=[];for(let e of t)c.push(...Array.from(s.decode(e)).slice(0,-n));return Uint8Array.from(c)}}})(e,t).encode(d)}function rj(e,t,n,r,i=!1){let a=function(e,t,n,r=!1){let i=rC.size.encode(e),a=new rm(i+2),o=new rm(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=(a=a.embed(0,o).embed({x:-o.width,y:0},o).embed({x:0,y:-o.height},o)).rectSlice(1,i);let s=new rm(1).rect(0,1,!0).border(1,!1).border(1,!0),l=rC.alignmentPatterns(e);for(let e of l)for(let t of l)a.isDefined(t,e)||a.embed({x:t-2,y:e-2},s);a=a.hLine({x:0,y:6},1/0,({x:e})=>a.isDefined(e,6)?void 0:e%2==0).vLine({x:6,y:0},1/0,({y:e})=>a.isDefined(6,e)?void 0:e%2==0);
1610{let e=rC.formatBits(t,n),o=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)a.set(8,e,o(e));for(let e=6;e<8;e++)a.set(8,e+1,o(e));for(let e=8;e<15;e++)a.set(8,i-15+e,o(e));for(let e=0;e<8;e++)a.set(i-e-1,8,o(e));for(let e=8;e<9;e++)a.set(15-e-1+1,8,o(e));for(let e=9;e<15;e++)a.set(15-e-1,8,o(e));a.set(8,i-8,!r)}if(e>=7){let t=rC.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,o=Math.floor(e/3),s=e%3+i-8-3;a.set(s,o,n),a.set(o,s,n)}}return a}(e,t,r,i),o=0,s=8*n.length;if(!function(e,t,n){let r=e.height,i=rx[t],a=-1,o=r-1;for(let t=r-1;t>0;t-=2){for(6==t&&(t=5);;o+=a){for(let r=0;r<2;r+=1){let a=t-r;e.isDefined(a,o)||n(a,o,i(a,o))}if(o+a<0||o+a>=r)break}a=-a}}(a,r,(e,t,r)=>{let i=!1;o<s&&(i=(n[o>>>3]>>(7-o&7)&1)!=0,o++),a.set(e,t,i!==r)}),o!==s)throw Error("QR: bytes left after draw");return a}let rB=e=>{let t=e.map(e=>e?"1":"0").join("");return{len:t.length,n:Number(`0b${t}`)}},rI=[!0,!1,!0,!0,!0,!1,!0],rS=[!1,!1,!1,!1],rP=rB([...rI,...rS]),rO=rB([...rS,...rI]);function rT(e){let{arena:t,...n}=e;return(0,ra.jsxs)(rT.Root,{...n,children:[(0,ra.jsx)(rT.Finder,{}),(0,ra.jsx)(rT.Cells,{}),t&&(0,ra.jsx)(rT.Arena,{children:"string"==typeof t?(0,ra.jsx)("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}!function(e){function t(t){let{children:n,size:r="100%",value:i,version:a,errorCorrection:o,...s}=t,l=M.useMemo(()=>(M.Children.map(n,e=>M.isValidElement(e)&&"string"!=typeof e.type&&"displayName"in e.type&&"Arena"===e.type.displayName||null)??[]).some(Boolean),[n]),c=M.useMemo(()=>{let e=o;return l&&"low"===o&&(e="medium"),function(e,t={}){let{errorCorrection:n,version:r}=t,i=function(e,t="raw",n={}){let r=void 0!==n.ecc?n.ecc:"medium";if(!rb.includes(r))throw Error(`Invalid error correction mode=${r}. Expected: ${rb}`);let i=void 0!==n.encoding?n.encoding:function(e){let t="numeric";
1610for(let n of e)if(!rC.alphabet.numeric.has(n)&&(t="alphanumeric",!rC.alphabet.alphanumerc.has(n)))return"byte";return t}(e);if(!rg.includes(i))throw Error(`Encoding: invalid mode=${i}. Expected: ${rg}`);if("kanji"===i||"eci"===i)throw Error(`Encoding: ${i} is not supported (yet?).`);void 0!==n.mask&&function(e){if(![0,1,2,3,4,5,6,7].includes(e)||!rx[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}(n.mask);let a=n.version,o,s=Error("Unknown error");if(void 0!==a){var l=a;if(!Number.isSafeInteger(l)||l<1||l>40)throw Error(`Invalid version=${l}. Expected number [1..40]`);o=rk(a,r,e,i,n.textEncoder)}else for(let t=1;t<=40;t++)try{o=rk(t,r,e,i,n.textEncoder),a=t;break}catch(e){s=e}if(!a||!o)throw s;let c=function(e,t,n,r){if(void 0===r){let i,a,o=(a=1/0,{add(e,t){e>=a||(i=t,a=e)},get:()=>i,score:()=>a});for(let r=0;r<rx.length;r++)o.add(function(e){let{width:t,height:n}=e,r=e.transpose(),i=0;for(let t=0;t<n;t++)e.getRuns(t,e=>{e>=5&&(i+=3+(e-5))});for(let e=0;e<t;e++)r.getRuns(e,e=>{e>=5&&(i+=3+(e-5))});let a=0;for(let t=0;t<n-1;t++)a+=3*e.countBoxes2x2(t);let o=0;for(let t=0;t<n;t++)o+=40*e.countPatternInRow(t,rP.len,rP.n,rO.n);for(let e=0;e<t;e++)o+=40*r.countPatternInRow(e,rP.len,rP.n,rO.n);let s=10*Math.floor(Math.abs(e.popcnt()/(n*t)*100-50)/5);return i+a+o+s}(rj(e,t,n,r,!0)),r);r=o.get()}if(void 0===r)throw Error("Cannot find mask");return rj(e,t,n,r)}(a,r,o,n.mask);c.assertDrawn();let u=void 0===n.border?2:n.border;if(!Number.isSafeInteger(u))throw Error(`invalid border type=${typeof u}`);if(c=c.border(u,!1),void 0!==n.scale&&(c=c.scale(n.scale)),"raw"===t)return c.toRaw();if("ascii"===t)return c.toASCII();if("svg"===t)return c.toSVG(n.optimize);if("gif"===t)return c.toGIF();if("term"===t)return c.toTerm();else throw Error(`Unknown output: ${t}`)}(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}(i,{errorCorrection:e,version:a})},[i,l,o,a]),u=+c.edgeLength,d=c.finderLength/2,f=l?Math.floor(u/4):0,h=M.useMemo(()=>({arenaSize:f,cellSize:1,edgeSize:u,qrcode:c,finderSize:d}),[f,u,c,d]);return(0,ra.jsx)(e.Context.Provider,{value:h,children:(0,ra.jsxs)("svg",{...s,width:r,height:r,viewBox:`0 0 ${u} ${u}`,xmlns:"http://www.w3.org/2000/svg",children:[(0,ra.jsx)("title",{children:"QR Code"}),n]})})}function n(t){let{className:n,fill:r,innerClassName:i,radius:a=.25}=t,{cellSize:o,edgeSize:s,finderSize:l}=M.useContext(e.Context);function c({position:e}){let t=l-(l-o)-o/2;"top-right"===e&&(t=s-l-(l-o)-o/2);let u=l-(l-o)-o/2;"bottom-left"===e&&(u=s-l-(l-o)-o/2);let d=l-1.5*o;"top-right"===e&&(d=s-l-1.5*o);let f=l-1.5*o;return"bottom-left"===e&&(f=s-l-1.5*o),(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)("rect",{className:n,stroke:r??"currentColor",fill:"transparent",x:t,y:u,width:o+(l-o)*2,height:o+(l-o)*2,rx:2*a*(l-o),ry:2*a*(l-o),strokeWidth:o}),(0,ra.jsx)("rect",{className:i,fill:r??"currentColor",x:d,y:f,width:3*o,height:3*o,rx:2*a*o,ry:2*a*o})]})}return(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)(c,{position:"top-left"}),(0,ra.jsx)(c,{position:"top-right"}),(0,ra.jsx)(c,{position:"bottom-left"})]})}function r(t){let{className:n,fill:r="currentColor",inset:i=!0,radius:a=1}=t,{arenaSize:o,cellSize:s,qrcode:l}=M.useContext(e.Context),{edgeLength:c,finderLength:u}=l,d=M.useMemo(()=>{let e="";for(let t=0;t<l.grid.length;t++){let n=l.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let l=c/2-o/2,d=l+o;if(t>=l&&t<=d&&r>=l&&r<=d)continue;let f=t<u&&r<u,h=t<u&&r>=c-u,p=t>=c-u&&r<u;if(f||h||p)continue;let m=i?.1*s:0,b=(s-2*m)/2,g=r*s+s/2,w=t*s+s/2,y=g-b,v=g+b,C=w-b,x=w+b,A=a*b;e+=`M ${y+A},${C} L ${v-A},${C} A ${A},${A} 0 0,1 ${v},${C+A} L ${v},${x-A} A ${A},${A} 0 0,1 ${v-A},${x} L ${y+A},${x} A ${A},${A} 0 0,1 ${y},${x-A} L ${y},${C+A} A ${A},${A} 0 0,1 ${y+A},${C} z`}}return e},[o,s,c,u,l.grid,i,a]);return(0,ra.jsx)("path",{className:n,d:d,fill:r})}function i(t){let{children:n}=t,{arenaSize:r,cellSize:i,edgeSize:a}=M.useContext(e.Context),o=Math.ceil(a/2-r/2),s=r+r%2;return(0,ra.jsx)("foreignObject",{x:o,y:o,width:s,height:s,children:(0,ra.jsx)("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",
1610width:"100%",padding:i/2,boxSizing:"border-box"},children:n})})}e.Context=M.createContext(null),e.Root=t,(t=e.Root||(e.Root={})).displayName="Root",e.Finder=n,(n=e.Finder||(e.Finder={})).displayName="Finder",e.Cells=r,(r=e.Cells||(e.Cells={})).displayName="Cells",e.Arena=i,(i=e.Arena||(e.Arena={})).displayName="Arena"}(rT||(rT={}));var rM=n(59017),rF=n(83469);let rR=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>rR(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>rR(t)(e)}}},rN=e=>{let t,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},rD=e=>e?rN(e):rN;var rU=n(61060),rL=n(13799);class rq{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new rL.b})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function rW(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function rz(e,t){return e.slice(0,t).join(".")||"."}function rQ(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function rG(e,t,n,r){var i;let a,o,s,l;return JSON.stringify(e,(i=(e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},a=true,o="function"==typeof r,s=[],l=[],function(e,t){if("object"==typeof t)if(s.length){let n=rQ(s,this);0===n?s[s.length]=this:(s.splice(n),l.splice(n)),l[l.length]=e;let i=rQ(s,t);if(0!==i)return o?r.call(this,e,t,rz(l,i)):`[ref=${rz(l,i)}]`}else s[0]=t,l[0]=e;return a?i.call(this,e,t):t}),n??void 0)}let r$={getItem:()=>null,setItem:()=>{},removeItem:()=>{}},rH=256;var r_=n(82421),rK=n(8759),rV=n(16891),rJ=n(90581),rY=n(55712),rZ=n(25139),rX=n(32544),r0=n(81645),r1=n(44439),r6=n(94254);function r5(e={}){let t,r,i,a,o,s,l,c;return(0,rK.U)(u=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:r5.type,async setup(){let e=await this.getProvider();e?.on&&(s||(s=this.onConnect.bind(this),e.on("connect",s)),a||(a=this.onAccountsChanged.bind(this),e.on("accountsChanged",a)))},async connect({chainId:n,isReconnecting:r,withCapabilities:i}={}){let u=await this.getProvider();l||(l=this.onDisplayUri,u.on("display_uri",l));let d=[];r&&(d=await this.getAccounts().catch(()=>[]));try{let r,f;d?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?r=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(f=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),d=await this.getAccounts()):d=(await t.connect()).map(e=>(0,rX.b)(e)));let h=await this.getChainId();if(n&&h!==n){let e=await this.switchChain({chainId:n}).catch(e=>{if(e.code===n9.vx.code)throw e;return{id:h}});h=e?.id??h}return l&&(u.removeListener("display_uri",l),l=void 0),r?u.emit("connectAndSign",{accounts:d,chainId:h,signResponse:r}):f&&u.emit("connectWith",{accounts:d,chainId:h,connectWithResponse:f}),s&&(u.removeListener("connect",s),s=void 0),a||(a=this.onAccountsChanged.bind(this),u.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),c||(c=this.onDisconnect.bind(this),u.on("disconnect",c)),{accounts:i?d.map(e=>({address:e,capabilities:{}})):d,chainId:h}}catch(e){if(e.code===n9.vx.code)throw new n9.vx(e);if(e.code===n9.qZ.code)throw new n9.qZ(e);throw e}},async disconnect(){let e=await this.getProvider();o&&(e.removeListener("chainChanged",o),o=void 0),c&&(e.removeListener("disconnect",c),c=void 0),s||(s=this.onConnect.bind(this),e.on("connect",s)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,rX.b)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){let r=await (async()=>{let{default:e}=await Promise.all([n.e(6769),n.e(5421)]).then(n.bind(n,2230));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})(),i={};for(let e of u.chains)i[(0,r0.cK)(e.id)]=(0,rZ.R)({chain:e,transports:u.transports})?.[0];
1610t=new r({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:i,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:"wagmi",url:e.dappMetadata?.url?e.dappMetadata?.url:"u">typeof window?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});let a=await t.init(),o=a?.activeProvider?a.activeProvider:t.getProvider();if(!o)throw new rt.N;return o}return r||(i||(i=a()),r=await i),r},async isAuthorized(){try{return!!(await (0,r1.b)(()=>(0,r6.w)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),r=u.chains.find(e=>e.id===t);if(!r)throw new n9.ch(new tO.nk);try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,r0.cK)(t)}]}),await i(),await a(t),r}catch(o){if(o.code===n9.vx.code)throw new n9.vx(o);if(4902===o.code||o?.data?.originalError?.code===4902)try{return await n.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{let{default:t,...n}=r.blockExplorers??{};return e?.blockExplorerUrls?e.blockExplorerUrls:t?[t.url,...Object.values(n).map(e=>e.url)]:void 0})(),chainId:(0,r0.cK)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""]}]}),await i(),await a(t),r}catch(e){if(e.code===n9.vx.code)throw new n9.vx(e);throw new n9.ch(e)}throw new n9.ch(o)}async function i(){await (0,r1.b)(async()=>{let e=(0,G.ME)(await n.request({method:"eth_chainId"}));if(e!==t)throw Error("User rejected switch after adding network.");return e},{delay:50,retryCount:20})}async function a(e){await new Promise(t=>{let n=r=>{"chainId"in r&&r.chainId===e&&(u.emitter.off("change",n),t())};u.emitter.on("change",n),u.emitter.emit("change",{chainId:e})})}},async onAccountsChanged(e){if(0===e.length)if(!t.isExtensionActive())return;else this.onDisconnect();else if(u.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else u.emitter.emit("change",{accounts:e.map(e=>(0,rX.b)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);u.emitter.emit("connect",{accounts:t,chainId:n});let r=await this.getProvider();s&&(r.removeListener("connect",s),s=void 0),a||(a=this.onAccountsChanged.bind(this),r.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),r.on("chainChanged",o)),c||(c=this.onDisconnect.bind(this),r.on("disconnect",c))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),o&&(t.removeListener("chainChanged",o),o=void 0),c&&(t.removeListener("disconnect",c),c=void 0),s||(s=this.onConnect.bind(this),t.on("connect",s)))},onDisplayUri(e){u.emitter.emit("message",{type:"display_uri",data:e})}}))}r5.type="metaMask";var r2=n(14437),r3=n(65364),r8=function(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var n=R(e);return F(function(e,r){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return r(e,t.defaultCondition)}var i=Array.isArray(e)?n(e):e,a={};for(var o in i)null!=i[o]&&(a[o]=r(i[o],o));return a},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),r7=R({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),r4=function(){return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object.assign({},...t.map(e=>e.styles)),i=Object.keys(r),a=i.filter(e=>"mappings"in r[e]);return Object.assign(e=>{var t=[],n={},i=D({},e),o=!1;for(var s of a){var l=e[s];if(null!=l)for(var c of(o=!0,r[s].mappings))n[c]=l,null==i[c]&&delete i[c]}var u=o?D(D({},n),i):e;for(var d in u)if(function(){var e=u[d],n=r[d];try{if(n.mappings)return 1;if("string"==typeof e||"number"==typeof e)t.push(n.values[e].defaultClass);else if(Array.isArray(e))for(var i=0;i<e.length;i++){var a=e[i];if(null!=a){var o=n.responsiveArray[i];t.push(n.values[a].conditions[o])}}else for(var s in e){var l=e[s];null!=l&&t.push(n.values[l].conditions[s])}}catch(e){throw e}}())continue;return U(t.join(" "))},{properties:new Set(i)})}(...arguments)}({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"}
1610,actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"}
1610,menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"}
1610,menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"}
1610,menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}
1610},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),r9={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackgroun
1610d:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},ie={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},it={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ir({active:e,hover:t}){return["_12cbo8i3 ju367v8r",t&&it[t],ie[e]]}function ii(e){return e}var ia=(0,M.createContext)(null);function io({adapter:e,children:t,enabled:n=!0,status:r}){let{connector:i}=(0,L.F)(),[a,o]=(0,M.useState)();z({onDisconnect:()=>{e.signOut(),o(void 0)}});let s=t=>{t.accounts&&(o(void 0),e.signOut())};return(0,M.useEffect)(()=>{if("function"==typeof i?.emitter?.on&&"authenticated"===r)return o(i?.uid),i.emitter.on("change",s),()=>{i.emitter.off("change",s)}},[i?.emitter,r]),(0,M.useEffect)(()=>{a&&"function"==typeof i?.emitter?.on&&"authenticated"===r&&i?.uid!==a&&(o(void 0),e.signOut())},[i?.emitter,a,r]),M.createElement(ia.Provider,{value:(0,M.useMemo)(()=>n?{adapter:e,status:r}:null,[n,e,r])},t)}function is(){let e=(0,M.useContext)(ia);return e?.status??null}function il(){let e=is(),{isConnected:t}=(0,L.F)();return t?e&&("loading"===e||"unauthenticated"===e)?e:"connected":"disconnected"}function ic(){return"u">typeof navigator&&/android/i.test(navigator.userAgent)}function iu(){return"u">typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"u">typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function id(){return ic()||iu()}var ih={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},ip=M.forwardRef(({as:e="div",className:t,testId:n,...r},i)=>{let a={},o={};for(let e in r)r4.properties.has(e)?a[e]=r[e]:o[e]=r[e];let s=(({reset:e,...t})=>e?Q("iekbcc0",ih[e],r4(t)):r4(t))({reset:"string"==typeof e?e:"div",...a});return M.createElement(e,{className:Q(s,t),...o,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:i})});ip.displayName="Box";var im=new Map,ib=new Map;async function ig(e){let t=ib.get(e);if(t)return t;let n=async()=>e().then(async t=>(im.set(e,t),t)),r=n().catch(t=>n().catch(t=>{ib.delete(e)}));return ib.set(e,r),r}async function iw(...e){return await Promise.all(e.map(e=>"function"==typeof e?ig(e):e))}function iy(e){let t="function"==typeof e?im.get(e):void 0,n=function(){let[,e]=(0,M.useReducer)(e=>e+1,0);return e}();return(0,M.useEffect)(()=>{"function"!=typeof e||t||ig(e).then(n)},[e,t,n]),"function"==typeof e?t:e}function iv({alt:e,background:t,borderColor:n,borderRadius:r,useAsImage:i,boxShadow:a,height:o,src:s,width:l,testId:c}){let u=iu(),d=iy(s),f=d&&/^http/.test(d),[h,p]=(0,M.useReducer)(()=>!0,!1);return M.createElement(ip,{"aria-label":e,borderRadius:r,boxShadow:a,height:"string"==typeof o?o:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:"number"==typeof o?o:void 0,width:"number"==typeof l?l:void 0}
1610,width:"string"==typeof l?l:void 0,testId:c},M.createElement(ip,{...f?{"aria-hidden":!0,as:"img",onLoad:p,src:d}:{"aria-hidden":!0,as:"img",src:d},height:"full",position:"absolute",...u?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!i&&f?{opacity:+!!h}:{}},width:"full"}),n?M.createElement(ip,{..."object"==typeof n&&"custom"in n?{style:{borderColor:n.custom}}:{borderColor:n},borderRadius:r,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var iC=({height:e=21,width:t=21})=>{let n,r=(n="spinner",(0,M.useMemo)(()=>`${n}_${Math.round(1e9*Math.random())}`,[n]));return M.createElement("svg",{className:"_1luule42",fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Loading"),M.createElement("clipPath",{id:r},M.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),M.createElement("foreignObject",{clipPath:`url(#${r})`,height:"21",width:"21",x:"0",y:"0"},M.createElement("div",{className:"_1luule43"})))},ix=[{color:"#FC5C54",emoji:"\uD83C\uDF36"},{color:"#FFD95A",emoji:"\uD83E\uDD11"},{color:"#E95D72",emoji:"\uD83D\uDC19"},{color:"#6A87C8",emoji:"\uD83E\uDED0"},{color:"#5FD0F3",emoji:"\uD83D\uDC33"},{color:"#FC5C54",emoji:"\uD83E\uDD36"},{color:"#75C06B",emoji:"\uD83C\uDF32"},{color:"#FFDD86",emoji:"\uD83C\uDF1E"},{color:"#5FC6D4",emoji:"\uD83D\uDC12"},{color:"#FF949A",emoji:"\uD83D\uDC35"},{color:"#FF8024",emoji:"\uD83E\uDD8A"},{color:"#9BA1A4",emoji:"\uD83D\uDC3C"},{color:"#EC66FF",emoji:"\uD83E\uDD84"},{color:"#FF8CBC",emoji:"\uD83D\uDC37"},{color:"#FF9A23",emoji:"\uD83D\uDC27"},{color:"#FF949A",emoji:"\uD83E\uDDA9"},{color:"#C5DADB",emoji:"\uD83D\uDC7D"},{color:"#FC5C54",emoji:"\uD83C\uDF88"},{color:"#FF949A",emoji:"\uD83C\uDF49"},{color:"#FFD95A",emoji:"\uD83C\uDF89"},{color:"#A8CE63",emoji:"\uD83D\uDC32"},{color:"#71ABFF",emoji:"\uD83C\uDF0E"},{color:"#FFE279",emoji:"\uD83C\uDF4A"},{color:"#B6B1B6",emoji:"\uD83D\uDC2D"},{color:"#FF6780",emoji:"\uD83C\uDF63"},{color:"#FFD95A",emoji:"\uD83D\uDC25"},{color:"#A575FF",emoji:"\uD83D\uDC7E"},{color:"#A8CE63",emoji:"\uD83E\uDD66"},{color:"#FC5C54",emoji:"\uD83D\uDC79"},{color:"#FFE279",emoji:"\uD83D\uDE40"},{color:"#5FD0F3",emoji:"⛱"},{color:"#4D82FF",emoji:"⛵️"},{color:"#FFE279",emoji:"\uD83E\uDD73"},{color:"#FF949A",emoji:"\uD83E\uDD2F"},{color:"#FFB35A",emoji:"\uD83E\uDD20"}],iA=({address:e,ensImage:t,size:n})=>{let[r,i]=(0,M.useState)(!1);(0,M.useEffect)(()=>{if(t){let e=new Image;e.src=t,e.onload=()=>i(!0)}},[t]);
1610let{color:a,emoji:o}=(0,M.useMemo)(()=>{let t;return t=Math.abs(function(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}(("string"==typeof e?e:"").toLowerCase())%ix.length),ix[t??0]},[e]);return t?r?M.createElement(ip,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):M.createElement(ip,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},M.createElement(iC,null)):M.createElement(ip,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},o)},iE=(0,M.createContext)(iA);function ik({address:e,imageUrl:t,loading:n,size:r}){let i=(0,M.useContext)(iE);return M.createElement(ip,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},M.createElement(ip,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(.55*r)}px`,height:`${r}px`,transform:n?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:n?void 0:".1s",width:`${r}px`,willChange:"transform"},userSelect:"none"},M.createElement(i,{address:e,ensImage:t,size:r})),n&&M.createElement(ip,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},M.createElement(iC,{height:"100%",width:"100%"})))}var ij=()=>M.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Dropdown"),M.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),iB=new class{constructor(e){for(const[t,n]of(this.listeners=new Set,this.defaultLocale="en",this.enableFallback=!1,this.locale="en",this.cachedLocales=[],this.translations={},Object.entries(e)))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){let n={},r=(e,t)=>{for(let i of Object.keys(e)){let a=`${t}.${i}`,o=e[i];"object"==typeof o&&null!==o?r(o,a):n[a]=o}};return r(e,t),n}translateWithReplacements(e,t={}){let n=e;for(let e in t){let r=t[e];n=n.replace(`%{${e}}`,r)}return n}t(e,t,n){let r=`${this.locale}.${e}`,i=this.translations[r];if(!i){if(this.enableFallback){let n=`${this.defaultLocale}.${e}`,r=this.translations[n];if(r)return this.translateWithReplacements(r,t)}return n?.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(i,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(let e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}}({en:JSON.parse(T.n),"en-US":JSON.parse(T.n)});iB.defaultLocale="en-US",iB.locale="en-US",iB.enableFallback=!0;var iI=async e=>{switch(e){case"ar":case"ar-AR":return(await n.e(5032).then(n.bind(n,15032))).default;case"de":case"de-DE":return(await n.e(8958).then(n.bind(n,98958))).default;case"en":case"en-US":default:return(await n.e(762).then(n.bind(n,20762))).default;case"es":case"es-419":return(await n.e(4651).then(n.bind(n,44651))).default;case"fr":case"fr-FR":return(await n.e(7109).then(n.bind(n,37109))).default;case"hi":case"hi-IN":return(await n.e(9360).then(n.bind(n,52140))).default;case"id":case"id-ID":return(await n.e(5621).then(n.bind(n,85621))).default;case"ja":case"ja-JP":return(await n.e(2401).then(n.bind(n,62401))).default;case"ko":case"ko-KR":return(await n.e(7558).then(n.bind(n,47558))).default;case"ms":case"ms-MY":return(await n.e(4293).then(n.bind(n,84293))).default;case"pt":case"pt-BR":return(await n.e(3397).then(n.bind(n,23397))).default;case"ru":case"ru-RU":return(await n.e(9716).then(n.bind(n,6462))).default;case"th":case"th-TH":return(await n.e(7821).then(n.bind(n,8652))).default;case"tr":case"tr-TR":return(await n.e(9326).then(n.bind(n,39326))).default;case"ua":case"uk-UA":return(await n.e(4176).then(n.bind(n,20729))).default;case"vi":case"vi-VN":return(await n.e(7121).then(n.bind(n,67121))).default;case"zh":case"zh-CN":case"zh-Hans":return(await n.e(2130).then(n.bind(n,12130))).default;case"zh-HK":return(await n.e(9517).then(n.bind(n,69517))).default;
1610case"zh-Hant":case"zh-TW":return(await n.e(8303).then(n.bind(n,28303))).default}};async function iS(e){if(iB.isLocaleCached(e))return void iB.updateLocale(e);let t=await iI(e);iB.setTranslations(e,JSON.parse(t))}var iP=(0,M.createContext)({i18n:iB}),iO=({children:e,locale:t})=>{let[n,r]=(0,M.useState)(0),i=(0,M.useMemo)(()=>(()=>{if("u">typeof window&&"u">typeof navigator){if(navigator.languages?.length)return navigator.languages[0];if(navigator.language)return navigator.language}})(),[]);(0,M.useEffect)(()=>iB.onChange(()=>{r(e=>e+1)}),[]),(0,M.useEffect)(()=>{t&&t!==iB.locale?iS(t):!t&&i&&i!==iB.locale&&iS(i)},[t,i]);let a=(0,M.useMemo)(()=>({t:(e,t)=>iB.t(e,t),i18n:iB}),[n]);return M.createElement(iP.Provider,{value:a},e)};function iT(e){return null!=e}var iM={iconBackground:"#7290CC",iconUrl:async()=>(await n.e(2026).then(n.bind(n,42026))).default},iF={iconBackground:"#96bedc",iconUrl:async()=>(await n.e(3112).then(n.bind(n,33112))).default},iR={iconBackground:"#e84141",iconUrl:async()=>(await n.e(8213).then(n.bind(n,38213))).default},iN={iconBackground:"#0052ff",iconUrl:async()=>(await n.e(5949).then(n.bind(n,15949))).default},iD={iconBackground:"#814625",iconUrl:async()=>(await n.e(4829).then(n.bind(n,84829))).default},iU={iconBackground:"#000000",iconUrl:async()=>(await n.e(63).then(n.bind(n,50063))).default},iL={iconBackground:"#ebac0e",iconUrl:async()=>(await n.e(7386).then(n.bind(n,87386))).default},iq={iconBackground:"#FCFF52",iconUrl:async()=>(await n.e(1476).then(n.bind(n,41476))).default},iW={iconBackground:"#002D74",iconUrl:async()=>(await n.e(6537).then(n.bind(n,26537))).default},iz={iconBackground:"#484c50",iconUrl:async()=>(await n.e(5106).then(n.bind(n,35106))).default},iQ={iconBackground:"transparent",iconUrl:async()=>(await n.e(6047).then(n.bind(n,56047))).default},iG={iconBackground:"#000000",iconUrl:async()=>(await n.e(7685).then(n.bind(n,17685))).default},i$={iconBackground:"#7132F5",iconUrl:async()=>(await n.e(5301).then(n.bind(n,45301))).default},iH={iconBackground:"transparent",iconUrl:async()=>(await n.e(2871).then(n.bind(n,72871))).default},i_={iconBackground:"#ffffff",iconUrl:async()=>(await n.e(7351).then(n.bind(n,57351))).default},iK={iconBackground:"#ffffff",iconUrl:async()=>(await n.e(6003).then(n.bind(n,16003))).default},iV={iconBackground:"#000000",iconUrl:async()=>(await n.e(3994).then(n.bind(n,43994))).default},iJ={iconBackground:"#ff5a57",iconUrl:async()=>(await n.e(5545).then(n.bind(n,25545))).default},iY={iconBackground:"#9f71ec",iconUrl:async()=>(await n.e(4570).then(n.bind(n,14570))).default},iZ={iconBackground:"#FFEEDA",iconUrl:async()=>(await n.e(147).then(n.bind(n,40147))).default},iX={iconBackground:"#F50DB4",iconUrl:async()=>(await n.e(8791).then(n.bind(n,78791))).default},i0={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(4718).then(n.bind(n,24718))).default},i1={iconBackground:"#000000",iconUrl:async()=>(await n.e(4846).then(n.bind(n,24846))).default},i6={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(2455).then(n.bind(n,42455))).default},i5={iconBackground:"#000000",iconUrl:async()=>(await n.e(8768).then(n.bind(n,68768))).default},i2=Object.fromEntries(Object.values({apechain:{chainId:33139,name:"ApeChain",...iM},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...iM},arbitrum:{chainId:42161,name:"Arbitrum",...iF},arbitrumGoerli:{chainId:421613,...iF},arbitrumSepolia:{chainId:421614,...iF},avalanche:{chainId:43114,...iR},avalancheFuji:{chainId:43113,...iR},base:{chainId:8453,name:"Base",...iN},baseGoerli:{chainId:84531,...iN},baseSepolia:{chainId:84532,...iN},berachain:{chainId:80094,name:"Berachain",...iD},berachainArtio:{chainId:80085,name:"Berachain Artio",...iD},berachainBArtio:{chainId:80084,name:"Berachain bArtio",...iD},blast:{chainId:81457,name:"Blast",...iU},blastSepolia:{chainId:0xa0c71fd,...iU},bsc:{chainId:56,name:"BSC",...iL},bscTestnet:{chainId:97,...iL},celo:{chainId:42220,name:"Celo",...iq},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...iq},cronos:{chainId:25,...iW},cronosTestnet:{chainId:338,...iW}
1610,degen:{chainId:0x27bc86aa,name:"Degen",iconBackground:"#A36EFD",iconUrl:async()=>(await n.e(7539).then(n.bind(n,7539))).default},flow:{chainId:747,...iQ},flowTestnet:{chainId:545,...iQ},gnosis:{chainId:100,name:"Gnosis",iconBackground:"#04795c",iconUrl:async()=>(await n.e(2917).then(n.bind(n,52917))).default},goerli:{chainId:5,...iz},gravity:{chainId:1625,name:"Gravity",...iG},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...iG},hardhat:{chainId:31337,iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(4650).then(n.bind(n,64650))).default},holesky:{chainId:17e3,...iz},hyperevm:{chainId:999,iconBackground:"#000000",iconUrl:async()=>(await n.e(9260).then(n.bind(n,49260))).default},ink:{chainId:57073,...i$},inkSepolia:{chainId:763373,...i$},kaia:{chainId:8217,name:"Kaia",...iH},kairos:{chainId:1001,name:"Kairos",...iH},kovan:{chainId:42,...iz},linea:{chainId:59144,name:"Linea",...i_},lineaGoerli:{chainId:59140,name:"Linea Goerli",...i_},lineaSepolia:{chainId:59141,name:"Linea Sepolia",...i_},localhost:{chainId:1337,...iz},mainnet:{chainId:1,name:"Ethereum",...iz},manta:{chainId:169,name:"Manta",...iK},mantaSepolia:{chainId:3441006,...iK},mantaTestnet:{chainId:3441005,...iK},mantle:{chainId:5e3,...iV},mantleTestnet:{chainId:5001,...iV},monadTestnet:{chainId:10143,name:"Monad Testnet",iconBackground:"transparent",iconUrl:async()=>(await n.e(7959).then(n.bind(n,17959))).default},optimism:{chainId:10,name:"Optimism",...iJ},optimismGoerli:{chainId:420,...iJ},optimismKovan:{chainId:69,...iJ},optimismSepolia:{chainId:0xaa37dc,...iJ},polygon:{chainId:137,name:"Polygon",...iY},polygonAmoy:{chainId:80002,...iY},polygonMumbai:{chainId:80001,...iY},rinkeby:{chainId:4,...iz},ronin:{chainId:2020,iconBackground:"#1273EA",iconUrl:async()=>(await n.e(1695).then(n.bind(n,81695))).default},ropsten:{chainId:3,...iz},sanko:{chainId:1996,name:"Sanko",iconBackground:"#000000",iconUrl:async()=>(await n.e(6358).then(n.bind(n,6358))).default},scroll:{chainId:534352,...iZ},scrollSepolia:{chainId:534351,...iZ},sepolia:{chainId:0xaa36a7,...iz},superposition:{chainId:55244,name:"Superposition",iconBackground:"#000000",iconUrl:async()=>(await n.e(5279).then(n.bind(n,85279))).default},unichain:{chainId:130,...iX},unichainSepolia:{chainId:1301,...iX},xdc:{chainId:50,name:"XDC",...i0},xdcTestnet:{chainId:51,...i0},zetachain:{chainId:7e3,name:"ZetaChain",...i1},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...i1},zkSync:{chainId:324,name:"zkSync",...i6},zkSyncTestnet:{chainId:280,...i6},zora:{chainId:7777777,name:"Zora",...i5},zoraSepolia:{chainId:0x3b9ac9ff,...i5},zoraTestnet:{chainId:999,...i5}}).filter(iT).map(({chainId:e,...t})=>[e,t])),i3=(0,M.createContext)({chains:[]});function i8({children:e,initialChain:t}){let{chains:n}=(0,W.U)();return M.createElement(i3.Provider,{value:(0,M.useMemo)(()=>({chains:n.map(e=>{let t=i2[e.id]??{};return{...e,name:t.name??e.name,iconUrl:e.iconUrl??t.iconUrl,iconBackground:e.iconBackground??t.iconBackground}}),initialChainId:"number"==typeof t?t:t?.id}),[n,t])},e)}var i7=()=>(0,M.useContext)(i3).chains,i4=(0,M.createContext)({showBalance:void 0,setShowBalance:()=>{}});function i9({children:e}){let[t,n]=(0,M.useState)();return M.createElement(i4.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var ae=()=>(0,M.useContext)(i4);function at(){let[e,t]=(0,M.useState)(!1);return(0,M.useEffect)(()=>(t(!0),()=>{t(!1)}),[]),(0,M.useCallback)(()=>e,[e])}function an(){let e=i7(),t=eq.r.id;return e.some(e=>e.id===t)}async function ar(e,t){var n,r;let i,a={headers:{},method:"get",...t,timeout:t.timeout??1e4};if(!e)throw Error("rainbowFetch: Missing url argument");let o=new AbortController,s=setTimeout(()=>o.abort(),a.timeout),{body:l,params:c,headers:u,...d}=a,f=l&&"object"==typeof l?JSON.stringify(l):l,h=await fetch(`${e}${(n=c)&&Object.keys(n).length?`?${new URLSearchParams(n)}`:""}`,{...d,body:f,headers:{Accept:"application/json","Content-Type":"application/json",...u},signal:o.signal});clearTimeout(s);let p=await (i=(r=h).headers.get("Content-Type"),i?.startsWith("application/json")?r.json():r.text());if(h.ok){let{headers:e,status:t}=h;return{data:p,headers:e,status:t}}throw function({requestBody:e,response:t,responseBody:n}){let r=Error(n?.error||t?.statusText||"There was an error with the request.");return r.response=t,r.responseBody=n,r.requestBody=e,r}({requestBody:l,response:h,responseBody:"string"==typeof p?{error:p}:p})}var ai=class{constructor(e={}){const{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return ar(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return ar(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return ar(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return ar(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return ar(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return ar(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}
1610patch(e,t,n){return ar(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}},aa=!!(void 0!==r3&&void 0!==r3.env&&r3.env.RAINBOW_PROVIDER_API_KEY),ao=function({baseUrl:e,headers:t,params:n,timeout:r}){return new ai({baseUrl:e,headers:t,params:n,timeout:r})}({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":void 0!==r3&&void 0!==r3.env&&r3.env.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function as(e){return`rk-ens-name-${e}`}async function al({address:e}){let t=function(e){if("u"<typeof window)return null;let t=function(e){try{let t=e?JSON.parse(e):null;return"object"==typeof t?t:null}catch{return null}}(window.localStorage.getItem(as(e)));if(!t)return null;let{ensName:n,expires:r}=t;return"string"!=typeof n||Number.isNaN(Number(r))||new Date().getTime()>Number(r)?(window.localStorage.removeItem(as(e)),null):n}(e);if(t)return t;let n=(await ao.get("/v1/resolve-ens",{params:{address:e}})).data.data;return n&&function(e,t){if(!(0,ez.P)(e)||"u"<typeof window)return;let n=new Date(new Date().getTime()+180*6e4);window.localStorage.setItem(as(e),JSON.stringify({ensName:t,expires:n.getTime()}))}(e,n),n}function ac({address:e,includeBalance:t}){let n=function(e){let t=an(),{data:n}=function(e={}){let{address:t,query:n={}}=e,r=(0,W.U)(e),i=(0,ec.i)({config:r}),a=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...r}=t,i=e.getClient({chainId:n});return(0,K.T)(i,eW.s,"getEnsName")(r)}(e,{...i,address:n})},queryKey:function(e={}){return["ensName",eo(e)]}(t)}}(r,{...e,chainId:e.chainId??i}),o=!!(t&&(n.enabled??!0));return el({...n,...a,enabled:o})}({chainId:eq.r.id,address:e,query:{enabled:t}}),{data:r}=(0,es.I)({queryKey:function(e,t,n={}){return[e,t,n]}("address",e),queryFn:()=>al({address:e}),enabled:!t&&!!e&&aa,staleTime:6e5,retry:1});return n||r}(e),r=function(e){let t=an(),{data:n}=function(e={}){let{name:t,query:n={}}=e,r=(0,W.U)(e),i=(0,ec.i)({config:r}),a=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:r,...i}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...r}=t,i=e.getClient({chainId:n});return(0,K.T)(i,eL.i,"getEnsAvatar")(r)}(e,{...i,name:n})},queryKey:function(e={}){return["ensAvatar",eo(e)]}(t)}}(r,{...e,chainId:e.chainId??i}),o=!!(t&&(n.enabled??!0));return el({...n,...a,enabled:o})}({chainId:eq.r.id,name:e?(e=>{try{var t;return(t=function(e,t,n){if(!e)return[];eP();let r=0;return e.split(".").map(e=>{let i=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),a={input:i,offset:r};r+=i.length+1;try{let e,r=a.tokens=function(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let a=function(e){let t,n=g,r=e.length;for(;r&&(n=n.get(e[--r]));){let{V:i}=n;i&&(t=i,e.length=r)}return t}(e);if(a)i.length&&(r.push(t(i)),i=[]),r.push(n(a));else{let t=e.pop();if(m.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!l.has(t))throw eR(t)}}}return i.length&&r.push(t(i)),r}(i,t,n),o=r.length;if(!o)throw Error("empty label");let d=a.output=r.flat();for(let e=d.lastIndexOf(95);e>0;)if(95!==d[--e])throw Error("underscore allowed only at start");if(!(a.emoji=o>1||r[0].is_emoji)&&d.every(e=>e<128)){if(d.length>=4&&45==d[2]&&45==d[3])throw Error(`invalid label extension: "${ey(d.slice(0,4))}"`);e="ASCII"}else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(c.has(d[0]))throw eD("leading combining mark");for(let e=1;e<o;e++){let t=r[e];
1610if(!t.is_emoji&&c.has(t[0]))throw eD(`emoji + combining mark: "${ey(r[e-1])} + ${eM([t[0]])}"`)}!function(e){let t=e[0],n=ed.get(t);if(n)throw eD(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let r=ed.get(t);if(r){if(i==a)throw eD(`${n} + ${r}`);i=a+1,n=r}}if(i==r)throw eD(`trailing ${n}`)}(d);let n=eB(new Set(t)),[i]=function(e){let t=f;for(let n of e){let e=t.filter(e=>eI(e,n));if(!e.length)if(f.some(e=>eI(e,n)))throw eN(t[0],n);else throw eR(n);if(t=e,1==e.length)break}return t}(n);(function(e,t){for(let n of t)if(!eI(e,n))throw eN(e,n);if(e.M){let e=ek(t).map(eA);for(let t=1,n=e.length;t<n;t++)if(u.has(e[t])){let r=t+1;for(let i;r<n&&u.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw Error(`duplicate non-spacing marks: ${eO(i)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${eT(eM(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(i,t),function(e,t){let n,r=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):eB(r)).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>eI(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(i,n),e=i.N}else e="Emoji"}a.type=e}catch(e){a.error=e}return a})}(e,ej,eU)).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${eT(eM(e,63))}: ${r}`)}return ey(r)}).join(".")}catch{}})(e):void 0,query:{enabled:t}});return n}(n),{data:i}=eu({address:t?e:void 0});return{ensName:n,ensAvatar:r,balance:i}}function au(){let{chain:e}=(0,L.F)();return e?.id??null}var ad="rk-transactions";function af(){var e="u">typeof window?window.localStorage.getItem(ad):null;try{let t=e?JSON.parse(e):{};return"object"==typeof t?t:{}}catch{return{}}}var ah=/^0x([A-Fa-f0-9]{64})$/,ap=M.createContext(null);function am({children:e}){let t=function(e={}){let t=(0,W.U)(e);return(0,e$.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>eG(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>eG(t,e),()=>eG(t,e),e=>e,(e,t)=>e?.uid===t?.uid)}(),{address:n}=(0,L.F)(),r=au(),{refetch:i}=eu({address:n,query:{enabled:!1}}),[a]=M.useState(()=>(B||(B=function({provider:e}){let t,n=af(),r=new Set,i=new Set,a=new Map;function o(e){let n;n=`${e.uid}.rk-transactions`,t={...e,uid:n}}function s(e,t){return n[e]?.[t]??[]}function l(e,t,n,r){u(e,t,e=>e.map(e=>e.hash===n?{...e,status:r}:e))}async function c(e,n){await Promise.all(s(e,n).filter(e=>"pending"===e.status).map(async r=>{let{confirmations:o,hash:s}=r,c=a.get(s);if(c)return await c;let u=(0,eH.n)(t,{confirmations:o,hash:s,timeout:3e5}).then(({status:t})=>{a.delete(s),void 0!==t&&(l(e,n,s,0===t||"reverted"===t?"failed":"confirmed"),function(e){for(let t of i)t(e)}(t))}).catch(()=>{a.delete(s),l(e,n,s,"failed")});return a.set(s,u),await u}))}function u(e,t,i){(n=af())[e]=n[e]??{};let a=0,o=i(n[e][t]??[]).filter(({status:e})=>"pending"===e||a++<=10);n[e][t]=o.length>0?o:void 0,"u">typeof window&&window.localStorage.setItem(ad,JSON.stringify(n)),function(){for(let e of r)e()}(),c(e,t)}return o(e),{addTransaction:function(e,t,n){let r,i=(r=[],ah.test(n.hash)||r.push("Invalid transaction hash"),"string"!=typeof n.description&&r.push("Transaction must have a description"),void 0!==n.confirmations&&(!Number.isInteger(n.confirmations)||n.confirmations<1)&&r.push("Transaction confirmations must be a positiver integer"),r);if(i.length>0)throw Error(["Unable to add transaction",...i].join("\n"));u(e,t,e=>[{...n,status:"pending"},...e.filter(({hash:e})=>e!==n.hash)])},clearTransactions:function(e,t){u(e,t,()=>[])},getTransactions:s,onTransactionStatus:function(e){return i.add(e),()=>{i.delete(e)}},onChange:function(e){return r.add(e),()=>{r.delete(e)}},setProvider:o,waitForPendingTransactions:c}}({provider:t})),B)),o=M.useCallback(e=>{"success"===e&&i()},[i]);return M.useEffect(()=>{a.setProvider(t)},[a,t]),M.useEffect(()=>{n&&r&&a.waitForPendingTransactions(n,r)},[a,n,r]),M.useEffect(()=>{if(a&&n&&r)return a.onTransactionStatus(o)},[a,n,r,o]),M.createElement(ap.Provider,{value:a},e)}function ab(){let e=M.useContext(ap);if(!e)throw Error("Transaction hooks must be used within RainbowKitProvider");return e}function ag(){let e=ab(),{address:t}=(0,L.F)(),n=au(),[r,i]=(0,M.useState)(()=>e&&t&&n?e.getTransactions(t,n):[]);return(0,M.useEffect)(()=>
1610{if(e&&t&&n)return i(e.getTransactions(t,n)),e.onChange(()=>{i(e.getTransactions(t,n))})},[e,t,n]),r}var aw=e=>"function"==typeof e?e():e;function ay(e,t={}){return Object.entries(function(e,{extends:t}={}){let n={...tP(r9,aw(e))};if(!t)return n;let r=tP(r9,aw(t));return Object.fromEntries(Object.entries(n).filter(([e,t])=>t!==r[e]))}(e,t)).map(([e,t])=>`${e}:${t.replace(/[:;{}</>]/g,"")};`).join("")}var av={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},aC=(0,M.createContext)(av),ax=(0,M.createContext)(!1),aA=()=>{let[e,t]=(0,M.useState)({height:void 0,width:void 0});return(0,M.useEffect)(()=>{var e;let n,r,i=(e=()=>{t({height:window.innerHeight,width:window.innerWidth})},n=null,(r=()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},500)}).cancel=()=>{n&&(clearTimeout(n),n=null)},r);return window.addEventListener("resize",i),i(),()=>{i.cancel(),window.removeEventListener("resize",i)}},[]),e},aE=(0,M.createContext)({connector:null,setConnector:()=>{}});function ak({children:e}){let[t,n]=(0,M.useState)(null);return M.createElement(aE.Provider,{value:(0,M.useMemo)(()=>({connector:t,setConnector:n}),[t])},e)}var aj="compact",aB="wide",aI=(0,M.createContext)(aB);function aS({children:e,modalSize:t}){let{width:n}=aA(),{connector:r}=(0,M.useContext)(aE);return M.createElement(aI.Provider,{value:n&&n<768||r?aj:t},e)}var aP=(0,M.createContext)(!1);function aO(){return"u">typeof navigator&&void 0!==navigator.userAgent&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function aT(){if("u"<typeof navigator)return"Browser";let e=navigator.userAgent?.toLowerCase();return navigator.brave?.isBrave?"Brave":e?.indexOf("edg/")>-1?"Edge":e?.indexOf("op")>-1?"Opera":"u">typeof document&&""!==getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")?"Arc":e?.indexOf("chrome")>-1?"Chrome":e?.indexOf("firefox")>-1?"Firefox":aO()?"Safari":"Browser"}var{os:aM}=n4();function aF(){return"Windows"===aM.name?"Windows":"macOS"===aM.name?"macOS":["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(aM.name)?"Linux":"Desktop"}var aR=e=>{let t=aT();return({Arc:e?.downloadUrls?.chrome,Brave:e?.downloadUrls?.chrome,Chrome:e?.downloadUrls?.chrome,Edge:e?.downloadUrls?.edge||e?.downloadUrls?.chrome,Firefox:e?.downloadUrls?.firefox,Opera:e?.downloadUrls?.opera||e?.downloadUrls?.chrome,Safari:e?.downloadUrls?.safari,Browser:e?.downloadUrls?.browserExtension})[t]??e?.downloadUrls?.browserExtension},aN=e=>(iu()?e?.downloadUrls?.ios:e?.downloadUrls?.android)??e?.downloadUrls?.mobile,aD=e=>{let t=aF();return({Windows:e?.downloadUrls?.windows,macOS:e?.downloadUrls?.macos,Linux:e?.downloadUrls?.linux,Desktop:e?.downloadUrls?.desktop})[t]??e?.downloadUrls?.desktop},aU=(e,t)=>e.some(e=>e.id===t),aL=e=>!!e.isRainbowKitConnector,aq=e=>!!(!e.isRainbowKitConnector&&e.icon?.replace(/\n/g,"").startsWith("data:image")&&e.uid&&e.name),aW="rk-recent";function az(){return"u">typeof window?function(e){try{let t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}(window.localStorage.getItem(aW)):[]}function aQ(e=!1){let t=i7(),n=(0,M.useContext)(i3).initialChainId,{connectAsync:r,connectors:i}=function(e={}){let{mutation:t}=e,n=(0,W.U)(e),r={mutationFn:e=>tT(n,e),mutationKey:["connect"]},{mutate:i,mutateAsync:a,...o}=(0,e_.n)({...t,...r});return(0,M.useEffect)(()=>n.subscribe(({status:e})=>e,(e,t)=>{"connected"===t&&"disconnected"===e&&o.reset()}),[n,o.reset]),{...o,connect:i,connectAsync:a,connectors:(0,tM.U)({config:n})}}(),{setIsWalletConnectModalOpen:a}=si(),o=i.map(e=>({...e,...e.rkDetails||{}}));async function s(e,i){let a,o=await e.getChainId(),s=await r({...i,chainId:i?.chainId??n??t.find(({id:e})=>e===o)?.id??t[0]?.id,connector:e});return s&&(a=[...new Set([e.id,...az()])],"u">typeof window&&window.localStorage.setItem(aW,JSON.stringify(a))),s}async function l(e){try{a(!0),await s(e),a(!1)}catch(t){let e="UserRejectedRequestError"===t.name||"Connection request reset. Please try again."===t.message;if(a(!1),!e)throw t}}let c=async(e,t)=>{let n=await e.getProvider();return"coinbase"===e.id?n.qrUrl:new Promise(e=>n.once("display_uri",n=>{e(t(n))}))},u=o.find(e=>
1610"walletConnect"===e.id&&e.isWalletConnectModalConnector),d=o.filter(aq).map(e=>({...e,groupIndex:0})),f=o.filter(aL).filter(e=>!e.isWalletConnectModalConnector).filter(t=>!e||!d.some(e=>e.id===t.rdns)).map(e=>"walletConnect"===e.id&&u?{...e,walletConnectModalConnector:u}:e),h=[...d,...f],p=function(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]=r)}return n}(h,e=>e.id),m=az().map(e=>p[e]).filter(Boolean).slice(0,3),b=[];for(let e of(({wallets:e,recentWallets:t})=>[...t,...e.filter(e=>!aU(t,e.id))])({wallets:h,recentWallets:m})){if(!e)continue;let t=aq(e),n=aU(m,e.id);if(t){b.push({...e,iconUrl:e.icon,ready:!0,connect:s.bind(null,e),groupName:"Installed",recent:n});continue}b.push({...e,ready:e.installed??!0,connect:s.bind(null,e),desktopDownloadUrl:aD(e),extensionDownloadUrl:aR(e),groupName:e.groupName,mobileDownloadUrl:aN(e),getQrCodeUri:e.qrCode?.getUri?()=>c(e,e.qrCode.getUri):void 0,getDesktopUri:e.desktop?.getUri?()=>c(e,e.desktop.getUri):void 0,getMobileUri:e.mobile?.getUri?()=>c(e,e.mobile.getUri):void 0,recent:n,showWalletConnectModal:e.walletConnectModalConnector?()=>l(e.walletConnectModalConnector):void 0})}return b}var aG=async()=>(await n.e(6324).then(n.bind(n,36324))).default,a$=()=>M.createElement(iv,{background:"#d0d5de",borderRadius:"10",height:"48",src:aG,width:"48"}),aH=async()=>(await n.e(9798).then(n.bind(n,89798))).default,a_=()=>M.createElement(iv,{background:"#d0d5de",borderRadius:"10",height:"48",src:aH,width:"48"}),aK=M.forwardRef(({as:e="div",children:t,className:n,color:r,display:i,font:a="body",id:o,size:s="16",style:l,tabIndex:c,textAlign:u="inherit",weight:d="regular",testId:f},h)=>M.createElement(ip,{as:e,className:n,color:r,display:i,fontFamily:a,fontSize:s,fontWeight:d,id:o,ref:h,style:l,tabIndex:c,textAlign:u,testId:f},t));aK.displayName="Text";var aV={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function aJ({disabled:e=!1,href:t,label:n,onClick:r,rel:i="noreferrer noopener",size:a="medium",target:o="_blank",testId:s,type:l="primary"}){let c="primary"===l,u="large"!==a,d=id(),f=e?"actionButtonSecondaryBackground":c?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:p,paddingX:m,paddingY:b}=aV[a];return M.createElement(ip,{...t?!e?{as:"a",href:t,rel:i,target:o}:{}:{as:"button",type:"button"},onClick:e?void 0:r,...!d||!u?{borderColor:!d||u||c?"actionButtonBorder":"actionButtonBorderMobile",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&ir({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:m,paddingY:b,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...f?{background:f}:{},...p?{height:p}:{}},M.createElement(aK,{color:e?"modalTextSecondary":c?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var aY=()=>id()?M.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Close"),M.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):M.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Close"),M.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893
1610C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),aZ=({"aria-label":e="Close",onClose:t})=>{let n=id();return M.createElement(ip,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:ir({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},M.createElement(aY,null))},aX=async()=>(await n.e(4808).then(n.bind(n,34808))).default;function a0({onClose:e,onCloseModal:t}){let{i18n:n}=(0,M.useContext)(iP),[{status:r,...i},a]=M.useState({status:"idle"}),o=function(){let{adapter:e}=(0,M.useContext)(ia)??{};if(!e)throw Error("No authentication adapter found");return e}(),s=(0,M.useCallback)(async()=>{try{let e=await o.getNonce();a(t=>({...t,nonce:e}))}catch{a(e=>({...e,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[o,n.t]),l=(0,M.useRef)(!1);M.useEffect(()=>{l.current||(l.current=!0,s())},[s]);let c=id(),{address:u,chain:d}=(0,L.F)(),{signMessageAsync:f}=(0,re.Y)(),h=async()=>{try{let e,r,s=d?.id,{nonce:l}=i;if(!u||!s||!l)return;a(e=>({...e,errorMessage:void 0}));try{let t=o.createMessage({address:u,chainId:s,nonce:l});t instanceof Promise&&a(e=>({...e,status:"creatingMessage"})),e=await t}catch{return a(e=>({...e,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}try{a(e=>({...e,status:"signing"})),r=await f({message:e})}catch(e){if(e instanceof n9.vx)return a(e=>({...e,status:"idle"}));return a(e=>({...e,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(e=>({...e,status:"verifying"}));try{if(await o.verify({message:e,signature:r}))return void t();throw Error()}catch{return a(e=>({...e,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a(e=>({...e,errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"}))}};return M.createElement(ip,{position:"relative"},M.createElement(ip,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},M.createElement(aZ,{onClose:e})),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:c?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:c?"60px":"36px"}},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:c?"6":"4",style:{maxWidth:c?320:280}},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:c?"32":"16"},M.createElement(iv,{height:40,src:aX,width:40}),M.createElement(aK,{color:"modalText",size:c?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:c?"16":"12"},M.createElement(aK,{color:"modalTextSecondary",size:c?"16":"14",textAlign:"center"},n.t("sign_in.description")),"idle"===r&&i.errorMessage?M.createElement(aK,{color:"error",size:c?"16":"14",textAlign:"center",weight:"bold"},i.errorMessage):null)),M.createElement(ip,{alignItems:c?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},M.createElement(aJ,{disabled:!i.nonce||"creatingMessage"===r||"signing"===r||"verifying"===r,label:i.nonce&&"creatingMessage"!==r?"signing"===r?n.t("sign_in.signature.waiting"):"verifying"===r?n.t("sign_in.signature.verifying"):n.t("sign_in.message.send"):n.t("sign_in.message.preparing"),onClick:h,size:c?"large":"medium",testId:"auth-message-button"}),c?M.createElement(aJ,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):M.createElement(ip,{as:"button",borderRadius:"full",className:ir({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},M.createElement(aK,{color:"closeButton",size:c?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}var a1="WALLETCONNECT_DEEPLINK_CHOICE";function a6(){"u">typeof window&&window.localStorage.removeItem(a1)}
1610var a5=(0,M.createContext)(void 0),a2="data-rk",a3=e=>({[a2]:e||""}),a8=O();function a7({appInfo:e,avatar:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:o,modalSize:s=aB,showRecentTransactions:l=!1,theme:c=a8}){let u,d,f,h,p;if(u=i7(),d=aQ(),f="unauthenticated"===is(),h=(0,M.useCallback)(()=>{iw(...d.map(e=>e.iconUrl),...u.map(e=>e.iconUrl).filter(iT)),id()||(iw(aG),iw(aH)),f&&iw(aX)},[d,u,f]),(0,M.useEffect)(()=>{h()},[h]),p=(0,M.useCallback)(()=>{!function({version:e}){"u">typeof window&&window.localStorage.setItem("rk-version",e)}({version:"2.2.11"})},[]),(0,M.useEffect)(()=>{p()},[p]),z({onDisconnect:a6}),"function"==typeof c)throw Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');let m=(e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw Error(`Invalid ID: ${e}`);return e?`[${a2}="${e}"]`:`[${a2}]`})(i),b={...av,...e};return M.createElement(i8,{initialChain:a},M.createElement(ak,null,M.createElement(iO,{locale:o},M.createElement(ax.Provider,{value:r},M.createElement(aS,{modalSize:s},M.createElement(aP.Provider,{value:l},M.createElement(am,null,M.createElement(iE.Provider,{value:t??iA},M.createElement(aC.Provider,{value:b},M.createElement(a5.Provider,{value:i},M.createElement(i9,null,M.createElement(sn,null,c?M.createElement("div",{...a3(i)},M.createElement("style",{dangerouslySetInnerHTML:{__html:[`${m}{${ay("lightMode"in c?c.lightMode:c)}}`,"darkMode"in c?`@media(prefers-color-scheme:dark){${m}{${ay(c.darkMode,{extends:c.lightMode})}}}`:null].join("")}}),n):n))))))))))))}var a4=(e,t)=>{let n=e.querySelectorAll("button:not(:disabled), a[href]");0!==n.length&&n["end"===t?n.length-1:0].focus()};function a9(e){let t=(0,M.useRef)(null);return(0,M.useEffect)(()=>{let e=document.activeElement;return()=>{e.focus?.()}},[]),(0,M.useEffect)(()=>{if(t.current){let e=t.current.querySelector("[data-auto-focus]");e?e.focus():t.current.focus()}},[]),M.createElement(M.Fragment,null,M.createElement("div",{onFocus:(0,M.useCallback)(()=>t.current&&a4(t.current,"end"),[]),tabIndex:0}),M.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),M.createElement("div",{onFocus:(0,M.useCallback)(()=>t.current&&a4(t.current,"start"),[]),tabIndex:0}))}var oe=e=>e.stopPropagation();function ot({children:e,onClose:t,open:n,titleId:r}){(0,M.useEffect)(()=>{let e=e=>n&&"Escape"===e.key&&t();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,t]);let[i,a]=(0,M.useState)(!0);(0,M.useEffect)(()=>{a("hidden"!==getComputedStyle(window.document.body).overflow)},[]);let o=(0,M.useCallback)(()=>t(),[t]),s=a3((0,M.useContext)(a5)),l=id();return M.createElement(M.Fragment,null,n?(0,eX.createPortal)(M.createElement(tI,{enabled:i},M.createElement(ip,{...s},M.createElement(ip,{...s,alignItems:l?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:"_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",onClick:o,position:"fixed",role:"dialog"},M.createElement(a9,{className:"_9pm4ki5 ju367va ju367v15 ju367v8r",onClick:oe,role:"document"},e)))),document.body):null)}function on({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:i,wide:a=!1}){let o=id(),s=(0,M.useContext)(aI);return M.createElement(ip,{marginTop:n},M.createElement(ip,{className:[a?o?"_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":s===aj?"_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":"_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":"_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",o?"_1ckjpok6 ju367vq":null,o&&e?"_1ckjpok7":null].join(" ")},M.createElement(ip,{padding:r,paddingBottom:i??r},t)))}var or=["k","m","b","t"];function oi(e,t=1){return e.toString().replace(RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function oa(e){if(e<1)return oi(e,3);if(e<100)return oi(e,2);if(e<1e4)return new Intl.NumberFormat().format(Number.parseFloat(oi(e,1)));let t=String(e);for(let n=or.length-1;n>=0;n--){let r=10**((n+1)*3);
1610if(r<=e){t=oi(10*e/r/10,1)+or[n];break}}return t}function oo(e){return e.length<8?e:`${e.substring(0,4)}\u2026${e.substring(e.length-4)}`}function os(e){if(!e)return"";let t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var ol=()=>M.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Copied"),M.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),oc=()=>M.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Copy"),M.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),ou=()=>M.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Disconnect"),M.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.
1610168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"})),od=e=>e?.blockExplorers?.default?.url,of=()=>M.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Link"),M.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),oh=()=>M.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Cancel"),M.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),op=()=>M.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Success"),M.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"}));function om({tx:e}){let t=id(),n=(e=>{switch(e){case"pending":default:return iC;case"confirmed":return op;case"failed":return oh}})(e.status),r="failed"===e.status?"error":"accentColor",{chain:i}=(0,L.F)(),a="confirmed"===e.status?"Confirmed":"failed"===e.status?"Failed":"Pending",o=od(i);return M.createElement(M.Fragment,null,M.createElement(ip,{...o?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ir({active:"shrink"}),href:`${o}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},M.createElement(ip,{color:r},M.createElement(n,null)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:t?"3":"1"},M.createElement(ip,null,M.createElement(aK,{color:"modalText",font:"body",
1610size:t?"16":"14",weight:"bold"},e?.description)),M.createElement(ip,null,M.createElement(aK,{color:"pending"===e.status?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),o&&M.createElement(ip,{alignItems:"center",color:"modalTextDim",display:"flex"},M.createElement(of,null))))}function ob({address:e}){let t=ag(),n=function(){let e=ab(),{address:t}=(0,L.F)(),n=au();return(0,M.useCallback)(()=>{if(!t||!n)throw Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}(),{chain:r}=(0,L.F)(),i=od(r),a=t.slice(0,3),o=a.length>0,s=id(),{appName:l}=(0,M.useContext)(aC),{i18n:c}=(0,M.useContext)(iP);return M.createElement(M.Fragment,null,M.createElement(ip,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},o&&M.createElement(ip,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},M.createElement(ip,{display:"flex",justifyContent:"space-between"},M.createElement(aK,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},c.t("profile.transactions.recent.title")),M.createElement(ip,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},M.createElement(ip,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ir({active:"shrink"}),onClick:n,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},M.createElement(aK,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},c.t("profile.transactions.clear.label")))))),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},o?a.map(e=>M.createElement(om,{key:e.hash,tx:e})):M.createElement(M.Fragment,null,M.createElement(ip,{padding:s?"12":"8"},M.createElement(aK,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},l?c.t("profile.transactions.description",{appName:l}):c.t("profile.transactions.description_fallback"))),s&&M.createElement(ip,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),i&&M.createElement(ip,{paddingBottom:"18",paddingX:s?"8":"18"},M.createElement(ip,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ir({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${i}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...s?{paddingLeft:"12"}:{}}
1610,M.createElement(aK,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},c.t("profile.explorer.label")),M.createElement(of,null))))}function og({action:e,icon:t,label:n,testId:r,url:i}){let a=id();return M.createElement(ip,{...i?{as:"a",href:i,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...!a?{hover:"profileActionHover"}:{}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ir({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},M.createElement(ip,{color:"modalText",height:"max"},t),M.createElement(ip,null,M.createElement(aK,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function ow({address:e,ensAvatar:t,ensName:n,balance:r,onClose:i,onDisconnect:a}){let o=(0,M.useContext)(aP),{i18n:s}=(0,M.useContext)(iP),[l,c]=(0,M.useState)(!1),u=(0,M.useCallback)(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if((0,M.useEffect)(()=>{if(l){let e=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(e)}},[l]),!e)return null;let d=n?os(n):oo(e),f=r?.formatted,h=f?oa(Number.parseFloat(f)):void 0,p="rk_profile_title",m=id();return M.createElement(M.Fragment,null,M.createElement(ip,{display:"flex",flexDirection:"column"},M.createElement(ip,{background:"profileForeground",padding:"16"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:m?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},M.createElement(ip,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},M.createElement(aZ,{onClose:i}))," ",M.createElement(ip,{marginTop:m?"24":"0"},M.createElement(ik,{address:e,imageUrl:t,size:m?82:74})),M.createElement(ip,{display:"flex",flexDirection:"column",gap:m?"4":"0",textAlign:"center"},M.createElement(ip,{textAlign:"center"},M.createElement(aK,{as:"h1",color:"modalText",id:p,size:m?"20":"18",weight:"heavy"},d)),!!r&&M.createElement(ip,{textAlign:"center"},M.createElement(aK,{as:"h1",color:"modalTextSecondary",id:p,size:m?"16":"14",weight:"semibold"},h," ",r.symbol)))),M.createElement(ip,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},M.createElement(og,{action:u,icon:l?M.createElement(ol,null):M.createElement(oc,null),label:l?s.t("profile.copy_address.copied"):s.t("profile.copy_address.label")}),M.createElement(og,{action:a,icon:M.createElement(ou,null),label:s.t("profile.disconnect.label"),testId:"disconnect-button"}))),o&&M.createElement(M.Fragment,null,M.createElement(ip,{background:"generalBorder",height:"1",marginTop:"-1"}),M.createElement(ip,null,M.createElement(ob,{address:e})))))}function oy({onClose:e,open:t}){let{address:n}=(0,L.F)(),{balance:r,ensAvatar:i,ensName:a}=ac({address:n,includeBalance:t}),{disconnect:o}=eZ();return n?M.createElement(M.Fragment,null,n&&M.createElement(ot,{onClose:e,open:t,titleId:"rk_account_modal_title"},M.createElement(on,{bottomSheetOnMobile:!0,padding:"0"},M.createElement(ow,{address:n,ensAvatar:i,ensName:a,balance:r,onClose:e,onDisconnect:o})))):null}var ov=({size:e})=>M.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Disconnect"),M.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),oC=M.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...i},a)=>{let o=id();return M.createElement(ip,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},M.createElement(ip,{borderRadius:"menuButton",className:[o?"v9horb0":void 0,!t&&ir({active:"shrink"})],padding:o?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}
1610:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...i},e))});oC.displayName="MenuButton";var ox=({chainId:e,currentChainId:t,switchChain:n,chainIconSize:r,isLoading:i,src:a,name:o,iconBackground:s,idx:l})=>{let c=id(),{i18n:u}=(0,M.useContext)(iP),d=i7(),f=t===e;return M.createElement(M.Fragment,null,M.createElement(oC,{currentlySelected:f,onClick:f?void 0:()=>n({chainId:e}),testId:`chain-option-${e}`},M.createElement(ip,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:r},a&&M.createElement(ip,{height:"full",marginRight:"8"},M.createElement(iv,{alt:o,background:s,borderRadius:"full",height:r,src:a,width:r,testId:`chain-option-${e}-icon`})),M.createElement("div",null,o??o)),f&&M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},M.createElement(aK,{color:"accentColorForeground",size:"14",weight:"medium"},u.t("chains.connected")),M.createElement(ip,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),i&&M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},M.createElement(aK,{color:"modalText",size:"14",weight:"medium"},u.t("chains.confirm")),M.createElement(ip,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),c&&l<d.length-1&&M.createElement(ip,{background:"generalBorderDim",height:"1",marginX:"8"}))};function oA({onClose:e,open:t}){let{chainId:n}=(0,L.F)(),{chains:r}=(0,W.U)(),[i,a]=(0,M.useState)(null),{switchChain:o}=function(e={}){let{mutation:t}=e,n=(0,W.U)(e),r={mutationFn:e=>rn(n,e),mutationKey:["switchChain"]},{mutate:i,mutateAsync:a,...o}=(0,e_.n)({...t,...r});return{...o,chains:function(e={}){let t=(0,W.U)(e);return(0,M.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>ri(t),()=>ri(t))}({config:n}),switchChain:i,switchChainAsync:a}}({mutation:{onMutate:({chainId:e})=>{a(e)},onSuccess:()=>{i&&a(null)},onError:()=>{i&&a(null)},onSettled:()=>{e()}}}),{i18n:s}=(0,M.useContext)(iP),{disconnect:l}=eZ(),c="rk_chain_modal_title",u=id(),d=r.some(e=>e.id===n),f=u?"36":"28",h=i7();return n?M.createElement(ot,{onClose:e,open:t,titleId:c},M.createElement(on,{bottomSheetOnMobile:!0,paddingBottom:"0"},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"14"},M.createElement(ip,{display:"flex",flexDirection:"row",justifyContent:"space-between"},u&&M.createElement(ip,{width:"30"}),M.createElement(ip,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},M.createElement(aK,{as:"h1",color:"modalText",id:c,size:u?"20":"18",weight:"heavy"},s.t("chains.title"))),M.createElement(aZ,{onClose:e})),!d&&M.createElement(ip,{marginX:"8",textAlign:u?"center":"left"},M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),M.createElement(ip,{className:u?"_18dqw9x1":"_18dqw9x0",display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},h.map(({iconBackground:e,iconUrl:t,id:r,name:a},s)=>M.createElement(ox,{key:r,chainId:r,currentChainId:n,switchChain:o,chainIconSize:f,isLoading:i===r,src:t,name:a,iconBackground:e,idx:s})),!d&&M.createElement(M.Fragment,null,M.createElement(ip,{background:"generalBorderDim",height:"1",marginX:"8"}),M.createElement(oC,{onClick:()=>l(),testId:"chain-option-disconnect"},M.createElement(ip,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:f},M.createElement(ip,{alignItems:"center",color:"error",height:f,justifyContent:"center",marginRight:"8"},M.createElement(ov,{size:Number(f)})),M.createElement("div",null,s.t("chains.disconnect"))))))))))):null}var oE="rk-latest-id";function ok(e){"u">typeof window&&window.localStorage.setItem(oE,e)}var oj=({children:e,href:t})=>M.createElement(ip,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),oB=({children:e})=>M.createElement(aK,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function oI({compactModeEnabled:e=!1,getWallet:t}){let{disclaimer:n,learnMoreUrl:r}=(0,M.useContext)(aC),{i18n:i}=(0,M.useContext)(iP);return M.createElement(M.Fragment,null,M.createElement(ip,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},M.createElement(ip,{marginBottom:"10"},!e&&M.createElement(aK,{color:"modalText",size:"18",weight:"heavy"},i.t("intro.title"))),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},M.createElement(ip,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},M.createElement(a$,null)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},i.t("intro.digital_asset.title")),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.digital_asset.description")))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},M.createElement(ip,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},M.createElement(a_,null)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},i.t("intro.login.title")),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.login.description"))))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},M.createElement(aJ,{label:i.t("intro.get.label"),onClick:t}),M.createElement(ip,{as:"a",className:ir({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},M.createElement(aK,{color:"accentColor",size:"14",weight:"bold"},i.t("intro.learn_more.label")))),n&&!e&&M.createElement(ip,{marginBottom:"8",marginTop:"12",textAlign:"center"},M.createElement(n,{Link:oj,Text:oB}))))}var oS=()=>M.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Back"),M.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.912
16101 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),oP=()=>M.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},M.createElement("title",null,"Info"),M.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),oO=({"aria-label":e="Info",onClick:t})=>{let n=id();return M.createElement(ip,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:ir({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},M.createElement(oP,null))},oT=e=>{let t=(0,M.useRef)(null),n=(0,M.useContext)(ax),r=iy(e);return(0,M.useEffect)(()=>{if(n&&t.current&&r){var e,i;let n,a,o,s,l,c,u,d,f,h,p,m,b,g;return e=t.current,i=r,oM++,a=[15,20,25,35,45],o=[],s=!1,l=0,c=0,u=(()=>{let e="_rk_coolMode",t=document.getElementById(e);if(t)return t;let n=document.createElement("div");return n.setAttribute("id",e),n.setAttribute("style","overflow:hidden;position:fixed;height:100%;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:2147483647"),document.body.appendChild(n),n})(),!function e(){let t,r,d,f,h,p,m,b,g,w;for(let e of(s&&o.length<35&&(t=a[Math.floor(Math.random()*a.length)],r=10*Math.random(),d=25*Math.random(),f=360*Math.random(),h=35*Math.random()*(.5>=Math.random()?-1:1),p=c-t/2,m=l-t/2,b=.5>=Math.random()?-1:1,g=document.createElement("div"),(w=document.createElement("img")).src=i,w.width=t,w.height=t,w.style.borderRadius="25%",g.appendChild(w),g.setAttribute("style",`position:absolute;will-change:transform;top:${p}px;left:${m}px;transform:rotate(${f}deg)`),u.appendChild(g),o.push({direction:b,element:g,left:m,size:t,speedHorz:r,speedUp:d,spinSpeed:h,spinVal:f,top:p})),o))e.left=e.left-e.speedHorz*e.direction,e.top=e.top-e.speedUp,e.speedUp=Math.min(e.size,e.speedUp-1),e.spinVal=e.spinVal+e.spinSpeed,e.top>=Math.max(window.innerHeight,document.body.clientHeight)+e.size&&(o=o.filter(t=>t!==e),e.element.remove()),e.element.setAttribute("style",`position:absolute;will-change:transform;top:${e.top}px;left:${e.left}px;transform:rotate(${e.spinVal}deg)`);n=requestAnimationFrame(e)}(),f=(d="ontouchstart"in window||navigator.msMaxTouchPoints)?"touchstart":"mousedown",h=d?"touchend":"mouseup",p=d?"touchmove":"mousemove",m=e=>{"touches"in e?(l=e.touches?.[0].clientX,c=e.touches?.[0].clientY):(l=e.clientX,c=e.clientY)},b=e=>{m(e),s=!0},g=()=>{s=!1},e.addEventListener(p,m,{passive:!1}),e.addEventListener(f,b),e.addEventListener(h,g),e.addEventListener("mouseleave",g),()=>{e.removeEventListener(p,m),e.removeEventListener(f,b),e.removeEventListener(h,g),e.removeEventListener("mouseleave",g);let t=setInterval(()=>{n&&0===o.length&&(cancelAnimationFrame(n),clearInterval(t),0==--oM&&u.remove())},500)}}},[n,r]),t}
1610,oM=0,oF=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:i,onClick:a,ready:o,recent:s,testId:l,isRainbowKitConnector:c,...u})=>{let d=oT(r),[f,h]=M.useState(!1),{i18n:p}=M.useContext(iP);return M.createElement(ip,{display:"flex",flexDirection:"column",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),ref:d},M.createElement(ip,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:["g5kl0l0",ir({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:l,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...u},M.createElement(ip,{color:t?"accentColorForeground":"modalText",disabled:!o,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},M.createElement(iv,{background:n,...!f&&c?{borderColor:"actionButtonBorder"}:{},useAsImage:!c,borderRadius:"6",height:"28",src:r,width:"28"}),M.createElement(ip,null,M.createElement(ip,{style:{marginTop:s?-2:void 0},maxWidth:"200"},i),s&&M.createElement(aK,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},p.t("connect.recent")))))))};oF.displayName="ModalSelection";var oR=(e,t=1)=>{let n=e.replace("#","");3===n.length&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);let r=Number.parseInt(n.substring(0,2),16),i=Number.parseInt(n.substring(2,4),16),a=Number.parseInt(n.substring(4,6),16);return`rgba(${r},${i},${a},${t>1&&t<=100?t/100:t})`},oN=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),oD=async()=>(await n.e(5244).then(n.bind(n,55244))).default,oU=()=>M.createElement(iv,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:oD,width:"48"}),oL=async()=>(await n.e(7590).then(n.bind(n,27590))).default,oq=()=>M.createElement(iv,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:oL,width:"48"}),oW=async()=>(await n.e(2522).then(n.bind(n,52522))).default,oz=()=>M.createElement(iv,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:oW,width:"48"}),oQ=async()=>(await n.e(3074).then(n.bind(n,53074))).default,oG=()=>M.createElement(iv,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:oQ,width:"48"});function o$({ecc:e="medium",logoBackground:t,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){let o=i-2*Number.parseInt("20",10),s=iy(r);return M.createElement(ip,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:"_1vwt0cg0",padding:"20",width:"max"},M.createElement(ip,{style:{height:o,userSelect:"none",width:o},userSelect:"none"},M.createElement(rT.Root,{errorCorrection:e,size:o,value:a},M.createElement(rT.Cells,{className:void 0,fill:"currentColor",filter:void 0,radius:1}),M.createElement(rT.Finder,{className:void 0,fill:"currentColor",radius:.25,stroke:void 0}),s&&M.createElement(rT.Arena,null,M.createElement("img",{alt:"Wallet Logo",src:s,style:{backgroundColor:t,borderRadius:"22.5%",height:"88%",objectFit:"cover",width:"88%"}})))))}var oH=async()=>{switch(aT()){case"Arc":return(await n.e(662).then(n.bind(n,50662))).default;case"Brave":return(await n.e(6540).then(n.bind(n,86540))).default;case"Chrome":return(await n.e(3959).then(n.bind(n,46340))).default;case"Edge":return(await n.e(897).then(n.bind(n,60897))).default;case"Firefox":return(await n.e(1813).then(n.bind(n,61813))).default;case"Opera":return(await n.e(4849).then(n.bind(n,24849))).default;case"Safari":return(await n.e(7801).then(n.bind(n,50182))).default;default:return(await n.e(6541).then(n.bind(n,66541))).default}},o_=async()=>{switch(aF()){case"Windows":return(await n.e(9660).then(n.bind(n,49660))).default;case"macOS":return(await n.e(5951).then(n.bind(n,35951))).default;default:return(await n.e(1272).then(n.bind(n,51272))).default}};function oK({getWalletDownload:e,compactModeEnabled:t}){let n=aQ().filter(e=>e.isRainbowKitConnector).splice(0,5),{i18n:r}=(0,M.useContext)(iP);return M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n?.filter(e=>e.extensionDownloadUrl||e.desktopDownloadUrl||e.qrCode&&e.downloadUrls?.qrCode).map(t=>
1610{let{downloadUrls:n,iconBackground:i,iconUrl:a,id:o,name:s,qrCode:l}=t,c=n?.qrCode&&l,u=!!t.extensionDownloadUrl,d=n?.qrCode&&u,f=n?.qrCode&&!!t.desktopDownloadUrl;return M.createElement(ip,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:t.id,width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},M.createElement(iv,{background:i,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:a,width:"48"}),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"2"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},s),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},d?r.t("get.mobile_and_extension.description"):f?r.t("get.mobile_and_desktop.description"):c?r.t("get.mobile.description"):u?r.t("get.extension.description"):null))),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aJ,{label:r.t("get.action.label"),onClick:()=>e(o),type:"secondary"})))})),M.createElement(ip,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},t?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}function oV({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:i,reconnect:a,wallet:o}){let{downloadUrls:s,iconBackground:l,iconUrl:c,name:u,qrCode:d,ready:f,showWalletConnectModal:h,getDesktopUri:p}=o,m=!!p,b=aO(),{i18n:g}=(0,M.useContext)(iP),w=!!o.extensionDownloadUrl,y=s?.qrCode&&w,v=s?.qrCode&&!!o.desktopDownloadUrl,C=d&&i,x=async()=>{let e=await p?.();window.open(e,b?"_blank":"_self")},A=h?{description:t?g.t("connect.walletconnect.description.compact"):g.t("connect.walletconnect.description.full"),label:g.t("connect.walletconnect.open.label"),onClick:()=>{r(),h()}}:C?{description:g.t("connect.secondary_action.get.description",{wallet:u}),label:g.t("connect.secondary_action.get.label"),onClick:()=>e(y||v?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:E}=aA();return(0,M.useEffect)(()=>{iw(oH),iw(o_)},[]),M.createElement(ip,{display:"flex",flexDirection:"column",height:"full",width:"full"},C?M.createElement(ip,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},M.createElement(o$,{logoBackground:l,logoSize:t?60:72,logoUrl:c,size:t?318:E&&E<768?Math.max(280,Math.min(E-308,382)):382,uri:i})):M.createElement(ip,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},M.createElement(ip,{borderRadius:"10",height:"44",overflow:"hidden"},M.createElement(iv,{useAsImage:!o.isRainbowKitConnector,height:"44",src:c,width:"44"})),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},M.createElement(aK,{color:"modalText",size:"18",weight:"bold"},f?g.t("connect.status.opening",{wallet:u}):w?g.t("connect.status.not_installed",{wallet:u}):g.t("connect.status.not_available",{wallet:u})),!f&&w?M.createElement(ip,{paddingTop:"20"},M.createElement(aJ,{href:o.extensionDownloadUrl,label:g.t("connect.secondary_action.install.label"),type:"secondary"})):null,f&&!C&&M.createElement(M.Fragment,null,M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},M.createElement(aK,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},g.t("connect.status.confirm"))),M.createElement(ip,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?M.createElement(aJ,{label:g.t("connect.secondary_action.retry.label"),onClick:async()=>{m&&x(),a(o)}}):M.createElement(ip,{color:"modalTextSecondary"},M.createElement(iC,null))))))),M.createElement(ip,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},f&&A&&M.createElement(M.Fragment,null,M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},A.description),M.createElement(aJ,{label:A.label,onClick:A.onClick,type:"secondary"}))))}
1610var oJ=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:i,isCompact:a,onAction:o,title:s,url:l,variant:c})=>{let u="browser"===c,d=!u&&n&&(n?[oR(n,.2),oR(n,.14),oR(n,.1)]:null);return M.createElement(ip,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},M.createElement(ip,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&M.createElement(ip,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},M.createElement(ip,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},M.createElement(ip,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},M.createElement(iv,{borderRadius:"full",height:"200",src:i,width:"200"})),M.createElement(ip,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},M.createElement(iv,{borderRadius:"full",height:"200",src:i,width:"200"})))),!u&&d&&M.createElement(ip,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},M.createElement(ip,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[0]} 0%, ${d[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),M.createElement(ip,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),M.createElement(ip,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},M.createElement(ip,null,M.createElement(iv,{height:"60",src:i,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},s),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},t),M.createElement(ip,{marginTop:"14",width:"max"},M.createElement(aJ,{href:l,label:e,onClick:o,size:"medium"})))))};function oY({changeWalletStep:e,wallet:t}){let n=aT(),r=aF(),i="compact"===(0,M.useContext)(aI),{desktop:a,desktopDownloadUrl:o,extension:s,extensionDownloadUrl:l,mobileDownloadUrl:c}=t,{i18n:u}=(0,M.useContext)(iP);return(0,M.useEffect)(()=>{iw(oL),iw(oQ),iw(oW),iw(oD)},[]),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&M.createElement(oJ,{actionLabel:u.t("get_options.extension.download.label",{browser:n}),description:u.t("get_options.extension.description"),iconUrl:oH,isCompact:i,onAction:()=>e(s?.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:u.t("get_options.extension.title",{wallet:t.name,browser:n}),url:l,variant:"browser"}),o&&M.createElement(oJ,{actionLabel:u.t("get_options.desktop.download.label",{platform:r}),description:u.t("get_options.desktop.description"),iconUrl:o_,isCompact:i,onAction:()=>e(a?.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:u.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:o,variant:"desktop"}),c&&M.createElement(oJ,{actionLabel:u.t("get_options.mobile.download.label",{wallet:t.name}),description:u.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:i,onAction:()=>{e("DOWNLOAD")},title:u.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function oZ({changeWalletStep:e,wallet:t}){let{downloadUrls:n,qrCode:r}=t,{i18n:i}=(0,M.useContext)(iP);return(0,M.useEffect)(()=>{iw(oL),iw(oQ)},[]),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},M.createElement(ip,{style:{maxWidth:220,textAlign:"center"}},M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"semibold"},i.t("get_mobile.description"))),M.createElement(ip,{height:"full"},n?.qrCode?M.createElement(o$,{logoSize:0,size:268,uri:n.qrCode}):null),M.createElement(ip,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},M.createElement(aJ,{label:i.t("get_mobile.continue.label"),onClick:()=>e(r?.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var oX={connect:()=>
1610M.createElement(oU,null),create:()=>M.createElement(oq,null),install:e=>M.createElement(iv,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>M.createElement(oz,null),scan:()=>M.createElement(oG,null)};function o0({connectWallet:e,wallet:t}){let{i18n:n}=(0,M.useContext)(iP);return M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.qrCode?.instructions?.steps.map(e=>M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:e.title},M.createElement(ip,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},oX[e.step]?.(t)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},n.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(e.description,void 0,{rawKeyIfTranslationMissing:!0})))))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},M.createElement(aJ,{label:n.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),M.createElement(ip,{as:"a",className:ir({active:"shrink",hover:"grow"}),display:"block",href:t?.qrCode?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},M.createElement(aK,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.mobile.learn_more.label")))))}function o1({wallet:e}){let{i18n:t}=(0,M.useContext)(iP);return M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},e?.extension?.instructions?.steps.map(n=>M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:n.title},M.createElement(ip,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},oX[n.step]?.(e)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},t.t(n.title,void 0,{rawKeyIfTranslationMissing:!0})),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(n.description,void 0,{rawKeyIfTranslationMissing:!0})))))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},M.createElement(aJ,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),M.createElement(ip,{as:"a",className:ir({active:"shrink",hover:"grow"}),display:"block",href:e?.extension?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},M.createElement(aK,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function o6({connectWallet:e,wallet:t}){let{i18n:n}=(0,M.useContext)(iP);return M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.desktop?.instructions?.steps.map(e=>M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:e.title},M.createElement(ip,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},oX[e.step]?.(t)),M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},M.createElement(aK,{color:"modalText",size:"14",weight:"bold"},n.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(e.description,void 0,{rawKeyIfTranslationMissing:!0})))))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},M.createElement(aJ,{label:n.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),M.createElement(ip,{as:"a",className:ir({active:"shrink",hover:"grow"}),display:"block",href:t?.desktop?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},M.createElement(aK,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.desktop.learn_more.label")))))}function o5({onClose:e}){let t,[n,r]=(0,M.useState)(),[i,a]=(0,M.useState)(),[o,s]=(0,M.useState)(),l=!!i?.qrCode&&o,[c,u]=(0,M.useState)(!1),d=(0,M.useContext)(aI)===aj,{disclaimer:f}=(0,M.useContext)(aC),{i18n:h}=(0,M.useContext)(iP),p=aO(),m=(0,M.useRef)(!1),{connector:b}=(0,M.useContext)(aE),g=aQ(!b).filter(e=>e.ready||!!e.extensionDownloadUrl).sort((e,t)=>
1610e.groupIndex-t.groupIndex),w=aQ(),y=function(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]||(n[e]=[]),n[e].push(r))}return n}(g,e=>e.groupName),v=["Recommended","Other","Popular","More","Others","Installed"];(0,M.useEffect)(()=>{b&&!m.current&&(j("CONNECT"),E(b),m.current=!0)},[b]);let C=e=>{u(!1),e.ready&&e?.connect?.()?.catch(()=>{u(!0)})},x=async e=>{let t=g.find(t=>e.id===t.id);t?.getDesktopUri&&setTimeout(async()=>{let e=await t?.getDesktopUri?.();e&&window.open(e,p?"_blank":"_self")},0)},A=async e=>{let t=g.find(t=>e.id===t.id),n=await t?.getQrCodeUri?.();s(n),setTimeout(()=>{a(t),j("CONNECT")},50*!n)},E=async e=>{ok(e.id),e.ready&&(A(e),x(e)),C(e),r(e.id),e.ready||(a(e),j(e?.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},k=()=>{r(void 0),a(void 0),s(void 0)},j=(e,t=!1)=>{t&&"GET"===e&&"GET"===B?k():t||"GET"!==e?t||"CONNECT"!==e||I("CONNECT"):I("GET"),P(e)},[B,I]=(0,M.useState)("NONE"),[S,P]=(0,M.useState)("NONE"),O=null,T=null,F=null;(0,M.useEffect)(()=>{u(!1)},[S,i]);let R=!!(i?.extensionDownloadUrl&&i?.mobileDownloadUrl);switch(S){case"NONE":O=M.createElement(oI,{getWallet:()=>j("GET")});break;case"LEARN_COMPACT":O=M.createElement(oI,{compactModeEnabled:d,getWallet:()=>j("GET")}),T=h.t("intro.title"),F="NONE";break;case"GET":O=M.createElement(oK,{getWalletDownload:e=>{let t=w.find(t=>e===t.id),n=t?.downloadUrls?.qrCode,r=!!t?.desktopDownloadUrl,i=!!t?.extensionDownloadUrl;a(t),n&&(i||r)?j("DOWNLOAD_OPTIONS"):n?j("DOWNLOAD"):r?j("INSTRUCTIONS_DESKTOP"):j("INSTRUCTIONS_EXTENSION")},compactModeEnabled:d}),T=h.t("get.title"),F=d?"LEARN_COMPACT":"NONE";break;case"CONNECT":O=i&&M.createElement(oV,{changeWalletStep:j,compactModeEnabled:d,connectionError:c,onClose:e,qrCodeUri:o,reconnect:C,wallet:i}),T=l&&("WalletConnect"===i.name?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:i.name})),F=d?b?null:"NONE":null,t=d?b?()=>{}:k:()=>{};break;case"DOWNLOAD_OPTIONS":O=i&&M.createElement(oY,{changeWalletStep:j,wallet:i}),T=i&&h.t("get_options.short_title",{wallet:i.name}),F=b?"CONNECT":d?"NONE":B;break;case"DOWNLOAD":O=i&&M.createElement(oZ,{changeWalletStep:j,wallet:i}),T=i&&h.t("get_mobile.title",{wallet:i.name}),F=R?"DOWNLOAD_OPTIONS":B;break;case"INSTRUCTIONS_MOBILE":O=i&&M.createElement(o0,{connectWallet:E,wallet:i}),T=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),F="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":O=i&&M.createElement(o1,{wallet:i}),T=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),F="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":O=i&&M.createElement(o6,{connectWallet:E,wallet:i}),T=i&&h.t("get_options.title",{wallet:d&&i.shortName||i.name}),F="DOWNLOAD_OPTIONS"}return M.createElement(ip,{display:"flex",flexDirection:"row",style:{maxHeight:d?468:504}},(!d||"NONE"===S)&&M.createElement(ip,{className:d?"_1vwt0cg4":"_1vwt0cg3",display:"flex",flexDirection:"column",marginTop:"16"},M.createElement(ip,{display:"flex",justifyContent:"space-between"},d&&f&&M.createElement(ip,{marginLeft:"16",width:"28"},M.createElement(oO,{onClick:()=>j("LEARN_COMPACT")})),d&&!f&&M.createElement(ip,{marginLeft:"16",width:"28"}),M.createElement(ip,{marginLeft:d?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},M.createElement(aK,{as:"h1",color:"modalText",id:"rk_connect_title",size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),d&&M.createElement(ip,{marginRight:"16"},M.createElement(aZ,{onClose:e}))),M.createElement(ip,{className:"_1vwt0cg2 ju367v7a ju367v7v",paddingBottom:"18"},Object.entries(y).map(([e,t])=>t.length>0&&M.createElement(M.Fragment,{key:e},e?M.createElement(ip,{marginBottom:"8",marginTop:"16",marginX:"6"},M.createElement(aK,{color:"Installed"===e?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},v.includes(e)?h.t(`connector_group.${e.toLowerCase()}`):e)):null,M.createElement(ip,{display:"flex",flexDirection:"column",gap:"4"},t.map(e=>M.createElement(oF,{currentlySelected:e.id===n,iconBackground:e.iconBackground,iconUrl:e.iconUrl,key:e.id,name:e.name,onClick:()=>E(e),ready:e.ready,recent:e.recent,testId:`wallet-option-${e.id}`,isRainbowKitConnector:e.isRainbowKitConnector})))))),d&&M.createElement(M.Fragment,null,M.createElement(ip,{background:"generalBorder",height:"1",marginTop:"-1"}),f?M.createElement(ip,{paddingX:"24",paddingY:"16",textAlign:"center"},M.createElement(f,{Link:oj,Text:oB})):M.createElement(ip,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},M.createElement(ip,{paddingY:"4"},M.createElement(aK,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},M.createElement(ip,{className:ir({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>j("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},M.createElement(aK,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(!d||"NONE"!==S)&&M.createElement(M.Fragment,null,!d&&M.createElement(ip,{background:"generalBorder",minWidth:"1",
1610width:"1"}),M.createElement(ip,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},M.createElement(ip,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},M.createElement(ip,{width:"28"},F&&M.createElement(ip,{as:"button",className:ir({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{F&&j(F,!0),t?.()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},M.createElement(oS,null))),M.createElement(ip,{display:"flex",justifyContent:"center",style:{flexGrow:1}},T&&M.createElement(aK,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},T)),M.createElement(aZ,{onClose:e})),M.createElement(ip,{display:"flex",flexDirection:"column",style:{minHeight:d?396:432}},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},O)))))}var o2=({wallet:e})=>M.createElement("svg",{className:"_1am14413",viewBox:"0 0 86 86",width:"86",height:"86"}
1610,M.createElement("title",null,"Loading"),M.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${53.333333333333336} ${320/3}`,strokeDashoffset:160,className:"_1am14412",style:{stroke:e?.iconAccent||"#0D3887"}}));function o3({onClose:e,wallet:t,connecting:n}){let{connect:r,iconBackground:i,iconUrl:a,id:o,name:s,getMobileUri:l,ready:c,shortName:u,showWalletConnectModal:d}=t,f=oT(a),h=(0,M.useRef)(!1),{i18n:p}=(0,M.useContext)(iP),m=(0,M.useCallback)(async()=>{let t=async()=>{let e=await l?.();if(e)if(e&&function({mobileUri:e,name:t}){"u">typeof window&&window.localStorage.setItem(a1,JSON.stringify({href:e.split("?")[0],name:t}))}({mobileUri:e,name:s}),e.startsWith("http")){let t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noreferrer noopener",t.click()}else window.location.href=e};if("walletConnect"!==o&&t(),d){d(),e?.();return}try{await r?.()}catch{}},[r,l,d,e,s,o]);return(0,M.useEffect)(()=>{n&&!h.current&&(m(),h.current=!0)},[n,m]),M.createElement(ip,{as:"button",color:c?"modalText":"modalTextSecondary",disabled:!c,fontFamily:"body",key:o,onClick:m,ref:f,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${o}`,type:"button",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},M.createElement(ip,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?M.createElement(o2,{wallet:t}):null,M.createElement(iv,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),n?null:M.createElement(ip,{display:"flex",flexDirection:"column",textAlign:"center"},M.createElement(aK,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},M.createElement(ip,{as:"span",position:"relative"},u??s,!t.ready&&" (unsupported)")),t.recent&&M.createElement(aK,{color:"accentColor",size:"12",weight:"medium"},p.t("connect.recent")))))}function o8({onClose:e}){let t=aQ().filter(e=>e.isRainbowKitConnector),{disclaimer:n,learnMoreUrl:r}=(0,M.useContext)(aC),i=null,a=null,o=!1,s=null,[l,c]=(0,M.useState)("CONNECT"),{i18n:u}=(0,M.useContext)(iP),d=iu();switch(l){case"CONNECT":i=u.t("connect.title"),o=!0,a=M.createElement(ip,null,M.createElement(ip,{background:"profileForeground",className:"_1am14410",display:"flex",paddingBottom:"20",paddingTop:"6",paddingX:"20",style:{gap:"calc((100% - 40px - 240px + 47px) / 4)"}},t.filter(e=>e.ready).map(t=>M.createElement(ip,{key:t.id,width:"60"},M.createElement(o3,{onClose:e,wallet:t})))),M.createElement(ip,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},M.createElement(aK,{color:"modalText",size:"16",weight:"bold"},u.t("intro.title")),M.createElement(aK,{color:"modalTextSecondary",size:"16"},u.t("intro.description")))),M.createElement(ip,{paddingTop:"32",paddingX:"20"},M.createElement(ip,{display:"flex",gap:"14",justifyContent:"center"},M.createElement(aJ,{label:u.t("intro.get.label"),onClick:()=>c("GET"),size:"large",type:"secondary"}),M.createElement(aJ,{href:r,label:u.t("intro.learn_more.label"),size:"large",type:"secondary"}))),n&&M.createElement(ip,{marginTop:"28",marginX:"32",textAlign:"center"},M.createElement(n,{Link:oj,Text:oB})));break;case"GET":{i=u.t("get.title"),s="CONNECT";let e=t?.filter(e=>e.downloadUrls?.ios||e.downloadUrls?.android||e.downloadUrls?.mobile)?.splice(0,3);a=M.createElement(ip,null,M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},e.map((t,n)=>{let{downloadUrls:r,iconBackground:i,iconUrl:a,name:o}=t;return r?.ios||r?.android||r?.mobile?M.createElement(ip,{display:"flex",gap:"16",key:t.id,paddingX:"20",width:"full"},M.createElement(ip,{style:{minHeight:48,minWidth:48}},M.createElement(iv,{background:i,borderColor:"generalBorder",borderRadius:"10",height:"48",src:a,width:"48"})),M.createElement(ip,{display:"flex",flexDirection:"column",width:"full"},M.createElement(ip,{alignItems:"center",display:"flex",height:"48"},M.createElement(ip,{width:"full"},M.createElement(aK,{color:"modalText",size:"18",weight:"bold"},o)),M.createElement(aJ,{href:(d?r?.ios:r?.android)||r?.mobile,label:u.t("get.action.label"),size:"small",type:"secondary"})),n<e.length-1&&M.createElement(ip,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"}))):null})),M.createElement(ip,{style:{marginBottom:"42px"}}),M.createElement(ip,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},M.createElement(ip,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},M.createElement(aK,{color:"modalText",size:"16",weight:"bold"},u.t("get.looking_for.title")),M.createElement(aK,{color:"modalTextSecondary",size:"16"},u.t("get.looking_for.mobile.description")))))}}return M.createElement(ip,{display:"flex",flexDirection:"column",paddingBottom:"36"},M.createElement(ip,{background:o?"profileForeground":"modalBackgroun
1610d",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},M.createElement(ip,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},s&&M.createElement(ip,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},M.createElement(ip,{alignItems:"center",as:"button",className:ir({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>c(s),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},M.createElement(oS,null))),M.createElement(ip,{marginTop:"4",textAlign:"center",width:"full"},M.createElement(aK,{as:"h1",color:"modalText",id:"rk_connect_title",size:"20",weight:"bold"},i)),M.createElement(ip,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},M.createElement(ip,{style:{marginBottom:-20,marginTop:-20}},M.createElement(aZ,{onClose:e}))))),M.createElement(ip,{display:"flex",flexDirection:"column"},a))}var o7=({onClose:e})=>{let{connector:t}=(0,M.useContext)(aE),{i18n:n}=(0,M.useContext)(iP),r=t?.name||"";return M.createElement(ip,null,M.createElement(ip,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},M.createElement(ip,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},M.createElement(aZ,{onClose:e})),M.createElement(ip,{width:"60"},M.createElement(o3,{onClose:e,wallet:t,connecting:!0})),M.createElement(ip,{marginTop:"20"},M.createElement(aK,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),M.createElement(ip,{maxWidth:"full",marginTop:"8"},M.createElement(aK,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function o4({onClose:e}){let{connector:t}=(0,M.useContext)(aE);return id()?t?M.createElement(o7,{onClose:e}):M.createElement(o8,{onClose:e}):M.createElement(o5,{onClose:e})}function o9({onClose:e,open:t}){let n="rk_connect_title",r=il(),{disconnect:i}=eZ(),{isConnecting:a}=(0,L.F)(),o=M.useCallback(()=>{e(),i()},[e,i]),s=M.useCallback(()=>{a&&i(),e()},[e,i,a]);return"disconnected"===r?M.createElement(ot,{onClose:s,open:t,titleId:n},M.createElement(on,{bottomSheetOnMobile:!0,padding:"0",wide:!0},M.createElement(o4,{onClose:s}))):"unauthenticated"===r?M.createElement(ot,{onClose:o,open:t,titleId:n},M.createElement(on,{bottomSheetOnMobile:!0,padding:"0"},M.createElement(a0,{onClose:o,onCloseModal:e}))):null}function se(){let[e,t]=(0,M.useState)(!1);return{closeModal:(0,M.useCallback)(()=>t(!1),[]),isModalOpen:e,openModal:(0,M.useCallback)(()=>t(!0),[])}}var st=(0,M.createContext)({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function sn({children:e}){let{closeModal:t,isModalOpen:n,openModal:r}=se(),{closeModal:i,isModalOpen:a,openModal:o}=se(),{closeModal:s,isModalOpen:l,openModal:c}=se(),[u,d]=(0,M.useState)(!1),f=il(),{chainId:h}=(0,L.F)(),{chains:p}=(0,W.U)(),m=p.some(e=>
1610e.id===h),b=(0,M.useCallback)(({keepConnectModalOpen:e=!1}={})=>{e||t(),i(),s()},[t,i,s]),g="unauthenticated"===is();return z({onConnect:()=>b({keepConnectModalOpen:g}),onDisconnect:()=>b()}),(0,M.useEffect)(()=>{g&&b()},[g,b]),M.createElement(st.Provider,{value:(0,M.useMemo)(()=>({accountModalOpen:a,chainModalOpen:l,connectModalOpen:n,isWalletConnectModalOpen:u,openAccountModal:m&&"connected"===f?o:void 0,openChainModal:"connected"===f?c:void 0,openConnectModal:"disconnected"===f||"unauthenticated"===f?r:void 0,setIsWalletConnectModalOpen:d}),[f,a,l,n,o,c,r,m,u])},e,M.createElement(o9,{onClose:t,open:n}),M.createElement(oy,{onClose:i,open:a}),M.createElement(oA,{onClose:s,open:l}))}function sr(){let{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=(0,M.useContext)(st);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function si(){let{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=(0,M.useContext)(st);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function sa(){let{connectModalOpen:e,openConnectModal:t}=(0,M.useContext)(st),{isWalletConnectModalOpen:n}=si();return{connectModalOpen:e||n,openConnectModal:t}}var so=()=>{};function ss({children:e}){let t,n=at(),{address:r}=(0,L.F)(),{chainId:i}=(0,L.F)(),{chains:a}=(0,W.U)(),o=a.some(e=>e.id===i),s=(t=i7(),(0,M.useMemo)(()=>{let e={};for(let n of t)e[n.id]=n;return e},[t])),l=is()??void 0,c=i?s[i]:void 0,u=c?.name??void 0,d=c?.iconUrl??void 0,f=c?.iconBackground??void 0,h=iy(d),p=(0,M.useContext)(aP),m=ag().some(({status:e})=>"pending"===e)&&p,{showBalance:b}=ae(),{balance:g,ensAvatar:w,ensName:y}=ac({address:r,includeBalance:"boolean"==typeof b?b:!b||r7(b)[id()?"smallScreen":"largeScreen"]}),v=g?`${oa(Number.parseFloat(g.formatted))} ${g.symbol}`:void 0,{openConnectModal:C}=sa(),{openChainModal:x}=function(){let{chainModalOpen:e,openChainModal:t}=(0,M.useContext)(st);return{chainModalOpen:e,openChainModal:t}}(),{openAccountModal:A}=function(){let{accountModalOpen:e,openAccountModal:t}=(0,M.useContext)(st);return{accountModalOpen:e,openAccountModal:t}}(),{accountModalOpen:E,chainModalOpen:k,connectModalOpen:j}=sr();return M.createElement(M.Fragment,null,e({account:r?{address:r,balanceDecimals:g?.decimals,balanceFormatted:g?.formatted,balanceSymbol:g?.symbol,displayBalance:v,displayName:y?os(y):oo(r),ensAvatar:w??void 0,ensName:y??void 0,hasPendingTransactions:m}:void 0,accountModalOpen:E,authenticationStatus:l,chain:i?{hasIcon:!!d,iconBackground:f,iconUrl:h,id:i,name:u,unsupported:!o}:void 0,chainModalOpen:k,connectModalOpen:j,mounted:n(),openAccountModal:A??so,openChainModal:x??so,openConnectModal:C??so}))}ss.displayName="ConnectButton.Custom";var sl={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function sc({accountStatus:e=sl.accountStatus,chainStatus:t=sl.chainStatus,label:n=sl.label,showBalance:r=sl.showBalance}){let i=i7(),a=il(),{setShowBalance:o}=ae(),[s,l]=(0,M.useState)(!1),{i18n:c}=(0,M.useContext)(iP);return(0,M.useEffect)(()=>{o(r),s||l(!0)},[r,o]),s?M.createElement(ss,null,({account:o,chain:s,mounted:l,openAccountModal:u,openChainModal:d,openConnectModal:f})=>{let h=l&&"loading"!==a,p=s?.unsupported??!1;return M.createElement(ip,{display:"flex",gap:"12",...!h&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},h&&o&&"connected"===a?M.createElement(M.Fragment,null,s&&(i.length>1||p)&&M.createElement(ip,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:p?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ir({active:"shrink",hover:"grow"}),color:p?"connectButtonTextError":"connectButtonText",display:r8(t,e=>"none"===e?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:p?"unsupported":"supported",onClick:d,paddingX:"10",paddingY:"8",testId:p?"wrong-network-button":"chain-button",transition:"default",type:"button"},p?M.createElement(ip,{alignItems:"center",display:"flex",height:"24",paddingX:"4"}
1610,c.t("connect_wallet.wrong_network.label")):M.createElement(ip,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?M.createElement(ip,{display:r8(t,e=>"full"===e||"icon"===e?"block":"none"),height:"24",width:"24"},M.createElement(iv,{alt:s.name??"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,M.createElement(ip,{display:r8(t,e=>"icon"!==e||s.iconUrl?"full"===e||"name"===e?"block":"none":"block")},s.name??s.id)),M.createElement(ij,null)),!p&&M.createElement(ip,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ir({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:u,testId:"account-button",transition:"default",type:"button"},o.displayBalance&&M.createElement(ip,{display:r8(r,e=>e?"block":"none"),padding:"8",paddingLeft:"12"},o.displayBalance),M.createElement(ip,{background:r7(r)[id()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},M.createElement(ip,{alignItems:"center",display:"flex",gap:"6",height:"24"},M.createElement(ip,{display:r8(e,e=>"full"===e||"avatar"===e?"block":"none")},M.createElement(ik,{address:o.address,imageUrl:o.ensAvatar,loading:o.hasPendingTransactions,size:24})),M.createElement(ip,{alignItems:"center",display:"flex",gap:"6"},M.createElement(ip,{display:r8(e,e=>"full"===e||"address"===e?"block":"none")},o.displayName),M.createElement(ij,null)))))):M.createElement(ip,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ir({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:f,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},l&&"Connect Wallet"===n?c.t("connect_wallet.label"):n))}):null}sc.__defaultProps=sl,sc.Custom=ss;var su=({appName:e,appDescription:t,appUrl:n,appIcon:r})=>({name:e,description:t??e,url:n??("u">typeof window?window.location.origin:""),icons:[...r?[r]:[]]}),sd="u"<typeof window,sf=new Map;function sh({projectId:e,walletConnectParameters:t}){if(!e||""===e)throw Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===e&&(e="21fef48091f12692cad574a6f7753643"),n=>(function({projectId:e,walletDetails:t,walletConnectParameters:n}){return(0,rK.U)(r=>({...(({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectModalConnector:r})=>{if(sd)return(0,rV.P)({accounts:["0x0000000000000000000000000000000000000000"]});let i={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};n&&(i={...i,showQrModal:!0}),"customStoragePrefix"in i||(i={...i,customStoragePrefix:r?"clientOne":"clientTwo"});let a=JSON.stringify(i),o=sf.get(a);if(o)return o;let s=(0,rJ.u)(i);return sf.set(a,s),s})({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t}))})({projectId:e,walletDetails:n,walletConnectParameters:t})}function sp(e){let t="u">typeof window?window:void 0;if(void 0===t||void 0===t.ethereum)return;let n=t.ethereum.providers;return n?n.find(t=>t[e]):t.ethereum[e]?t.ethereum:void 0}function sm(e){let t=(e,n)=>{let[r,...i]=n.split("."),a=e[r];if(a)return 0===i.length?a:t(a,i.join("."))};if("u">typeof window)return t(window,e)}var sb=({appName:e,appIcon:t})=>{let{preference:r,...i}=sb;return{id:"base",aliases:["baseAccount"],name:"Base",shortName:"Base",rdns:"app.base.account",iconUrl:async()=>(await n.e(1334).then(n.bind(n,91334))).default,iconAccent:"#0000FF",iconBackground:"#0000FF",installed:!0,createConnector:n=>{let a=(0,rY.$)({appName:e,appLogoUrl:t,...i,preference:{telemetry:!1,...r||{}}});return(0,rK.U)(e=>({...a(e),...n}))}}},sg=({projectId:e,walletConnectParameters:t})=>{var r;let{...i}=sg,a="u">typeof window&&(r=window.ethereum,!!r?.isMetaMask&&(!r.isBraveWallet||!!r._events||!!r._state)&&!r.isApexWallet&&!r.isAvalanche&&!r.isBackpack&&!r.isBifrost&&!r.isBitKeep&&!r.isBitski&&!r.isBinance&&!r.isBlockWallet&&!r.isCoinbaseWallet&&!r.isDawn&&!r.isEnkrypt&&!r.isExodus&&!r.isFrame&&!r.isFrontier&&!r.isGamestop&&!r.isHyperPay&&!r.isImToken&&!r.isKuCoinWallet&&!r.isMathWallet&&!r.isNestWallet&&!r.isOkxWallet&&!r.isOKExWallet&&!r.isOneInchIOSWallet&&!r.isOneInchAndroidWallet&&!r.isOpera&&!r.isPhantom&&!r.isZilPay&&!r.isPortal&&!r.isxPortal&&!r.isRabby&&!r.isRainbow&&!r.isStatus&&!r.isTalisman&&!r.isTally&&!r.isTokenPocket&&!r.isTokenary&&!r.isTrust&&!r.isTrustWallet&&!r.isCTRL&&!r.isZeal&&!r.isCoin98&&!r.isMEWwallet&&!r.isSafeheron&&!r.isSafePal&&!r.isWigwam&&!r.isZerion&&!r.__seif&&!0),o=!a&&!id(),s=a||id();return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await n.e(3674).then(n.bind(n,23674))).default,iconAccent:"#f6851a",iconBackgroun
1610d:"#fff",installed:a||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:s?e=>e:void 0},qrCode:o?{getUri:e=>`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:o?sh({projectId:e,walletConnectParameters:t}):e=>(0,rK.U)(n=>{let r=r5({dappMetadata:{connector:"rainbowkit",name:t?.metadata?.name,iconUrl:t?.metadata?.icons[0],url:t?.metadata?.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1,...i})(n);return{...r,...e,getChainId:async()=>{try{return await r.getChainId()}catch{return n.chains[0]?.id??1}}}})}},sw=({projectId:e,walletConnectParameters:t})=>{let r=function({flag:e,namespace:t}){return!!t&&void 0!==sm(t)||!!e&&void 0!==sp(e)}({flag:"isRainbow"}),i=!r,a=e=>ic()?e:iu()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await n.e(6065).then(n.bind(n,26065))).default,iconBackground:"#0c2f78",installed:i?void 0:r,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:i?a:void 0},qrCode:i?{getUri:a,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:i?sh({projectId:e,walletConnectParameters:t}):function({flag:e,namespace:t,target:n}){var r;return r=n||function({flag:e,namespace:t}){let n="u">typeof window?window:void 0;if(void 0===n)return;if(t){let e=sm(t);if(e)return e}let r=n.ethereum?.providers;if(e){let t=sp(e);if(t)return t}if(!t&&!e)return void 0!==r&&r.length>0?r[0]:n.ethereum}({flag:e,namespace:t}),e=>{let t=r?{target:()=>({id:e.rkDetails.id,name:e.rkDetails.name,provider:r})}:{};return(0,rK.U)(n=>({...(0,rU.b)(t)(n),...e}))}}({flag:"isRainbow"})}},sy=()=>
1610({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await n.e(3225).then(n.bind(n,53225))).default,installed:"u">typeof window&&window?.parent!==window,downloadUrls:{},createConnector:e=>(0,rK.U)(t=>({...(0,r2.g)()(t),...e}))}),sv=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await n.e(8831).then(n.bind(n,28831))).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:sh({projectId:e,walletConnectParameters:t})}),sC=({appName:e,appDescription:t,appUrl:n,appIcon:r,wallets:i,projectId:a,walletConnectParameters:o,...s})=>{let{transports:l,chains:c,...u}=s,d=su({appName:e,appDescription:t,appUrl:n,appIcon:r});return function(e){let t,n,r,i,a,o,s,l,{multiInjectedProviderDiscovery:c=!0,storage:u=function(e){let{deserialize:t=rW,key:n="wagmi",serialize:r=rG,storage:i=r$}=e;function a(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:n,async getItem(e,r){let o=i.getItem(`${n}.${e}`),s=await a(o);return s?t(s)??null:r??null},async setItem(e,t){let o=`${n}.${e}`;null===t?await a(i.removeItem(o)):await a(i.setItem(o,r(t)))},async removeItem(e){await a(i.removeItem(`${n}.${e}`))}}}({storage:(n="u">typeof window&&window.localStorage?window.localStorage:r$,{getItem:e=>n.getItem(e),removeItem(e){n.removeItem(e)},setItem(e,t){try{n.setItem(e,t)}catch{}}})}),syncConnectedChain:d=!0,ssr:f=!1,...h}=e,p="u">typeof window&&c?(r=new Set,i=[],o=(a=()=>(function(e){if("u"<typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(e=>{i.some(({info:t})=>t.uuid===e.info.uuid)||(i=[...i,e],r.forEach(t=>t(i,{added:[e]})))}))(),{_listeners:()=>r,clear(){r.forEach(e=>e([],{removed:[...i]})),i=[]},destroy(){this.clear(),r.clear(),o?.()},findProvider:({rdns:e})=>i.find(t=>t.info.rdns===e),getProviders:()=>i,reset(){this.clear(),o?.(),o=a()},subscribe:(e,{emitImmediately:t}={})=>(r.add(e),t&&e(i,{added:i}),()=>r.delete(e))}):void 0,m=rD(()=>h.chains),b=rD(()=>{let e=[],t=new Set;for(let n of h.connectors??[]){let r=g(n);if(e.push(r),!f&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!f&&p)for(let n of p.getProviders())t.has(n.info.rdns)||e.push(g(y(n)));return e});function g(e){let t=new rq(function(e=11){if(!w||rH+e>512){w="",rH=0;for(let e=0;e<256;e++)w+=(256+256*Math.random()|0).toString(16).substring(1)}return w.substring(rH,rH+++e)}()),n={...e({emitter:t,chains:m.getState(),storage:u,transports:h.transports}),emitter:t,uid:t.uid};return t.on("connect",j),n.setup?.(),n}function y(e){let{info:t}=e,n=e.provider;return(0,rU.b)({target:{...t,id:t.rdns,provider:n}})}let v=new Map;function C(){return{chainId:m.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let x="0.0.0-canary-";t=r_.r.startsWith(x)?Number.parseInt(r_.r.replace(x,""),10):Number.parseInt(r_.r.split(".")[0]??"0",10);let A=rD((l=u?(s={migrate(e,n){if(n===t)return e;let r=C(),i=E(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:a}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=E(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:f,storage:u,version:t},(e,t,n)=>{let r,i={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var n;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(n=t.getItem(e))?n:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n,void 0)),removeItem:e=>t.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...s},a=!1,o=new Set,l=new Set,c=i.storage;if(!c)return C();let u=()=>{let e=i.partialize({...t()});return c.setItem(i.name,{state:e,version:i.version})},d=n.setState;n.setState=(e,t)=>
1610{d(e,t),u()};let f=C();n.getInitialState=()=>f;let h=()=>{var n,s;if(!c)return;a=!1,o.forEach(e=>{var n;return e(null!=(n=t())?n:f)});let d=(null==(s=i.onRehydrateStorage)?void 0:s.call(i,null!=(n=t())?n:f))||void 0;return rR(c.getItem.bind(c))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate)return[!0,i.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(n=>{var a;let[o,s]=n;if(e(r=i.merge(s,null!=(a=t())?a:f),!0),o)return u()}).then(()=>{null==d||d(r,void 0),r=t(),a=!0,l.forEach(e=>e(r))}).catch(e=>{null==d||d(void 0,e)})};return n.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:e=>(o.add(e),()=>{o.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||h(),r||f}):C,(e,t,n)=>{let r=n.subscribe;return n.subscribe=(e,t,i)=>{let a=e;if(t){let r=(null==i?void 0:i.equalityFn)||Object.is,o=e(n.getState());a=n=>{let i=e(n);if(!r(o,i)){let e=o;t(o=i,e)}},(null==i?void 0:i.fireImmediately)&&t(o,o)}return r(a)},l(e,t,n)}));function E(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&m.getState().some(t=>t.id===e.chainId)?e.chainId:t}function k(e){A.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function j(e){"connecting"!==A.getState().status&&"reconnecting"!==A.getState().status&&A.setState(t=>{let n=b.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",k),n.emitter.listenerCount("change")||n.emitter.on("change",k),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",B),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function B(e){A.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",k),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",B),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",j)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return A.setState(C()),d&&A.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(m.getState().some(t=>t.id===e))return A.setState(t=>({...t,chainId:e??t.chainId}))}),p?.subscribe(e=>{let t=new Set,n=new Set;for(let e of b.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let r=[];for(let i of e){if(n.has(i.info.rdns))continue;let e=g(y(i));t.has(e.id)||r.push(e)}(!u||A.persist.hasHydrated())&&b.setState(e=>[...e,...r],!0)}),{get chains(){return m.getState()},get connectors(){return b.getState()},storage:u,getClient:function(e={}){let t,n=e.chainId??A.getState().chainId,r=m.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new tO.nk;{let e=v.get(A.getState().chainId);if(e&&!r)return e;if(!r)throw new tO.nk}{let e=v.get(n);if(e)return e}if(h.client)t=h.client({chain:r});else{let e=r.id,n=m.getState().map(e=>e.id),i={};for(let[t,r]of Object.entries(h))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t)if("object"==typeof r)if(e in r)i[t]=r[e];else{if(n.some(e=>e in r))continue;i[t]=r}else i[t]=r;t=(0,rF.U)({...i,chain:r,batch:i.batch??{multicall:!0},transport:t=>h.transports[e]({...t,connectors:b})})}return v.set(n,t),t},get state(){return A.getState()},setState(e){let t;t="function"==typeof e?e(A.getState()):e;let n=C();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),A.setState(t,!0)},subscribe:(e,t,n)=>A.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:p,async revalidate(){let e=A.getState(),t=e.connections,n=e.current;for(let[,e]of t){let r=e.connector;r.isAuthorized&&await r.isAuthorized()||(t.delete(r.uid),n===r.uid&&(n=null))}A.setState(e=>({...e,connections:t,current:n}))},store:A,ssr:!!f,syncConnectedChain:d,transports:h.transports,chains:{setState(e){let t="function"==typeof e?e(m.getState()):e;if(0!==t.length)return m.setState(t,!0)},subscribe:e=>m.subscribe(e)}
1610,connectors:{providerDetailToConnector:y,setup:g,setState:e=>b.setState("function"==typeof e?e(b.getState()):e,!0),subscribe:e=>b.subscribe(e)},events:{change:k,connect:j,disconnect:B}}}}({connectors:((e,{projectId:t,walletConnectParameters:n,appName:r,appDescription:i,appUrl:a,appIcon:o})=>{if(!e.length)throw Error("No wallet list was provided");for(let{wallets:t,groupName:n}of e)if(!t.length)throw Error(`No wallets provided for group: ${n}`);let s=-1,l=[],c=[],u=[],d=su({appName:r,appDescription:i,appUrl:a,appIcon:o});for(let[i,{groupName:a,wallets:l}]of e.entries())for(let e of l){s++;let l=e({projectId:t,appName:r,appIcon:o,options:{metadata:d,...n},walletConnectParameters:{metadata:d,...n}});if(l?.iconAccent&&!oN(l?.iconAccent))throw Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);let f={...l,groupIndex:i+1,groupName:a,index:s};"function"==typeof l.hidden?u.push(f):c.push(f)}for(let{createConnector:e,groupIndex:t,groupName:n,hidden:r,...i}of function(e){let t=[];for(let n of e)t.some(e=>e.id===n.id)||t.push(n);return t}([...c,...u])){if("function"==typeof r&&r())continue;let a=e=>({rkDetails:Object.fromEntries(Object.entries({...i,groupIndex:t,groupName:n,isRainbowKitConnector:!0,...e||{}}).filter(([e,t])=>void 0!==t))});"walletConnect"===i.id&&l.push(e(a({isWalletConnectModalConnector:!0,showQrModal:!0})));let o=e(a());l.push(o)}return l})(i||[{groupName:"Popular",wallets:[sy,sw,sb,sg,sv]}],{projectId:a,appName:e,appDescription:t,appUrl:n,appIcon:r,walletConnectParameters:{metadata:d,...o}}),chains:c,transports:l||c.reduce((e,t)=>(e[t.id]=(0,rM.L)(),e),{}),...u})}},26563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r=n(37876);n(17211),n(15368);var i=n(77328),a=n.n(i),o=n(14232),s=n(37149),l=n(98275),c=n(60388),u=n(18070),d=n(90089),f=n(21407),h=class extends d.Q{#l;#c;#u;constructor(e={}){super(),this.config=e,this.#l=new Set,this.#c=new Map,this.#u=0}build(e,t,n){let r=new f.s({client:e,mutationCache:this,mutationId:++this.#u,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#l.add(e);let t=p(e);if("string"==typeof t){let n=this.#c.get(t);n?n.push(e):this.#c.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#l.delete(e)){let t=p(e);if("string"==typeof t){let n=this.#c.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#c.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=p(e);if("string"!=typeof t)return!0;{let n=this.#c.get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=p(e);return"string"==typeof t?this.#c.get(t)?.find(t=>
1610t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){c.jG.batch(()=>{this.#l.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#l.clear(),this.#c.clear()})}getAll(){return Array.from(this.#l)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,s.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,s.nJ)(e,t))}notify(e){c.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return c.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(s.lQ))))}};function p(e){return e.options.scope?.id}var m=n(43632),b=class extends d.Q{#d;constructor(e={}){super(),this.config=e,this.#d=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??(0,s.F$)(r,t),a=this.get(i);return a||(a=new m.X({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#d.has(e.queryHash)||(this.#d.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#d.get(e.queryHash);t&&(e.destroy(),t===e&&this.#d.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){c.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#d.get(e)}getAll(){return[...this.#d.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,s.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,s.MK)(e,t)):t}notify(e){c.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){c.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){c.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},g=class{#f;#a;#h;#p;#m;#b;#g;#w;constructor(e={}){this.#f=e.queryCache||new b,this.#a=e.mutationCache||new h,this.#h=e.defaultOptions||{},this.#p=new Map,this.#m=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#g=l.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#f.onFocus())}),this.#w=u.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#f.onOnline())}))}unmount(){this.#b--,0===this.#b&&(this.#g?.(),this.#g=void 0,this.#w?.(),this.#w=void 0)}isFetching(e){return this.#f.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#f.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#f.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,s.GF)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#f.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#f.get(r.queryHash)?.state.data,a=(0,s.Zw)(t,i);if(void 0!==a)return this.#f.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return c.jG.batch(()=>this.#f.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#f.get(t.queryHash)?.state}removeQueries(e){let t=this.#f;c.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#f;return c.jG.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(c.jG.batch(()=>this.#f.findAll(e).map(e=>e.cancel(n)))).then(s.lQ).catch(s.lQ)}invalidateQueries(e,t={}){return c.jG.batch(()=>(this.#f.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(c.jG.batch(()=>this.#f.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(s.lQ)}async query(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#f.build(this,t),r=n.isStaleByTime((0,s.GF)(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#f.build(this,t);return n.isStaleByTime((0,s.GF)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s.lQ).catch(s.lQ)}infiniteQuery(e){return e._type="infinite",this.query(e)}
1610fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s.lQ).catch(s.lQ)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return u.t.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#f}getMutationCache(){return this.#a}getDefaultOptions(){return this.#h}setDefaultOptions(e){this.#h=e}setQueryDefaults(e,t){this.#p.set((0,s.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#p.values()],n={};return t.forEach(t=>{(0,s.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#m.set((0,s.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#m.values()],n={};return t.forEach(t=>{(0,s.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#h.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,s.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===s.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#h.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#f.clear(),this.#a.clear()}},w=n(67768),y=n(17477),v=n(26268),C=n(80585),x="#1A1B1F",A={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:x},orange:{accentColor:"#FF983D",accentColorForeground:x},pink:{accentColor:"#FF7AB8",accentColorForeground:x},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},E=A.blue,k=({accentColor:e=E.accentColor,accentColorForeground:t=E.accentColorForeground,...n}={})=>({...(0,C.$)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:x,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackgroun
1610d:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});k.accentColors=A;var j=n(92783),B=n(46361),I=n(82749),S=n(45774),P=n(8759),O=n(14437),T=n(61060);function M(e){let t="u">typeof window?window:void 0;if(void 0===t||void 0===t.ethereum)return;let n=t.ethereum.providers;return n?n.find(t=>t[e]):t.ethereum[e]?t.ethereum:void 0}function F(e){let t=(e,n)=>{let[r,...i]=n.split("."),a=e[r];if(a)return 0===i.length?a:t(a,i.join("."))};if("u">typeof window)return t(window,e)}var R=n(16891),N=n(90581),D="u"<typeof window,U=new Map;function L({projectId:e,walletConnectParameters:t}){if(!e||""===e)throw Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===e&&(e="21fef48091f12692cad574a6f7753643"),n=>(function({projectId:e,walletDetails:t,walletConnectParameters:n}){return(0,P.U)(r=>({...(({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectModalConnector:r})=>{if(D)return(0,R.P)({accounts:["0x0000000000000000000000000000000000000000"]});let i={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};n&&(i={...i,showQrModal:!0}),"customStoragePrefix"in i||(i={...i,customStoragePrefix:r?"clientOne":"clientTwo"});let a=JSON.stringify(i),o=U.get(a);if(o)return o;let s=(0,N.u)(i);return U.set(a,s),s})({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t}))})({projectId:e,walletDetails:n,walletConnectParameters:t})}var q=n(55712),W=({appName:e,appIcon:t})=>{let{preference:r,...i}=W;return{id:"base",aliases:["baseAccount"],name:"Base",shortName:"Base",rdns:"app.base.account",iconUrl:async()=>(await n.e(695).then(n.bind(n,10695))).default,iconAccent:"#0000FF",iconBackground:"#0000FF",installed:!0,createConnector:n=>{let a=(0,q.$)({appName:e,appLogoUrl:t,...i,preference:{telemetry:!1,...r||{}}});return(0,P.U)(e=>({...a(e),...n}))}}},z=n(57939),Q=n(55e3),G=n(59017),$=n(65364);let H=$.env.NEXT_PUBLIC_BSC_RPC_URL||z.N.rpcUrls.default.http[0],_=$.env.NEXT_PUBLIC_BASE_RPC_URL||Q.E.rpcUrls.default.http[0],K=[{groupName:"Popular",wallets:[()=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await n.e(3484).then(n.bind(n,13484))).default,installed:"u">typeof window&&window?.parent!==window,downloadUrls:{},createConnector:e=>(0,P.U)(t=>({...(0,O.g)()(t),...e}))}),({projectId:e,walletConnectParameters:t})=>{let r=function({flag:e,namespace:t}){return!!t&&void 0!==F(t)||!!e&&void 0!==M(e)}({flag:"isRainbow"}),i=!r,a=e=>"u">typeof navigator&&/android/i.test(navigator.userAgent)?e:"u">typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"u">typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await n.e(182).then(n.bind(n,182))).default,iconBackground:"#0c2f78",installed:i?void 0:r,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:i?a:void 0},qrCode:i?{getUri:a,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:i?L({projectId:e,walletConnectParameters:t}):function({flag:e,namespace:t,target:n}){var r;return r=n||function({flag:e,namespace:t}){let n="u">typeof window?window:void 0;if(void 0===n)return;if(t){let e=F(t);if(e)return e}let r=n.ethereum?.providers;if(e){let t=M(e);if(t)return t}if(!t&&!e)return void 0!==r&&r.length>0?r[0]:n.ethereum}({flag:e,namespace:t}),e=>{let t=r?{target:()=>({id:e.rkDetails.id,name:e.rkDetails.name,provider:r})}:{};return(0,P.U)(n=>({...(0,T.b)(t)(n),...e}))}}({flag:"isRainbow"})}},W,({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>
1610(await n.e(6176).then(n.bind(n,16176))).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:L({projectId:e,walletConnectParameters:t})})]}],V=(0,v.Y8)({appName:"PlaysOut Arcade",appDescription:"PlaysOut Arcade Games Platform",appUrl:"https://live.playsout.com",appIcon:"https://live.playsout.com/assets/playsout-icon.png",projectId:"bd23a6465dd95ff1252f1ab75f33711c",walletConnectParameters:{qrModalOptions:{explorerExcludedWalletIds:["c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96"],themeVariables:{"--wcm-z-index":"2147483647"}}},multiInjectedProviderDiscovery:!1,wallets:K,chains:[z.N,Q.E],transports:{[z.N.id]:(0,G.L)(H),[Q.E.id]:(0,G.L)(_)},ssr:!0}),J=new g,Y="playsout-eruda-debug",Z=function({Component:e,pageProps:t}){return(0,o.useEffect)(()=>{if("129299"!==new URLSearchParams(window.location.search).get("debug"))return;let e=window,t=()=>{e.eruda&&"true"!==document.documentElement.dataset.erudaInitialized&&(e.eruda.init(),document.documentElement.dataset.erudaInitialized="true")};if(e.eruda)return void t();if(document.getElementById(Y))return;let n=document.createElement("script");n.id=Y,n.src="https://cdn.jsdelivr.net/npm/[email protected]/eruda.min.js",n.async=!0,n.onload=t,n.onerror=()=>n.remove(),document.body.appendChild(n)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a(),{children:(0,r.jsx)("link",{rel:"icon",type:"image/png",href:(0,I.h)("/assets/playsout-favicon.png")})}),(0,r.jsx)(y.x,{config:V,children:(0,r.jsx)(w.Ht,{client:J,children:(0,r.jsx)(B.i,{children:(0,r.jsx)(j.Z,{children:(0,r.jsx)(v.qL,{theme:k(),children:(0,r.jsx)(S.U,{children:(0,r.jsx)(e,{...t})})})})})})})]})}},26715:(e,t,n)=>{"use strict";n.d(t,{Af:()=>f,ZJ:()=>c,aT:()=>d});var r=n(76200),i=n(65859),a=n(80403),o=n(16006),s=n(81645);let l=new TextEncoder;function c(e,t={}){var n,r;return"number"==typeof e||"bigint"==typeof e?(n=e,r=t,d((0,s.cK)(n,r))):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,o.Sl)(n,{size:t.size}),(0,a.eV)(n,{size:t.size})):n}(e,t):(0,i.q)(e)?d(e,t):f(e,t)}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function d(e,t={}){let n=e;t.size&&((0,o.Sl)(n,{size:t.size}),n=(0,a.eV)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,l=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let n=u(i.charCodeAt(t++)),a=u(i.charCodeAt(t++));if(void 0===n||void 0===a)throw new r.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*n+a}return l}function f(e,t={}){let n=l.encode(e);return"number"==typeof t.size?((0,o.Sl)(n,{size:t.size}),(0,a.eV)(n,{dir:"right",size:t.size})):n}},26949:(e,t,n)=>{"use strict";n.d(t,{b:()=>function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,i;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if("function"==typeof t.valueOf&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()===n.toString();let a=Object.keys(t);if((r=a.length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.hasOwn(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}})},27027:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});let r=[];function i(e){let t=e.connectors;return r.length===t.length&&r.every((e,n)=>e===t[n])?r:(r=t,t)}var a=n(14232),o=n(61511);function s(e={}){let t=(0,o.U)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>i(t),()=>i(t))}},27575:(e,t,n)=>{"use strict";n.d(t,{i:()=>E});var r=n(75977),i=n(76200);class a extends i.C{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 o extends i.C{constructor({reason:e}
vendor: 1,569 bytes, line 1610
1610){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends i.C{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 l extends i.C{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}i.C;let c=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,u=/^(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>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function h(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 p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),a=e.match(c),{protocol:o,subpath:l,target:h,subtarget:b=""}=a?.groups||{},g="ipns:/"===o||"ipns/"===l,w="ipfs:/"===o||"ipfs/"===l||u.test(e);
1610if(e.startsWith("http")&&!g&&!w){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((g||w)&&h)return{uri:`${r}/${g?"ipns":"ipfs"}/${h}${b}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&h)return{uri:`${i}/${h}${b||""}`,isOnChain:!1,isEncoded:!1};let y=e.replace(f,"");if(y.startsWith("<svg")&&(y=`data:image/svg+xml;base64,${btoa(y)}`),y.startsWith("data:")||y.startsWith("{"))return{uri:y,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function b(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new a({data:e});return e.image||e.image_url||e.image_data}async function g({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await w({gatewayUrls:e,uri:b(n)})}catch{throw new s({uri:t})}}async function w({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=m({uri:t,gatewayUrls:e});if(r||await h(n))return n;throw new s({uri:t})}async function y(e,{nft:t}){if("erc721"===t.namespace)return(0,r.J)(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,r.J)(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 l({namespace:t.namespace})}async function v(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?C(e,{gatewayUrls:t,record:n}):w({uri:n,gatewayUrls:t})}async function C(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,s]=n.split(":"),[l,c]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new o({reason:"Only EIP-155 supported"});if(!s)throw new o({reason:"Chain ID not found"});if(!c)throw new o({reason:"Contract address not found"});if(!i)throw new o({reason:"Token ID not found"});if(!l)throw new o({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:l.toLowerCase(),contractAddress:c,tokenID:i}}(n),{uri:i,isOnChain:a,isEncoded:s}=m({uri:await y(e,{nft:r}),gatewayUrls:t});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return w({uri:b(JSON.parse(s?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let l=r.tokenID;return"erc1155"===r.namespace&&(l=l.replace("0x","").padStart(64,"0")),g({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,l)})}var x=n(8481),A=n(2397);async function E(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:a,strict:o,universalResolverAddress:s}){let l=await (0,x.T)(e,A.m,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:a,strict:o});if(!l)return null;try{return await v(e,{record:l,gatewayUrls:r})}catch{return null}}},27761:(e,t,n)=>{"use strict";n.d(t,{X9:()=>o,s7:()=>i,x8:()=>a});var r=n(94817);class i extends r.C{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.C{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class o extends r.C{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"})}}},29429:(e,t,n)=>{"use strict";var r=n(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),o(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},30817:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(26949),i=n(19972);function a(e,t){let{onChange:n}=t;return e.subscribe(()=>
1610(0,i.s)(e),n,{equalityFn(e,t){let{connector:n,...i}=e,{connector:a,...o}=t;return(0,r.b)(i,o)&&n?.id===a?.id&&n?.uid===a?.uid}})}},31168:(e,t,n)=>{"use strict";n.d(t,{secp256k1:()=>h});var r=n(62777),i=n(68139),a=n(57551);let o=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),s=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),l=BigInt(0),c=BigInt(1),u=BigInt(2),d=(e,t)=>(e+t/u)/t,f=(0,a.D0)(o,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),s=BigInt(23),l=BigInt(44),c=BigInt(88),d=e*e*e%o,h=d*d*e%o,p=(0,a.zH)(h,t,o)*h%o,m=(0,a.zH)(p,t,o)*h%o,b=(0,a.zH)(m,u,o)*d%o,g=(0,a.zH)(b,r,o)*b%o,w=(0,a.zH)(g,i,o)*g%o,y=(0,a.zH)(w,l,o)*w%o,v=(0,a.zH)(y,c,o)*y%o,C=(0,a.zH)(v,l,o)*w%o,x=(0,a.zH)(C,t,o)*h%o,A=(0,a.zH)(x,s,o)*g%o,E=(0,a.zH)(A,n,o)*d%o,k=(0,a.zH)(E,u,o);if(!f.eql(f.sqr(k),e))throw Error("Cannot find square root");return k}}),h=(0,i.s)({a:l,b:BigInt(7),Fp:f,n:s,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-c*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=d(t*e,s),l=d(-n*e,s),u=(0,a.zi)(e-o*t-l*r,s),f=(0,a.zi)(-o*n-l*t,s),h=u>i,p=f>i;if(h&&(u=s-u),p&&(f=s-f),u>i||f>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:h,k1:u,k2neg:p,k2:f}}}},r.sc)},32544:(e,t,n)=>{"use strict";n.d(t,{b:()=>u,o:()=>c});var r=n(45755),i=n(26715),a=n(74517),o=n(52474),s=n(57512);let l=new o.A(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.S)((0,i.Af)(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 l.set(`${e}.${t}`,s),s}function u(e,t){if(!(0,s.P)(e,{strict:!1}))throw new r.M({address:e});return c(e,t)}},32602:(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,{J:()=>r})},32942:(e,t,n)=>{"use strict";n.d(t,{PK:()=>l,iq:()=>a,uP:()=>s,zF:()=>o});var r=n(90153),i=n(76200);class a extends i.C{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class s extends i.C{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class l extends i.C{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.E}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},33450:(e,t,n)=>{"use strict";n.d(t,{YE:()=>a,qD:()=>o,rj:()=>i});var r=n(76200);class i extends r.C{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"})}}r.C,r.C;class a extends r.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class o extends r.C{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
1610" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},34472:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(76200);class i extends r.C{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}r.C},34597:(e,t,n)=>{"use strict";n.d(t,{n:()=>p});var r=n(83878),i=n(1855),a=n(8481),o=n(71503),s=n(3190),l=n(44439),c=n(40474),u=n(2774),d=n(75087),f=n(845),h=n(84194);async function p(e,t){let n,p,m,b,g,{checkReplacement:w=!0,confirmations:y=1,hash:v,onReplaced:C,retryCount:x=6,retryDelay:A=({count:e})=>200*~~(1<<e),timeout:E=18e4}=t,k=(0,c.A)(["waitForTransactionReceipt",e.uid,v]),j=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,B=!1,{promise:I,resolve:S,reject:P}=(0,s.Y)(),O=E?setTimeout(()=>{g?.(),b?.(),P(new i.WA({hash:v}))},E):void 0;return b=(0,o.lB)(k,{onReplaced:C,resolve:S,reject:P},async t=>{if((m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:v}).catch(()=>void 0))&&y<=1){clearTimeout(O),t.resolve(m),b?.();return}g=(0,a.T)(e,h.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:j,async onBlockNumber(o){let s=e=>{clearTimeout(O),g?.(),e(),b?.()},c=o;if(!B)try{if(m){if(y>1&&(!m.blockNumber||c-m.blockNumber+1n<y))return;s(()=>t.resolve(m));return}if(w&&!n&&(B=!0,await (0,l.b)(async()=>{(n=await (0,a.T)(e,d.x,"getTransaction")({hash:v})).blockNumber&&(c=n.blockNumber)},{delay:A,retryCount:x}),B=!1),m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:v}),y>1&&(!m.blockNumber||c-m.blockNumber+1n<y))return;s(()=>t.resolve(m))}catch(o){if(o instanceof i.Kz||o instanceof i.Kc){if(!n){B=!1;return}try{p=n,B=!0;let i=await (0,l.b)(()=>(0,a.T)(e,u.g,"getBlock")({blockNumber:c,includeTransactions:!0}),{delay:A,retryCount:x,shouldRetry:({error:e})=>e instanceof r.l});B=!1;let o=i.transactions.find(({from:e,nonce:t})=>e===p.from&&t===p.nonce);if(!o||(m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:o.hash}),y>1&&(!m.blockNumber||c-m.blockNumber+1n<y)))return;let d="replaced";o.to===p.to&&o.value===p.value&&o.input===p.input?d="repriced":o.from===o.to&&0n===o.value&&(d="cancelled"),s(()=>{t.onReplaced?.({reason:d,replacedTransaction:p,transaction:o,transactionReceipt:m}),t.resolve(m)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(o))}}})}),I}},34724:(e,t,n)=>{"use strict";n.d(t,{T:()=>x});var r=n(10924),i=n(91633),a=n(57616),o=n(93778),s=n(15488),l=n(76200),c=n(33450),u=n(57353),d=n(94833),f=n(13003),h=n(14237),p=n(49048),m=n(81645),b=n(81873),g=n(35884),w=n(94770),y=n(44050),v=n(45710),C=n(39575);async function x(e,t){let{account:o=e.account,authorizationList:d,batch:h=!!e.batch?.multicall,blockNumber:p,blockTag:y=e.experimental_blockTag??"latest",accessList:x,blobs:k,blockOverrides:j,code:B,data:I,factory:S,factoryData:P,gas:O,gasPrice:T,maxFeePerBlobGas:M,maxFeePerGas:F,maxPriorityFeePerGas:R,nonce:N,to:D,value:U,stateOverride:L,...q}=t,W=o?(0,a.J)(o):void 0;if(B&&(S||P))throw new l.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(B&&D)throw new l.C("Cannot provide both `code` & `to` as parameters.");let z=B&&I,Q=S&&P&&D&&I,G=z||Q,$=z?E({code:B,data:I}):Q?function(e){let{data:t,factory:n,factoryData:i,to:a}=e;return(0,f.m)({abi:(0,r.U)(["constructor(address, bytes, address, bytes)"]),bytecode:s.WN,args:[a,t,n,i]})}({data:I,factory:S,factoryData:P,to:D}):I;try{let n;(0,C.c)(t);let r=("bigint"==typeof p?(0,m.cK)(p):void 0)||y,a=j?i.J(j):void 0,o=(0,v.yH)(L),s=e.chain?.formatters?.transactionRequest?.format,l=(s||w.Bv)({...(0,g.o)(q,{format:s}),from:W?.address,accessList:x,authorizationList:d,blobs:k,data:$,gas:O,gasPrice:T,maxFeePerBlobGas:M,maxFeePerGas:F,maxPriorityFeePerGas:R,nonce:N,to:G?void 0:D,value:U},"call");if(h&&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:l})&&!o&&!a)try{return await A(e,{...l,blockNumber:p,blockTag:y})}catch(e){if(!(e instanceof c.YE)&&!(e instanceof c.rj))throw e}let u=(n=[l,r],o&&a?[...n,o,a]:o?[...n,o]:a?[...n,{},a]:n),f=await e.request({method:"eth_call",params:u});if("0x"===f)return{data:void 0};return{data:f}}catch(o){let r=function(e){if(!(e instanceof l.C))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:a}=await n.e(1599).then(n.bind(n,61599));if(!1!==e.ccipRead&&r?.slice(0,10)===a&&D)return{data:await i(e,{data:r,to:D})};if(G&&r?.slice(0,10)==="0x101bb98d")throw new u.Po({factory:S});throw(0,b.d)(o,{...t,account:W,chain:e.chain})}}async function A(e,t){let{batchSize:n=1024,deployless:r=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:l=e.experimental_blockTag??"latest",data:f,to:b}=t,g=(()=>
1610{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,p.M)({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new c.YE})(),w=("bigint"==typeof a?(0,m.cK)(a):void 0)||l,{schedule:v}=(0,y.u)({id:`${e.uid}.${w}`,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,h.p)({abi:o.v2,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===g?{data:E({code:s.Ez,data:r})}:{to:g,data:r}},w]});return(0,d.e)({abi:o.v2,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:C,success:x}]=await v({data:f,to:b});if(!x)throw new u.$S({data:C});return"0x"===C?{data:void 0}:{data:C}}function E(e){let{code:t,data:n}=e;return(0,f.m)({abi:(0,r.U)(["constructor(bytes, bytes)"]),bytecode:s.LX,args:[t,n]})}},35794:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(66320),i=n(48080);let a=e=>(0,r.di)((0,i.k)(e),0,4)},35884:(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,{o:()=>r})},36262:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>o,J8:()=>s,MU:()=>l});var r=n(40474),i=n(76200),a=n(9678);class o extends i.C{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.I)(s)}`,e&&`Request body: ${(0,r.A)(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}}i.C;class s extends i.C{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.I)(n)}`,`Request body: ${(0,r.A)(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}),this.code=t.code,this.data=t.data}}i.C;class l extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.I)(t)}`,`Request body: ${(0,r.A)(e)}`],name:"TimeoutError"})}}},37149:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>p,EN:()=>h,F$:()=>f,GF:()=>c,GU:()=>j,MK:()=>u,S$:()=>i,ZM:()=>k,ZZ:()=>A,Zw:()=>o,f8:()=>b,gn:()=>s,hT:()=>E,j3:()=>l,lQ:()=>a,nJ:()=>d,ox:()=>B,pl:()=>C,y9:()=>x,yy:()=>v});var r=n(48306);let i="u"<typeof window||"Deno"in globalThis;function a(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==f(o,t.options))return!1}else if(!p(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!a||!!a(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!p(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!p(e[n],t[n]))return!1;return!0}for(let n of Object.keys(t))if(!p(e[n],t[n]))return!1;return!0}return!1}let m=Object.prototype.hasOwnProperty;function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!y(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(t=>{r.zs.setTimeout(t,e)})}
1610function C(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let i=g(t)&&g(n);if(!i&&!(w(t)&&w(n)))return n;let a=(i?t:Object.keys(t)).length,o=i?n:Object.keys(n),s=o.length,l=i?Array(s):{},c=0;for(let u=0;u<s;u++){let s=i?u:o[u],d=t[s],f=n[s];if(d===f){l[s]=d,(i?u<a:m.call(t,s))&&c++;continue}if(null===d||null===f||"object"!=typeof d||"object"!=typeof f){l[s]=f;continue}let h=e(d,f,r+1);l[s]=h,h===d&&c++}return a===s&&c===a?t:l}(e,t):t}function x(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function A(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}let E=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function j(e,t){return"function"==typeof e?e(...t):!!e}function B(e,t,n){let r,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),i||(i=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}},37744:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,R:()=>o});var r=n(65443),i=n(93505);function a(e,t){let n=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.uP)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,r.q)("block",a)},38047:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(65859);function i(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},38806:(e,t,n)=>{"use strict";e.exports=n(29429)},39151:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var r=n(26715),i=n(81645);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.aT)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.aT)(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.My)(e))}},39575:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(57616),i=n(50136),a=n(45755),o=n(98877),s=n(1855),l=n(57512);function c(e){let{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:u,to:d}=e,f=t?(0,r.J)(t):void 0;if(f&&!(0,l.P)(f.address))throw new a.M({address:f.address});if(d&&!(0,l.P)(d))throw new a.M({address:d});if(void 0!==n&&(void 0!==c||void 0!==u))throw new s.n3;if(c&&c>i.Ao)throw new o.BG({maxFeePerGas:c});if(u&&c&&u>c)throw new o.lN({maxFeePerGas:c,maxPriorityFeePerGas:u})}},39925:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(65859);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,r.q)(t)?t:null}},40097:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var r=n(67768),i=n(14232),a=n(37149),o=n(90089),s=n(60388),l=n(21407),c=class extends o.Q{#r;#y=void 0;#v;#C;constructor(e,t){super(),this.#r=e,this.setOptions(t),this.bindMethods(),this.#x()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#r.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#r.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#v,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#v?.state.status==="pending"&&this.#v.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#v&&(this.#v.addObserver(this),this.#x())}onUnsubscribe(){this.hasListeners()||this.#v?.removeObserver(this)}onMutationUpdate(e){this.#x(),this.#A(e)}getCurrentResult(){return this.#y}reset(){this.#v?.removeObserver(this),this.#v=void 0,this.#x(),this.#A()}mutate(e,t){return this.#C=t,this.#v?.removeObserver(this),this.#v=this.#r.getMutationCache().build(this.#r,this.options),this.#v.addObserver(this),this.#v.execute(e)}#x(){let e=this.#v?.state??(0,l.$)();this.#y={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#A(e){s.jG.batch(()=>
1610{if(this.#C&&this.hasListeners()){let t=this.#y.variables,n=this.#y.context,r={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#C.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#C.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#C.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#C.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#y)})})}};function u(e,t){let n=(0,r.jE)(t),[o]=i.useState(()=>new c(n,e));i.useEffect(()=>{o.setOptions(e)},[o,e]);let l=i.useSyncExternalStore(i.useCallback(e=>o.subscribe(s.jG.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),u=i.useCallback((...e)=>{o.mutate(e[0],e[1]).catch(a.lQ)},[o]);if(l.error&&(0,a.GU)(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}},40474:(e,t,n)=>{"use strict";n.d(t,{A:()=>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)},41262:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(36262),i=n(94254),a=n(40474);let o={current:0,take(){return this.current++},reset(){this.current=0}};function s(e,t={}){return{async request(n){let{body:s,fetchFn:l=t.fetchFn??fetch,onRequest:c=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=n,f={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:p,signal:m}=f;try{let t,n=await (0,i.w)(async({signal:t})=>{let n={...f,body:Array.isArray(s)?(0,a.A)(s.map(e=>({jsonrpc:"2.0",id:e.id??o.take(),...e}))):(0,a.A)({jsonrpc:"2.0",id:s.id??o.take(),...s}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:m||(d>0?t:null)},r=new Request(e,n),i=await c?.(r,n)??{...n,url:e};return await l(i.url??e,i)},{errorInstance:new r.MU({body:s,url:e}),timeout:d,signal:!0});if(u&&await u(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Ci({body:s,details:(0,a.A)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Ci||t instanceof r.MU)throw t;throw new r.Ci({body:s,cause:t,url:e})}}}}},42802:(e,t,n)=>{"use strict";n.d(t,{n:()=>m});var r=n(79313),i=n(32544),a=n(12355),o=n(38047),s=n(66320),l=n(49154),c=n(12748),u=n(16006),d=n(81645);function f(e,t={}){void 0!==t.size&&(0,u.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,u.ME)(n,t)}var h=n(26715),p=n(23414);function m(e,t){let n="string"==typeof t?(0,h.aT)(t):t,m=(0,a.l)(n);if(0===(0,o.E)(n)&&e.length>0)throw new r.O;if((0,o.E)(t)&&32>(0,o.E)(t))throw new r.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,o.E)(t)});let g=0,w=[];for(let t=0;t<e.length;++t){let n=e[t];m.setPosition(g);let[a,o]=function e(t,n,{staticPosition:a}){let o=(0,p.k)(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=b(n),l=0,c=[];for(let r=0;r<o;++r){t.setPosition(a+(s?32*r:l));let[i,o]=e(t,n,{staticPosition:a});l+=o,c.push(i)}return t.setPosition(i+32),[c,32]}if(b(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}){let i=0===n.components.length||n.components.some(({name:e})=>!e),a=i?[]:{},o=0;if(b(n)){let s=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let l=n.components[r];t.setPosition(s+o);let[c,u]=e(t,l,{staticPosition:s});o+=u,a[i?r:l?.name]=c}return t.setPosition(r+32),[a,32]}for(let s=0;s<n.components.length;++s){let l=n.components[s],[c,u]=e(t,l,{staticPosition:r});a[i?s:l?.name]=c,o+=u}return[a,o]}(t,n,{staticPosition:a});if("address"===n.type){let e;return e=t.readBytes(32),[(0,i.o)((0,d.My)((0,s.A1)(e,-20))),32]}if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,u.Sl)(n,{size:t.size}),n=(0,l.B)(n)),n.length>1||n[0]>1)throw new c.xO(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.My)(i),32]}return[(0,d.My)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:a});if(n.type.startsWith("uint")||n.type.startsWith("int")){var h,m;let e,r,i;return h=t,e=(m=n).type.startsWith("int"),r=Number.parseInt(m.type.split("int")[1]||"256",10),i=h.readBytes(32),[r>48?function(e,t={}){void 0!==t.size&&(0,u.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,u.uU)(n,t)}(i,{signed:e}):f(i,{signed:e}),32]}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,u.Sl)(n,{size:t.size}),n=(0,l.B)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,l.B)(i));return e.setPosition(t+32),[a,32]}(t,{staticPosition:a});throw new r.j(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,n,{staticPosition:0});g+=o,w.push(a)}return w}function b(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
vendor: 5,471 bytes, line 1610
1610if("tuple"===t)return e.components?.some(b);let n=(0,p.k)(e.type);return!!(n&&b({...e,type:n[1]}))}},42841:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>g});var r=n(23414),i=n(58798),a=n(81645),o=n(74517),s=n(79313),l=n(45755),c=n(40474),u=n(76200);class d extends u.C{constructor({domain:e}){super(`Invalid domain "${(0,c.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends u.C{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 h extends u.C{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var p=n(57512),m=n(38047),b=n(3796);function g(e){let{domain:t={},message:n,primaryType:r}=e,c={EIP712Domain:function({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)}({domain:t}),...e.types};!function(e){let{domain:t,message:n,primaryType:r,types:i}=e,o=(e,t)=>{for(let n of e){let{name:e,type:r}=n,c=t[e],u=r.match(b.Ge);if(u&&("number"==typeof c||"bigint"==typeof c)){let[e,t,n]=u;(0,a.cK)(c,{signed:"int"===t,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof c&&!(0,p.P)(c))throw new l.M({address:c});let d=r.match(b.BD);if(d){let[e,t]=d;if(t&&(0,m.E)(c)!==Number.parseInt(t,10))throw new s.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,m.E)(c)})}let f=i[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new h({type:e})}(r),o(f,c))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});o(i.EIP712Domain,t)}if("EIP712Domain"!==r)if(i[r])o(i[r],n);else throw new f({primaryType:r,types:i})}({domain:t,message:n,primaryType:r,types:c});let u=["0x1901"];return t&&u.push(function({domain:e,types:t}){return w({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:c})),"EIP712Domain"!==r&&u.push(w({data:n,primaryType:r,types:c})),(0,o.S)((0,i.xW)(u))}function w({data:e,primaryType:t,types:n}){let i=function e({data:t,primaryType:n,types:i}){let s=[{type:"bytes32"}],l=[function({primaryType:e,types:t}){let n=(0,a.nj)(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.S)(n)}({primaryType:n,types:i})];for(let c of i[n]){let[n,u]=function t({types:n,name:i,type:s,value:l}){if(void 0!==n[s])return[{type:"bytes32"},(0,o.S)(e({data:l,primaryType:s,types:n}))];if("bytes"===s){let e=l.length%2?"0":"";return l=`0x${e+l.slice(2)}`,[{type:"bytes32"},(0,o.S)(l)]}if("string"===s)return[{type:"bytes32"},(0,o.S)((0,a.nj)(l))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),a=l.map(r=>t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},(0,o.S)((0,r.h)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:s},l]}({types:i,name:c.name,type:c.type,value:t[c.name]});s.push(n),l.push(u)}return(0,r.h)(s,l)}({data:e,primaryType:t,types:n});return(0,o.S)(i)}},43632:(e,t,n)=>{"use strict";n.d(t,{X:()=>c,k:()=>u});var r=n(37149),i=n(60388),a=n(48149),o=n(46305);function s(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function l(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var c=class extends o.k{#E;#k;#j;#B;#r;#o;#h;#I;constructor(e){super(),this.#I=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#B=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#k=f(this.options),this.state=e.state??this.#k,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#E}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#h,...e},e?._type&&(this.#E=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=f(this.options);void 0!==e.data&&(this.setState(d(e.data,e.dataUpdatedAt)),this.#k=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#B.remove(this)}setData(e,t){let n=(0,r.pl)(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#s({type:"setState",state:e})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#k}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,r.GF)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,675 bytes, line 1610
1610Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.GF)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#B.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#o&&(this.#I||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#B.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){var n;let i;if("idle"!==this.state.fetchStatus&&this.#o?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let o=new AbortController,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#I=!0,o.signal)})},u=()=>{let e,n=(0,r.ZM)(this.options,t),i=(c(e={client:this.#r,queryKey:this.queryKey,meta:this.meta}),e);return(this.#I=!1,this.options.persister)?this.options.persister(n,i,this):n(i)},d=(c(i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:u}),i);("infinite"===this.#E?(n=this.options.pages,{onFetch:(e,t)=>{let i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],c=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},d=0,f=async()=>{let t=!1,f=(0,r.ZM)(e.options,e.fetchOptions),h=async(n,i,a)=>{let o;if(t)return Promise.reject(e.signal.reason);if(null==i&&n.pages.length)return Promise.resolve(n);let s=(o={client:e.client,queryKey:e.queryKey,pageParam:i,direction:a?"backward":"forward",meta:e.options.meta},(0,r.ox)(o,()=>e.signal,()=>t=!0),o),l=await f(s),{maxPages:c}=e.options,u=a?r.ZZ:r.y9;return{pages:u(n.pages,l,c),pageParams:u(n.pageParams,i,c)}};if(a&&o.length){let e="backward"===a,t=e?l:s,n={pages:o,pageParams:c};u=await h(n,t(i,n),e)}else{let e=n??o.length;do{let e=0===d?c[0]??i.initialPageParam:s(i,u);if(d>0&&null==e)break;u=await h(u,e),d++}while(d<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(f,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=f}}):this.options.behavior)?.onFetch(d,this),this.#j=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta});let f=this.#o=(0,a.II)({initialPromise:t?.initialPromise,fn:d.fetchFn,onCancel:e=>{e instanceof a.cc&&e.revert&&this.setState({...this.#j,fetchStatus:"idle"}),o.abort()},onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{let e=await f.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#B.config.onSuccess?.(e,this),this.#B.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof a.cc){if(e.silent)return this.#o.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#s({type:"error",error:e}),this.#B.config.onError?.(e,this),this.#B.config.onSettled?.(this.state.data,e,this),e}finally{this.#o===f&&(this.#o=void 0),this.scheduleGc()}}#s(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,...d(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#j=e.manual?n:void 0,n;case"error":let r=e.error;
vendor: 4,219 bytes, line 1610
1610return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.jG.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#B.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,a.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function d(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function f(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},44050:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(3190);let i=new Map;function a({fn:e,id:t,shouldSplitBatch:n,wait:o=0,sort:s}){let l=async()=>{let t=u();c();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{s&&Array.isArray(e)&&e.sort(s);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=()=>i.get(t)||[],d=e=>i.set(t,[...u(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:i,reject:a}=(0,r.Y)();return(n?.([...u().map(({args:e})=>e),e])&&l(),u().length>0)?d({args:e,resolve:i,reject:a}):(d({args:e,resolve:i,reject:a}),setTimeout(l,o)),t}}}},44439:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(77004);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:a=()=>!0}={}){return new Promise((i,o)=>{let s=async({count:l=0}={})=>{let c=async({error:e})=>{let n="function"==typeof t?t({count:l,error:e}):t;n&&await (0,r.u)(n),s({count:l+1})};try{let t=await e();i(t)}catch(e){if(l<n&&await a({count:l,error:e}))return c({error:e});o(e)}};s()})}},44928:(e,t,n)=>{"use strict";n.d(t,{X:()=>b,J:()=>m});var r=n(93778),i=n(10708),a=n(88440),o=n(79313),s=n(58798),l=n(35794),c=n(23414),u=n(52346),d=n(96019);let f="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:n,args:r}=e,i=t[0];if(n){let e=(0,d.iY)({abi:t,args:r,name:n});if(!e)throw new o.yy(n,{docsPath:f});i=e}if("error"!==i.type)throw new o.yy(void 0,{docsPath:f});let a=(0,u.B)(i),h=(0,l.V)(a),p="0x";if(r&&r.length>0){if(!i.inputs)throw new o.ZP(i.name,{docsPath:f});p=(0,c.h)(i.inputs,r)}return(0,s.aP)([h,p])}let p="/docs/contract/encodeFunctionResult",m="x-batch-gateway:true";async function b(e){let{data:t,ccipRequest:n}=e,{args:[s]}=(0,a.J)({abi:r.b2,data:t}),l=[],u=[];return await Promise.all(s.map(async(e,t)=>{try{u[t]=e.urls.includes(m)?await b({data:e.data,ccipRequest:n}):await n(e),l[t]=!1}catch(e){var a;l[t]=!0,u[t]="HttpRequestError"===(a=e).name&&a.status?h({abi:r.b2,errorName:"HttpError",args:[a.status,a.shortMessage]}):h({abi:[i.Mc],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}})),function(e){let{abi:t,functionName:n,result:r}=e,i=t[0];if(n){let e=(0,d.iY)({abi:t,name:n});if(!e)throw new o.Iz(n,{docsPath:p});i=e}if("function"!==i.type)throw new o.Iz(void 0,{docsPath:p});if(!i.outputs)throw new o.MR(i.name,{docsPath:p});let a=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[r];if(Array.isArray(r))return r;throw new o.dm(r)})();return(0,c.h)(i.outputs,a)}({abi:r.b2,functionName:"query",result:[l,u]})}},45710:(e,t,n)=>{"use strict";n.d(t,{yH:()=>c});var r=n(45755),i=n(16053),a=n(17830),o=n(57512),s=n(81645);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.NV({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function c(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,o.P)(n,{strict:!1}))throw new r.M({address:n});if(t[n])throw new a.Hi({address:n});
1610t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,c={};if(void 0!==o&&(c.code=o),void 0!==t&&(c.balance=(0,s.cK)(t)),void 0!==n&&(c.nonce=(0,s.cK)(n)),void 0!==r&&(c.state=l(r)),void 0!==i){if(c.state)throw new a.ft;c.stateDiff=l(i)}return c}(i)}return t}},45712:(e,t,n)=>{"use strict";e.exports=n(58214)},45755:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(76200);class i extends r.C{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},45774:(e,t,n)=>{"use strict";n.d(t,{U:()=>h,B:()=>f});var r=n(37876),i=n(14232),a=n(26268),o=n(8047),s=n(92783),l=n(49346),c=n(18594);let u=(0,i.createContext)(null);function d(e){return{status:"authenticated",userId:e.userId,accessToken:e.userToken,expiresAt:e.expiresAt}}function f(){let e=(0,i.useContext)(u);if(!e)throw Error("usePlaysOutGameAuthBridge must be used inside PlaysOutGameAuthBridgeProvider");return e}function h({children:e}){let t=(0,s.v)(),{status:n}=(0,o.F)(),{connectModalOpen:f,openConnectModal:p}=(0,a.Vx)(),m=(0,i.useRef)(t),b=(0,i.useRef)({connectModalOpen:f,openConnectModal:p}),g=(0,i.useRef)(new Set),w=(0,i.useRef)(null),[y,v]=(0,i.useState)(()=>"u"<typeof document||"hidden"!==document.visibilityState);m.current=t,b.current={connectModalOpen:f,openConnectModal:p};let C=(0,i.useCallback)(e=>{g.current.forEach(t=>{try{t(e)}catch{}})},[]),x=(0,i.useCallback)(e=>{let t=w.current;t&&((0,c.c)("GameAuth","login.settled",{code:"failed"===e.status?e.code:null,status:e.status}),window.clearTimeout(t.timeoutId),null!==t.fallbackTimerId&&window.clearTimeout(t.fallbackTimerId),w.current=null,t.resolve(e),"authenticated"===e.status&&C(e))},[C]),A=(0,i.useMemo)(()=>{async function e(e){let t=m.current;if(!t.isConnected||!t.address)return(0,c.c)("GameAuth","token.checked",{reason:"wallet-disconnected",status:"guest"}),{status:"guest"};if(!t.authenticationEnabled)return(0,c.c)("GameAuth","token.checked",{reason:"unsupported-chain",status:"failed"}),{status:"failed",code:"UNSUPPORTED_CHAIN"};let n=e?.minValiditySeconds;if(void 0!==n&&(!Number.isFinite(n)||n<0))return{status:"failed",code:"INVALID_TOKEN_OPTIONS"};try{let n=await t.getValidAccessToken(e),r=n?d(n):{status:"guest"};return(0,c.c)("GameAuth","token.checked",{forceRefresh:!!e?.forceRefresh,hasUserId:"authenticated"===r.status,status:r.status}),r}catch(e){return(0,c.c)("GameAuth","token.failed",(0,c.F)(e)),{status:"failed",code:"TOKEN_REFRESH_FAILED"}}}let t={version:"1.0",async getAuthState(){let t=await e();return"authenticated"===t.status?t:{status:"guest"}},async getAccessToken(t){let n=await e(t);return("authenticated"===n.status||"guest"===n.status)&&C(n),n},async requestLogin(t){let n;if(t&&(!Number.isInteger(t.gameId)||t.gameId<=0||!["score_upload","manual"].includes(t.reason)))return{status:"failed",code:"INVALID_LOGIN_CONTEXT"};let r=await e();if("authenticated"===r.status)return(0,c.c)("GameAuth","login.skipped-already-authenticated",{gameId:t?.gameId??null}),r;let i=w.current;if(i)return(0,c.c)("GameAuth","login.reused-pending-request",{gameId:t?.gameId??null}),i.promise;let a=m.current;if("loading"===a.status)return{status:"failed",code:"AUTH_NOT_READY"};if(a.isConnected&&!a.authenticationEnabled)return{status:"failed",code:"UNSUPPORTED_CHAIN"};let o=b.current.openConnectModal;if(!o)return{status:"failed",code:"AUTH_MODAL_UNAVAILABLE"};a.clearLastLoginError();let s=new Promise(e=>{n=e}),l=window.setTimeout(()=>{x({status:"failed",code:"LOGIN_TIMEOUT"})},12e4);w.current={fallbackSignatureRequested:!1,fallbackTimerId:null,initialLoginError:a.lastLoginError,modalWasOpened:!1,promise:s,resolve:n,timeoutId:l};try{(0,c.c)("GameAuth","wallet-modal.opened",{gameId:t?.gameId??null,reason:t?.reason??null}),o()}catch(e){(0,c.c)("GameAuth","wallet-modal.failed",(0,c.F)(e)),x({status:"failed",code:"AUTH_MODAL_OPEN_FAILED"})}return s},subscribe(e){g.current.add(e);let n=!0;return t.getAuthState().then(t=>{if(n&&g.current.has(e))try{e(t)}catch{}}),()=>{n=!1,g.current.delete(e)}}};return t},[C,x]);return(0,i.useEffect)(()=>{let e=()=>{v("hidden"!==document.visibilityState)};return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",e),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",e),window.removeEventListener("focus",e)}},[]),(0,i.useEffect)(()=>{let e=w.current;if(!e)return;let t=m.current;if(!f||(e.modalWasOpened=!0,t.isConnected)){if("authenticated"===t.status)return void A.getAccessToken().then(e=>{"authenticated"===e.status&&x(e)});if(t.isConnected&&!t.authenticationEnabled)return void x({status:"failed",code:"UNSUPPORTED_CHAIN"});if(t.isConnected){"unauthenticated"===t.status&&y&&!e.fallbackSignatureRequested&&(e.fallbackSignatureRequested=!0,(0,c.c)("GameAuth","signature-fallback.scheduled",{delayMs:500}),e.fallbackTimerId=window.setTimeout(()=>{if(e.fallbackTimerId=null,w.current!==e)return;let t=m.current;if(!t.isConnected||"unauthenticated"!==t.status||"hidden"===document.visibilityState){e.fallbackSignatureRequested=!1,(0,c.c)("GameAuth","signature-fallback.cancelled",{authenticationStatus:t.status,walletConnected:t.isConnected});return}
1610(0,c.c)("GameAuth","signature-fallback.started",{}),t.authenticateConnectedWallet().then(t=>{if(w.current!==e)return;if(t){(0,c.c)("GameAuth","signature-fallback.authenticated",{}),x(d(t));return}let n=m.current.lastLoginError;(0,c.c)("GameAuth","signature-fallback.failed",{code:n?.code??"LOGIN_FAILED"}),x({status:"failed",code:n?.code??"LOGIN_FAILED",message:n?.message})})},500));return}if("connecting"!==n&&"reconnecting"!==n&&e.modalWasOpened&&y){let n=t.lastLoginError;x(n&&n!==e.initialLoginError?{status:"failed",code:n.code,message:n.message}:{status:"cancelled"})}}},[A,f,y,x,t,n]),(0,i.useEffect)(()=>{let e=()=>{A.getAuthState().then(C)};return window.addEventListener(l.KH,e),()=>window.removeEventListener(l.KH,e)},[A,C]),(0,i.useEffect)(()=>{A.getAuthState().then(C)},[A,C,t.address,t.authenticationEnabled,t.isConnected,t.status]),(0,i.useEffect)(()=>()=>{x({status:"failed",code:"AUTH_BRIDGE_UNAVAILABLE"}),g.current.clear()},[x]),(0,r.jsx)(u.Provider,{value:A,children:e})}},46240:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(26715),i=n(81645),a=n(74517),o=n(39925);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.Af)(t).byteLength+2),s=0,l=t.split(".");for(let e=0;e<l.length;e++){var c;let t=(0,r.Af)(l[e]);t.byteLength>255&&(t=(0,r.Af)((c=function(e){let t=new Uint8Array(32).fill(0);return e?(0,o.q)(e)||(0,a.S)((0,r.Af)(e)):(0,i.My)(t)}(l[e]),`[${c.slice(2)}]`))),n[s]=t.length,n.set(t,s+1),s+=t.length+1}return n.byteLength!==s+1?n.slice(0,s+1):n}},46305:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(48306),i=n(37149),a=n(25028),o=class{#S;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#S=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??((0,a.S)()?1/0:3e5))}clearGcTimeout(){void 0!==this.#S&&(r.zs.clearTimeout(this.#S),this.#S=void 0)}}},46361:(e,t,n)=>{"use strict";n.d(t,{i:()=>l,o:()=>s});var r=n(37876),i=n(14232),a=n(27027);let o=(0,i.createContext)(null);function s(){let e=(0,i.useContext)(o);if(!e)throw Error("useWalletConnectorReadiness must be used inside WalletConnectorReadinessProvider");return e}function l({children:e}){let t=(0,a.U)(),[n,s]=(0,i.useState)("initializing");(0,i.useEffect)(()=>{s(t.find(e=>{var t;let n;return t="walletConnect",n=e.rkDetails,e.id===t||e.type===t||n?.id===t})?"ready":"failed")},[t]);let c=(0,i.useCallback)(()=>{window.location.reload()},[]),u=(0,i.useMemo)(()=>({metaMaskStatus:n,retryMetaMaskInitialization:c}),[n,c]);return(0,r.jsx)(o.Provider,{value:u,children:e})}},46685:(e,t,n)=>{"use strict";n.d(t,{_o:()=>g,Pj:()=>m,uT:()=>d,NV:()=>b});var r=n(65809),i=n(1162),a=n(71400),o=n(27761),s=n(94817);class l extends s.C{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 c=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 u=n(91497);function d(e,t={}){if((0,u.Ji)(e))return function(e,t={}){let n=(0,u.ej)(e);if(!n)throw new o.s7({signature:e,type:"function"});
vendor: 4,113 bytes, line 1610
1610let r=b(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(m(r[e],{modifiers:u.v7,structs:t,type:"function"}));let s=[];if(n.returns){let e=b(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:u.v7,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:s}}(e,t);if((0,u.Rv)(e))return function(e,t={}){let n=(0,u.iB)(e);if(!n)throw new o.s7({signature:e,type:"event"});let r=b(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(m(r[e],{modifiers:u.fC,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if((0,u.pc)(e))return function(e,t={}){let n=(0,u.kz)(e);if(!n)throw new o.s7({signature:e,type:"error"});let r=b(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if((0,u.l9)(e))return function(e,t={}){let n=(0,u.Yo)(e);if(!n)throw new o.s7({signature:e,type:"constructor"});let r=b(n.parameters),i=[],a=r.length;for(let e=0;e<a;e++)i.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,u.v8)(e)){var n=e;let t=(0,u.If)(n);if(!t)throw new o.s7({signature:n,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if((0,u.sP)(e))return{type:"receive",stateMutability:"payable"};throw new o.x8({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$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function m(e,t){var n,o;let s,l=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}(e,t?.type,t?.structs);if(c.has(l))return c.get(l);let d=r.wj.test(e),y=(0,r.Yv)(d?h:f,e);if(!y)throw new a.dV({param:e});if(y.name&&("address"===(n=y.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.BD.test(n)||r.Ge.test(n)||w.test(n)))throw new a.zd({param:e,name:y.name});let v=y.name?{name:y.name}:{},C="indexed"===y.modifier?{indexed:!0}:{},x=t?.structs??{},A={};if(d){s="tuple";let e=b(y.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:x}));A={components:t}}else if(y.type in x)s="tuple",A={components:x[y.type]};else if(p.test(y.type))s=`${y.type}256`;else if("address payable"===y.type)s="address";else if(s=y.type,t?.type!=="struct"&&!g(s))throw new i.UG({type:s});if(y.modifier){if(!t?.modifiers?.has?.(y.modifier))throw new a.NO({param:e,type:t?.type,modifier:y.modifier});if(u.v7.has(y.modifier)&&(o=s,!y.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new a.Pj({param:e,type:t?.type,modifier:y.modifier})}let E={type:`${s}${y.array??""}`,...v,...C,...A};return c.set(l,E),E}function b(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?b(o,[...t,n.trim()]):b(o,t,`${n}${i}`,r);case"(":return b(o,t,`${n}${i}`,r+1);case")":return b(o,t,`${n}${i}`,r-1);default:return b(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new l({current:n,depth:r});return t.push(n.trim()),t}function g(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.BD.test(e)||r.Ge.test(e)}let w=/^(?: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)$/},47714:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(81645);let i=n(62777).sc;var a=n(65859),o=n(26715);function s(e){let{commitments:t,version:n}=e,s=e.to??("string"==typeof t[0]?"hex":"bytes"),l=[];
1610for(let e of t)l.push(function(e){let{commitment:t,version:n=1}=e,s=e.to??("string"==typeof t?"hex":"bytes"),l=i((0,a.q)(t,{strict:!1})?(0,o.ZJ)(t):t);return l.set([n],0),"bytes"===s?l:(0,r.My)(l)}({commitment:e,to:s,version:n}));return l}},48080:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(26715),i=n(74517),a=n(22729),o=n(76200);function s(e){var t;return t=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 o.C("Unable to normalize signature.");return i}("string"==typeof e?e:(0,a.B)(e)),(0,i.S)((0,r.ZJ)(t))}},48149:(e,t,n)=>{"use strict";n.d(t,{II:()=>u,cc:()=>c,v_:()=>l});var r=n(37149),i=n(25028),a=n(98275),o=n(18070);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||o.t.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let t,n,u,d=!1,f=0,h="pending",p=new Promise((e,t)=>{n=e,u=t});p.catch(r.lQ);let m=()=>a.m.isFocused()&&("always"===e.networkMode||o.t.isOnline())&&e.canRun(),b=()=>l(e.networkMode)&&e.canRun(),g=e=>{"pending"===h&&(t?.(),h="resolved",n(e))},w=e=>{"pending"===h&&(t?.(),h="rejected",u(e))},y=()=>new Promise(n=>{t=e=>{("pending"!==h||m())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===h&&e.onContinue?.()}),v=()=>{let t;if("pending"!==h)return;let n=0===f?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if("pending"!==h)return;let n=e.retry??3*!(0,i.S)(),a=e.retryDelay??s,o="function"==typeof a?a(f,t):a,l=!0===n||"number"==typeof n&&f<n||"function"==typeof n&&n(f,t);d||!l?w(t):(f++,e.onFail?.(f,t),(0,r.yy)(o).then(()=>m()?void 0:y()).then(()=>{d?w(t):v()}))})};return{promise:p,status:()=>h,cancel:t=>{if("pending"===h){let n=new c(t);w(n),e.onCancel?.(n)}},continue:()=>(t?.(),p),cancelRetry:()=>{d=!0},continueRetry:()=>{d=!1},canStart:b,start:()=>(b()?v():y().then(v),p)}}},48306:(e,t,n)=>{"use strict";n.d(t,{Zq:()=>a,zs:()=>i});let r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#P=r;#O=!1;setTimeoutProvider(e){this.#P=e}setTimeout(e,t){return this.#P.setTimeout(e,t)}clearTimeout(e){this.#P.clearTimeout(e)}setInterval(e,t){return this.#P.setInterval(e,t)}clearInterval(e){this.#P.clearInterval(e)}};function a(e){setTimeout(e,0)}},49048:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(33450);function i({blockNumber:e,chain:t,contract:n}){let a=t?.contracts?.[n];if(!a)throw new r.rj({chain:t,contract:{name:n}});if(e&&a.blockCreated&&a.blockCreated>e)throw new r.rj({blockNumber:e,chain:t,contract:{name:n,blockCreated:a.blockCreated}});return a.address}},49154:(e,t,n)=>{"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===t?e:n.length-e-1].toString())i++;else break;return(n="left"===t?n.slice(i):n.slice(0,n.length-i),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{B:()=>r})},49346:(e,t,n)=>{"use strict";n.d(t,{EF:()=>g,Gz:()=>x,KH:()=>u,Lx:()=>f,dG:()=>C,ti:()=>v,xm:()=>b});let r="playsout.arcade.session",i="playsout.arcade.userToken",a="playsout.arcade.userId",o="playsout.arcade.refreshToken",s="playsout.arcade.userTokenExpiresAt",l="playsout.arcade.refreshTokenExpiresAt",c="playsout.arcade.walletAddress",u="playsout:auth-session-change";function d(){window.dispatchEvent(new Event(u))}async function f(e){let t=await fetch("https://api.playsout.com/user/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await t.json();if(!t.ok||1e4!==n.code)throw Error(n.msg||`Login request failed (${t.status})`);return n}async function h(e){let t=await fetch("https://api.playsout.com/user/refreshToken",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:e})}),n=await t.json();
1610if(!t.ok||1e4!==n.code||!n.data?.userToken||!n.data.refreshToken||!p(n.data.expiresAt)||!p(n.data.refreshExpiresAt)){let e=Error(n.msg||`Token refresh failed (${t.status})`);throw e.authFailure=401===t.status||403===t.status||t.ok&&1e4!==n.code,e}return n}function p(e){return"number"==typeof e&&Number.isFinite(e)&&e>0}function m(e){return Number.isSafeInteger(e)&&Number(e)>0}function b(e,t){let n=m(e.id)?e.id:e.userId;if(!m(n))throw Error("Cannot save an authenticated session without a valid userId.");let u=t.toLowerCase(),f=!!e.refreshToken&&p(e.expiresAt)&&p(e.refreshExpiresAt),h={userId:n,userToken:e.userToken,refreshToken:f?e.refreshToken:null,expiresAt:f?e.expiresAt:null,refreshExpiresAt:f?e.refreshExpiresAt:null,walletAddress:u};window.sessionStorage.setItem(r,JSON.stringify(h)),window.sessionStorage.setItem(a,String(n)),window.sessionStorage.setItem(i,e.userToken),window.sessionStorage.setItem(c,u),f?(window.sessionStorage.setItem(o,e.refreshToken),window.sessionStorage.setItem(s,String(e.expiresAt)),window.sessionStorage.setItem(l,String(e.refreshExpiresAt))):(window.sessionStorage.removeItem(o),window.sessionStorage.removeItem(s),window.sessionStorage.removeItem(l)),d()}function g(e){let t=window.sessionStorage.getItem(r);if(t)try{let n=JSON.parse(t);if(m(n.userId)&&"string"==typeof n.userToken&&"string"==typeof n.walletAddress){if(e&&n.walletAddress!==e.toLowerCase())return null;return{userId:n.userId,userToken:n.userToken,refreshToken:"string"==typeof n.refreshToken?n.refreshToken:null,expiresAt:p(n.expiresAt??void 0)?n.expiresAt:null,refreshExpiresAt:p(n.refreshExpiresAt??void 0)?n.refreshExpiresAt:null,walletAddress:n.walletAddress}}return x(),null}catch{return x(),null}let n=window.sessionStorage.getItem(c);if(!n||e&&n!==e.toLowerCase())return null;let u=window.sessionStorage.getItem(i);if(!u)return null;let d=Number(window.sessionStorage.getItem(a));if(!m(d))return x(),null;let f=window.sessionStorage.getItem(o),h=Number(window.sessionStorage.getItem(s)),b=Number(window.sessionStorage.getItem(l));return{userId:d,userToken:u,refreshToken:f||null,expiresAt:p(h)?h:null,refreshExpiresAt:p(b)?b:null,walletAddress:n}}let w=null,y=null;function v(e){if(w)return y===e.toLowerCase()?w:Promise.resolve(g(e));let t=g(e);return!t?.refreshToken||!t.expiresAt||!t.refreshExpiresAt||Date.now()>=1e3*t.refreshExpiresAt?Promise.resolve(null):(y=e.toLowerCase(),w=h(t.refreshToken).then(n=>{let r=g(e);return r&&r.refreshToken===t.refreshToken?(b({...n.data,userId:t.userId},e),g(e)):r}).finally(()=>{w=null,y=null}))}function C(e){let t=g(e);return t?t.userToken:e&&window.sessionStorage.getItem(c)!==e.toLowerCase()?null:window.sessionStorage.getItem(i)}function x(){window.sessionStorage.removeItem(r),window.sessionStorage.removeItem(a),window.sessionStorage.removeItem(i),window.sessionStorage.removeItem(o),window.sessionStorage.removeItem(s),window.sessionStorage.removeItem(l),window.sessionStorage.removeItem(c),d()}},50136:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>r});let r=2n**256n-1n},51304:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=n(48080).k},52346:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,B:()=>i});var r=n(79313);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(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?", ":","):""}}
vendor: 5,146 bytes, line 1610
1610,52474:(e,t,n)=>{"use strict";n.d(t,{A:()=>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)&&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}}},52516:(e,t,n)=>{"use strict";n.d(t,{Id:()=>v,My:()=>f,OG:()=>k,Ph:()=>m,Q5:()=>S,aK:()=>A,aT:()=>p,aY:()=>a,dJ:()=>E,e8:()=>s,fg:()=>B,lX:()=>b,lq:()=>g,qj:()=>y,r4:()=>x,x:()=>P,z:()=>w,zW:()=>l});let r=BigInt(0),i=BigInt(1);function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!a(e))throw Error("Uint8Array expected")}function s(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function l(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}let u="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){if(o(e),u)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=d[e[n]];return t}function h(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(u)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=h(e.charCodeAt(i)),a=h(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 m(e){return c(f(e))}function b(e){return o(e),c(f(Uint8Array.from(e).reverse()))}function g(e,t){return p(e.toString(16).padStart(2*t,"0"))}function w(e,t){return g(e,t).reverse()}function y(e,t,n){let r;if("string"==typeof t)try{r=p(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(a(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 v(...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}let C=e=>"bigint"==typeof e&&r<=e;function x(e,t,n){return C(e)&&C(t)&&C(n)&&t<=e&&e<n}function A(e,t,n,r){if(!x(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function E(e){let t;for(t=0;e>r;e>>=i,t+=1);return t}let k=e=>(i<<BigInt(e))-i,j=e=>new Uint8Array(e);function B(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=j(e),i=j(e),a=0,o=()=>{r.fill(1),i.fill(0),a=0},s=(...e)=>n(i,r,...e),l=(e=j(0))=>{let t;if(i=s((t=[0],Uint8Array.from(t)),e),r=s(),0!==e.length){let t;i=s((t=[1],Uint8Array.from(t)),e),r=s()}},c=()=>{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 v(...n)};return(e,t)=>{let n;for(o(),l(e);!(n=t(c()));)l();return o(),n}}let I={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||a(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 S(e,t,n={}){let r=(t,n,r)=>{let i=I[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 P(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}}},53422:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(16006),i=n(81645);async function a(e,{address:t,blockTag:n="latest",blockNumber:o}){let s=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,i.cK)(o):n]},{dedupe:!!o});return(0,r.ME)(s)}},54718:(e,t,n)=>{"use strict";n.d(t,{Sl:()=>i,X:()=>o,eV:()=>s,kK:()=>a});var r=n(80170);function i(e,t){if(r.Ej(e)>t)throw new r.u({givenSize:r.Ej(e),maxSize:t})}function a(e,t){if("number"==typeof t&&t>0&&t>r.Ej(e)-1)throw new r.ii({offset:t,position:"start",size:r.Ej(e)})}function o(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.Ej(e)!==n-t)throw new r.ii({offset:n,position:"end",size:r.Ej(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.Fl({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*i,"0")}`}}
1610,55e3:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(24456);let i=(0,n(91929).x)({...r.o,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...r.o.contracts,disputeGameFactory:{1:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{1:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{1:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:0x10ac19f}},l1StandardBridge:{1:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:0x10ac19f}}},sourceId:1});({...i,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}})},55712:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(8759),i=n(16167),a=n(81645),o=n(32544),s=n(18912);function l(e={}){let t,c,u,d;return(0,r.U)(r=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:e,withCapabilities:t,...n}={}){try{let l=await this.getProvider(),f=e??r.chains[0]?.id;if(!f)throw new i.nk;let h=await l.request({method:"wallet_connect",params:[{capabilities:"capabilities"in n&&n.capabilities?n.capabilities:{},chainIds:[(0,a.cK)(f),...r.chains.filter(e=>e.id!==f).map(e=>(0,a.cK)(e.id))]}]}),p=h.accounts.map(e=>({address:(0,o.b)(e.address),capabilities:e.capabilities??{}})),m=Number(h.chainIds[0]);if(c||(c=this.onAccountsChanged.bind(this),l.on("accountsChanged",c)),u||(u=this.onChainChanged.bind(this),l.on("chainChanged",u)),d||(d=this.onDisconnect.bind(this),l.on("disconnect",d)),e&&m!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.vx.code)throw e;return{id:m}});m=t?.id??m}return{accounts:t?p:p.map(e=>e.address),chainId:m}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new s.vx(e);throw e}},async disconnect(){let e=await this.getProvider();c&&(e.removeListener("accountsChanged",c),c=void 0),u&&(e.removeListener("chainChanged",u),u=void 0),d&&(e.removeListener("disconnect",d),d=void 0),e.disconnect()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,o.b)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
1610,async getProvider(){if(!t){let i="string"==typeof e.preference?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createBaseAccountSDK:a}=await Promise.all([n.e(6238),n.e(2739)]).then(n.bind(n,72739));t=a({...e,appChainIds:r.chains.map(e=>e.id),preference:i}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=r.chains.find(e=>e.id===t);if(!n)throw new s.ch(new i.nk);let o=await this.getProvider();try{return await o.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.cK)(n.id)}]}),n}catch(r){if(4902===r.code)try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:r,chainId:(0,a.cK)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:i};return await o.request({method:"wallet_addEthereumChain",params:[s]}),n}catch(e){throw new s.vx(e)}throw new s.ch(r)}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,o.b)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){r.emitter.emit("disconnect");let t=await this.getProvider();c&&(t.removeListener("accountsChanged",c),c=void 0),u&&(t.removeListener("chainChanged",u),u=void 0),d&&(t.removeListener("disconnect",d),d=void 0)}}))}},57353:(e,t,n)=>{"use strict";n.d(t,{zX:()=>g,bG:()=>w,M:()=>y,rR:()=>v,Po:()=>C,$S:()=>x});var r=n(57616),i=n(10708),a=n(19031),o=n(52346),s=n(40474);function l({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.A)(t[n]):t[n]}`).join(", ")})`}var c=n(96019),u=n(12305),d=n(5639),f=n(79313),h=n(76200),p=n(17830),m=n(1855),b=n(9678);class g extends h.C{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:o,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:h,value:b,stateOverride:g}){const w=t?(0,r.J)(t):void 0;let y=(0,m.aO)({from:w?.address,to:h,value:void 0!==b&&`${(0,u.c)(b)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==s&&`${(0,d.Q)(s)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.Q)(c)} gwei`,nonce:f});g&&(y+=`
1611${(0,p.uj)(g)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class w extends h.C{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:s}){const u=(0,c.iY)({abi:t,args:n,name:a}),d=u?l({abiItem:u,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=u?(0,o.B)(u,{includeName:!0}):void 0,h=(0,m.aO)({address:r&&(0,b.R)(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," "]:[],h&&"Contract Call:",h].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 y extends h.C{constructor({abi:e,data:t,functionName:n,message:r}){let s,c,u,d,h;if(t&&"0x"!==t)try{const{abiItem:n,errorName:r,args:s}=c=(0,a.W)({abi:e,data:t});if("Error"===r)d=s[0];else if("Panic"===r){const[e]=s;d=i.fD[e]}else{const e=n?(0,o.B)(n,{includeName:!0}):void 0,t=n&&s?l({abiItem:n,args:s,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else r&&(d=r);s instanceof f.Wq&&(h=s.signature,u=[`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://openchain.xyz/signatures?query=${h}.`]),super(d&&"execution reverted"!==d||h?[`The contract function "${n}" reverted with the following ${h?"signature":"reason"}:`,d||h].join("\n"):`The contract function "${n}" reverted.`,{cause:s,metaMessages:u,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=c,this.raw=t,this.reason=d,this.signature=h}}class v extends h.C{constructor({functionName:e}){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"})}}class C extends h.C{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 x extends h.C{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}}}
vendor: 4,347 bytes, line 1611
1611,57512:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(52474),i=n(32544);let a=/^0x[a-fA-F0-9]{40}$/,o=new r.A(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.o)(e)===e);return o.set(r,s),s}},57551:(e,t,n)=>{"use strict";n.d(t,{B8:()=>p,D0:()=>function e(t,n,r=!1,h={}){let g;if(t<=a)throw Error("invalid field: expected ORDER > 0, got "+t);let{nBitLength:w,nByteLength:x}=C(t,n);if(x>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let A=Object.freeze({ORDER:t,isLE:r,BITS:w,BYTES:x,MASK:(0,i.OG)(w),ZERO:a,ONE:o,create:e=>f(e,t),isValid:e=>{if("bigint"!=typeof e)throw Error("invalid field element: expected bigint, got "+typeof e);return a<=e&&e<t},is0:e=>e===a,isOdd:e=>(e&o)===o,neg:e=>f(-e,t),eql:(e,t)=>e===t,sqr:e=>f(e*e,t),add:(e,n)=>f(e+n,t),sub:(e,n)=>f(e-n,t),mul:(e,n)=>f(e*n,t),pow:(e,t)=>(function(e,t,n){if(n<a)throw Error("invalid exponent, negatives unsupported");if(n===a)return e.ONE;if(n===o)return t;let r=e.ONE,i=t;for(;n>a;)n&o&&(r=e.mul(r,i)),i=e.sqr(i),n>>=o;return r})(A,e,t),div:(e,n)=>f(e*p(n,t),t),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:e=>p(e,t),sqrt:h.sqrt||(n=>(g||(g=t%c===l?m:t%d===u?b:function(t){if(t<BigInt(3))throw Error("sqrt is not defined for small field");let n=t-o,r=0;for(;n%s===a;)n/=s,r++;let i=s,l=e(t);for(;1===v(l,i);)if(i++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return m;let c=l.pow(i,n),u=(n+o)/s;return function(e,t){if(e.is0(t))return t;if(1!==v(e,t))throw Error("Cannot find square root");let i=r,a=e.mul(e.ONE,c),s=e.pow(t,n),l=e.pow(t,u);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,n=e.sqr(s);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error("Cannot find square root");let r=o<<BigInt(i-t-1),c=e.pow(a,r);i=t,a=e.sqr(c),s=e.mul(s,a),l=e.mul(l,c)}return l}}(t)),g(A,n))),toBytes:e=>r?(0,i.z)(e,x):(0,i.lq)(e,x),fromBytes:e=>{if(e.length!==x)throw Error("Field.fromBytes: expected "+x+" bytes, got "+e.length);return r?(0,i.lX)(e):(0,i.Ph)(e)},invertBatch:e=>y(A,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(A)},LH:()=>C,Tp:()=>A,jr:()=>w,pS:()=>y,qy:()=>E,zH:()=>h,zi:()=>f});var r=n(23084),i=n(52516);let a=BigInt(0),o=BigInt(1),s=BigInt(2),l=BigInt(3),c=BigInt(4),u=BigInt(5),d=BigInt(8);function f(e,t){let n=e%t;return n>=a?n:t+n}function h(e,t,n){let r=e;for(;t-- >a;)r*=r,r%=n;return r}function p(e,t){if(e===a)throw Error("invert: expected non-zero number");if(t<=a)throw Error("invert: expected positive modulus, got "+t);let n=f(e,t),r=t,i=a,s=o,l=o,c=a;for(;n!==a;){let e=r/n,t=r%n,a=i-l*e,o=s-c*e;r=n,n=t,i=l,s=c,l=a,c=o}if(r!==o)throw Error("invert: does not exist");return f(i,t)}function m(e,t){let n=(e.ORDER+o)/c,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw Error("Cannot find square root");return r}function b(e,t){let n=(e.ORDER-u)/d,r=e.mul(t,s),i=e.pow(r,n),a=e.mul(t,i),o=e.mul(e.mul(a,s),i),l=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(l),t))throw Error("Cannot find square root");return l}let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function w(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.Q5)(e,t)}function y(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 v(e,t){let n=(e.ORDER-o)/s,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),l=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!l)throw Error("invalid Legendre symbol result");return i?1:a?0:-1}function C(e,t){void 0!==t&&(0,r.Fe)(t);let n=void 0!==t?t:e.toString(2).length,i=Math.ceil(n/8);return{nBitLength:n,nByteLength:i}}function x(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function A(e){let t=x(e);return t+Math.ceil(t/2)}function E(e,t,n=!1){let r=e.length,a=x(t),s=A(t);if(r<16||r<s||r>1024)throw Error("expected "+s+"-1024 bytes of input, got "+r);let l=f(n?(0,i.lX)(e):(0,i.Ph)(e),t-o)+o;return n?(0,i.z)(l,a):(0,i.lq)(l,a)}},57616:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{J:()=>r})}
1611,57939:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});let r=(0,n(91929).x)({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xf2f12c}}})},58214:(e,t,n)=>{"use strict";var r=n(14232),i=n(38806),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=o(e,(d=c(function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,s=n)}var o,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},58547:(e,t,n)=>{"use strict";n.d(t,{Lj:()=>s,WB:()=>c,uL:()=>l});var r=n(16006),i=n(65443),a=n(82367),o=n(93505);let s={"0x0":"reverted","0x1":"success"};function l(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.e)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ME)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?o.b4[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}let c=(0,i.q)("transactionReceipt",l)}
1611,58798:(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)=>e+t.replace("0x",""),"")}`}n.d(t,{aP:()=>i,xW:()=>r})},59017:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var r=n(36262),i=n(76200);class a extends i.C{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(44050),s=n(41262),l=n(90171);function c(e,t={}){let{batch:n,fetchFn:i,fetchOptions:u,key:d="http",methods:f,name:h="HTTP JSON-RPC",onFetchRequest:p,onFetchResponse:m,retryDelay:b,raw:g}=t;return({chain:c,retryCount:w,timeout:y})=>{let{batchSize:v=1e3,wait:C=0}="object"==typeof n?n:{},x=t.retryCount??w,A=y??t.timeout??1e4,E=e||c?.rpcUrls.default.http[0];if(!E)throw new a;let k=(0,s.d)(E,{fetchFn:i,fetchOptions:u,onRequest:p,onResponse:m,timeout:A});return(0,l.o)({key:d,methods:f,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:a}=(0,o.u)({id:E,wait:C,shouldSplitBatch:e=>e.length>v,fn:e=>k.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>n?a(e):[await k.request({body:e})],[{error:l,result:c}]=await s(i);if(g)return{error:l,result:c};if(l)throw new r.J8({body:i,error:l,url:E});return c},retryCount:x,retryDelay:b,timeout:A,type:"http"},{fetchOptions:u,url:E})}}},60388:(e,t,n)=>{"use strict";let r,i,a,o,s,l;n.d(t,{jG:()=>u});let c=n(48306).Zq,u=(r=[],i=0,a=e=>{e()},o=e=>{e()},s=c,{batch:e=>{let t;i++;try{t=e()}finally{let e;--i||(e=r,r=[],e.length&&s(()=>{o(()=>{e.forEach(e=>{a(e)})})}))}return t},batchCalls:e=>(...t)=>{l(()=>{e(...t)})},schedule:l=e=>{i?r.push(e):s(()=>{a(e)})},setNotifyFunction:e=>{a=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{s=e}})},60539:(e,t,n)=>{"use strict";n.d(t,{B4:()=>i,SK:()=>a,hX:()=>o});var r=n(76200);class i extends r.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class a extends r.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},61060:(e,t,n)=>{"use strict";n.d(t,{b:()=>d});var r=n(32544),i=n(18912),a=n(94254),o=n(44439),s=n(81645),l=n(16167),c=n(12932),u=n(8759);function d(e={}){let t,n,p,m,{shimDisconnect:b=!0,unstable_shimAsyncInject:g}=e;function w(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...f[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,u.U)(u=>({get icon(){return w().icon},get id(){return w().id},get name(){return w().name},get supportsSimulation(){return!0},type:d.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(p||(p=this.onConnect.bind(this),n.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:a,isReconnecting:o,withCapabilities:s}={}){let l=await this.getProvider();if(!l)throw new c.N;let d=[];if(o)d=await this.getAccounts().catch(()=>[]);else if(b)try{let e=await l.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(d=e[0]?.caveats?.[0]?.value?.map(e=>(0,r.b)(e))).length>0&&(d=await this.getAccounts())}catch(e){if(e.code===i.vx.code)throw new i.vx(e);if(e.code===i.qZ.code)throw e}try{d?.length||o||(d=(await l.request({method:"eth_requestAccounts"})).map(e=>(0,r.b)(e))),p&&(l.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),l.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),l.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),l.on("disconnect",m));let c=await this.getChainId();if(a&&c!==a){let e=await this.switchChain({chainId:a}).catch(e=>{if(e.code===i.vx.code)throw e;return{id:c}});c=e?.id??c}return b&&await u.storage?.removeItem(`${this.id}.disconnected`),e.target||await u.storage?.setItem("injected.connected",!0),{accounts:s?d.map(e=>({address:e,capabilities:{}})):d,chainId:c}}catch(e){if(e.code===i.vx.code)throw new i.vx(e);if(e.code===i.qZ.code)throw new i.qZ(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new c.N;n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await (0,a.w)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}b&&await u.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await u.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new c.N;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.b)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new c.N;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("u"<typeof window)return;let t=w();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?h(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
1611,async isAuthorized(){try{if(b&&await u.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await u.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==g&&!1!==g){let e=async()=>("u">typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof g?g:1e3;if(await Promise.race([..."u">typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new c.N}return!!(await (0,o.b)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new c.N;let r=u.chains.find(e=>e.id===t);if(!r)throw new i.ch(new l.nk);let a=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(u.emitter.off("change",n),e())};u.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.cK)(t)}]}).then(async()=>{await this.getChainId()===t&&u.emitter.emit("change",{chainId:t})}),a]),r}catch(o){if(4902===o.code||o?.data?.originalError?.code===4902)try{let o,l,{default:c,...d}=r.blockExplorers??{};e?.blockExplorerUrls?o=e.blockExplorerUrls:c&&(o=[c.url,...Object.values(d).map(e=>e.url)]),l=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let f={blockExplorerUrls:o,chainId:(0,s.cK)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:l};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[f]}).then(async()=>{if(await this.getChainId()===t)u.emitter.emit("change",{chainId:t});else throw new i.vx(Error("User rejected switch after adding network."))}),a]),r}catch(e){throw new i.vx(e)}if(o.code===i.vx.code)throw new i.vx(o);throw new i.ch(o)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(u.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),b&&await u.storage?.removeItem(`${this.id}.disconnected`)}else u.emitter.emit("change",{accounts:e.map(e=>(0,r.b)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let i=Number(e.chainId);u.emitter.emit("connect",{accounts:r,chainId:i});let a=await this.getProvider();a&&(p&&(a.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),a.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),a.on("disconnect",m)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}}))}d.type="injected";let f={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:h(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>h(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:h(e,"isPhantom")}};function h(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}},61511:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var r=n(14232),i=n(17477),a=n(19342);class o extends a.C{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return"[email protected]"}}class s extends o{constructor(){super("`useConfig` must be used within `WagmiProvi
1611der`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function l(e={}){let t=e.config??(0,r.useContext)(i.R);if(!t)throw new s;return t}},62777:(e,t,n)=>{"use strict";n.d(t,{sc:()=>y,qt:()=>C,Zf:()=>v});var r=n(23084);class i extends r.Vw{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.O8)(this.buffer)}update(e){(0,r.CC)(this),e=(0,r.ZJ)(e),(0,r.DO)(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.O8)(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.CC)(this),(0,r.Ht)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:i,isLE:a}=this,{pos:o}=this;t[o++]=128,(0,r.uH)(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(0xffffffff),o=Number(n>>i&a),s=Number(n&a),l=4*!!r,c=4*!r;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,i-8,BigInt(8*this.length),a),this.process(n,0);let s=(0,r.O8)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=l/4,u=this.get();if(c>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)s.setUint32(4*e,u[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([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),o=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),s=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);var l=n(71090);let c=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),u=new Uint32Array(64);class d 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)u[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=u[e-15],n=u[e-2],i=(0,r.Ow)(t,7)^(0,r.Ow)(t,18)^t>>>3,a=(0,r.Ow)(n,17)^(0,r.Ow)(n,19)^n>>>10;u[e]=a+u[e-7]+i+u[e-16]|0}let{A:n,B:i,C:a,D:o,E:s,F:l,G:d,H:f}=this;for(let e=0;e<64;e++){var h,p,m,b;let t=f+((0,r.Ow)(s,6)^(0,r.Ow)(s,11)^(0,r.Ow)(s,25))+((h=s)&l^~h&d)+c[e]+u[e]|0,g=((0,r.Ow)(n,2)^(0,r.Ow)(n,13)^(0,r.Ow)(n,22))+((p=n)&(m=i)^p&(b=a)^m&b)|0;f=d,d=l,l=s,s=o+t|0,o=a,a=i,i=n,n=t+g|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,o=o+this.D|0,s=s+this.E|0,l=l+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(n,i,a,o,s,l,d,f)}roundClean(){(0,r.uH)(u)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.uH)(this.buffer)}}let f=l.lD(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16116f","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","0xf40e35855771202a","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))),h=f[0],p=f[1],m=new Uint32Array(80),b=new Uint32Array(80);class g extends i{constructor(e=64){super(128,e,16,!1),this.Ah=0|s[0],this.Al=0|s[1],this.Bh=0|s[2],this.Bl=0|s[3],this.Ch=0|s[4],this.Cl=0|s[5],this.Dh=0|s[6],this.Dl=0|s[7],this.Eh=0|s[8],this.El=0|s[9],this.Fh=0|s[10],this.Fl=0|s[11],this.Gh=0|s[12],this.Gl=0|s[13],this.Hh=0|s[14],this.Hl=0|s[15]}get(){let{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:l,El:c,Fh:u,Fl:d,Gh:f,Gl:h,Hh:p,Hl:m}=this;return[e,t,n,r,i,a,o,s,l,c,u,d,f,h,p,m]}set(e,t,n,r,i,a,o,s,l,c,u,d,f,h,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|a,this.Dh=0|o,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let n=0;n<16;n++,t+=4)m[n]=e.getUint32(t),b[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|m[e-15],n=0|b[e-15],r=l.rE(t,n,1)^l.rE(t,n,8)^l.xn(t,n,7),i=l.ry(t,n,1)^l.ry(t,n,8)^l.jm(t,n,7),a=0|m[e-2],o=0|b[e-2],s=l.rE(a,o,19)^l.qh(a,o,61)^l.xn(a,o,6),c=l.ry(a,o,19)^l.Ei(a,o,61)^l.jm(a,o,6),u=l.CW(i,c,b[e-7],b[e-16]),d=l.CQ(u,r,s,m[e-7],m[e-16]);m[e]=0|d,b[e]=0|u}let{Ah:n,Al:r,Bh:i,Bl:a,Ch:o,Cl:s,Dh:c,Dl:u,Eh:d,El:f,Fh:g,Fl:w,Gh:y,Gl:v,Hh:C,Hl:x}=this;for(let e=0;e<80;e++){let t=l.rE(d,f,14)^l.rE(d,f,18)^l.qh(d,f,41),A=l.ry(d,f,14)^l.ry(d,f,18)^l.Ei(d,f,41),E=d&g^~d&y,k=f&w^~f&v,j=l.F8(x,A,k,p[e],b[e]),B=l.TH(j,C,t,E,h[e],m[e]),I=0|j,S=l.rE(n,r,28)^l.qh(n,r,34)^l.qh(n,r,39),P=l.ry(n,r,28)^l.Ei(n,r,34)^l.Ei(n,r,39),O=n&i^n&o^i&o,T=r&a^r&s^a&s;C=0|y,x=0|v,y=0|g,v=0|w,g=0|d,w=0|f,({h:d,l:f}=l.WQ(0|c,0|u,0|B,0|I)),c=0|o,u=0|s,o=0|i,s=0|a,i=0|n,a=0|r;let M=l.Vl(I,P,T);n=l.Vr(M,B,S,O),r=0|M}({h:n,l:r}=l.WQ(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:a}=l.WQ(0|this.Bh,0|this.Bl,0|i,0|a)),({h:o,l:s}=l.WQ(0|this.Ch,0|this.Cl,0|o,0|s)),({h:c,l:u}=l.WQ(0|this.Dh,0|this.Dl,0|c,0|u)),({h:d,l:f}=l.WQ(0|this.Eh,0|this.El,0|d,0|f)),({h:g,l:w}=l.WQ(0|this.Fh,0|this.Fl,0|g,0|w)),({h:y,l:v}=l.WQ(0|this.Gh,0|this.Gl,0|y,0|v)),({h:C,l:x}=l.WQ(0|this.Hh,0|this.Hl,0|C,0|x)),this.set(n,r,i,a,o,s,c,u,d,f,g,w,y,v,C,x)}roundClean(){(0,r.uH)(m,b)}destroy(){(0,r.uH)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class w extends g{constructor(){super(48),this.Ah=0|o[0],this.Al=0|o[1],this.Bh=0|o[2],this.Bl=0|o[3],this.Ch=0|o[4],this.Cl=0|o[5],this.Dh=0|o[6],this.Dl=0|o[7],this.Eh=0|o[8],this.El=0|o[9],this.Fh=0|o[10],this.Fl=0|o[11],this.Gh=0|o[12],this.Gl=0|o[13],this.Hh=0|o[14],this.Hl=0|o[15]}}let y=(0,r.qj)(()=>new d),v=(0,r.qj)(()=>new g),C=(0,r.qj)(()=>new w)},65443:(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,{q:()=>r})},65809:(e,t,n)=>{"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>i,Ge:()=>a,Yv:()=>r,wj:()=>o});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=/^\(.+?\).*?$/},65859:(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,{q:()=>r})},66320:(e,t,n)=>{"use strict";n.d(t,{A1:()=>c,di:()=>o,iN:()=>u});var r=n(16053),i=n(65859),a=n(38047);function o(e,t,n,{strict:r}={}){return(0,i.q)(e,{strict:!1})?u(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,a.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,a.E)(e)})}function l(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,a.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,a.E)(e)})}function c(e,t,n,{strict:r}={}){s(e,t);let i=e.slice(t,n);return r&&l(i,t,n),i}function u(e,t,n,{strict:r}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&l(i,t,n),i}},66585:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(65809);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.Yv)(i,t.type);return n+=`)${o?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
1611 indexed`),t.name)?`${n} ${t.name}`:n}(e[a]),a!==n-1&&(t+=", ");return t}},66655:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var r=n(79313),i=n(76200),a=n(57353),o=n(36262),s=n(18912);function l(e,{abi:t,address:n,args:c,docsPath:u,functionName:d,sender:f}){let h=e instanceof a.$S?e:e instanceof i.C?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:m,details:b,message:g,shortMessage:w}=h,y=e instanceof r.O?new a.rR({functionName:d}):[3,s.bq.code].includes(p)&&(m||b||g||w)?new a.M({abi:t,data:"object"==typeof m?m.data:m,functionName:d,message:h instanceof o.J8?b:w??g}):e;return new a.bG(y,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:d,sender:f})}},67768:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>s,jE:()=>o});var r=n(14232),i=n(37876);let a=r.createContext(void 0),o=e=>{let t=r.useContext(a);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(a.Provider,{value:e,children:t}))},67914:(e,t,n)=>{"use strict";let r;n.d(t,{I:()=>v});var i=n(67768),a=n(14232);let o=a.createContext(!1);o.Provider,n(37876);let s=a.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}));var l=n(37149),c=n(60388),u=n(48306),d=n(25028),f=n(90089),h=n(98275),p=n(43632),m=class extends f.Q{#r;#T=void 0;#M=void 0;#y=void 0;#F;#R;#N;#D;#U;#L;#q;#W;#z;#Q=new Set;constructor(e,t){super(),this.options=t,this.#r=e,this.#N=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#T.addObserver(this),b(this.#T,this.options)?this.#G():this.updateResult(),this.#$())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return g(this.#T,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return g(this.#T,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#_(),this.#T.removeObserver(this)}setOptions(e){let t=this.options,n=this.#T;if(this.options=this.#r.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.GF)(this.options.enabled,this.#T))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#K(),this.#T.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#r.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#T,observer:this});let r=this.hasListeners();r&&w(this.#T,n,this.options,t)&&this.#G(),this.updateResult(),r&&(this.#T!==n||(0,l.GF)(this.options.enabled,this.#T)!==(0,l.GF)(t.enabled,this.#T)||(0,l.GF)(this.options.staleTime,this.#T)!==(0,l.GF)(t.staleTime,this.#T))&&this.#V();let i=this.#J();r&&(this.#T!==n||(0,l.GF)(this.options.enabled,this.#T)!==(0,l.GF)(t.enabled,this.#T)||i!==this.#z)&&this.#Y(i)}getOptimisticResult(e){let t=this.#r.getQueryCache().build(this.#r,e),n=this.createResult(t,e);return(0,l.f8)(this.getCurrentResult(),n)||(this.#y=n,this.#R=this.options,this.#F=this.#T.state),n}getCurrentResult(){return this.#y}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#Q.add(e)}getCurrentQuery(){return this.#T}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t,n=this.#r.defaultQueryOptions(e),r=this.#r.getQueryCache().build(this.#r,n),i=()=>{},a=new Promise(e=>{t=e,i=this.#r.getQueryCache().subscribe(t=>{"updated"===t.type&&t.query.queryHash===r.queryHash&&void 0!==r.state.data&&(i(),e(this.createResult(r,n)))})});return Promise.race([r.fetch().then(()=>{let e=this.createResult(r,n);return t?.(e),e}).finally(()=>{i()}),a])}fetch(e){return this.#G({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#G(e){this.#K();let t=this.#T.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#Z(e){return!(0,d.S)()&&!1!==(0,l.GF)(this.options.enabled,this.#T)&&(0,l.gn)(e)}#V(){this.#H();let e=(0,l.GF)(this.options.staleTime,this.#T);if(this.#y.isStale||!this.#Z(e))return;let t=(0,l.j3)(this.#y.dataUpdatedAt,e)+1;this.#q=u.zs.setTimeout(()=>{this.#y.isStale||this.updateResult()},t)}#J(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#T):this.options.refetchInterval)??!1}
1611#Y(e){this.#_(),this.#z=e,0!==this.#z&&this.#Z(this.#z)&&(this.#W=u.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||h.m.isFocused())&&this.#G()},this.#z))}#$(){this.#V(),this.#Y(this.#J())}#H(){void 0!==this.#q&&(u.zs.clearTimeout(this.#q),this.#q=void 0)}#_(){void 0!==this.#W&&(u.zs.clearInterval(this.#W),this.#W=void 0)}createResult(e,t){let n,r=this.#T,i=this.options,a=this.#y,o=this.#F,s=this.#R,c=e!==r?e.state:this.#M,{state:u}=e,d={...u},f=!1;if(t._optimisticResults){let n=this.hasListeners(),a=!n&&b(e,t),o=n&&w(e,r,t,i);(a||o)&&(d={...d,...(0,p.k)(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:g}=d;n=d.data;let v=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===g){let e;a?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=a.data,v=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#L?.state.data,this.#L):t.placeholderData,void 0!==e&&(g="success",n=(0,l.pl)(a?.data,e,t),f=!0)}if(t.select&&void 0!==n&&!v)if(a&&n===o?.data&&t.select===this.#D)n=this.#U;else try{this.#D=t.select,n=t.select(n),n=(0,l.pl)(a?.data,n,t),this.#U=n,this.#N=null}catch(e){this.#N=e}else void 0===n&&(this.#N=null);this.#N&&(h=this.#N,n=this.#U,m=Date.now(),g="error",f=!1);let C="fetching"===d.fetchStatus,x="pending"===g,A="error"===g,E=x&&C,k=void 0!==n;return{status:g,fetchStatus:d.fetchStatus,isPending:x,isSuccess:"success"===g,isError:A,isInitialLoading:E,isLoading:E,data:n,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:A&&!k,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:A&&k,isStale:y(e,t),refetch:this.refetch,isEnabled:!1!==(0,l.GF)(t.enabled,e)}}updateResult(){let e=this.#y,t=this.createResult(this.#T,this.options);if(this.#F=this.#T.state,this.#R=this.options,void 0!==this.#F.data&&(this.#L=this.#T),(0,l.f8)(t,e))return;this.#y=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#Q.size)return!0;let r=new Set(n??this.#Q);return this.options.throwOnError&&r.add("error"),Object.keys(this.#y).some(t=>this.#y[t]!==e[t]&&r.has(t))})();c.jG.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#y)}),this.#r.getQueryCache().notify({query:this.#T,type:"observerResultsUpdated"})})}#K(){let e=this.#r.getQueryCache().build(this.#r,this.options);if(e===this.#T)return;let t=this.#T;this.#T=e,this.#M=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#$()}};function b(e,t){return!1!==(0,l.GF)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,l.GF)(t.retryOnMount,e))||void 0!==e.state.data&&g(e,t,t.refetchOnMount)}function g(e,t,n){if(!1!==(0,l.GF)(t.enabled,e)&&"static"!==(0,l.GF)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&y(e,t)}return!1}function w(e,t,n,r){return(e!==t||!1===(0,l.GF)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&y(e,n)}function y(e,t){return!1!==(0,l.GF)(t.enabled,e)&&e.isStaleByTime((0,l.GF)(t.staleTime,e))}function v(e,t){return function(e,t,n){let r,u=a.useContext(o),d=a.useContext(s),f=(0,i.jE)(n),h=f.defaultQueryOptions(e),p=f.getQueryCache().get(h.queryHash),m=!1!==e.subscribed;if(h._optimisticResults=u?"isRestoring":m?"optimistic":void 0,h.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=h.staleTime;h.staleTime="function"==typeof t?(...n)=>e(t(...n)):e(t),"number"==typeof h.gcTime&&(h.gcTime=Math.max(h.gcTime,1e3))}r=p?.state.error&&"function"==typeof h.throwOnError?(0,l.GU)(h.throwOnError,[p.state.error,p]):h.throwOnError,(h.suspense||r)&&!d.isReset()&&(h.retryOnMount=!1),a.useEffect(()=>{d.clearReset()},[d]);let[b]=a.useState(()=>new t(f,h)),g=b.getOptimisticResult(h),w=!u&&m;if(a.useSyncExternalStore(a.useCallback(e=>{let t=w?b.subscribe(c.jG.batchCalls(e)):l.lQ;return b.updateResult(),t},[b,w]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),a.useEffect(()=>{b.setOptions(h)},[h,b]),h?.suspense&&g.isPending)throw b.fetchOptimistic(h).catch(()=>{d.clearReset()});if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,l.GU)(n,[e.error,r])))({result:g,errorResetBoundary:d,throwOnError:h.throwOnError,query:p,suspense:h.suspense}))throw g.error;return h.notifyOnChangeProps?g:b.trackResult(g)}(e,m,t)}}
1611,68139:(e,t,n)=>{"use strict";n.d(t,{s:()=>j});var r=n(23084);class i extends r.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.sd)(e);const n=(0,r.ZJ)(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;const 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.uH)(a)}update(e){return(0,r.CC)(this),this.iHash.update(e),this}digestInto(e){(0,r.CC)(this),(0,r.DO)(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);var o=n(57551),s=n(52516);let l=BigInt(0),c=BigInt(1);function u(e,t){let n=t.negate();return e?n:t}function d(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function f(e,t){d(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:(0,s.OG)(e),maxNumber:i,shiftBy:BigInt(e)}}function h(e,t,n){let{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n,s=Number(e&i),l=e>>o;s>r&&(s-=a,l+=c);let u=t*r,d=u+Math.abs(s)-1,f=0===s;return{nextN:l,offset:d,isZero:f,isNeg:s<0,isNegF:t%2!=0,offsetF:u}}let p=new WeakMap,m=new WeakMap;function b(e){return m.get(e)||1}function g(e){return(0,o.jr)(e.Fp),(0,s.Q5)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,o.LH)(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function w(e){void 0!==e.lowS&&(0,s.e8)("lowS",e.lowS),void 0!==e.prehash&&(0,s.e8)("prehash",e.prehash)}class y extends Error{constructor(e=""){super(e)}}let v={Err:y,_tlv:{encode:(e,t)=>{let{Err:n}=v;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=(0,s.zW)(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");let a=r>127?(0,s.zW)(i.length/2|128):"";return(0,s.zW)(e)+a+i+t},decode(e,t){let{Err:n}=v,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}=v;if(e<x)throw new t("integer: negative integers are not allowed");let n=(0,s.zW)(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}=v;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(0,s.Ph)(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=v,i=(0,s.qj)("signature",e),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t("invalid signature: left bytes after parsing");let{v:l,l:c}=r.decode(2,a),{v:u,l:d}=r.decode(2,c);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(l),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=v,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s));return t.encode(48,r+i)}};function C(e,t){return(0,s.My)((0,s.lq)(e,t))}let x=BigInt(0),A=BigInt(1),E=(BigInt(2),BigInt(3)),k=BigInt(4);function j(e,t){let n=t=>(function(e){let t,n=(t=g(e),(0,s.Q5)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})),{Fp:r,n:i,nByteLength:a,nBitLength:y}=n,j=r.BYTES+1,B=2*r.BYTES+1;function I(e){return(0,o.zi)(e,i)}function S(e){return(0,o.B8)(e,i)}let{ProjectivePoint:P,normPrivateKeyToScalar:O,weierstrassEquation:T,isWithinCurveOrder:M}=function(e){var t;let n=function(e){let t=g(e);(0,s.Q5)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});
1611let{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=(0,o.D0)(n.n,n.nBitLength),a=n.toBytes||((e,t,n)=>{let i=t.toAffine();return(0,s.Id)(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),w=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 y(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 v(e,t){let n=r.sqr(t),i=y(e);return r.eql(n,i)}if(!v(n.Gx,n.Gy))throw Error("bad curve params: generator point");let C=r.mul(r.pow(n.a,E),k),j=r.mul(r.sqr(n.b),BigInt(27));if(r.is0(r.add(C,j)))throw Error("bad curve params: a or b");function B(e){let t,{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:a,n:l}=n;if(r&&"bigint"!=typeof e){if((0,s.aY)(e)&&(e=(0,s.My)(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:(0,s.Ph)((0,s.qj)("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return a&&(t=(0,o.zi)(t,l)),(0,s.aK)("private key",t,A,l),t}function I(e){if(!(e instanceof O))throw Error("ProjectivePoint expected")}let S=(0,s.x)((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),l=r.mul(i,t),c=r.mul(a,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),P=(0,s.x)(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(!v(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class O{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 O)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?O.ZERO:new O(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=(0,o.pS)(r,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(O.fromAffine)}static fromHex(e){let t=O.fromAffine(w((0,s.qj)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return O.BASE.multiply(B(e))}static msm(e,t){return function(e,t,n,r){if(!Array.isArray(n))throw Error("array expected");n.forEach((t,n)=>{if(!(t instanceof e))throw Error("invalid point at index "+n)});if(!Array.isArray(r))throw Error("array of scalars expected");r.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)});let i=n.length,a=r.length;if(i!==a)throw Error("arrays of points and scalars must have equal length");let o=e.ZERO,l=(0,s.dJ)(BigInt(i)),c=1;l>12?c=l-3:l>4?c=l-2:l>0&&(c=2);let u=(0,s.OG)(c),d=Array(Number(u)+1).fill(o),f=Math.floor((t.BITS-1)/c)*c,h=o;for(let e=f;e>=0;e-=c){d.fill(o);for(let t=0;t<a;t++){let i=Number(r[t]>>BigInt(e)&u);d[i]=d[i].add(n[t])}let t=o;for(let e=d.length-1,n=o;e>0;e--)n=n.add(d[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<c;e++)h=h.double()}return h}(O,i,e,t)}_setWindowSize(e){F.setWindowSize(this,e)}assertValidity(){P(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){I(e);let{px:t,py:n,pz:i}=this,{px:a,py:o,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(a,i)),c=r.eql(r.mul(n,s),r.mul(o,i));return l&&c}negate(){return new O(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,i=r.mul(t,E),{px:a,py:o,pz:s}=this,l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(a,a),f=r.mul(o,o),h=r.mul(s,s),p=r.mul(a,o);return p=r.add(p,p),u=r.mul(a,s),u=r.add(u,u),l=r.mul(e,u),c=r.mul(i,h),c=r.add(l,c),l=r.sub(f,c),c=r.add(f,c),c=r.mul(l,c),l=r.mul(p,l),u=r.mul(i,u),h=r.mul(e,h),p=r.
vendor: 3,145 bytes, line 1611
1611sub(d,h),p=r.mul(e,p),p=r.add(p,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,h),d=r.mul(d,p),c=r.add(c,d),h=r.mul(o,s),h=r.add(h,h),d=r.mul(h,p),l=r.sub(l,d),u=r.mul(h,f),u=r.add(u,u),new O(l,c,u=r.add(u,u))}add(e){I(e);let{px:t,py:i,pz:a}=this,{px:o,py:s,pz:l}=e,c=r.ZERO,u=r.ZERO,d=r.ZERO,f=n.a,h=r.mul(n.b,E),p=r.mul(t,o),m=r.mul(i,s),b=r.mul(a,l),g=r.add(t,i),w=r.add(o,s);g=r.mul(g,w),w=r.add(p,m),g=r.sub(g,w),w=r.add(t,a);let y=r.add(o,l);return w=r.mul(w,y),y=r.add(p,b),w=r.sub(w,y),y=r.add(i,a),c=r.add(s,l),y=r.mul(y,c),c=r.add(m,b),y=r.sub(y,c),d=r.mul(f,w),c=r.mul(h,b),d=r.add(c,d),c=r.sub(m,d),d=r.add(m,d),u=r.mul(c,d),m=r.add(p,p),m=r.add(m,p),b=r.mul(f,b),w=r.mul(h,w),m=r.add(m,b),b=r.sub(p,b),b=r.mul(f,b),w=r.add(w,b),p=r.mul(m,w),u=r.add(u,p),p=r.mul(y,w),c=r.mul(g,c),c=r.sub(c,p),p=r.mul(g,m),d=r.mul(y,d),new O(c,u,d=r.add(d,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(O.ZERO)}wNAF(e){return F.wNAFCached(this,e,O.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=n;(0,s.aK)("scalar",e,x,i);let a=O.ZERO;if(e===x)return a;if(this.is0()||e===A)return this;if(!t||F.hasPrecomputes(this))return F.wNAFCachedUnsafe(this,e,O.normalizeZ);let{k1neg:o,k1:l,k2neg:c,k2:u}=t.splitScalar(e),d=a,f=a,h=this;for(;l>x||u>x;)l&A&&(d=d.add(h)),u&A&&(f=f.add(h)),h=h.double(),l>>=A,u>>=A;return o&&(d=d.negate()),c&&(f=f.negate()),f=new O(r.mul(f.px,t.beta),f.py,f.pz),d.add(f)}multiply(e){let t,i,{endo:a,n:o}=n;if((0,s.aK)("scalar",e,A,o),a){let{k1neg:n,k1:o,k2neg:s,k2:l}=a.splitScalar(e),{p:c,f:u}=this.wNAF(o),{p:d,f:f}=this.wNAF(l);c=F.constTimeNegate(n,c),d=F.constTimeNegate(s,d),d=new O(r.mul(d.px,a.beta),d.py,d.pz),t=c.add(d),i=u.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,i=r}return O.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,n){let r=O.BASE,i=(e,t)=>t!==x&&t!==A&&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 S(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===A)return!0;if(t)return t(O,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===A?this:t?t(O,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return(0,s.e8)("isCompressed",e),this.assertValidity(),a(O,this,e)}toHex(e=!0){return(0,s.e8)("isCompressed",e),(0,s.My)(this.toRawBytes(e))}}O.BASE=new O(n.Gx,n.Gy,r.ONE),O.ZERO=new O(r.ZERO,r.ONE,r.ZERO);let{endo:T,nBitLength:M}=n,F=(t=T?Math.ceil(M/2):M,{constTimeNegate:u,hasPrecomputes:e=>1!==b(e),unsafeLadder(e,t,n=O.ZERO){let r=e;for(;t>l;)t&c&&(n=n.add(r)),r=r.double(),t>>=c;return n},precomputeWindow(e,n){let{windows:r,windowSize:i}=f(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=O.ZERO,a=O.BASE,o=f(e,t);for(let e=0;e<o.windows;e++){let{nextN:t,offset:s,isZero:l,isNeg:c,isNegF:d,offsetF:f}=h(r,e,o);r=t,l?a=a.add(u(d,n[f])):i=i.add(u(c,n[s]))}return{p:i,f:a}},wNAFUnsafe(e,n,r,i=O.ZERO){let a=f(e,t);for(let e=0;e<a.windows&&r!==l;e++){let{nextN:t,offset:o,isZero:s,isNeg:l}=h(r,e,a);if(r=t,!s){let e=n[o];i=i.add(l?e.negate():e)}}return i}
1611,getPrecomputes(e,t,n){let r=p.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&p.set(t,n(r))),r},wNAFCached(e,t,n){let r=b(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let i=b(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){d(n,t),m.set(e,n),p.delete(e)}});return{CURVE:n,ProjectivePoint:O,normPrivateKeyToScalar:B,weierstrassEquation:y,isWithinCurveOrder:function(e){return(0,s.r4)(e,A,n.n)}}}({...n,toBytes(e,t,n){let i=t.toAffine(),a=r.toBytes(i.x),o=s.Id;return((0,s.e8)("isCompressed",n),n)?o(Uint8Array.from([t.hasEvenY()?2:3]),a):o(Uint8Array.from([4]),a,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],i=e.subarray(1);if(t===j&&(2===n||3===n)){let e,t=(0,s.Ph)(i);if(!(0,s.r4)(t,A,r.ORDER))throw Error("Point is not on curve");let a=T(t);try{e=r.sqrt(a)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&n)==1!=((e&A)===A)&&(e=r.neg(e)),{x:t,y:e}}if(t===B&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw Error("invalid Point, expected length of "+j+", or uncompressed "+B+", got "+t)}}),F=(e,t,n)=>(0,s.Ph)(e.slice(t,n));class R{constructor(e,t,n){(0,s.aK)("r",e,A,i),(0,s.aK)("s",t,A,i),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){return new R(F(e=(0,s.qj)("compactSignature",e,2*a),0,a),F(e,a,2*a))}static fromDER(e){let{r:t,s:n}=v.toSig((0,s.qj)("DER",e));return new R(t,n)}assertValidity(){}addRecoveryBit(e){return new R(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:i,recovery:a}=this,o=U((0,s.qj)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let l=2===a||3===a?t+n.n:t;if(l>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&a)==0?"02":"03",u=P.fromHex(c+C(l,r.BYTES)),d=S(l),f=I(-o*d),h=I(i*d),p=P.BASE.multiplyAndAddUnsafe(u,f,h);if(!p)throw Error("point at infinify");return p.assertValidity(),p}hasHighS(){return this.s>i>>A}normalizeS(){return this.hasHighS()?new R(this.r,I(-this.s),this.recovery):this}toDERRawBytes(){return(0,s.aT)(this.toDERHex())}toDERHex(){return v.hexFromSig(this)}toCompactRawBytes(){return(0,s.aT)(this.toCompactHex())}toCompactHex(){return C(this.r,a)+C(this.s,a)}}function N(e){if("bigint"==typeof e)return!1;if(e instanceof P)return!0;let t=(0,s.qj)("key",e).length,i=r.BYTES,o=i+1;if(!n.allowedPrivateKeyLengths&&a!==o)return t===o||t===2*i+1}let D=n.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,s.Ph)(e),n=8*e.length-y;return n>0?t>>BigInt(n):t},U=n.bits2int_modN||function(e){return I(D(e))},L=(0,s.OG)(y);function q(e){return(0,s.aK)("num < 2^"+y,e,x,L),(0,s.lq)(e,a)}let W={lowS:n.lowS,prehash:!1},z={lowS:n.lowS,prehash:!1};return P.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e,t=!0){return P.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===N(e))throw Error("first arg must be private key");if(!1===N(t))throw Error("second arg must be public key");return P.fromHex(t).multiply(O(e)).toRawBytes(n)},sign:function(e,t,a=W){let{seed:o,k2sig:l}=function(e,t,a=W){if(["recovered","canonical"].some(e=>e in a))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:l}=n,{lowS:c,prehash:u,extraEntropy:d}=a;null==c&&(c=!0),e=(0,s.qj)("msgHash",e),w(a),u&&(e=(0,s.qj)("prehashed msgHash",o(e)));let f=U(e),h=O(t),p=[q(h),q(f)];if(null!=d&&!1!==d){let e=!0===d?l(r.BYTES):d;p.push((0,s.qj)("extraEntropy",e))}return{seed:(0,s.Id)(...p),k2sig:function(e){var t;let n=D(e);if(!M(n))return;let r=S(n),a=P.BASE.multiply(n).toAffine(),o=I(a.x);if(o===x)return;let s=I(r*I(f+o*h));if(s===x)return;let l=2*(a.x!==o)|Number(a.y&A),u=s;return c&&s>i>>A&&(u=(t=s)>i>>A?I(-t):t,l^=1),new R(o,u,l)}}}(e,t,a);return(0,s.fg)(n.hash.outputLen,n.nByteLength,n.hmac)(o,l)},verify:function(e,t,r,i=z){let a,o;t=(0,s.qj)("msgHash",t),r=(0,s.qj)("publicKey",r);let{lowS:l,prehash:c,format:u}=i;if(w(i),"strict"in i)throw Error("options.strict was renamed to lowS");if(void 0!==u&&"compact"!==u&&"der"!==u)throw Error("format must be compact or der");let d="string"==typeof e||(0,s.aY)(e),f=!d&&!u&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!d&&!f)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");
1611try{if(f&&(o=new R(e.r,e.s)),d){try{"compact"!==u&&(o=R.fromDER(e))}catch(e){if(!(e instanceof v.Err))throw e}o||"der"===u||(o=R.fromCompact(e))}a=P.fromHex(r)}catch(e){return!1}if(!o||l&&o.hasHighS())return!1;c&&(t=n.hash(t));let{r:h,s:p}=o,m=U(t),b=S(p),g=I(m*b),y=I(h*b),C=P.BASE.multiplyAndAddUnsafe(a,g,y)?.toAffine();return!!C&&I(C.x)===h},ProjectivePoint:P,Signature:R,utils:{isValidPrivateKey(e){try{return O(e),!0}catch(e){return!1}},normPrivateKeyToScalar:O,randomPrivateKey:()=>{let e=(0,o.Tp)(n.n);return(0,o.qy)(n.randomBytes(e),n.n)},precompute:(e=8,t=P.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,...{hash:t,hmac:(e,...n)=>a(t,e,(0,r.Id)(...n)),randomBytes:r.po}});return{...n(t),create:n}}},68324:(e,t,n)=>{"use strict";n.d(t,{O:()=>c,_:()=>l});var r=n(22859),i=n(8481),a=n(13847),o=n(2774),s=n(14867);async function l(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:l=e.chain,request:c,type:u="eip1559"}=t||{},d=await (async()=>"function"==typeof l?.fees?.baseFeeMultiplier?l.fees.baseFeeMultiplier({block:n,client:e,request:c}):l?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.sM;let f=d.toString().split(".")[1]?.length??0,h=10**f,p=e=>e*BigInt(Math.ceil(d*h))/BigInt(h),m=n||await (0,i.T)(e,o.g,"getBlock")({});if("function"==typeof l?.fees?.estimateFeesPerGas){let t=await l.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:c,type:u});if(null!==t)return t}if("eip1559"===u){if("bigint"!=typeof m.baseFeePerGas)throw new r.pw;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,a.N)(e,{block:m,chain:l,request:c}),n=p(m.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??p(await (0,i.T)(e,s.L,"getGasPrice")({}))}}},70238:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(90171);function i(e,t={}){let{key:n="custom",methods:a,name:o="Custom Provider",retryDelay:s}=t;return({retryCount:i})=>(0,r.o)({key:n,methods:a,name:o,request:e.request.bind(e),retryCount:t.retryCount??i,retryDelay:s,type:"custom"})}},71090:(e,t,n)=>{"use strict";n.d(t,{B4:()=>h,CQ:()=>v,CW:()=>y,Ei:()=>d,F8:()=>C,P5:()=>f,TH:()=>x,Vl:()=>g,Vr:()=>w,WM:()=>p,WQ:()=>b,im:()=>m,jm:()=>s,lD:()=>a,qh:()=>u,rE:()=>l,ry:()=>c,xn:()=>o});let r=BigInt(0x100000000-1),i=BigInt(32);function a(e,t=!1){let n=e.length,o=new Uint32Array(n),s=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l}=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[a],t);[o[a],s[a]]=[n,l]}return[o,s]}let o=(e,t,n)=>e>>>n,s=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e>>>n|t<<32-n,c=(e,t,n)=>e<<32-n|t>>>n,u=(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,h=(e,t,n)=>t<<n|e>>>32-n,p=(e,t,n)=>t<<n-32|e>>>64-n,m=(e,t,n)=>e<<n-32|t>>>64-n;function b(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/0x100000000|0)|0,l:0|i}}let g=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),w=(e,t,n,r)=>t+n+r+(e/0x100000000|0)|0,y=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),v=(e,t,n,r,i)=>t+n+r+i+(e/0x100000000|0)|0,C=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),x=(e,t,n,r,i,a)=>t+n+r+i+a+(e/0x100000000|0)|0},71400:(e,t,n)=>{"use strict";n.d(t,{A9:()=>i,NO:()=>s,Pj:()=>l,dV:()=>a,nx:()=>c,zd:()=>o});var r=n(94817);r.C;class i extends r.C{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.C{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.C{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.C{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 l extends r.C{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 c extends r.C{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
1611d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},71503:(e,t,n)=>{"use strict";n.d(t,{lB:()=>o});let r=new Map,i=new Map,a=0;function o(e,t,n){let o=++a,s=()=>r.get(e)||[],l=()=>{let t,n=s();if(!n.some(e=>e.id===o))return;let a=i.get(e);if(1===n.length&&a){let e=a();e instanceof Promise&&e.catch(()=>{})}t=s(),r.set(e,t.filter(e=>e.id!==o))},c=s();if(r.set(e,[...c,{id:o,fns:t}]),c&&c.length>0)return l;let u={};for(let e in t)u[e]=(...t)=>{let n=s();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let d=n(u);return"function"==typeof d&&i.set(e,d),l}},71613:(e,t,n)=>{"use strict";n.d(t,{Y:()=>b});var r=n(40097),i=n(57616),a=n(34472),o=n(81645);async function s(e,{account:t=e.account,message:n}){if(!t)throw new a.T({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,i.J)(t);if(r.signMessage)return r.signMessage({message:n});let l="string"==typeof n?(0,o.i3)(n):n.raw instanceof Uint8Array?(0,o.nj)(n.raw):n.raw;return e.request({method:"personal_sign",params:[l,r.address]},{retryCount:0})}var l=n(629),c=n(83469),u=n(70238),d=n(32544),f=n(16167);async function h(e,t={}){let n,{assertChainId:r=!0}=t;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new f.HF({connector:r});let[i,a]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:i,chainId:a,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new f.gC;let a=t.chainId??n.chainId,o=await n.connector.getChainId();if(r&&o!==a)throw new f.xU({connectionChainId:a,connectorChainId:o});let s=n.connector;if(s.getClient)return s.getClient({chainId:a});let l=(0,i.J)(t.account??n.accounts[0]);if(l&&(l.address=(0,d.b)(l.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===l.address.toLowerCase()))throw new f.aj({address:l.address,connector:s});let p=e.chains.find(e=>e.id===a),m=await n.connector.getProvider({chainId:a});return(0,c.U)({account:l,chain:p,name:"Connector Client",transport:e=>(0,u.I)(m)({...e,retryCount:0})})}async function p(e,t){let n,{account:r,connector:i,...a}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await h(e,{account:r,connector:i}),(0,l.T)(n,s,"signMessage")({...a,...r?{account:r}:{}})}var m=n(61511);function b(e={}){var t;let{mutation:n}=e,i=(t=(0,m.U)(e),{mutationFn:e=>p(t,e),mutationKey:["signMessage"]}),{mutate:a,mutateAsync:o,...s}=(0,r.n)({...n,...i});return{...s,signMessage:a,signMessageAsync:o}}},73303:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});let r=(0,n(91929).x)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:0x16041f6},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}})},73689:(e,t,n)=>{"use strict";n.d(t,{s:()=>c});var r=n(93778),i=n(49048),a=n(10459),o=n(44928),s=n(8481),l=n(75977);async function c(e,t){let{address:n,blockNumber:c,blockTag:u,coinType:d=60n,gatewayUrls:f,strict:h}=t,{chain:p}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.M)({blockNumber:c,chain:p,contract:"ensUniversalResolver"})})();try{let t={address:m,abi:r.oX,args:[n,d,f??[o.J]],functionName:"reverseWithGateways",blockNumber:c,blockTag:u},i=(0,s.T)(e,l.J,"readContract"),[a]=await i(t);return a||null}catch(e){if(h)throw e;if((0,a.J)(e))return null;throw e}}},74517:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(17191),i=n(65859),a=n(26715),o=n(81645);function s(e,t){let n=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,a.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,o.nj)(n)}},75087:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(1855),i=n(81645),a=n(93505);async function o(e,{blockHash:t,blockNumber:n,blockTag:s,hash:l,index:c}){let u=s||"latest",d=void 0!==n?(0,i.cK)(n):void 0,f=null;if(l?f=await e.request({method:"eth_getTransactionByHash",params:[l]},{dedupe:!0}):t?f=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.cK)(c)]},{dedupe:!0}):(d||u)&&(f=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[d||u,(0,i.cK)(c)]},{dedupe:!!d})),!f)throw new r.Kz({blockHash:t,blockNumber:n,blockTag:u,hash:l,index:c});return(e.chain?.formatters?.transaction?.format||a.uP)(f,"getTransaction")}},75977:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(94833),i=n(14237),a=n(66655),o=n(8481),s=n(34724);async function l(e,t){let{abi:n,address:l,args:c,functionName:u,...d}=t,f=(0,i.p)({abi:n,args:c,functionName:u});try{let{data:t}=await (0,o.T)(e,s.T,"call")({...d,data:f,to:l});return(0,r.e)({abi:n,args:c,functionName:u,data:t||"0x"})}catch(e){throw(0,a.j)(e,{abi:n,address:l,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},76200:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});let r="2.38.0",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};
vendor: 9,466 bytes, lines 1611-1631
1611class a extends Error{constructor(e,t={}){const 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)}}},77004:(e,t,n)=>{"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{u:()=>r})},77328:(e,t,n)=>{e.exports=n(88022)},77434:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});let r=new Map,i=new Map;async function a(e,{cacheKey:t,cacheTime:n=1/0}){let o,s,l,c=(s=(o=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}))(t,r),{clear:()=>{s.clear(),l.clear()},promise:s,response:l=o(t,i)}),u=c.response.get();if(u&&n>0&&Date.now()-u.created.getTime()<n)return u.data;let d=c.promise.get();d||(d=e(),c.promise.set(d));try{let e=await d;return c.response.set({created:new Date,data:e}),e}finally{c.promise.clear()}}async function o(e,{cacheTime:t=e.cacheTime}={}){let n;return BigInt(await a(()=>e.request({method:"eth_blockNumber"}),{cacheKey:(n=e.uid,`blockNumber.${n}`),cacheTime:t}))}},79313:(e,t,n)=>{"use strict";n.d(t,{BI:()=>A,EB:()=>C,Iy:()=>l,Iz:()=>y,MR:()=>v,M_:()=>w,Nc:()=>u,O:()=>c,Wl:()=>P,Wq:()=>m,YE:()=>f,YF:()=>s,YW:()=>o,ZP:()=>h,_z:()=>b,d_:()=>S,dm:()=>I,fo:()=>E,gH:()=>d,j:()=>B,kE:()=>g,l3:()=>k,nK:()=>j,nM:()=>x,yy:()=>p});var r=n(52346),i=n(38047),a=n(76200);class o extends a.C{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.C{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"})}}a.C;class l extends a.C{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.A)(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 c extends a.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends a.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
1612Expected length: ${e}
1613Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
1614Expected length (params): ${e}
1615Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h extends a.C{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
1616Cannot encode error result without knowing what the parameter types are.
1617Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends a.C{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
1618Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends a.C{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
1619Make sure you are using the correct ABI and that the error exists on it.
1620You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class b extends a.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends a.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
1621Make sure you are using the correct ABI and that the event exists on it.
1622You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class w extends a.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
1623Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends a.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
1624Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class v extends a.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
1625Cannot decode function result without knowing what the parameter types are.
1626Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class C extends a.C{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
1627Make sure you are using the correct ABI and that the function exists on it.
1628You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends a.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class A extends a.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class E extends a.C{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.A)(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.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class j extends a.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
1629Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class B extends a.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
1630Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class I extends a.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class S extends a.C{constructor(e){super(`"${e}" is not a valid definition type.
1631Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class P extends a.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},80170:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>w,Ej:()=>g,Fl:()=>j,HT:()=>c,Ho:()=>p,M7:()=>m,Ro:()=>y,Ty:()=>C,di:()=>b,ii:()=>k,oB:()=>f,sH:()=>h,tf:()=>v,u:()=>E,uK:()=>d,xW:()=>l,xb:()=>u});var r=n(9431),i=n(54718),a=n(23511);let o=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(...e){return`0x${e.reduce((e,t)=>
1631e+t.replace("0x",""),"")}`}function c(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e}function u(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(i.Sl(n,t.size),p(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.Sl(r,t.size),m(r,t.size)):r}function f(e,t={}){let n,{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 C({max:n?`${n}${t}`:void 0,min:`${o}${t}`,signed:r,size:i,value:`${e}${t}`})}let s=(r&&a<0?(1n<<BigInt(8*i))+BigInt(a):a).toString(16),l=`0x${s}`;return i?p(l,i):l}function h(e,t={}){return d(o.encode(e),t)}function p(e,t){return i.eV(e,{dir:"left",size:t})}function m(e,t){return i.eV(e,{dir:"right",size:t})}function b(e,t,n,r={}){let{strict:a}=r;i.kK(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&i.X(o,t,n),o}function g(e){return Math.ceil((e.length-2)/2)}function w(e,t={}){let{signed:n}=t;t.size&&i.Sl(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 y(e,t={}){let{signed:n,size:r}=t;return n||r?Number(w(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 x(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new A(e)}(e,{strict:n}),!0}catch{return!1}}class C extends r.C{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"})}}r.C;class x extends r.C{constructor(e){super(`Value \`${"object"==typeof e?a.A(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 A extends r.C{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"})}}r.C;class E extends r.C{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.C{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 j extends r.C{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"})}}},80403:(e,t,n)=>{"use strict";n.d(t,{db:()=>a,eV:()=>i});var r=n(16053);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.Fl({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.Fl({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},80585:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',i={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${r}`,system:r},a={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},o={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:o[n].modalOverlay},fonts:{body:i[t]},radii:{actionButton:a[e].actionButton,connectButton:a[e].connectButton,menuButton:a[e].connectButton,modal:
1631a[e].modal,modalMobile:a[e].modalMobile}})},81645:(e,t,n)=>{"use strict";n.d(t,{$P:()=>l,My:()=>c,cK:()=>u,i3:()=>f,nj:()=>s});var r=n(12748),i=n(80403),a=n(16006);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?u(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size})):n}function c(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.Sl)(r,{size:t.size}),(0,i.eV)(r,{dir:"right",size:t.size})):r}function u(e,t={}){let n,{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 l="bigint"==typeof n&&a?-n-1n:0;if(n&&s>n||s<l){let t="bigint"==typeof e?"n":"";throw new r.Ty({max:n?`${n}${t}`:void 0,min:`${l}${t}`,signed:a,size:o,value:`${e}${t}`})}let c=`0x${(a&&s<0?(1n<<BigInt(8*o))+BigInt(s):s).toString(16)}`;return o?(0,i.eV)(c,{size:o}):c}let d=new TextEncoder;function f(e,t={}){return c(d.encode(e),t)}},81873:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(57353),i=n(98877),a=n(19953);function o(e,{docsPath:t,...n}){let s,l=(s=(0,a.l)(e,n))instanceof i.RM?e:s;return new r.zX(l,{docsPath:t,...n})}},82367:(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,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,{e:()=>r})},82421:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});let r="2.22.1"},82749:(e,t,n)=>{"use strict";function r(e){return`${e}`}n.d(t,{h:()=>r})},83469:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(57616),i=n(93913);function a(e){let{batch:t,chain:n,ccipRead:a,key:o="base",name:s="Base Client",type:l="base"}=e,c=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),u=Math.min(Math.max(Math.floor((n?.blockTime??12e3)/2),500),4e3),d=e.pollingInterval??u,f=e.cacheTime??d,h=e.account?(0,r.J)(e.account):void 0,{config:p,request:m,value:b}=e.transport({chain:n,pollingInterval:d}),g={account:h,batch:t,cacheTime:f,ccipRead:a,chain:n,key:o,name:s,pollingInterval:d,request:m,transport:{...p,...b},type:l,uid:(0,i.L)(),...c?{experimental_blockTag:c}:{}};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)})}},83607:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(16006);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ME)(t)}},83878:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(76200);class i extends r.C{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"})}}},83894:(e,t,n)=>{"use strict";n.d(t,{EQ:()=>s});var r=n(76200),i=n(12355),a=n(26715),o=n(81645);function s(e,t="hex"){let n=function e(t){var n,r;let i,o,s,c;return Array.isArray(t)?(o=l(i=(n=t.map(t=>e(t))).reduce((e,t)=>e+t.length,0)),{length:i<=55?1+i:1+o+i,encode(e){for(let{encode:t}of(i<=55?e.pushByte(192+i):(e.pushByte(247+o),1===o?e.pushUint8(i):2===o?e.pushUint16(i):3===o?e.pushUint24(i):e.pushUint32(i)),n))t(e)}}):(c=l((s="string"==typeof(r=t)?(0,a.aT)(r):r).length),{length:1===s.length&&s[0]<128?1:s.length<=55?1+s.length:1+c+s.length,encode(e){1===s.length&&s[0]<128||(s.length<=55?e.pushByte(128+s.length):(e.pushByte(183+c),1===c?e.pushUint8(s.length):2===c?e.pushUint16(s.length):3===c?e.pushUint24(s.length):e.pushUint32(s.length))),e.pushBytes(s)}})}(e),r=(0,i.l)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,o.My)(r.bytes):r.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new r.C("Length is too large.")}},84194:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(16006),i=n(8481),a=n(71503),o=n(92108),s=n(40474),l=n(77434);function c(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:u,onError:d,poll:f,pollingInterval:h=e.pollingInterval}){let p,m,b;return(void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1631onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(m=(0,s.A)(["watchBlockNumber",e.uid,t,n,h]),(0,a.lB)(m,{onBlockNumber:u,onError:d},r=>(0,o.w)(async()=>{try{let t=await (0,i.T)(e,l.G,"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:h}))):(b=(0,s.A)(["watchBlockNumber",e.uid,t,n]),(0,a.lB)(b,{onBlockNumber:u,onError:d},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.uU)(e.result?.number);t.onBlockNumber(i,p),p=i},onError(e){t.onError?.(e)}});i=o,n||i()}catch(e){d?.(e)}})(),()=>i()}))}},87291:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(81645);async function i(e,{address:t,blockNumber:n,blockTag:a=e.experimental_blockTag??"latest"}){let o="bigint"==typeof n?(0,r.cK)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||a]}))}},88022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return m},defaultHead:function(){return d}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let a=n(64252),o=n(88365),s=n(37876),l=o._(n(14232)),c=a._(n(18071)),u=n(16972);function d(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let h=["name","httpEquiv","charSet","itemProp"];function p(e){let t,n,r,i;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,n=new Set,r=new Set,i={},e=>{let a=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?a=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?a=!1:n.add(e.type);break;case"meta":for(let t=0,n=h.length;t<n;t++){let n=h[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?a=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set;("name"!==n||!o)&&r.has(t)?a=!1:(r.add(t),i[n]=r)}}}return a})).reverse().map((e,t)=>{let n=e.key||t;return l.default.cloneElement(e,{key:n})})}let m=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88440:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(79313),i=n(66320),a=n(35794),o=n(42802),s=n(52346);function l(e){let{abi:t,data:n}=e,l=(0,i.di)(n,0,4),c=t.find(e=>"function"===e.type&&l===(0,a.V)((0,s.B)(e)));if(!c)throw new r.EB(l,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,o.n)(c.inputs,(0,i.di)(n,4)):void 0}}},90089:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},90153:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});let r=1},90171:(e,t,n)=>{"use strict";n.d(t,{o:()=>d});var r=n(76200),i=n(36262),a=n(18912),o=n(81645);let s=new(n(52474)).A(8192);var l=n(44439),c=n(40474),u=n(93913);function d({key:e,methods:t,name:n,request:f,retryCount:h=3,retryDelay:p=150,timeout:m,type:b},g){return{config:{key:e,methods:t,name:n,request:f,retryCount:h,retryDelay:p,timeout:m,type:b},request:function(e,t={}){return async(n,u={})=>{let{dedupe:d=!1,methods:f,retryDelay:h=150,retryCount:p=3,uid:m}={...t,...u},{method:b}=n;if(f?.exclude?.includes(b)||f?.include&&!f.include.includes(b))throw new a.ab(Error("method not supported"),{method:b});let g=d?(0,o.i3)(`${m}.${(0,c.A)(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,l.b)(async()=>{try{return await e(n)}catch(e){switch(e.code){case a.XU.code:throw new a.XU(e);case a.CL.code:throw new a.CL(e);case a.Gi.code:throw new a.Gi(e,{method:n.method});case a.D5.code:throw new a.D5(e);case a.bq.code:throw new a.bq(e);case a.Di.code:throw new a.Di(e);case a.hA.code:throw new a.hA(e);case a.qZ.code:throw new a.qZ(e);case a.YW.code:throw new a.YW(e);case a.ab.code:throw new a.ab(e,{method:n.method});case a.s0.code:throw new a.s0(e);case a.xQ.code:throw new a.xQ(e);case a.vx.code:throw new a.vx(e);case a.sV.code:throw new a.sV(e);case a.Sf.code:throw new a.Sf(e);case a.RV.code:throw new a.RV(e);case a.xq.code:throw new a.xq(e);case a.ch.code:throw new a.ch(e);case a.L5.code:throw new a.L5(e);case a.WT.code:throw new a.WT(e);case a.hl.code:throw new a.hl(e);
1631case a.cg.code:throw new a.cg(e);case a.uL.code:throw new a.uL(e);case a.G1.code:throw new a.G1(e);case a.jz.code:throw new a.jz(e);case 5e3:throw new a.vx(e);default:if(e instanceof r.C)throw e;throw new a.MI(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Ci){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*h},retryCount:p,shouldRetry:({error:e})=>{var t;return"code"in(t=e)&&"number"==typeof t.code?-1===t.code||t.code===a.s0.code||t.code===a.bq.code:!(t instanceof i.Ci)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status||!1}}),{enabled:d,id:g})}}(f,{methods:t,retryCount:h,retryDelay:p,uid:(0,u.L)()}),value:g}}},90581:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(8759),i=n(12932),a=n(25139),o=n(16167),s=n(32544),l=n(18912),c=n(81645);function u(e){let t,d,f,h,p,m,b,g,w=e.isNewChainsStale??!0;return(0,r.U)(r=>({id:"walletConnect",name:"WalletConnect",type:u.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(p||(p=this.onConnect.bind(this),e.on("connect",p)),b||(b=this.onSessionDelete.bind(this),e.on("session_delete",b)))},async connect({chainId:e,withCapabilities:t,...n}={}){try{let a=await this.getProvider();if(!a)throw new i.N;m||(m=this.onDisplayUri,a.on("display_uri",m));let o=e;if(!o){let e=await r.storage?.getItem("state")??{};o=r.chains.some(t=>t.id===e.chainId)?e.chainId:r.chains[0]?.id}if(!o)throw Error("No chains found on connector.");let c=await this.isChainsStale();if(a.session&&c&&await a.disconnect(),!a.session||c){let e=r.chains.filter(e=>e.id!==o).map(e=>e.id);await a.connect({optionalChains:[o,...e],..."pairingTopic"in n?{pairingTopic:n.pairingTopic}:{}}),this.setRequestedChainsIds(r.chains.map(e=>e.id))}let u=(await a.enable()).map(e=>(0,s.b)(e)),d=await this.getChainId();if(e&&d!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===l.vx.code&&e.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw e;return{id:d}});d=t?.id??d}return m&&(a.removeListener("display_uri",m),m=void 0),p&&(a.removeListener("connect",p),p=void 0),f||(f=this.onAccountsChanged.bind(this),a.on("accountsChanged",f)),h||(h=this.onChainChanged.bind(this),a.on("chainChanged",h)),g||(g=this.onDisconnect.bind(this),a.on("disconnect",g)),b||(b=this.onSessionDelete.bind(this),a.on("session_delete",b)),{accounts:t?u.map(e=>({address:e,capabilities:{}})):u,chainId:d}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new l.vx(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{h&&(e?.removeListener("chainChanged",h),h=void 0),g&&(e?.removeListener("disconnect",g),g=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),f&&(e?.removeListener("accountsChanged",f),f=void 0),b&&(e?.removeListener("session_delete",b),b=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,s.b)(e))},async getProvider({chainId:i}={}){async function o(){let t=r.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:i}=await Promise.all([n.e(6238),n.e(9005)]).then(n.bind(n,69005));return await i.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(r.chains.map(e=>{let[t]=(0,a.R)({chain:e,transports:r.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(d||(d=o()),t=await d,t?.events.setMaxListeners(1/0)),i&&await this.switchChain?.({chainId:i}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new i.N;let a=r.chains.find(e=>e.id===t);if(!a)throw new l.ch(new o.nk);try{await Promise.all([new Promise(e=>{let n=({chainId:i})=>{i===t&&(r.emitter.off("change",n),e())};r.emitter.on("change",n)}),n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.cK)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),a}catch(r){if(/(user rejected)/i.test(r.message))throw new l.vx(r);try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:a.blockExplorers?.default.url?[a.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[...a.rpcUrls.default.http];let o={blockExplorerUrls:r,chainId:(0,c.cK)(t),chainName:e?.chainName??a.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??a.nativeCurrency,rpcUrls:i};await n.request({method:"wallet_addEthereumChain",params:[o]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),a}catch(e){throw new l.vx(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,s.b)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),r.emitter.emit("disconnect");let t=await this.getProvider();f&&(t.removeListener("accountsChanged",f),f=void 0),h&&(t.removeListener("chainChanged",h),h=void 0),g&&(t.removeListener("disconnect",g),g=void 0),b&&(t.removeListener("session_delete",b),b=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||"",10))??[]:[],async getRequestedChainsIds(){return await r.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!w)return!1;let e=r.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let n=await this.getRequestedChainsIds();return!e.every(e=>n.includes(e))},async setRequestedChainsIds(e){await r.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}u.type="walletConnect"},91497:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>E,FO:()=>m,If:()=>C,Ji:()=>d,Rv:()=>l,WL:()=>p,Yo:()=>w,ej:()=>f,fC:()=>k,iB:()=>c,kz:()=>o,l9:()=>g,pc:()=>a,sP:()=>A,v7:()=>j,v8:()=>v});var r=n(65809);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.Yv)(i,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function l(e){return s.test(e)}function c(e){return(0,r.Yv)(s,e)}let u=/^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 u.test(e)}function f(e){return(0,r.Yv)(u,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return h.test(e)}function m(e){return(0,r.Yv)(h,e)}let b=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return b.test(e)}function w(e){return(0,r.Yv)(b,e)}let y=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return y.test(e)}function C(e){return(0,r.Yv)(y,e)}let x=/^receive\(\) external payable$/;function A(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),k=new Set(["indexed"]),j=new Set(["calldata","memory","storage"])}
1631,91633:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(80170);function i(e){return{address:e.address,amount:r.oB(e.amount),index:r.oB(e.index),validatorIndex:r.oB(e.validatorIndex)}}function a(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.oB(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.oB(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:r.oB(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.oB(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.oB(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.oB(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},91929:(e,t,n)=>{"use strict";function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}n.d(t,{x:()=>r})},92108:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(77004);function i(e,{emitOnBegin:t,initialWaitTime:n,interval:a}){let o=!0,s=()=>o=!1;return(async()=>{let i;t&&(i=await e({unpoll:s}));let l=await n?.(i)??a;await (0,r.u)(l);let c=async()=>{o&&(await e({unpoll:s}),await (0,r.u)(a),c())};c()})(),s}},92783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b,v:()=>m});var r=n(37876),i=n(14232),a=n(26268),o=n(8047),s=n(1081),l=n(71613);function c(e){return 56===e?"bsc":8453===e?"base":null}function u(e,t){let n=c(t);if(!n)throw Error("Please switch to BSC or Base before signing in.");if(!e)throw Error("Connect a wallet before creating a login message.");
1631return`Welcome to PlaysOut Arcade!
1632
1633Sign this message to verify that you own this wallet.
1634Wallet: ${e}
1635Network: ${"bsc"===n?"BSC":"Base"} (${t})`}function d({chainId:e,address:t,message:n,signature:r,nonce:i}){let a=c(e);if(!a)throw Error("Please switch to BSC or Base before signing in.");if(!t||!n||!r)throw Error("Address, message, and signature are required.");let o={address:t,message:n,signature:r,...i?{nonce:i}:{}};return"bsc"===a?{source:"arcade",bscLoginRequest:o}:{source:"arcade",baseLoginRequest:o}}var f=n(18594),h=n(49346);let p=(0,i.createContext)(null);function m(){let e=(0,i.useContext)(p);if(!e)throw Error("useWalletAuthenticationController must be used inside WalletAuthenticationProvider");return e}function b({children:e}){let{address:t,isConnected:n}=(0,o.F)(),m=(0,s.i)(),{signMessageAsync:g}=(0,l.Y)(),w=!!c(m),[y,v]=(0,i.useState)("loading"),[C,x]=(0,i.useState)(null),A=(0,i.useRef)(null),E=(0,i.useRef)(null),k=(0,i.useRef)(null),j=(0,i.useCallback)(()=>x(null),[]),B=(0,i.useCallback)(()=>{if(E.current)return(0,f.c)("WalletAuth","explicit-login.reused-pending-request",{}),E.current;let e=(async()=>{if(!n||!t)return(0,f.c)("WalletAuth","explicit-login.skipped",{reason:"wallet-disconnected"}),x({code:"WALLET_NOT_CONNECTED"}),null;if(!w)return(0,f.c)("WalletAuth","explicit-login.skipped",{reason:"unsupported-chain"}),x({code:"UNSUPPORTED_CHAIN"}),null;x(null);let e=u(t,m),r=!1;try{(0,f.c)("WalletAuth","signature.requested",{chainId:m});let n=await g({account:t,message:e});r=!0,(0,f.c)("WalletAuth","signature.received",{chainId:m}),(0,f.c)("WalletAuth","login-api.requested",{chainId:m});let i=await (0,h.Lx)(d({chainId:m,address:t,message:e,signature:n}));if(!i.data?.userToken||!Number.isSafeInteger(i.data.id)||i.data.id<=0)return x({code:"LOGIN_RESPONSE_INVALID"}),null;(0,h.xm)(i.data,t);let a=(0,h.EF)(t);if(!a)return x({code:"LOGIN_RESPONSE_INVALID"}),null;return x(null),v("authenticated"),(0,f.c)("WalletAuth","login-api.succeeded",{hasSession:!0}),a}catch(t){let e;return(0,f.c)("WalletAuth",r?"login-api.failed":"signature.failed",(0,f.F)(t)),x({code:r?"LOGIN_FAILED":(e=[t.name,t.shortMessage,t.message,t.cause?.name,t.cause?.message].filter(Boolean).join(" "),4001===t.code||t.cause?.code===4001||/userrejected|user rejected|rejected the request/i.test(e)?"SIGNATURE_REJECTED":"SIGNATURE_REQUEST_FAILED")}),null}})().finally(()=>{E.current=null});return E.current=e,e},[t,w,m,n,g]);(0,i.useEffect)(()=>{if(!n||!t){(0,f.c)("WalletAuth","wallet.state-changed",{authenticationStatus:"unauthenticated",connected:!1}),x(null),v("unauthenticated");return}let e=(0,h.dG)(t)?"authenticated":"unauthenticated";(0,f.c)("WalletAuth","wallet.state-changed",{authenticationEnabled:w,authenticationStatus:e,connected:!0}),v(e)},[t,w,m,n]);let I=(0,i.useCallback)(async(e={})=>{if(!n||!t||!w)return null;let r=(0,h.EF)(t);if(!r?.userToken)return v("unauthenticated"),null;let i=Math.floor(Date.now()/1e3),a=Math.max(0,e.minValiditySeconds??0),o=null!==r.expiresAt&&r.expiresAt<=i,s=null!==r.expiresAt&&r.expiresAt-i<=a;if(!(e.forceRefresh||o||s))return r;if(!(r.refreshToken&&null!==r.refreshExpiresAt&&r.refreshExpiresAt>i))return e.forceRefresh||o?((0,h.Gz)(),v("unauthenticated"),null):r;try{let n=await (0,h.ti)(t);if(!n?.userToken){if(e.forceRefresh||o)return(0,h.Gz)(),v("unauthenticated"),null;return r}return v("authenticated"),n}catch(i){let n=(0,h.EF)(t),r=n?.expiresAt!==null&&n?.expiresAt!==void 0&&n.expiresAt<=Math.floor(Date.now()/1e3);throw(e.forceRefresh||i.authFailure||r||!n)&&((0,h.Gz)(),v("unauthenticated")),i}},[t,w,n]),S=(0,i.useCallback)(()=>{null!==k.current&&(window.clearTimeout(k.current),k.current=null)},[]);(0,i.useEffect)(()=>{if(S(),!n||!t||!w)return;let e=!1,r=0,i=async()=>{if(e)return;let n=(0,h.EF)(t);if(!n?.refreshToken||!n.expiresAt||!n.refreshExpiresAt)return;let a=Date.now(),o=1e3*n.refreshExpiresAt,s=1e3*n.expiresAt-3e5;if(a>=o){(0,h.Gz)(),v("unauthenticated");return}if(a<s){k.current=window.setTimeout(i,s-a);return}try{let n=await (0,h.ti)(t);if(e)return;if(!n){(0,h.Gz)(),v("unauthenticated");return}r=0,v("authenticated"),k.current=window.setTimeout(i,Math.max(1e3,1e3*n.expiresAt-3e5-Date.now()))}catch(o){if(e)return;let n=(0,h.EF)(t);if(!n||o.authFailure||Date.now()>=1e3*n.expiresAt){(0,h.Gz)(),v("unauthenticated");return}r+=1;let a=Math.min(6e4*2**(r-1),6e5);k.current=window.setTimeout(i,a)}},a=()=>
1635{"hidden"!==document.visibilityState&&i()};return i(),document.addEventListener("visibilitychange",a),window.addEventListener("focus",a),()=>{e=!0,S(),document.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a)}},[t,w,m,S,n,y]);let P=(0,i.useMemo)(()=>(0,a.kT)({getNonce:async()=>"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`,createMessage:({address:e,chainId:t})=>{(0,f.c)("WalletAuth","rainbowkit-signature.requested",{chainId:t}),x(null);let n=u(e,t);return A.current={address:e,chainId:t,message:n},n},verify:async({message:e,signature:t})=>{let n=A.current;if(!n||n.message!==e)return x({code:"LOGIN_CONTEXT_INVALID"}),!1;try{(0,f.c)("WalletAuth","rainbowkit-login-api.requested",{chainId:n.chainId});let r=await (0,h.Lx)(d({chainId:n.chainId,address:n.address,message:e,signature:t}));if(!r.data?.userToken||!Number.isSafeInteger(r.data.id)||r.data.id<=0)return x({code:"LOGIN_RESPONSE_INVALID"}),!1;return(0,h.xm)(r.data,n.address),A.current=null,x(null),v("authenticated"),(0,f.c)("WalletAuth","rainbowkit-login-api.succeeded",{hasSession:!0}),!0}catch(e){return(0,f.c)("WalletAuth","rainbowkit-login-api.failed",(0,f.F)(e)),x({code:"LOGIN_FAILED"}),!1}},signOut:async()=>{A.current=null,x(null),(0,h.Gz)(),v("unauthenticated")}}),[]),O=(0,i.useMemo)(()=>({address:t,authenticateConnectedWallet:B,authenticationEnabled:w,chainId:m,clearLastLoginError:j,getValidAccessToken:I,isConnected:n,lastLoginError:C,status:y}),[t,B,w,m,j,I,n,C,y]);return(0,r.jsx)(a.aN,{adapter:P,enabled:w,status:y,children:(0,r.jsx)(p.Provider,{value:O,children:e})})}},93505:(e,t,n)=>{"use strict";n.d(t,{b4:()=>a,gU:()=>s,uP:()=>o});var r=n(16006),i=n(65443);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.ME)(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.ME)(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)}})(),"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.q)("transaction",o)},93778:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>o,E5:()=>d,Rm:()=>c,SJ:()=>l,UW:()=>u,b2:()=>i,oX:()=>s,v2:()=>r});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:"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"}
vendor: 4,938 bytes, line 1635
1635,{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"}]}],l=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{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"}]}],u=[{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"}]},93913:(e,t,n)=>{"use strict";let r;n.d(t,{L:()=>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)}},94254:(e,t,n)=>{"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:i}){return new Promise((r,a)=>{(async()=>{let o;try{let s=new AbortController;n>0&&(o=setTimeout(()=>{i?s.abort():a(t)},n)),r(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(o)}})()})}n.d(t,{w:()=>r})},94770:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>a});var r=n(81645);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.cK)(BigInt(e.r)):e.r,s:e.s?(0,r.cK)(BigInt(e.s)):e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.cK)(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.My)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.cK)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.cK)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=i[e.type]),void 0!==e.value&&(n.value=(0,r.cK)(e.value)),n}},94817:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});class r extends Error{constructor(e,t={}){const 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}}}
vendor: 1,574 bytes, line 1635
1635,94833:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(79313),i=n(42802),a=n(96019);let o="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:l}=e,c=t[0];if(s){let e=(0,a.iY)({abi:t,args:n,name:s});if(!e)throw new r.Iz(s,{docsPath:o});c=e}if("function"!==c.type)throw new r.Iz(void 0,{docsPath:o});if(!c.outputs)throw new r.MR(c.name,{docsPath:o});let u=(0,i.n)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},96019:(e,t,n)=>{"use strict";n.d(t,{iY:()=>l});var r=n(79313),i=n(65859),a=n(57512),o=n(51304),s=n(35794);function l(e){let t,{abi:n,args:l=[],name:c}=e,u=(0,i.q)(c,{strict:!1}),d=n.filter(e=>u?"function"===e.type?(0,s.V)(e)===c:"event"===e.type&&(0,o.h)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){if("inputs"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.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.P)(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;
1635if(/[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 l=[o.type,s.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&(0,a.P)(r[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(n)throw new r.nM({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}}return t||d[0]}}},96268:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(45755),i=n(57512);function a(e,t){if(!(0,i.P)(e,{strict:!1}))throw new r.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new r.M({address:t});return e.toLowerCase()===t.toLowerCase()}},96397:(e,t,n)=>{"use strict";n.d(t,{$:()=>nN});var r=n(93778),i=n(94833),a=n(14237),o=n(49048),s=n(49154),l=n(81645),c=n(10459),u=n(44928),d=n(12283),f=n(46240),h=n(8481),p=n(75977);async function m(e,t){let{blockNumber:n,blockTag:m,coinType:b,name:g,gatewayUrls:w,strict:y}=t,{chain:v}=e,C=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.M)({blockNumber:n,chain:v,contract:"ensUniversalResolver"})})(),x=v?.ensTlds;if(x&&!x.some(e=>g.endsWith(e)))return null;let A=null!=b?[(0,d.k)(g),BigInt(b)]:[(0,d.k)(g)];try{let t=(0,a.p)({abi:r.Rm,functionName:"addr",args:A}),o={address:C,abi:r.Ag,functionName:"resolveWithGateways",args:[(0,l.nj)((0,f.F)(g)),t,w??[u.J]],blockNumber:n,blockTag:m},c=(0,h.T)(e,p.J,"readContract"),d=await c(o);if("0x"===d[0])return null;let b=(0,i.e)({abi:r.Rm,args:A,functionName:"addr",data:d[0]});if("0x"===b||"0x00"===(0,s.B)(b))return null;return b}catch(e){if(y)throw e;if((0,c.J)(e))return null;throw e}}var b=n(27575),g=n(73689);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.M)({blockNumber:n,chain:a,contract:"ensUniversalResolver"})})(),c=a?.ensTlds;if(c&&!c.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${c?.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);let[u]=await (0,h.T)(e,p.J,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,l.nj)((0,f.F)(i))],blockNumber:n,blockTag:r});return u}var y=n(2397),v=n(34724),C=n(57616),x=n(81873),A=n(35884),E=n(94770),k=n(39575);async function j(e,t){let{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:a,data:o,gas:s,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p,...m}=t,b=n?(0,C.J)(n):void 0;try{(0,k.c)(t);let n="bigint"==typeof r?(0,l.cK)(r):void 0,g=e.chain?.formatters?.transactionRequest?.format,w=(g||E.Bv)({...(0,A.o)(m,{format:g}),from:b?.address,blobs:a,data:o,gas:s,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p},"createAccessList"),y=await e.request({method:"eth_createAccessList",params:[w,n||i]});return{accessList:y.accessList,gasUsed:BigInt(y.gasUsed)}}catch(n){throw(0,x.d)(n,{...t,account:b,chain:e.chain})}}function B(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}async function I(e){let t=B(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var S=n(79313),P=n(76200);class O extends P.C{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var T=n(26715),M=n(74517),F=n(51304),R=n(23414),N=n(52346),D=n(96019);let U="/docs/contract/encodeEventTopics";function L(e){let{abi:t,eventName:n,args:r}=e,i=t[0];if(n){let e=(0,D.iY)({abi:t,name:n});if(!e)throw new S.M_(n,{docsPath:U});i=e}if("event"!==i.type)throw new S.M_(void 0,{docsPath:U});let a=(0,N.B)(i),o=(0,F.h)(a),s=[];if(r&&"inputs"in i){let e=i.inputs?.filter(e=>
vendor: 4,605 bytes, line 1635
1635"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>q({param:e,value:t[n][i]})):void 0!==t[n]&&null!==t[n]?q({param:e,value:t[n]}):null)??[])}return[o,...s]}function q({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,M.S)((0,T.ZJ)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new O(e.type);return(0,R.h)([e],[t])}async function W(e,t){let{address:n,abi:r,args:i,eventName:a,fromBlock:o,strict:s,toBlock:c}=t,u=B(e,{method:"eth_newFilter"}),d=a?L({abi:r,args:i,eventName:a}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof o?(0,l.cK)(o):o,toBlock:"bigint"==typeof c?(0,l.cK)(c):c,topics:d}]});return{abi:r,args:i,eventName:a,id:f,request:u(f),strict:!!s,type:"event"}}async function z(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:o,toBlock:s}={}){let c=i??(r?[r]:void 0),u=B(e,{method:"eth_newFilter"}),d=[];c&&(d=[c.flatMap(e=>L({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,l.cK)(a):a,toBlock:"bigint"==typeof s?(0,l.cK)(s):s,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:a,id:f,request:u(f),strict:!!o,toBlock:s,type:"event"}}async function Q(e){let t=B(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var G=n(66655),$=n(32544),H=n(65859),_=n(38047),K=n(16006);async function V({hash:e,signature:t}){let r=(0,H.q)(e)?e:(0,l.nj)(e),{secp256k1:i}=await Promise.resolve().then(n.bind(n,31168)),a=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:a}=t,o=J(Number(a??r));return new i.Signature((0,K.uU)(e),(0,K.uU)(n)).addRecoveryBit(o)}let e=(0,H.q)(t)?t:(0,l.nj)(t);if(65!==(0,_.E)(e))throw Error("invalid signature length");let n=J((0,K.ME)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${a}`}function J(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 Y({hash:e,signature:t}){var n;let r;return n=await V({hash:e,signature:t}),r=(0,M.S)(`0x${n.substring(4)}`).substring(26),(0,$.o)(`0x${r}`)}var Z=n(58798),X=n(83894);async function ee(e){let{authorization:t,signature:n}=e;return Y({hash:function(e){let{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,a=(0,M.S)((0,Z.aP)(["0x05",(0,X.EQ)([t?(0,l.cK)(t):"0x",i,n?(0,l.cK)(n):"0x"])]));return"bytes"===r?(0,T.aT)(a):a}(t),signature:n??t})}var et=n(12305),en=n(5639),er=n(1855);class ei extends P.C{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:l,nonce:c,to:u,value:d}){const f=(0,er.aO)({from:t?.address,to:u,value:void 0!==d&&`${(0,et.c)(d)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==o&&`${(0,en.Q)(o)} gwei`,maxFeePerGas:void 0!==s&&`${(0,en.Q)(s)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,en.Q)(l)} gwei`,nonce:c});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var ea=n(98877),eo=n(19953),es=n(45710),el=n(68324),ec=n(2774),eu=n(53422),ed=n(22859),ef=n(8922),eh=n(39151),ep=n(47714),em=n(20289),eb=n(13800),eg=n(83607);let ew=["blobVersionedHashes","chainId","fees","gas","nonce","type"],ey=new Map;async function ev(e,t){let n,r,{account:i=e.account,blobs:a,chain:o,gas:s,kzg:l,nonce:c,nonceManager:u,parameters:d=ew,type:f}=t,p=i?(0,C.J)(i):i,m={...t,...p?{from:p?.address}:{}};async function b(){return n||(n=await (0,h.T)(e,ec.g,"getBlock")({blockTag:"latest"}))}async function g(){return r||(o?o.id:void 0!==t.chainId?t.chainId:r=await (0,h.T)(e,eg.T,"getChainId")({}))}if(d.includes("nonce")&&void 0===c&&p)if(u){let t=await g();m.nonce=await u.consume({address:p.address,chainId:t,client:e})}else m.nonce=await (0,h.T)(e,eu.y,"getTransactionCount")({address:p.address,blockTag:"pending"});if((d.includes("blobVersionedHashes")||d.includes("sidecars"))&&a&&l){let e=(0,ef.S)({blobs:a,kzg:l});if(d.includes("blobVersionedHashes")&&(m.blobVersionedHashes=(0,ep.d)({commitments:e,to:"hex"})),d.includes("sidecars")){let t=(0,eh.t)({blobs:a,commitments:e,kzg:l});
1635m.sidecars=(0,em.T)({blobs:a,commitments:e,proofs:t,to:"hex"})}}if(d.includes("chainId")&&(m.chainId=await g()),(d.includes("fees")||d.includes("type"))&&void 0===f)try{m.type=(0,eb.L)(m)}catch{let t=ey.get(e.uid);if(void 0===t){let n=await b();t="bigint"==typeof n?.baseFeePerGas,ey.set(e.uid,t)}m.type=t?"eip1559":"legacy"}if(d.includes("fees"))if("legacy"!==m.type&&"eip2930"!==m.type){if(void 0===m.maxFeePerGas||void 0===m.maxPriorityFeePerGas){let n=await b(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await (0,el.O)(e,{block:n,chain:o,request:m});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new ed.RR({maxPriorityFeePerGas:i});m.maxPriorityFeePerGas=i,m.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new ed.pw;if(void 0===t.gasPrice){let t=await b(),{gasPrice:n}=await (0,el.O)(e,{block:t,chain:o,request:m,type:"legacy"});m.gasPrice=n}}return d.includes("gas")&&void 0===s&&(m.gas=await (0,h.T)(e,eC,"estimateGas")({...m,account:p?{address:p.address,type:"json-rpc"}:p})),(0,k.c)(m),delete m.parameters,m}async function eC(e,t){let{account:n=e.account}=t,r=n?(0,C.J)(n):void 0;try{let{accessList:n,authorizationList:i,blobs:a,blobVersionedHashes:o,blockNumber:s,blockTag:c,data:u,gas:d,gasPrice:f,maxFeePerBlobGas:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:b,value:g,stateOverride:w,...y}=await ev(e,{...t,parameters:r?.type==="local"?void 0:["blobVersionedHashes"]}),v=("bigint"==typeof s?(0,l.cK)(s):void 0)||c,C=(0,es.yH)(w),x=await (async()=>y.to?y.to:i&&i.length>0?await ee({authorization:i[0]}).catch(()=>{throw new P.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,k.c)(t);let j=e.chain?.formatters?.transactionRequest?.format,B=(j||E.Bv)({...(0,A.o)(y,{format:j}),from:r?.address,accessList:n,authorizationList:i,blobs:a,blobVersionedHashes:o,data:u,gas:d,gasPrice:f,maxFeePerBlobGas:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:b,to:x,value:g},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:C?[B,v??e.experimental_blockTag??"latest",C]:v?[B,v]:[B]}))}catch(n){throw function(e,{docsPath:t,...n}){let r;return new ei((r=(0,eo.l)(e,n))instanceof ea.RM?e:r,{docsPath:t,...n})}(n,{...t,account:r,chain:e.chain})}}async function ex(e,t){let{abi:n,address:r,args:i,functionName:o,dataSuffix:s,...l}=t,c=(0,a.p)({abi:n,args:i,functionName:o});try{return await (0,h.T)(e,eC,"estimateGas")({data:`${c}${s?s.replace("0x",""):""}`,to:r,...l})}catch(t){let e=l.account?(0,C.J)(l.account):void 0;throw(0,G.j)(t,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:e?.address})}}var eA=n(13847),eE=n(87291);async function ek(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var ej=n(77434);async function eB(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i,a=void 0!==n?(0,l.cK)(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,K.ME)(i)}var eI=n(4972),eS=n(96268),eP=n(60539),eO=n(42802);let eT="/docs/contract/decodeEventLog";function eM(e){let{abi:t,data:n,strict:r,topics:i}=e,a=r??!0,[o,...s]=i;if(!o)throw new S._z({docsPath:eT});let l=t.find(e=>"event"===e.type&&o===(0,F.h)((0,N.B)(e)));if(!(l&&"name"in l)||"event"!==l.type)throw new S.kE(o,{docsPath:eT});let{name:c,inputs:u}=l,d=u?.some(e=>!("name"in e&&e.name)),f=d?[]:{},h=u.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<h.length;e++){let[t,n]=h[e],r=s[e];if(!r)throw new S.l3({abiItem:l,param:t});f[d?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,eO.n)([e],t)||[])[0]}({param:t,value:r})}let p=u.filter(e=>!("indexed"in e&&e.indexed));if(p.length>
vendor: 4,720 bytes, line 1635
16350){if(n&&"0x"!==n)try{let e=(0,eO.n)(p,n);if(e)if(d)for(let t=0;t<u.length;t++)f[t]=f[t]??e.shift();else for(let t=0;t<p.length;t++)f[p[t].name]=e[t]}catch(e){if(a){if(e instanceof S.Iy||e instanceof eP.SK)throw new S.fo({abiItem:l,data:n,params:p,size:(0,_.E)(n)});throw e}}else if(a)throw new S.fo({abiItem:l,data:"0x",params:p,size:0})}return{eventName:c,args:Object.values(f).length>0?f:void 0}}function eF(e){let{abi:t,args:n,logs:r,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map(e=>{try{let r=t.find(t=>"event"===t.type&&e.topics[0]===(0,F.h)(t));if(!r)return null;let o=eM({...e,abi:[r],strict:i});if(a&&!a.includes(o.eventName)||!function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(e,t,n){try{if("address"===e.type)return(0,eS.h)(t,n);if("string"===e.type||"bytes"===e.type)return(0,M.S)((0,T.ZJ)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(null==e)return!0;let a=n[r];return!!a&&(Array.isArray(e)?e:[e]).some(e=>i(a,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof r||Array.isArray(r))&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;let a=n.find(t=>t.name===e);return!!a&&(Array.isArray(r)?r:[r]).some(n=>i(a,n,t[e]))})}({args:o.args,inputs:r.inputs,matchArgs:n}))return null;return{...o,...e}}catch(r){let t,n;if(r instanceof S.kE)return null;if(r instanceof S.fo||r instanceof S.l3){if(i)return null;t=r.abiItem.name,n=r.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}).filter(Boolean)}var eR=n(82367);async function eN(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:o,args:s,strict:c}={}){let u=o??(a?[a]:void 0),d=[];u&&(d=[u.flatMap(e=>L({abi:[e],eventName:e.name,args:o?void 0:s}))],a&&(d=d[0]));let f=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,l.cK)(r):r,toBlock:"bigint"==typeof i?(0,l.cK)(i):i}]})).map(e=>(0,eR.e)(e));return u?eF({abi:u,args:s,logs:f,strict:c??!1}):f}async function eD(e,t){let{abi:n,address:r,args:i,blockHash:a,eventName:o,fromBlock:s,toBlock:l,strict:c}=t,u=o?(0,D.iY)({abi:n,name:o}):void 0,d=u?void 0:n.filter(e=>"event"===e.type);return(0,h.T)(e,eN,"getLogs")({address:r,args:i,blockHash:a,event:u,events:d,fromBlock:s,toBlock:l,strict:c})}class eU extends P.C{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 eL(e,t){let{address:n,factory:r,factoryData:i}=t;try{let[t,a,o,s,l,c,u]=await (0,h.T)(e,p.J,"readContract")({abi:eq,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:a,version:o,chainId:Number(s),verifyingContract:l,salt:c},extensions:u,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new eU({address:n});throw e}}let eq=[{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 eW(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){var a;let o="bigint"==typeof n?(0,l.cK)(n):void 0;return{baseFeePerGas:(a=await e.request({method:"eth_feeHistory",params:[(0,l.cK)(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)))}}async function ez(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof r[0])return r;let i=r.map(e=>(0,eR.e)(e));return"abi"in t&&t.abi?eF({abi:t.abi,logs:i,strict:n}):i}async function eQ(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,eR.e)(e));return t.abi?eF({abi:t.abi,logs:r,strict:n}):r}var eG=n(14867);async function e$(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){let a=void 0!==n?(0,l.cK)(n):void 0;var o=await e.request({method:"eth_getProof",params:[t,i,a||(r??"latest")]});return{...o,balance:o.balance?BigInt(o.balance):void 0,nonce:o.nonce?(0,K.ME)(o.nonce):void 0,storageProof:o.storageProof?o.storageProof.map(e=>
vendor: 5,680 bytes, line 1635
1635({...e,value:BigInt(e.value)})):void 0}}async function eH(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let a=void 0!==n?(0,l.cK)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,a||r]})}var e_=n(75087);async function eK(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([(0,h.T)(e,ej.G,"getBlockNumber")({}),t?(0,h.T)(e,e_.x,"getTransaction")({hash:t}):void 0]),a=n?.blockNumber||i?.blockNumber;return a?r-a+1n:0n}var eV=n(845),eJ=n(19532),eY=n(91633),eZ=n(57353),eX=n(37744);async function e0(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:o,returnFullTransactions:s,traceTransfers:c,validation:u}=t;try{let t=[];for(let e of o){let n=e.blockOverrides?eY.J(e.blockOverrides):void 0,r=e.calls.map(e=>{let t=e.account?(0,C.J)(e.account):void 0,n=e.abi?(0,a.p)(e):e.data,r={...e,data:e.dataSuffix?(0,Z.xW)([n||"0x",e.dataSuffix]):n,from:e.from??t?.address};return(0,k.c)(r),(0,E.Bv)(r)}),i=e.stateOverrides?(0,es.yH)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:i})}let d="bigint"==typeof n?(0,l.cK)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:c,validation:u},d||r]})).map((e,t)=>({...(0,eX.$)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:a,functionName:s,to:l}=o[t].calls[n],c=e.error?.data??e.returnData,u=BigInt(e.gasUsed),d=e.logs?.map(e=>(0,eR.e)(e)),f="0x1"===e.status?"success":"failure",h=r&&"success"===f&&"0x"!==c?(0,i.e)({abi:r,data:c,functionName:s}):null,p=(()=>{let t;if("success"!==f&&(e.error?.data==="0x"?t=new S.O:e.error&&(t=new eZ.$S(e.error)),t))return(0,G.j)(t,{abi:r??[],address:l??"0x",args:a,functionName:s??"<unknown>"})})();return{data:c,gasUsed:u,logs:d,status:f,..."success"===f?{result:h}:{error:p}}})}))}catch(t){let e=(0,eo.l)(t,{});if(e instanceof ea.RM)throw t;throw e}}var e1=n(1162),e6=n(91497),e5=n(7877),e2=n(46685),e3=n(22729),e8=n(9431),e7=n(17191),e4=n(80170);function e9(e,t){if(ts(e)>t)throw new td({givenSize:ts(e),maxSize:t})}function te(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function tt(e,t={}){let{dir:n="left"}=t,r=e,i=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===n?e:r.length-e-1].toString())i++;else break;return"left"===n?r.slice(i):r.slice(0,r.length-i)}var tn=n(54718),tr=n(23511);let ti=new TextDecoder,ta=new TextEncoder;function to(e,t={}){let{size:n}=t,r=e;n&&(tn.Sl(e,n),r=e4.M7(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=te(i.charCodeAt(t++)),r=te(i.charCodeAt(t++));if(void 0===n||void 0===r)throw new e8.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);o[e]=16*n+r}return o}function ts(e){return e.length}function tl(e,t={}){let{size:n}=t;void 0!==n&&e9(e,n);let r=e4.uK(e,t);return e4.Ro(r,t)}function tc(e){return tt(e,{dir:"left"})}class tu extends e8.C{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"})}}e8.C;class td extends e8.C{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 tf extends e8.C{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 th extends e8.C{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 tp(e,t={}){var n;let{as:r="string"==typeof e?"Hex":"Bytes"}=t,i=(0,e7.lY)(e instanceof Uint8Array?e:"string"==typeof e?to(e):(n=e)instanceof Uint8Array?n:new Uint8Array(n));return"Bytes"===r?i:e4.uK(i)}class tm 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 tb={checksum:new tm(8192)}.checksum,tg=/^0x[a-fA-F0-9]{40}$/;function tw(e,t={}){let{strict:n=!0}=t;if(!tg.test(e))throw new tC({address:e,cause:new tx});if(n){if(e.toLowerCase()===e)return;if(ty(e)!==e)throw new tC({address:e,cause:new tA})}}function ty(e){if(tb.has(e))return tb.get(e);tw(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=tp(function(e,t={}){let{size:n}=t,r=ta.encode(e);return"number"==typeof n?(e9(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new th({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 tb.set(e,i),i}function tv(e,t={}){let{strict:n=!0}=t??{};try{return tw(e,{strict:n}),!0}catch{return!1}}class tC extends e8.C{constructor({address:e,cause:t}){super(`Address "${e}
1635" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class tx extends e8.C{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 tA extends e8.C{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function tE(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 e8.C("Unable to normalize signature.");return i}function tk(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,e2.uT)(e);else{let n=(0,e5.e)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!(0,e6.WL)(r)){t=(0,e2.uT)(r,n);break}}}if(!t)throw new e1.xo({signature:e});return t}(e):e;return{...r,...n?{hash:tI(r)}:{}}}function tj(e,t,n){let r,{args:i=[],prepare:a=!0}=n??{},o=e4.tf(t,{strict:!1}),s=e.filter(e=>o?"function"===e.type||"error"===e.type?tB(e)===e4.di(t,0,4):"event"===e.type&&tI(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new tP({name:t});if(1===s.length)return{...s[0],...a?{hash:tI(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:tI(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 tv(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;
vendor: 9,697 bytes, line 1635
1635if(/[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"))&&tv(r[i],{strict:!1}))return s}}(e.inputs,r.inputs,i);if(t)throw new tS({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}}let l=(()=>{if(r)return r;let[e,...t]=s;return{...e,overloads:t}})();if(!l)throw new tP({name:t});return{...l,...a?{hash:tI(l)}:{}}}function tB(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tj(t,n)}return e[0]})();return e4.di(tI(t),0,4)}function tI(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tj(t,n)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:tp(e4.sH(function(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return tj(t,n)}return e[0]})();return tE("string"==typeof t?t:e3.B(t))}(t)))}class tS extends e8.C{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${tE(e3.B(e.abiItem))}\`, and`,`\`${t.type}\` in \`${tE(e3.B(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 tP extends e8.C{constructor({name:e,data:t,type:n="item"}){const r=e?` with name "${e}"`:t?` with data "${t}"`:"";super(`ABI ${n}${r} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}e8.C;var tO=n(71400),tT=n(66585);let tM=/^(.*)\[([0-9]*)\]$/,tF=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tR=/^(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)?$/,tN=2n**256n-1n;function tD(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=e4.Ej(i)}let n=[],r=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:s}=e[a];o?(n.push(e4.oB(t+i,{size:32})),r.push(s),i+=e4.Ej(s)):n.push(s)}return e4.xW(...n,...r)}function tU(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function tL(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(tL);let n=tU(e.type);return!!(n&&tL({...e,type:n[1]}))}let tq={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new tQ({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new tz({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tW({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 tW({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===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class tW extends e8.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class tz extends e8.C{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 tQ extends e8.C{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 tG(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new tY({expectedLength:e.length,givenLength:t.length});let i=tD(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=tU(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 tZ(t);if(!o&&t.length!==i)throw new tV({expectedLength:i,givenLength:t.length,type:`${a.type}[${i}]`});let s=!1,l=[];for(let n=0;n<t.length;n++){let i=e({checksumAddress:r,parameter:a,value:t[n]});i.dynamic&&(s=!0),l.push(i)}if(o||s){let e=tD(l);if(o){let t=e4.oB(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?e4.xW(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:e4.xW(...l.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],l=Array.isArray(t)?n:s.name,c=e({checksumAddress:r,parameter:s,value:t[l]});o.push(c),c.dynamic&&(a=!0)}return{dynamic:a,encoded:a?tD(o):e4.xW(...o.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return tw(e,{strict:n}),{dynamic:!1,encoded:e4.Ho(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type){var a=r;if("boolean"!=typeof a)throw new e8.C(`Invalid boolean value: "${a}" (type: ${typeof a}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:e4.Ho(e4.xb(a))}}if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=tR.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 e4.Ty({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:e4.oB(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=e4.Ej(e);if(!n){let t=e;return r%32!=0&&(t=e4.M7(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:e4.xW(e4.Ho(e4.oB(r,{size:32})),t)}}if(r!==Number.parseInt(n,10))throw new tJ({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:e4.M7(e)}}(r,{type:n.type});if("string"===n.type){var o=r;let e=e4.sH(o),t=Math.ceil(e4.Ej(e)/32),n=[];for(let r=0;r<t;r++)n.push(e4.M7(e4.di(e,32*r,(r+1)*32)));return{dynamic:!0,encoded:e4.xW(e4.M7(e4.oB(e4.Ej(e),{size:32})),...n)}}throw new tX(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 tY({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 e4.xW(...n)}function tH(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let n=(0,e2.NV)(e),r=n.length;for(let e=0;e<r;e++)t.push((0,e2.Pj)(n[e],{modifiers:e6.Dv}))}else{let n=(0,e5.e)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if((0,e6.WL)(r))continue;let a=(0,e2.NV)(r),o=a.length;for(let e=0;e<o;e++)t.push((0,e2.Pj)(a[e],{modifiers:e6.Dv,structs:n}
vendor: 4,143 bytes, lines 1635-1637
1635))}}if(0===t.length)throw new tO.A9({params:e});return t}(e):e}(t$||(t$={})).encode=function e(t,n,r=!1){if("address"===t)return tw(n),e4.Ho(n.toLowerCase(),32*!!r);if("string"===t)return e4.sH(n);if("bytes"===t)return n;if("bool"===t)return e4.Ho(e4.xb(n),r?32:1);let i=t.match(tR);if(i){let[e,t,a="256"]=i,o=Number.parseInt(a,10)/8;return e4.oB(n,{size:r?32:o,signed:"int"===t})}let a=t.match(tF);if(a){let[e,t]=a;if(Number.parseInt(t,10)!==(n.length-2)/2)throw new tJ({expectedSize:Number.parseInt(t,10),value:n});return e4.M7(n,32*!!r)}let o=t.match(tM);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":e4.xW(...i)}throw new tX(t)};class t_ extends e8.C{constructor({data:e,parameters:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tT.Q(t)})`,`Data:   ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class tK extends e8.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class tV extends e8.C{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 tJ extends e8.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${e4.Ej(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tY extends e8.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
1636Expected length (parameters): ${e}
1637Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tZ extends e8.C{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tX extends e8.C{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 t0(e,t={}){return tk(e,t)}function t1(e,t,n){let r=tj(e,t,n);if("function"!==r.type)throw new tP({name:t,type:"function"});return r}let t6="0x0000000000000000000000000000000000000000";var t5=n(15488);async function t2(e,t){let{blockNumber:n,blockTag:r,calls:i,stateOverrides:o,traceAssetChanges:s,traceTransfers:l,validation:c}=t,u=t.account?(0,C.J)(t.account):void 0;if(s&&!u)throw new P.C("`account` is required when `traceAssetChanges` is true");let d=u?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 tP({name:"constructor"});return t}(t),n]}return e})(),{bytecode:r,args:i}=n;return e4.xW(r,t.inputs?.length&&i?.length?tG(t.inputs,i):"0x")}(tk("constructor(bytes, bytes)"),{bytecode:t5.LX,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(...e){let[t,n=[]]=(()=>
vendor: 4,233 bytes, line 1637
1637{if(Array.isArray(e[0])){let[t,n,r]=e;return[t1(t,n,{args:r}),r]}let[t,n]=e;return[t,n]})(),{overloads:r}=t,i=r?t1([t,...r],t.name,{args:n}):t,a=tB(i),o=n.length>0?tG(i.inputs,n):void 0;return o?e4.xW(a,o):a}(t0("function getBalance(address)"),[u.address])]}):void 0,f=s?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await j(e,{account:u.address,...t,data:t.abi?(0,a.p)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],h=await e0(e,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:o},{calls:f.map((e,t)=>({abi:[t0("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:e,from:t6,nonce:t})),stateOverrides:[{address:t6,nonce:0}]}]:[],{calls:[...i,{}].map(e=>({...e,from:u?.address})),stateOverrides:o},...s?[{calls:[{data:d}]},{calls:f.map((e,t)=>({abi:[t0("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:e,from:t6,nonce:t})),stateOverrides:[{address:t6,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t0("function decimals() returns (uint256)")],functionName:"decimals",from:t6,nonce:t})),stateOverrides:[{address:t6,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t0("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t6,nonce:t})),stateOverrides:[{address:t6,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[t0("function symbol() returns (string)")],functionName:"symbol",from:t6,nonce:t})),stateOverrides:[{address:t6,nonce:0}]}]:[]],traceTransfers:l,validation:c}),p=s?h[2]:h[0],[m,b,,g,w,y,v,x]=s?h:[],{calls:A,...E}=p,k=A.slice(0,-1)??[],B=[...m?.calls??[],...b?.calls??[]].map(e=>"success"===e.status?(0,K.uU)(e.data):null),I=[...g?.calls??[],...w?.calls??[]].map(e=>"success"===e.status?(0,K.uU)(e.data):null),S=(y?.calls??[]).map(e=>"success"===e.status?e.result:null),O=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),T=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),M=[];for(let[e,t]of I.entries()){let n=B[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=S[e-1],i=O[e-1],a=T[e-1],o=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:f[e-1],decimals:a||r?Number(r??1):void 0,symbol:i??void 0};M.some(e=>e.token.address===o.address)||M.push({token:o,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:M,block:E,results:k}}async function t3(e,t){let{abi:n,address:r,args:o,dataSuffix:s,functionName:l,...c}=t,u=c.account?(0,C.J)(c.account):e.account,d=(0,a.p)({abi:n,args:o,functionName:l});try{let{data:a}=await (0,h.T)(e,v.T,"call")({batch:!1,data:`${d}${s?s.replace("0x",""):""}`,to:r,...c,account:u}),f=(0,i.e)({abi:n,args:o,functionName:l,data:a||"0x"}),p=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:f,request:{abi:p,address:r,args:o,dataSuffix:s,functionName:l,...c,account:u}}}catch(e){throw(0,G.j)(e,{abi:n,address:r,args:o,docsPath:"/docs/contract/simulateContract",functionName:l,sender:u?.address})}}async function t8(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}let t7="0x6492649264926492649264926492649264926492649264926492649264926492";class t4 extends e8.C{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function t9(e,t={}){let{recovered:n}=t;if(void 0===e.r||void 0===e.s||n&&void 0===e.yParity)throw new nr({signature:e});if(e.r<0n||e.r>tN)throw new ni({value:e.r});if(e.s<0n||e.s>tN)throw new na({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new no({value:e.yParity})}function ne(e){if(130!==e.length&&132!==e.length)throw new nn({signature:e});let t=BigInt(e4.di(e,0,32)),n=BigInt(e4.di(e,32,64)),r=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return nt(t)}catch{throw new no({value:t})}})();return void 0===r?{r:t,s:n}:{r:t,s:n,yParity:r}}function nt(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new ns({value:e})}class nn extends e8.C{constructor({signature:e}){super(`Value \`${e}
vendor: 4,698 bytes, line 1637
1637\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${e4.Ej(e4.HT(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class nr extends e8.C{constructor({signature:e}){super(`Signature \`${tr.A(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class ni extends e8.C{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 na extends e8.C{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 no extends e8.C{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 ns extends e8.C{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 nl=tH("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function nc(e){if("string"==typeof e){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==e4.di(e,-32))throw new nu(e)}else t9(e.authorization)}class nu extends e8.C{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 nd=n(13003);async function nf({address:e,authorization:t,signature:n}){return(0,eS.h)((0,$.b)(e),await ee({authorization:t,signature:n}))}var nh=n(31168);async function np(e,t){let n,{address:r,hash:i,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,s=(n=t.signature,(0,H.q)(n)?n:"object"==typeof n&&"r"in n&&"s"in n?function({r:e,s:t,to:n="hex",v:r,yParity:i}){let a=(()=>{if(0===i||1===i)return i;if(r&&(27n===r||28n===r||r>=35n))return+(r%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),o=`0x${new nh.secp256k1.Signature((0,K.uU)(e),(0,K.uU)(t)).toCompactHex()}${0===a?"1b":"1c"}`;return"hex"===n?o:(0,T.aT)(o)}(n):(0,l.My)(n));try{if(function(e){try{return nc(e),!0}catch{return!1}}(s))return await nm(e,{...t,multicallAddress:o,signature:s});return await nb(e,{...t,verifierAddress:a,signature:s})}catch(e){try{if((0,eS.h)((0,$.b)(r),await Y({hash:i,signature:s})))return!0}catch{}if(e instanceof nw)return!1;throw e}}async function nm(e,t){let{address:n,blockNumber:i,blockTag:o,hash:s,multicallAddress:c}=t,{authorization:u,data:d,signature:f,to:m}=function(e){nc(e);let t=e4.Ro(e4.di(e,-64,-32)),n=e4.di(e,-t-64,-64),r=e4.di(e,0,-t-64),[i,a,o]=function(e,t,n={}){let{as:r="Array",checksumAddress:i=!1}=n,a="string"==typeof t?to(t):t,o=function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(tq);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===ts(a)&&e.length>0)throw new tK;if(ts(a)&&32>ts(a))throw new t_({data:"string"==typeof t?t:e4.uK(t),parameters:e,size:ts(a)});let s=0,l="Array"===r?[]:{};for(let t=0;t<e.length;++t){let n=e[t];o.setPosition(s);let[a,c]=function e(t,n,r){let{checksumAddress:i,staticPosition:a}=r,o=tU(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+tl(t.readBytes(32)),a=r+32;t.setPosition(r);let s=tl(t.readBytes(32)),l=tL(n),c=0,u=[];for(let r=0;r<s;++r){t.setPosition(a+(l?32*r:c));let[o,s]=e(t,n,{checksumAddress:i,staticPosition:a});c+=s,u.push(o)}return t.setPosition(o+32),[u,32]}if(tL(n)){let r=o+tl(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,l=[];for(let r=0;r<a;++r){let[r,a]=e(t,n,{checksumAddress:i,staticPosition:o+s});s+=a,l.push(r)}return[l,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}
vendor: 4,331 bytes, line 1637
1637=r,o=0===n.components.length||n.components.some(({name:e})=>!e),s=o?[]:{},l=0;if(tL(n)){let r=a+tl(t.readBytes(32));for(let a=0;a<n.components.length;++a){let c=n.components[a];t.setPosition(r+l);let[u,d]=e(t,c,{checksumAddress:i,staticPosition:r});l+=d,s[o?a:c?.name]=u}return t.setPosition(a+32),[s,32]}for(let r=0;r<n.components.length;++r){let c=n.components[r],[u,d]=e(t,c,{checksumAddress:i,staticPosition:a});s[o?r:c?.name]=u,l+=d}return[s,l]}(t,n,{checksumAddress:i,staticPosition:a});if("address"===n.type)return function(e,t={}){let n,{checksum:r=!1}=t,i=e.readBytes(32);return[(n=e4.uK(function(e,t={}){let{strict:n}=t;!1;let r=e.slice(-20,void 0);return n&&function(e,t){if("number"==typeof t&&ts(e)!==t- -20)throw new tf({offset:t,position:"end",size:ts(e)})}(r,void 0),r}(i)),r?ty(n):n),32]}(t,{checksum:i});if("bool"===n.type)return[function(e,t={}){let{size:n}=t,r=e;if(void 0!==n&&(e9(r,n),r=tc(r)),r.length>1||r[0]>1)throw new tu(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=tl(e.readBytes(32));e.setPosition(n+t);let r=tl(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[e4.uK(i),32]}return[e4.uK(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:a});if(n.type.startsWith("uint")||n.type.startsWith("int")){var s,l;let e,r,i;return s=t,e=(l=n).type.startsWith("int"),r=Number.parseInt(l.type.split("int")[1]||"256",10),i=s.readBytes(32),[r>48?function(e,t={}){let{size:n}=t;void 0!==n&&e9(e,n);let r=e4.uK(e,t);return e4.Dg(r,t)}(i,{signed:e}):tl(i,{signed:e}),32]}if("string"===n.type)return function(e,{staticPosition:t}){let n=tl(e.readBytes(32));e.setPosition(t+n);let r=tl(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&&(e9(r,n),r=tt(r,{dir:"right"})),ti.decode(r)}(tc(e.readBytes(r,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:a});throw new tX(n.type)}(o,n,{checksumAddress:i,staticPosition:0});s+=c,"Array"===r?l.push(a):l[n.name??t]=a}return l}(nl,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){var t;let n;return t=e,t9(n=(()=>{var e,n;let r;if("string"==typeof t)return ne(t);if(t instanceof Uint8Array)return ne(e4.uK(t));return"string"==typeof t.r?(e=t,r=(()=>{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=nt(t)),"number"!=typeof n)throw new no({value:e.yParity});return n})(),{r:BigInt(e.r),s:BigInt(e.s),yParity:r}):t.v?{r:(n=t).r,s:n.s,yParity:nt(n.v)}:{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}}})()),n}}(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,eI.Q)(e,{address:n,blockNumber:i,blockTag:o})===(0,Z.aP)(["0xef0100",u.address]))return await ng(e,{address:n,blockNumber:i,blockTag:o,hash:s,signature:f});let b={address:u.address,chainId:Number(u.chainId),nonce:Number(u.nonce),r:(0,l.cK)(u.r,{size:32}),s:(0,l.cK)(u.s,{size:32}),yParity:u.yParity};if(!await nf({address:n,authorization:b}))throw new nw;let g=await (0,h.T)(e,p.J,"readContract")({...c?{address:c}:{code:t5.Ez},authorizationList:[b],abi:r.v2,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:m??n,callData:d}]:[],{allowFailure:!0,target:n,callData:(0,a.p)({abi:r.UW,functionName:"isValidSignature",args:[s,f]})}]]}),w=g[g.length-1]?.returnData;if(w?.startsWith("0x1626ba7e"))return!0;throw new nw}async function nb(e,t){let{address:n,factory:i,factoryData:o,hash:s,signature:l,verifierAddress:c,...u}=t,d=await (async()=>!i&&!o||function(e){try{if(e4.di(e,-32)!==t7)throw new t4(e);return!0}catch{return!1}}(l)?l:function(e){let{data:t,signature:n,to:r}=e;return e4.xW(tG(tH("address, bytes, bytes"),[r,t,n]),t7)}({data:o,signature:l,to:i}))(),f=c?{to:c,data:(0,a.p)({abi:r.E5,functionName:"isValidSig",args:[n,s,d]}),...u}:{data:(0,nd.m)({abi:r.E5,args:[n,s,d],bytecode:t5.fT}),...u},{data:p}
1637=await (0,h.T)(e,v.T,"call")(f).catch(e=>{if(e instanceof eZ.zX)throw new nw;throw e});if((0,K.Nx)(p??"0x0"))return!0;throw new nw}async function ng(e,t){let{address:n,blockNumber:i,blockTag:a,hash:o,signature:s}=t;if((await (0,h.T)(e,p.J,"readContract")({address:n,abi:r.UW,args:[o,s],blockNumber:i,blockTag:a,functionName:"isValidSignature"}).catch(e=>{if(e instanceof eZ.bG)throw new nw;throw e})).startsWith("0x1626ba7e"))return!0;throw new nw}class nw extends Error{}var ny=n(1379);async function nv(e,{address:t,message:n,factory:r,factoryData:i,signature:a,...o}){return np(e,{address:t,factory:r,factoryData:i,hash:(0,ny.A)(n),signature:a,...o})}var nC=n(42841);async function nx(e,t){let{address:n,factory:r,factoryData:i,signature:a,message:o,primaryType:s,types:l,domain:c,...u}=t;return np(e,{address:n,factory:r,factoryData:i,hash:(0,nC.Zh)({message:o,primaryType:s,types:l,domain:c}),signature:a,...u})}var nA=n(34597),nE=n(84194),nk=n(71503),nj=n(92108),nB=n(40474),nI=n(18912);let nS=/^(?:(?<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 nO=n(57512);async function nT(e,t){let{address:n,domain:r,message:i,nonce:a,scheme:o,signature:s,time:l=new Date,...c}=t,u=function(e){let{scheme:t,statement:n,...r}=e.match(nS)?.groups??{},{chainId:i,expirationTime:a,issuedAt:o,notBefore:s,requestId:l,...c}=e.match(nP)?.groups??{},u=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...c,...i?{chainId:Number(i)}:{},...a?{expirationTime:new Date(a)}:{},...o?{issuedAt:new Date(o)}:{},...s?{notBefore:new Date(s)}:{},...l?{requestId:l}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(i);if(!u.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,nO.P)(r.address,{strict:!1})||t&&!(0,eS.h)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:u,nonce:a,scheme:o,time:l}))return!1;let d=(0,ny.A)(i);return np(e,{address:u.address,hash:d,signature:s,...c})}async function nM(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}var nF=n(58547);async function nR(e,{serializedTransaction:t,timeout:n}){let r=await e.request({method:"eth_sendRawTransactionSync",params:n?[t,(0,l.cK)(n)]:[t]},{retryCount:0});return(e.chain?.formatters?.transactionReceipt?.format||nF.uL)(r)}function nN(e){return{call:t=>(0,v.T)(e,t),createAccessList:t=>j(e,t),createBlockFilter:()=>I(e),createContractEventFilter:t=>W(e,t),createEventFilter:t=>z(e,t),createPendingTransactionFilter:()=>Q(e),estimateContractGas:t=>ex(e,t),estimateGas:t=>eC(e,t),getBalance:t=>(0,eE.r)(e,t),getBlobBaseFee:()=>ek(e),getBlock:t=>(0,ec.g)(e,t),getBlockNumber:t=>(0,ej.G)(e,t),getBlockTransactionCount:t=>eB(e,t),getBytecode:t=>(0,eI.Q)(e,t),getChainId:()=>(0,eg.T)(e),getCode:t=>(0,eI.Q)(e,t),getContractEvents:t=>eD(e,t),getEip712Domain:t=>eL(e,t),getEnsAddress:t=>m(e,t),getEnsAvatar:t=>(0,b.i)(e,t),getEnsName:t=>(0,g.s)(e,t),getEnsResolver:t=>w(e,t),getEnsText:t=>(0,y.m)(e,t),getFeeHistory:t=>eW(e,t),estimateFeesPerGas:t=>(0,el._)(e,t),getFilterChanges:t=>ez(e,t),getFilterLogs:t=>eQ(e,t),getGasPrice:()=>(0,eG.L)(e),getLogs:t=>eN(e,t),getProof:t=>e$(e,t),estimateMaxPriorityFeePerGas:t=>(0,eA.b)(e,t),getStorageAt:t=>eH(e,t),getTransaction:t=>(0,e_.x)(e,t),getTransactionConfirmations:t=>eK(e,t),getTransactionCount:t=>(0,eu.y)(e,t),getTransactionReceipt:t=>(0,eV.h)(e,t),multicall:t=>(0,eJ.C)(e,t),prepareTransactionRequest:t=>ev(e,t),readContract:t=>(0,p.J)(e,t),sendRawTransaction:t=>nM(e,t),sendRawTransactionSync:t=>nR(e,t),simulate:t=>e0(e,t),simulateBlocks:t=>e0(e,t),simulateCalls:t=>t2(e,t),simulateContract:t=>t3(e,t),verifyHash:t=>np(e,t),verifyMessage:t=>nv(e,t),verifySiweMessage:t=>nT(e,t),verifyTypedData:t=>nx(e,t),uninstallFilter:t=>t8(e,t),waitForTransactionReceipt:t=>(0,nA.n)(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:l=e.pollingInterval}){let c,u,d,f,p,m=void 0!==s?s:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1637onfig.type&&"ipc"!==e.transport.transports[0].config.type),b=o??!1;return m?(u=(0,nB.A)(["watchBlocks",e.uid,t,n,r,b,l]),(0,nk.lB)(u,{onBlock:i,onError:a},i=>(0,nj.w)(async()=>{try{let r=await (0,h.T)(e,ec.g,"getBlock")({blockTag:t,includeTransactions:b});if(null!==r.number&&c?.number!=null){if(r.number===c.number)return;if(r.number-c.number>1&&n)for(let t=c?.number+1n;t<r.number;t++){let n=await (0,h.T)(e,ec.g,"getBlock")({blockNumber:t,includeTransactions:b});i.onBlock(n,c),c=n}}(c?.number==null||"pending"===t&&r?.number==null||null!==r.number&&r.number>c.number)&&(i.onBlock(r,c),c=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:l}))):(d=!0,f=!0,p=()=>d=!1,(async()=>{try{r&&(0,h.T)(e,ec.g,"getBlock")({blockTag:t,includeTransactions:b}).then(e=>{!d||f&&(i(e,void 0),f=!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(!d)return;let n=await (0,h.T)(e,ec.g,"getBlock")({blockNumber:t.result?.number,includeTransactions:b}).catch(()=>{});d&&(i(n,c),f=!1,c=n)},onError(e){a?.(e)}});p=o,d||p()}catch(e){a?.(e)}})(),()=>p())})(e,t),watchBlockNumber:t=>(0,nE.q)(e,t),watchContractEvent:t=>(function(e,t){let n,r,i,a,o,{abi:s,address:l,args:c,batch:u=!0,eventName:d,fromBlock:f,onError:p,onLogs:m,poll:b,pollingInterval:g=e.pollingInterval,strict:w}=t;return(void 0!==b?b:"bigint"==typeof f||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1637onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(n=w??!1,r=(0,nB.A)(["watchContractEvent",l,c,u,e.uid,d,g,n,f]),(0,nk.lB)(r,{onLogs:m,onError:p},t=>{let r,i;void 0!==f&&(r=f-1n);let a=!1,o=(0,nj.w)(async()=>{if(!a){try{i=await (0,h.T)(e,W,"createContractEventFilter")({abi:s,address:l,args:c,eventName:d,strict:n,fromBlock:f})}catch{}a=!0;return}try{let a;if(i)a=await (0,h.T)(e,ez,"getFilterChanges")({filter:i});else{let t=await (0,h.T)(e,ej.G,"getBlockNumber")({});a=r&&r<t?await (0,h.T)(e,eD,"getContractEvents")({abi:s,address:l,args:c,eventName:d,fromBlock:r+1n,toBlock:t,strict:n}):[],r=t}if(0===a.length)return;if(u)t.onLogs(a);else for(let e of a)t.onLogs([e])}catch(e){i&&e instanceof nI.Di&&(a=!1),t.onError?.(e)}},{emitOnBegin:!0,interval:g});return async()=>{i&&await (0,h.T)(e,t8,"uninstallFilter")({filter:i}),o()}})):(i=(0,nB.A)(["watchContractEvent",l,c,u,e.uid,d,g,w??!1]),a=!0,o=()=>a=!1,(0,nk.lB)(i,{onLogs:m,onError:p},t=>((async()=>{try{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})(),r=d?L({abi:s,eventName:d,args:c}):[],{unsubscribe:i}=await n.subscribe({params:["logs",{address:l,topics:r}],onData(e){if(!a)return;let n=e.result;try{let{eventName:e,args:r}=eM({abi:s,data:n.data,topics:n.topics,strict:w}),i=(0,eR.e)(n,{args:r,eventName:e});t.onLogs([i])}catch(a){let e,r;if(a instanceof S.fo||a instanceof S.l3){if(w)return;e=a.abiItem.name,r=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,eR.e)(n,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});o=i,a||o()}catch(e){p?.(e)}})(),()=>o())))})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:a,fromBlock:o,onError:s,onLogs:l,poll:c,pollingInterval:u=e.pollingInterval,strict:d}){let f,p,m,b=void 0!==c?c:"bigint"==typeof o||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
1637onfig.type&&"ipc"!==e.transport.transports[0].config.type),g=d??!1;return b?(f=(0,nB.A)(["watchEvent",t,n,r,e.uid,i,u,o]),(0,nk.lB)(f,{onLogs:l,onError:s},s=>{let l,c;void 0!==o&&(l=o-1n);let d=!1,f=(0,nj.w)(async()=>{if(!d){try{c=await (0,h.T)(e,z,"createEventFilter")({address:t,args:n,event:i,events:a,strict:g,fromBlock:o})}catch{}d=!0;return}try{let o;if(c)o=await (0,h.T)(e,ez,"getFilterChanges")({filter:c});else{let r=await (0,h.T)(e,ej.G,"getBlockNumber")({});o=l&&l!==r?await (0,h.T)(e,eN,"getLogs")({address:t,args:n,event:i,events:a,fromBlock:l+1n,toBlock:r}):[],l=r}if(0===o.length)return;if(r)s.onLogs(o);else for(let e of o)s.onLogs([e])}catch(e){c&&e instanceof nI.Di&&(d=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:u});return async()=>{c&&await (0,h.T)(e,t8,"uninstallFilter")({filter:c}),f()}})):(p=!0,m=()=>p=!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),c=[];o&&(c=[o.flatMap(e=>L({abi:[e],eventName:e.name,args:n}))],i&&(c=c[0]));let{unsubscribe:u}=await r.subscribe({params:["logs",{address:t,topics:c}],onData(e){if(!p)return;let t=e.result;try{let{eventName:e,args:n}=eM({abi:o??[],data:t.data,topics:t.topics,strict:g}),r=(0,eR.e)(t,{args:n,eventName:e});l([r])}catch(i){let e,n;if(i instanceof S.fo||i instanceof S.l3){if(d)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eR.e)(t,{args:n?[]:{},eventName:e});l([r])}},onError(e){s?.(e)}});m=u,p||m()}catch(e){s?.(e)}})(),()=>m())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){let o,s,l;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(o=(0,nB.A)(["watchPendingTransactions",e.uid,t,a]),(0,nk.lB)(o,{onTransactions:r,onError:n},n=>{let r,i=(0,nj.w)(async()=>{try{if(!r)try{r=await (0,h.T)(e,Q,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let a=await (0,h.T)(e,ez,"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,h.T)(e,t8,"uninstallFilter")({filter:r}),i()}})):(s=!0,l=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;r([t])},onError(e){n?.(e)}});l=t,s||l()}catch(e){n?.(e)}})(),()=>l())})(e,t)}}},98275:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(90089);let i=new class extends r.Q{#X;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#X!==e&&(this.#X=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#X?this.#X:globalThis.document?.visibilityState!=="hidden"}}},98877:(e,t,n)=>{"use strict";n.d(t,{A7:()=>a,BG:()=>o,Fo:()=>h,K0:()=>l,Oh:()=>c,RM:()=>b,jj:()=>s,k5:()=>d,lN:()=>m,lY:()=>f,uC:()=>p,vW:()=>u});var r=n(5639),i=n(76200);class a extends i.C{constructor({cause:e,message:t}={}){const 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/});class o extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(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.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(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 l extends i.C{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(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
1638Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{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.C{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"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.C{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(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.Q)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(m,"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 b extends i.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(59603))),_N_E=e.O()}]);

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.