@dcl/auth-site 4.5.1-21076090969.commit-a0de2fc → 4.5.1-21079977369.commit-93de4d5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/assets/{ConstantsUtil-B1B0nR9C.js → ConstantsUtil-ImZ0xjtv.js} +1 -1
  2. package/assets/{ExchangeController-CC-WA7h6.js → ExchangeController-5leMQSmo.js} +1 -1
  3. package/assets/{HelpersUtil-DjLIrIEy.js → HelpersUtil-6Lu-mEjM.js} +1 -1
  4. package/assets/{NetworkUtil-BB0TxE9p.js → NetworkUtil-DIFMVwzE.js} +1 -1
  5. package/assets/{SwapController-B1Yvx6c2.js → SwapController-Bu9-iuVQ.js} +1 -1
  6. package/assets/{biconomy-DT6Iijj2.js → biconomy-Yt1uOIdW.js} +1 -1
  7. package/assets/{ccip-xyxXL3L7.js → ccip-CAVNbh-6.js} +1 -1
  8. package/assets/{data-capture-FB6me-7p.js → data-capture-B78wlmHY.js} +1 -1
  9. package/assets/{email-BGLr_-QZ.js → email-CYRLJa0G.js} +1 -1
  10. package/assets/{embedded-wallet-2rN-oS7N.js → embedded-wallet-C2ZmLzIi.js} +1 -1
  11. package/assets/{engine-DyumDdCT.js → engine-CXhg6hLJ.js} +1 -1
  12. package/assets/{extractIPFS-DKedTp8j.js → extractIPFS-DMvbSkdb.js} +1 -1
  13. package/assets/{features-BqOwC9OI.js → features-DuHQcqJW.js} +1 -1
  14. package/assets/{fortmatic-CLJ1v6-L.js → fortmatic-CqvjN1vs.js} +1 -1
  15. package/assets/{getInstalledModules-BC2fBQQe.js → getInstalledModules-DZVVEHyc.js} +1 -1
  16. package/assets/{if-defined-DIjTqkPc.js → if-defined-BxOadNJm.js} +1 -1
  17. package/assets/{in-app-wallet-calls-BhbFXrXl.js → in-app-wallet-calls-VLzZMUuO.js} +1 -1
  18. package/assets/{index-DHjdohiW.js → index--D7R8fAc.js} +1 -1
  19. package/assets/{index-Bd2WIJU8.js → index-6Uxs_7u4.js} +1 -1
  20. package/assets/{index-Wk9ccokW.js → index-9ZQRsJCf.js} +1 -1
  21. package/assets/{index-CwvvRQi8.js → index-B8WpS2nb.js} +1 -1
  22. package/assets/{index-DkatlhKa.js → index-BCHrQrmb.js} +1 -1
  23. package/assets/{index-LAjLiS-K.js → index-BOpMWf3n.js} +1 -1
  24. package/assets/{index-B2Nwx2Pb.js → index-BP6Hzt3-.js} +1 -1
  25. package/assets/{index-dB98qioB.js → index-Bd66_6IA.js} +2 -2
  26. package/assets/{index-_w3EEN07.js → index-Bi48MbqU.js} +4 -4
  27. package/assets/{index-Bsn7-UVq.js → index-BluiLFL0.js} +1 -1
  28. package/assets/{index-Dta7LIvX.js → index-BsLoaLK9.js} +1 -1
  29. package/assets/{index-DhuV0cPI.js → index-Bxs3GBuW.js} +1 -1
  30. package/assets/{index-rwQnv0hR.js → index-C8LVPT9l.js} +1 -1
  31. package/assets/{index-DGtrKwWB.js → index-CFuQpiCJ.js} +1 -1
  32. package/assets/{index-g5szi6r5.js → index-CH_N6yyR.js} +1 -1
  33. package/assets/{index-B6wzw8J3.js → index-CJYEEP-J.js} +1 -1
  34. package/assets/{index-DxlMu3ea.js → index-CWknSiCP.js} +1 -1
  35. package/assets/{index-Bmd-CE-d.js → index-CY2fVlN8.js} +1 -1
  36. package/assets/{index-Dt8v3lSJ.js → index-Cg3SWNem.js} +1 -1
  37. package/assets/{index-BMPF0E7Y.js → index-ClFCBf4Q.js} +1 -1
  38. package/assets/{index-EkVhGa1o.js → index-CpD8KEPR.js} +1 -1
  39. package/assets/{index-BsNLqnCG.js → index-CrrCeBnN.js} +1 -1
  40. package/assets/{index-DY865o07.js → index-DBry3omJ.js} +3 -3
  41. package/assets/{index-osg4Koy_.js → index-DF6asCBw.js} +1 -1
  42. package/assets/{index-DwCXEnCZ.js → index-DHRzCG5r.js} +1 -1
  43. package/assets/{index-BLZTaqiE.js → index-DVvvAvYo.js} +1 -1
  44. package/assets/{index-4uk83_lk.js → index-DZcwyOF7.js} +1 -1
  45. package/assets/{index-GHgycunK.js → index-D_yeGEdI.js} +1 -1
  46. package/assets/{index-C5Yg70-2.css → index-DkmBXYBA.css} +1 -1
  47. package/assets/{index-B07jRA_S.js → index-DnIhN2rn.js} +1 -1
  48. package/assets/{index-D4P1pgAl.js → index-Dofg9d0m.js} +1 -1
  49. package/assets/{index-C5bmKCwO.js → index-DyPl9RCU.js} +1 -1
  50. package/assets/{index-CFRccWRu.js → index-DywNkGfK.js} +1 -1
  51. package/assets/{index-BESy9fbZ.js → index-EUvmwore.js} +1 -1
  52. package/assets/{index-BYUpM_QI.js → index-FhCH3m31.js} +1 -1
  53. package/assets/{index-TIhhvvUp.js → index-LcknBxjJ.js} +1 -1
  54. package/assets/{index-Bp6eeWYt.js → index-QWN2ZeXa.js} +1 -1
  55. package/assets/{index-BLuyk03X.js → index-QbkZToDa.js} +1 -1
  56. package/assets/{index-DLmsskrA.js → index-aiGavN6P.js} +1 -1
  57. package/assets/{index-BmAbXTYm.js → index-kplStoLl.js} +7 -7
  58. package/assets/{index-8h8RbWPq.js → index-lcHXKGfs.js} +1 -1
  59. package/assets/{index-CFqF0dbq.js → index-o5X9-GMT.js} +1 -1
  60. package/assets/{networks-BZeGWcbO.js → networks-MqcoxWLT.js} +1 -1
  61. package/assets/{onramp-DmW6Wpg-.js → onramp-5OLfbDwj.js} +1 -1
  62. package/assets/{openzeppelin-BNmbA-oY.js → openzeppelin-Caen7JW5.js} +1 -1
  63. package/assets/{parse-typed-data-BQrR5t4x.js → parse-typed-data-BCdC55DP.js} +1 -1
  64. package/assets/{passkeys-BUaL1P39.js → passkeys-idMN6RBb.js} +1 -1
  65. package/assets/{pay-with-exchange-C3dE_Jy4.js → pay-with-exchange-BhzbNxLw.js} +1 -1
  66. package/assets/{receive-dmziTgvF.js → receive-BuF6aWCa.js} +1 -1
  67. package/assets/{ref-BywtPZ1y.js → ref-CZhmAtFe.js} +1 -1
  68. package/assets/{resolveImplementation-DhSbBy2A.js → resolveImplementation-XFEHA29P.js} +1 -1
  69. package/assets/{secp256k1--26K0RZe.js → secp256k1-BacY4D_H.js} +1 -1
  70. package/assets/{send-DmpGLDx_.js → send-CrfmmAvF.js} +1 -1
  71. package/assets/{send-eip712-transaction-CwJN_LGP.js → send-eip712-transaction-G0RJPO45.js} +1 -1
  72. package/assets/{send-gasless-transaction-BIBw1EIq.js → send-gasless-transaction-4nvGNgko.js} +2 -2
  73. package/assets/{socials-BgGTTjbV.js → socials-4WL5wxrZ.js} +1 -1
  74. package/assets/{swaps-B7bIgKjW.js → swaps-C2JzcItW.js} +1 -1
  75. package/assets/{thirdweb-BXzAJI2R.js → thirdweb-Nalfv5nZ.js} +3 -3
  76. package/assets/{transactions-oExukfM1.js → transactions-DUSSM4GY.js} +1 -1
  77. package/assets/{ui-DRBd2XZm.css → ui-C2_kCqvs.css} +3 -3
  78. package/assets/{ui-BZVBOcI0.js → ui-Dbd5wrJc.js} +4 -4
  79. package/assets/{vendor-BpyywBCn.js → vendor-DhMc4a7D.js} +1 -1
  80. package/assets/{verifyHash-B6UCi3Fq.js → verifyHash-Dbcj3tYL.js} +3 -3
  81. package/assets/{w3m-modal-DLtaVZGd.js → w3m-modal-BwNsMZCs.js} +1 -1
  82. package/assets/{web-connector-BqX4xCDU.js → web-connector-CBZbZWLk.js} +3 -3
  83. package/index.html +6 -6
  84. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import{g as ec}from"./thirdweb-BXzAJI2R.js";function fd(o,c){for(var a=0;a<c.length;a++){const p=c[a];if(typeof p!="string"&&!Array.isArray(p)){for(const g in p)if(g!=="default"&&!(g in o)){const w=Object.getOwnPropertyDescriptor(p,g);w&&Object.defineProperty(o,g,w.get?w:{enumerable:!0,get:()=>p[g]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var Oi={exports:{}},Y={};/**
1
+ import{g as ec}from"./thirdweb-Nalfv5nZ.js";function fd(o,c){for(var a=0;a<c.length;a++){const p=c[a];if(typeof p!="string"&&!Array.isArray(p)){for(const g in p)if(g!=="default"&&!(g in o)){const w=Object.getOwnPropertyDescriptor(p,g);w&&Object.defineProperty(o,g,w.get?w:{enumerable:!0,get:()=>p[g]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var Oi={exports:{}},Y={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-xyxXL3L7.js","assets/NetworkUtil-BB0TxE9p.js","assets/thirdweb-BXzAJI2R.js"])))=>i.map(i=>d[i]);
2
- import{ar as Le,al as cn,B as w,i as ve,n as x,a as Ge,d as ee,aq as ds,r as ls,f as Fe,t as De,as as xr,c as H,at as vr,L as Er,x as $r,F as He,T as ft,j as Ie,z as bs,h as Je,an as Be,ap as hs,y as ys,m as ps,s as ms,au as gs,E as at,G as Nn,O as Ln,P as Rn,N as Mn,J as jn,K as Un,M as Fn,Q as kn,U as Pr,av as ws,aw as xs,ax as vs,ay as Es,az as _n,aA as $s,o as qt,$ as Ps,I as Bs,R as As,ao as Is,aB as Br,q as Vn}from"./NetworkUtil-BB0TxE9p.js";import{_ as Ar}from"./thirdweb-BXzAJI2R.js";function Nu(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return i=>{const s=typeof i=="function"?i(r):i,o={...r,...s};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Lu(){return{}}const Ss=new TextEncoder;function un(e,t={}){return typeof e=="number"||typeof e=="bigint"?Ts(e,t):typeof e=="boolean"?zs(e,t):ve(e)?ue(e,t):Ir(e,t)}function zs(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Le(n,{size:t.size}),cn(n,{size:t.size})):n}const fe={zero:48,nine:57,A:65,F:70,a:97,f:102};function Gn(e){if(e>=fe.zero&&e<=fe.nine)return e-fe.zero;if(e>=fe.A&&e<=fe.F)return e-(fe.A-10);if(e>=fe.a&&e<=fe.f)return e-(fe.a-10)}function ue(e,t={}){let n=e;t.size&&(Le(n,{size:t.size}),n=cn(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,s=new Uint8Array(i);for(let o=0,c=0;o<i;o++){const a=Gn(r.charCodeAt(c++)),u=Gn(r.charCodeAt(c++));if(a===void 0||u===void 0)throw new w(`Invalid byte sequence ("${r[c-2]}${r[c-1]}" in "${r}").`);s[o]=a*16+u}return s}function Ts(e,t){const n=x(e,t);return ue(n)}function Ir(e,t={}){const n=Ss.encode(e);return typeof t.size=="number"?(Le(n,{size:t.size}),cn(n,{dir:"right",size:t.size})):n}function ht(e,t){return({exclude:n,format:r})=>({exclude:n,format:(i,s)=>{const o=t(i,s);if(n)for(const c of n)delete o[c];return{...o,...r(i,s)}},type:e})}const Sr={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function zr(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Ge(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?Ge(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Sr[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=Os(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Ru=ht("transaction",zr);function Os(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Cs(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:zr(r));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}}const Mu=ht("block",Cs);function Ns(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Ls={"0x0":"reverted","0x1":"success"};function Rs(e,t){const 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(r=>Ns(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Ge(e.transactionIndex):null,status:e.status?Ls[e.status]:null,type:e.type?Sr[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const ju=ht("transactionReceipt",Rs),Ms={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Tr(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=js(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>ee(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=x(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=x(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=x(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=x(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=x(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=x(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Ms[e.type]),typeof e.value<"u"&&(n.value=x(e.value)),n}const Uu=ht("transactionRequest",Tr);function js(e){return e.map(t=>({address:t.address,r:t.r?x(BigInt(t.r)):t.r,s:t.s?x(BigInt(t.s)):t.s,chainId:x(t.chainId),nonce:x(t.nonce),...typeof t.yParity<"u"?{yParity:x(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:x(t.v)}:{}}))}const Fu=2n**16n-1n,yt=2n**256n-1n;function Ze(e){return typeof e[0]=="string"?ge(e):Us(e)}function Us(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function ge(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Dn=class extends w{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},Fs=class extends w{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},ks=class extends w{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const _s={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ks({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Fs({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Dn({offset:e});const 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 Dn({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function fn(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(_s);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Se(e,t="hex"){const n=Or(e),r=fn(new Uint8Array(n.length));return n.encode(r),t==="hex"?ee(r.bytes):r.bytes}function Or(e){return Array.isArray(e)?Vs(e.map(t=>Or(t))):Gs(e)}function Vs(e){const t=e.reduce((i,s)=>i+s.length,0),n=Cr(t);return{length:t<=55?1+t:1+n+t,encode(i){t<=55?i.pushByte(192+t):(i.pushByte(247+n),n===1?i.pushUint8(t):n===2?i.pushUint16(t):n===3?i.pushUint24(t):i.pushUint32(t));for(const{encode:s}of e)s(i)}}}function Gs(e){const t=typeof e=="string"?ue(e):e,n=Cr(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(i){t.length===1&&t[0]<128?i.pushBytes(t):t.length<=55?(i.pushByte(128+t.length),i.pushBytes(t)):(i.pushByte(183+n),n===1?i.pushUint8(t.length):n===2?i.pushUint16(t.length):n===3?i.pushUint24(t.length):i.pushUint32(t.length),i.pushBytes(t))}}}function Cr(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new w("Length is too large.")}function Nr(e,t="wei"){return ds(e,ls[t])}function pt(e){const t=Object.entries(e).map(([r,i])=>i===void 0||i===!1?null:[r,i]).filter(Boolean),n=t.reduce((r,[i])=>Math.max(r,i.length),0);return t.map(([r,i])=>` ${`${r}:`.padEnd(n+1)} ${i}`).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-CAVNbh-6.js","assets/NetworkUtil-DIFMVwzE.js","assets/thirdweb-Nalfv5nZ.js"])))=>i.map(i=>d[i]);
2
+ import{ar as Le,al as cn,B as w,i as ve,n as x,a as Ge,d as ee,aq as ds,r as ls,f as Fe,t as De,as as xr,c as H,at as vr,L as Er,x as $r,F as He,T as ft,j as Ie,z as bs,h as Je,an as Be,ap as hs,y as ys,m as ps,s as ms,au as gs,E as at,G as Nn,O as Ln,P as Rn,N as Mn,J as jn,K as Un,M as Fn,Q as kn,U as Pr,av as ws,aw as xs,ax as vs,ay as Es,az as _n,aA as $s,o as qt,$ as Ps,I as Bs,R as As,ao as Is,aB as Br,q as Vn}from"./NetworkUtil-DIFMVwzE.js";import{_ as Ar}from"./thirdweb-Nalfv5nZ.js";function Nu(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return i=>{const s=typeof i=="function"?i(r):i,o={...r,...s};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Lu(){return{}}const Ss=new TextEncoder;function un(e,t={}){return typeof e=="number"||typeof e=="bigint"?Ts(e,t):typeof e=="boolean"?zs(e,t):ve(e)?ue(e,t):Ir(e,t)}function zs(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Le(n,{size:t.size}),cn(n,{size:t.size})):n}const fe={zero:48,nine:57,A:65,F:70,a:97,f:102};function Gn(e){if(e>=fe.zero&&e<=fe.nine)return e-fe.zero;if(e>=fe.A&&e<=fe.F)return e-(fe.A-10);if(e>=fe.a&&e<=fe.f)return e-(fe.a-10)}function ue(e,t={}){let n=e;t.size&&(Le(n,{size:t.size}),n=cn(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,s=new Uint8Array(i);for(let o=0,c=0;o<i;o++){const a=Gn(r.charCodeAt(c++)),u=Gn(r.charCodeAt(c++));if(a===void 0||u===void 0)throw new w(`Invalid byte sequence ("${r[c-2]}${r[c-1]}" in "${r}").`);s[o]=a*16+u}return s}function Ts(e,t){const n=x(e,t);return ue(n)}function Ir(e,t={}){const n=Ss.encode(e);return typeof t.size=="number"?(Le(n,{size:t.size}),cn(n,{dir:"right",size:t.size})):n}function ht(e,t){return({exclude:n,format:r})=>({exclude:n,format:(i,s)=>{const o=t(i,s);if(n)for(const c of n)delete o[c];return{...o,...r(i,s)}},type:e})}const Sr={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function zr(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Ge(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?Ge(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Sr[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=Os(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Ru=ht("transaction",zr);function Os(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Cs(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:zr(r));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}}const Mu=ht("block",Cs);function Ns(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Ls={"0x0":"reverted","0x1":"success"};function Rs(e,t){const 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(r=>Ns(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Ge(e.transactionIndex):null,status:e.status?Ls[e.status]:null,type:e.type?Sr[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const ju=ht("transactionReceipt",Rs),Ms={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Tr(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=js(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>ee(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=x(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=x(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=x(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=x(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=x(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=x(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Ms[e.type]),typeof e.value<"u"&&(n.value=x(e.value)),n}const Uu=ht("transactionRequest",Tr);function js(e){return e.map(t=>({address:t.address,r:t.r?x(BigInt(t.r)):t.r,s:t.s?x(BigInt(t.s)):t.s,chainId:x(t.chainId),nonce:x(t.nonce),...typeof t.yParity<"u"?{yParity:x(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:x(t.v)}:{}}))}const Fu=2n**16n-1n,yt=2n**256n-1n;function Ze(e){return typeof e[0]=="string"?ge(e):Us(e)}function Us(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function ge(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let Dn=class extends w{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},Fs=class extends w{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},ks=class extends w{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const _s={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ks({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Fs({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Dn({offset:e});const 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 Dn({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function fn(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(_s);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Se(e,t="hex"){const n=Or(e),r=fn(new Uint8Array(n.length));return n.encode(r),t==="hex"?ee(r.bytes):r.bytes}function Or(e){return Array.isArray(e)?Vs(e.map(t=>Or(t))):Gs(e)}function Vs(e){const t=e.reduce((i,s)=>i+s.length,0),n=Cr(t);return{length:t<=55?1+t:1+n+t,encode(i){t<=55?i.pushByte(192+t):(i.pushByte(247+n),n===1?i.pushUint8(t):n===2?i.pushUint16(t):n===3?i.pushUint24(t):i.pushUint32(t));for(const{encode:s}of e)s(i)}}}function Gs(e){const t=typeof e=="string"?ue(e):e,n=Cr(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(i){t.length===1&&t[0]<128?i.pushBytes(t):t.length<=55?(i.pushByte(128+t.length),i.pushBytes(t)):(i.pushByte(183+n),n===1?i.pushUint8(t.length):n===2?i.pushUint16(t.length):n===3?i.pushUint24(t.length):i.pushUint32(t.length),i.pushBytes(t))}}}function Cr(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new w("Length is too large.")}function Nr(e,t="wei"){return ds(e,ls[t])}function pt(e){const t=Object.entries(e).map(([r,i])=>i===void 0||i===!1?null:[r,i]).filter(Boolean),n=t.reduce((r,[i])=>Math.max(r,i.length),0);return t.map(([r,i])=>` ${`${r}:`.padEnd(n+1)} ${i}`).join(`
3
3
  `)}class Ds extends w{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Hs extends w{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",pt(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Zs extends w{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Gu extends w{constructor(t,{account:n,docsPath:r,chain:i,data:s,gas:o,gasPrice:c,maxFeePerGas:a,maxPriorityFeePerGas:u,nonce:f,to:d,value:l}){var v;const m=pt({chain:i&&`${i==null?void 0:i.name} (id: ${i==null?void 0:i.id})`,from:n==null?void 0:n.address,to:d,value:typeof l<"u"&&`${Nr(l)} ${((v=i==null?void 0:i.nativeCurrency)==null?void 0:v.symbol)||"ETH"}`,data:s,gas:o,gasPrice:typeof c<"u"&&`${Fe(c)} gwei`,maxFeePerGas:typeof a<"u"&&`${Fe(a)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${Fe(u)} gwei`,nonce:f});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Du extends w{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:i,index:s}){let o="Transaction";r&&s!==void 0&&(o=`Transaction at block time "${r}" at index "${s}"`),t&&s!==void 0&&(o=`Transaction at block hash "${t}" at index "${s}"`),n&&s!==void 0&&(o=`Transaction at block number "${n}" at index "${s}"`),i&&(o=`Transaction with hash "${i}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class Hu extends w{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Zu extends w{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class qu extends w{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function qs(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:i,...s}=n,o=n.address;t.push([r?De(r):"0x",o,i?De(i):"0x",...it({},s)])}return t}function Lr(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(s=>ue(s)):e.blobs,i=[];for(const s of r)i.push(Uint8Array.from(t.blobToKzgCommitment(s)));return n==="bytes"?i:i.map(s=>ee(s))}function Rr(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(o=>ue(o)):e.blobs,i=typeof e.commitments[0]=="string"?e.commitments.map(o=>ue(o)):e.commitments,s=[];for(let o=0;o<r.length;o++){const c=r[o],a=i[o];s.push(Uint8Array.from(t.computeBlobKzgProof(c,a)))}return n==="bytes"?s:s.map(o=>ee(o))}const Mr=xr;function Ws(e,t){const n=t||"hex",r=Mr(ve(e,{strict:!1})?un(e):e);return n==="bytes"?r:De(r)}function Ys(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),i=Ws(t,"bytes");return i.set([n],0),r==="bytes"?i:ee(i)}function Ks(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),i=[];for(const s of t)i.push(Ys({commitment:s,to:r,version:n}));return i}const Hn=6,jr=32,dn=4096,Ur=jr*dn,Zn=Ur*Hn-1-1*dn*Hn,Fr=1;class Xs extends w{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class kr extends w{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Js extends w{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class Qs extends w{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Fr}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function eo(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ue(e.data):e.data,r=H(n);if(!r)throw new kr;if(r>Zn)throw new Xs({maxSize:Zn,size:r});const i=[];let s=!0,o=0;for(;s;){const c=fn(new Uint8Array(Ur));let a=0;for(;a<dn;){const u=n.slice(o,o+(jr-1));if(c.pushByte(0),c.pushBytes(u),u.length<31){c.pushByte(128),s=!1;break}a++,o+=31}i.push(c)}return t==="bytes"?i.map(c=>c.bytes):i.map(c=>ee(c.bytes))}function to(e){const{data:t,kzg:n,to:r}=e,i=e.blobs??eo({data:t,to:r}),s=e.commitments??Lr({blobs:i,kzg:n,to:r}),o=e.proofs??Rr({blobs:i,commitments:s,kzg:n,to:r}),c=[];for(let a=0;a<i.length;a++)c.push({blob:i[a],commitment:s[a],proof:o[a]});return c}let ae=class extends w{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};class Wt extends w{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class _r extends w{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class mt extends w{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function gt(e,t){const n=t||"hex",r=vr(ve(e,{strict:!1})?un(e):e);return n==="bytes"?r:De(r)}const Ct=new Er(8192);function wt(e,t){if(Ct.has(`${e}.${t}`))return Ct.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=gt(Ir(n),"bytes"),i=n.split("");for(let o=0;o<40;o+=2)r[o>>1]>>4>=8&&i[o]&&(i[o]=i[o].toUpperCase()),(r[o>>1]&15)>=8&&i[o+1]&&(i[o+1]=i[o+1].toUpperCase());const s=`0x${i.join("")}`;return Ct.set(`${e}.${t}`,s),s}function Vr(e,t){if(!K(e,{strict:!1}))throw new ae({address:e});return wt(e,t)}const no=/^0x[a-fA-F0-9]{40}$/,Nt=new Er(8192);function K(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(Nt.has(r))return Nt.get(r);const i=no.test(e)?e.toLowerCase()===e?!0:n?wt(e)===e:!0:!1;return Nt.set(r,i),i}function Qe(e,t,n,{strict:r}={}){return ve(e,{strict:!1})?ro(e,t,n,{strict:r}):Hr(e,t,n,{strict:r})}function Gr(e,t){if(typeof t=="number"&&t>0&&t>H(e)-1)throw new $r({offset:t,position:"start",size:H(e)})}function Dr(e,t,n){if(typeof t=="number"&&typeof n=="number"&&H(e)!==n-t)throw new $r({offset:n,position:"end",size:H(e)})}function Hr(e,t,n,{strict:r}={}){Gr(e,t);const i=e.slice(t,n);return r&&Dr(i,t,n),i}function ro(e,t,n,{strict:r}={}){Gr(e,t);const i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&Dr(i,t,n),i}function io(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,i=n.address;if(!K(i))throw new ae({address:i});if(r<0)throw new mt({chainId:r})}ln(e)}function so(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new kr;for(const n of t){const r=H(n),i=Ge(Qe(n,0,1));if(r!==32)throw new Js({hash:n,size:r});if(i!==Fr)throw new Qs({hash:n,version:i})}}ln(e)}function ln(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new mt({chainId:t});if(i&&!K(i))throw new ae({address:i});if(r&&r>yt)throw new He({maxFeePerGas:r});if(n&&r&&n>r)throw new ft({maxFeePerGas:r,maxPriorityFeePerGas:n})}function oo(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(t<=0)throw new mt({chainId:t});if(s&&!K(s))throw new ae({address:s});if(n||i)throw new w("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>yt)throw new He({maxFeePerGas:r})}function ao(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(s&&!K(s))throw new ae({address:s});if(typeof t<"u"&&t<=0)throw new mt({chainId:t});if(n||i)throw new w("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>yt)throw new He({maxFeePerGas:r})}function co(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new Hs({transaction:e})}function xt(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let s=0;s<i.length;s++)if(i[s].length-2!==64)throw new Zs({storageKey:i[s]});if(!K(r,{strict:!1}))throw new ae({address:r});t.push([r,i])}return t}function Yu(e,t){const n=co(e);return n==="eip1559"?lo(e,t):n==="eip2930"?bo(e,t):n==="eip4844"?fo(e,t):n==="eip7702"?uo(e,t):ho(e,t)}function uo(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:s,to:o,value:c,maxFeePerGas:a,maxPriorityFeePerGas:u,accessList:f,data:d}=e;io(e);const l=xt(f),m=qs(n);return ge(["0x04",Se([x(r),s?x(s):"0x",u?x(u):"0x",a?x(a):"0x",i?x(i):"0x",o??"0x",c?x(c):"0x",d??"0x",l,m,...it(e,t)])])}function fo(e,t){const{chainId:n,gas:r,nonce:i,to:s,value:o,maxFeePerBlobGas:c,maxFeePerGas:a,maxPriorityFeePerGas:u,accessList:f,data:d}=e;so(e);let l=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(typeof l>"u"||typeof m>"u")){const P=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map($=>ee($)),b=e.kzg,g=Lr({blobs:P,kzg:b});if(typeof l>"u"&&(l=Ks({commitments:g})),typeof m>"u"){const $=Rr({blobs:P,commitments:g,kzg:b});m=to({blobs:P,commitments:g,proofs:$})}}const v=xt(f),y=[x(n),i?x(i):"0x",u?x(u):"0x",a?x(a):"0x",r?x(r):"0x",s??"0x",o?x(o):"0x",d??"0x",v,c?x(c):"0x",l??[],...it(e,t)],N=[],M=[],k=[];if(m)for(let P=0;P<m.length;P++){const{blob:b,commitment:g,proof:$}=m[P];N.push(b),M.push(g),k.push($)}return ge(["0x03",Se(m?[y,N,M,k]:y)])}function lo(e,t){const{chainId:n,gas:r,nonce:i,to:s,value:o,maxFeePerGas:c,maxPriorityFeePerGas:a,accessList:u,data:f}=e;ln(e);const d=xt(u),l=[x(n),i?x(i):"0x",a?x(a):"0x",c?x(c):"0x",r?x(r):"0x",s??"0x",o?x(o):"0x",f??"0x",d,...it(e,t)];return ge(["0x02",Se(l)])}function bo(e,t){const{chainId:n,gas:r,data:i,nonce:s,to:o,value:c,accessList:a,gasPrice:u}=e;oo(e);const f=xt(a),d=[x(n),s?x(s):"0x",u?x(u):"0x",r?x(r):"0x",o??"0x",c?x(c):"0x",i??"0x",f,...it(e,t)];return ge(["0x01",Se(d)])}function ho(e,t){const{chainId:n=0,gas:r,data:i,nonce:s,to:o,value:c,gasPrice:a}=e;ao(e);let u=[s?x(s):"0x",a?x(a):"0x",r?x(r):"0x",o??"0x",c?x(c):"0x",i??"0x"];if(t){const f=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const m=27n+(t.v===27n?0n:1n);if(t.v!==m)throw new Ds({v:t.v});return m})(),d=Ie(t.r),l=Ie(t.s);u=[...u,x(f),d==="0x00"?"0x":d,l==="0x00"?"0x":l]}else n>0&&(u=[...u,x(n),"0x","0x"]);return Se(u)}function it(e,t){const n=t??e,{v:r,yParity:i}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof i>"u")return[];const s=Ie(n.r),o=Ie(n.s);return[typeof i=="number"?i?x(1):"0x":r===0n?"0x":r===1n?x(1):r===27n?"0x":x(1),s==="0x00"?"0x":s,o==="0x00"?"0x":o]}function yo({blockNumber:e,chain:t,contract:n}){var i;const r=(i=t==null?void 0:t.contracts)==null?void 0:i[n];if(!r)throw new Wt({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new Wt({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function bn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const po={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."},mo={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},go={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function ze(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new To(e.type);return`${e.name}(${vt(e.inputs,{includeName:t})})`}function vt(e,{includeName:t=!1}={}){return e?e.map(n=>wo(n,{includeName:t})).join(t?", ":","):""}function wo(e,{includeName:t}){return e.type.startsWith("tuple")?`(${vt(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class xo extends w{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
4
4
  `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class qn extends w{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
5
5
  `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class vo extends w{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
@@ -32,4 +32,4 @@ import{ar as Le,al as cn,B as w,i as ve,n as x,a as Ge,d as ee,aq as ds,r as ls,
32
32
  ${Z0(m)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class li extends w{constructor(t,{abi:n,args:r,contractAddress:i,docsPath:s,functionName:o,sender:c}){const a=xn({abi:n,args:r,name:o}),u=a?ui({abiItem:a,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=a?ze(a,{includeName:!0}):void 0,d=pt({address:i&&gs(i),function:f,args:u&&u!=="()"&&`${[...Array((o==null?void 0:o.length)??0).keys()].map(()=>" ").join("")}${u}`,sender:c});super(t.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],d&&"Contract Call:",d].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=n,this.args=r,this.cause=t,this.contractAddress=i,this.functionName=o,this.sender=c}}class q0 extends w{constructor({abi:t,data:n,functionName:r,message:i}){let s,o,c,a;if(n&&n!=="0x")try{o=V0({abi:t,data:n});const{abiItem:f,errorName:d,args:l}=o;if(d==="Error")a=l[0];else if(d==="Panic"){const[m]=l;a=po[m]}else{const m=f?ze(f,{includeName:!0}):void 0,v=f&&l?ui({abiItem:f,args:l,includeFunctionName:!1,includeName:!1}):void 0;c=[m?`Error: ${m}`:"",v&&v!=="()"?` ${[...Array((d==null?void 0:d.length)??0).keys()].map(()=>" ").join("")}${v}`:""]}}catch(f){s=f}else i&&(a=i);let u;s instanceof Zr&&(u=s.signature,c=[`Unable to decode signature "${u}" 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=${u}.`]),super(a&&a!=="execution reverted"||u?[`The contract function "${r}" reverted with the following ${u?"signature":"reason"}:`,a||u].join(`
33
33
  `):`The contract function "${r}" reverted.`,{cause:s,metaMessages:c,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=o,this.raw=n,this.reason=a,this.signature=u}}class W0 extends w{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class Y0 extends w{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{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 bi extends w{constructor({data:t,message:n}){super(n||"",{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=t}}function K0(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof w?e.walk(i=>(i==null?void 0:i.code)===at.code):e;return r instanceof w?new at({cause:e,message:r.details}):at.nodeMessage.test(n)?new at({cause:e,message:e.details}):He.nodeMessage.test(n)?new He({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Nn.nodeMessage.test(n)?new Nn({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Ln.nodeMessage.test(n)?new Ln({cause:e,nonce:t==null?void 0:t.nonce}):Rn.nodeMessage.test(n)?new Rn({cause:e,nonce:t==null?void 0:t.nonce}):Mn.nodeMessage.test(n)?new Mn({cause:e,nonce:t==null?void 0:t.nonce}):jn.nodeMessage.test(n)?new jn({cause:e}):Un.nodeMessage.test(n)?new Un({cause:e,gas:t==null?void 0:t.gas}):Fn.nodeMessage.test(n)?new Fn({cause:e,gas:t==null?void 0:t.gas}):kn.nodeMessage.test(n)?new kn({cause:e}):ft.nodeMessage.test(n)?new ft({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Pr({cause:e})}function X0(e,{docsPath:t,...n}){const r=(()=>{const i=K0(e,n);return i instanceof Pr?e:i})();return new di(r,{docsPath:t,...n})}function J0(e,{format:t}){if(!t)return{};const n={};function r(s){const o=Object.keys(s);for(const c of o)c in e&&(n[c]=e[c]),s[c]&&typeof s[c]=="object"&&!Array.isArray(s[c])&&r(s[c])}const i=t(e||{});return r(i),n}function Q0(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=e,s=t?bn(t):void 0;if(s&&!K(s.address))throw new ae({address:s.address});if(i&&!K(i))throw new ae({address:i});if(n&&n>yt)throw new He({maxFeePerGas:n});if(r&&n&&r>n)throw new ft({maxFeePerGas:n,maxPriorityFeePerGas:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const vn=BigInt(0),en=BigInt(1);function st(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function En(e){if(!st(e))throw new Error("Uint8Array expected")}function tt(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function ct(e){const t=e.toString(16);return t.length&1?"0"+t:t}function hi(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?vn:BigInt("0x"+e)}const yi=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",ea=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function nt(e){if(En(e),yi)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=ea[e[n]];return t}const de={_0:48,_9:57,A:65,F:70,a:97,f:102};function Qn(e){if(e>=de._0&&e<=de._9)return e-de._0;if(e>=de.A&&e<=de.F)return e-(de.A-10);if(e>=de.a&&e<=de.f)return e-(de.a-10)}function lt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(yi)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,s=0;i<n;i++,s+=2){const o=Qn(e.charCodeAt(s)),c=Qn(e.charCodeAt(s+1));if(o===void 0||c===void 0){const a=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+a+'" at index '+s)}r[i]=o*16+c}return r}function Ae(e){return hi(nt(e))}function pi(e){return En(e),hi(nt(Uint8Array.from(e).reverse()))}function ot(e,t){return lt(e.toString(16).padStart(t*2,"0"))}function mi(e,t){return ot(e,t).reverse()}function oe(e,t,n){let r;if(typeof t=="string")try{r=lt(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(st(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function bt(...e){let t=0;for(let r=0;r<e.length;r++){const i=e[r];En(i),t+=i.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const s=e[r];n.set(s,i),i+=s.length}return n}const Rt=e=>typeof e=="bigint"&&vn<=e;function $n(e,t,n){return Rt(e)&&Rt(t)&&Rt(n)&&t<=e&&e<n}function _e(e,t,n,r){if(!$n(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function ta(e){let t;for(t=0;e>vn;e>>=en,t+=1);return t}const Et=e=>(en<<BigInt(e))-en,Mt=e=>new Uint8Array(e),er=e=>Uint8Array.from(e);function na(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Mt(e),i=Mt(e),s=0;const o=()=>{r.fill(1),i.fill(0),s=0},c=(...d)=>n(i,r,...d),a=(d=Mt(0))=>{i=c(er([0]),d),r=c(),d.length!==0&&(i=c(er([1]),d),r=c())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const l=[];for(;d<t;){r=c();const m=r.slice();l.push(m),d+=r.length}return bt(...l)};return(d,l)=>{o(),a(d);let m;for(;!(m=l(u()));)a();return o(),m}}const ra={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||st(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function $t(e,t,n={}){const r=(i,s,o)=>{const c=ra[s];if(typeof c!="function")throw new Error("invalid validator function");const a=e[i];if(!(o&&a===void 0)&&!c(a,e))throw new Error("param "+String(i)+" is invalid. Expected "+s+", got "+a)};for(const[i,s]of Object.entries(t))r(i,s,!1);for(const[i,s]of Object.entries(n))r(i,s,!0);return e}function tr(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(i!==void 0)return i;const s=e(n,...r);return t.set(n,s),s}}const ia="0.1.1";function sa(){return ia}class B extends Error{static setStaticOptions(t){B.prototype.docsOrigin=t.docsOrigin,B.prototype.showVersion=t.showVersion,B.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var f;if(n.cause instanceof B){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(f=n.cause)!=null&&f.message?n.cause.message:n.details})(),i=n.cause instanceof B&&n.cause.docsPath||n.docsPath,s=n.docsOrigin??B.prototype.docsOrigin,o=`${s}${i??""}`,c=!!(n.version??B.prototype.showVersion),a=n.version??B.prototype.version,u=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||i||c?["",r?`Details: ${r}`:void 0,i?`See: ${o}`:void 0,c?`Version: ${a}`:void 0]:[]].filter(f=>typeof f=="string").join(`
34
34
  `);super(u,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=o,this.docsOrigin=s,this.docsPath=i,this.shortMessage=t,this.showVersion=c,this.version=a}walk(t){return gi(this,t)}}Object.defineProperty(B,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${sa()}`}});B.setStaticOptions(B.defaultStaticOptions);function gi(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?gi(e.cause,t):t?null:e}function We(e,t){if(Ue(e)>t)throw new za({givenSize:Ue(e),maxSize:t})}const le={zero:48,nine:57,A:65,F:70,a:97,f:102};function nr(e){if(e>=le.zero&&e<=le.nine)return e-le.zero;if(e>=le.A&&e<=le.F)return e-(le.A-10);if(e>=le.a&&e<=le.f)return e-(le.a-10)}function oa(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new Ta({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let s=0;s<r;s++){const o=n==="right";i[o?s:r-s-1]=e[o?s:e.length-s-1]}return i}function wi(e,t={}){const{dir:n="left"}=t;let r=e,i=0;for(let s=0;s<r.length-1&&r[n==="left"?s:r.length-s-1].toString()==="0";s++)i++;return r=n==="left"?r.slice(i):r.slice(0,r.length-i),r}function Pt(e,t){if(X(e)>t)throw new ha({givenSize:X(e),maxSize:t})}function aa(e,t){if(typeof t=="number"&&t>0&&t>X(e)-1)throw new Si({offset:t,position:"start",size:X(e)})}function ca(e,t,n){if(typeof t=="number"&&typeof n=="number"&&X(e)!==n-t)throw new Si({offset:n,position:"end",size:X(e)})}function xi(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new ya({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[n==="right"?"padEnd":"padStart"](r*2,"0")}`}function ua(e,t={}){const{dir:n="left"}=t;let r=e.replace("0x",""),i=0;for(let s=0;s<r.length-1&&r[n==="left"?s:r.length-s-1].toString()==="0";s++)i++;return r=n==="left"?r.slice(i):r.slice(0,r.length-i),r==="0"?"0x":n==="right"&&r.length%2===1?`0x${r}0`:`0x${r}`}const fa="#__bigint";function Bt(e,t,n){return JSON.stringify(e,(r,i)=>typeof i=="bigint"?i.toString()+fa:i,n)}const da=new TextEncoder,la=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ba(e,t={}){const{strict:n=!1}=t;if(!e)throw new ir(e);if(typeof e!="string")throw new ir(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new sr(e);if(!e.startsWith("0x"))throw new sr(e)}function ce(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function vi(e){return e instanceof Uint8Array?te(e):Array.isArray(e)?te(new Uint8Array(e)):e}function Ei(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Pt(n,t.size),Te(n,t.size)):n}function te(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=la[e[i]];const r=`0x${n}`;return typeof t.size=="number"?(Pt(r,t.size),Oe(r,t.size)):r}function F(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof s=="bigint"&&n?-s-1n:0;if(s&&i>s||i<o){const u=typeof e=="bigint"?"n":"";throw new Ii({max:s?`${s}${u}`:void 0,min:`${o}${u}`,signed:n,size:r,value:`${e}${u}`})}const a=`0x${(n&&i<0?BigInt.asUintN(r*8,BigInt(i)):i).toString(16)}`;return r?Te(a,r):a}function $i(e,t={}){return te(da.encode(e),t)}function Te(e,t){return xi(e,{dir:"left",size:t})}function Oe(e,t){return xi(e,{dir:"right",size:t})}function ff(e){return te(Ea(e))}function W(e,t,n,r={}){const{strict:i}=r;aa(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return i&&ca(s,t,n),s}function X(e){return Math.ceil((e.length-2)/2)}function rr(e){return ua(e,{dir:"left"})}function Pi(e,t={}){const{signed:n}=t;t.size&&Pt(e,t.size);const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,s=(1n<<BigInt(i)*8n)-1n,o=s>>1n;return r<=o?r:r-s-1n}function Bi(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:Pi(e,t))}function df(e,t={}){const{size:n}=t;let r=At(e);return n&&(We(r,n),r=Oi(r)),new TextDecoder().decode(r)}function Ai(e,t={}){const{strict:n=!1}=t;try{return ba(e,{strict:n}),!0}catch{return!1}}class Ii extends B{constructor({max:t,min:n,signed:r,size:i,value:s}){super(`Number \`${s}\` is not in safe${i?` ${i*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class ir extends B{constructor(t){super(`Value \`${typeof t=="object"?Bt(t):t}\` of type \`${typeof t}\` 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 sr extends B{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class lf extends B{constructor(t){super(`Hex value \`"${t}"\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}let ha=class extends B{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}};class Si extends B{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}let ya=class extends B{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const pa=new TextDecoder,ma=new TextEncoder;function ga(e){if(!(e instanceof Uint8Array)){if(!e)throw new ut(e);if(typeof e!="object")throw new ut(e);if(!("BYTES_PER_ELEMENT"in e))throw new ut(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new ut(e)}}function yf(...e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const s=e[r];n.set(s,i),i+=s.length}return n}function zi(e){return e instanceof Uint8Array?e:typeof e=="string"?At(e):wa(e)}function wa(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function At(e,t={}){const{size:n}=t;let r=e;n&&(Pt(e,n),r=Oe(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,o=new Uint8Array(s);for(let c=0,a=0;c<s;c++){const u=nr(i.charCodeAt(a++)),f=nr(i.charCodeAt(a++));if(u===void 0||f===void 0)throw new B(`Invalid byte sequence ("${i[a-2]}${i[a-1]}" in "${i}").`);o[c]=u<<4|f}return o}function xa(e,t={}){const{size:n}=t,r=ma.encode(e);return typeof n=="number"?(We(r,n),va(r,n)):r}function va(e,t){return oa(e,{dir:"right",size:t})}function Ea(e){return crypto.getRandomValues(new Uint8Array(e))}function Ue(e){return e.length}function $a(e,t,n,r={}){const{strict:i}=r;return e.slice(t,n)}function Pa(e,t={}){const{size:n}=t;typeof n<"u"&&We(e,n);const r=te(e,t);return Pi(r,t)}function Ba(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(We(r,n),r=Ti(r)),r.length>1||r[0]>1)throw new Sa(r);return!!r[0]}function pe(e,t={}){const{size:n}=t;typeof n<"u"&&We(e,n);const r=te(e,t);return Bi(r,t)}function Aa(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(We(r,n),r=Oi(r)),pa.decode(r)}function Ti(e){return wi(e,{dir:"left"})}function Oi(e){return wi(e,{dir:"right"})}function Ia(e){try{return ga(e),!0}catch{return!1}}class Sa extends B{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class ut extends B{constructor(t){super(`Value \`${typeof t=="object"?Bt(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class za extends B{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class Ta extends B{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}class Oa extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const Ca={checksum:new Oa(8192)},jt=Ca.checksum;function Ci(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=vr(zi(e));return n==="Bytes"?r:te(r)}function pf(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Mr(zi(e));return n==="Bytes"?r:te(r)}function mf(e){return Ai(e)&&X(e)===32}function Ni(e,t={}){const{compressed:n}=t,{prefix:r,x:i,y:s}=e;if(n===!1||typeof i=="bigint"&&typeof s=="bigint"){if(r!==4)throw new or({prefix:r,cause:new Ma});return}if(n===!0||typeof i=="bigint"&&typeof s>"u"){if(r!==3&&r!==2)throw new or({prefix:r,cause:new Ra});return}throw new La({publicKey:e})}function gf(e){const t=(()=>{if(Ai(e))return Li(e);if(Ia(e))return Na(e);const{prefix:n,x:r,y:i}=e;return typeof r=="bigint"&&typeof i=="bigint"?{prefix:n??4,x:r,y:i}:{prefix:n,x:r}})();return Ni(t),t}function Na(e){return Li(te(e))}function Li(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new ja({publicKey:e});if(e.length===130){const r=BigInt(W(e,0,32)),i=BigInt(W(e,32,64));return{prefix:4,x:r,y:i}}if(e.length===132){const r=Number(W(e,0,1)),i=BigInt(W(e,1,33)),s=BigInt(W(e,33,65));return{prefix:r,x:i,y:s}}const t=Number(W(e,0,1)),n=BigInt(W(e,1,33));return{prefix:t,x:n}}function wf(e,t={}){return At(Ri(e,t))}function Ri(e,t={}){Ni(e);const{prefix:n,x:r,y:i}=e,{includePrefix:s=!0}=t;return ce(s?F(n,{size:1}):"0x",F(r,{size:32}),typeof i=="bigint"?F(i,{size:32}):"0x")}class La extends B{constructor({publicKey:t}){super(`Value \`${Bt(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class or extends B{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class Ra extends B{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class Ma extends B{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let ja=class extends B{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${X(vi(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Ua=/^0x[a-fA-F0-9]{40}$/;function Ce(e,t={}){const{strict:n=!0}=t;if(!Ua.test(e))throw new ar({address:e,cause:new ka});if(n){if(e.toLowerCase()===e)return;if(Pn(e)!==e)throw new ar({address:e,cause:new _a})}}function Pn(e){if(jt.has(e))return jt.get(e);Ce(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=Ci(xa(t),{as:"Bytes"}),r=t.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&r[s]&&(r[s]=r[s].toUpperCase()),(n[s>>1]&15)>=8&&r[s+1]&&(r[s+1]=r[s+1].toUpperCase());const i=`0x${r.join("")}`;return jt.set(e,i),i}function Fa(e,t={}){const{checksum:n=!1}=t;return Ce(e),n?Pn(e):e}function vf(e,t={}){const n=Ci(`0x${Ri(e).slice(4)}`).substring(26);return Fa(`0x${n}`,t)}function Ef(e,t){return Ce(e,{strict:!1}),Ce(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function $f(e,t={}){const{strict:n=!0}=t??{};try{return Ce(e,{strict:n}),!0}catch{return!1}}class ar extends B{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class ka extends B{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 _a extends B{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Q=BigInt(0),Y=BigInt(1),Pe=BigInt(2),Va=BigInt(3),Mi=BigInt(4),ji=BigInt(5),Ui=BigInt(8);function J(e,t){const n=e%t;return n>=Q?n:t+n}function se(e,t,n){let r=e;for(;t-- >Q;)r*=r,r%=n;return r}function tn(e,t){if(e===Q)throw new Error("invert: expected non-zero number");if(t<=Q)throw new Error("invert: expected positive modulus, got "+t);let n=J(e,t),r=t,i=Q,s=Y;for(;n!==Q;){const c=r/n,a=r%n,u=i-s*c;r=n,n=a,i=s,s=u}if(r!==Y)throw new Error("invert: does not exist");return J(i,t)}function Fi(e,t){const n=(e.ORDER+Y)/Mi,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function Ga(e,t){const n=(e.ORDER-ji)/Ui,r=e.mul(t,Pe),i=e.pow(r,n),s=e.mul(t,i),o=e.mul(e.mul(s,Pe),i),c=e.mul(s,e.sub(o,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function Da(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-Y,n=0;for(;t%Pe===Q;)t/=Pe,n++;let r=Pe;const i=Bn(e);for(;cr(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return Fi;let s=i.pow(r,t);const o=(t+Y)/Pe;return function(a,u){if(a.is0(u))return u;if(cr(a,u)!==1)throw new Error("Cannot find square root");let f=n,d=a.mul(a.ONE,s),l=a.pow(u,t),m=a.pow(u,o);for(;!a.eql(l,a.ONE);){if(a.is0(l))return a.ZERO;let v=1,y=a.sqr(l);for(;!a.eql(y,a.ONE);)if(v++,y=a.sqr(y),v===f)throw new Error("Cannot find square root");const N=Y<<BigInt(f-v-1),M=a.pow(d,N);f=v,d=a.sqr(M),l=a.mul(l,d),m=a.mul(m,M)}return m}}function Ha(e){return e%Mi===Va?Fi:e%Ui===ji?Ga:Da(e)}const Za=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function qa(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=Za.reduce((r,i)=>(r[i]="function",r),t);return $t(e,n)}function Wa(e,t,n){if(n<Q)throw new Error("invalid exponent, negatives unsupported");if(n===Q)return e.ONE;if(n===Y)return t;let r=e.ONE,i=t;for(;n>Q;)n&Y&&(r=e.mul(r,i)),i=e.sqr(i),n>>=Y;return r}function ki(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((o,c,a)=>e.is0(c)?o:(r[a]=o,e.mul(o,c)),e.ONE),s=e.inv(i);return t.reduceRight((o,c,a)=>e.is0(c)?o:(r[a]=e.mul(o,r[a]),e.mul(o,c)),s),r}function cr(e,t){const n=(e.ORDER-Y)/Pe,r=e.pow(t,n),i=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),o=e.eql(r,e.neg(e.ONE));if(!i&&!s&&!o)throw new Error("invalid Legendre symbol result");return i?1:s?0:-1}function _i(e,t){t!==void 0&&ws(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Bn(e,t,n=!1,r={}){if(e<=Q)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:s}=_i(e,t);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const c=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:s,MASK:Et(i),ZERO:Q,ONE:Y,create:a=>J(a,e),isValid:a=>{if(typeof a!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof a);return Q<=a&&a<e},is0:a=>a===Q,isOdd:a=>(a&Y)===Y,neg:a=>J(-a,e),eql:(a,u)=>a===u,sqr:a=>J(a*a,e),add:(a,u)=>J(a+u,e),sub:(a,u)=>J(a-u,e),mul:(a,u)=>J(a*u,e),pow:(a,u)=>Wa(c,a,u),div:(a,u)=>J(a*tn(u,e),e),sqrN:a=>a*a,addN:(a,u)=>a+u,subN:(a,u)=>a-u,mulN:(a,u)=>a*u,inv:a=>tn(a,e),sqrt:r.sqrt||(a=>(o||(o=Ha(e)),o(c,a))),toBytes:a=>n?mi(a,s):ot(a,s),fromBytes:a=>{if(a.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+a.length);return n?pi(a):Ae(a)},invertBatch:a=>ki(c,a),cmov:(a,u,f)=>f?u:a});return Object.freeze(c)}function Vi(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Gi(e){const t=Vi(e);return t+Math.ceil(t/2)}function Ya(e,t,n=!1){const r=e.length,i=Vi(t),s=Gi(t);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const o=n?pi(e):Ae(e),c=J(o,t-Y)+Y;return n?mi(c,i):ot(c,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ur=BigInt(0),nn=BigInt(1);function Ut(e,t){const n=t.negate();return e?n:t}function Di(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ft(e,t){Di(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e,s=Et(e),o=BigInt(e);return{windows:n,windowSize:r,mask:s,maxNumber:i,shiftBy:o}}function fr(e,t,n){const{windowSize:r,mask:i,maxNumber:s,shiftBy:o}=n;let c=Number(e&i),a=e>>o;c>r&&(c-=s,a+=nn);const u=t*r,f=u+Math.abs(c)-1,d=c===0,l=c<0,m=t%2!==0;return{nextN:a,offset:f,isZero:d,isNeg:l,isNegF:m,offsetF:u}}function Ka(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function Xa(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const kt=new WeakMap,Hi=new WeakMap;function _t(e){return Hi.get(e)||1}function Ja(e,t){return{constTimeNegate:Ut,hasPrecomputes(n){return _t(n)!==1},unsafeLadder(n,r,i=e.ZERO){let s=n;for(;r>ur;)r&nn&&(i=i.add(s)),s=s.double(),r>>=nn;return i},precomputeWindow(n,r){const{windows:i,windowSize:s}=Ft(r,t),o=[];let c=n,a=c;for(let u=0;u<i;u++){a=c,o.push(a);for(let f=1;f<s;f++)a=a.add(c),o.push(a);c=a.double()}return o},wNAF(n,r,i){let s=e.ZERO,o=e.BASE;const c=Ft(n,t);for(let a=0;a<c.windows;a++){const{nextN:u,offset:f,isZero:d,isNeg:l,isNegF:m,offsetF:v}=fr(i,a,c);i=u,d?o=o.add(Ut(m,r[v])):s=s.add(Ut(l,r[f]))}return{p:s,f:o}},wNAFUnsafe(n,r,i,s=e.ZERO){const o=Ft(n,t);for(let c=0;c<o.windows&&i!==ur;c++){const{nextN:a,offset:u,isZero:f,isNeg:d}=fr(i,c,o);if(i=a,!f){const l=r[u];s=s.add(d?l.negate():l)}}return s},getPrecomputes(n,r,i){let s=kt.get(r);return s||(s=this.precomputeWindow(r,n),n!==1&&kt.set(r,i(s))),s},wNAFCached(n,r,i){const s=_t(n);return this.wNAF(s,this.getPrecomputes(s,n,i),r)},wNAFCachedUnsafe(n,r,i,s){const o=_t(n);return o===1?this.unsafeLadder(n,r,s):this.wNAFUnsafe(o,this.getPrecomputes(o,n,i),r,s)},setWindowSize(n,r){Di(r,t),Hi.set(n,r),kt.delete(n)}}}function Qa(e,t,n,r){Ka(n,e),Xa(r,t);const i=n.length,s=r.length;if(i!==s)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,c=ta(BigInt(i));let a=1;c>12?a=c-3:c>4?a=c-2:c>0&&(a=2);const u=Et(a),f=new Array(Number(u)+1).fill(o),d=Math.floor((t.BITS-1)/a)*a;let l=o;for(let m=d;m>=0;m-=a){f.fill(o);for(let y=0;y<s;y++){const N=r[y],M=Number(N>>BigInt(m)&u);f[M]=f[M].add(n[y])}let v=o;for(let y=f.length-1,N=o;y>0;y--)N=N.add(f[y]),v=v.add(N);if(l=l.add(v),m!==0)for(let y=0;y<a;y++)l=l.double()}return l}function Zi(e){return qa(e.Fp),$t(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({..._i(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function dr(e){e.lowS!==void 0&&tt("lowS",e.lowS),e.prehash!==void 0&&tt("prehash",e.prehash)}function ec(e){const t=Zi(e);$t(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class tc extends Error{constructor(t=""){super(t)}}const be={Err:tc,_tlv:{encode:(e,t)=>{const{Err:n}=be;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=ct(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const s=r>127?ct(i.length/2|128):"";return ct(e)+s+i+t},decode(e,t){const{Err:n}=be;let 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");const i=t[r++],s=!!(i&128);let o=0;if(!s)o=i;else{const a=i&127;if(!a)throw new n("tlv.decode(long): indefinite length not supported");if(a>4)throw new n("tlv.decode(long): byte length is too big");const u=t.subarray(r,r+a);if(u.length!==a)throw new n("tlv.decode: length bytes not complete");if(u[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const f of u)o=o<<8|f;if(r+=a,o<128)throw new n("tlv.decode(long): not minimal encoding")}const c=t.subarray(r,r+o);if(c.length!==o)throw new n("tlv.decode: wrong value length");return{v:c,l:t.subarray(r+o)}}},_int:{encode(e){const{Err:t}=be;if(e<he)throw new t("integer: negative integers are not allowed");let n=ct(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=be;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Ae(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=be,i=oe("signature",e),{v:s,l:o}=r.decode(48,i);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:c,l:a}=r.decode(2,s),{v:u,l:f}=r.decode(2,a);if(f.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=be,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s)),s=r+i;return t.encode(48,s)}};function Vt(e,t){return nt(ot(e,t))}const he=BigInt(0),G=BigInt(1);BigInt(2);const Gt=BigInt(3),nc=BigInt(4);function rc(e){const t=ec(e),{Fp:n}=t,r=Bn(t.n,t.nBitLength),i=t.toBytes||((P,b,g)=>{const $=b.toAffine();return bt(Uint8Array.from([4]),n.toBytes($.x),n.toBytes($.y))}),s=t.fromBytes||(P=>{const b=P.subarray(1),g=n.fromBytes(b.subarray(0,n.BYTES)),$=n.fromBytes(b.subarray(n.BYTES,2*n.BYTES));return{x:g,y:$}});function o(P){const{a:b,b:g}=t,$=n.sqr(P),O=n.mul($,P);return n.add(n.add(O,n.mul(P,b)),g)}function c(P,b){const g=n.sqr(b),$=o(P);return n.eql(g,$)}if(!c(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const a=n.mul(n.pow(t.a,Gt),nc),u=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(a,u)))throw new Error("bad curve params: a or b");function f(P){return $n(P,G,t.n)}function d(P){const{allowedPrivateKeyLengths:b,nByteLength:g,wrapPrivateKey:$,n:O}=t;if(b&&typeof P!="bigint"){if(st(P)&&(P=nt(P)),typeof P!="string"||!b.includes(P.length))throw new Error("invalid private key");P=P.padStart(g*2,"0")}let L;try{L=typeof P=="bigint"?P:Ae(oe("private key",P,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof P)}return $&&(L=J(L,O)),_e("private key",L,G,O),L}function l(P){if(!(P instanceof y))throw new Error("ProjectivePoint expected")}const m=tr((P,b)=>{const{px:g,py:$,pz:O}=P;if(n.eql(O,n.ONE))return{x:g,y:$};const L=P.is0();b==null&&(b=L?n.ONE:n.inv(O));const j=n.mul(g,b),R=n.mul($,b),S=n.mul(O,b);if(L)return{x:n.ZERO,y:n.ZERO};if(!n.eql(S,n.ONE))throw new Error("invZ was invalid");return{x:j,y:R}}),v=tr(P=>{if(P.is0()){if(t.allowInfinityPoint&&!n.is0(P.py))return;throw new Error("bad point: ZERO")}const{x:b,y:g}=P.toAffine();if(!n.isValid(b)||!n.isValid(g))throw new Error("bad point: x or y not FE");if(!c(b,g))throw new Error("bad point: equation left != right");if(!P.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class y{constructor(b,g,$){if(b==null||!n.isValid(b))throw new Error("x required");if(g==null||!n.isValid(g)||n.is0(g))throw new Error("y required");if($==null||!n.isValid($))throw new Error("z required");this.px=b,this.py=g,this.pz=$,Object.freeze(this)}static fromAffine(b){const{x:g,y:$}=b||{};if(!b||!n.isValid(g)||!n.isValid($))throw new Error("invalid affine point");if(b instanceof y)throw new Error("projective point not allowed");const O=L=>n.eql(L,n.ZERO);return O(g)&&O($)?y.ZERO:new y(g,$,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(b){const g=ki(n,b.map($=>$.pz));return b.map(($,O)=>$.toAffine(g[O])).map(y.fromAffine)}static fromHex(b){const g=y.fromAffine(s(oe("pointHex",b)));return g.assertValidity(),g}static fromPrivateKey(b){return y.BASE.multiply(d(b))}static msm(b,g){return Qa(y,r,b,g)}_setWindowSize(b){k.setWindowSize(this,b)}assertValidity(){v(this)}hasEvenY(){const{y:b}=this.toAffine();if(n.isOdd)return!n.isOdd(b);throw new Error("Field doesn't support isOdd")}equals(b){l(b);const{px:g,py:$,pz:O}=this,{px:L,py:j,pz:R}=b,S=n.eql(n.mul(g,R),n.mul(L,O)),C=n.eql(n.mul($,R),n.mul(j,O));return S&&C}negate(){return new y(this.px,n.neg(this.py),this.pz)}double(){const{a:b,b:g}=t,$=n.mul(g,Gt),{px:O,py:L,pz:j}=this;let R=n.ZERO,S=n.ZERO,C=n.ZERO,T=n.mul(O,O),_=n.mul(L,L),p=n.mul(j,j),h=n.mul(O,L);return h=n.add(h,h),C=n.mul(O,j),C=n.add(C,C),R=n.mul(b,C),S=n.mul($,p),S=n.add(R,S),R=n.sub(_,S),S=n.add(_,S),S=n.mul(R,S),R=n.mul(h,R),C=n.mul($,C),p=n.mul(b,p),h=n.sub(T,p),h=n.mul(b,h),h=n.add(h,C),C=n.add(T,T),T=n.add(C,T),T=n.add(T,p),T=n.mul(T,h),S=n.add(S,T),p=n.mul(L,j),p=n.add(p,p),T=n.mul(p,h),R=n.sub(R,T),C=n.mul(p,_),C=n.add(C,C),C=n.add(C,C),new y(R,S,C)}add(b){l(b);const{px:g,py:$,pz:O}=this,{px:L,py:j,pz:R}=b;let S=n.ZERO,C=n.ZERO,T=n.ZERO;const _=t.a,p=n.mul(t.b,Gt);let h=n.mul(g,L),E=n.mul($,j),I=n.mul(O,R),A=n.add(g,$),z=n.add(L,j);A=n.mul(A,z),z=n.add(h,E),A=n.sub(A,z),z=n.add(g,O);let U=n.add(L,R);return z=n.mul(z,U),U=n.add(h,I),z=n.sub(z,U),U=n.add($,O),S=n.add(j,R),U=n.mul(U,S),S=n.add(E,I),U=n.sub(U,S),T=n.mul(_,z),S=n.mul(p,I),T=n.add(S,T),S=n.sub(E,T),T=n.add(E,T),C=n.mul(S,T),E=n.add(h,h),E=n.add(E,h),I=n.mul(_,I),z=n.mul(p,z),E=n.add(E,I),I=n.sub(h,I),I=n.mul(_,I),z=n.add(z,I),h=n.mul(E,z),C=n.add(C,h),h=n.mul(U,z),S=n.mul(A,S),S=n.sub(S,h),h=n.mul(A,E),T=n.mul(U,T),T=n.add(T,h),new y(S,C,T)}subtract(b){return this.add(b.negate())}is0(){return this.equals(y.ZERO)}wNAF(b){return k.wNAFCached(this,b,y.normalizeZ)}multiplyUnsafe(b){const{endo:g,n:$}=t;_e("scalar",b,he,$);const O=y.ZERO;if(b===he)return O;if(this.is0()||b===G)return this;if(!g||k.hasPrecomputes(this))return k.wNAFCachedUnsafe(this,b,y.normalizeZ);let{k1neg:L,k1:j,k2neg:R,k2:S}=g.splitScalar(b),C=O,T=O,_=this;for(;j>he||S>he;)j&G&&(C=C.add(_)),S&G&&(T=T.add(_)),_=_.double(),j>>=G,S>>=G;return L&&(C=C.negate()),R&&(T=T.negate()),T=new y(n.mul(T.px,g.beta),T.py,T.pz),C.add(T)}multiply(b){const{endo:g,n:$}=t;_e("scalar",b,G,$);let O,L;if(g){const{k1neg:j,k1:R,k2neg:S,k2:C}=g.splitScalar(b);let{p:T,f:_}=this.wNAF(R),{p,f:h}=this.wNAF(C);T=k.constTimeNegate(j,T),p=k.constTimeNegate(S,p),p=new y(n.mul(p.px,g.beta),p.py,p.pz),O=T.add(p),L=_.add(h)}else{const{p:j,f:R}=this.wNAF(b);O=j,L=R}return y.normalizeZ([O,L])[0]}multiplyAndAddUnsafe(b,g,$){const O=y.BASE,L=(R,S)=>S===he||S===G||!R.equals(O)?R.multiplyUnsafe(S):R.multiply(S),j=L(this,g).add(L(b,$));return j.is0()?void 0:j}toAffine(b){return m(this,b)}isTorsionFree(){const{h:b,isTorsionFree:g}=t;if(b===G)return!0;if(g)return g(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:b,clearCofactor:g}=t;return b===G?this:g?g(y,this):this.multiplyUnsafe(t.h)}toRawBytes(b=!0){return tt("isCompressed",b),this.assertValidity(),i(y,this,b)}toHex(b=!0){return tt("isCompressed",b),nt(this.toRawBytes(b))}}y.BASE=new y(t.Gx,t.Gy,n.ONE),y.ZERO=new y(n.ZERO,n.ONE,n.ZERO);const{endo:N,nBitLength:M}=t,k=Ja(y,N?Math.ceil(M/2):M);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:d,weierstrassEquation:o,isWithinCurveOrder:f}}function ic(e){const t=Zi(e);return $t(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function sc(e){const t=ic(e),{Fp:n,n:r,nByteLength:i,nBitLength:s}=t,o=n.BYTES+1,c=2*n.BYTES+1;function a(p){return J(p,r)}function u(p){return tn(p,r)}const{ProjectivePoint:f,normPrivateKeyToScalar:d,weierstrassEquation:l,isWithinCurveOrder:m}=rc({...t,toBytes(p,h,E){const I=h.toAffine(),A=n.toBytes(I.x),z=bt;return tt("isCompressed",E),E?z(Uint8Array.from([h.hasEvenY()?2:3]),A):z(Uint8Array.from([4]),A,n.toBytes(I.y))},fromBytes(p){const h=p.length,E=p[0],I=p.subarray(1);if(h===o&&(E===2||E===3)){const A=Ae(I);if(!$n(A,G,n.ORDER))throw new Error("Point is not on curve");const z=l(A);let U;try{U=n.sqrt(z)}catch(re){const D=re instanceof Error?": "+re.message:"";throw new Error("Point is not on curve"+D)}const V=(U&G)===G;return(E&1)===1!==V&&(U=n.neg(U)),{x:A,y:U}}else if(h===c&&E===4){const A=n.fromBytes(I.subarray(0,n.BYTES)),z=n.fromBytes(I.subarray(n.BYTES,2*n.BYTES));return{x:A,y:z}}else{const A=o,z=c;throw new Error("invalid Point, expected length of "+A+", or uncompressed "+z+", got "+h)}}});function v(p){const h=r>>G;return p>h}function y(p){return v(p)?a(-p):p}const N=(p,h,E)=>Ae(p.slice(h,E));class M{constructor(h,E,I){_e("r",h,G,r),_e("s",E,G,r),this.r=h,this.s=E,I!=null&&(this.recovery=I),Object.freeze(this)}static fromCompact(h){const E=i;return h=oe("compactSignature",h,E*2),new M(N(h,0,E),N(h,E,2*E))}static fromDER(h){const{r:E,s:I}=be.toSig(oe("DER",h));return new M(E,I)}assertValidity(){}addRecoveryBit(h){return new M(this.r,this.s,h)}recoverPublicKey(h){const{r:E,s:I,recovery:A}=this,z=O(oe("msgHash",h));if(A==null||![0,1,2,3].includes(A))throw new Error("recovery id invalid");const U=A===2||A===3?E+t.n:E;if(U>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const V=(A&1)===0?"02":"03",Z=f.fromHex(V+Vt(U,n.BYTES)),re=u(U),D=a(-z*re),q=a(I*re),xe=f.BASE.multiplyAndAddUnsafe(Z,D,q);if(!xe)throw new Error("point at infinify");return xe.assertValidity(),xe}hasHighS(){return v(this.s)}normalizeS(){return this.hasHighS()?new M(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return lt(this.toDERHex())}toDERHex(){return be.hexFromSig(this)}toCompactRawBytes(){return lt(this.toCompactHex())}toCompactHex(){const h=i;return Vt(this.r,h)+Vt(this.s,h)}}const k={isValidPrivateKey(p){try{return d(p),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const p=Gi(t.n);return Ya(t.randomBytes(p),t.n)},precompute(p=8,h=f.BASE){return h._setWindowSize(p),h.multiply(BigInt(3)),h}};function P(p,h=!0){return f.fromPrivateKey(p).toRawBytes(h)}function b(p){if(typeof p=="bigint")return!1;if(p instanceof f)return!0;const E=oe("key",p).length,I=n.BYTES,A=I+1,z=2*I+1;if(!(t.allowedPrivateKeyLengths||i===A))return E===A||E===z}function g(p,h,E=!0){if(b(p)===!0)throw new Error("first arg must be private key");if(b(h)===!1)throw new Error("second arg must be public key");return f.fromHex(h).multiply(d(p)).toRawBytes(E)}const $=t.bits2int||function(p){if(p.length>8192)throw new Error("input is too large");const h=Ae(p),E=p.length*8-s;return E>0?h>>BigInt(E):h},O=t.bits2int_modN||function(p){return a($(p))},L=Et(s);function j(p){return _e("num < 2^"+s,p,he,L),ot(p,i)}function R(p,h,E=S){if(["recovered","canonical"].some(Ee=>Ee in E))throw new Error("sign() legacy options not supported");const{hash:I,randomBytes:A}=t;let{lowS:z,prehash:U,extraEntropy:V}=E;z==null&&(z=!0),p=oe("msgHash",p),dr(E),U&&(p=oe("prehashed msgHash",I(p)));const Z=O(p),re=d(h),D=[j(re),j(Z)];if(V!=null&&V!==!1){const Ee=V===!0?A(n.BYTES):V;D.push(oe("extraEntropy",Ee))}const q=bt(...D),xe=Z;function Tt(Ee){const Re=$(Ee);if(!m(Re))return;const Ot=u(Re),Ye=f.BASE.multiply(Re).toAffine(),$e=a(Ye.x);if($e===he)return;const Ke=a(Ot*a(xe+$e*re));if(Ke===he)return;let Xe=(Ye.x===$e?0:2)|Number(Ye.y&G),Me=Ke;return z&&v(Ke)&&(Me=y(Ke),Xe^=1),new M($e,Me,Xe)}return{seed:q,k2sig:Tt}}const S={lowS:t.lowS,prehash:!1},C={lowS:t.lowS,prehash:!1};function T(p,h,E=S){const{seed:I,k2sig:A}=R(p,h,E),z=t;return na(z.hash.outputLen,z.nByteLength,z.hmac)(I,A)}f.BASE._setWindowSize(8);function _(p,h,E,I=C){var Xe;const A=p;h=oe("msgHash",h),E=oe("publicKey",E);const{lowS:z,prehash:U,format:V}=I;if(dr(I),"strict"in I)throw new Error("options.strict was renamed to lowS");if(V!==void 0&&V!=="compact"&&V!=="der")throw new Error("format must be compact or der");const Z=typeof A=="string"||st(A),re=!Z&&!V&&typeof A=="object"&&A!==null&&typeof A.r=="bigint"&&typeof A.s=="bigint";if(!Z&&!re)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let D,q;try{if(re&&(D=new M(A.r,A.s)),Z){try{V!=="compact"&&(D=M.fromDER(A))}catch(Me){if(!(Me instanceof be.Err))throw Me}!D&&V!=="der"&&(D=M.fromCompact(A))}q=f.fromHex(E)}catch{return!1}if(!D||z&&D.hasHighS())return!1;U&&(h=t.hash(h));const{r:xe,s:Tt}=D,Ee=O(h),Re=u(Tt),Ot=a(Ee*Re),Ye=a(xe*Re),$e=(Xe=f.BASE.multiplyAndAddUnsafe(q,Ot,Ye))==null?void 0:Xe.toAffine();return $e?a($e.x)===xe:!1}return{CURVE:t,getPublicKey:P,getSharedSecret:g,sign:T,verify:_,ProjectivePoint:f,Signature:M,utils:k}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function oc(e){return{hash:e,hmac:(t,...n)=>vs(e,t,Es(...n)),randomBytes:xs}}function ac(e,t){const n=r=>sc({...e,...oc(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qi=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lr=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),cc=BigInt(0),uc=BigInt(1),rn=BigInt(2),br=(e,t)=>(e+t/rn)/t;function fc(e){const t=qi,n=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),c=BigInt(44),a=BigInt(88),u=e*e*e%t,f=u*u*e%t,d=se(f,n,t)*f%t,l=se(d,n,t)*f%t,m=se(l,rn,t)*u%t,v=se(m,i,t)*m%t,y=se(v,s,t)*v%t,N=se(y,c,t)*y%t,M=se(N,a,t)*N%t,k=se(M,c,t)*y%t,P=se(k,n,t)*f%t,b=se(P,o,t)*v%t,g=se(b,r,t)*u%t,$=se(g,rn,t);if(!sn.eql(sn.sqr($),e))throw new Error("Cannot find square root");return $}const sn=Bn(qi,void 0,void 0,{sqrt:fc}),Wi=ac({a:cc,b:BigInt(7),Fp:sn,n:lr,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lr,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-uc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,o=BigInt("0x100000000000000000000000000000000"),c=br(s*e,t),a=br(-r*e,t);let u=J(e-c*n-a*i,t),f=J(-c*r-a*s,t);const d=u>o,l=f>o;if(d&&(u=t-u),l&&(f=t-f),u>o||f>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:l,k2:f}}}},xr),dc=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Wi},Symbol.toStringTag,{value:"Module"})),lc=/^(.*)\[([0-9]*)\]$/,bc=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Yi=/^(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)?$/,hr=2n**256n-1n;function An(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new Dt({signature:e});if(typeof e.s>"u")throw new Dt({signature:e});if(n&&typeof e.yParity>"u")throw new Dt({signature:e});if(e.r<0n||e.r>hr)throw new vc({value:e.r});if(e.s<0n||e.s>hr)throw new Ec({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new It({value:e.yParity})}function hc(e){return Ki(te(e))}function Ki(e){if(e.length!==130&&e.length!==132)throw new xc({signature:e});const t=BigInt(W(e,0,32)),n=BigInt(W(e,32,64)),r=(()=>{const i=+`0x${e.slice(130)}`;if(!Number.isNaN(i))try{return In(i)}catch{throw new It({value:i})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function yc(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Xi(e)}function Xi(e){const t=typeof e=="string"?Ki(e):e instanceof Uint8Array?hc(e):typeof e.r=="string"?mc(e):e.v?pc(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return An(t),t}function pc(e){return{r:e.r,s:e.s,yParity:In(e.v)}}function mc(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=In(n)),typeof r!="number")throw new It({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Pf(e){const[t,n,r]=e;return Xi({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function Bf(e){An(e);const t=e.r,n=e.s;return ce(F(t,{size:32}),F(n,{size:32}),typeof e.yParity=="number"?F(wc(e.yParity),{size:1}):"0x")}function gc(e){const{r:t,s:n,yParity:r}=e;return{r:F(t,{size:32}),s:F(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function Af(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":rr(F(t)),n===0n?"0x":rr(F(n))]}function In(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new $c({value:e})}function wc(e){if(e===0)return 27;if(e===1)return 28;throw new It({value:e})}class xc extends B{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${X(vi(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class Dt extends B{constructor({signature:t}){super(`Signature \`${Bt(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class vc extends B{constructor({value:t}){super(`Value \`${t}\` 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 Ec extends B{constructor({value:t}){super(`Value \`${t}\` 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 It extends B{constructor({value:t}){super(`Value \`${t}\` 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 $c extends B{constructor({value:t}){super(`Value \`${t}\` 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"})}}async function Pc(e,{address:t,blockNumber:n,blockTag:r="latest"}){const i=n!==void 0?x(n):void 0,s=await e.request({method:"eth_getCode",params:[t,i||r]},{dedupe:!!i});if(s!=="0x")return s}function Ve(e,t,n){const{checksumAddress:r,staticPosition:i}=n,s=Tn(t.type);if(s){const[o,c]=s;return Ac(e,{...t,type:c},{checksumAddress:r,length:o,staticPosition:i})}if(t.type==="tuple")return Tc(e,t,{checksumAddress:r,staticPosition:i});if(t.type==="address")return Bc(e,{checksum:r});if(t.type==="bool")return Ic(e);if(t.type.startsWith("bytes"))return Sc(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return zc(e,t);if(t.type==="string")return Oc(e,{staticPosition:i});throw new On(t.type)}const yr=32,on=32;function Bc(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(s=>n?Pn(s):s)(te($a(r,-20))),32]}function Ac(e,t,n){const{checksumAddress:r,length:i,staticPosition:s}=n;if(!i){const a=pe(e.readBytes(on)),u=s+a,f=u+yr;e.setPosition(u);const d=pe(e.readBytes(yr)),l=rt(t);let m=0;const v=[];for(let y=0;y<d;++y){e.setPosition(f+(l?y*32:m));const[N,M]=Ve(e,t,{checksumAddress:r,staticPosition:f});m+=M,v.push(N)}return e.setPosition(s+32),[v,32]}if(rt(t)){const a=pe(e.readBytes(on)),u=s+a,f=[];for(let d=0;d<i;++d){e.setPosition(u+d*32);const[l]=Ve(e,t,{checksumAddress:r,staticPosition:u});f.push(l)}return e.setPosition(s+32),[f,32]}let o=0;const c=[];for(let a=0;a<i;++a){const[u,f]=Ve(e,t,{checksumAddress:r,staticPosition:s+o});o+=f,c.push(u)}return[c,o]}function Ic(e){return[Ba(e.readBytes(32),{size:32}),32]}function Sc(e,t,{staticPosition:n}){const[r,i]=t.type.split("bytes");if(!i){const o=pe(e.readBytes(32));e.setPosition(n+o);const c=pe(e.readBytes(32));if(c===0)return e.setPosition(n+32),["0x",32];const a=e.readBytes(c);return e.setPosition(n+32),[te(a),32]}return[te(e.readBytes(Number.parseInt(i,10),32)),32]}function zc(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?Pa(i,{signed:n}):pe(i,{signed:n}),32]}function Tc(e,t,n){const{checksumAddress:r,staticPosition:i}=n,s=t.components.length===0||t.components.some(({name:a})=>!a),o=s?[]:{};let c=0;if(rt(t)){const a=pe(e.readBytes(on)),u=i+a;for(let f=0;f<t.components.length;++f){const d=t.components[f];e.setPosition(u+c);const[l,m]=Ve(e,d,{checksumAddress:r,staticPosition:u});c+=m,o[s?f:d==null?void 0:d.name]=l}return e.setPosition(i+32),[o,32]}for(let a=0;a<t.components.length;++a){const u=t.components[a],[f,d]=Ve(e,u,{checksumAddress:r,staticPosition:i});o[s?a:u==null?void 0:u.name]=f,c+=d}return[o,c]}function Oc(e,{staticPosition:t}){const n=pe(e.readBytes(32)),r=t+n;e.setPosition(r);const i=pe(e.readBytes(32));if(i===0)return e.setPosition(t+32),["",32];const s=e.readBytes(i,32),o=Aa(Ti(s));return e.setPosition(t+32),[o,32]}function Cc({checksumAddress:e,parameters:t,values:n}){const r=[];for(let i=0;i<t.length;i++)r.push(Sn({checksumAddress:e,parameter:t[i],value:n[i]}));return r}function Sn({checksumAddress:e=!1,parameter:t,value:n}){const r=t,i=Tn(r.type);if(i){const[s,o]=i;return Lc(n,{checksumAddress:e,length:s,parameter:{...r,type:o}})}if(r.type==="tuple")return Fc(n,{checksumAddress:e,parameter:r});if(r.type==="address")return Nc(n,{checksum:e});if(r.type==="bool")return Mc(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const s=r.type.startsWith("int"),[,,o="256"]=Yi.exec(r.type)??[];return jc(n,{signed:s,size:Number(o)})}if(r.type.startsWith("bytes"))return Rc(n,{type:r.type});if(r.type==="string")return Uc(n);throw new On(r.type)}function zn(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:o,encoded:c}=e[s];o?t+=32:t+=X(c)}const n=[],r=[];let i=0;for(let s=0;s<e.length;s++){const{dynamic:o,encoded:c}=e[s];o?(n.push(F(t+i,{size:32})),r.push(c),i+=X(c)):n.push(c)}return ce(...n,...r)}function Nc(e,t){const{checksum:n=!1}=t;return Ce(e,{strict:n}),{dynamic:!1,encoded:Te(e.toLowerCase())}}function Lc(e,t){const{checksumAddress:n,length:r,parameter:i}=t,s=r===null;if(!Array.isArray(e))throw new Yc(e);if(!s&&e.length!==r)throw new Wc({expectedLength:r,givenLength:e.length,type:`${i.type}[${r}]`});let o=!1;const c=[];for(let a=0;a<e.length;a++){const u=Sn({checksumAddress:n,parameter:i,value:e[a]});u.dynamic&&(o=!0),c.push(u)}if(s||o){const a=zn(c);if(s){const u=F(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?ce(u,a):u}}if(o)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:ce(...c.map(({encoded:a})=>a))}}function Rc(e,{type:t}){const[,n]=t.split("bytes"),r=X(e);if(!n){let i=e;return r%32!==0&&(i=Oe(i,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:ce(Te(F(r,{size:32})),i)}}if(r!==Number.parseInt(n,10))throw new Qi({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Oe(e)}}function Mc(e){if(typeof e!="boolean")throw new B(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Te(Ei(e))}}function jc(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new Ii({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:F(e,{size:32,signed:t})}}function Uc(e){const t=$i(e),n=Math.ceil(X(t)/32),r=[];for(let i=0;i<n;i++)r.push(Oe(W(t,i*32,(i+1)*32)));return{dynamic:!0,encoded:ce(Oe(F(X(t),{size:32})),...r)}}function Fc(e,t){const{checksumAddress:n,parameter:r}=t;let i=!1;const s=[];for(let o=0;o<r.components.length;o++){const c=r.components[o],a=Array.isArray(e)?o:c.name,u=Sn({checksumAddress:n,parameter:c,value:e[a]});s.push(u),u.dynamic&&(i=!0)}return{dynamic:i,encoded:i?zn(s):ce(...s.map(({encoded:o})=>o))}}function Tn(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function rt(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(rt);const n=Tn(e.type);return!!(n&&rt({...e,type:n[1]}))}const kc={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Gc({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Vc({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new pr({offset:e});const 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 pr({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function _c(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(kc);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class pr extends B{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Vc extends B{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class Gc extends B{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function Dc(e,t,n={}){const{as:r="Array",checksumAddress:i=!1}=n,s=typeof t=="string"?At(t):t,o=_c(s);if(Ue(s)===0&&e.length>0)throw new qc;if(Ue(s)&&Ue(s)<32)throw new Zc({data:typeof t=="string"?t:te(t),parameters:e,size:Ue(s)});let c=0;const a=r==="Array"?[]:{};for(let u=0;u<e.length;++u){const f=e[u];o.setPosition(c);const[d,l]=Ve(o,f,{checksumAddress:i,staticPosition:0});c+=l,r==="Array"?a.push(d):a[f.name??u]=d}return a}function Hc(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new es({expectedLength:e.length,givenLength:t.length});const i=Cc({checksumAddress:r,parameters:e,values:t}),s=zn(i);return s.length===0?"0x":s}function an(e,t){if(e.length!==t.length)throw new es({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const i=e[r],s=t[r];n.push(an.encode(i,s))}return ce(...n)}(function(e){function t(n,r,i=!1){if(n==="address"){const a=r;return Ce(a),Te(a.toLowerCase(),i?32:0)}if(n==="string")return $i(r);if(n==="bytes")return r;if(n==="bool")return Te(Ei(r),i?32:1);const s=n.match(Yi);if(s){const[a,u,f="256"]=s,d=Number.parseInt(f,10)/8;return F(r,{size:i?32:d,signed:u==="int"})}const o=n.match(bc);if(o){const[a,u]=o;if(Number.parseInt(u,10)!==(r.length-2)/2)throw new Qi({expectedSize:Number.parseInt(u,10),value:r});return Oe(r,i?32:0)}const c=n.match(lc);if(c&&Array.isArray(r)){const[a,u]=c,f=[];for(let d=0;d<r.length;d++)f.push(t(u,r[d],!0));return f.length===0?"0x":ce(...f)}throw new On(n)}e.encode=t})(an||(an={}));function Ji(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?Kn(e):e}class Zc extends B{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${je(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class qc extends B{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class Wc extends B{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class Qi extends B{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${X(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class es extends B{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
35
- `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class Yc extends B{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class On extends B{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}const ts="0x6492649264926492649264926492649264926492649264926492649264926492";function Kc(e){if(W(e,-32)!==ts)throw new Qc(e)}function Xc(e){const{data:t,signature:n,to:r}=e;return ce(Hc(Ji("address, bytes, bytes"),[r,t,n]),ts)}function Jc(e){try{return Kc(e),!0}catch{return!1}}let Qc=class extends B{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};function eu(e,t={}){return typeof e.chainId=="string"?ns(e):{...e,...t.signature}}function ns(e){const{address:t,chainId:n,nonce:r}=e,i=yc(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}function Sf(e){return e.map(ns)}function tu(e){const{address:t,chainId:n,nonce:r,...i}=e;return{address:t,chainId:F(n),nonce:F(r),...gc(i)}}function zf(e){return e.map(tu)}const nu="0x8010801080108010801080108010801080108010801080108010801080108010",ru=Ji("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function rs(e){if(typeof e=="string"){if(W(e,-32)!==nu)throw new ou(e)}else An(e.authorization)}function iu(e){rs(e);const t=Bi(W(e,-64,-32)),n=W(e,-t-64,-64),r=W(e,0,-t-64),[i,s,o]=Dc(ru,n);return{authorization:eu({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...o&&o!=="0x"?{data:o,to:s}:{}}}function su(e){try{return rs(e),!0}catch{return!1}}class ou extends B{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}const au="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",cu="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",uu="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",is="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Ht="/docs/contract/encodeDeployData";function Cn(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const i=t.find(o=>"type"in o&&o.type==="constructor");if(!i)throw new xo({docsPath:Ht});if(!("inputs"in i))throw new qn({docsPath:Ht});if(!i.inputs||i.inputs.length===0)throw new qn({docsPath:Ht});const s=ai(i.inputs,n);return ge([r,s])}const mr="/docs/contract/encodeFunctionData";function fu(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const s=xn({abi:t,args:n,name:r});if(!s)throw new dt(r,{docsPath:mr});i=s}if(i.type!=="function")throw new dt(void 0,{docsPath:mr});return{abi:[i],functionName:pn(ze(i))}}function St(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var c;return e.abi.length===1&&((c=e.functionName)!=null&&c.startsWith("0x"))?e:fu(e)})(),i=n[0],s=r,o="inputs"in i&&i.inputs?ai(i.inputs,t??[]):void 0;return ge([s,o??"0x"])}function ss(e,t){if(!K(e,{strict:!1}))throw new ae({address:e});if(!K(t,{strict:!1}))throw new ae({address:t});return e.toLowerCase()===t.toLowerCase()}function du(e){const t=gt(`0x${e.substring(4)}`).substring(26);return wt(`0x${t}`)}async function lu({hash:e,signature:t}){const n=ve(e)?e:De(e),{secp256k1:r}=await Ar(async()=>{const{secp256k1:o}=await Promise.resolve().then(()=>dc);return{secp256k1:o}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:u,s:f,v:d,yParity:l}=t,m=Number(l??d),v=gr(m);return new r.Signature(Je(u),Je(f)).addRecoveryBit(v)}const o=ve(t)?t:De(t);if(H(o)!==65)throw new Error("invalid signature length");const c=Ge(`0x${o.slice(130)}`),a=gr(c);return r.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(a)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function gr(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function os({hash:e,signature:t}){return du(await lu({hash:e,signature:t}))}function bu(e){const{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,s=gt(ge(["0x05",Se([t?x(t):"0x",i,n?x(n):"0x"])]));return r==="bytes"?ue(s):s}async function hu(e){const{authorization:t,signature:n}=e;return os({hash:bu(t),signature:n??t})}async function yu({address:e,authorization:t,signature:n}){return ss(Vr(e),await hu({authorization:t,signature:n}))}function zt(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:s=>t(e,s)}function pu({r:e,s:t,to:n="hex",v:r,yParity:i}){const s=(()=>{if(i===0||i===1)return i;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new Wi.Signature(Je(e),Je(t)).toCompactHex()}${s===0?"1b":"1c"}`;return n==="hex"?o:ue(o)}function mu(e){return{address:e.address,amount:F(e.amount),index:F(e.index),validatorIndex:F(e.validatorIndex)}}function gu(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:F(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:F(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:F(e.gasLimit)},...typeof e.number=="bigint"&&{number:F(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:F(e.prevRandao)},...typeof e.time=="bigint"&&{time:F(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(mu)}}}const wu="0x82ad56cb",Zt="/docs/contract/decodeFunctionResult";function as(e){const{abi:t,args:n,functionName:r,data:i}=e;let s=t[0];if(r){const c=xn({abi:t,args:n,name:r});if(!c)throw new dt(r,{docsPath:Zt});s=c}if(s.type!=="function")throw new dt(void 0,{docsPath:Zt});if(!s.outputs)throw new Bo(s.name,{docsPath:Zt});const o=ci(s.outputs,i);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}function wr(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new _n({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new _n({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function xu(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:s}=e,o={};if(s!==void 0&&(o.code=s),t!==void 0&&(o.balance=x(t)),n!==void 0&&(o.nonce=x(n)),r!==void 0&&(o.state=wr(r)),i!==void 0){if(o.state)throw new H0;o.stateDiff=wr(i)}return o}function vu(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!K(n,{strict:!1}))throw new ae({address:n});if(t[n])throw new D0({address:n});t[n]=xu(r)}return t}async function cs(e,t){var T,_,p,h;const{account:n=e.account,authorizationList:r,batch:i=!!((T=e.batch)!=null&&T.multicall),blockNumber:s,blockTag:o=e.experimental_blockTag??"latest",accessList:c,blobs:a,blockOverrides:u,code:f,data:d,factory:l,factoryData:m,gas:v,gasPrice:y,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:k,nonce:P,to:b,value:g,stateOverride:$,...O}=t,L=n?bn(n):void 0;if(f&&(l||m))throw new w("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(f&&b)throw new w("Cannot provide both `code` & `to` as parameters.");const j=f&&d,R=l&&m&&b&&d,S=j||R,C=j?us({code:f,data:d}):R?Pu({data:d,factory:l,factoryData:m,to:b}):d;try{Q0(t);const I=(typeof s=="bigint"?x(s):void 0)||o,A=u?gu(u):void 0,z=vu($),U=(h=(p=(_=e.chain)==null?void 0:_.formatters)==null?void 0:p.transactionRequest)==null?void 0:h.format,Z=(U||Tr)({...J0(O,{format:U}),accessList:c,account:L,authorizationList:r,blobs:a,data:C,gas:v,gasPrice:y,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:k,nonce:P,to:S?void 0:b,value:g},"call");if(i&&Eu({request:Z})&&!z&&!A)try{return await $u(e,{...Z,blockNumber:s,blockTag:o})}catch(q){if(!(q instanceof _r)&&!(q instanceof Wt))throw q}const re=(()=>{const q=[Z,I];return z&&A?[...q,z,A]:z?[...q,z]:A?[...q,{},A]:q})(),D=await e.request({method:"eth_call",params:re});return D==="0x"?{data:void 0}:{data:D}}catch(E){const I=Bu(E),{offchainLookup:A,offchainLookupSignature:z}=await Ar(async()=>{const{offchainLookup:U,offchainLookupSignature:V}=await import("./ccip-xyxXL3L7.js").then(Z=>Z.g);return{offchainLookup:U,offchainLookupSignature:V}},__vite__mapDeps([0,1,2]));if(e.ccipRead!==!1&&(I==null?void 0:I.slice(0,10))===z&&b)return{data:await A(e,{data:I,to:b})};throw S&&(I==null?void 0:I.slice(0,10))==="0x101bb98d"?new Y0({factory:l}):X0(E,{...t,account:L,chain:e.chain})}}function Eu({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(wu)||!n||Object.values(r).filter(i=>typeof i<"u").length>0)}async function $u(e,t){var y;const{batchSize:n=1024,deployless:r=!1,wait:i=0}=typeof((y=e.batch)==null?void 0:y.multicall)=="object"?e.batch.multicall:{},{blockNumber:s,blockTag:o=e.experimental_blockTag??"latest",data:c,to:a}=t,u=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return yo({blockNumber:s,chain:e.chain,contract:"multicall3"});throw new _r})(),d=(typeof s=="bigint"?x(s):void 0)||o,{schedule:l}=$s({id:`${e.uid}.${d}`,wait:i,shouldSplitBatch(N){return N.reduce((k,{data:P})=>k+(P.length-2),0)>n*2},fn:async N=>{const M=N.map(b=>({allowFailure:!0,callData:b.data,target:b.to})),k=St({abi:qt,args:[M],functionName:"aggregate3"}),P=await e.request({method:"eth_call",params:[{...u===null?{data:us({code:is,data:k})}:{to:u,data:k}},d]});return as({abi:qt,args:[M],functionName:"aggregate3",data:P||"0x"})}}),[{returnData:m,success:v}]=await l({data:c,to:a});if(!v)throw new bi({data:m});return m==="0x"?{data:void 0}:{data:m}}function us(e){const{code:t,data:n}=e;return Cn({abi:si(["constructor(bytes, bytes)"]),bytecode:au,args:[t,n]})}function Pu(e){const{data:t,factory:n,factoryData:r,to:i}=e;return Cn({abi:si(["constructor(address, bytes, address, bytes)"]),bytecode:cu,args:[i,t,n,r]})}function Bu(e){var n;if(!(e instanceof w))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}const Au=3;function Iu(e,{abi:t,address:n,args:r,docsPath:i,functionName:s,sender:o}){const c=e instanceof bi?e:e instanceof w?e.walk(v=>"data"in v)||e.walk():{},{code:a,data:u,details:f,message:d,shortMessage:l}=c,m=e instanceof hn?new W0({functionName:s}):[Au,Ps.code].includes(a)&&(u||f||d||l)||a===Bs.code&&f==="execution reverted"&&u?new q0({abi:t,data:typeof u=="object"?u.data:u,functionName:s,message:c instanceof As?f:l??d}):e;return new li(m,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:s,sender:o})}async function fs(e,t){const{abi:n,address:r,args:i,functionName:s,...o}=t,c=St({abi:n,args:i,functionName:s});try{const{data:a}=await zt(e,cs,"call")({...o,data:c,to:r});return as({abi:n,args:i,functionName:s,data:a||"0x"})}catch(a){throw Iu(a,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:s})}}async function Tf(e,t){var a,u,f,d;const{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??((u=(a=r==null?void 0:r.contracts)==null?void 0:a.erc6492Verifier)==null?void 0:u.address),multicallAddress:o=t.multicallAddress??((d=(f=r==null?void 0:r.contracts)==null?void 0:f.multicall3)==null?void 0:d.address)}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const c=(()=>{const l=t.signature;return ve(l)?l:typeof l=="object"&&"r"in l&&"s"in l?pu(l):ee(l)})();try{return su(c)?await Su(e,{...t,multicallAddress:o,signature:c}):await zu(e,{...t,verifierAddress:s,signature:c})}catch(l){try{if(ss(Vr(n),await os({hash:i,signature:c})))return!0}catch{}if(l instanceof Ne)return!1;throw l}}async function Su(e,t){var N;const{address:n,blockNumber:r,blockTag:i,hash:s,multicallAddress:o}=t,{authorization:c,data:a,signature:u,to:f}=iu(t.signature);if(await Pc(e,{address:n,blockNumber:r,blockTag:i})===ge(["0xef0100",c.address]))return await Tu(e,{address:n,blockNumber:r,blockTag:i,hash:s,signature:u});const l={address:c.address,chainId:Number(c.chainId),nonce:Number(c.nonce),r:x(c.r,{size:32}),s:x(c.s,{size:32}),yParity:c.yParity};if(!await yu({address:n,authorization:l}))throw new Ne;const v=await zt(e,fs,"readContract")({...o?{address:o}:{code:is},authorizationList:[l],abi:qt,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...a?[{allowFailure:!0,target:f??n,callData:a}]:[],{allowFailure:!0,target:n,callData:St({abi:Br,functionName:"isValidSignature",args:[s,u]})}]]}),y=(N=v[v.length-1])==null?void 0:N.returnData;if(y!=null&&y.startsWith("0x1626ba7e"))return!0;throw new Ne}async function zu(e,t){const{address:n,factory:r,factoryData:i,hash:s,signature:o,verifierAddress:c,...a}=t,u=await(async()=>!r&&!i||Jc(o)?o:Xc({data:i,signature:o,to:r}))(),f=c?{to:c,data:St({abi:Vn,functionName:"isValidSig",args:[n,s,u]}),...a}:{data:Cn({abi:Vn,args:[n,s,u],bytecode:uu}),...a},{data:d}=await zt(e,cs,"call")(f).catch(l=>{throw l instanceof di?new Ne:l});if(Is(d??"0x0"))return!0;throw new Ne}async function Tu(e,t){const{address:n,blockNumber:r,blockTag:i,hash:s,signature:o}=t;if((await zt(e,fs,"readContract")({address:n,abi:Br,args:[s,o],blockNumber:r,blockTag:i,functionName:"isValidSignature"}).catch(a=>{throw a instanceof li?new Ne:a})).startsWith("0x1626ba7e"))return!0;throw new Ne}class Ne extends Error{}export{as as $,tf as A,K0 as B,Cs as C,zt as D,bn as E,Q0 as F,Tr as G,J0 as H,zo as I,zr as J,Lr as K,Ks as L,Rr as M,to as N,co as O,hu as P,vu as Q,St as R,Iu as S,Gu as T,Ju as U,Qu as V,of as W,vo as X,Fs as Y,sf as Z,Ns as _,Xu as a,W0 as a$,q0 as a0,Ir as a1,yo as a2,fs as a3,X0 as a4,A0 as a5,K as a6,ae as a7,uf as a8,nf as a9,Jo as aA,o0 as aB,qe as aC,i0 as aD,si as aE,Kn as aF,Qo as aG,r0 as aH,Yo as aI,cu as aJ,uu as aK,Fu as aL,yt as aM,xo as aN,qn as aO,Eo as aP,$o as aQ,Po as aR,Zr as aS,So as aT,Io as aU,To as aV,Wt as aW,_r as aX,mt as aY,di as aZ,li as a_,Du as aa,Hu as ab,Rs as ac,is as ad,hn as ae,bi as af,gu as ag,$f as ah,B as ai,Ai as aj,W as ak,Ci as al,$i as am,Lo as an,ce as ao,Hc as ap,au as aq,Tf as ar,qu as as,Zu as at,Pc as au,s0 as av,Xo as aw,n0 as ax,t0 as ay,e0 as az,Ku as b,df as b$,Y0 as b0,D0 as b1,H0 as b2,Ds as b3,Hs as b4,Zs as b5,Cn as b6,fu as b7,wt as b8,Vr as b9,pu as bA,ln as bB,oo as bC,ao as bD,xt as bE,Yu as bF,it as bG,ac as bH,Bn as bI,At as bJ,Ri as bK,Ef as bL,Wi as bM,zi as bN,wf as bO,vf as bP,vi as bQ,gf as bR,te as bS,pf as bT,xa as bU,yf as bV,X as bW,Ki as bX,An as bY,Pi as bZ,Bi as b_,Ys as ba,eo as bb,Nu as bc,Lu as bd,Us as be,Hr as bf,ro as bg,$0 as bh,P0 as bi,ye as bj,B0 as bk,zs as bl,ue as bm,Ts as bn,Se as bo,Mu as bp,Ru as bq,Sr as br,ju as bs,Uu as bt,Ms as bu,Ws as bv,oi as bw,E0 as bx,os as by,lu as bz,ge as c,mc as c0,Bf as c1,F as c2,Bt as c3,gc as c4,_c as c5,lf as c6,Ce as c7,yc as c8,Sf as c9,wc as ca,zf as cb,ff as cc,rr as cd,mf as ce,Xi as cf,Af as cg,Pf as ch,ci as d,ai as e,ze as f,xn as g,dt as h,Bo as i,mo as j,V0 as k,ss as l,cs as m,Ze as n,ri as o,c0 as p,yn as q,cf as r,Qe as s,pn as t,ef as u,G0 as v,gt as w,un as x,pt as y,Nr as z};
35
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class Yc extends B{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class On extends B{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}const ts="0x6492649264926492649264926492649264926492649264926492649264926492";function Kc(e){if(W(e,-32)!==ts)throw new Qc(e)}function Xc(e){const{data:t,signature:n,to:r}=e;return ce(Hc(Ji("address, bytes, bytes"),[r,t,n]),ts)}function Jc(e){try{return Kc(e),!0}catch{return!1}}let Qc=class extends B{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};function eu(e,t={}){return typeof e.chainId=="string"?ns(e):{...e,...t.signature}}function ns(e){const{address:t,chainId:n,nonce:r}=e,i=yc(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}function Sf(e){return e.map(ns)}function tu(e){const{address:t,chainId:n,nonce:r,...i}=e;return{address:t,chainId:F(n),nonce:F(r),...gc(i)}}function zf(e){return e.map(tu)}const nu="0x8010801080108010801080108010801080108010801080108010801080108010",ru=Ji("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function rs(e){if(typeof e=="string"){if(W(e,-32)!==nu)throw new ou(e)}else An(e.authorization)}function iu(e){rs(e);const t=Bi(W(e,-64,-32)),n=W(e,-t-64,-64),r=W(e,0,-t-64),[i,s,o]=Dc(ru,n);return{authorization:eu({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...o&&o!=="0x"?{data:o,to:s}:{}}}function su(e){try{return rs(e),!0}catch{return!1}}class ou extends B{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}const au="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",cu="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",uu="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",is="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Ht="/docs/contract/encodeDeployData";function Cn(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const i=t.find(o=>"type"in o&&o.type==="constructor");if(!i)throw new xo({docsPath:Ht});if(!("inputs"in i))throw new qn({docsPath:Ht});if(!i.inputs||i.inputs.length===0)throw new qn({docsPath:Ht});const s=ai(i.inputs,n);return ge([r,s])}const mr="/docs/contract/encodeFunctionData";function fu(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const s=xn({abi:t,args:n,name:r});if(!s)throw new dt(r,{docsPath:mr});i=s}if(i.type!=="function")throw new dt(void 0,{docsPath:mr});return{abi:[i],functionName:pn(ze(i))}}function St(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var c;return e.abi.length===1&&((c=e.functionName)!=null&&c.startsWith("0x"))?e:fu(e)})(),i=n[0],s=r,o="inputs"in i&&i.inputs?ai(i.inputs,t??[]):void 0;return ge([s,o??"0x"])}function ss(e,t){if(!K(e,{strict:!1}))throw new ae({address:e});if(!K(t,{strict:!1}))throw new ae({address:t});return e.toLowerCase()===t.toLowerCase()}function du(e){const t=gt(`0x${e.substring(4)}`).substring(26);return wt(`0x${t}`)}async function lu({hash:e,signature:t}){const n=ve(e)?e:De(e),{secp256k1:r}=await Ar(async()=>{const{secp256k1:o}=await Promise.resolve().then(()=>dc);return{secp256k1:o}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:u,s:f,v:d,yParity:l}=t,m=Number(l??d),v=gr(m);return new r.Signature(Je(u),Je(f)).addRecoveryBit(v)}const o=ve(t)?t:De(t);if(H(o)!==65)throw new Error("invalid signature length");const c=Ge(`0x${o.slice(130)}`),a=gr(c);return r.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(a)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function gr(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function os({hash:e,signature:t}){return du(await lu({hash:e,signature:t}))}function bu(e){const{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,s=gt(ge(["0x05",Se([t?x(t):"0x",i,n?x(n):"0x"])]));return r==="bytes"?ue(s):s}async function hu(e){const{authorization:t,signature:n}=e;return os({hash:bu(t),signature:n??t})}async function yu({address:e,authorization:t,signature:n}){return ss(Vr(e),await hu({authorization:t,signature:n}))}function zt(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:s=>t(e,s)}function pu({r:e,s:t,to:n="hex",v:r,yParity:i}){const s=(()=>{if(i===0||i===1)return i;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new Wi.Signature(Je(e),Je(t)).toCompactHex()}${s===0?"1b":"1c"}`;return n==="hex"?o:ue(o)}function mu(e){return{address:e.address,amount:F(e.amount),index:F(e.index),validatorIndex:F(e.validatorIndex)}}function gu(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:F(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:F(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:F(e.gasLimit)},...typeof e.number=="bigint"&&{number:F(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:F(e.prevRandao)},...typeof e.time=="bigint"&&{time:F(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(mu)}}}const wu="0x82ad56cb",Zt="/docs/contract/decodeFunctionResult";function as(e){const{abi:t,args:n,functionName:r,data:i}=e;let s=t[0];if(r){const c=xn({abi:t,args:n,name:r});if(!c)throw new dt(r,{docsPath:Zt});s=c}if(s.type!=="function")throw new dt(void 0,{docsPath:Zt});if(!s.outputs)throw new Bo(s.name,{docsPath:Zt});const o=ci(s.outputs,i);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}function wr(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new _n({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new _n({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function xu(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:s}=e,o={};if(s!==void 0&&(o.code=s),t!==void 0&&(o.balance=x(t)),n!==void 0&&(o.nonce=x(n)),r!==void 0&&(o.state=wr(r)),i!==void 0){if(o.state)throw new H0;o.stateDiff=wr(i)}return o}function vu(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!K(n,{strict:!1}))throw new ae({address:n});if(t[n])throw new D0({address:n});t[n]=xu(r)}return t}async function cs(e,t){var T,_,p,h;const{account:n=e.account,authorizationList:r,batch:i=!!((T=e.batch)!=null&&T.multicall),blockNumber:s,blockTag:o=e.experimental_blockTag??"latest",accessList:c,blobs:a,blockOverrides:u,code:f,data:d,factory:l,factoryData:m,gas:v,gasPrice:y,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:k,nonce:P,to:b,value:g,stateOverride:$,...O}=t,L=n?bn(n):void 0;if(f&&(l||m))throw new w("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(f&&b)throw new w("Cannot provide both `code` & `to` as parameters.");const j=f&&d,R=l&&m&&b&&d,S=j||R,C=j?us({code:f,data:d}):R?Pu({data:d,factory:l,factoryData:m,to:b}):d;try{Q0(t);const I=(typeof s=="bigint"?x(s):void 0)||o,A=u?gu(u):void 0,z=vu($),U=(h=(p=(_=e.chain)==null?void 0:_.formatters)==null?void 0:p.transactionRequest)==null?void 0:h.format,Z=(U||Tr)({...J0(O,{format:U}),accessList:c,account:L,authorizationList:r,blobs:a,data:C,gas:v,gasPrice:y,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:k,nonce:P,to:S?void 0:b,value:g},"call");if(i&&Eu({request:Z})&&!z&&!A)try{return await $u(e,{...Z,blockNumber:s,blockTag:o})}catch(q){if(!(q instanceof _r)&&!(q instanceof Wt))throw q}const re=(()=>{const q=[Z,I];return z&&A?[...q,z,A]:z?[...q,z]:A?[...q,{},A]:q})(),D=await e.request({method:"eth_call",params:re});return D==="0x"?{data:void 0}:{data:D}}catch(E){const I=Bu(E),{offchainLookup:A,offchainLookupSignature:z}=await Ar(async()=>{const{offchainLookup:U,offchainLookupSignature:V}=await import("./ccip-CAVNbh-6.js").then(Z=>Z.g);return{offchainLookup:U,offchainLookupSignature:V}},__vite__mapDeps([0,1,2]));if(e.ccipRead!==!1&&(I==null?void 0:I.slice(0,10))===z&&b)return{data:await A(e,{data:I,to:b})};throw S&&(I==null?void 0:I.slice(0,10))==="0x101bb98d"?new Y0({factory:l}):X0(E,{...t,account:L,chain:e.chain})}}function Eu({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(wu)||!n||Object.values(r).filter(i=>typeof i<"u").length>0)}async function $u(e,t){var y;const{batchSize:n=1024,deployless:r=!1,wait:i=0}=typeof((y=e.batch)==null?void 0:y.multicall)=="object"?e.batch.multicall:{},{blockNumber:s,blockTag:o=e.experimental_blockTag??"latest",data:c,to:a}=t,u=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return yo({blockNumber:s,chain:e.chain,contract:"multicall3"});throw new _r})(),d=(typeof s=="bigint"?x(s):void 0)||o,{schedule:l}=$s({id:`${e.uid}.${d}`,wait:i,shouldSplitBatch(N){return N.reduce((k,{data:P})=>k+(P.length-2),0)>n*2},fn:async N=>{const M=N.map(b=>({allowFailure:!0,callData:b.data,target:b.to})),k=St({abi:qt,args:[M],functionName:"aggregate3"}),P=await e.request({method:"eth_call",params:[{...u===null?{data:us({code:is,data:k})}:{to:u,data:k}},d]});return as({abi:qt,args:[M],functionName:"aggregate3",data:P||"0x"})}}),[{returnData:m,success:v}]=await l({data:c,to:a});if(!v)throw new bi({data:m});return m==="0x"?{data:void 0}:{data:m}}function us(e){const{code:t,data:n}=e;return Cn({abi:si(["constructor(bytes, bytes)"]),bytecode:au,args:[t,n]})}function Pu(e){const{data:t,factory:n,factoryData:r,to:i}=e;return Cn({abi:si(["constructor(address, bytes, address, bytes)"]),bytecode:cu,args:[i,t,n,r]})}function Bu(e){var n;if(!(e instanceof w))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}const Au=3;function Iu(e,{abi:t,address:n,args:r,docsPath:i,functionName:s,sender:o}){const c=e instanceof bi?e:e instanceof w?e.walk(v=>"data"in v)||e.walk():{},{code:a,data:u,details:f,message:d,shortMessage:l}=c,m=e instanceof hn?new W0({functionName:s}):[Au,Ps.code].includes(a)&&(u||f||d||l)||a===Bs.code&&f==="execution reverted"&&u?new q0({abi:t,data:typeof u=="object"?u.data:u,functionName:s,message:c instanceof As?f:l??d}):e;return new li(m,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:s,sender:o})}async function fs(e,t){const{abi:n,address:r,args:i,functionName:s,...o}=t,c=St({abi:n,args:i,functionName:s});try{const{data:a}=await zt(e,cs,"call")({...o,data:c,to:r});return as({abi:n,args:i,functionName:s,data:a||"0x"})}catch(a){throw Iu(a,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:s})}}async function Tf(e,t){var a,u,f,d;const{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??((u=(a=r==null?void 0:r.contracts)==null?void 0:a.erc6492Verifier)==null?void 0:u.address),multicallAddress:o=t.multicallAddress??((d=(f=r==null?void 0:r.contracts)==null?void 0:f.multicall3)==null?void 0:d.address)}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const c=(()=>{const l=t.signature;return ve(l)?l:typeof l=="object"&&"r"in l&&"s"in l?pu(l):ee(l)})();try{return su(c)?await Su(e,{...t,multicallAddress:o,signature:c}):await zu(e,{...t,verifierAddress:s,signature:c})}catch(l){try{if(ss(Vr(n),await os({hash:i,signature:c})))return!0}catch{}if(l instanceof Ne)return!1;throw l}}async function Su(e,t){var N;const{address:n,blockNumber:r,blockTag:i,hash:s,multicallAddress:o}=t,{authorization:c,data:a,signature:u,to:f}=iu(t.signature);if(await Pc(e,{address:n,blockNumber:r,blockTag:i})===ge(["0xef0100",c.address]))return await Tu(e,{address:n,blockNumber:r,blockTag:i,hash:s,signature:u});const l={address:c.address,chainId:Number(c.chainId),nonce:Number(c.nonce),r:x(c.r,{size:32}),s:x(c.s,{size:32}),yParity:c.yParity};if(!await yu({address:n,authorization:l}))throw new Ne;const v=await zt(e,fs,"readContract")({...o?{address:o}:{code:is},authorizationList:[l],abi:qt,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...a?[{allowFailure:!0,target:f??n,callData:a}]:[],{allowFailure:!0,target:n,callData:St({abi:Br,functionName:"isValidSignature",args:[s,u]})}]]}),y=(N=v[v.length-1])==null?void 0:N.returnData;if(y!=null&&y.startsWith("0x1626ba7e"))return!0;throw new Ne}async function zu(e,t){const{address:n,factory:r,factoryData:i,hash:s,signature:o,verifierAddress:c,...a}=t,u=await(async()=>!r&&!i||Jc(o)?o:Xc({data:i,signature:o,to:r}))(),f=c?{to:c,data:St({abi:Vn,functionName:"isValidSig",args:[n,s,u]}),...a}:{data:Cn({abi:Vn,args:[n,s,u],bytecode:uu}),...a},{data:d}=await zt(e,cs,"call")(f).catch(l=>{throw l instanceof di?new Ne:l});if(Is(d??"0x0"))return!0;throw new Ne}async function Tu(e,t){const{address:n,blockNumber:r,blockTag:i,hash:s,signature:o}=t;if((await zt(e,fs,"readContract")({address:n,abi:Br,args:[s,o],blockNumber:r,blockTag:i,functionName:"isValidSignature"}).catch(a=>{throw a instanceof li?new Ne:a})).startsWith("0x1626ba7e"))return!0;throw new Ne}class Ne extends Error{}export{as as $,tf as A,K0 as B,Cs as C,zt as D,bn as E,Q0 as F,Tr as G,J0 as H,zo as I,zr as J,Lr as K,Ks as L,Rr as M,to as N,co as O,hu as P,vu as Q,St as R,Iu as S,Gu as T,Ju as U,Qu as V,of as W,vo as X,Fs as Y,sf as Z,Ns as _,Xu as a,W0 as a$,q0 as a0,Ir as a1,yo as a2,fs as a3,X0 as a4,A0 as a5,K as a6,ae as a7,uf as a8,nf as a9,Jo as aA,o0 as aB,qe as aC,i0 as aD,si as aE,Kn as aF,Qo as aG,r0 as aH,Yo as aI,cu as aJ,uu as aK,Fu as aL,yt as aM,xo as aN,qn as aO,Eo as aP,$o as aQ,Po as aR,Zr as aS,So as aT,Io as aU,To as aV,Wt as aW,_r as aX,mt as aY,di as aZ,li as a_,Du as aa,Hu as ab,Rs as ac,is as ad,hn as ae,bi as af,gu as ag,$f as ah,B as ai,Ai as aj,W as ak,Ci as al,$i as am,Lo as an,ce as ao,Hc as ap,au as aq,Tf as ar,qu as as,Zu as at,Pc as au,s0 as av,Xo as aw,n0 as ax,t0 as ay,e0 as az,Ku as b,df as b$,Y0 as b0,D0 as b1,H0 as b2,Ds as b3,Hs as b4,Zs as b5,Cn as b6,fu as b7,wt as b8,Vr as b9,pu as bA,ln as bB,oo as bC,ao as bD,xt as bE,Yu as bF,it as bG,ac as bH,Bn as bI,At as bJ,Ri as bK,Ef as bL,Wi as bM,zi as bN,wf as bO,vf as bP,vi as bQ,gf as bR,te as bS,pf as bT,xa as bU,yf as bV,X as bW,Ki as bX,An as bY,Pi as bZ,Bi as b_,Ys as ba,eo as bb,Nu as bc,Lu as bd,Us as be,Hr as bf,ro as bg,$0 as bh,P0 as bi,ye as bj,B0 as bk,zs as bl,ue as bm,Ts as bn,Se as bo,Mu as bp,Ru as bq,Sr as br,ju as bs,Uu as bt,Ms as bu,Ws as bv,oi as bw,E0 as bx,os as by,lu as bz,ge as c,mc as c0,Bf as c1,F as c2,Bt as c3,gc as c4,_c as c5,lf as c6,Ce as c7,yc as c8,Sf as c9,wc as ca,zf as cb,ff as cc,rr as cd,mf as ce,Xi as cf,Af as cg,Pf as ch,ci as d,ai as e,ze as f,xn as g,dt as h,Bo as i,mo as j,V0 as k,ss as l,cs as m,Ze as n,ri as o,c0 as p,yn as q,cf as r,Qe as s,pn as t,ef as u,G0 as v,gt as w,un as x,pt as y,Nr as z};
@@ -1,4 +1,4 @@
1
- import{M as x,a5 as ae,R as c,o as de,j as C,r as L,l as y,m as d,u as _,k as ue,v as D,C as g,z as j,a1 as he,E as U,O as R,y as F,n as pe,S as O,L as z,T as me,a6 as fe,a7 as we}from"./index-_w3EEN07.js";import{c as w,n as l,r as u,U as ne}from"./index-8h8RbWPq.js";import{o as W}from"./if-defined-DIjTqkPc.js";import"./index-GHgycunK.js";import"./index-Bmd-CE-d.js";import{H as ee}from"./HelpersUtil-DjLIrIEy.js";import{C as V}from"./ConstantsUtil-B1B0nR9C.js";import"./index-BYUpM_QI.js";import"./index-C5bmKCwO.js";import"./index-EkVhGa1o.js";import"./index-Bsn7-UVq.js";import{S as be}from"./SwapController-B1Yvx6c2.js";import"./index-DHjdohiW.js";import"./thirdweb-BXzAJI2R.js";import"./NetworkUtil-BB0TxE9p.js";import"./index-BmAbXTYm.js";import"./ui-BZVBOcI0.js";import"./vendor-BpyywBCn.js";import"./index-BESy9fbZ.js";import"./index-BLZTaqiE.js";import"./index-DhuV0cPI.js";const se={isUnsupportedChainView(){return c.state.view==="UnsupportedChain"||c.state.view==="SwitchNetwork"&&c.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){x.shake();return}if(await ae.isSIWXCloseDisabled()){x.shake();return}(c.state.view==="DataCapture"||c.state.view==="DataCaptureOtpConfirm")&&de.disconnect(),x.close()}},ge=C`
1
+ import{M as x,a5 as ae,R as c,o as de,j as C,r as L,l as y,m as d,u as _,k as ue,v as D,C as g,z as j,a1 as he,E as U,O as R,y as F,n as pe,S as O,L as z,T as me,a6 as fe,a7 as we}from"./index-Bi48MbqU.js";import{c as w,n as l,r as u,U as ne}from"./index-lcHXKGfs.js";import{o as W}from"./if-defined-BxOadNJm.js";import"./index-D_yeGEdI.js";import"./index-CY2fVlN8.js";import{H as ee}from"./HelpersUtil-6Lu-mEjM.js";import{C as V}from"./ConstantsUtil-ImZ0xjtv.js";import"./index-FhCH3m31.js";import"./index-DyPl9RCU.js";import"./index-CpD8KEPR.js";import"./index-BluiLFL0.js";import{S as be}from"./SwapController-Bu9-iuVQ.js";import"./index--D7R8fAc.js";import"./thirdweb-Nalfv5nZ.js";import"./NetworkUtil-DIFMVwzE.js";import"./index-kplStoLl.js";import"./ui-Dbd5wrJc.js";import"./vendor-DhMc4a7D.js";import"./index-EUvmwore.js";import"./index-DVvvAvYo.js";import"./index-Bxs3GBuW.js";const se={isUnsupportedChainView(){return c.state.view==="UnsupportedChain"||c.state.view==="SwitchNetwork"&&c.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){x.shake();return}if(await ae.isSIWXCloseDisabled()){x.shake();return}(c.state.view==="DataCapture"||c.state.view==="DataCaptureOtpConfirm")&&de.disconnect(),x.close()}},ge=C`
2
2
  :host {
3
3
  display: block;
4
4
  border-radius: clamp(0px, ${({borderRadius:e})=>e[8]}, 44px);