PageSourceSearch

https://mexiwin.com/static/reactjs/chunk.crypto.3c653c9363db6264a3b2.js

js mexiwin.com collected 2026-10-07 22:10:23 UTC 21,645 bytes, 1 lines download raw bytes

1"use strict";(()=>{var Se=Object.defineProperty;var u=(q,E)=>Se(q,"name",{value:E,configurable:!0});(self.webpackChunk=self.webpackChunk||[]).push([[1036],{29027(q,E,m){m.d(E,{$:u(()=>I,"$")});var w=m(44681),T=m(99030),F=m(31729);function M(A,a){return{address:(0,w.b)(A),storageKeys:a.map((n,h)=>((0,F.MR)((0,T.Lo)(n,32),"invalid slot",`storageKeys[${h}]`,n),n.toLowerCase()))}}u(M,"accessSetify");function I(A){if(Array.isArray(A))return A.map((n,h)=>Array.isArray(n)?((0,F.MR)(n.length===2,"invalid slot set",`value[${h}]`,n),M(n[0],n[1])):((0,F.MR)(n!=null&&typeof n=="object","invalid address-slot set","value",A),M(n.address,n.storageKeys)));(0,F.MR)(A!=null&&typeof A=="object","invalid access list","value",A);const a=Object.keys(A).map(n=>{const h=A[n].reduce(($,G)=>($[G]=!0,$),{});return M(n,Object.keys(h).sort())});return a.sort((n,h)=>n.address.localeCompare(h.address)),a}u(I,"accessListify")},76560(q,E,m){m.d(E,{M:u(()=>M,"M")});var w=m(44681),T=m(8264),F=m(62643);function M(I){return{address:(0,w.b)(I.address),nonce:(0,F.Ab)(I.nonce!=null?I.nonce:0),chainId:(0,F.Ab)(I.chainId!=null?I.chainId:0),signature:T.t.from(I.signature)}}u(M,"authorizationify")},51036(q,E,m){var L;m.d(E,{Z:u(()=>Oe,"Z")});var w=m(44681),T=m(16992),F=m(55288),M=m(8264),I=m(20230),A=m(86323),a=m(99030),n=m(31729),h=m(62643),$=m(60913),G=m(49657),ne=m(29027),fe=m(76560);function de(s){let e;return typeof s=="string"?e=A.h.computePublicKey(s,!1):e=s.publicKey,(0,w.b)((0,I.S)("0x"+e.substring(4)).substring(26))}u(de,"computeAddress");function me(s,e){return de(A.h.recoverPublicKey(s,e))}u(me,"recoverAddress");var pe,ye,ce=u(s=>{throw TypeError(s)},"__typeError"),re=u((s,e,t)=>e.has(s)||ce("Cannot "+t),"__accessCheck"),p=u((s,e,t)=>(re(s,e,"read from private field"),t?t.call(s):e.get(s)),"__privateGet"),g=u((s,e,t)=>e.has(s)?ce("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),"__privateAdd"),c=u((s,e,t,i)=>(re(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),"__privateSet"),ae=u((s,e,t)=>(re(s,e,"access private method"),t),"__privateMethod"),R,O,S,V,x,N,k,D,H,U,Z,j,K,_,B,W,J,X,Q,ee;const b=BigInt(0),ge=BigInt(2),Pe=BigInt(27),be=BigInt(28),ve=BigInt(35),Ae=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Le=Symbol.for("nodejs.util.inspect.custom"),oe=4096*32,Y=128;function Ve(s,e){e==null&&(e=Y);const t=[],i=pe(s),o=i.length/e;for(let r=0;r<i.length;r+=o)t.push(ye(i.subarray(r,r+o)));return t}u(Ve,"splitBlobCells");function Me(s){return{blobToKzgCommitment:u(i=>{if("computeBlobProof"in s){if("blobToKzgCommitment"in s&&typeof s.blobToKzgCommitment=="function")return(0,a.q5)(s.blobToKzgCommitment((0,a.c$)(i)))}else if("blobToKzgCommitment"in s&&typeof s.blobToKzgCommitment=="function")return(0,a.q5)(s.blobToKzgCommitment(i));if("blobToKZGCommitment"in s&&typeof s.blobToKZGCommitment=="function")return(0,a.q5)(s.blobToKZGCommitment((0,a.c$)(i)));(0,n.MR)(!1,"unsupported KZG library","kzg",s)},"blobToKzgCommitment"),computeBlobKzgProof:u((i,o)=>
1{if("computeBlobProof"in s&&typeof s.computeBlobProof=="function")return(0,a.q5)(s.computeBlobProof((0,a.c$)(i),(0,a.c$)(o)));if("computeBlobKzgProof"in s&&typeof s.computeBlobKzgProof=="function")return s.computeBlobKzgProof(i,o);if("computeBlobKZGProof"in s&&typeof s.computeBlobKZGProof=="function")return(0,a.q5)(s.computeBlobKZGProof((0,a.c$)(i),(0,a.c$)(o)));(0,n.MR)(!1,"unsupported KZG library","kzg",s)},"computeBlobKzgProof")}}u(Me,"getKzgLibrary");function ue(s,e){let t=s.toString(16);for(;t.length<2;)t="0"+t;return t+=(0,F.s)(e).substring(4),"0x"+t}u(ue,"getVersionedHash");function C(s){return s==="0x"?null:(0,w.b)(s)}u(C,"handleAddress");function te(s,e){try{return(0,ne.$)(s)}catch(t){(0,n.MR)(!1,t.message,e,s)}}u(te,"handleAccessList");function Ie(s,e){try{if(!Array.isArray(s))throw new Error("authorizationList: invalid array");const t=[];for(let i=0;i<s.length;i++){const o=s[i];if(!Array.isArray(o))throw new Error(`authorization[${i}]: invalid array`);if(o.length!==6)throw new Error(`authorization[${i}]: wrong length`);if(!o[1])throw new Error(`authorization[${i}]: null address`);t.push({address:C(o[1]),nonce:d(o[2],"nonce"),chainId:d(o[0],"chainId"),signature:M.t.from({yParity:z(o[3],"yParity"),r:(0,a.nx)(o[4],32),s:(0,a.nx)(o[5],32)})})}return t}catch(t){(0,n.MR)(!1,t.message,e,s)}}u(Ie,"handleAuthorizationList");function z(s,e){return s==="0x"?0:(0,h.WZ)(s,e)}u(z,"handleNumber");function d(s,e){if(s==="0x")return b;const t=(0,h.Ab)(s,e);return(0,n.MR)(t<=Ae,"value exceeds uint size",e,t),t}u(d,"handleUint");function f(s,e){const t=(0,h.Ab)(s,"value"),i=(0,h.c4)(t);return(0,n.MR)(i.length<=32,"value too large",`tx.${e}`,t),i}u(f,"formatNumber");function se(s){return(0,ne.$)(s).map(e=>[e.address,e.storageKeys])}u(se,"formatAccessList");function Ge(s){return s.map(e=>[f(e.chainId,"chainId"),e.address,f(e.nonce,"nonce"),f(e.signature.yParity,"yParity"),(0,h.c4)(e.signature.r),(0,h.c4)(e.signature._s)])}u(Ge,"formatAuthorizationList");function Re(s,e){(0,n.MR)(Array.isArray(s),`invalid ${e}`,"value",s);for(let t=0;t<s.length;t++)(0,n.MR)((0,a.Lo)(s[t],32),"invalid ${ param } hash",`value[${t}]`,s[t]);return s}u(Re,"formatHashes");function Fe(s){const e=(0,$.J)(s);(0,n.MR)(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",s);const t={type:0,nonce:z(e[0],"nonce"),gasPrice:d(e[1],"gasPrice"),gasLimit:d(e[2],"gasLimit"),to:C(e[3]),value:d(e[4],"value"),data:(0,a.c$)(e[5]),chainId:b};if(e.length===6)return t;const i=d(e[6],"v"),o=d(e[7],"r"),r=d(e[8],"s");if(o===b&&r===b)t.chainId=i;else{let l=(i-ve)/ge;l<b&&(l=b),t.chainId=l,(0,n.MR)(l!==b||i===Pe||i===be,"non-canonical legacy v","v",e[6]),t.signature=M.t.from({r:(0,a.nx)(e[7],32),s:(0,a.nx)(e[8],32),v:i})}return t}u(Fe,"_parseLegacy");function Be(s,e){const t=[f(s.nonce,"nonce"),f(s.gasPrice||0,"gasPrice"),f(s.gasLimit,"gasLimit"),s.to||"0x",f(s.value,"value"),s.data];let i=b;if(s.chainId!=b)i=(0,h.Ab)(s.chainId,"tx.chainId"),(0,n.MR)(!e||e.networkV==null||e.legacyChainId===i,"tx.chainId/sig.v mismatch","sig",e);else if(s.signature){const r=s.signature.legacyChainId;r!=null&&(i=r)}if(!e)return i!==b&&(t.push((0,h.c4)(i)),t.push("0x"),t.push("0x")),(0,G.R)(t);let o=BigInt(27+e.yParity);return i!==b?o=M.t.getChainIdV(i,e.v):BigInt(e.v)!==o&&(0,n.MR)(!1,"tx.chainId/sig.v mismatch","sig",e),t.push((0,h.c4)(o)),t.push((0,h.c4)(e.r)),t.push((0,h.c4)(e._s)),(0,G.R)(t)}u(Be,"_serializeLegacy");function ie(s,e){let t;try{if(t=z(e[0],"yParity"),t!==0&&t!==1)throw new Error("bad yParity")}catch{(0,n.MR)(!1,"invalid yParity","yParity",e[0])}const i=(0,a.nx)(e[1],32),o=(0,a.nx)(e[2],32),r=M.t.from({r:i,s:o,yParity:t});s.signature=r}u(ie,"_parseEipSignature");function $e(s){const e=(0,$.J)((0,a.q5)(s).slice(1));(0,n.MR)(Array.isArray(e)&&(e.length===9||e.length===12),"invalid field count for transaction type: 2","data",(0,a.c$)(s));const t={type:2,chainId:d(e[0],"chainId"),nonce:z(e[1],"nonce"),maxPriorityFeePerGas:d(e[2],"maxPriorityFeePerGas"),maxFeePerGas:d(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:d(e[4],"gasLimit"),to:C(e[5]),value:d(e[6],"value"),data:(0,a.c$)(e[7]),accessList:te(e[8],"accessList")};
1return e.length===9||ie(t,e.slice(9)),t}u($e,"_parseEip1559");function Ee(s,e){const t=[f(s.chainId,"chainId"),f(s.nonce,"nonce"),f(s.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),f(s.maxFeePerGas||0,"maxFeePerGas"),f(s.gasLimit,"gasLimit"),s.to||"0x",f(s.value,"value"),s.data,se(s.accessList||[])];return e&&(t.push(f(e.yParity,"yParity")),t.push((0,h.c4)(e.r)),t.push((0,h.c4)(e.s))),(0,a.xW)(["0x02",(0,G.R)(t)])}u(Ee,"_serializeEip1559");function we(s){const e=(0,$.J)((0,a.q5)(s).slice(1));(0,n.MR)(Array.isArray(e)&&(e.length===8||e.length===11),"invalid field count for transaction type: 1","data",(0,a.c$)(s));const t={type:1,chainId:d(e[0],"chainId"),nonce:z(e[1],"nonce"),gasPrice:d(e[2],"gasPrice"),gasLimit:d(e[3],"gasLimit"),to:C(e[4]),value:d(e[5],"value"),data:(0,a.c$)(e[6]),accessList:te(e[7],"accessList")};return e.length===8||ie(t,e.slice(8)),t}u(we,"_parseEip2930");function _e(s,e){const t=[f(s.chainId,"chainId"),f(s.nonce,"nonce"),f(s.gasPrice||0,"gasPrice"),f(s.gasLimit,"gasLimit"),s.to||"0x",f(s.value,"value"),s.data,se(s.accessList||[])];return e&&(t.push(f(e.yParity,"recoveryParam")),t.push((0,h.c4)(e.r)),t.push((0,h.c4)(e.s))),(0,a.xW)(["0x01",(0,G.R)(t)])}u(_e,"_serializeEip2930");function We(s){let e=(0,$.J)((0,a.q5)(s).slice(1)),t="3",i=null,o=null;if(e.length===4&&Array.isArray(e[0])){t="3 (network format)";const l=e[1],y=e[2],v=e[3];(0,n.MR)(Array.isArray(l),"invalid network format: blobs not an array","fields[1]",l),(0,n.MR)(Array.isArray(y),"invalid network format: commitments not an array","fields[2]",y),(0,n.MR)(Array.isArray(v),"invalid network format: proofs not an array","fields[3]",v),(0,n.MR)(l.length===y.length,"invalid network format: blobs/commitments length mismatch","fields",e),(0,n.MR)(l.length===v.length,"invalid network format: blobs/proofs length mismatch","fields",e),o=[];for(let P=0;P<e[1].length;P++)o.push({data:l[P],commitment:y[P],proof:v[P]});e=e[0]}else if(e.length===5&&Array.isArray(e[0])){t="3 (EIP-7594 network format)",i=(0,h.WZ)(e[1]);const l=e[2],y=e[3],v=e[4];(0,n.MR)(i===1,`unsupported EIP-7594 network format version: ${i}`,"fields[1]",i),(0,n.MR)(Array.isArray(l),"invalid EIP-7594 network format: blobs not an array","fields[2]",l),(0,n.MR)(Array.isArray(y),"invalid EIP-7594 network format: commitments not an array","fields[3]",y),(0,n.MR)(Array.isArray(v),"invalid EIP-7594 network format: proofs not an array","fields[4]",v),(0,n.MR)(l.length===y.length,"invalid network format: blobs/commitments length mismatch","fields",e),(0,n.MR)(l.length*Y===v.length,"invalid network format: blobs/proofs length mismatch","fields",e),o=[];for(let P=0;P<l.length;P++){const he=[];for(let le=0;le<Y;le++)he.push(v[P*Y+le]);o.push({data:l[P],commitment:y[P],proof:(0,a.xW)(he)})}e=e[0]}(0,n.MR)(Array.isArray(e)&&(e.length===11||e.length===14),`invalid field count for transaction type: ${t}`,"data",(0,a.c$)(s));const r={type:3,chainId:d(e[0],"chainId"),nonce:z(e[1],"nonce"),maxPriorityFeePerGas:d(e[2],"maxPriorityFeePerGas"),maxFeePerGas:d(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:d(e[4],"gasLimit"),to:C(e[5]),value:d(e[6],"value"),data:(0,a.c$)(e[7]),accessList:te(e[8],"accessList"),maxFeePerBlobGas:d(e[9],"maxFeePerBlobGas"),blobVersionedHashes:e[10],blobWrapperVersion:i};o&&(r.blobs=o),(0,n.MR)(r.to!=null,`invalid address for transaction type: ${t}`,"data",s),(0,n.MR)(Array.isArray(r.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",s);for(let l=0;l<r.blobVersionedHashes.length;l++)(0,n.MR)((0,a.Lo)(r.blobVersionedHashes[l],32),`invalid blobVersionedHash at index ${l}: must be length 32`,"data",s);return e.length===11||ie(r,e.slice(11)),r}u(We,"_parseEip4844");function ze(s,e,t){const i=[f(s.chainId,"chainId"),f(s.nonce,"nonce"),f(s.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),f(s.maxFeePerGas||0,"maxFeePerGas"),f(s.gasLimit,"gasLimit"),s.to||T.j,f(s.value,"value"),s.data,se(s.accessList||[]),f(s.maxFeePerBlobGas||0,"maxFeePerBlobGas"),Re(s.blobVersionedHashes||[],"blobVersionedHashes")];if(e&&(i.push(f(e.yParity,"yParity")),i.push((0,h.c4)(e.r)),i.push((0,h.c4)(e.s)),t)){if(s.blobWrapperVersion!=null){const o=(0,h.c4)(s.blobWrapperVersion),r=[];for(const{proof:l}of t){const y=(0,a.q5)(l),v=y.length/Y;for(let P=0;P<y.length;P+=v)r.push(y.subarray(P,P+v))}return(0,a.xW)(["0x03",(0,G.R)([i,o,t.map(l=>l.data),t.map(l=>l.commitment),r])])}return(0,a.xW)(["0x03",(0,G.R)([i,t.map(o=>o.data),t.map(o=>o.commitment),t.map(o=>o.proof)])])}return(0,a.xW)(["0x03",(0,G.R)(i)])}
1u(ze,"_serializeEip4844");function Te(s){const e=(0,$.J)((0,a.q5)(s).slice(1));(0,n.MR)(Array.isArray(e)&&(e.length===10||e.length===13),"invalid field count for transaction type: 4","data",(0,a.c$)(s));const t={type:4,chainId:d(e[0],"chainId"),nonce:z(e[1],"nonce"),maxPriorityFeePerGas:d(e[2],"maxPriorityFeePerGas"),maxFeePerGas:d(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:d(e[4],"gasLimit"),to:C(e[5]),value:d(e[6],"value"),data:(0,a.c$)(e[7]),accessList:te(e[8],"accessList"),authorizationList:Ie(e[9],"authorizationList")};return e.length===10||ie(t,e.slice(10)),t}u(Te,"_parseEip7702");function Ke(s,e){const t=[f(s.chainId,"chainId"),f(s.nonce,"nonce"),f(s.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),f(s.maxFeePerGas||0,"maxFeePerGas"),f(s.gasLimit,"gasLimit"),s.to||"0x",f(s.value,"value"),s.data,se(s.accessList||[]),Ge(s.authorizationList||[])];return e&&(t.push(f(e.yParity,"yParity")),t.push((0,h.c4)(e.r)),t.push((0,h.c4)(e.s))),(0,a.xW)(["0x04",(0,G.R)(t)])}u(Ke,"_serializeEip7702");const Ce=(L=class{constructor(){g(this,Q),g(this,R),g(this,O),g(this,S),g(this,V),g(this,x),g(this,N),g(this,k),g(this,D),g(this,H),g(this,U),g(this,Z),g(this,j),g(this,K),g(this,_),g(this,B),g(this,W),g(this,J),g(this,X),c(this,R,null),c(this,O,null),c(this,V,0),c(this,x,b),c(this,N,null),c(this,k,null),c(this,D,null),c(this,S,"0x"),c(this,H,b),c(this,U,b),c(this,Z,null),c(this,j,null),c(this,K,null),c(this,_,null),c(this,B,null),c(this,W,null),c(this,J,null),c(this,X,null)}get type(){return p(this,R)}set type(e){switch(e){case null:c(this,R,null);break;case 0:case"legacy":c(this,R,0);break;case 1:case"berlin":case"eip-2930":c(this,R,1);break;case 2:case"london":case"eip-1559":c(this,R,2);break;case 3:case"cancun":case"eip-4844":c(this,R,3);break;case 4:case"pectra":case"eip-7702":c(this,R,4);break;default:(0,n.MR)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){const e=p(this,O);return e==null&&this.type===3?T.j:e}set to(e){c(this,O,e==null?null:(0,w.b)(e))}get nonce(){return p(this,V)}set nonce(e){c(this,V,(0,h.WZ)(e,"value"))}get gasLimit(){return p(this,x)}set gasLimit(e){c(this,x,(0,h.Ab)(e))}get gasPrice(){const e=p(this,N);return e==null&&(this.type===0||this.type===1)?b:e}set gasPrice(e){c(this,N,e==null?null:(0,h.Ab)(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=p(this,k);return e??(this.type===2||this.type===3?b:null)}set maxPriorityFeePerGas(e){c(this,k,e==null?null:(0,h.Ab)(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=p(this,D);return e??(this.type===2||this.type===3?b:null)}set maxFeePerGas(e){c(this,D,e==null?null:(0,h.Ab)(e,"maxFeePerGas"))}get data(){return p(this,S)}set data(e){c(this,S,(0,a.c$)(e))}get value(){return p(this,H)}set value(e){c(this,H,(0,h.Ab)(e,"value"))}get chainId(){return p(this,U)}set chainId(e){c(this,U,(0,h.Ab)(e))}get signature(){return p(this,Z)||null}set signature(e){c(this,Z,e==null?null:M.t.from(e))}isValid(){const e=this.signature;if(e&&!e.isValid())return!1;const t=this.authorizationList;if(t){for(const i of t)if(!i.signature.isValid())return!1}return!0}get accessList(){const e=p(this,j)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){c(this,j,e==null?null:(0,ne.$)(e))}get authorizationList(){const e=p(this,J)||null;return e==null&&this.type===4?[]:e}set authorizationList(e){c(this,J,e==null?null:e.map(t=>(0,fe.M)(t)))}get maxFeePerBlobGas(){const e=p(this,K);return e==null&&this.type===3?b:e}set maxFeePerBlobGas(e){c(this,K,e==null?null:(0,h.Ab)(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=p(this,_);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){(0,n.MR)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,n.MR)((0,a.Lo)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}c(this,_,e)}get blobs(){return p(this,W)==null?null:p(this,W).map(e=>Object.assign({},e))}set blobs(e){if(e==null){c(this,W,null);return}const t=[],i=[];for(let o=0;o<e.length;o++){const r=e[o];if((0,a.f)(r)){(0,n.vA)(p(this,B),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let l=(0,a.q5)(r);if((0,n.MR)(l.length<=oe,"blob is too large",`blobs[${o}]`,r),l.length!==oe){const P=new Uint8Array(oe);P.set(l),l=P}const y=p(this,B).blobToKzgCommitment(l),v=(0,a.c$)(p(this,B).computeBlobKzgProof(l,y));t.push({data:(0,a.c$)(l),commitment:(0,a.c$)(y),proof:v}),i.push(ue(1,y))}else{const l=(0,a.c$)(r.data),y=(0,a.c$)(r.commitment),v=(0,a.c$)(r.proof);t.push({data:l,commitment:y,proof:v}),i.push(ue(1,y))}}c(this,W,t),c(this,_,i)}get kzg(){return p(this,B)}set kzg(e){e==null?c(this,B,null):c(this,B,Me(e))}get blobWrapperVersion(){return p(this,X)}set blobWrapperVersion(e){c(this,X,e)}get hash(){return this.signature==null?null:(0,I.S)(ae(this,Q,ee).call(this,!0,!1))}get unsignedHash(){return(0,I.S)(this.unsignedSerialized)}get from(){return this.signature==null?null:me(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return this.signature==null?null:A.h.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return this.signature!=null}get serialized(){return ae(this,Q,ee).call(this,!0,!0)}
1get unsignedSerialized(){return ae(this,Q,ee).call(this,!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,t=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,i=this.accessList!=null,o=p(this,K)!=null||p(this,_);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&(0,n.vA)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,n.vA)(!t||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,n.vA)(this.type!==0||!i,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const r=[];return this.type!=null?r.push(this.type):this.authorizationList&&this.authorizationList.length?r.push(4):t?r.push(2):e?(r.push(1),i||r.push(0)):i?(r.push(1),r.push(2)):(o&&this.to||(r.push(0),r.push(1),r.push(2)),r.push(3)),r.sort(),r}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return L.from(this)}toJSON(){const e=u(t=>t==null?null:t.toString(),"s");return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[Le](){return this.toString()}toString(){const e=[],t=u(o=>{let r=this[o];typeof r=="string"&&(r=JSON.stringify(r)),e.push(`${o}: ${r}`)},"add");this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),this.chainId!=null&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));const i=this.authorizationList;if(i){const o=[];for(const r of i){const l=[];l.push(`address: ${JSON.stringify(r.address)}`),r.nonce!=null&&l.push(`nonce: ${r.nonce}`),r.chainId!=null&&l.push(`chainId: ${r.chainId}`),r.signature&&l.push(`signature: ${r.signature.toString()}`),o.push(`Authorization { ${l.join(", ")} }`)}e.push(`authorizations: [ ${o.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(e==null)return new L;if(typeof e=="string"){const i=(0,a.q5)(e);if(i[0]>=127)return L.from(Fe(i));switch(i[0]){case 1:return L.from(we(i));case 2:return L.from($e(i));case 3:return L.from(We(i));case 4:return L.from(Te(i))}(0,n.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new L;return e.type!=null&&(t.type=e.type),e.to!=null&&(t.to=e.to),e.nonce!=null&&(t.nonce=e.nonce),e.gasLimit!=null&&(t.gasLimit=e.gasLimit),e.gasPrice!=null&&(t.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(t.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(t.data=e.data),e.value!=null&&(t.value=e.value),e.chainId!=null&&(t.chainId=e.chainId),e.signature!=null&&(t.signature=M.t.from(e.signature)),e.accessList!=null&&(t.accessList=e.accessList),e.authorizationList!=null&&(t.authorizationList=e.authorizationList),e.blobVersionedHashes!=null&&(t.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(t.kzg=e.kzg),e.blobWrapperVersion!=null&&(t.blobWrapperVersion=e.blobWrapperVersion),e.blobs!=null&&(t.blobs=e.blobs),e.hash!=null&&((0,n.MR)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,n.MR)(t.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&((0,n.MR)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,n.MR)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}},u(L,"_Transaction"),L);R=new WeakMap,O=new WeakMap,S=new WeakMap,V=new WeakMap,x=new WeakMap,N=new WeakMap,k=new WeakMap,D=new WeakMap,H=new WeakMap,U=new WeakMap,Z=new WeakMap,j=new WeakMap,K=new WeakMap,_=new WeakMap,B=new WeakMap,W=new WeakMap,J=new WeakMap,X=new WeakMap,Q=new WeakSet,ee=u(function(s,e){(0,n.vA)(!s||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const t=s?this.signature:null;switch(this.inferType()){case 0:return Be(this,t);case 1:return _e(this,t);case 2:return Ee(this,t);case 3:return ze(this,t,e?this.blobs:null);case 4:return Ke(this,t)}(0,n.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})},"getSerialized_fn");let Oe=Ce}}]);})();

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.