@recoilpay/intent-widget 0.8.0 → 0.11.0
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.
- package/README.md +1 -1
- package/dist/chunks/{basic-JQCBG7LS.js → basic-4OHCLUSM.js} +1 -1
- package/dist/chunks/{ccip-X5ZVLWQM.js → ccip-VFOFXX6B.js} +1 -1
- package/dist/chunks/{chunk-SDAGVFL2.js → chunk-36NO7GTM.js} +1 -1
- package/dist/chunks/{chunk-Q6Q2PMYM.js → chunk-CP2OTBZN.js} +1 -1
- package/dist/chunks/chunk-N4BCBL7I.js +1 -0
- package/dist/chunks/{chunk-JJCC4FMA.js → chunk-PRSIP4YF.js} +3 -3
- package/dist/chunks/{chunk-EXRWW2FX.js → chunk-VSA5CXHO.js} +1 -1
- package/dist/chunks/chunk-XMNWSEXP.js +1 -0
- package/dist/chunks/{core-VHQUJDDT.js → core-BN7GIUW6.js} +2 -2
- package/dist/chunks/{index.es-Y53UMPM2.js → index.es-NEKTNINZ.js} +1 -1
- package/dist/chunks/{w3m-modal-64IAJQTC.js → w3m-modal-5IRLV6VG.js} +1 -1
- package/dist/recoilpay-intent-widget.js +42 -42
- package/package.json +3 -3
- package/dist/chunks/chunk-5CFV4JME.js +0 -1
- package/dist/chunks/chunk-FP3JV5NJ.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recoilpay/intent-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "RecoilPay intents for any website: one script tag, a <recoilpay-intent> element, wallet connection included.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"recoilpay",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"prepublishOnly": "npm run build"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@recoilpay/intent-core": "^0.
|
|
39
|
-
"@recoilpay/intent-react": "^0.
|
|
38
|
+
"@recoilpay/intent-core": "^0.11.0",
|
|
39
|
+
"@recoilpay/intent-react": "^0.11.0",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@types/react": "^18.3.31",
|
|
42
42
|
"@types/react-dom": "^18.3.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,c as T,i as b,j as k,l as y,x as S,z as C}from"./chunk-FP3JV5NJ.js";import{g as m,h,i as n,q as s,u as i,w as u}from"./chunk-JJCC4FMA.js";var N=e({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0});var F=e({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0});var v={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};var g={block:y({format(o){return{transactions:o.transactions?.map(t=>{if(typeof t=="string")return t;let p=b(t);return p.typeHex==="0x7e"&&(p.isSystemTx=t.isSystemTx,p.mint=t.mint?m(t.mint):void 0,p.sourceHash=t.sourceHash,p.type="deposit"),p}),stateRoot:o.stateRoot}}}),transaction:k({format(o){let r={};return o.type==="0x7e"&&(r.isSystemTx=o.isSystemTx,r.mint=o.mint?m(o.mint):void 0,r.sourceHash=o.sourceHash,r.type="deposit"),r}}),transactionReceipt:S({format(o){return{...o.depositNonce?{depositNonce:m(o.depositNonce)}:{},...o.depositReceiptVersion?{depositReceiptVersion:h(o.depositReceiptVersion)}:{},l1GasPrice:o.l1GasPrice?m(o.l1GasPrice):null,l1GasUsed:o.l1GasUsed?m(o.l1GasUsed):null,l1Fee:o.l1Fee?m(o.l1Fee):null,l1FeeScalar:o.l1FeeScalar?Number(o.l1FeeScalar):null}}})};function D(o,r){return P(o)?j(o):C(o,r)}var z={transaction:D};function j(o){A(o);let{sourceHash:r,data:t,from:p,gas:l,isSystemTx:E,mint:c,to:B,value:d}=o,M=[r,p,B??"0x",c?n(c):"0x",d?n(d):"0x",l?n(l):"0x",E?"0x1":"0x",t??"0x"];return u(["0x7e",T(M)])}function P(o){return o.type==="deposit"||typeof o.sourceHash<"u"}function A(o){let{from:r,to:t}=o;if(r&&!i(r))throw new s({address:r});if(t&&!i(t))throw new s({address:t})}var a={blockTime:2e3,contracts:v,formatters:g,serializers:z};var f=11155111,w=e({...a,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...a.contracts,disputeGameFactory:{[f]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[f]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[f]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[f]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:f}),H=e({...w,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}});var G=e({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0});var x=11155111,L=e({...a,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...a.contracts,disputeGameFactory:{[x]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[x]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[x]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[x]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:x});var q=e({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-amoy.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0});var U=e({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});export{N as a,F as b,w as c,G as d,L as e,q as f,U as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as wr}from"./chunk-DBYA227G.js";import{$ as ze,Aa as Er,B as cr,Ba as Ir,Ca as me,D as se,Da as Tr,E as R,F as mr,G as fr,H as ur,Ha as $,I as q,J as pr,Ka as fe,L as dr,M as lr,N as xr,Oa as vr,Pa as Pr,Qa as oe,S,Sa as Br,T as G,U as hr,V as yr,W as br,X as gr,Y as k,Z as X,_ as ae,a as Y,aa as Ue,b as F,ba as He,c as b,ca as Le,d as tr,da as Ge,e as or,ea as V,f as Z,fa as Q,g as Ae,ga as Ne,h as z,ha as De,i as U,ia as ee,j as B,ja as re,k as h,ka as ce,la as ke,m as Ce,ma as O,n as C,na as Me,oa as _e,p as Re,pa as qe,q as H,qa as Ve,r as nr,ra as Oe,s as Fe,sa as $e,ta as je,u as L,ua as Ke,va as We,w as _,wa as Je,x as ir,xa as Ye,y as sr,ya as Ze,z as ar,za as te}from"./chunk-JJCC4FMA.js";var ue=256,pe;function de(e=11){if(!pe||ue+e>256*2){pe="",ue=0;for(let r=0;r<256;r++)pe+=(256+Math.random()*256|0).toString(16).substring(1)}return pe.substring(ue,ue+++e)}function st(e){let{batch:r,chain:t,ccipRead:o,dataSuffix:n,key:i="base",name:s="Base Client",tokens:c,type:a="base"}=e,d=e.experimental_blockTag??(typeof t?.experimental_preconfirmationTime=="number"?"pending":void 0),f=t?.blockTime??12e3,l=Math.min(Math.max(Math.floor(f/2),500),4e3),u=e.pollingInterval??l,m=e.cacheTime??u,E=e.account?cr(e.account):void 0,{config:p,request:x,value:w}=e.transport({account:E,chain:t,pollingInterval:u}),v={...p,...w},y={account:E,batch:r,cacheTime:m,ccipRead:o,chain:t,dataSuffix:n,key:i,name:s,pollingInterval:u,request:x,tokens:c,transport:v,type:a,uid:de(),...d?{experimental_blockTag:d}:{}};function I(g){return T=>{let P=T(g);for(let N in y)delete P[N];let A={...g,...P};for(let N in P){let J=g[N],ie=P[N];Sr(J)&&Sr(ie)&&(A[N]={...J,...ie})}return Object.assign(A,{extend:I(A)})}}return Object.assign(y,{extend:I(y)})}function Sr(e){if(typeof e!="object"||e===null)return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}var le=new nr(8192);function Ar(e,{enabled:r=!0,id:t}){if(!r||!t)return e();if(le.get(t))return le.get(t);let o=e().finally(()=>le.delete(t));return le.set(t,o),o}async function xe(e,{signal:r}={}){return new Promise((t,o)=>{if(r?.aborted){o(S(r));return}let n=()=>r?.removeEventListener("abort",s),i=setTimeout(()=>{n(),t()},e),s=()=>{clearTimeout(i),n(),o(S(r))};r?.addEventListener("abort",s,{once:!0})})}function Cr(e,{delay:r=100,retryCount:t=2,shouldRetry:o=()=>!0,signal:n}={}){return new Promise((i,s)=>{let c=async({count:a=0}={})=>{if(n?.aborted){s(S(n));return}let d=async({error:f})=>{let l=typeof r=="function"?r({count:a,error:f}):r;if(l)try{await xe(l,{signal:n})}catch(u){s(u);return}return c({count:a+1})};try{let f=await e();i(f)}catch(f){if(n?.aborted){s(S(n));return}if(G(f)){s(f);return}if(a<t&&await o({count:a,error:f}))return d({error:f});s(f)}};c().catch(s)})}function Rr(e,r={}){return async(t,o={})=>{let{dedupe:n=!1,methods:i,retryDelay:s=150,retryCount:c=3,signal:a,uid:d}={...r,...o},{method:f}=t;if(i?.exclude?.includes(f))throw new re(new Error("method not supported"),{method:f});if(i?.include&&!i.include.includes(f))throw new re(new Error("method not supported"),{method:f});if(a?.aborted)throw S(a);let l=n?ct(`${d}.${R(t)}`):void 0;return Ar(()=>Cr(async()=>{try{return await e(t,a?{signal:a}:void 0)}catch(u){if(a?.aborted)throw S(a);if(G(u))throw u;let m=u;switch(m.code){case Ue.code:throw new Ue(m);case He.code:throw new He(m);case Le.code:throw new Le(m,{method:t.method});case Ge.code:throw new Ge(m);case V.code:throw new V(m);case Q.code:throw new Q(m);case Ne.code:throw new Ne(m);case De.code:throw new De(m);case ee.code:throw new ee(m);case re.code:throw new re(m,{method:t.method});case ce.code:throw new ce(m);case ke.code:throw new ke(m);case O.code:throw new O(m);case Me.code:throw new Me(m);case _e.code:throw new _e(m);case qe.code:throw new qe(m);case Ve.code:throw new Ve(m);case Oe.code:throw new Oe(m);case $e.code:throw new $e(m);case je.code:throw new je(m);case Ke.code:throw new Ke(m);case We.code:throw new We(m);case Je.code:throw new Je(m);case Ye.code:throw new Ye(m);case Ze.code:throw new Ze(m);case 5e3:throw new O(m);case te.code:throw new te(m);default:throw u instanceof b?u:new Er(m)}}},{delay:({count:u,error:m})=>{if(m&&m instanceof k){let E=m?.headers?.get("Retry-After");if(E?.match(/\d/))return Number.parseInt(E,10)*1e3}return~~(1<<u)*s},retryCount:c,signal:a,shouldRetry:({error:u})=>at(u)}),{enabled:n,id:l})}}function at(e){return G(e)?!1:"code"in e&&typeof e.code=="number"?e.code===-1||e.code===ce.code||e.code===V.code||e.code===429||e.code===-32007:e instanceof k&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function ct(e,r=0){let t=3735928559^r,o=1103547991^r;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);t=Math.imul(t^i,2654435761),o=Math.imul(o^i,1597334677)}return t=Math.imul(t^t>>>16,2246822507),t^=Math.imul(o^o>>>16,3266489909),o=Math.imul(o^o>>>16,2246822507),o^=Math.imul(t^t>>>16,3266489909),(4294967296*(2097151&o)+(t>>>0)).toString(36)}function j({key:e,methods:r,name:t,request:o,retryCount:n=3,retryDelay:i=150,timeout:s,type:c},a){let d=de();return{config:{key:e,methods:r,name:t,request:o,retryCount:n,retryDelay:i,timeout:s,type:c},request:Rr(o,{methods:r,retryCount:n,retryDelay:i,uid:d}),value:a}}function mt(e,r={}){let{key:t="custom",methods:o,name:n="Custom Provider",retryDelay:i}=r;return({retryCount:s})=>j({key:t,methods:o,name:n,request:e.request.bind(e),retryCount:r.retryCount??s,retryDelay:i,type:"custom"})}function ft(e,r={}){let{key:t="fallback",name:o="Fallback",rank:n=!1,shouldThrow:i=Fr,retryCount:s,retryDelay:c}=r;return(({chain:a,pollingInterval:d=4e3,timeout:f,...l})=>{let u=e,m=()=>{},E=j({key:t,name:o,async request({method:p,params:x}){let w,v=async(y=0)=>{let I=u[y]({...l,chain:a,retryCount:0,timeout:f});try{let g=await I.request({method:p,params:x});return m({method:p,params:x,response:g,transport:I,status:"success"}),g}catch(g){if(m({error:g,method:p,params:x,transport:I,status:"error"}),i(g)||y===u.length-1||(w??(w=u.slice(y+1).some(T=>{let{include:P,exclude:A}=T({chain:a}).config.methods||{};return P?P.includes(p):A?!A.includes(p):!0})),!w))throw g;return v(y+1)}};return v()},retryCount:s,retryDelay:c,type:"fallback"},{onResponse:p=>m=p,transports:u.map(p=>p({chain:a,retryCount:0}))});if(n){let p=typeof n=="object"?n:{};ut({chain:a,interval:p.interval??d,onTransports:x=>u=x,ping:p.ping,sampleCount:p.sampleCount,timeout:p.timeout,transports:u,weights:p.weights})}return E})}function Fr(e){return!!("code"in e&&typeof e.code=="number"&&(e.code===ee.code||e.code===O.code||e.code===te.code||Ir.nodeMessage.test(e.message)||e.code===5e3))}function ut({chain:e,interval:r=4e3,onTransports:t,ping:o,sampleCount:n=10,timeout:i=1e3,transports:s,weights:c={}}){let{stability:a=.7,latency:d=.3}=c,f=[],l=async()=>{let u=await Promise.all(s.map(async p=>{let x=p({chain:e,retryCount:0,timeout:i}),w=Date.now(),v,y;try{await(o?o({transport:x}):x.request({method:"net_listening"})),y=1}catch{y=0}finally{v=Date.now()}return{latency:v-w,success:y}}));f.push(u),f.length>n&&f.shift();let m=Math.max(...f.map(p=>Math.max(...p.map(({latency:x})=>x)))),E=s.map((p,x)=>{let w=f.map(T=>T[x].latency),y=1-w.reduce((T,P)=>T+P,0)/w.length/m,I=f.map(T=>T[x].success),g=I.reduce((T,P)=>T+P,0)/I.length;return g===0?[0,x]:[d*y+a*g,x]}).sort((p,x)=>x[0]-p[0]);t(E.map(([,p])=>s[p])),await xe(r),l()};l()}var he=class extends b{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}};function zr(e,{errorInstance:r=new Error("timed out"),timeout:t,signal:o}){return new Promise((n,i)=>{(async()=>{let s,c=new AbortController;try{t>0&&(s=setTimeout(()=>{o?c.abort():i(r)},t)),n(await e({signal:c?.signal||null}))}catch(a){if(c?.signal.aborted&&G(a)){i(r);return}i(a)}finally{clearTimeout(s)}})()})}function pt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var Xe=pt();var dt=10485760;function Ur(e,r={}){let{url:t,headers:o}=xt(e);return{async request(n){let{body:i,fetchFn:s=r.fetchFn??fetch,maxResponseBodySize:c=r.maxResponseBodySize??dt,onRequest:a=r.onRequest,onResponse:d=r.onResponse,timeout:f=r.timeout??1e4}=n,l={...r.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:m,signal:E}=l;try{let p=await zr(async({signal:v})=>{let y={...l,body:Array.isArray(i)?R(i.map(P=>({jsonrpc:"2.0",id:P.id??Xe.take(),...P}))):R({jsonrpc:"2.0",id:i.id??Xe.take(),...i}),headers:{...o,"Content-Type":"application/json",...u},method:m||"POST",signal:E||(f>0?v:null)},I=new Request(t,y),g=await a?.(I,y)??{...y,url:t};return await s(g.url??t,g)},{errorInstance:new ze({body:i,url:t}),timeout:f,signal:!0});d&&await d(p);let x,w=await lt(p,{maxResponseBodySize:c});if(p.headers.get("Content-Type")?.startsWith("application/json"))x=JSON.parse(w);else{x=w;try{x=JSON.parse(x||"{}")}catch(v){if(p.ok)throw v;x={error:x}}}if(!p.ok){if(typeof x.error?.code=="number"&&typeof x.error?.message=="string")return x;throw new k({body:i,details:R(x.error)||p.statusText,headers:p.headers,status:p.status,url:t})}return x}catch(p){throw E?.aborted?S(E):G(p)||p instanceof k||p instanceof X||p instanceof ze?p:new k({body:i,cause:p,url:t})}}}}async function lt(e,{maxResponseBodySize:r}){if(r===!1)return e.text();let t=e.headers.get("Content-Length");if(t){let c=Number(t);if(c>r)throw new X({maxSize:r,size:c})}if(!e.body){let c=await e.text(),a=new TextEncoder().encode(c).length;if(a>r)throw new X({maxSize:r,size:a});return c}let o=e.body.getReader(),n=new TextDecoder,i="",s=0;try{for(;;){let{done:c,value:a}=await o.read();if(c)break;if(s+=a.byteLength,s>r)throw await o.cancel(),new X({maxSize:r,size:s});i+=n.decode(a,{stream:!0})}return i+=n.decode(),i}finally{o.releaseLock()}}function xt(e){try{let r=new URL(e),t=(()=>{if(r.username){let o=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;return r.username="",r.password="",{url:r.toString(),headers:{Authorization:`Basic ${btoa(o)}`}}}})();return{url:r.toString(),...t}}catch{return{url:e}}}var ht=0,Hr=new WeakMap;function yt(e){if(!e)return"default";let r=Hr.get(e);if(r!==void 0)return r;let t=ht++;return Hr.set(e,t),t}function bt(e,r={}){let{batch:t,fetchFn:o,fetchOptions:n,key:i="http",maxResponseBodySize:s,methods:c,name:a="HTTP JSON-RPC",onFetchRequest:d,onFetchResponse:f,retryDelay:l,raw:u}=r;return({chain:m,retryCount:E,timeout:p})=>{let{batchSize:x=1e3,wait:w=0}=typeof t=="object"?t:{},v=r.retryCount??E,y=p??r.timeout??1e4,I=e||m?.rpcUrls.default.http[0];if(!I)throw new he;let g=Ur(I,{fetchFn:o,fetchOptions:n,maxResponseBodySize:s,onRequest:d,onResponse:f,timeout:y});return j({key:i,methods:c,name:a,async request({method:T,params:P},A){let N={method:T,params:P},J=A?.signal?{signal:A.signal}:void 0,{schedule:ie}=Br({id:`${I}.${yt(A?.signal)}`,wait:w,shouldSplitBatch(D){return D.length>x},fn:D=>g.request({body:D,fetchOptions:J}),sort:(D,it)=>D.id-it.id}),nt=async D=>t?ie(D):[await g.request({body:D,fetchOptions:J})],[{error:Se,result:rr}]=await nt(N);if(u)return{error:Se,result:rr};if(Se)throw new ae({body:N,error:Se,url:I});return rr},retryCount:v,retryDelay:l,timeout:y,type:"http"},{fetchOptions:n,url:I})}}var gt=3;function Do(e,{abi:r,address:t,args:o,docsPath:n,functionName:i,sender:s}){let c=e instanceof gr?e:e instanceof b?e.walk(E=>"data"in E)||e.walk():{},{code:a,data:d,details:f,message:l,shortMessage:u}=c,m=e instanceof tr?new br({functionName:i,cause:e}):[gt,V.code].includes(a)&&(d||f||l||u)||a===Q.code&&f==="execution reverted"&&d?new yr({abi:r,data:typeof d=="object"?d.data:d,functionName:i,message:c instanceof ae?f:u??l,cause:e}):e;return new hr(m,{abi:r,args:o,contractAddress:t,docsPath:n,functionName:i,sender:s})}function Lr(e){let r=Re(`0x${e.substring(4)}`).substring(26);return Fe(`0x${r}`)}async function Nr({hash:e,signature:r}){let t=Y(e)?e:U(e),{secp256k1:o}=await import("./secp256k1-SQ4MJKUP.js");return`0x${(()=>{if(typeof r=="object"&&"r"in r&&"s"in r){let{r:d,s:f,v:l,yParity:u}=r,m=Number(u??l),E=Gr(m);return new o.Signature(Ae(d),Ae(f)).addRecoveryBit(E)}let s=Y(r)?r:U(r);if(F(s)!==65)throw new Error("invalid signature length");let c=z(`0x${s.slice(130)}`),a=Gr(c);return o.Signature.fromCompact(s.substring(2,130)).addRecoveryBit(a)})().recoverPublicKey(t.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 Yo({hash:e,signature:r}){return Lr(await Nr({hash:e,signature:r}))}function M(e,r="hex"){let t=Dr(e),o=se(new Uint8Array(t.length));return t.encode(o),r==="hex"?B(o.bytes):o.bytes}function Dr(e){return Array.isArray(e)?Et(e.map(r=>Dr(r))):wt(e)}function Et(e){let r=e.reduce((n,i)=>n+i.length,0),t=kr(r);return{length:r<=55?1+r:1+t+r,encode(n){r<=55?n.pushByte(192+r):(n.pushByte(247+t),t===1?n.pushUint8(r):t===2?n.pushUint16(r):t===3?n.pushUint24(r):n.pushUint32(r));for(let{encode:i}of e)i(n)}}}function wt(e){let r=typeof e=="string"?C(e):e,t=kr(r.length);return{length:r.length===1&&r[0]<128?1:r.length<=55?1+r.length:1+t+r.length,encode(n){r.length===1&&r[0]<128?n.pushBytes(r):r.length<=55?(n.pushByte(128+r.length),n.pushBytes(r)):(n.pushByte(183+t),t===1?n.pushUint8(r.length):t===2?n.pushUint16(r.length):t===3?n.pushUint24(r.length):n.pushUint32(r.length),n.pushBytes(r))}}}function kr(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 b("Length is too large.")}var Mr=class extends b{constructor(r,{account:t,docsPath:o,chain:n,data:i,gas:s,gasPrice:c,maxFeePerGas:a,maxPriorityFeePerGas:d,nonce:f,to:l,value:u}){let m=pr({from:t?.address,to:l,value:typeof u<"u"&&`${ur(u)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:typeof c<"u"&&`${q(c)} gwei`,maxFeePerGas:typeof a<"u"&&`${q(a)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${q(d)} gwei`,nonce:f});super(r.shortMessage,{cause:r,docsPath:o,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=r}};var _r=class extends b{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}},qr=class extends b{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}},Vr=class extends b{constructor({maxPriorityFeePerGas:r}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${q(r)} gwei).`,{name:"MaxFeePerGasTooLowError"})}};var Or=class extends b{constructor({blockHash:r,blockNumber:t}){let o="Block";r&&(o=`Block at hash "${r}"`),t&&(o=`Block at number "${t}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}};var Qe={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function er(e,r){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?z(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?z(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Qe[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&&(t.authorizationList=It(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}var hn=$("transaction",er);function It(e){return e.map(r=>({address:r.address,chainId:Number(r.chainId),nonce:Number(r.nonce),r:r.r,s:r.s,yParity:Number(r.yParity)}))}function Tt(e,r){let t=(e.transactions??[]).map(o=>typeof o=="string"?o:er(o));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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var En=$("block",Tt);function ye(e){let{kzg:r}=e,t=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(i=>C(i)):e.blobs,n=[];for(let i of o)n.push(Uint8Array.from(r.blobToKzgCommitment(i)));return t==="bytes"?n:n.map(i=>B(i))}function be(e){let{kzg:r}=e,t=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(s=>C(s)):e.blobs,n=typeof e.commitments[0]=="string"?e.commitments.map(s=>C(s)):e.commitments,i=[];for(let s=0;s<o.length;s++){let c=o[s],a=n[s];i.push(Uint8Array.from(r.computeBlobKzgProof(c,a)))}return t==="bytes"?i:i.map(s=>B(s))}var $r=wr;function jr(e,r){let t=r||"hex",o=$r(Y(e,{strict:!1})?Ce(e):e);return t==="bytes"?o:U(o)}function Kr(e){let{commitment:r,version:t=1}=e,o=e.to??(typeof r=="string"?"hex":"bytes"),n=jr(r,"bytes");return n.set([t],0),o==="bytes"?n:B(n)}function Wr(e){let{commitments:r,version:t}=e,o=e.to??(typeof r[0]=="string"?"hex":"bytes"),n=[];for(let i of r)n.push(Kr({commitment:i,to:o,version:t}));return n}var ge=class extends b{constructor({maxSize:r,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${r} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}},K=class extends b{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}},Ee=class extends b{constructor({hash:r,size:t}){super(`Versioned hash "${r}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}},we=class extends b{constructor({hash:r,version:t}){super(`Versioned hash "${r}" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}};function Jr(e){let r=e.to??(typeof e.data=="string"?"hex":"bytes"),t=typeof e.data=="string"?C(e.data):e.data,o=F(t);if(!o)throw new K;if(o>761855)throw new ge({maxSize:761855,size:o});let n=[],i=!0,s=0;for(;i;){let c=se(new Uint8Array(131072)),a=0;for(;a<4096;){let d=t.slice(s,s+31);if(c.pushByte(0),c.pushBytes(d),d.length<31){c.pushByte(128),i=!1;break}a++,s+=31}n.push(c)}return r==="bytes"?n.map(c=>c.bytes):n.map(c=>B(c.bytes))}function Yr(e){let{data:r,kzg:t,to:o}=e,n=e.blobs??Jr({data:r,to:o}),i=e.commitments??ye({blobs:n,kzg:t,to:o}),s=e.proofs??be({blobs:n,commitments:i,kzg:t,to:o}),c=[];for(let a=0;a<n.length;a++)c.push({blob:n[a],commitment:i[a],proof:s[a]});return c}function Zr(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 lr({transaction:e})}function Xr(e,{args:r,eventName:t}={}){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,...t?{args:r,eventName:t}:{}}}var Bt=new Map,St=new Map;function At(e){let r=(n,i)=>({clear:()=>i.delete(n),get:()=>i.get(n),set:s=>i.set(n,s)}),t=r(e,Bt),o=r(e,St);return{clear:()=>{t.clear(),o.clear()},promise:t,response:o}}async function ai(e,{cacheKey:r,cacheTime:t=Number.POSITIVE_INFINITY}){let o=At(r),n=o.response.get();if(n&&t>0&&Date.now()-n.created.getTime()<t)return n.data;let i=o.promise.get();i||(i=e(),o.promise.set(i));try{let s=await i;return o.response.set({created:new Date,data:s}),s}finally{o.promise.clear()}}function fi({chain:e,currentChainId:r}){if(!e)throw new Pr;if(r!==e.id)throw new vr({chain:e,currentChainId:r})}var Ct={"0x0":"reverted","0x1":"success"};function Rt(e,r){let t={...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(o=>Xr(o)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?z(e.transactionIndex):null,status:e.status?Ct[e.status]:null,type:e.type?Qe[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}var hi=$("transactionReceipt",Rt);function Qr(e){let{authorizationList:r}=e;if(r)for(let t of r){let{chainId:o}=t,n=t.address;if(!L(n))throw new H({address:n});if(o<0)throw new oe({chainId:o})}Ie(e)}function et(e){let{blobVersionedHashes:r}=e;if(r){if(r.length===0)throw new K;for(let t of r){let o=F(t),n=z(ir(t,0,1));if(o!==32)throw new Ee({hash:t,size:o});if(n!==1)throw new we({hash:t,version:n})}}Ie(e)}function Ie(e){let{chainId:r,maxPriorityFeePerGas:t,maxFeePerGas:o,to:n}=e;if(r<=0)throw new oe({chainId:r});if(n&&!L(n))throw new H({address:n});if(o&&o>fe)throw new me({maxFeePerGas:o});if(t&&o&&t>o)throw new Tr({maxFeePerGas:o,maxPriorityFeePerGas:t})}function rt(e){let{chainId:r,maxPriorityFeePerGas:t,gasPrice:o,maxFeePerGas:n,to:i}=e;if(r<=0)throw new oe({chainId:r});if(i&&!L(i))throw new H({address:i});if(t||n)throw new b("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>fe)throw new me({maxFeePerGas:o})}function tt(e){let{chainId:r,maxPriorityFeePerGas:t,gasPrice:o,maxFeePerGas:n,to:i}=e;if(i&&!L(i))throw new H({address:i});if(typeof r<"u"&&r<=0)throw new oe({chainId:r});if(t||n)throw new b("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>fe)throw new me({maxFeePerGas:o})}function ne(e){if(!e||e.length===0)return[];let r=[];for(let t=0;t<e.length;t++){let{address:o,storageKeys:n}=e[t];for(let i=0;i<n.length;i++)if(n[i].length-2!==64)throw new xr({storageKey:n[i]});if(!L(o,{strict:!1}))throw new H({address:o});r.push([o,n])}return r}function ji(e,r){let t=Zr(e);return t==="eip1559"?Ut(e,r):t==="eip2930"?Ht(e,r):t==="eip4844"?zt(e,r):t==="eip7702"?Ft(e,r):Lt(e,r)}function Ft(e,r){let{authorizationList:t,chainId:o,gas:n,nonce:i,to:s,value:c,maxFeePerGas:a,maxPriorityFeePerGas:d,accessList:f,data:l}=e;Qr(e);let u=ne(f),m=ot(t);return _(["0x04",M([h(o),i?h(i):"0x",d?h(d):"0x",a?h(a):"0x",n?h(n):"0x",s??"0x",c?h(c):"0x",l??"0x",u,m,...W(e,r)])])}function zt(e,r){let{chainId:t,gas:o,nonce:n,to:i,value:s,maxFeePerBlobGas:c,maxFeePerGas:a,maxPriorityFeePerGas:d,accessList:f,data:l}=e;et(e);let u=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(typeof u>"u"||typeof m>"u")){let y=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(T=>B(T)),I=e.kzg,g=ye({blobs:y,kzg:I});if(typeof u>"u"&&(u=Wr({commitments:g})),typeof m>"u"){let T=be({blobs:y,commitments:g,kzg:I});m=Yr({blobs:y,commitments:g,proofs:T})}}let E=ne(f),p=[h(t),n?h(n):"0x",d?h(d):"0x",a?h(a):"0x",o?h(o):"0x",i??"0x",s?h(s):"0x",l??"0x",E,c?h(c):"0x",u??[],...W(e,r)],x=[],w=[],v=[];if(m)for(let y=0;y<m.length;y++){let{blob:I,commitment:g,proof:T}=m[y];x.push(I),w.push(g),v.push(T)}return _(["0x03",m?M([p,x,w,v]):M(p)])}function Ut(e,r){let{chainId:t,gas:o,nonce:n,to:i,value:s,maxFeePerGas:c,maxPriorityFeePerGas:a,accessList:d,data:f}=e;Ie(e);let l=ne(d),u=[h(t),n?h(n):"0x",a?h(a):"0x",c?h(c):"0x",o?h(o):"0x",i??"0x",s?h(s):"0x",f??"0x",l,...W(e,r)];return _(["0x02",M(u)])}function Ht(e,r){let{chainId:t,gas:o,data:n,nonce:i,to:s,value:c,accessList:a,gasPrice:d}=e;rt(e);let f=ne(a),l=[h(t),i?h(i):"0x",d?h(d):"0x",o?h(o):"0x",s??"0x",c?h(c):"0x",n??"0x",f,...W(e,r)];return _(["0x01",M(l)])}function Lt(e,r){let{chainId:t=0,gas:o,data:n,nonce:i,to:s,value:c,gasPrice:a}=e;tt(e);let d=[i?h(i):"0x",a?h(a):"0x",o?h(o):"0x",s??"0x",c?h(c):"0x",n??"0x"];if(r){let f=(()=>{if(r.v>=35n)return(r.v-35n)/2n>0?r.v:27n+(r.v===35n?0n:1n);if(t>0)return BigInt(t*2)+BigInt(35n+r.v-27n);let m=27n+(r.v===27n?0n:1n);if(r.v!==m)throw new dr({v:r.v});return m})(),l=Z(r.r),u=Z(r.s);d=[...d,h(f),l==="0x00"?"0x":l,u==="0x00"?"0x":u]}else t>0&&(d=[...d,h(t),"0x","0x"]);return M(d)}function W(e,r){let t=r??e,{v:o,yParity:n}=t;if(typeof t.r>"u")return[];if(typeof t.s>"u")return[];if(typeof o>"u"&&typeof n>"u")return[];let i=Z(t.r),s=Z(t.s);return[typeof n=="number"?n?h(1):"0x":o===0n?"0x":o===1n?h(1):o===27n?"0x":h(1),i==="0x00"?"0x":i,s==="0x00"?"0x":s]}function ot(e){if(!e||e.length===0)return[];let r=[];for(let t of e){let{chainId:o,nonce:n,...i}=t,s=t.address;r.push([o?U(o):"0x",s,n?U(n):"0x",...W({},i)])}return r}function Zi(e){let r={formatters:void 0,fees:void 0,serializers:void 0,...e};function t(o){return n=>{let i=typeof n=="function"?n(o):n,s={...o,...i};return Object.assign(s,{extend:t(s)})}}return Object.assign(r,{extend:t(r)})}var Te=class extends b{constructor({domain:r}){super(`Invalid domain "${R(r)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}},ve=class extends b{constructor({primaryType:r,types:t}){super(`Invalid primary type \`${r}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}},Pe=class extends b{constructor({type:r}){super(`Struct type "${r}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}},Be=class extends b{constructor({type:r}){let t=r.replace(/^(u?int)/,"$&256");super(`Type "${r}" is not a valid EIP-712 type.`,{metaMessages:[`Use "${t}" instead.`],name:"InvalidTypedDataTypeError"})}};function fs(e){let{domain:r,message:t,primaryType:o,types:n}=e,i=(a,d)=>{let f={...d};for(let l of a){let{name:u,type:m}=l;m==="address"&&(f[u]=f[u].toLowerCase())}return f},s=n.EIP712Domain?r?i(n.EIP712Domain,r):{}:{},c=(()=>{if(o!=="EIP712Domain")return i(n[o],t)})();return R({domain:s,message:c,primaryType:o,types:n})}function us(e){let{domain:r,message:t,primaryType:o,types:n}=e,i=(s,c)=>{for(let a of s){let{name:d,type:f}=a,l=c[d],u=f.replace(/(\[[0-9]*\])+$/,"");if(u==="int"||u==="uint")throw new Be({type:f});let m=f.match(ar);if(m&&(typeof l=="number"||typeof l=="bigint")){let[x,w,v]=m;h(l,{signed:w==="int",size:Number.parseInt(v,10)/8})}if(f==="address"&&typeof l=="string"&&!L(l))throw new H({address:l});let E=f.match(sr);if(E){let[x,w]=E;if(w&&F(l)!==Number.parseInt(w,10))throw new or({expectedSize:Number.parseInt(w,10),givenSize:F(l)})}let p=n[f];p&&(Gt(f),i(p,l))}};if(n.EIP712Domain&&r){if(typeof r!="object")throw new Te({domain:r});i(n.EIP712Domain,r)}if(o!=="EIP712Domain")if(n[o])i(n[o],t);else throw new ve({primaryType:o,types:n})}function ps({domain:e}){return[typeof e?.name=="string"&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},(typeof e?.chainId=="number"||typeof e?.chainId=="bigint")&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function Gt(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new Pe({type:e})}function Dt(e,r){return mr(e,r)}function kt(e,r){return fr(e,r)}export{Do as a,Yo as b,M as c,Mr as d,_r as e,qr as f,Vr as g,Or as h,er as i,hn as j,Tt as k,En as l,ye as m,be as n,$r as o,Wr as p,Yr as q,Zr as r,xe as s,ai as t,fi as u,Cr as v,Rt as w,hi as x,st as y,ji as z,Zi as A,fs as B,us as C,ps as D,Dt as E,kt as F,mt as G,ft as H,bt as I};
|