PageSourceSearch

https://www.eroteme.ai/_next/static/chunks/2871.9b661b19f3ec41e8.js

js eroteme.ai collected 2026-09-24 14:31:51 UTC 3,162 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="955716a8-6151-43dd-a81f-17a833d58037",e._sentryDebugIdIdentifier="sentry-dbid-955716a8-6151-43dd-a81f-17a833d58037")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2871],{21785:function(e,t,a){a.d(t,{offchainLookup:function(){return b},offchainLookupSignature:function(){return g}});var s=a(2612),n=a(96070),r=a(36117),o=a(29008);class d extends r.G{constructor({callbackSelector:e,cause:t,data:a,extraData:s,sender:n,urls:r}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",r&&["  Gateway URL(s):",...r.map(e=>`    ${(0,o.G)(e)}`)],`  Sender: ${n}`,`  Data: ${a}`,`  Callback selector: ${e}`,`  Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class c extends r.G{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.G)(t)}`,`Response: ${(0,n.P)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class i extends r.G{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}var u=a(78863),f=a(86899),l=a(45444),p=a(61228),y=a(57040),h=a(15102),w=a(18737);let g="0x556f1830",m={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function b(e,{blockNumber:t,blockTag:a,data:n,to:r}){let{args:o}=(0,f.p)({data:n,abi:[m]}),[c,u,h,g,b]=o,{ccipRead:E}=e,G=E&&"function"==typeof E?.request?E.request:k;try{if(!(0,p.E)(r,c))throw new i({sender:c,to:r});let n=u.includes(w.M)?await (0,w.w)({data:h,ccipRequest:G}):await G({data:h,sender:c,urls:u}),{data:o}=await (0,s.R)(e,{blockNumber:t,blockTag:a,data:(0,y.zo)([g,(0,l.E)([{type:"bytes"},{type:"bytes"}],[n,b])]),to:r});return o}catch(e){throw new d({callbackSelector:g,cause:e,data:n,extraData:b,sender:c,urls:u})}}async function k({data:e,sender:t,urls:a}){let s=Error("An unknown error occurred.");for(let r=0;r<a.length;r++){let o=a[r],d=o.includes("{data}")?"GET":"POST",i="POST"===d?{data:e,sender:t}:void 0,f="POST"===d?{"Content-Type":"application/json"}:{};try{let a;let r=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(i),headers:f,method:d});if(a=r.headers.get("Content-Type")?.startsWith("application/json")?(await r.json()).data:await r.text(),!r.ok){s=new u.Gg({body:i,details:a?.error?(0,n.P)(a.error):r.statusText,headers:r.headers,status:r.status,url:o});continue}if(!(0,h.v)(a)){s=new c({result:a,url:o});continue}return a}catch(e){s=new u.Gg({body:i,details:e.message,url:o})}}throw s}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.