1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5d7a2746-211b-41bc-ad90-ef8fbe208165",e._sentryDebugIdIdentifier="sentry-dbid-5d7a2746-211b-41bc-ad90-ef8fbe208165")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2321],{9389:(e,t,a)=>{a.d(t,{k:()=>d});var r=a(49547),s=a(53147),n=a(8853),i=a(53270),o=a(47017);async function d(e,t){async function a(t){if(t.endsWith(o.vB.slice(2))){let a=(0,s.B)((0,r.iN)(t,-64,-32)),i=(0,r.iN)(t,0,-64).slice(2).match(/.{1,64}/g),d=await Promise.all(i.map(t=>o.BH.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),l=d.some(e=>null===e)?100:d.every(e=>e?.status==="0x1")?200:d.every(e=>e?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,n.ME)(a),receipts:d.filter(Boolean),status:l,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}let{atomic:d=!1,chainId:l,receipts:u,version:c="2.0.0",...f}=await a(t.id),[p,m]=(()=>{let e=f.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...f,atomic:d,chainId:l?(0,n.ME)(l):void 0,receipts:u?.map(e=>({...e,blockNumber:(0,n.uU)(e.blockNumber),gasUsed:(0,n.uU)(e.gasUsed),status:i.Lj[e.status]}))??[],statusCode:m,status:p,version:c}}},47017:(e,t,a)=>{a.d(t,{BH:()=>p,vB:()=>f,yM:()=>m});var r=a(3773),s=a(39827),n=a(78375),i=a(41040),o=a(77223),d=a(8853),l=a(63502),u=a(92204),c=a(50240);let f="0x5792579257925792579257925792579257925792579257925792579257925792",p=(0,l.cK)(0,{size:32});async function m(e,t){let{account:a=e.account,capabilities:m,chain:w=e.chain,experimental_fallback:h,experimental_fallbackDelay:y=32,forceAtomic:v=!1,id:b,version:g="2.0.0"}=t,C=a?(0,r.J)(a):null,I=t.calls.map(e=>{let t=e.abi?(0,i.p)({abi:e.abi,functionName:e.functionName,args:e.args}):e.data;return{data:e.dataSuffix&&t?(0,o.xW)([t,e.dataSuffix]):t,to:e.to,value:e.value?(0,l.cK)(e.value):void 0}});try{let t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:v,calls:I,capabilities:m,chainId:(0,l.cK)(w.id),from:C?.address,id:b,version:g}]},{retryCount:0});if("string"==typeof t)return{id:t};return t}catch(a){if(h&&("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name||"UnknownRpcError"===a.name||a.details.toLowerCase().includes("does not exist / is not available")||a.details.toLowerCase().includes("missing or invalid. request()")||a.details.toLowerCase().includes("did not match any variant of untagged enum")||a.details.toLowerCase().includes("account upgraded to unsupported contract")||a.details.toLowerCase().includes("eip-7702 not supported")||a.details.toLowerCase().includes("unsupported wc_ method")||a.details.toLowerCase().includes("feature toggled misconfigured"))){if(m&&Object.values(m).some(e=>!e.optional)){let e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new n.L5(new s.C(e,{details:e}))}if(v&&I.length>1){let e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new n.jz(new s.C(e,{details:e}))}let t=[];for(let a of I){let r=(0,c.v)(e,{account:C,chain:w,data:a.data,to:a.to,value:a.value?(0,d.uU)(a.value):void 0});t.push(r),y>0&&await new Promise(e=>setTimeout(e,y))}let a=await Promise.allSettled(t);if(a.every(e=>"rejected"===e.status))throw a[0].reason;let r=a.map(e=>"fulfilled"===e.status?e.value:p);return{id:(0,o.xW)([...r,(0,l.cK)(w.id,{size:32}),f])}}throw(0,u.p)(a,{...t,account:C,chain:t.chain})}}},48373:(e,t,a)=>{a.d(t,{c:()=>f});var r=a(39827);class s extends r.C{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}var n=a(65400),i=a(60318),o=a(3975),d=a(30455),l=a(10006),u=a(2779),c=a(9389);async function f(e,t){let a,{id:r,pollingInterval:f=e.pollingInterval,status:m=({statusCode:e})=>200===e||e>=300,retryCount:w=4,retryDelay:h=({count:e})=>200*~~(1<<e),timeout:y=6e4,throwOnFailure:v=!1}=t,b=(0,u.A)(["waitForCallsStatus",e.uid,r]),{promise:g,resolve:C,reject:I}=(0,d.Y)(),E=(0,i.lB)(b,{resolve:C,reject:I},t=>{let i=(0,o.w)(async()=>{let o=e=>{clearTimeout(a),i(),e(),E()};try{let a=await (0,l.b)(async()=>{let t=await (0,n.T)(e,c.k,"getCallsStatus")({id:r});if(v&&"failure"===t.status)throw new s(t);return t},{retryCount:w,delay:h});if(!m(a))return;o(()=>t.resolve(a))}catch(e){o(()=>t.reject(e))}},{interval:f,emitOnBegin:!0});return i});return a=y?setTimeout(()=>{E(),clearTimeout(a),I(new p({id:r}))},y):void 0,await g}class p extends r.C{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}},66082:(e,t,a)=>{a.d(t,{h:()=>l});var r=a(3773),s=a(65163),n=a(86755),i=a(65400),o=a(7686),d=a(56249);async function l(e,t){let{account:a=e.account,chainId:l,nonce:u}=t;if(!a)throw new s.T({docsPath:"/docs/eip7702/prepareAuthorization"});let c=(0,r.J)(a),f=(()=>
1{if(t.executor)return"self"===t.executor?t.executor:(0,r.J)(t.executor)})(),p={address:t.contractAddress??t.address,chainId:l,nonce:u};return void 0===p.chainId&&(p.chainId=e.chain?.id??await (0,i.T)(e,o.T,"getChainId")({})),void 0===p.nonce&&(p.nonce=await (0,i.T)(e,d.y,"getTransactionCount")({address:c.address,blockTag:"pending"}),("self"===f||f?.address&&(0,n.h)(f.address,c.address))&&(p.nonce+=1)),p}},76854:(e,t,a)=>{a.d(t,{H4:()=>h,v8:()=>m,$$:()=>w});var r=a(13982),s=a(78568),n=a(2779),i=a(39827);class o extends i.C{constructor({domain:e}){super(`Invalid domain "${(0,n.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class d extends i.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 l extends i.C{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var u=a(10461),c=a(39550),f=a(63502),p=a(70753);function m(e){let{domain:t,message:a,primaryType:r,types:s}=e,i=(e,t)=>{let a={...t};for(let t of e){let{name:e,type:r}=t;"address"===r&&(a[e]=a[e].toLowerCase())}return a},o=s.EIP712Domain&&t?i(s.EIP712Domain,t):{},d=(()=>{if("EIP712Domain"!==r)return i(s[r],a)})();return(0,n.A)({domain:o,message:d,primaryType:r,types:s})}function w(e){let{domain:t,message:a,primaryType:n,types:i}=e,m=(e,t)=>{for(let a of e){let{name:e,type:n}=a,o=t[e],d=n.match(p.Ge);if(d&&("number"==typeof o||"bigint"==typeof o)){let[e,t,a]=d;(0,f.cK)(o,{signed:"int"===t,size:Number.parseInt(a,10)/8})}if("address"===n&&"string"==typeof o&&!(0,u.P)(o))throw new s.M({address:o});let w=n.match(p.BD);if(w){let[e,t]=w;if(t&&(0,c.E)(o)!==Number.parseInt(t,10))throw new r.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,c.E)(o)})}let h=i[n];h&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new l({type:e})}(n),m(h,o))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new o({domain:t});m(i.EIP712Domain,t)}if("EIP712Domain"!==n)if(i[n])m(i[n],a);else throw new d({primaryType:n,types:i})}function h({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)}},86755:(e,t,a)=>{a.d(t,{h:()=>n});var r=a(78568),s=a(10461);function n(e,t){if(!(0,s.P)(e,{strict:!1}))throw new r.M({address:e});if(!(0,s.P)(t,{strict:!1}))throw new r.M({address:t});return e.toLowerCase()===t.toLowerCase()}}}]);
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.