@spicenet-io/spiceflow-ui 4.19.2 → 4.19.3-inventory.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/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
(function(){if(typeof document==="undefined"||document.getElementById("spiceflow-styles"))return;var s=document.createElement("style");s.id="spiceflow-styles";s.textContent="@keyframes spiceflow-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{border-radius:4px;outline:2px solid currentColor;outline-offset:2px}@media (forced-colors:active){.spiceflow-focus-ring:focus-visible,[data-spiceflow-focus]:focus-visible{outline:2px solid Highlight}}.ibm-plex-mono-thin{font-weight:100}.ibm-plex-mono-extralight,.ibm-plex-mono-thin{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-extralight{font-weight:200}.ibm-plex-mono-light{font-weight:300}.ibm-plex-mono-light,.ibm-plex-mono-regular{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-regular{font-weight:400}.ibm-plex-mono-medium{font-weight:500}.ibm-plex-mono-medium,.ibm-plex-mono-semibold{font-family:IBM Plex Mono,monospace!important;font-style:normal}.ibm-plex-mono-semibold{font-weight:600}.ibm-plex-mono-bold{font-family:IBM Plex Mono,monospace!important;font-style:normal;font-weight:700}#privy-modal-content button{border-radius:6px;font-family:IBM Plex Mono,monospace!important;font-size:small;letter-spacing:-.5px;text-transform:uppercase}#privy-modal-content input{background:#fff;border-radius:6px;padding-top:5px!important}#privy-dialog-title{display:none!important;font-size:18px;padding-bottom:10px;padding-top:10px}.AppLogoContainer-sc-a206bd44-0{display:none}#privy-modal-content{background:var(--Neutral-0,#fafafa);border:6px solid var(--Neutral-1,#e9e9e9);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 330px 92px transparent,0 211px 84px rgba(0,0,0,.01),0 119px 71px rgba(0,0,0,.05),0 53px 53px rgba(0,0,0,.09),0 13px 29px rgba(0,0,0,.1);height:auto!important;padding-bottom:10px}.Subtitle-sc-ddbf22b4-4{font-size:12px;margin-top:-14px;opacity:.5}.StyledLink-sc-1c6127e5-0{background:none!important}.StyledLink-sc-c8577138-0,.login-method-button{font-family:IBM Plex Mono,monospace!important}.StyledLink-sc-c8577138-0{font-style:uppercase}#protected-by-privy{color:#000!important}";document.head.appendChild(s)})();
|
|
3
|
-
import{jsx as f,jsxs as R,Fragment as wn}from"react/jsx-runtime";import{g as bt,a as Ct,S as Be,b as ee,c as Ls,i as qs,d as qa,e as _t,f as ap,E as ip,C as zs,r as lp,R as cp,s as Un,h as dp,j as qe,k as Jr,l as Rl,m as Hs,u as Eo,n as Qs,o as ro,p as sn,P as up,q as Vs,B as Qt,t as tt,v as po,w as Uo,x as za,y as Fr,z as ur,A as Lo,D as Dl,F as fo,G as pp,H as $r,I as _r,J as Ha,K as es,L as fp,M as Ml,N as ts,O as Tr,Q as mp,T as ns,U as Qa,V as Va,W as Fo,X as js,Y as pr,Z as hp,_ as Gs,$ as gp,a0 as ja,a1 as wp,a2 as yp,a3 as Ga,a4 as bp,a5 as Nl,a6 as xp,a7 as vp,a8 as kp}from"./privy-Bg0j1Mjk.js";import{a9 as k0,ab as C0,ac as I0,ae as S0,ad as A0,aa as E0}from"./privy-Bg0j1Mjk.js";import Co,{useContext as an,useState as L,useMemo as ge,useEffect as ue,useCallback as se,useRef as j,useId as Pl,useLayoutEffect as To,memo as mo}from"react";import{isNativeToken as Fe,uniV3QuoterV2Abi as Cp,uniV3SwapRouterAbi as Wl,applySlippage as Ul,NATIVE_TOKEN_ADDRESS as Ll,getTokenByAddress as Xt,areEquivalent as Ip,getTokensForChain as fr,getEscrowContractAddress as Bo,getEscrowContract as os,ZERO_ADDRESS as jt,normalizeNativeTokenAddress as pt,getChainMeta as ql,getMainnetChains as Sp,getTestnetChains as Ap,TOKENS as zl,convertAmountBetweenDecimals as ho,hashChainBatches as Io,isSpicenetChainId as Oo,getAccountNonce as Ep,SPICE_COMBINED_FEE_RECIPIENT as Fp,SPICE_GAS_FEE_RECIPIENT as yn,SPICE_PLATFORM_FEE_RECIPIENT as Qn,hashConditionalExecutionPlan as Hl,SPICENET_NATIVE_CHAIN_ID as Ql,spicenetAbi as Ks,getEquivalentAddresses as Tp,getChainIdsByNetwork as Ys,getEquivalenceGroup as Bp,getTokenBySymbol as Vl,hashConditionalIntentAuthorization as Op,getConditionalIntentId as Rp,hashConditionalReadAuthorization as Dp,hashConditionalCancellation as Mp}from"@spicenet-io/spiceflow-core";import{ZERO_ADDRESS as T0,SPICENET_NATIVE_CHAIN_ID as B0,SPICE_COMBINED_FEE_RECIPIENT as O0,SPICE_GAS_FEE_RECIPIENT as R0,SPICE_PLATFORM_FEE_RECIPIENT as D0,SPICE_SOLVER_ADDRESS as M0,applySlippage as N0,buildUniV3SwapCalls as P0,getChainIdsByNetwork as W0,getEscrowContractAddress as U0,isNativeToken as L0,isSpicenetChainId as q0,normalizeNativeTokenAddress as z0,spicenetAbi as H0,spicenetAbi as Q0}from"@spicenet-io/spiceflow-core";import{useAccount as Ka,useDisconnect as Ya,useConnect as Np,useWalletClient as Pp,useSwitchChain as Wp}from"wagmi";import{encodeFunctionData as Et,parseAbi as go,concatHex as Up,encodePacked as Za,erc20Abi as lt,decodeFunctionData as Zn,encodeAbiParameters as qo,formatUnits as De,isAddress as Xn,getAddress as un,keccak256 as mr,parseUnits as Jn,decodeEventLog as Lp,createWalletClient as Xa,custom as Ja,toHex as jl,stringToHex as qp,bytesToHex as Gl}from"viem";import{readContract as Xo,getBalance as $a}from"viem/actions";import{useConnectWallet as Kl,usePrivy as Yl,useActiveWallet as zp}from"@privy-io/react-auth";import Zl,{createPortal as _a}from"react-dom";import"@tanstack/react-query";const Hp="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",Qp="spiceflow-ibm-plex-mono",Vp="spiceflow-preconnect-googleapis",jp="spiceflow-preconnect-gstatic";function ei(e,t){if(document.getElementById(e))return;const n=t();n.id=e,document.head.appendChild(n)}function Gp(){typeof document>"u"||(ei(Vp,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.googleapis.com",e}),ei(jp,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.gstatic.com",e.crossOrigin="",e}),ei(Qp,()=>{const e=document.createElement("link");return e.rel="stylesheet",e.href=Hp,e}))}const Kp={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",84532:"0x4200000000000000000000000000000000000006"},Xl=go(["function deposit() payable","function withdraw(uint256 wad)"]);function ti(e){return bt(e)?.wrappedNativeTokenAddress??Kp[e]}const ni=(e,t)=>({to:e,value:t,data:Et({abi:Xl,functionName:"deposit"})}),oi=(e,t)=>({to:e,value:0n,data:Et({abi:Xl,functionName:"withdraw",args:[t]})});function ri(e,t,n){const o=Fe(t),r=Fe(n);if(!o&&!r)return null;const s=ti(e);return s?{weth:s,wrapIn:o,unwrapOut:r}:null}function Jl(e,t,n,o){const r=ri(e,t,n);return!r||o<=0n?null:r.wrapIn&&!r.unwrapOut&&n.toLowerCase()===r.weth.toLowerCase()?[ni(r.weth,o)]:r.unwrapOut&&!r.wrapIn&&t.toLowerCase()===r.weth.toLowerCase()?[oi(r.weth,o)]:null}function Yp(e){return{...e,resolve:async(t,n,o,r)=>{const s=Jl(n,t.tokenIn,t.tokenOut,t.amountIn);if(s)return{venue:"native-wrap",amountOut:t.amountIn,amountOutMinimum:t.amountIn,calls:s};const a=await e.resolve(t,n,o,r);if(a)return a;const i=ri(n,t.tokenIn,t.tokenOut);if(!i)return null;const l=await e.resolve({...t,tokenIn:i.wrapIn?i.weth:t.tokenIn,tokenOut:i.unwrapOut?i.weth:t.tokenOut},n,o,r);return l?{...l,calls:[...i.wrapIn?[ni(i.weth,t.amountIn)]:[],...l.calls,...i.unwrapOut?[oi(i.weth,l.amountOutMinimum)]:[]]}:null}}}function Zp(e){return{...e,resolve:async(t,n,o)=>{const r=Jl(n,t.tokenIn,t.tokenOut,t.amountOut);if(r)return{venue:"native-wrap",amountIn:t.amountOut,amountInMax:t.amountOut,amountOut:t.amountOut,calls:r};const s=await e.resolve(t,n,o);if(s)return s;const a=ri(n,t.tokenIn,t.tokenOut);if(!a)return null;const i=await e.resolve({...t,tokenIn:a.wrapIn?a.weth:t.tokenIn,tokenOut:a.unwrapOut?a.weth:t.tokenOut},n,o);return i?{...i,calls:[...a.wrapIn?[ni(a.weth,i.amountInMax)]:[],...i.calls,...a.unwrapOut?[oi(a.weth,i.amountOut)]:[]]}:null}}}const $l=[100,500,3e3,1e4];function Zs(e,t,n,o,r){const s=[];for(const a of n){const i=typeof a=="object"&&!Array.isArray(a)?a:void 0,l=i?i.tokens:Array.isArray(a)?a:[a];if(!l.length||l.length>2)throw new Error("A v3 route must have one or two intermediate tokens");const c=[e,...l,t];if(i&&(i.feeTiers.length!==c.length-1||i.feeTiers.some(d=>!d.length)))throw new Error("A v3 route needs fee tiers for every pool");if(new Set(c.map(d=>d.toLowerCase())).size!==c.length)continue;const u=(d,p)=>{if(d===c.length){s.push(r==="in"?p:_l(p));return}for(const w of i?.feeTiers[d-1]??o)u(d+1,Up([p,Za(["uint24","address"],[w,c[d]])]))};u(1,c[0])}return[...new Set(s)]}function _l(e){const t=e.slice(2),n=[];for(let o=0;o<t.length;){const r=n.length%2===0?40:6;n.push(t.slice(o,o+r)),o+=r}return`0x${n.reverse().join("")}`}const Xp=go(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),Jp=go(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),$p=1800;function ec(e){const{config:t,route:n,tokenIn:o,tokenOut:r,recipient:s,amountOut:a}=e,i=e.amountInMaximum,l=e.routerHasDeadline?Jp:Xp,c=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+$p)}:{},u=n.path?Et({abi:l,functionName:"exactOutput",args:[{path:n.path,recipient:s,...c,amountOut:a,amountInMaximum:i}]}):Et({abi:l,functionName:"exactOutputSingle",args:[{tokenIn:o,tokenOut:r,fee:n.fee,recipient:s,...c,amountOut:a,amountInMaximum:i,sqrtPriceLimitX96:0n}]});return{to:t.swapRouter,value:0n,data:u}}const _p=go(["function quoteExactInput(bytes path, uint256 amountIn) returns (uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)","function quoteExactOutput(bytes path, uint256 amountOut) returns (uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)"]);async function rs(e,t,n,o,r){const s=Ct(e),{result:a}=await s.simulateContract({address:t.quoterV2,abi:_p,functionName:r==="in"?"quoteExactInput":"quoteExactOutput",args:[n,o]}),[i,,,l]=a;if(i<=0n)throw new Error("No liquidity along this path.");return{amount:i,gasEstimate:l}}async function ef(e){const{tokenIn:t,tokenOut:n,amountIn:o,fee:r,chainId:s,config:a}=e;if(o<=0n)throw new Error("amountIn must be greater than 0");const i=(await Ct(s).simulateContract({address:a.quoterV2,abi:Cp,functionName:"quoteExactInputSingle",args:[{tokenIn:t,tokenOut:n,amountIn:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(i[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 output.");return{amountOut:i[0],sqrtPriceX96After:i[1],gasEstimate:i[3]}}async function tc(e){const t=e.feeTiers??$l,n=Zs(e.tokenIn,e.tokenOut,e.hubs??[],t,"in"),o=await Promise.allSettled([...t.map(async s=>({...await ef({...e,fee:s}),fee:s})),...n.map(async s=>{const a=await rs(e.chainId,e.config,s,e.amountIn,"in");return{amountOut:a.amount,sqrtPriceX96After:0n,gasEstimate:a.gasEstimate,fee:0,path:s}})]);let r=null;for(const s of o)s.status==="fulfilled"&&(!r||s.value.amountOut>r.amountOut)&&(r=s.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}const tf=[{inputs:[{components:[{name:"tokenIn",type:"address"},{name:"tokenOut",type:"address"},{name:"amount",type:"uint256"},{name:"fee",type:"uint24"},{name:"sqrtPriceLimitX96",type:"uint160"}],name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{name:"amountIn",type:"uint256"},{name:"sqrtPriceX96After",type:"uint160"},{name:"initializedTicksCrossed",type:"uint32"},{name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function nf(e){const{tokenIn:t,tokenOut:n,amountOut:o,fee:r,chainId:s,config:a}=e;if(o<=0n)throw new Error("amountOut must be greater than 0");const i=(await Ct(s).simulateContract({address:a.quoterV2,abi:tf,functionName:"quoteExactOutputSingle",args:[{tokenIn:t,tokenOut:n,amount:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(i[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 input.");return{amountIn:i[0],sqrtPriceX96After:i[1],gasEstimate:i[3]}}async function nc(e){const t=e.feeTiers??$l,n=Zs(e.tokenIn,e.tokenOut,e.hubs??[],t,"out"),o=await Promise.allSettled([...t.map(async s=>({...await nf({...e,fee:s}),fee:s})),...n.map(async s=>{const a=await rs(e.chainId,e.config,s,e.amountOut,"out");return{amountIn:a.amount,sqrtPriceX96After:0n,gasEstimate:a.gasEstimate,fee:0,path:s}})]);let r=null;for(const s of o)s.status==="fulfilled"&&(!r||s.value.amountIn<r.amountIn)&&(r=s.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}function of(e){return e.type==="swap"}const ss=.02,rf=[1,8453,42161,10,137,43114,56],sf="https://api.1inch.dev/swap/v6.0";function si(e,t){return Ul(e,t)}function af(e){const t=e?.baseUrl??sf;return{name:"1inch",chainIds:e?.chainIds??rf,resolve:async(n,o,r)=>{const s=n.maxSlippage??ss,a=s*100,i=Fe(n.tokenIn)?Ll:n.tokenIn,l=Fe(n.tokenOut)?Ll:n.tokenOut,c=Fe(n.tokenIn);try{const u=new URL(`${t}/${o}/swap`);u.searchParams.set("src",i),u.searchParams.set("dst",l),u.searchParams.set("amount",n.amountIn.toString()),u.searchParams.set("from",r),u.searchParams.set("slippage",a.toString()),u.searchParams.set("disableEstimate","true"),u.searchParams.set("allowPartialFill","false");const d={Accept:"application/json"};e?.apiKey&&(d.Authorization=`Bearer ${e.apiKey}`);const p=await fetch(u.toString(),{headers:d});if(!p.ok)throw new Be("VENUE_API_ERROR",`[1inchVenue] API returned ${p.status} for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:`HTTP ${p.status}`});const w=await p.json();if(!w.dstAmount||!w.tx)return console.warn(`[1inchVenue] No route data for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const m=BigInt(w.dstAmount);if(m<=0n)return console.warn(`[1inchVenue] Zero output for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const g=si(m,s),h=[];return w.tx.to&&!c&&h.push({to:n.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[w.tx.to,n.amountIn]})}),h.push({to:w.tx.to,value:BigInt(w.tx.value||"0"),data:w.tx.data}),{venue:"1inch",amountOut:m,amountOutMinimum:g,calls:h}}catch(u){if(u instanceof Be)throw u;const d=u instanceof Error?u.message:String(u);throw new Be("VENUE_API_ERROR",`[1inchVenue] Exception for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}: ${d}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:d})}}}}const oc=[4114,5115],ai={name:"Satsuma",swapRouter:"0x565eD3D57fe40f78A46f348C220121AE093c3cF8",quoterV2:"0x428f20dd8926Eabe19653815Ed0BE7D6c36f8425",feeTiers:[3e3]},rc={name:"Uniswap v3",swapRouter:"0x2626664c2603336E57B271c5C0b26F421741e481",quoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",chainIds:[8453],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},sc={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[1],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},ac={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[42161],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"]},lf={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[137],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"]},cf={name:"Uniswap v3",swapRouter:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",quoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",chainIds:[56],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"]},df={name:"Uniswap v3",swapRouter:"0xfe31f71c1b106eac32f1a19239c9a9a72ddfb900",quoterV2:"0x661e93cca42afacb172121ef892830ca3b70f08d",chainIds:[143],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A","0x754704Bc059F8C67012fEd69BC8A327a5aafb603"]},ic={name:"Uniswap v3",swapRouter:"0xcaf681a66d020601342297493863e78c959e5cb2",quoterV2:"0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},lc={name:"SushiSwap",swapRouter:"0x1e406484F1F204b23cE84B9901C0171a738fd406",quoterV2:"0x3E290e5E01818002A0b672148BdC7514D861C7B3",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"],routerHasDeadline:!0},cc=go(["function exactInput((bytes path, address recipient, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),dc=go(["function exactInputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountOut)","function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),uf=go(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),pf=go(["function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),ii=1800,uc=[1,50,100,200,2e3],Xs={name:"Aerodrome",swapRouter:"0xcbBb8035cAc7D4B3Ca7aBb74cF7BdF900215Ce0D",quoterV2:"0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]};function as(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??uc;return{name:t,chainIds:n,resolve:async(r,s,a)=>{if(Fe(r.tokenIn)||Fe(r.tokenOut))return null;const i=r.maxSlippage??ss,l=[...o.map(h=>Za(["address","uint24","address"],[r.tokenIn,h,r.tokenOut])),...Zs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"in")],c={quoterV2:e.quoterV2},u=await Promise.allSettled(l.map(async h=>({path:h,amountOut:(await rs(s,c,h,r.amountIn,"in")).amount})));let d=null;for(const h of u)h.status==="fulfilled"&&(!d||h.value.amountOut>d.amountOut)&&(d=h.value);if(!d)return console.warn(`[AerodromeVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${s}.`),null;const p=si(d.amountOut,i),w=e.deadline??BigInt(Math.floor(Date.now()/1e3)+ii),m=Et({abi:uf,functionName:"exactInput",args:[{path:d.path,recipient:a,deadline:w,amountIn:r.amountIn,amountOutMinimum:p}]}),g=[{to:r.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[e.swapRouter,r.amountIn]})},{to:e.swapRouter,value:0n,data:m}];return{venue:t,amountOut:d.amountOut,amountOutMinimum:p,calls:g}}}}function pc(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??uc;return{name:t,chainIds:n,resolve:async(r,s,a)=>{if(Fe(r.tokenIn)||Fe(r.tokenOut))return null;const i=r.maxSlippage??ss,l=[...o.map(g=>Za(["address","uint24","address"],[r.tokenOut,g,r.tokenIn])),...Zs(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"out")],c={quoterV2:e.quoterV2},u=await Promise.allSettled(l.map(async g=>({path:g,amountIn:(await rs(s,c,g,r.amountOut,"out")).amount})));let d=null;for(const g of u)g.status==="fulfilled"&&(!d||g.value.amountIn<d.amountIn)&&(d=g.value);if(!d)return console.warn(`[AerodromeExactOutputVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${s}.`),null;const p=BigInt(Math.round(i*1e4)),w=d.amountIn+d.amountIn*p/10000n,m=e.deadline??BigInt(Math.floor(Date.now()/1e3)+ii);return{venue:t,amountIn:d.amountIn,amountInMax:w,amountOut:r.amountOut,calls:[{to:e.swapRouter,value:0n,data:Et({abi:pf,functionName:"exactOutput",args:[{path:d.path,recipient:a,deadline:m,amountOut:r.amountOut,amountInMaximum:w}]})}]}}}}function is(e){const t=e.name??"Uniswap v3",n=e.chainIds??oc;return{name:t,chainIds:n,resolve:async(o,r,s,a)=>{if(Fe(o.tokenIn)||Fe(o.tokenOut))return null;const i=o.maxSlippage??ss;let l;try{let m;if(a){if(a.venue!==t)return null;const g=a.calls.find(y=>y.to.toLowerCase()===e.swapRouter.toLowerCase());if(!g)return null;const h=Zn({abi:e.routerHasDeadline?dc:[...cc,...Wl],data:g.data});if(h.functionName==="exactInput"){const{path:y}=h.args[0];if(y.slice(0,42).toLowerCase()!==o.tokenIn.toLowerCase()||`0x${y.slice(-40)}`.toLowerCase()!==o.tokenOut.toLowerCase())return null;m={path:y,fee:0}}else if(h.functionName==="exactInputSingle"){const{tokenIn:y,tokenOut:C,fee:S}=h.args[0];if(y.toLowerCase()!==o.tokenIn.toLowerCase()||C.toLowerCase()!==o.tokenOut.toLowerCase())return null;m={fee:S}}else return null}l=m?.path?{...m,amountOut:(await rs(r,e,m.path,o.amountIn,"in")).amount}:await tc({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountIn:o.amountIn,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:m?[m.fee]:e.feeTiers,hubs:m?[]:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return console.warn(`[UniV3Venue] No viable route for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}.`),null}const c=si(l.amountOut,i),u=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+ii)}:{},d=e.routerHasDeadline?dc:l.path?cc:Wl,p=l.path?Et({abi:d,functionName:"exactInput",args:[{path:l.path,recipient:s,...u,amountIn:o.amountIn,amountOutMinimum:c}]}):Et({abi:d,functionName:"exactInputSingle",args:[{tokenIn:o.tokenIn,tokenOut:o.tokenOut,fee:l.fee,recipient:s,...u,amountIn:o.amountIn,amountOutMinimum:c,sqrtPriceLimitX96:0n}]}),w=[{to:o.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[e.swapRouter,o.amountIn]})},{to:e.swapRouter,value:0n,data:p}];return{venue:t,amountOut:l.amountOut,amountOutMinimum:c,calls:w}}}}function li(e){const t=e.name??"Uniswap v3",n=e.chainIds??oc;return{name:t,chainIds:n,resolve:async(o,r,s)=>{if(Fe(o.tokenIn)||Fe(o.tokenOut))return null;const a=o.maxSlippage??ss;let i;try{i=await nc({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:e.feeTiers,hubs:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return null}const l=BigInt(Math.round(a*1e4)),c=i.amountIn+i.amountIn*l/10000n;return{venue:t,amountIn:i.amountIn,amountInMax:c,amountOut:o.amountOut,calls:[ec({config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},routerHasDeadline:e.routerHasDeadline,route:i,tokenIn:o.tokenIn,tokenOut:o.tokenOut,recipient:s,amountOut:o.amountOut,amountInMaximum:c})]}}}}function fc(e){const t=[];e?.customVenues&&t.push(...e.customVenues),e?.satsuma&&t.push(is(e.satsuma)),e?.aerodrome!==!1&&t.push(as(e?.aerodrome??Xs)),t.push(af(e?.oneInch));const n=t.map(Yp);function o(a){return n.find(i=>i.chainIds.includes(a))}async function r(a,i,l,c){const u=n.filter(m=>m.chainIds.includes(i));if(u.length===0)throw new Be("NO_VENUE_FOR_CHAIN",`No liquidity venue configured for chain ${i}. Cannot resolve swap ${a.tokenIn} \u2192 ${a.tokenOut}.`,{chainId:i,tokenIn:a.tokenIn,tokenOut:a.tokenOut,amountIn:a.amountIn.toString()});const d=await Promise.allSettled(u.map(m=>m.resolve(a,i,l,c)));let p=null;for(const m of d)c&&m.status==="fulfilled"&&m.value&&(m.value.venue!==c.venue||m.value.calls.length!==c.calls.length||m.value.calls.some((g,h)=>g.to.toLowerCase()!==c.calls[h].to.toLowerCase()||g.data.slice(0,10)!==c.calls[h].data.slice(0,10)))||m.status==="fulfilled"&&m.value&&(!p||m.value.amountOut>p.amountOut)&&(p=m.value);if(p)return p;const w=d.find(m=>m.status==="rejected");if(w)throw w.reason;return null}async function s(a,i,l){const c=[],u=[];for(const d of a){if(!of(d)){c.push(d);continue}const p=await r(d,i,l);if(!p)throw new Be("NO_LIQUIDITY",`No venue returned a quote for ${d.tokenIn} \u2192 ${d.tokenOut} on chain ${i}.`,{chainId:i,tokenIn:d.tokenIn,tokenOut:d.tokenOut,amountIn:d.amountIn.toString()});c.push(...p.calls),u.push(p)}return{calls:c,resolvedSwaps:u}}return{resolveSwapIntents:s,resolveSwap:r,getVenueForChain:o,venues:t}}const Ro="0x0000000000000000000000000000000000000000",ci=[{fee:100,tickSpacing:1},{fee:500,tickSpacing:10},{fee:3e3,tickSpacing:60},{fee:1e4,tickSpacing:200}],mc=Ro,hc=.02,ff=1800,gc={name:"Uniswap v4",quoter:"0x0d5e0f971ed27fbff6c2837bf31316121532048d",universalRouter:"0x6ff5693b99212da76ad316178a184ab56d299b43",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006",Ro,"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},wc={name:"Uniswap v4",quoter:"0x8dc178efb8111bb0973dd9d722ebeff267c98f94",universalRouter:"0x8876789976decbfcbbbe364623c63652db8c0904",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",routerHasHopPrice:!0,chainIds:[4663],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73",Ro,"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},yc=go(["struct PoolKey { address currency0; address currency1; uint24 fee; int24 tickSpacing; address hooks; }","struct PathKey { address intermediateCurrency; uint24 fee; int24 tickSpacing; address hooks; bytes hookData; }","struct QuoteExactSingleParams { PoolKey poolKey; bool zeroForOne; uint128 exactAmount; bytes hookData; }","struct QuoteExactParams { address exactCurrency; PathKey[] path; uint128 exactAmount; }","function quoteExactInputSingle(QuoteExactSingleParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactInput(QuoteExactParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactOutputSingle(QuoteExactSingleParams params) returns (uint256 amountIn, uint256 gasEstimate)","function quoteExactOutput(QuoteExactParams params) returns (uint256 amountIn, uint256 gasEstimate)"]),mf=go(["function approve(address token, address spender, uint160 amount, uint48 expiration)"]),hf=go(["function execute(bytes commands, bytes[] inputs, uint256 deadline) payable"]),bc="0x10",gf="04",wf="06",yf="07",bf="08",xf="09",Js="0c",$s="0e",vf=[{name:"currency0",type:"address"},{name:"currency1",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"}],kf=[{name:"intermediateCurrency",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"},{name:"hookData",type:"bytes"}],zo=(e,t)=>e.toLowerCase()===t.toLowerCase();function _s(e){return Fe(e)?Ro:e}function Cf(e,t){return e.toLowerCase()<t.toLowerCase()?[e,t]:[t,e]}function xc(e,t,n,o,r){const s=[],[a,i]=Cf(e,t);for(const{fee:c,tickSpacing:u}of ci)s.push({kind:"single",poolKey:{currency0:a,currency1:i,fee:c,tickSpacing:u,hooks:mc},zeroForOne:zo(e,a)});const l=(c,u)=>!!r&&(zo(c,Ro)&&zo(u,r)||zo(c,r)&&zo(u,Ro));for(const c of n)if(!(zo(c,e)||zo(c,t))&&!(l(c,e)||l(c,t)))for(const u of ci)for(const d of ci){const p=(w,m)=>({intermediateCurrency:w,fee:m.fee,tickSpacing:m.tickSpacing,hooks:mc,hookData:"0x"});s.push({kind:"multi",path:o==="in"?[p(c,u),p(t,d)]:[p(e,u),p(c,d)]})}return s}async function vc(e,t,n,o,r,s){const a=Ct(e),i=(await Promise.allSettled(n.map(async l=>{const{result:c}=l.kind==="single"?await a.simulateContract({address:t.quoter,abi:yc,functionName:s==="in"?"quoteExactInputSingle":"quoteExactOutputSingle",args:[{poolKey:l.poolKey,zeroForOne:l.zeroForOne,exactAmount:r,hookData:"0x"}]}):await a.simulateContract({address:t.quoter,abi:yc,functionName:s==="in"?"quoteExactInput":"quoteExactOutput",args:[{exactCurrency:o,path:l.path,exactAmount:r}]}),u=c[0];if(u<=0n)throw new Error("zero quote");return{candidate:l,amount:u}}))).filter(l=>l.status==="fulfilled").map(l=>l.value);return i.length===0?null:(i.sort((l,c)=>l.amount<c.amount?-1:l.amount>c.amount?1:0),s==="in"?i[i.length-1]:i[0])}function kc(e){const{candidate:t,direction:n,currencyIn:o,currencyOut:r,recipient:s,exactAmount:a,limitAmount:i,deadline:l,routerHasHopPrice:c,sweepNativeTo:u}=e;let d,p;t.kind==="single"?(d=n==="in"?`0x${wf}${Js}${$s}`:`0x${bf}${Js}${$s}`,p=qo([{type:"tuple",components:[{name:"poolKey",type:"tuple",components:vf},{name:"zeroForOne",type:"bool"},{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"},...c?[{name:"minHopPriceX36",type:"uint256"}]:[],{name:"hookData",type:"bytes"}]}],[{poolKey:t.poolKey,zeroForOne:t.zeroForOne,[n==="in"?"amountIn":"amountOut"]:a,[n==="in"?"amountOutMinimum":"amountInMaximum"]:i,...c?{minHopPriceX36:0n}:{},hookData:"0x"}])):(d=n==="in"?`0x${yf}${Js}${$s}`:`0x${xf}${Js}${$s}`,p=qo([{type:"tuple",components:[{name:n==="in"?"currencyIn":"currencyOut",type:"address"},{name:"path",type:"tuple[]",components:kf},...c?[{name:"minHopPriceX36",type:"uint256[]"}]:[],{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"}]}],[{[n==="in"?"currencyIn":"currencyOut"]:n==="in"?o:r,path:t.path,...c?{minHopPriceX36:[]}:{},[n==="in"?"amountIn":"amountOut"]:a,[n==="in"?"amountOutMinimum":"amountInMaximum"]:i}]));const w=qo([{type:"address"},{type:"uint256"}],[o,n==="in"?a:i]),m=qo([{type:"address"},{type:"address"},{type:"uint256"}],[r,s,0n]),g=qo([{type:"bytes"},{type:"bytes[]"}],[d,[p,w,m]]),h=u?`${bc}${gf}`:bc,y=u?[g,qo([{type:"address"},{type:"address"},{type:"uint256"}],[Ro,u,0n])]:[g];return Et({abi:hf,functionName:"execute",args:[h,y,l]})}function Cc(){return BigInt(Math.floor(Date.now()/1e3)+ff)}function Ic(e,t,n,o){return{to:e.permit2,value:0n,data:Et({abi:mf,functionName:"approve",args:[t,e.universalRouter,n,Number(o)]})}}function Sc(e){const t=e.name??"Uniswap v4",n=e.v3?is({...e.v3,chainIds:e.chainIds}):null;return{name:t,chainIds:e.chainIds,resolve:async(o,r,s)=>{const a=o.maxSlippage??hc,i=_s(o.tokenIn),l=_s(o.tokenOut),c=Fe(o.tokenIn),u=e.hubCurrencies??[Ro];let d=null;if(!zo(i,l)&&o.amountIn>0n){const p=await vc(r,e,xc(i,l,u,"in",ti(r)),i,o.amountIn,"in").catch(()=>null);if(p){const w=Ul(p.amount,a),m=Cc(),g=[];c||(g.push({to:o.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[e.permit2,o.amountIn]})}),g.push(Ic(e,o.tokenIn,o.amountIn,m))),g.push({to:e.universalRouter,value:c?o.amountIn:0n,data:kc({candidate:p.candidate,direction:"in",currencyIn:i,currencyOut:l,recipient:s,exactAmount:o.amountIn,limitAmount:w,deadline:m,routerHasHopPrice:e.routerHasHopPrice})}),d={venue:t,amountOut:p.amount,amountOutMinimum:w,calls:g}}}return!d&&n?n.resolve(o,r,s):d}}}function Ac(e){const t=e.name??"Uniswap v4";return{name:t,chainIds:e.chainIds,resolve:async(n,o,r)=>{const s=Fe(n.tokenIn),a=_s(n.tokenIn),i=_s(n.tokenOut);if(zo(a,i)||n.amountOut<=0n)return null;const l=n.maxSlippage??hc,c=e.hubCurrencies??[Ro],u=await vc(o,e,xc(a,i,c,"out",ti(o)),i,n.amountOut,"out").catch(()=>null);if(!u)return null;const d=BigInt(Math.round(l*1e4)),p=u.amount+u.amount*d/10000n,w=Cc();return{venue:t,amountIn:u.amount,amountInMax:p,amountOut:n.amountOut,calls:[...s?[]:[Ic(e,n.tokenIn,p,w)],{to:e.universalRouter,value:s?p:0n,data:kc({candidate:u.candidate,direction:"out",currencyIn:a,currencyOut:i,recipient:r,exactAmount:n.amountOut,limitAmount:p,deadline:w,routerHasHopPrice:e.routerHasHopPrice,sweepNativeTo:s?r:void 0})}]}}}}const di=[{...ai,protocol:"uniswap-v3",chainId:4114},{...ai,protocol:"uniswap-v3",chainId:5115},{...rc,protocol:"uniswap-v3",chainId:8453},{...sc,protocol:"uniswap-v3",chainId:1},{...ac,protocol:"uniswap-v3",chainId:42161},{...lf,protocol:"uniswap-v3",chainId:137},{...cf,protocol:"uniswap-v3",chainId:56},{...df,protocol:"uniswap-v3",chainId:143},{...ic,protocol:"uniswap-v3",chainId:4663},{...lc,protocol:"uniswap-v3",chainId:4663},{...gc,protocol:"uniswap-v4",chainId:8453},{...wc,protocol:"uniswap-v4",chainId:4663},{...Xs,protocol:"aerodrome-slipstream",chainId:8453}];function hr(e){const t=e?.includeDefaults===!1?e.venues??[]:[...di,...e?.venues??[]],n=[],o=[];for(const r of t){const s=[r.chainId];switch(r.protocol){case"uniswap-v3":{const a={...r,chainIds:s};n.push(is(a)),o.push(li(a));break}case"uniswap-v4":{const a={...r,chainIds:s};n.push(Sc(a)),o.push(Ac(a));break}case"aerodrome-slipstream":{const a={...r,chainIds:s};n.push(as(a)),o.push(pc(a));break}default:{const a=r;throw new Be("INVALID_PARAMS",`Unsupported liquidity venue protocol: ${a.protocol}`,{protocol:a.protocol})}}}return{input:n,output:o}}const ui=new Set(["WBTC","CBTC"]),Ec=new Set(["btc","wbtc","wcbtc","cbtc"]);function Fc(e,t){return!e||!t?!1:e===t?!0:ui.has(e)&&ui.has(t)}function $n(e){const[t,n,o]=e.split(":");if(t!=="evm"||!n||!o)return null;const r=Number(n);if(!Number.isFinite(r))return null;const s=o.startsWith("0x")?o.toLowerCase():`0x${o.toLowerCase()}`;return{chainId:r,address:s}}function ea(e){return(e??"").trim().replace(/^test\s+/i,"").replace(/^spice/i,"").toLowerCase().replace(/[^a-z0-9]/g,"")}function If(e){return new Set([e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name].map(ea).filter(Boolean))}function Sf(e,t){const n=If(e),o=[t.symbol,t.name,t.equivalenceGroup].map(ea);if(o.some(a=>a&&n.has(a)))return!0;const r=[...n].some(a=>Ec.has(a)),s=o.some(a=>Ec.has(a))||ui.has(t.equivalenceGroup??"");return r&&s}function Tc(e,t,n){const o=new Set(t.map(ea).filter(Boolean)),r=s=>{if(n&&ee(s.address,n))return 0;const a=[s.symbol,s.name,s.equivalenceGroup].map(ea).findIndex(i=>i&&o.has(i));return a===-1?4:a+1};return[...e].sort((s,a)=>{const i=r(s)-r(a);return i!==0?i:s.address.toLowerCase().localeCompare(a.address.toLowerCase())})}function Br(e,t){const n=e.chainTokens?Object.keys(e.chainTokens):[],o=[];for(const r of n){const s=$n(r);if(!s||s.chainId!==t)continue;const a=s.address,i=Fe(a)?bt(t)?.nativeCurrency:void 0,l=Xt(a,t)??(i?{...i}:void 0);l&&(!pi(e,a,t)&&!(e.isUniversal&&Sf(e,l))||o.some(c=>ee(c,a))||o.push(a))}return Tc(o.map(r=>{const s=Xt(r,t);return{address:r,symbol:s?.symbol,name:s?.name,equivalenceGroup:s?.equivalenceGroup}}),[e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name],e.chainId===t&&!e.isUniversal?e.address:void 0).map(r=>r.address)}function pi(e,t,n){return e.chainId===n&&ee(e.address,t)?!0:ls(e.address,e.chainId,t,n)}async function Af(e,t){const n=Ct(e),o=Bo(e);return Fe(t)?n.getBalance({address:o}):await n.readContract({address:t,abi:lt,functionName:"balanceOf",args:[o]})}function fi(e,t,n){const o=fr(n),r=o.find(a=>ee(a.address,e));if(r&&(t===n||!Fe(e)))return r;const s=Xt(e,t);if(s)return Tc(o.filter(a=>Fc(a.equivalenceGroup,s.equivalenceGroup)),[s.symbol,s.name,s.equivalenceGroup])[0]}function ta(e){return e.equivalenceGroup==="USDC"&&e.symbol.toUpperCase()!=="USDT"}function gr(e){const t=os(e);if(!t||t===jt)return;const n=fr(e).filter(ta);return n.find(o=>o.symbol.toUpperCase()==="USDC")??n[0]}function mi(e,t){if(e.chainId===t)return null;const n=os(e.chainId),o=os(t);if(!n||n===jt||!o||o===jt)return null;const r=!e.isNative&&!Fe(e.address)?Xt(e.address,e.chainId):void 0,s=r&&ta(r)?fi(e.address,e.chainId,t):void 0,a=s?r:gr(e.chainId),i=s??gr(t);if(!a||!i)return null;const l=c=>({address:c.address,symbol:c.symbol,decimals:c.decimals,chainId:c.chainId});return{source:l(a),destination:l(i)}}function Ef(e,t){return!!mi(e,t)}function so(e,t){if(e.chainId===t)return e.address;const n=fi(e.address,e.chainId,t);return n?n.address:null}async function Do(e,t,n,o){const r=Xt(t,n);return r?r.decimals:e?.chainId===n&&ee(e.address,t)&&!e.isUniversal?e.decimals:o?.chainId===n&&ee(o.address,t)?o.decimals:Ls(n,t)}async function Bc(e,t,n={}){const o=so(e,t),r=Br(e,t);if(r.length===0)return o;if(r.length===1)return r[0];const s=n.requiredAmount??0n,a=i=>{const l=r.map(c=>({candidate:c,balance:i.get(Fe(c)?"native":c.toLowerCase())??0n})).filter(c=>c.balance>0n).sort((c,u)=>c.balance===u.balance?0:c.balance>u.balance?-1:1);return l.length===0?null:((s>0n?l.find(c=>c.balance>=s):l[0])??l[0]).candidate};try{const i=await Promise.all(r.map(async u=>({key:Fe(u)?"native":u.toLowerCase(),value:await Af(t,u)}))),l=new Map(i.map(({key:u,value:d})=>[u,d])),c=a(l);if(c)return c}catch{}return o}function ls(e,t,n,o){const r=Xt(e,t),s=Xt(n,o);return r&&s?Fc(r.equivalenceGroup,s.equivalenceGroup):Ip(e,n)}function na(e,t){return ls(e.address,e.chainId,t.address,t.chainId)}const Oc=.01;function Rc(e,t=!1){const n=Number.isFinite(e.balanceUsd)&&e.balanceUsd>0;return e.isDiscovered?n&&e.balanceUsd>=Oc:!t||!n||e.balanceUsd>=Oc}function oa(e,t=!1){return!!e&&e._source==="wallet"&&(e.location==="external"||e._fundingWallet==="external"||!e.location&&!e._fundingWallet&&t)}function ve(e){return e.positionId??`${e.owner?.toLowerCase()??""}:${e.location??e._source??""}:${e.chainId}:${e.receiptTokenId??pt(e.address).toLowerCase()}`}function Dc(e,t){if(!t?.length||e.symbol!==void 0&&qs({...e,symbol:e.symbol},t))return!0;const n=o=>t.some(r=>ee(pt(r),pt(o)));return n(e.address)||Object.keys(e.chainTokens??{}).some(o=>{const r=$n(o);return r?n(r.address):!1})}function So(e,t,n,o,r,s){const a=(g,h=!1)=>({eligible:!1,reason:g,policyExcluded:h}),i=e._source==="wallet"||e.location==="external"||e.location==="embedded",l=t==="spend-source"&&i&&!!o&&e.chainId===o.chainId&&ee(pt(e.address),pt(o.address));if(n.isWhitelistGateActive||!l&&!qs(e,n.allowedTokens))return a("Asset excluded by client policy",!0);if(t!=="withdraw-destination"&&!l&&!Rc(e))return a("Asset is unpriced or below the minimum value",!0);if(t==="holding")return{eligible:!0,reason:null};if(e.balanceError)return a(e.balanceError);if(!l&&!Dc(e,r))return a("Asset excluded by action policy",!0);const c=new Set(o?[o.chainId]:[]);e._source!=="spice"&&e.location!=="rollup"&&c.add(e.chainId);for(const g of c)if(!qa(g,n.rpcOverrides)?.trim())return a(`Configure SpiceFlowProvider rpcOverrides[${g}] before using this asset.`);if(s?.requiresEscrow){const g=Xt(e.address,e.chainId);if(!g||!ta(g))return a("This asset has no supported escrow mapping")}if(!o)return{eligible:!0,reason:null};const u=n.liquidityVenues?.includeDefaults===!1?n.liquidityVenues.venues??[]:[...di,...n.liquidityVenues?.venues??[]],d=g=>u.some(h=>h.chainId===g),p=i&&e.chainId!==o.chainId,w=p?mi(e,o.chainId):null;if(p&&!w)return a("No supported source route");if(w&&!ee(pt(e.address),pt(w.source.address))&&!d(e.chainId))return a("No conversion venue configured on the source chain");const m=w?.destination.address??so(e,o.chainId);return t==="withdraw-destination"?(e.chainTokens||e.receiptTokenId?Br(e,o.chainId):m?[m]:[]).some(g=>ee(pt(g),pt(o.address)))?{eligible:!0,reason:null}:a("No supported withdrawal mapping"):m&&ee(pt(m),pt(o.address))?{eligible:!0,reason:null}:!m&&!Ef(e,o.chainId)?a("No supported destination route"):d(o.chainId)?{eligible:!0,reason:null}:a("No conversion venue configured on the destination chain")}function ra(){const e=an(_t),[t]=L(ap);return e?.inventory??t}function hi(e,t,n,o,r){const s=ra(),a=r??s,i=ge(()=>a.entry(e),[a,e]),[,l]=L(0);ue(()=>{if(n)return i.subscribe(()=>l(u=>u+1),t,o)},[i,n,t,o]);const c=se(()=>i.refresh(),[i]);return{...n?i.snapshot():ip,refresh:c}}var Mc="data:image/png;base64,iVBORw0KGgoAAAANSUh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+mrv/5qQkimpO+IU8fKXQ9bDMe/5oPl81P3BsP183EeGu3GoLBw/WHnuLF20sXQ9X/ueL57PV99w+Z7P5Vvj8j3fXr7j9X/f/5Vsrv9/K3NM7mGXOq0AAAAASUVORK5CYII=",cs="data:image/svg+xml,%3csvg width='8' height='11' viewBox='57 6 8 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e %3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e %3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e %3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e %3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e %3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3c/svg%3e";const ds=ql(1)?.logo??"",Bf=zl.find(e=>e.symbol==="USDC")?.logo??"",Jo=Object.fromEntries([...Sp(),...Ap()].map(e=>[e.id,e.logo])),us={metamask:Mc,metaMask:Mc,rabby:Ff,phantom:Tf},gi=Object.fromEntries(zl.map(e=>[e.symbol.toUpperCase(),e.logo])),Of={usdc:[8453,1,42161,5115,4114],usdt:[1],btc:[4114,42161,1,5115],wbtc:[1],weth:[8453,1],eth:[8453,1,42161,4663,84532,46630],ctusd:[5115,4114],wcbtc:[5115,4114]},Rf={btc:["wcbtc","cbtc","wbtc"]};function sa(e){return e.replace(/^test\s*/i,"").replace(/^spice/i,"").trim()}function Ho(e){return sa(e).toLowerCase()}function Nc(e){return Ho(e??"").replace(/[^a-z0-9]/g,"")}function wi(e){const t=Ho(e);return[t,...Rf[t]??[]].filter(Boolean)}function Df(e){try{return BigInt(e.balanceAvailable||"0")}catch{return 0n}}function Pc(e){return Array.isArray(e.chainTokens)?e.chainTokens:Object.keys(e.chainTokens??{})}function Wc(e,t){const n=bt(e),o=t.toLowerCase();return o===jt.toLowerCase()?n?.nativeCurrency.decimals??18:n?.supportedTokens?.find(r=>r.address.toLowerCase()===o)?.decimals??18}function Mf(e,t,n,o=[]){const r=Wc(t,n),s=e.filter(i=>Uc(i,t,n,o));if(s.length===0)return null;const a=s.reduce((i,l)=>Math.min(i,l.decimals??r),r);return{chainDecimals:r,receiptDecimals:a}}function Uc(e,t,n,o){if(Pc(e).some(s=>{const a=$n(s);return a&&ls(a.address,a.chainId,n,t)}))return!0;const r=new Set(o.map(Nc).filter(Boolean));return r.size===0?!1:r.has(Nc(e.tokenName||e.receiptToken))}function Lc(e,t,n,o=[]){const r=Wc(t,n);return e.reduce((s,a)=>Uc(a,t,n,o)?s+ho(Df(a),a.decimals??r,r):s,0n)}function qc(e,t){const n=new Set([...wi(t),...wi(sa(t))]);return[...e].sort((o,r)=>{const s=Ho(o.symbol),a=Ho(r.symbol),i=Ho(o.name),l=Ho(r.name),c=n.has(s)?0:n.has(i)?1:2,u=n.has(a)?0:n.has(l)?1:2;return c!==u?c-u:o.address.toLowerCase().localeCompare(r.address.toLowerCase())})[0]}function Nf(e){const t=e&&e.length>0?e:Object.keys(zs).map(Number).filter(Number.isFinite),n=new Map;for(const o of t){const r=bt(o);if(!r)continue;const s=`${o}:${jt.toLowerCase()}`;n.has(s)||n.set(s,{address:jt,chainId:o,symbol:r.nativeCurrency.symbol,name:r.nativeCurrency.name,decimals:r.nativeCurrency.decimals,isNative:!0,logoURI:gi[r.nativeCurrency.symbol.toUpperCase()]??r.logo});for(const a of r.supportedTokens??[]){const i=a.address.toLowerCase(),l=`${o}:${i}`;n.has(l)||n.set(l,{address:i,chainId:o,symbol:a.symbol,name:a.name,decimals:a.decimals,isNative:Fe(i),logoURI:a.logo})}}return n}function Pf(e,t){const n=Nf(t),o=sa(e.tokenName),r=Ho(e.tokenName),s=wi(e.tokenName),a=Array.isArray(e.chainTokens)?e.chainTokens.map(m=>[m,void 0]):Object.entries(e.chainTokens??{}),i=a.map(([m])=>$n(m)).filter(m=>m!==null),l=new Map;for(const[m,g]of a){const h=$n(m);if(!h||!Number.isSafeInteger(h.chainId)||h.chainId<0||!/^evm:[0-9]+:(?:0x)?[0-9a-fA-F]{40}$/.test(m)){if(!Array.isArray(e.chainTokens))throw new Error("Invalid chain token metadata identity");continue}if(g!==void 0&&(!g||typeof g!="object"||Array.isArray(g)||g.name!==void 0&&typeof g.name!="string"||g.decimals!==void 0&&(!Number.isInteger(g.decimals)||g.decimals<0||g.decimals>255)))throw new Error("Invalid chain token metadata");const y=`${h.chainId}:${h.address.toLowerCase()}`;if(l.has(y)){const C=l.get(y);if(C?.name!==g?.name||C?.decimals!==g?.decimals)throw new Error("Conflicting chain token metadata")}l.set(y,g)}const c=(m,g)=>{const h=l.get(`${g.chainId}:${g.address.toLowerCase()}`);return{...m,name:typeof h?.name=="string"&&h.name.length>0?h.name:m.name,decimals:typeof h?.decimals=="number"?h.decimals:m.decimals}},u=i.map(m=>{const g=n.get(`${m.chainId}:${m.address.toLowerCase()}`);return g?c(g,m):void 0}).filter(m=>m!==void 0),d=Of[r]??[];if(d.length>0)for(const m of d){const g=u.filter(h=>h.chainId===m);if(g.length>0)return qc(g,e.tokenName)}if(u.length>0)return qc(u,e.tokenName);const p=Array.from(n.values()).filter(m=>s.includes(Ho(m.symbol))||s.includes(Ho(m.name)));if(d.length>0)for(const m of d){const g=p.find(h=>h.chainId===m);if(g)return g}if(p.length>0)return p[0];const w=i[0];if(w){const m=l.get(`${w.chainId}:${w.address.toLowerCase()}`);return{address:w.address,chainId:w.chainId,symbol:o||e.tokenName,name:typeof m?.name=="string"&&m.name.length>0?m.name:o||e.tokenName,decimals:typeof m?.decimals=="number"?m.decimals:e.decimals??18,isNative:Fe(w.address),logoURI:void 0}}}function Wf(e,t){let n;try{n=BigInt(e.balanceAvailable||"0")}catch{return null}if(n<=0n)return null;if(t?.length){const m=Pc(e).map($n).filter(g=>g!==null);if(m.length>0&&!m.some(g=>t.includes(g.chainId)))return null}let o;try{o=Pf(e,t)}catch{return null}const r=o?.decimals??e.decimals??18,s=e.decimals??r,a=ho(n,s,r),i=o?.address??jt,l=o?.chainId??0,c=sa(e.tokenName),u=o?.symbol??c,d=o?.name??c,p=parseFloat(De(a,r)),w=typeof e.balanceUsd=="number"?e.balanceUsd:typeof e.balanceUsd=="string"&&Number(e.balanceUsd)||0;return{address:i,symbol:u,name:d,decimals:r,chainId:l,balance:a,balanceFormatted:p,balanceUsd:w,isNative:o?.isNative??Fe(i),logoURI:o?.logoURI,displaySymbol:c||u,displayName:c||d,displayChainName:"Spicenet",receiptTokenId:e.receiptToken,receiptTokenName:e.tokenName||d,receiptTokenDecimals:s,chainTokens:e.chainTokens&&!Array.isArray(e.chainTokens)?e.chainTokens:void 0,isUniversal:!0}}const yi=6e4,Uf=3e5,zc="https://api.g.alchemy.com/prices/v1",Or=new Map;function aa(e,t){try{const n=t??Ct(e).transport.url;if(typeof n!="string")return null;const{hostname:o,pathname:r}=new URL(n);if(!o.endsWith(".g.alchemy.com"))return null;const s=r.split("/").filter(Boolean).pop();return s?{network:o.slice(0,-14),key:s}:null}catch{return null}}const ps=(e,t)=>`${e.network}:${e.key}:${t.toLowerCase()}`;function wr(e,t){const n=Or.get(ps(e,t));if(!n?.price||n.updatedAt===void 0)return;const o=Date.now()-n.updatedAt;if(!(o>=Uf))return{price:n.price,stale:o>=yi}}function Hc(e){const t=Number(e.prices?.find(n=>n.currency==="usd")?.value);return Number.isFinite(t)&&t>0?t:0}async function Qc(e,t,n){const o=[],r=new Set,s=Date.now();for(const a of new Set(t.map(i=>i.toLowerCase()))){const i=Or.get(ps(e,a));i?.pending?r.add(i.pending):(!i||s-i.attemptedAt>=yi&&(i.updatedAt===void 0||s-i.updatedAt>=yi))&&o.push(a)}for(let a=0;a<o.length;a+=25){const i=o.slice(a,a+25),l=Promise.resolve().then(async()=>{try{const c=await n(i);for(const u of i){const d=c.get(u);if(!d)continue;const p=Or.get(ps(e,u));p.price=d,p.updatedAt=Date.now()}}catch{}finally{for(const c of i)Or.get(ps(e,c)).pending=void 0}});for(const c of i){const u=ps(e,c);Or.set(u,{...Or.get(u),attemptedAt:s,pending:l})}r.add(l)}await Promise.all(r)}async function bi(e,t){return await Qc(e,t,async n=>{const o=await fetch(`${zc}/${e.key}/tokens/by-address`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({addresses:n.map(a=>({network:e.network,address:a}))}),signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider price request failed");const r=await o.json(),s=new Map;for(const a of r?.data??[]){if(a.network&&a.network!==e.network)continue;const i=String(a.address).toLowerCase();n.includes(i)&&s.set(i,Hc(a))}return s}),new Map(t.map(n=>[n.toLowerCase(),wr(e,n)?.price??0]))}async function xi(e,t){const n=`native:${t}`;return await Qc(e,[n],async()=>{const o=await fetch(`${zc}/${e.key}/tokens/by-symbol?symbols=${encodeURIComponent(t)}`,{signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider native price request failed");const r=(await o.json())?.data?.find(s=>s.symbol?.toUpperCase()===t.toUpperCase());return new Map([[n.toLowerCase(),r?Hc(r):0]])}),wr(e,n)?.price??0}async function Lf(e,t){const n=t.supportedChains,o=e.map(r=>{const s=Object.keys(r.chainTokens??{}).map($n).filter(a=>!!a&&Xn(a.address)&&!!n?.includes(a.chainId));return s.sort((a,i)=>{const l=c=>c===t.nativeChainId?-1:n.indexOf(c);return l(a.chainId)-l(i.chainId)||+!ee(a.address,r.address)-+!ee(i.address,r.address)}),s.flatMap(a=>{const i=t.rpcOverrides?.[a.chainId];if(!i)return[];const l=aa(a.chainId,i);if(!l)return[];const c=Fe(a.address)?bt(a.chainId)?.nativeCurrency.symbol:void 0,u=c?`native:${c}`:a.address;return[{rpc:l,token:u,address:a.address,nativeSymbol:c}]})});return(typeof document>"u"||!document.hidden)&&await Promise.all(o.map(async r=>{for(const s of r)if(s.nativeSymbol?await xi(s.rpc,s.nativeSymbol).catch(()=>0):await bi(s.rpc,[s.address]).catch(()=>new Map),wr(s.rpc,s.token)?.stale===!1)break})),e.map((r,s)=>{const a=o[s].map(l=>wr(l.rpc,l.token)),i=a.find(l=>l&&!l.stale)??a.find(Boolean);return{...r,balanceUsd:i?r.balanceFormatted*i.price:Number.isFinite(r.balanceUsd)&&r.balanceUsd>0?r.balanceUsd:0,priceStatus:i?i.stale?"stale":"fresh":"unavailable"}})}function qf(e,t,n){const o=an(_t),[r,s]=L(()=>typeof document>"u"||!document.hidden);ue(()=>{const u=()=>s(!document.hidden);return document.addEventListener("visibilitychange",u),()=>document.removeEventListener("visibilitychange",u)},[]);const a={supportedChains:n??o?.supportedChainIds,nativeChainId:o?.nativeChainId,rpcOverrides:o?.rpcOverrides},i=JSON.stringify([e,a],(u,d)=>typeof d=="bigint"?d.toString():d),l=se(()=>Lf(e,a),[i]),c=hi(`prices:${i}`,l,t&&r&&e.length>0,6e4);return c.updatedAt?c.assets:e}function zf(e){const t=e.chainTokens??e.chainTokenConfig;if(Array.isArray(t))return t.filter(n=>typeof n=="string");if(t&&typeof t=="object")return t}const Vc=({address:e,supportedChains:t,enabled:n=!0,refetchInterval:o,priceEnabled:r=!1})=>{const s=an(_t),a=s?.apiUrl||cp,i=ra(),l=s?.supportedChainIds??t,c=JSON.stringify([...l??[]].sort((O,v)=>O-v)),u=e?.toLowerCase(),d=se(async()=>{const O=`${a}/wallets/${u}/balance`;let v,x;try{const F=await lp(O,{cache:"no-store"});if(v=F.status,x=F.requestId,!F.ok)throw new Error(`Failed to fetch balance: ${F.status}`);const T=await F.json();if(!Array.isArray(T.balances))throw new Error("Invalid balance response");return T.balances.map(B=>{const M=Wf({receiptToken:typeof B.receiptToken=="string"?B.receiptToken:void 0,tokenName:String(B.tokenName??""),balanceAvailable:String(B.balanceAvailable??"0"),chainTokens:zf(B),decimals:typeof B.decimals=="number"?B.decimals:void 0,balanceUsd:typeof B.balanceUsd=="number"||typeof B.balanceUsd=="string"?B.balanceUsd:null},l);return M?{...M,owner:u,location:"rollup",_source:"spice",positionId:`${u}:rollup:${M.receiptTokenId??M.address}`}:null}).filter(B=>B!==null)}catch(F){const T=F instanceof Error?F.name:void 0,B=v===429?"Balance refresh is temporarily busy. Wait a moment and try again.":v===408||v===504||T==="TimeoutError"?"Balance refresh timed out. Try again.":T==="AbortError"?"Balance refresh was interrupted. Try again.":"Balances are unavailable. Check your connection and try again.",M=new Be("RELAYER_STATUS_ERROR",B,{endpoint:O,httpStatus:v,requestId:x,cause:F});throw Un(M),M}},[u,a,c,s?.nativeChainId,s?.rpcOverrides]),{assets:p,loading:w,refreshing:m,error:g,updatedAt:h}=hi(`rollup:${u}:${a}:${c}`,d,n&&!!u,o??0,i),y=JSON.stringify(t??[]),C=ge(()=>g?p.map(O=>({...O,balanceError:g,balanceStatus:"stale"})):p,[p,g]),S=qf(C,n&&r,l),b=ge(()=>S.filter(O=>!t?.length||t.includes(O.chainId)||Object.keys(O.chainTokens??{}).some(v=>t.some(x=>v.startsWith(`evm:${x}:`)))),[S,y]),A=se(O=>b.filter(v=>v.chainId===O),[b]);return{assets:b,loading:w,error:g,hasBalance:b.some(O=>O.balance>0n),refreshing:m,updatedAt:h,refetch:i.invalidate,getAssetsByChain:A}};async function Hf(e,t,n){if(n)return{decimals:n.decimals,symbol:n.symbol,name:n.name,logoURI:n.logo};const[o,r,s]=await Promise.all([Xo(e,{address:t,abi:lt,functionName:"decimals"}),Xo(e,{address:t,abi:lt,functionName:"symbol"}).catch(()=>"TOKEN"),Xo(e,{address:t,abi:lt,functionName:"name"}).catch(()=>"TOKEN")]);if(!Number.isInteger(Number(o))||Number(o)<0||Number(o)>255)throw new Error("Invalid token decimals");return{decimals:Number(o),symbol:r,name:s,logoURI:void 0}}const jc=async(e,t,n)=>{const o=Ct(t,n),r=bt(t),s=await $a(o,{address:e}),a=r.nativeCurrency,i=r.supportedTokens?.find(l=>Fe(l.address));return{address:jt,name:a.name,symbol:a.symbol,decimals:a.decimals,balance:s,balanceFormatted:Number(De(s,a.decimals)),balanceUsd:0,priceStatus:"unavailable",logoURI:i?.logo||r.logo,isNative:!0,chainId:t}},Qf=async(e,t,n,o,r,s,a)=>{try{if(!Xn(n))return null;const i=un(n),l=Xn(e)?un(e):e,c=Ct(t,a),u=await Xo(c,{address:i,abi:lt,functionName:"balanceOf",args:[l]}),d=Number(De(u,s));return u>0n?{address:i,name:o,symbol:r,decimals:s,balance:u,balanceFormatted:d,balanceUsd:0,priceStatus:"unavailable",logoURI:void 0,isNative:!1,chainId:t}:null}catch(i){throw i}},Gc=(e,t)=>{const n=bt(t);if(!n)return e;const o=new Set(e.map(s=>s.address.toLowerCase())),r=e.some(s=>s.isNative);for(const s of n.supportedTokens||[])Fe(s.address)&&r||o.has(s.address.toLowerCase())||e.push({address:s.address,name:s.name,symbol:s.symbol,decimals:s.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:s.logo,isNative:Fe(s.address),chainId:t});if(!e.find(s=>s.isNative)){const s=n.supportedTokens?.find(a=>Fe(a.address));e.push({address:jt,name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:s?.logo||n.logo,isNative:!0,chainId:t})}return e},Vf=async(e,t,n)=>{const o=[],r=async i=>{for(const l of i){const c=await Qf(e,t,l.address,l.name,l.symbol,l.decimals,n);c&&(c.logoURI=l.logo,o.push(c))}},s=await jc(e,t,n);s.balance>0n&&o.push(s);const a=(bt(t)?.supportedTokens||[]).filter(i=>!Fe(i.address));if(a.length>0)try{const i=Ct(t,n),l=un(e),c=a.filter(w=>Xn(w.address)).map(w=>({address:un(w.address),abi:lt,functionName:"balanceOf",args:[l]})),u=await i.multicall({contracts:c}),d=a.filter(w=>Xn(w.address)),p=[];u.forEach((w,m)=>{if(w.status==="success"){const g=w.result;if(g&&g>0n){const h=d[m],y=Number(De(g,h.decimals));g>0n&&o.push({address:un(h.address),name:h.name,symbol:h.symbol,decimals:h.decimals,balance:g,balanceFormatted:y,balanceUsd:0,priceStatus:"unavailable",logoURI:h.logo,isNative:!1,chainId:t})}}else p.push(d[m])}),await r(p)}catch{await r(a)}return{tokens:Gc(o,t),chainId:t}},jf=async(e,t,n)=>{const o=new Map,r=aa(e,n?n[e]??"":void 0);if(!r)return o;const s=t.filter(c=>Fe(c)),a=t.filter(c=>!Fe(c)),[i,l]=await Promise.all([a.length?bi(r,a).catch(()=>new Map):new Map,s.length?xi(r,bt(e)?.nativeCurrency?.symbol??"ETH").catch(()=>0):0]);for(const[c,u]of i)u>0&&o.set(c,u);if(l>0)for(const c of s)o.set(c.toLowerCase(),l);return o},Gf=async(e,t,n,o=!0,r)=>{const s=Ct(t,r),a=un(e),i=[];let l;do{const g=await s.request({method:"alchemy_getTokenBalances",params:[a,"erc20",l?{pageKey:l}:{}]});i.push(...g.tokenBalances),l=g.pageKey||void 0}while(l);const c=i.filter(g=>Xn(g.contractAddress)&&!!g.tokenBalance&&BigInt(g.tokenBalance)>0n),u=bt(t)?.supportedTokens||[],d=g=>u.find(h=>h.address.toLowerCase()===g.toLowerCase()),p=[],w=await jc(e,t,r),[m]=await Promise.all([Promise.all(c.map(async g=>{const h=d(g.contractAddress);return h?{name:h.name,symbol:h.symbol,decimals:h.decimals,logo:h.logo??null}:await s.request({method:"alchemy_getTokenMetadata",params:[g.contractAddress]})})),o?bi(n,c.map(g=>g.contractAddress)):void 0,o&&w.balanceFormatted>0?xi(n,w.symbol):void 0]);if(w.balance>0n){const g=wr(n,`native:${w.symbol}`);p.push({...w,balanceUsd:(g?.price??0)*w.balanceFormatted,priceStatus:g?g.stale?"stale":"fresh":"unavailable"})}return c.forEach((g,h)=>{const y=m[h];if(!Number.isInteger(y.decimals)||y.decimals===null||y.decimals<0||y.decimals>255)throw new Error(`Invalid token metadata on chain ${t}`);const C=BigInt(g.tokenBalance),S=Number(De(C,y.decimals));if(C<=0n)return;const b=wr(n,g.contractAddress),A=(b?.price??0)*S;p.push({address:un(g.contractAddress),name:y.name||"Unknown",symbol:y.symbol||"UNKNOWN",decimals:y.decimals,balance:C,balanceFormatted:S,balanceUsd:A,priceStatus:b?b.stale?"stale":"fresh":"unavailable",isDiscovered:!d(g.contractAddress),logoURI:y.logo||void 0,isNative:!1,chainId:t})}),{tokens:Gc(p,t),chainId:t}},Kc=new Set,Kf=async(e,t,n=!0,o)=>{try{const r=aa(t,o?o[t]??"":void 0);if(r)try{return await Gf(e,t,r,n&&(typeof document>"u"||!document.hidden),o)}catch(s){Kc.has(t)||(Kc.add(t),console.warn(`Token discovery unavailable on chain ${t}; listing configured tokens only.`,s))}return await Vf(e,t,o)}catch(r){throw r}},Rr=async(e,t,n=[],o)=>{if(!e)throw new Error("Wallet address is required");const r=dp(o),s=t?.length?[...new Set(t)]:Object.keys(r).map(Number),a=await Promise.allSettled(s.map(l=>Kf(e,l,!0,o))),i={};return a.forEach((l,c)=>{const u=s[c];i[u]=l.status==="fulfilled"?l.value:{chainId:u,tokens:[],error:`Unable to refresh balances on chain ${u}`}}),(await Promise.allSettled(n.map(async l=>{const c=i[l.chainId];if(!c||c.error||c.tokens.some(h=>pt(h.address).toLowerCase()===pt(l.address).toLowerCase()))return;const u=Ct(l.chainId,o),d=await Hf(u,l.address,l.decimals!==void 0&&l.symbol?{decimals:l.decimals,symbol:l.symbol,name:l.name||l.symbol,logo:l.logoURI}:void 0),p=await Xo(u,{address:l.address,abi:lt,functionName:"balanceOf",args:[e]});await jf(l.chainId,[l.address],o);const w=Number(De(p,d.decimals)),m=aa(l.chainId,o?o[l.chainId]??"":void 0),g=m?wr(m,l.address):void 0;c.tokens.push({...d,...l,name:d.name,symbol:d.symbol,decimals:d.decimals,balance:p,balanceFormatted:w,balanceUsd:(g?.price??0)*w,priceStatus:g?g.stale?"stale":"fresh":"unavailable",isNative:!1})}))).forEach((l,c)=>{if(l.status==="rejected"){const u=i[n[c].chainId];u&&(u.error=`Unable to refresh token balances on chain ${u.chainId}`)}}),i},fs=({address:e,supportedChains:t,fetchBalances:n=Rr,additionalTokens:o=[],enabled:r=!0,refreshInterval:s=0,priceEnabled:a=!0})=>{const i=an(_t),l=ra(),c=e?.toLowerCase(),u=JSON.stringify([...i?.supportedChainIds??t??[]].sort((C,S)=>C-S)),d=JSON.stringify(o);ue(()=>l.registerTokens(o),[l,d]);const p=c&&c===i?.embeddedWalletAddress?.toLowerCase()?"embedded":"external",w=`wallet:${JSON.stringify([i?.network,i?.apiUrl,i?.rpcOverrides])}:${c}:${p}:${u}:${l.fetcherId(n)}`,m=se(async()=>{let C;try{C=await n(c,JSON.parse(u),l.tokens(),i?.rpcOverrides)}catch(O){const v=O instanceof Error?O.message:"Unable to refresh balances";C=Object.fromEntries(JSON.parse(u).map(x=>[x,{chainId:x,tokens:[],error:v}]))}const S=l.entry(w).snapshot().assets,b=JSON.parse(u).map(O=>C[O]??{chainId:O,tokens:[],error:`Unable to refresh balances on chain ${O}`}),A=b.flatMap(O=>O.error?[O.error]:[]);return{assets:b.flatMap(O=>O.error?S.filter(v=>v.chainId===O.chainId).map(v=>({...v,balanceError:O.error,balanceStatus:"stale"})):O.tokens.map(v=>({...v,owner:c,location:p,_fundingWallet:p,_source:"wallet",positionId:`${c}:${p}:${O.chainId}:${pt(v.address).toLowerCase()}`}))),error:A.length?A.join("; "):null}},[l,c,u,n,p,w]),g=hi(w,m,r&&!!c,s,l),h=JSON.stringify(t&&[...t].sort((C,S)=>C-S)),y=ge(()=>t?g.assets.filter(C=>t.includes(C.chainId)):g.assets,[g.assets,h]);return ue(()=>{a&&r&&c&&g.refresh()},[a]),{...g,assets:y,refreshAssets:l.invalidate,getAssetsByChain:se(C=>y.filter(S=>S.chainId===C),[y]),getNativeAssets:se(()=>y.filter(C=>C.isNative),[y])}};function yr(e){const t=an(_t),n=ra(),o=e.owner??((t?.mode||"7702")!=="7702"?t?.externalWalletAddress:t?.embeddedWalletAddress),r=o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase(),s=e.sourceChains??t?.supportedChainIds??[],a=(e.enabled??!0)&&!t?.isWhitelistGateActive,i=ge(()=>{const p=[...t?.additionalSourceTokens??[],...e.additionalSourceTokens??[],...e.destination?[e.destination]:[]];for(const w of e.supportedSourceAssets??[])for(const m of s){const g=bt(m)?.supportedTokens?.find(h=>qs(h,[w]));g&&p.push({...g,address:g.address,chainId:m,logoURI:g.logo})}return p},[e.destination,JSON.stringify(t?.additionalSourceTokens),JSON.stringify(e.additionalSourceTokens),JSON.stringify(e.supportedSourceAssets),JSON.stringify(s)]),l=fs({address:o,supportedChains:s,fetchBalances:Rr,additionalTokens:i,enabled:a&&e.includeWalletAssets!==!1,refreshInterval:3e4}),c=Vc({address:o,supportedChains:s,enabled:a&&e.includeRollupAssets!==!1&&!!o&&o.toLowerCase()===t?.embeddedWalletAddress?.toLowerCase(),priceEnabled:a,refetchInterval:3e4}),u=ge(()=>a?[...(e.includeWalletAssets===!1?[]:l.assets).map(p=>({...p,owner:p.owner??o,location:p.location??(r?"external":"embedded"),_source:"wallet"})),...(e.includeRollupAssets===!1||o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase()?[]:c.assets).map(p=>({...p,owner:p.owner??o,location:"rollup",_source:"spice"}))]:[],[a,l.assets,c.assets,e.includeWalletAssets,e.includeRollupAssets,o,r,t?.embeddedWalletAddress]),d=ge(()=>u.map(p=>({asset:p,...So(p,e.role??"holding",{allowedTokens:t?.allowedTokens,rpcOverrides:t?.rpcOverrides,liquidityVenues:t?.liquidityVenues,isWhitelistGateActive:!!t?.isWhitelistGateActive},e.destination,e.supportedSourceAssets,{requiresEscrow:e.requiresEscrow})})),[u,t?.allowedTokens,t?.rpcOverrides,t?.liquidityVenues,t?.isWhitelistGateActive,e.role,e.destination,e.supportedSourceAssets,e.requiresEscrow]);return{positions:d,assets:ge(()=>d.filter(p=>p.eligible&&p.asset.balance>0n).map(p=>p.asset),[d]),walletAssets:ge(()=>u.filter(p=>p._source==="wallet"),[u]),rollupAssets:ge(()=>u.filter(p=>p._source==="spice"),[u]),loading:l.loading||c.loading,refreshing:l.refreshing||c.refreshing,error:l.error||c.error,refresh:n.invalidate}}function ia(e,t=!0,n){const o=n?.pendingOnly===!0,r=qe.getBaseUrl(),s=`${r}:${e?.toLowerCase()??""}:${o}`,[a,i]=L({scope:s,actions:[],error:null,loading:t&&!!e,updatedAt:null,revision:0}),[l,c]=L(0),u=se(()=>c(p=>p+1),[]);ue(()=>{if(!t||!e){i(h=>h.scope===s&&h.actions.length===0&&!h.error&&!h.loading&&!h.updatedAt&&h.revision===0?h:{scope:s,actions:[],error:null,loading:!1,updatedAt:null,revision:0});return}const p=new AbortController,w=new Jr;w.setBaseUrl(r);let m;i(h=>({scope:s,actions:h.scope===s?h.actions:[],error:h.scope===s?h.error:null,loading:!0,updatedAt:h.scope===s?h.updatedAt:null,revision:h.scope===s?h.revision:0}));const g=async()=>{try{const h=await w.getWalletActions(e,{pendingOnly:o,signal:p.signal});p.signal.aborted||i(y=>({scope:s,actions:h,error:null,loading:!1,updatedAt:new Date().toISOString(),revision:y.scope===s?y.revision+1:1}))}catch(h){if(p.signal.aborted)return;const y=h instanceof Be&&h.context.httpStatus===404;i(y&&!o?C=>({scope:s,actions:[],error:null,loading:!1,updatedAt:new Date().toISOString(),revision:C.scope===s?C.revision+1:1}):C=>({scope:s,actions:C.scope===s?C.actions:[],error:"Activity is temporarily unavailable. Refresh to check again.",loading:!1,updatedAt:C.scope===s?C.updatedAt:null,revision:C.scope===s?C.revision:0}))}p.signal.aborted||(m=setTimeout(g,5e3))};return g(),window.addEventListener("online",u),()=>{p.abort(),m&&clearTimeout(m),window.removeEventListener("online",u)}},[r,e,t,s,o,l,u]);const d=a.scope===s;return{actions:t&&e&&d?a.actions:[],error:d?a.error:null,loading:t&&!!e&&(!d||a.loading),updatedAt:d?a.updatedAt:null,revision:d?a.revision:0,refresh:u}}function vi(e){const t=j(0),n=j(null),o=j(e.run);o.current=e.run;const r=j(e.onSkip);r.current=e.onSkip;const s=j(e.onCleanup);s.current=e.onCleanup,ue(()=>{if(!e.shouldRun){t.current+=1,n.current?.abort(),r.current?.();return}let a=!1,i=!1;const l=async p=>{if(p&&i)return;n.current?.abort();const w=new AbortController;n.current=w;const m=++t.current;i=!0;try{await o.current({isBackground:p,isCurrent:()=>!a&&t.current===m,signal:w.signal})}finally{i=!1}},c=window.setTimeout(()=>void l(!1),e.delayMs??250),u=()=>{document.hidden||l(!0)},d=e.backgroundIntervalMs?window.setInterval(u,e.backgroundIntervalMs):void 0;return d!==void 0&&document.addEventListener("visibilitychange",u),()=>{a=!0,n.current?.abort(),clearTimeout(c),d!==void 0&&(window.clearInterval(d),document.removeEventListener("visibilitychange",u)),s.current?.()}},[e.shouldRun,e.delayMs,e.backgroundIntervalMs,...e.deps])}function Yc(e,t){if(e.length!==t.length)return!1;const n=Io(e),o=Io(t);return n.every((r,s)=>r.hash===o[s]?.hash)}const wo=e=>new Promise(t=>setTimeout(t,e)),Yf="0xa9059cbb";function Zc(e){const t=e.findIndex(r=>Oo(r.chainId));if(t<=0)return[];const n=new Map,o=(r,s,a)=>{if(a<=0n)return;const i=`${r}:${s.toLowerCase()}`,l=n.get(i);l?l.amount+=a:n.set(i,{chainId:r,token:s,amount:a})};for(const r of e.slice(0,t)){const s=os(r.chainId);if(!(!s||s===jt)){for(const a of r.calls)if(a.value&&a.value>0n&&ee(a.to,s)&&o(r.chainId,jt,a.value),!!a.data?.startsWith(Yf))try{const i=Zn({abi:lt,data:a.data});if(i.functionName!=="transfer")continue;const[l,c]=i.args;ee(l,s)&&o(r.chainId,a.to,c)}catch{}}}return[...n.values()]}function Xc(e){const t=Xt(e.token,e.chainId);return[t?.equivalenceGroup,t?.symbol,t?.name]}function Jc(e,t){return Lc(e,t.chainId,t.token,Xc(t))}function Zf(e,t){const n=Mf(e,t.chainId,t.token,Xc(t));return!n||n.receiptDecimals>=n.chainDecimals?t.amount:ho(ho(t.amount,n.chainDecimals,n.receiptDecimals),n.receiptDecimals,n.chainDecimals)}async function $c(e){const{deposits:t,baseline:n,fetchEntries:o,timeoutMs:r=12e4,intervalMs:s,signal:a,wait:i=wo}=e;if(t.length===0)return!0;const l=new Map(t.map(d=>[d,Jc(n,d)])),c=Date.now(),u=c+r;for(;!a?.aborted;){try{const m=await o();if(t.every(g=>Jc(m,g)-l.get(g)>=Zf(m,g)))return!0}catch{}const d=Date.now();if(d>=u)return!1;const p=d-c,w=s??(p<5e3?250:p<15e3?1e3:3e3);await i(Math.min(w,u-d))}return!1}function ki(e,t){const n=Io(e).map(o=>o.hash);return mr(qo([{type:"string"},{type:"uint256"},{type:"uint256"},{type:"bytes32[]"}],["ecdsa",0n,t,n]))}async function Ci(e,t,n,o,r){if(o?.aborted)throw new Be("ABORT","Execution transaction aborted");const s={raw:ki(t,n)},a=r?await e.signMessage(s,r):await e.signMessage(s);console.debug("[SpiceFlow:execution]",{phase:"signature-returned",at:Date.now()});const i=typeof a=="string"?a:a.signature;if(!i)throw new Be("SIGNATURE_FAILED","Failed to sign intent authorization. The wallet returned an empty signature.");return i}function Xf(e){return e.domain==="spicenet"||Oo(e.chainId)}async function Ii(e){const{chainBatches:t,signingAddress:n,actions:o,cache:r,signal:s,onSignatureRequested:a,beforeSign:i}=e;if(s?.aborted)throw new Be("ABORT","Execution transaction aborted");const l=[...new Set(t.filter(p=>!Xf(p)).map(p=>p.chainId))].map(p=>({chainId:p,client:Ct(p),delegateContract:Rl(p)})),[c]=await Promise.all([Promise.all(l.map(async({chainId:p,client:w,delegateContract:m})=>{const g=Number(await Ep(n,w)),h=[n.toLowerCase(),p,m.toLowerCase(),g].join(":");return{chainId:p,delegateContract:m,nonce:g,cacheKey:h,cached:r?.get(h)}})),l.length?o.prepareSigning?.():void 0]);if(await i?.(),s?.aborted)throw new Be("ABORT","Execution transaction aborted");const u=[];let d=!1;for(const{chainId:p,delegateContract:w,nonce:m,cacheKey:g,cached:h}of c){if(h){u.push(h);continue}if(d&&await i?.(),s?.aborted)throw new Be("ABORT","Execution transaction aborted");const y=await o.signAuthorization({contractAddress:w,chainId:p,nonce:m},a);d=!0;const C={r:y.r,s:y.s,yParity:y.yParity,address:y.address??w,chainId:Number(y.chainId??p),nonce:Number(y.nonce??m)};r?.set(g,C),u.push(C)}return u}const _c=15;function Jf(e){return e.now-e.lastProgressAt>=e.pollTimeoutMs}function ed(e,t){return{intentId:e,steps:t.map(n=>({...n,status:"pending"})),overallStatus:"processing"}}function la(e,t,n){const o=e.steps.map(i=>({...i})),r=o[t];if(!r)return e;n.status==="success"||n.status==="completed"?(o[t]={...r,status:"success",transactionHash:n.transactionHash},t+1<o.length&&o[t+1].status==="pending"&&(o[t+1]={...o[t+1],status:"processing"})):n.status==="reverted"||n.status==="error"?o[t]={...r,status:"failed",transactionHash:n.transactionHash,error:n.error}:o[t]={...r,status:"processing"};const s=o.some(i=>i.status==="failed"),a=o.every(i=>i.status==="success");return{...e,steps:o,overallStatus:s?"failed":a?"success":"processing"}}function $f({checkStepStatus:e,retryStep:t,maxRetries:n=3,pollingInterval:o=2500,pollTimeoutMs:r=3e5}){const[s,a]=L(null),i=j(null),l=j(null),c=j(!1),u=j(!1),d=j(0),p=j({}),w=j(0),m=se(b=>{i.current=b,a(b)},[]),g=se(()=>{l.current&&(clearInterval(l.current),l.current=null)},[]),h=se(()=>{d.current=0,p.current={},w.current=0,c.current=!0,g(),m(null)},[g,m]),y=se((b,A)=>{g(),c.current=!1,m(ed(b,A))},[g,m]),C=se((b,A)=>{const O=i.current;O&&m(la(O,b,A))},[m]),S=se((b,A)=>{g(),c.current=!1,u.current=!1,d.current=0,p.current={},w.current=Date.now(),m(ed(b,A));const O=async()=>{if(!(c.current||u.current||!e)){u.current=!0;try{if(Jf({now:Date.now(),lastProgressAt:w.current,pollTimeoutMs:r})){const F=i.current;F&&m({...F,steps:F.steps.map(T=>T.status==="success"?T:{...T,status:"failed",error:"Taking longer than expected. It may still complete - check the explorer, then refresh."}),overallStatus:"failed"}),c.current=!0,g();return}const v=i.current;if(!v)return;const x=v.steps.findIndex(F=>F.status!=="success");if(x===-1){c.current=!0,g();return}if(!(x===0||v.steps[x-1].status==="success"))return;try{const F=v.steps[x].stepId,{data:T}=await e(b,F);if(d.current=0,T.status==="success"&&(w.current=Date.now()),T.status==="reverted"){const M=p.current[F]||0;if(t&&M<n){p.current[F]=M+1;try{await t(b,F)}catch(k){console.error(`[intentStatus] retry failed for step ${F}:`,k)}m(la(i.current,x,{status:"executing"}));return}}const B=la(i.current,x,T);m(B),B.overallStatus!=="processing"&&(c.current=!0,g())}catch(F){d.current+=1,console.error(`[intentStatus] poll error (${d.current}/${_c}):`,F),d.current>=_c&&(m(la(i.current,x,{status:"error"})),c.current=!0,g())}}finally{u.current=!1}}};O(),l.current=setInterval(O,o)},[e,t,n,o,r,g,m]);return ue(()=>()=>g(),[g]),{intentStatus:s,startStatusPolling:S,beginStatusTracking:y,applyStepUpdate:C,stopStatusPolling:g,clearStatus:h}}function _f(e,t){return(t||"").trim()||`Transaction ${e}. The transaction was rejected on-chain. This may be due to insufficient balance, price changes, or health factor constraints. Please verify your positions and try again.`}const em=350,tm=2500;async function td(e){const{actionId:t,intentIndex:n,intentId:o,stepIndex:r,maxPolls:s=48,maxExecuteAttempts:a=3,pollsBeforeRetry:i=5,maxConsecutiveStatusErrors:l=15,onStatusMessage:c,onStepUpdate:u,signal:d,chainId:p,startWithExecute:w=!0,observeOnly:m=!1,relayer:g=qe,completeOnExecution:h=!1}=e;if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");let y="pending",C,S,b=e.initialExecuteAttempts??0,A=0,O,v;const x=new Promise((T,B)=>{O=T,v=()=>B(new Be("ABORT","Execution transaction aborted"))}),F=()=>{b++,e.onExecuteAttempt?.(b),g.executeStep(t,n,r,{action:"execute"}).then(T=>{T.transactionHash&&(C=T.transactionHash),T.status==="success"&&O({status:T.status,transactionHash:T.transactionHash})}).catch(T=>{const B=T instanceof Error?T.message:String(T);console.warn(`[execution] executeStep ${r} attempt ${b} error (will poll):`,B)})};d?.addEventListener("abort",v,{once:!0});try{w&&!m&&b<a&&F();for(let T=0;T<s;T++){const B=T===0?em:tm;try{const k=await Promise.race([wo(B).then(()=>{}),x]);if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");const E=k??await Promise.race([g.checkStepStatus(o,r,h).then(D=>D.data),x]);if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");A=0,y=E.status,S=E.error;const I=E.transactionHash;I&&(C=I),h&&/^0x[0-9a-f]{64}$/i.test(I??"")&&(E.executionStatus==="success"||E.executionStatus==="reverted")&&(y=E.executionStatus,S=void 0),u?.({status:y,transactionHash:C,error:S})}catch(k){if(k instanceof Error&&(k.name==="AbortError"||k instanceof Be&&k.code==="ABORT"))throw k;if(A++,A>=l){if(!m)throw k;c?.("Status is temporarily unavailable. The backend continues this action.",C)}continue}if(!m&&y==="created"&&T>=b*i&&b<a&&F(),y==="reverted"||y==="error")throw new Be("ON_CHAIN_REVERT",_f(y,S),{status:y,txHash:C,actionId:t,intentId:o,stepId:r,chainId:p});if(y==="success"||y==="completed")return C;let M="Waiting for solver...";y==="executing"?M="Transaction executing...":y==="submitted"?M="Transaction submitted...":y==="created"&&(M="Waiting for relayer..."),c?.(M,C)}throw new Be("POLLING_EXHAUSTED",`Transaction is still processing (status: ${y}). This doesn't mean it failed \u2014 the solver may still complete it. Check your positions in a few minutes, or try refreshing the page.`,{actionId:t,intentId:o,stepId:r,lastStatus:y,pollAttempts:s,maxPolls:s,txHash:C})}finally{d?.removeEventListener("abort",v)}}async function nm(e){const{actionId:t,intentIndex:n,intentId:o,totalSteps:r,observeOnly:s,delayBeforeSpicenetStepMs:a=5e3,isSpicenetStep:i,beforeStep:l,maxExecuteAttemptsForStep:c,maxPolls:u=48,onStatusMessage:d,onStepUpdate:p,signal:w}=e;let m;for(let g=e.startStep??0;g<r;g++){if(!s&&g>0&&i?.(g)&&a>0&&await wo(a),s||await l?.(g),w?.aborted)throw new Be("ABORT","Execution transaction aborted");const h=c?.(g)??3,y=await td({actionId:t,intentIndex:n,intentId:o,stepIndex:g,observeOnly:s,startWithExecute:e.startWithExecute,relayer:e.relayer,maxPolls:u,maxExecuteAttempts:h,initialExecuteAttempts:e.executeAttempts?.get(g),onExecuteAttempt:C=>e.executeAttempts?.set(g,C),maxConsecutiveStatusErrors:h===6?5:15,onStatusMessage:d,onStepUpdate:p?C=>p(g,C):void 0,signal:w,completeOnExecution:g===r-1&&i?.(g)===!1});y&&(m=y)}return m}const om="0xa9059cbb",rm=[Fp,yn,Qn];function nd(e){return rm.some(t=>ee(e,t))}function ca(e,t){return e.map(n=>{if(n.domain==="spicenet"||Oo(n.chainId)||n.calls.length===0)return n;const o=new Set((n.tokenTransfers??[]).filter(a=>(a.from==="escrow"||a.from==="solver")&&ee(a.to,t)).map(a=>a.token.toLowerCase()));if(o.size===0)return n;const r=[...o].some(Fe);let s=0;for(const a of n.calls){if(r&&a.value>0n&&a.data==="0x"&&nd(a.to)){s+=1;continue}if(!a.data?.startsWith(om))break;try{const i=Zn({abi:lt,data:a.data});if(i.functionName!=="transfer")break;const[l]=i.args;if(!nd(l)||!o.has(a.to.toLowerCase()))break;s+=1}catch{break}}return s===0?n:{...n,calls:n.calls.slice(s)}})}async function od(e,t,n){if(!t||!/^0x[0-9a-f]{64}$/i.test(t))throw new Error("The destination receipt is not available yet; reconcile the existing action before retrying.");const o=()=>new Be("ABORT","Execution observation retired");if(n?.aborted)throw o();const r=await new Promise((s,a)=>{const i=()=>a(o());n?.addEventListener("abort",i,{once:!0}),Promise.resolve().then(()=>e.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1})).then(s,a).finally(()=>n?.removeEventListener("abort",i))});if(n?.aborted)throw o();if(r.transactionHash?.toLowerCase()===t.toLowerCase()&&r.status==="reverted")throw new Be("ON_CHAIN_REVERT","The destination transaction reverted.",{status:"reverted",txHash:t});if(r.transactionHash?.toLowerCase()!==t.toLowerCase()||r.status!=="success")throw new Error("The destination transaction has not been confirmed successfully. Reconcile the existing action before retrying.");return t}async function da(e){let t=e.hash,n=!1;const o=Date.now()+12e4,r=a=>a.transactionHash&&a.transactionHash.toLowerCase()!==t.toLowerCase();let s=await e.client.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1,onReplaced:a=>{const i=a.transaction,l=a.replacedTransaction;if(!(a.reason==="repriced"&&l?.hash?.toLowerCase()===t.toLowerCase()&&l?.to?.toLowerCase()===e.call.to.toLowerCase()&&(l.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(l.value??0)===e.call.value&&l?.from&&l.nonce!==void 0&&/^0x[0-9a-f]{64}$/i.test(i?.hash??"")&&i?.to?.toLowerCase()===e.call.to.toLowerCase()&&(i.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(i.value??0)===e.call.value&&i.from?.toLowerCase()===l?.from?.toLowerCase()&&i.nonce===l?.nonce)){n=!0,e.onCancelled?.();return}t=i.hash,e.onRepriced?.(t)}});if(n)throw new Error("Transaction was cancelled or replaced with a different action; retry the unfinished action");if((e.confirmations??1)>1&&!r(s)&&s.status==="success"&&(s=await e.client.waitForTransactionReceipt({hash:t,timeout:Math.max(o-Date.now(),1),pollingInterval:2e3,confirmations:e.confirmations})),r(s))throw new Error("Unexpected transaction receipt; recover the submitted transaction before retrying");return{receipt:s,hash:t}}const Si=10n,sm=5;function Ai(e){return e.map(t=>({...t,calls:[...t.calls],tokenTransfers:t.tokenTransfers?[...t.tokenTransfers]:void 0}))}function ua({token:e,recipient:t,amount:n}){return{to:e,value:0n,data:Et({abi:lt,functionName:"transfer",args:[t,n]})}}function am({chainBatches:e,token:t,amount:n}){const o=Ai(e),r=o[o.length-1];if(!r)return o;const s=Bo(r.chainId);return r.calls=[...r.calls,ua({token:t,recipient:s,amount:n})],o}function rd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:r,policy:s}){const a=Ai(e),i=a[a.length-1];if(!i)throw new Be("INVALID_PARAMS","Action-output escrow funding requires at least one chain batch.");const l=Hs(o,BigInt(s?.platformBps??Si)),c=r+l;if(c>=o)throw new Be("INVALID_PARAMS","Borrow amount is too small after gas and Spicenet fees.",{grossAmount:o.toString(),gasFee:r.toString(),spicenetFee:l.toString()});const u=o-c,d=Bo(i.chainId),p=[];return r>0n&&p.push(ua({token:n,recipient:s?.gasRecipient??yn,amount:r})),l>0n&&p.push(ua({token:n,recipient:s?.platformRecipient??Qn,amount:l})),i.calls=[...i.calls,...p,ua({token:n,recipient:d,amount:u})],i.tokenTransfers=[...i.tokenTransfers??[],...r>0n?[{from:t,to:yn,token:n,amount:r}]:[],...l>0n?[{from:t,to:Qn,token:n,amount:l}]:[],{from:t,to:d,token:n,amount:u}],{chainBatches:a,gasFee:r,spicenetFee:l,netEscrowAmount:u,outputCredit:{chainId:i.chainId,token:n,amount:o}}}async function sd({chainBatches:e,user:t,token:n,grossAmount:o,chainAuthorizations:r}){let s=0n,a,i=rd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:s});for(let l=0;l<sm;l+=1){const c=Io(i.chainBatches),u=await qe.estimateBatchGas({user:t,outputToken:n,chainBatches:i.chainBatches.map((p,w)=>({...p,hash:c[w].hash})),chainAuthorizations:r}),d=u.gasFee;if(d===s&&JSON.stringify(u.policy)===JSON.stringify(a))return i;a=u.policy,s=d,i=rd({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:s,policy:a})}throw new Be("INVALID_PARAMS","Action-output fee estimate did not converge. Please retry.")}function Mo(e){return Oo(e.chainId)}const im="0xa9059cbb";function ms(e,t){return`${e}:${pt(t).toLowerCase()}`}function ad(e,t){return t===jt.toLowerCase()?{symbol:ro(e),decimals:18}:Xt(t,e)??{symbol:"tokens",decimals:18}}function lm(e,t){const n=Xt(t,e);return[n?.equivalenceGroup,n?.symbol,n?.name]}async function Ei(e){return Qs(e)}async function Fi(e,t,n){const o=new Map,r=new Map,s=[...n?.walletFundingRequirement?[n.walletFundingRequirement]:[],...n?.walletFundingRequirements??[]];for(const d of s){if(d.amount<0n)throw new Error("Accepted wallet funding must not be negative");const p=ms(d.chainId,d.token);r.set(p,(r.get(p)??0n)+d.amount),o.set(p,0n)}const a=new Map,i=new Map,l=new Map,c=new Map;for(const d of n?.actionOutputCredits??[]){const p=ms(d.chainId,d.token);c.set(p,(c.get(p)??0n)+d.amount)}for(const d of e){if(Mo(d))continue;for(const m of d.tokenTransfers??[]){if(m.from!=="escrow"&&m.from!=="solver"||!ee(m.to,t))continue;const g=BigInt(m.amount??0);if(g<=0n)continue;const h=ms(d.chainId,m.token);a.set(h,(a.get(h)??0n)+g),m.from==="escrow"&&i.set(h,(i.get(h)??0n)+g)}const p=os(d.chainId),w=m=>!!p&&p!==jt&&ee(m,p);for(const m of d.calls){if(m.value&&m.value>0n){const g=ms(d.chainId,jt);o.set(g,(o.get(g)??0n)+m.value),w(m.to)&&l.set(g,(l.get(g)??0n)+m.value)}if(m.data?.startsWith(im))try{const g=Zn({abi:lt,data:m.data});if(g.functionName!=="transfer")continue;const[h,y]=g.args,C=m.to.toLowerCase(),S=ms(d.chainId,C);o.set(S,(o.get(S)??0n)+y),w(h)&&l.set(S,(l.get(S)??0n)+y)}catch{}}}let u=null;for(const[d,p]of i){const w=p-(l.get(d)??0n);if(w<=0n)continue;const[m,g]=d.split(":"),h=Number(m),y=ad(h,g);u??(u=await Ei(t));const C=Lc(u,h,g,lm(h,g));if(!(C>=w))throw new Be("INVALID_PARAMS",`Insufficient Spice ${y.symbol}: needs ${De(w,y.decimals)}, has ${De(C,y.decimals)}.`,{chainId:h,token:g,userAddress:t,requiredAmount:w.toString(),balance:C.toString(),balanceSource:"spice"})}for(const[d,p]of o){const[w,m]=d.split(":"),g=Number(w);let h=p-(a.get(d)??0n)-(c.get(d)??0n);const y=r.get(d)??0n;if(y>h&&(h=y),h<=0n)continue;const C=Ct(g),S=m===jt.toLowerCase()?await C.getBalance({address:t}):await C.readContract({address:m,abi:lt,functionName:"balanceOf",args:[t]});if(S>=h)continue;const b=ad(g,m);throw new Be("INVALID_PARAMS",`Insufficient ${b.symbol} on ${ro(g)}: needs ${De(h,b.decimals)}, has ${De(S,b.decimals)}.`,{chainId:g,token:m,userAddress:t,requiredAmount:h.toString(),balance:S.toString(),balanceSource:"wallet"})}}function cm({chainBatches:e,tokenAddress:t,tokenTransferAmount:n,useCustomTransfers:o}){if(!(e.some(Mo)||!(o?e.some(r=>Mo(r)?!1:(r.tokenTransfers??[]).some(s=>s.from==="escrow"&&BigInt(s.amount??0)>0n)):n>0n)))throw new Be("INVALID_PARAMS","Payouts funded from Spice balance require a Spicenet funding batch before the destination chain batch. Deposits into Spice balance and gas-only actions do not need one.",{tokenAddress:t,tokenTransferAmount:n.toString(),useCustomTransfers:!!o})}function dm(e,t,n,o){t.forEach((r,s)=>{if(!r.to||!r.from||!r.token||r.amount===void 0)throw new Be("INVALID_TOKEN_TRANSFER",`tokenTransfers[${s}] on chain ${e} is missing required fields (to/from/token/amount). This usually means the embedded wallet wasn't ready when the intent was built \u2014 please retry.`,{chainId:e,transferIndex:s,transfer:{from:r.from,to:r.to,token:r.token,amount:r.amount?.toString()},signingAddress:n,useCustomTransfers:o})})}function pa({user:e,chainBatches:t,tokenAddress:n,tokenTransferAmount:o,exp:r,signature:s,chainAuthorizations:a,useCustomTransfers:i}){const l=t,c=Io(l),u=l.filter(d=>!Mo(d)).length;if(cm({chainBatches:l,tokenAddress:n,tokenTransferAmount:o,useCustomTransfers:i}),!i&&o>0n&&u>1)throw new Be("INVALID_PARAMS","Multiple non-Spicenet batches require explicit tokenTransfers. Pass useCustomTransfers with per-batch transfers instead of relying on the default escrow payout injection.",{nonSpicenetBatchCount:u,tokenAddress:n,tokenTransferAmount:o.toString()});return{user:e,...a?{chainAuthorizations:a}:{},intents:[{mode:"7702",signatureType:"ecdsa",signature:s,nbf:0,exp:r,chainBatches:c.map((d,p)=>{const w=l[p],m=Mo(w)?[]:i?w.tokenTransfers??[]:o>0n?[{from:"escrow",to:e,token:n,amount:o}]:[];return dm(Number(d.chainId),m,e,i),{hash:d.hash,chainId:Number(d.chainId),tokenTransfers:m,calls:d.calls}})}]}}function id(e,t){const n=t?.depositToEscrow?.gasFundingSource==="action-output"?t.depositToEscrow:null,o=t?.depositToEscrow&&!n?am({chainBatches:e,token:t.depositToEscrow.token,amount:t.depositToEscrow.amount}):Ai(e);return{actionOutputDeposit:n,batches:o}}let Ti=!1;function Dr(){const{address:e,isConnected:t,isAuthenticated:n,actions:o}=Eo(),r=j(null),s=j(0),a=j(null),{intentStatus:i,startStatusPolling:l,beginStatusTracking:c,applyStepUpdate:u,clearStatus:d}=$f({checkStepStatus:(S,b)=>qe.checkStepStatus(S,b),retryStep:async(S,b)=>{const[A,O]=S.split("/"),v=parseInt(O||"0",10);await qe.executeStep(A,v,b,{action:"execute"})}}),p=se(()=>{s.current++,a.current=null,d()},[d]),w=j(o),m=j(new Map);w.current=o;const g=se((S,b,A,O,v)=>Ii({chainBatches:S,signingAddress:b,actions:w.current,cache:m.current,signal:A,onSignatureRequested:O,beforeSign:v}),[]),h=se((S,b,A,O)=>Ci(w.current,S,b,A,O),[]),y=se(async(S,b,A,O,v,x)=>{let F={},T={};const B=(k,E,I)=>{I?.actionId&&(F={actionId:I.actionId,intentId:I.intentId,intentIndex:I.intentIndex,totalSteps:I.totalSteps,autoContinue:I.autoContinue,user:x?.userOverride||e}),O?.({step:k,message:E,...T,...F,...I})};if(Ti)throw new Be("CONCURRENT_EXECUTION","A execution transaction is already in progress. Please wait.");Ti=!0;const M=s.current;try{if(!e)throw new Be("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const k=x?.userOverride||e,E=qe.getBaseUrl(),I=a.current;if(I&&ee(I.user,k)&&I.apiUrl===E){if(I.resume)return await I.resume(S,b,A,v,O,x);throw I.error}a.current=null;const D=Ne=>Hl(Ne.map(We=>({...We,tokenTransfers:We.tokenTransfers??[]})),[]),P=D(S),H=Ne=>new Map(Object.entries(Ne??{}).filter(([We,we])=>We!=="signal"&&(typeof we!="function"||["prepareForSigning","adjustBatchesForEstimate","resolveActionOutputCredits"].includes(We))).map(([We,we])=>[We,typeof we=="function"?we:JSON.stringify(we,(Ye,ke)=>typeof ke=="bigint"?ke.toString():ke)])),Q=H(x),G=await qe.supportsAutomaticContinuation({signal:v}),{actionOutputDeposit:oe,batches:$}=id(S,x);let V=$,re=[],X=x?.useCustomTransfers,he=Zc(V),be=null;const fe=async()=>{(x?.walletFundingRequirement||x?.walletFundingRequirements?.length)&&await Fi([],k,{walletFundingRequirement:x?.walletFundingRequirement,walletFundingRequirements:x?.walletFundingRequirements});for(let Ne=0;he.length>0&&Ne<3;Ne++)try{be=await Ei(k);break}catch(We){if(v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(Ne===2)throw new Be("RELAYER_ERROR","Unable to read your Spice balance. Please try again before submitting the transaction.",{cause:We});await wo(1e3)}await x?.validateBeforeSubmit?.(V)};B("building","Preparing your wallet and transaction...");const xe=await g(V,k,v,()=>B("signing-delegation","Confirm the authorization in your wallet..."),fe);if(B("building","Checking transaction fees and balances..."),v?.aborted)throw new Be("ABORT","Execution transaction aborted");const te=BigInt(Math.floor(Date.now()/1e3)+3600);if(oe){const Ne=await sd({chainBatches:S,user:k,token:oe.token,grossAmount:oe.amount,chainAuthorizations:xe});V=Ne.chainBatches,re=[Ne.outputCredit],X=!0}if(!x?.skipPreSubmitFeeEstimate){let Ne=!1;if(x?.feeExecutionMode==="user-transfer"&&x.adjustBatchesForEstimate&&qe.canValidateActionFees()){const We=await qe.validateActionFees(pa({user:k,chainBatches:V,tokenAddress:b,tokenTransferAmount:A,exp:Number(te),signature:"0x00",chainAuthorizations:xe,useCustomTransfers:X}),{signal:v});r.current=We;const we=await x.adjustBatchesForEstimate({feeEstimate:We,chainBatches:V});Ne=!we||Yc(V,we),we&&(V=we)}for(let We=0;!Ne&&We<10;We++){const we=x?.feeExecutionMode==="user-transfer"?ca(V,k):V,Ye=pa({user:k,chainBatches:we,tokenAddress:b,tokenTransferAmount:A,exp:Number(te),signature:"0x00",chainAuthorizations:xe,useCustomTransfers:X}),ke=await qe.estimateActionFees(Ye,{signal:v});r.current=ke;const He=await x?.adjustBatchesForEstimate?.({feeEstimate:ke,chainBatches:V}),ft=!!He&&Yc(V,He);if(!He||ft){Ne=!0;break}V=He}if(!Ne)throw new Be("INVALID_PARAMS","Fee estimate did not converge. Please retry.")}if(x?.prepareForSigning){const Ne=await x.prepareForSigning(V);if(Ne.length!==V.length||Ne.some((We,we)=>We.chainId!==V[we].chainId||We.domain!==V[we].domain))throw new Error("The funded route changed before signing");V=Ne}x?.resolveActionOutputCredits&&(re=await x.resolveActionOutputCredits()),(!x?.skipUserFundingPreflight||x.walletFundingRequirement||x.walletFundingRequirements?.length)&&await Fi(x?.skipUserFundingPreflight?[]:V,k,{actionOutputCredits:re,walletFundingRequirement:x?.walletFundingRequirement,walletFundingRequirements:x?.walletFundingRequirements}),he=Zc(V),he.length&&!be&&(be=await Qs(k)),await x?.validateBeforeSubmit?.(V),B("building","Preparing the signing request...");const K=await h(V,te,v,()=>B("signing-intent","Confirm the transaction in your wallet..."));if(v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(E!==qe.getBaseUrl())throw new Be("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");const le=pa({user:k,chainBatches:V,tokenAddress:b,tokenTransferAmount:A,exp:Number(te),signature:K,chainAuthorizations:xe,useCustomTransfers:X});let N=V.length-1;for(;N>=0&&Mo(V[N]);)N--;T={totalSteps:V.length},N>=0&&(T={...T,destinationChainId:Number(V[N].chainId),destinationStepIndex:N});const Le=Date.now();if(B("submitting","Submitting to relayer..."),await x?.validateBeforeSubmit?.(V),v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(E!==qe.getBaseUrl())throw new Be("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");console.debug("[SpiceFlow:execution]",{phase:"submit-check-complete",at:Date.now(),durationMs:Date.now()-Le});const Te=V.length;let z;try{z=await qe.createAction(le,{autoContinue:G,idempotencyKey:x?.idempotencyKey,signal:v,onAccepted:Ne=>{const[We,we="0"]=Ne.intentIds[0].split("/"),Ye=parseInt(we,10);B("executing","Executing on chain...",{actionId:We,intentId:`${We}/${Ye}`,intentIndex:Ye,totalSteps:Te,autoContinue:Ne.autoContinue===!0})}})}catch(Ne){throw M===s.current&&Ne instanceof Be&&Ne.context.submissionStatus==="unknown"&&(a.current={user:k,apiUrl:E,error:Ne}),Ne}const[q,ne]=z.intentIds[0].split("/"),de=parseInt(ne||"0",10),J=`${q}/${de}`;B("executing","Executing on chain..."),B("executing","Executing on chain...",{actionId:q,intentId:J,intentIndex:de,totalSteps:V.length,autoContinue:z.autoContinue===!0});const ie=new Jr;ie.setBaseUrl(E);let ze,Se=0;const Ce=new Map,et=async(Ne,We=O,we=!1)=>{const Ye=(ke,He,ft)=>We?.({step:ke,message:He,...ft});try{if((!we||!ze)&&(ze=await nm({actionId:q,intentIndex:de,intentId:J,totalSteps:Te,signal:Ne,observeOnly:z.autoContinue===!0,startWithExecute:!we,startStep:we?Se:0,executeAttempts:Ce,onStepUpdate:(ke,He)=>{(He.status==="success"||He.status==="completed")&&(Se=Math.max(Se,ke+1))},relayer:z.autoContinue||we?ie:qe,...be?{delayBeforeSpicenetStepMs:0}:{},isSpicenetStep:ke=>Mo(V[ke]),beforeStep:async ke=>{if(z.autoContinue===!0||!be||!Mo(V[ke]))return;const He=await $c({deposits:he,baseline:be,fetchEntries:()=>Ei(k),signal:Ne});if(Ne?.aborted)throw new Be("ABORT","Execution transaction aborted");if(!He)throw new Be("POLLING_EXHAUSTED","Your deposit is still waiting for Spice credit. Check this transaction's status before trying again.",{actionId:q,intentId:J,stepId:ke})},maxExecuteAttemptsForStep:ke=>Mo(V[ke])?6:3,maxPolls:z.autoContinue?Number.POSITIVE_INFINITY:180,onStatusMessage:(ke,He)=>{Ye("executing",ke,{txHash:He,actionId:q,intentId:J,intentIndex:de,totalSteps:Te,autoContinue:z.autoContinue===!0})}})),x?.requireDestinationReceipt){const ke=[...V].reverse().find(He=>!Mo(He));if(!ke)throw new Error("The action has no destination transaction to verify.");await od(Ct(ke.chainId),ze,Ne)}return Ye("success","Transaction successful!",{txHash:ze,actionId:q,intentId:J,intentIndex:de,totalSteps:Te,autoContinue:z.autoContinue===!0}),a.current?.resume===Me&&(a.current=null),ze||q}catch(ke){if(ke instanceof Be&&ke.code==="ON_CHAIN_REVERT"&&ke.context.status==="reverted"&&(ke.context.stepId===0||Te===1))throw a.current?.resume===Me&&(a.current=null),ke;const He=new Be(ke instanceof Be?ke.code:"RELAYER_STATUS_ERROR",ke instanceof Be&&ke.code==="ON_CHAIN_REVERT"?ke.message:`Your action was accepted, but its completion could not be confirmed. Check the original action before trying again. ${ke instanceof Error?ke.message:""}`.trim(),{...ke instanceof Be?ke.context:{},submissionStatus:"accepted",actionId:q,intentId:J,txHash:ze,cause:ke});throw M===s.current&&(a.current={user:k,apiUrl:E,error:He,resume:Me}),He}},Me=async(Ne,We,we,Ye,ke,He)=>{const ft=H(He);if(P!==D(Ne)||Q.size!==ft.size||[...Q].some(([Ze,nt])=>ft.get(Ze)!==nt)||!ee(b,We)||A!==we)throw a.current.error;return et(Ye,ke,!0)};return await et(v,O)}catch(k){throw console.error("[Execution] Error:",k),B("error",k.message||"Transaction failed",{error:k.message,...k?.context?.submissionStatus==="unknown"?{submissionStatus:"unknown",...typeof k.context.idempotencyKey=="string"&&/^0x[0-9a-f]{64}$/i.test(k.context.idempotencyKey)?{idempotencyKey:k.context.idempotencyKey}:{},...typeof k.context.user=="string"&&/^0x[0-9a-f]{40}$/i.test(k.context.user)?{user:k.context.user}:{}}:{}}),k}finally{Ti=!1}},[e,n,g,h]),C=se(async(S,b,A,O)=>{if(!e&&(!O?.userOverride||O.signAuthorizationsForEstimate))throw new Be("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const v=O?.userOverride||e,x=O?.validateFeeCalls===!0&&O.feeExecutionMode==="user-transfer"&&qe.canValidateActionFees(),{actionOutputDeposit:F,batches:T}=id(S,O);let B=T;const M=O?.feeExecutionMode==="user-transfer"&&!x?ca(B,v):B,k=O?.signAuthorizationsForEstimate?await g(M,v):void 0;let E=O?.useCustomTransfers;F&&(B=(await sd({chainBatches:S,user:v,token:F.token,grossAmount:F.amount,chainAuthorizations:k})).chainBatches,E=!0);const I=O?.feeExecutionMode==="user-transfer"&&!x?ca(B,v):B,D=pa({user:v,chainBatches:I,tokenAddress:b,tokenTransferAmount:A,exp:Math.floor(Date.now()/1e3)+3600,signature:"0x00",chainAuthorizations:k,useCustomTransfers:E}),P=await(x?qe.validateActionFees(D,{signal:O?.signal}):qe.estimateActionFees(D,{signal:O?.signal}));return r.current=P,P},[e,g]);return{execute:y,estimate:C,lastFeeEstimate:r.current,hasEmbeddedWallet:t&&n,intentStatus:i,startStatusPolling:l,beginStatusTracking:c,applyStepUpdate:u,clearStatus:p}}function pn(e,t,n,o){if(t===n)return e;if(t<n)return e*10n**BigInt(n-t);const r=10n**BigInt(t-n);return o==="ceil"?(e+r-1n)/r:e/r}function Tn(e,t){if(!Number.isInteger(t)||t<0||t>255)throw new Error("Invalid token decimals");if(!/^\d+(?:\.\d*)?$/.test(e))throw new Error("Enter a valid amount.");if((e.split(".")[1]?.replace(/0+$/,"")??"").length>t)throw new Error(`Use at most ${t} decimal places for this source.`);return Jn(e,t)}function kn(e,t,n){const o=pn(e,t,n,"floor");if(pn(o,n,t,"floor")!==e)throw new Error(`Use at most ${n} decimal places for this delivered token.`);return o}function um(e){return`0x77${e.slice(4)}`}function hs({userAddress:e,destinationChainId:t,deliveryToken:n,deliveryAmount:o,withdrawalAmount:r,deliveryRecipient:s,deliveryTransfers:a,requestTimestampMs:i,expiresAt:l,metadata:c,requestNonce:u}){if(l!==void 0&&(!Number.isSafeInteger(l)||l<=0))throw new Error("Withdrawal expiry must be a positive Unix timestamp in seconds");const d=a?.length?a:[{token:n,recipient:s,amount:r??o}],p=d.reduce((y,C)=>y+C.amount,0n);if(p<=0n)return null;const w=i??Date.now(),m=BigInt(Math.floor(w/1e3)),g=e??s,h=um(mr(qo([{type:"address"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},...u?[{type:"bytes32"}]:[]],[g,n,s,p,BigInt(t),BigInt(w),...u?[u]:[]])));return{chainId:Ql,domain:"spicenet",tokenTransfers:[],calls:[{to:jt,value:0n,data:Et({abi:Ks,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${t}`,idempotenceKey:h,nbf:0n,exp:l===void 0?m+3600n:BigInt(l),metadata:c??"{}",transfers:d.map(y=>({token:un(y.token).toLowerCase(),to:un(y.recipient).toLowerCase(),amount:y.amount}))}]})}]}}const Bi=e=>{const[t,n]=L(!1),o=an(_t),{dark:r,dk:s}=sn();if(ue(()=>{n(!0)},[]),!t)return f("div",{className:e.className,children:f("button",{disabled:!0,style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?s.hoverBg:"#ccc",color:r?s.textSecondary:"white",border:r?`1px solid ${s.buttonBorder}`:"none",borderRadius:"4px",cursor:"not-allowed"},children:"Loading..."})});if(!o){const a='ProviderLogin must be used within SpiceFlowProvider. Please wrap your app with <SpiceFlowProvider provider="privy">.';return f("div",{className:e.className,children:f("button",{onClick:()=>{e.onAuthError&&e.onAuthError(a)},style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?s.errorBg:"#dc2626",color:r?s.errorText:"white",border:r?`1px solid ${s.errorBorder}`:"none",borderRadius:"4px",cursor:"pointer"},children:"Provider Not Found"})})}return f(up,{...e})},gs=({size:e=20,strokeWidth:t=2,color:n="currentColor",style:o})=>R("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:o,children:[f("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),ws=(e,t,n,o)=>({width:e,height:e,fill:"none",className:t,"aria-hidden":n??!0,style:o}),Mr=({size:e=16,color:t="currentColor",strokeWidth:n=2,direction:o="down",className:r,style:s,"aria-hidden":a})=>f("svg",{...ws(e,r,a,{transform:o==="up"?"rotate(180deg)":void 0,transition:"transform 0.3s ease",...s}),viewBox:"0 0 16 16",children:f("path",{d:"M4 6L8 10L12 6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),pm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>R("svg",{...ws(e,o,s,r),viewBox:"0 0 24 24",children:[f("circle",{cx:"11",cy:"11",r:"8",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"m21 21-4.3-4.3",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]}),fm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ws(e,o,s,r),viewBox:"0 0 24 24",children:f("path",{d:"m6 9 6 6 6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),mm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ws(e,o,s,r),viewBox:"0 0 24 24",children:f("path",{d:"m9 18 6-6-6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),ld=({size:e=14,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ws(e,o,s,r),viewBox:"0 0 16 16",children:f("path",{d:"M3 8L6.5 11.5L13 5",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),cd=({isSuccess:e,type:t,chainName:n,explorerUrl:o,txHash:r,dark:s=!1,successBg:a="#d1fae5",successBorder:i="#6ee7b7",successText:l="#065f46",errorBg:c="#fee2e2",errorBorder:u="#fca5a5",errorText:d="#dc2626",textSecondary:p="#6b7280"})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderRadius:"8px",backgroundColor:e?a:c,border:e?`1px solid ${i}`:`1px solid ${u}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[f("div",{style:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:e?"#10b981":"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:e?f("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f("path",{d:"M11.6667 3.5L5.25 9.91667L2.33333 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):f("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),R("div",{children:[f("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.5px",color:e?l:d},children:e?`${t.toUpperCase()} CONFIRMED`:`${t.toUpperCase()} FAILED`}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:p},children:["on ",n]})]})]}),o&&r&&R("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px",color:p,textDecoration:"none",whiteSpace:"nowrap"},children:["View on explorer",R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[f("path",{d:"M9 6.5V9.5C9 9.76522 8.89464 10.0196 8.70711 10.2071C8.51957 10.3946 8.26522 10.5 8 10.5H2.5C2.23478 10.5 1.98043 10.3946 1.79289 10.2071C1.60536 10.0196 1.5 9.76522 1.5 9.5V4C1.5 3.73478 1.60536 3.48043 1.79289 3.29289C1.98043 3.10536 2.23478 3 2.5 3H5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M7.5 1.5H10.5V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M5 7L10.5 1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]}),dd=`
|
|
3
|
+
import{jsx as f,jsxs as R,Fragment as kn}from"react/jsx-runtime";import{g as xt,a as At,S as Be,b as J,c as zs,i as Hs,d as Va,e as $t,f as dp,E as up,C as Qs,r as pp,R as fp,s as Wn,h as mp,j as qe,k as $r,l as Pl,m as Vs,u as Fo,n as js,o as ro,p as on,P as hp,q as Gs,B as Vt,t as nt,v as uo,w as zo,x as ja,y as Fr,z as lr,A as Ho,D as Wl,F as po,G as gp,H as _r,I as es,J as Ga,K as ts,L as wp,M as Ul,N as ns,O as Tr,Q as yp,T as os,U as Ka,V as Ya,W as To,X as Ks,Y as cr,Z as bp,_ as Ys,$ as xp,a0 as Za,a1 as vp,a2 as kp,a3 as Xa,a4 as Cp,a5 as Ll,a6 as Ip,a7 as Sp,a8 as Ap}from"./privy-DDIFUtdH.js";import{a9 as A0,ab as E0,ac as F0,ae as T0,ad as B0,aa as O0}from"./privy-DDIFUtdH.js";import ko,{useContext as an,useState as L,useMemo as we,useEffect as pe,useCallback as re,useRef as j,useId as ql,useLayoutEffect as Bo,memo as fo}from"react";import{isNativeToken as Fe,uniV3QuoterV2Abi as Ep,uniV3SwapRouterAbi as zl,applySlippage as Hl,NATIVE_TOKEN_ADDRESS as Ql,getTokenByAddress as Yt,areEquivalent as Fp,getTokensForChain as dr,getEscrowContractAddress as Oo,getEscrowContract as rs,ZERO_ADDRESS as Kt,normalizeNativeTokenAddress as ht,getChainMeta as Vl,getMainnetChains as Tp,getTestnetChains as Bp,TOKENS as jl,convertAmountBetweenDecimals as mo,hashChainBatches as Co,isSpicenetChainId as Ro,getAccountNonce as Op,SPICE_COMBINED_FEE_RECIPIENT as Rp,SPICE_GAS_FEE_RECIPIENT as Cn,SPICE_PLATFORM_FEE_RECIPIENT as zn,hashConditionalExecutionPlan as Gl,SPICENET_NATIVE_CHAIN_ID as Kl,spicenetAbi as Zs,getEquivalentAddresses as Dp,getChainIdsByNetwork as Xs,getEquivalenceGroup as Mp,getTokenBySymbol as Yl,hashConditionalIntentAuthorization as Np,getConditionalIntentId as Pp,hashConditionalReadAuthorization as Wp,hashConditionalCancellation as Up}from"@spicenet-io/spiceflow-core";import{ZERO_ADDRESS as D0,SPICENET_NATIVE_CHAIN_ID as M0,SPICE_COMBINED_FEE_RECIPIENT as N0,SPICE_GAS_FEE_RECIPIENT as P0,SPICE_PLATFORM_FEE_RECIPIENT as W0,SPICE_SOLVER_ADDRESS as U0,applySlippage as L0,buildUniV3SwapCalls as q0,getChainIdsByNetwork as z0,getEscrowContractAddress as H0,isNativeToken as Q0,isSpicenetChainId as V0,normalizeNativeTokenAddress as j0,spicenetAbi as G0,spicenetAbi as K0}from"@spicenet-io/spiceflow-core";import{useAccount as Ja,useDisconnect as $a,useConnect as Lp,useWalletClient as qp,useSwitchChain as zp}from"wagmi";import{encodeFunctionData as Tt,parseAbi as ho,concatHex as Hp,encodePacked as _a,erc20Abi as ft,decodeFunctionData as jn,encodeAbiParameters as Qo,formatUnits as Re,isAddress as Gn,getAddress as dn,keccak256 as ur,parseUnits as Kn,decodeEventLog as Qp,createWalletClient as ei,custom as ti,toHex as Zl,stringToHex as Vp,bytesToHex as Xl}from"viem";import{readContract as tr,getBalance as ni}from"viem/actions";import{useConnectWallet as Jl,usePrivy as $l,useActiveWallet as jp}from"@privy-io/react-auth";import _l,{createPortal as oi}from"react-dom";import"@tanstack/react-query";const Gp="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",Kp="spiceflow-ibm-plex-mono",Yp="spiceflow-preconnect-googleapis",Zp="spiceflow-preconnect-gstatic";function ri(e,t){if(document.getElementById(e))return;const n=t();n.id=e,document.head.appendChild(n)}function Xp(){typeof document>"u"||(ri(Yp,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.googleapis.com",e}),ri(Zp,()=>{const e=document.createElement("link");return e.rel="preconnect",e.href="https://fonts.gstatic.com",e.crossOrigin="",e}),ri(Kp,()=>{const e=document.createElement("link");return e.rel="stylesheet",e.href=Gp,e}))}const Jp={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",84532:"0x4200000000000000000000000000000000000006"},ec=ho(["function deposit() payable","function withdraw(uint256 wad)"]);function si(e){return xt(e)?.wrappedNativeTokenAddress??Jp[e]}const ai=(e,t)=>({to:e,value:t,data:Tt({abi:ec,functionName:"deposit"})}),ii=(e,t)=>({to:e,value:0n,data:Tt({abi:ec,functionName:"withdraw",args:[t]})});function li(e,t,n){const o=Fe(t),r=Fe(n);if(!o&&!r)return null;const s=si(e);return s?{weth:s,wrapIn:o,unwrapOut:r}:null}function tc(e,t,n,o){const r=li(e,t,n);return!r||o<=0n?null:r.wrapIn&&!r.unwrapOut&&n.toLowerCase()===r.weth.toLowerCase()?[ai(r.weth,o)]:r.unwrapOut&&!r.wrapIn&&t.toLowerCase()===r.weth.toLowerCase()?[ii(r.weth,o)]:null}function $p(e){return{...e,resolve:async(t,n,o,r)=>{const s=tc(n,t.tokenIn,t.tokenOut,t.amountIn);if(s)return{venue:"native-wrap",amountOut:t.amountIn,amountOutMinimum:t.amountIn,calls:s};const a=await e.resolve(t,n,o,r);if(a)return a;const i=li(n,t.tokenIn,t.tokenOut);if(!i)return null;const l=await e.resolve({...t,tokenIn:i.wrapIn?i.weth:t.tokenIn,tokenOut:i.unwrapOut?i.weth:t.tokenOut},n,o,r);return l?{...l,calls:[...i.wrapIn?[ai(i.weth,t.amountIn)]:[],...l.calls,...i.unwrapOut?[ii(i.weth,l.amountOutMinimum)]:[]]}:null}}}function _p(e){return{...e,resolve:async(t,n,o)=>{const r=tc(n,t.tokenIn,t.tokenOut,t.amountOut);if(r)return{venue:"native-wrap",amountIn:t.amountOut,amountInMax:t.amountOut,amountOut:t.amountOut,calls:r};const s=await e.resolve(t,n,o);if(s)return s;const a=li(n,t.tokenIn,t.tokenOut);if(!a)return null;const i=await e.resolve({...t,tokenIn:a.wrapIn?a.weth:t.tokenIn,tokenOut:a.unwrapOut?a.weth:t.tokenOut},n,o);return i?{...i,calls:[...a.wrapIn?[ai(a.weth,i.amountInMax)]:[],...i.calls,...a.unwrapOut?[ii(a.weth,i.amountOut)]:[]]}:null}}}const nc=[100,500,3e3,1e4];function Js(e,t,n,o,r){const s=[];for(const a of n){const i=typeof a=="object"&&!Array.isArray(a)?a:void 0,l=i?i.tokens:Array.isArray(a)?a:[a];if(!l.length||l.length>2)throw new Error("A v3 route must have one or two intermediate tokens");const c=[e,...l,t];if(i&&(i.feeTiers.length!==c.length-1||i.feeTiers.some(d=>!d.length)))throw new Error("A v3 route needs fee tiers for every pool");if(new Set(c.map(d=>d.toLowerCase())).size!==c.length)continue;const u=(d,p)=>{if(d===c.length){s.push(r==="in"?p:oc(p));return}for(const w of i?.feeTiers[d-1]??o)u(d+1,Hp([p,_a(["uint24","address"],[w,c[d]])]))};u(1,c[0])}return[...new Set(s)]}function oc(e){const t=e.slice(2),n=[];for(let o=0;o<t.length;){const r=n.length%2===0?40:6;n.push(t.slice(o,o+r)),o+=r}return`0x${n.reverse().join("")}`}const ef=ho(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),tf=ho(["function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountIn)","function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),nf=1800;function rc(e){const{config:t,route:n,tokenIn:o,tokenOut:r,recipient:s,amountOut:a}=e,i=e.amountInMaximum,l=e.routerHasDeadline?tf:ef,c=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+nf)}:{},u=n.path?Tt({abi:l,functionName:"exactOutput",args:[{path:n.path,recipient:s,...c,amountOut:a,amountInMaximum:i}]}):Tt({abi:l,functionName:"exactOutputSingle",args:[{tokenIn:o,tokenOut:r,fee:n.fee,recipient:s,...c,amountOut:a,amountInMaximum:i,sqrtPriceLimitX96:0n}]});return{to:t.swapRouter,value:0n,data:u}}const of=ho(["function quoteExactInput(bytes path, uint256 amountIn) returns (uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)","function quoteExactOutput(bytes path, uint256 amountOut) returns (uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)"]);async function ss(e,t,n,o,r){const s=At(e),{result:a}=await s.simulateContract({address:t.quoterV2,abi:of,functionName:r==="in"?"quoteExactInput":"quoteExactOutput",args:[n,o]}),[i,,,l]=a;if(i<=0n)throw new Error("No liquidity along this path.");return{amount:i,gasEstimate:l}}async function rf(e){const{tokenIn:t,tokenOut:n,amountIn:o,fee:r,chainId:s,config:a}=e;if(o<=0n)throw new Error("amountIn must be greater than 0");const i=(await At(s).simulateContract({address:a.quoterV2,abi:Ep,functionName:"quoteExactInputSingle",args:[{tokenIn:t,tokenOut:n,amountIn:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(i[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 output.");return{amountOut:i[0],sqrtPriceX96After:i[1],gasEstimate:i[3]}}async function sc(e){const t=e.feeTiers??nc,n=Js(e.tokenIn,e.tokenOut,e.hubs??[],t,"in"),o=await Promise.allSettled([...t.map(async s=>({...await rf({...e,fee:s}),fee:s})),...n.map(async s=>{const a=await ss(e.chainId,e.config,s,e.amountIn,"in");return{amountOut:a.amount,sqrtPriceX96After:0n,gasEstimate:a.gasEstimate,fee:0,path:s}})]);let r=null;for(const s of o)s.status==="fulfilled"&&(!r||s.value.amountOut>r.amountOut)&&(r=s.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}const sf=[{inputs:[{components:[{name:"tokenIn",type:"address"},{name:"tokenOut",type:"address"},{name:"amount",type:"uint256"},{name:"fee",type:"uint24"},{name:"sqrtPriceLimitX96",type:"uint160"}],name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{name:"amountIn",type:"uint256"},{name:"sqrtPriceX96After",type:"uint160"},{name:"initializedTicksCrossed",type:"uint32"},{name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function af(e){const{tokenIn:t,tokenOut:n,amountOut:o,fee:r,chainId:s,config:a}=e;if(o<=0n)throw new Error("amountOut must be greater than 0");const i=(await At(s).simulateContract({address:a.quoterV2,abi:sf,functionName:"quoteExactOutputSingle",args:[{tokenIn:t,tokenOut:n,amount:o,fee:r,sqrtPriceLimitX96:0n}]})).result;if(i[0]<=0n)throw new Error("No liquidity found for this pair. The pool returned 0 input.");return{amountIn:i[0],sqrtPriceX96After:i[1],gasEstimate:i[3]}}async function ac(e){const t=e.feeTiers??nc,n=Js(e.tokenIn,e.tokenOut,e.hubs??[],t,"out"),o=await Promise.allSettled([...t.map(async s=>({...await af({...e,fee:s}),fee:s})),...n.map(async s=>{const a=await ss(e.chainId,e.config,s,e.amountOut,"out");return{amountIn:a.amount,sqrtPriceX96After:0n,gasEstimate:a.gasEstimate,fee:0,path:s}})]);let r=null;for(const s of o)s.status==="fulfilled"&&(!r||s.value.amountIn<r.amountIn)&&(r=s.value);if(!r)throw new Error("No liquidity found for this pair on any fee tier.");return r}function lf(e){return e.type==="swap"}const as=.02,cf=[1,8453,42161,10,137,43114,56],df="https://api.1inch.dev/swap/v6.0";function ci(e,t){return Hl(e,t)}function uf(e){const t=e?.baseUrl??df;return{name:"1inch",chainIds:e?.chainIds??cf,resolve:async(n,o,r)=>{const s=n.maxSlippage??as,a=s*100,i=Fe(n.tokenIn)?Ql:n.tokenIn,l=Fe(n.tokenOut)?Ql:n.tokenOut,c=Fe(n.tokenIn);try{const u=new URL(`${t}/${o}/swap`);u.searchParams.set("src",i),u.searchParams.set("dst",l),u.searchParams.set("amount",n.amountIn.toString()),u.searchParams.set("from",r),u.searchParams.set("slippage",a.toString()),u.searchParams.set("disableEstimate","true"),u.searchParams.set("allowPartialFill","false");const d={Accept:"application/json"};e?.apiKey&&(d.Authorization=`Bearer ${e.apiKey}`);const p=await fetch(u.toString(),{headers:d});if(!p.ok)throw new Be("VENUE_API_ERROR",`[1inchVenue] API returned ${p.status} for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:`HTTP ${p.status}`});const w=await p.json();if(!w.dstAmount||!w.tx)return console.warn(`[1inchVenue] No route data for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const m=BigInt(w.dstAmount);if(m<=0n)return console.warn(`[1inchVenue] Zero output for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}`),null;const g=ci(m,s),h=[];return w.tx.to&&!c&&h.push({to:n.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[w.tx.to,n.amountIn]})}),h.push({to:w.tx.to,value:BigInt(w.tx.value||"0"),data:w.tx.data}),{venue:"1inch",amountOut:m,amountOutMinimum:g,calls:h}}catch(u){if(u instanceof Be)throw u;const d=u instanceof Error?u.message:String(u);throw new Be("VENUE_API_ERROR",`[1inchVenue] Exception for ${n.tokenIn} \u2192 ${n.tokenOut} on chain ${o}: ${d}`,{venue:"1inch",chainId:o,tokenIn:n.tokenIn,tokenOut:n.tokenOut,amountIn:n.amountIn.toString(),cause:d})}}}}const ic=[4114,5115],di={name:"Satsuma",swapRouter:"0x565eD3D57fe40f78A46f348C220121AE093c3cF8",quoterV2:"0x428f20dd8926Eabe19653815Ed0BE7D6c36f8425",feeTiers:[3e3]},lc={name:"Uniswap v3",swapRouter:"0x2626664c2603336E57B271c5C0b26F421741e481",quoterV2:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",chainIds:[8453],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},cc={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[1],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},dc={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[42161],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1","0xaf88d065e77c8cC2239327C5EDb3A432268e5831"]},pf={name:"Uniswap v3",swapRouter:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",quoterV2:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",chainIds:[137],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270","0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"]},ff={name:"Uniswap v3",swapRouter:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",quoterV2:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",chainIds:[56],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"]},mf={name:"Uniswap v3",swapRouter:"0xfe31f71c1b106eac32f1a19239c9a9a72ddfb900",quoterV2:"0x661e93cca42afacb172121ef892830ca3b70f08d",chainIds:[143],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A","0x754704Bc059F8C67012fEd69BC8A327a5aafb603"]},uc={name:"Uniswap v3",swapRouter:"0xcaf681a66d020601342297493863e78c959e5cb2",quoterV2:"0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},pc={name:"SushiSwap",swapRouter:"0x1e406484F1F204b23cE84B9901C0171a738fd406",quoterV2:"0x3E290e5E01818002A0b672148BdC7514D861C7B3",chainIds:[4663],feeTiers:[100,500,3e3,1e4],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"],routerHasDeadline:!0},fc=ho(["function exactInput((bytes path, address recipient, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),mc=ho(["function exactInputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum, uint160 sqrtPriceLimitX96) params) payable returns (uint256 amountOut)","function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),hf=ho(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]),gf=ho(["function exactOutput((bytes path, address recipient, uint256 deadline, uint256 amountOut, uint256 amountInMaximum) params) payable returns (uint256 amountIn)"]),ui=1800,hc=[1,50,100,200,2e3],$s={name:"Aerodrome",swapRouter:"0xcbBb8035cAc7D4B3Ca7aBb74cF7BdF900215Ce0D",quoterV2:"0x3d4C22254F86f64B7eC90ab8F7aeC1FBFD271c6C",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006","0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]};function is(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??hc;return{name:t,chainIds:n,resolve:async(r,s,a)=>{if(Fe(r.tokenIn)||Fe(r.tokenOut))return null;const i=r.maxSlippage??as,l=[...o.map(h=>_a(["address","uint24","address"],[r.tokenIn,h,r.tokenOut])),...Js(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"in")],c={quoterV2:e.quoterV2},u=await Promise.allSettled(l.map(async h=>({path:h,amountOut:(await ss(s,c,h,r.amountIn,"in")).amount})));let d=null;for(const h of u)h.status==="fulfilled"&&(!d||h.value.amountOut>d.amountOut)&&(d=h.value);if(!d)return console.warn(`[AerodromeVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${s}.`),null;const p=ci(d.amountOut,i),w=e.deadline??BigInt(Math.floor(Date.now()/1e3)+ui),m=Tt({abi:hf,functionName:"exactInput",args:[{path:d.path,recipient:a,deadline:w,amountIn:r.amountIn,amountOutMinimum:p}]}),g=[{to:r.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[e.swapRouter,r.amountIn]})},{to:e.swapRouter,value:0n,data:m}];return{venue:t,amountOut:d.amountOut,amountOutMinimum:p,calls:g}}}}function gc(e){const t=e.name??"Aerodrome",n=e.chainIds??[8453],o=e.tickSpacings??hc;return{name:t,chainIds:n,resolve:async(r,s,a)=>{if(Fe(r.tokenIn)||Fe(r.tokenOut))return null;const i=r.maxSlippage??as,l=[...o.map(g=>_a(["address","uint24","address"],[r.tokenOut,g,r.tokenIn])),...Js(r.tokenIn,r.tokenOut,e.hubCurrencies??[],o,"out")],c={quoterV2:e.quoterV2},u=await Promise.allSettled(l.map(async g=>({path:g,amountIn:(await ss(s,c,g,r.amountOut,"out")).amount})));let d=null;for(const g of u)g.status==="fulfilled"&&(!d||g.value.amountIn<d.amountIn)&&(d=g.value);if(!d)return console.warn(`[AerodromeExactOutputVenue] No viable route for ${r.tokenIn} \u2192 ${r.tokenOut} on chain ${s}.`),null;const p=BigInt(Math.round(i*1e4)),w=d.amountIn+d.amountIn*p/10000n,m=e.deadline??BigInt(Math.floor(Date.now()/1e3)+ui);return{venue:t,amountIn:d.amountIn,amountInMax:w,amountOut:r.amountOut,calls:[{to:e.swapRouter,value:0n,data:Tt({abi:gf,functionName:"exactOutput",args:[{path:d.path,recipient:a,deadline:m,amountOut:r.amountOut,amountInMaximum:w}]})}]}}}}function ls(e){const t=e.name??"Uniswap v3",n=e.chainIds??ic;return{name:t,chainIds:n,resolve:async(o,r,s,a)=>{if(Fe(o.tokenIn)||Fe(o.tokenOut))return null;const i=o.maxSlippage??as;let l;try{let m;if(a){if(a.venue!==t)return null;const g=a.calls.find(y=>y.to.toLowerCase()===e.swapRouter.toLowerCase());if(!g)return null;const h=jn({abi:e.routerHasDeadline?mc:[...fc,...zl],data:g.data});if(h.functionName==="exactInput"){const{path:y}=h.args[0];if(y.slice(0,42).toLowerCase()!==o.tokenIn.toLowerCase()||`0x${y.slice(-40)}`.toLowerCase()!==o.tokenOut.toLowerCase())return null;m={path:y,fee:0}}else if(h.functionName==="exactInputSingle"){const{tokenIn:y,tokenOut:C,fee:S}=h.args[0];if(y.toLowerCase()!==o.tokenIn.toLowerCase()||C.toLowerCase()!==o.tokenOut.toLowerCase())return null;m={fee:S}}else return null}l=m?.path?{...m,amountOut:(await ss(r,e,m.path,o.amountIn,"in")).amount}:await sc({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountIn:o.amountIn,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:m?[m.fee]:e.feeTiers,hubs:m?[]:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return console.warn(`[UniV3Venue] No viable route for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}.`),null}const c=ci(l.amountOut,i),u=e.routerHasDeadline?{deadline:BigInt(Math.floor(Date.now()/1e3)+ui)}:{},d=e.routerHasDeadline?mc:l.path?fc:zl,p=l.path?Tt({abi:d,functionName:"exactInput",args:[{path:l.path,recipient:s,...u,amountIn:o.amountIn,amountOutMinimum:c}]}):Tt({abi:d,functionName:"exactInputSingle",args:[{tokenIn:o.tokenIn,tokenOut:o.tokenOut,fee:l.fee,recipient:s,...u,amountIn:o.amountIn,amountOutMinimum:c,sqrtPriceLimitX96:0n}]}),w=[{to:o.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[e.swapRouter,o.amountIn]})},{to:e.swapRouter,value:0n,data:p}];return{venue:t,amountOut:l.amountOut,amountOutMinimum:c,calls:w}}}}function pi(e){const t=e.name??"Uniswap v3",n=e.chainIds??ic;return{name:t,chainIds:n,resolve:async(o,r,s)=>{if(Fe(o.tokenIn)||Fe(o.tokenOut))return null;const a=o.maxSlippage??as;let i;try{i=await ac({tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut,chainId:r,config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},feeTiers:e.feeTiers,hubs:[...e.hubCurrencies??[],...e.hubPaths??[]]})}catch{return null}const l=BigInt(Math.round(a*1e4)),c=i.amountIn+i.amountIn*l/10000n;return{venue:t,amountIn:i.amountIn,amountInMax:c,amountOut:o.amountOut,calls:[rc({config:{swapRouter:e.swapRouter,quoterV2:e.quoterV2},routerHasDeadline:e.routerHasDeadline,route:i,tokenIn:o.tokenIn,tokenOut:o.tokenOut,recipient:s,amountOut:o.amountOut,amountInMaximum:c})]}}}}function wc(e){const t=[];e?.customVenues&&t.push(...e.customVenues),e?.satsuma&&t.push(ls(e.satsuma)),e?.aerodrome!==!1&&t.push(is(e?.aerodrome??$s)),t.push(uf(e?.oneInch));const n=t.map($p);function o(a){return n.find(i=>i.chainIds.includes(a))}async function r(a,i,l,c){const u=n.filter(m=>m.chainIds.includes(i));if(u.length===0)throw new Be("NO_VENUE_FOR_CHAIN",`No liquidity venue configured for chain ${i}. Cannot resolve swap ${a.tokenIn} \u2192 ${a.tokenOut}.`,{chainId:i,tokenIn:a.tokenIn,tokenOut:a.tokenOut,amountIn:a.amountIn.toString()});const d=await Promise.allSettled(u.map(m=>m.resolve(a,i,l,c)));let p=null;for(const m of d)c&&m.status==="fulfilled"&&m.value&&(m.value.venue!==c.venue||m.value.calls.length!==c.calls.length||m.value.calls.some((g,h)=>g.to.toLowerCase()!==c.calls[h].to.toLowerCase()||g.data.slice(0,10)!==c.calls[h].data.slice(0,10)))||m.status==="fulfilled"&&m.value&&(!p||m.value.amountOut>p.amountOut)&&(p=m.value);if(p)return p;const w=d.find(m=>m.status==="rejected");if(w)throw w.reason;return null}async function s(a,i,l){const c=[],u=[];for(const d of a){if(!lf(d)){c.push(d);continue}const p=await r(d,i,l);if(!p)throw new Be("NO_LIQUIDITY",`No venue returned a quote for ${d.tokenIn} \u2192 ${d.tokenOut} on chain ${i}.`,{chainId:i,tokenIn:d.tokenIn,tokenOut:d.tokenOut,amountIn:d.amountIn.toString()});c.push(...p.calls),u.push(p)}return{calls:c,resolvedSwaps:u}}return{resolveSwapIntents:s,resolveSwap:r,getVenueForChain:o,venues:t}}const Do="0x0000000000000000000000000000000000000000",fi=[{fee:100,tickSpacing:1},{fee:500,tickSpacing:10},{fee:3e3,tickSpacing:60},{fee:1e4,tickSpacing:200}],yc=Do,bc=.02,wf=1800,xc={name:"Uniswap v4",quoter:"0x0d5e0f971ed27fbff6c2837bf31316121532048d",universalRouter:"0x6ff5693b99212da76ad316178a184ab56d299b43",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",chainIds:[8453],hubCurrencies:["0x4200000000000000000000000000000000000006",Do,"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},vc={name:"Uniswap v4",quoter:"0x8dc178efb8111bb0973dd9d722ebeff267c98f94",universalRouter:"0x8876789976decbfcbbbe364623c63652db8c0904",permit2:"0x000000000022d473030f116ddee9f6b43ac78ba3",routerHasHopPrice:!0,chainIds:[4663],hubCurrencies:["0x0bd7d308f8e1639fab988df18a8011f41eacad73",Do,"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"]},kc=ho(["struct PoolKey { address currency0; address currency1; uint24 fee; int24 tickSpacing; address hooks; }","struct PathKey { address intermediateCurrency; uint24 fee; int24 tickSpacing; address hooks; bytes hookData; }","struct QuoteExactSingleParams { PoolKey poolKey; bool zeroForOne; uint128 exactAmount; bytes hookData; }","struct QuoteExactParams { address exactCurrency; PathKey[] path; uint128 exactAmount; }","function quoteExactInputSingle(QuoteExactSingleParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactInput(QuoteExactParams params) returns (uint256 amountOut, uint256 gasEstimate)","function quoteExactOutputSingle(QuoteExactSingleParams params) returns (uint256 amountIn, uint256 gasEstimate)","function quoteExactOutput(QuoteExactParams params) returns (uint256 amountIn, uint256 gasEstimate)"]),yf=ho(["function approve(address token, address spender, uint160 amount, uint48 expiration)"]),bf=ho(["function execute(bytes commands, bytes[] inputs, uint256 deadline) payable"]),Cc="0x10",xf="04",vf="06",kf="07",Cf="08",If="09",_s="0c",ea="0e",Sf=[{name:"currency0",type:"address"},{name:"currency1",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"}],Af=[{name:"intermediateCurrency",type:"address"},{name:"fee",type:"uint24"},{name:"tickSpacing",type:"int24"},{name:"hooks",type:"address"},{name:"hookData",type:"bytes"}],Vo=(e,t)=>e.toLowerCase()===t.toLowerCase();function ta(e){return Fe(e)?Do:e}function Ef(e,t){return e.toLowerCase()<t.toLowerCase()?[e,t]:[t,e]}function Ic(e,t,n,o,r){const s=[],[a,i]=Ef(e,t);for(const{fee:c,tickSpacing:u}of fi)s.push({kind:"single",poolKey:{currency0:a,currency1:i,fee:c,tickSpacing:u,hooks:yc},zeroForOne:Vo(e,a)});const l=(c,u)=>!!r&&(Vo(c,Do)&&Vo(u,r)||Vo(c,r)&&Vo(u,Do));for(const c of n)if(!(Vo(c,e)||Vo(c,t))&&!(l(c,e)||l(c,t)))for(const u of fi)for(const d of fi){const p=(w,m)=>({intermediateCurrency:w,fee:m.fee,tickSpacing:m.tickSpacing,hooks:yc,hookData:"0x"});s.push({kind:"multi",path:o==="in"?[p(c,u),p(t,d)]:[p(e,u),p(c,d)]})}return s}async function Sc(e,t,n,o,r,s){const a=At(e),i=(await Promise.allSettled(n.map(async l=>{const{result:c}=l.kind==="single"?await a.simulateContract({address:t.quoter,abi:kc,functionName:s==="in"?"quoteExactInputSingle":"quoteExactOutputSingle",args:[{poolKey:l.poolKey,zeroForOne:l.zeroForOne,exactAmount:r,hookData:"0x"}]}):await a.simulateContract({address:t.quoter,abi:kc,functionName:s==="in"?"quoteExactInput":"quoteExactOutput",args:[{exactCurrency:o,path:l.path,exactAmount:r}]}),u=c[0];if(u<=0n)throw new Error("zero quote");return{candidate:l,amount:u}}))).filter(l=>l.status==="fulfilled").map(l=>l.value);return i.length===0?null:(i.sort((l,c)=>l.amount<c.amount?-1:l.amount>c.amount?1:0),s==="in"?i[i.length-1]:i[0])}function Ac(e){const{candidate:t,direction:n,currencyIn:o,currencyOut:r,recipient:s,exactAmount:a,limitAmount:i,deadline:l,routerHasHopPrice:c,sweepNativeTo:u}=e;let d,p;t.kind==="single"?(d=n==="in"?`0x${vf}${_s}${ea}`:`0x${Cf}${_s}${ea}`,p=Qo([{type:"tuple",components:[{name:"poolKey",type:"tuple",components:Sf},{name:"zeroForOne",type:"bool"},{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"},...c?[{name:"minHopPriceX36",type:"uint256"}]:[],{name:"hookData",type:"bytes"}]}],[{poolKey:t.poolKey,zeroForOne:t.zeroForOne,[n==="in"?"amountIn":"amountOut"]:a,[n==="in"?"amountOutMinimum":"amountInMaximum"]:i,...c?{minHopPriceX36:0n}:{},hookData:"0x"}])):(d=n==="in"?`0x${kf}${_s}${ea}`:`0x${If}${_s}${ea}`,p=Qo([{type:"tuple",components:[{name:n==="in"?"currencyIn":"currencyOut",type:"address"},{name:"path",type:"tuple[]",components:Af},...c?[{name:"minHopPriceX36",type:"uint256[]"}]:[],{name:n==="in"?"amountIn":"amountOut",type:"uint128"},{name:n==="in"?"amountOutMinimum":"amountInMaximum",type:"uint128"}]}],[{[n==="in"?"currencyIn":"currencyOut"]:n==="in"?o:r,path:t.path,...c?{minHopPriceX36:[]}:{},[n==="in"?"amountIn":"amountOut"]:a,[n==="in"?"amountOutMinimum":"amountInMaximum"]:i}]));const w=Qo([{type:"address"},{type:"uint256"}],[o,n==="in"?a:i]),m=Qo([{type:"address"},{type:"address"},{type:"uint256"}],[r,s,0n]),g=Qo([{type:"bytes"},{type:"bytes[]"}],[d,[p,w,m]]),h=u?`${Cc}${xf}`:Cc,y=u?[g,Qo([{type:"address"},{type:"address"},{type:"uint256"}],[Do,u,0n])]:[g];return Tt({abi:bf,functionName:"execute",args:[h,y,l]})}function Ec(){return BigInt(Math.floor(Date.now()/1e3)+wf)}function Fc(e,t,n,o){return{to:e.permit2,value:0n,data:Tt({abi:yf,functionName:"approve",args:[t,e.universalRouter,n,Number(o)]})}}function Tc(e){const t=e.name??"Uniswap v4",n=e.v3?ls({...e.v3,chainIds:e.chainIds}):null;return{name:t,chainIds:e.chainIds,resolve:async(o,r,s)=>{const a=o.maxSlippage??bc,i=ta(o.tokenIn),l=ta(o.tokenOut),c=Fe(o.tokenIn),u=e.hubCurrencies??[Do];let d=null;if(!Vo(i,l)&&o.amountIn>0n){const p=await Sc(r,e,Ic(i,l,u,"in",si(r)),i,o.amountIn,"in").catch(()=>null);if(p){const w=Hl(p.amount,a),m=Ec(),g=[];c||(g.push({to:o.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[e.permit2,o.amountIn]})}),g.push(Fc(e,o.tokenIn,o.amountIn,m))),g.push({to:e.universalRouter,value:c?o.amountIn:0n,data:Ac({candidate:p.candidate,direction:"in",currencyIn:i,currencyOut:l,recipient:s,exactAmount:o.amountIn,limitAmount:w,deadline:m,routerHasHopPrice:e.routerHasHopPrice})}),d={venue:t,amountOut:p.amount,amountOutMinimum:w,calls:g}}}return!d&&n?n.resolve(o,r,s):d}}}function Bc(e){const t=e.name??"Uniswap v4";return{name:t,chainIds:e.chainIds,resolve:async(n,o,r)=>{const s=Fe(n.tokenIn),a=ta(n.tokenIn),i=ta(n.tokenOut);if(Vo(a,i)||n.amountOut<=0n)return null;const l=n.maxSlippage??bc,c=e.hubCurrencies??[Do],u=await Sc(o,e,Ic(a,i,c,"out",si(o)),i,n.amountOut,"out").catch(()=>null);if(!u)return null;const d=BigInt(Math.round(l*1e4)),p=u.amount+u.amount*d/10000n,w=Ec();return{venue:t,amountIn:u.amount,amountInMax:p,amountOut:n.amountOut,calls:[...s?[]:[Fc(e,n.tokenIn,p,w)],{to:e.universalRouter,value:s?p:0n,data:Ac({candidate:u.candidate,direction:"out",currencyIn:a,currencyOut:i,recipient:r,exactAmount:n.amountOut,limitAmount:p,deadline:w,routerHasHopPrice:e.routerHasHopPrice,sweepNativeTo:s?r:void 0})}]}}}}const mi=[{...di,protocol:"uniswap-v3",chainId:4114},{...di,protocol:"uniswap-v3",chainId:5115},{...lc,protocol:"uniswap-v3",chainId:8453},{...cc,protocol:"uniswap-v3",chainId:1},{...dc,protocol:"uniswap-v3",chainId:42161},{...pf,protocol:"uniswap-v3",chainId:137},{...ff,protocol:"uniswap-v3",chainId:56},{...mf,protocol:"uniswap-v3",chainId:143},{...uc,protocol:"uniswap-v3",chainId:4663},{...pc,protocol:"uniswap-v3",chainId:4663},{...xc,protocol:"uniswap-v4",chainId:8453},{...vc,protocol:"uniswap-v4",chainId:4663},{...$s,protocol:"aerodrome-slipstream",chainId:8453}];function pr(e){const t=e?.includeDefaults===!1?e.venues??[]:[...mi,...e?.venues??[]],n=[],o=[];for(const r of t){const s=[r.chainId];switch(r.protocol){case"uniswap-v3":{const a={...r,chainIds:s};n.push(ls(a)),o.push(pi(a));break}case"uniswap-v4":{const a={...r,chainIds:s};n.push(Tc(a)),o.push(Bc(a));break}case"aerodrome-slipstream":{const a={...r,chainIds:s};n.push(is(a)),o.push(gc(a));break}default:{const a=r;throw new Be("INVALID_PARAMS",`Unsupported liquidity venue protocol: ${a.protocol}`,{protocol:a.protocol})}}}return{input:n,output:o}}const hi=new Set(["WBTC","CBTC"]),Oc=new Set(["btc","wbtc","wcbtc","cbtc"]);function Rc(e,t){return!e||!t?!1:e===t?!0:hi.has(e)&&hi.has(t)}function Yn(e){const[t,n,o]=e.split(":");if(t!=="evm"||!n||!o)return null;const r=Number(n);if(!Number.isFinite(r))return null;const s=o.startsWith("0x")?o.toLowerCase():`0x${o.toLowerCase()}`;return{chainId:r,address:s}}function na(e){return(e??"").trim().replace(/^test\s+/i,"").replace(/^spice/i,"").toLowerCase().replace(/[^a-z0-9]/g,"")}function Ff(e){return new Set([e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name].map(na).filter(Boolean))}function Tf(e,t){const n=Ff(e),o=[t.symbol,t.name,t.equivalenceGroup].map(na);if(o.some(a=>a&&n.has(a)))return!0;const r=[...n].some(a=>Oc.has(a)),s=o.some(a=>Oc.has(a))||hi.has(t.equivalenceGroup??"");return r&&s}function Dc(e,t,n){const o=new Set(t.map(na).filter(Boolean)),r=s=>{if(n&&J(s.address,n))return 0;const a=[s.symbol,s.name,s.equivalenceGroup].map(na).findIndex(i=>i&&o.has(i));return a===-1?4:a+1};return[...e].sort((s,a)=>{const i=r(s)-r(a);return i!==0?i:s.address.toLowerCase().localeCompare(a.address.toLowerCase())})}function Br(e,t){const n=e.chainTokens?Object.keys(e.chainTokens):[],o=[];for(const r of n){const s=Yn(r);if(!s||s.chainId!==t)continue;const a=s.address,i=Fe(a)?xt(t)?.nativeCurrency:void 0,l=Yt(a,t)??(i?{...i}:void 0);l&&(!gi(e,a,t)&&!(e.isUniversal&&Tf(e,l))||o.some(c=>J(c,a))||o.push(a))}return Dc(o.map(r=>{const s=Yt(r,t);return{address:r,symbol:s?.symbol,name:s?.name,equivalenceGroup:s?.equivalenceGroup}}),[e.receiptTokenName,e.displaySymbol,e.symbol,e.displayName,e.name],e.chainId===t&&!e.isUniversal?e.address:void 0).map(r=>r.address)}function gi(e,t,n){return e.chainId===n&&J(e.address,t)?!0:cs(e.address,e.chainId,t,n)}async function Bf(e,t){const n=At(e),o=Oo(e);return Fe(t)?n.getBalance({address:o}):await n.readContract({address:t,abi:ft,functionName:"balanceOf",args:[o]})}function wi(e,t,n){const o=dr(n),r=o.find(a=>J(a.address,e));if(r&&(t===n||!Fe(e)))return r;const s=Yt(e,t);if(s)return Dc(o.filter(a=>Rc(a.equivalenceGroup,s.equivalenceGroup)),[s.symbol,s.name,s.equivalenceGroup])[0]}function oa(e){return e.equivalenceGroup==="USDC"&&e.symbol.toUpperCase()!=="USDT"}function fr(e){const t=rs(e);if(!t||t===Kt)return;const n=dr(e).filter(oa);return n.find(o=>o.symbol.toUpperCase()==="USDC")??n[0]}function yi(e,t){if(e.chainId===t)return null;const n=rs(e.chainId),o=rs(t);if(!n||n===Kt||!o||o===Kt)return null;const r=!e.isNative&&!Fe(e.address)?Yt(e.address,e.chainId):void 0,s=r&&oa(r)?wi(e.address,e.chainId,t):void 0,a=s?r:fr(e.chainId),i=s??fr(t);if(!a||!i)return null;const l=c=>({address:c.address,symbol:c.symbol,decimals:c.decimals,chainId:c.chainId});return{source:l(a),destination:l(i)}}function Of(e,t){return!!yi(e,t)}function so(e,t){if(e.chainId===t)return e.address;const n=wi(e.address,e.chainId,t);return n?n.address:null}async function Mo(e,t,n,o){const r=Yt(t,n);return r?r.decimals:e?.chainId===n&&J(e.address,t)&&!e.isUniversal?e.decimals:o?.chainId===n&&J(o.address,t)?o.decimals:zs(n,t)}async function Mc(e,t,n={}){const o=so(e,t),r=Br(e,t);if(r.length===0)return o;if(r.length===1)return r[0];const s=n.requiredAmount??0n,a=i=>{const l=r.map(c=>({candidate:c,balance:i.get(Fe(c)?"native":c.toLowerCase())??0n})).filter(c=>c.balance>0n).sort((c,u)=>c.balance===u.balance?0:c.balance>u.balance?-1:1);return l.length===0?null:((s>0n?l.find(c=>c.balance>=s):l[0])??l[0]).candidate};try{const i=await Promise.all(r.map(async u=>({key:Fe(u)?"native":u.toLowerCase(),value:await Bf(t,u)}))),l=new Map(i.map(({key:u,value:d})=>[u,d])),c=a(l);if(c)return c}catch{}return o}function cs(e,t,n,o){const r=Yt(e,t),s=Yt(n,o);return r&&s?Rc(r.equivalenceGroup,s.equivalenceGroup):Fp(e,n)}function ra(e,t){return cs(e.address,e.chainId,t.address,t.chainId)}const Nc=.01;function Pc(e,t=!1){const n=Number.isFinite(e.balanceUsd)&&e.balanceUsd>0;return e.isDiscovered?n&&e.balanceUsd>=Nc:!t||!n||e.balanceUsd>=Nc}function sa(e,t=!1){return!!e&&e._source==="wallet"&&(e.location==="external"||e._fundingWallet==="external"||!e.location&&!e._fundingWallet&&t)}function be(e){return e.positionId??`${e.owner?.toLowerCase()??""}:${e.location??e._source??""}:${e.chainId}:${e.receiptTokenId??ht(e.address).toLowerCase()}`}function Wc(e,t){if(!t?.length||e.symbol!==void 0&&Hs({...e,symbol:e.symbol},t))return!0;const n=o=>t.some(r=>J(ht(r),ht(o)));return n(e.address)||Object.keys(e.chainTokens??{}).some(o=>{const r=Yn(o);return r?n(r.address):!1})}function Io(e,t,n,o,r,s){const a=(g,h=!1)=>({eligible:!1,reason:g,policyExcluded:h}),i=e._source==="wallet"||e.location==="external"||e.location==="embedded",l=t==="spend-source"&&i&&!!o&&e.chainId===o.chainId&&J(ht(e.address),ht(o.address));if(n.isWhitelistGateActive||!l&&!Hs(e,n.allowedTokens))return a("Asset excluded by client policy",!0);if(t!=="withdraw-destination"&&!l&&!Pc(e))return a("Asset is unpriced or below the minimum value",!0);if(t==="holding")return{eligible:!0,reason:null};if(e.balanceError)return a(e.balanceError);if(!l&&!Wc(e,r))return a("Asset excluded by action policy",!0);const c=new Set(o?[o.chainId]:[]);e._source!=="spice"&&e.location!=="rollup"&&c.add(e.chainId);for(const g of c)if(!Va(g,n.rpcOverrides)?.trim())return a(`Configure SpiceFlowProvider rpcOverrides[${g}] before using this asset.`);if(s?.requiresEscrow){const g=Yt(e.address,e.chainId);if(!g||!oa(g))return a("This asset has no supported escrow mapping")}if(!o)return{eligible:!0,reason:null};const u=n.liquidityVenues?.includeDefaults===!1?n.liquidityVenues.venues??[]:[...mi,...n.liquidityVenues?.venues??[]],d=g=>u.some(h=>h.chainId===g),p=i&&e.chainId!==o.chainId,w=p?yi(e,o.chainId):null;if(p&&!w)return a("No supported source route");if(w&&!J(ht(e.address),ht(w.source.address))&&!d(e.chainId))return a("No conversion venue configured on the source chain");const m=w?.destination.address??so(e,o.chainId);return t==="withdraw-destination"?(e.chainTokens||e.receiptTokenId?Br(e,o.chainId):m?[m]:[]).some(g=>J(ht(g),ht(o.address)))?{eligible:!0,reason:null}:a("No supported withdrawal mapping"):m&&J(ht(m),ht(o.address))?{eligible:!0,reason:null}:!m&&!Of(e,o.chainId)?a("No supported destination route"):d(o.chainId)?{eligible:!0,reason:null}:a("No conversion venue configured on the destination chain")}function aa(){const e=an($t),[t]=L(dp);return e?.inventory??t}function bi(e,t,n,o,r){const s=aa(),a=r??s,i=we(()=>a.entry(e),[a,e]),[,l]=L(0);pe(()=>{if(n)return i.subscribe(()=>l(u=>u+1),t,o)},[i,n,t,o]);const c=re(()=>i.refresh(),[i]);return{...n?i.snapshot():up,refresh:c}}var Uc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA6lBMVEXc3NzX/v/1hRvZ2dnd3dzb29va7fpMaXHa1tPc3N35/v/c3Nzc3NzCrp/c3Nza2tp1PRbLsJzlr33uhSj0kTHcnWnUva7jdhuNX0B6Qhrsk0LOxMCFVDJ+RyGhfGTkeiGYVSHjdx3lij7khDPEsaPfoW/jgjLQuKXmgzB2PRb2hRvldhvjdRv4hhvpeRtwORb/ihryghvabhnsehrUaRjLXxXtfRt7PxXwexricRbRYhURFBeSTBe0XBrEZxmDRxiiVRrlgCbfzMAvLCmrWBgbMEh9UjBbOBe2pJi9byekk4nkgDHkgDJLNB7jlKArAAAAKXRSTlMzJv0TNSYsADUxKBwK/QUZ/URTx650/vqJ5YpMosxj3ezwkqa6/q3KrihQ98kAAAAJcEhZcwAACxMAAAsTAQCanBgAAATxSURBVHjapVeJcuI4EJXBdiRuw4JzDAFyzeIT22BsNgTIJNnM7Pz/90xLsmV5ChJm6SqqZOR+7teXWujsgLSqdU0jBCFCNK1ebR16D+39t1HXiKqqGDHBsCRavXEsQKutIVWln0aZ0BX8o7VbRwC06gS+LHQLIWAJqbc+A6iC+h7t3BCVVD8EaGgqOqSemaFqjcMA8PkP1RnEb0bIAPXD1peNqO8H0NQj1LkR2j6Ao/XLCOh/6JcQkOD/B/oUoV4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YszLFaxLBMNdsgDGNFAazRoUcwrDMlDYz28RS0newGcCRlDa8TK4YgxuORGj9x8NYVEsxjKQSp/pNAw5YRcJI/JP5nYeqxjAxeIfCeRQQDyWOos/y5xR2V4NIgYhRJVkjgpralBPcvQH4PsBxIX0DjJqKRdgYLtsYPUyqh60CsACXEQew7ECvAICZp7DqwQEIQXaR+CkzaoeKr3FewQdqg4mIy36VgLyZWz4G96N5vs8sKj0UPSlJGy4fAbWX88SgGQYgJVjDXi7JaaxYo9Oj4UQ0lrHCGdN25ceiEfNoZSfIomjhcKN26DarT0q4gaiyfe2C9u9hWNUBvRghbG+yd1AZNFFrjmu+ucXMF2j60OObE7f0m+mrv/5qQkimpO+IU8fKXQ9bDMe/5oPl81P3BsP183EeGu3GoLBw/WHnuLF20sXQ9X/ueL57PV99w+Z7P5Vvj8j3fXr7j9X/f/5Vsrv9/K3NM7mGXOq0AAAAASUVORK5CYII=",ds="data:image/svg+xml,%3csvg width='8' height='11' viewBox='57 6 8 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e %3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e %3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e %3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e %3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e %3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3c/svg%3e";const us=Vl(1)?.logo??"",Mf=jl.find(e=>e.symbol==="USDC")?.logo??"",nr=Object.fromEntries([...Tp(),...Bp()].map(e=>[e.id,e.logo])),ps={metamask:Uc,metaMask:Uc,rabby:Rf,phantom:Df},xi=Object.fromEntries(jl.map(e=>[e.symbol.toUpperCase(),e.logo])),Nf={usdc:[8453,1,42161,5115,4114],usdt:[1],btc:[4114,42161,1,5115],wbtc:[1],weth:[8453,1],eth:[8453,1,42161,4663,84532,46630],ctusd:[5115,4114],wcbtc:[5115,4114]},Pf={btc:["wcbtc","cbtc","wbtc"]};function ia(e){return e.replace(/^test\s*/i,"").replace(/^spice/i,"").trim()}function jo(e){return ia(e).toLowerCase()}function Lc(e){return jo(e??"").replace(/[^a-z0-9]/g,"")}function vi(e){const t=jo(e);return[t,...Pf[t]??[]].filter(Boolean)}function Wf(e){try{return BigInt(e.balanceAvailable||"0")}catch{return 0n}}function qc(e){return Array.isArray(e.chainTokens)?e.chainTokens:Object.keys(e.chainTokens??{})}function zc(e,t){const n=xt(e),o=t.toLowerCase();return o===Kt.toLowerCase()?n?.nativeCurrency.decimals??18:n?.supportedTokens?.find(r=>r.address.toLowerCase()===o)?.decimals??18}function Uf(e,t,n,o=[]){const r=zc(t,n),s=e.filter(i=>Hc(i,t,n,o));if(s.length===0)return null;const a=s.reduce((i,l)=>Math.min(i,l.decimals??r),r);return{chainDecimals:r,receiptDecimals:a}}function Hc(e,t,n,o){if(qc(e).some(s=>{const a=Yn(s);return a&&cs(a.address,a.chainId,n,t)}))return!0;const r=new Set(o.map(Lc).filter(Boolean));return r.size===0?!1:r.has(Lc(e.tokenName||e.receiptToken))}function Qc(e,t,n,o=[]){const r=zc(t,n);return e.reduce((s,a)=>Hc(a,t,n,o)?s+mo(Wf(a),a.decimals??r,r):s,0n)}function Vc(e,t){const n=new Set([...vi(t),...vi(ia(t))]);return[...e].sort((o,r)=>{const s=jo(o.symbol),a=jo(r.symbol),i=jo(o.name),l=jo(r.name),c=n.has(s)?0:n.has(i)?1:2,u=n.has(a)?0:n.has(l)?1:2;return c!==u?c-u:o.address.toLowerCase().localeCompare(r.address.toLowerCase())})[0]}function Lf(e){const t=e&&e.length>0?e:Object.keys(Qs).map(Number).filter(Number.isFinite),n=new Map;for(const o of t){const r=xt(o);if(!r)continue;const s=`${o}:${Kt.toLowerCase()}`;n.has(s)||n.set(s,{address:Kt,chainId:o,symbol:r.nativeCurrency.symbol,name:r.nativeCurrency.name,decimals:r.nativeCurrency.decimals,isNative:!0,logoURI:xi[r.nativeCurrency.symbol.toUpperCase()]??r.logo});for(const a of r.supportedTokens??[]){const i=a.address.toLowerCase(),l=`${o}:${i}`;n.has(l)||n.set(l,{address:i,chainId:o,symbol:a.symbol,name:a.name,decimals:a.decimals,isNative:Fe(i),logoURI:a.logo})}}return n}function qf(e,t){const n=Lf(t),o=ia(e.tokenName),r=jo(e.tokenName),s=vi(e.tokenName),a=Array.isArray(e.chainTokens)?e.chainTokens.map(m=>[m,void 0]):Object.entries(e.chainTokens??{}),i=a.map(([m])=>Yn(m)).filter(m=>m!==null),l=new Map;for(const[m,g]of a){const h=Yn(m);if(!h||!Number.isSafeInteger(h.chainId)||h.chainId<0||!/^evm:[0-9]+:(?:0x)?[0-9a-fA-F]{40}$/.test(m)){if(!Array.isArray(e.chainTokens))throw new Error("Invalid chain token metadata identity");continue}if(g!==void 0&&(!g||typeof g!="object"||Array.isArray(g)||g.name!==void 0&&typeof g.name!="string"||g.decimals!==void 0&&(!Number.isInteger(g.decimals)||g.decimals<0||g.decimals>255)))throw new Error("Invalid chain token metadata");const y=`${h.chainId}:${h.address.toLowerCase()}`;if(l.has(y)){const C=l.get(y);if(C?.name!==g?.name||C?.decimals!==g?.decimals)throw new Error("Conflicting chain token metadata")}l.set(y,g)}const c=(m,g)=>{const h=l.get(`${g.chainId}:${g.address.toLowerCase()}`);return{...m,name:typeof h?.name=="string"&&h.name.length>0?h.name:m.name,decimals:typeof h?.decimals=="number"?h.decimals:m.decimals}},u=i.map(m=>{const g=n.get(`${m.chainId}:${m.address.toLowerCase()}`);return g?c(g,m):void 0}).filter(m=>m!==void 0),d=Nf[r]??[];if(d.length>0)for(const m of d){const g=u.filter(h=>h.chainId===m);if(g.length>0)return Vc(g,e.tokenName)}if(u.length>0)return Vc(u,e.tokenName);const p=Array.from(n.values()).filter(m=>s.includes(jo(m.symbol))||s.includes(jo(m.name)));if(d.length>0)for(const m of d){const g=p.find(h=>h.chainId===m);if(g)return g}if(p.length>0)return p[0];const w=i[0];if(w){const m=l.get(`${w.chainId}:${w.address.toLowerCase()}`);return{address:w.address,chainId:w.chainId,symbol:o||e.tokenName,name:typeof m?.name=="string"&&m.name.length>0?m.name:o||e.tokenName,decimals:typeof m?.decimals=="number"?m.decimals:e.decimals??18,isNative:Fe(w.address),logoURI:void 0}}}function zf(e,t){let n;try{n=BigInt(e.balanceAvailable||"0")}catch{return null}if(n<=0n)return null;if(t?.length){const m=qc(e).map(Yn).filter(g=>g!==null);if(m.length>0&&!m.some(g=>t.includes(g.chainId)))return null}let o;try{o=qf(e,t)}catch{return null}const r=o?.decimals??e.decimals??18,s=e.decimals??r,a=mo(n,s,r),i=o?.address??Kt,l=o?.chainId??0,c=ia(e.tokenName),u=o?.symbol??c,d=o?.name??c,p=parseFloat(Re(a,r)),w=typeof e.balanceUsd=="number"?e.balanceUsd:typeof e.balanceUsd=="string"&&Number(e.balanceUsd)||0;return{address:i,symbol:u,name:d,decimals:r,chainId:l,balance:a,balanceFormatted:p,balanceUsd:w,isNative:o?.isNative??Fe(i),logoURI:o?.logoURI,displaySymbol:c||u,displayName:c||d,displayChainName:"Spicenet",receiptTokenId:e.receiptToken,receiptTokenName:e.tokenName||d,receiptTokenDecimals:s,chainTokens:e.chainTokens&&!Array.isArray(e.chainTokens)?e.chainTokens:void 0,isUniversal:!0}}const ki=6e4,Hf=3e5,jc="https://api.g.alchemy.com/prices/v1",Or=new Map;function la(e,t){try{const n=t??At(e).transport.url;if(typeof n!="string")return null;const{hostname:o,pathname:r}=new URL(n);if(!o.endsWith(".g.alchemy.com"))return null;const s=r.split("/").filter(Boolean).pop();return s?{network:o.slice(0,-14),key:s}:null}catch{return null}}const fs=(e,t)=>`${e.network}:${e.key}:${t.toLowerCase()}`;function mr(e,t){const n=Or.get(fs(e,t));if(!n?.price||n.updatedAt===void 0)return;const o=Date.now()-n.updatedAt;if(!(o>=Hf))return{price:n.price,stale:o>=ki}}function Gc(e){const t=Number(e.prices?.find(n=>n.currency==="usd")?.value);return Number.isFinite(t)&&t>0?t:0}async function Kc(e,t,n){const o=[],r=new Set,s=Date.now();for(const a of new Set(t.map(i=>i.toLowerCase()))){const i=Or.get(fs(e,a));i?.pending?r.add(i.pending):(!i||s-i.attemptedAt>=ki&&(i.updatedAt===void 0||s-i.updatedAt>=ki))&&o.push(a)}for(let a=0;a<o.length;a+=25){const i=o.slice(a,a+25),l=Promise.resolve().then(async()=>{try{const c=await n(i);for(const u of i){const d=c.get(u);if(!d)continue;const p=Or.get(fs(e,u));p.price=d,p.updatedAt=Date.now()}}catch{}finally{for(const c of i)Or.get(fs(e,c)).pending=void 0}});for(const c of i){const u=fs(e,c);Or.set(u,{...Or.get(u),attemptedAt:s,pending:l})}r.add(l)}await Promise.all(r)}async function Ci(e,t){return await Kc(e,t,async n=>{const o=await fetch(`${jc}/${e.key}/tokens/by-address`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({addresses:n.map(a=>({network:e.network,address:a}))}),signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider price request failed");const r=await o.json(),s=new Map;for(const a of r?.data??[]){if(a.network&&a.network!==e.network)continue;const i=String(a.address).toLowerCase();n.includes(i)&&s.set(i,Gc(a))}return s}),new Map(t.map(n=>[n.toLowerCase(),mr(e,n)?.price??0]))}async function Ii(e,t){const n=`native:${t}`;return await Kc(e,[n],async()=>{const o=await fetch(`${jc}/${e.key}/tokens/by-symbol?symbols=${encodeURIComponent(t)}`,{signal:AbortSignal.timeout(1e4)});if(!o.ok)throw new Error("Provider native price request failed");const r=(await o.json())?.data?.find(s=>s.symbol?.toUpperCase()===t.toUpperCase());return new Map([[n.toLowerCase(),r?Gc(r):0]])}),mr(e,n)?.price??0}async function Qf(e,t){const n=t.supportedChains,o=e.map(r=>{const s=Object.keys(r.chainTokens??{}).map(Yn).filter(a=>!!a&&Gn(a.address)&&!!n?.includes(a.chainId));return s.sort((a,i)=>{const l=c=>c===t.nativeChainId?-1:n.indexOf(c);return l(a.chainId)-l(i.chainId)||+!J(a.address,r.address)-+!J(i.address,r.address)}),s.flatMap(a=>{const i=t.rpcOverrides?.[a.chainId];if(!i)return[];const l=la(a.chainId,i);if(!l)return[];const c=Fe(a.address)?xt(a.chainId)?.nativeCurrency.symbol:void 0,u=c?`native:${c}`:a.address;return[{rpc:l,token:u,address:a.address,nativeSymbol:c}]})});return(typeof document>"u"||!document.hidden)&&await Promise.all(o.map(async r=>{for(const s of r)if(s.nativeSymbol?await Ii(s.rpc,s.nativeSymbol).catch(()=>0):await Ci(s.rpc,[s.address]).catch(()=>new Map),mr(s.rpc,s.token)?.stale===!1)break})),e.map((r,s)=>{const a=o[s].map(l=>mr(l.rpc,l.token)),i=a.find(l=>l&&!l.stale)??a.find(Boolean);return{...r,balanceUsd:i?r.balanceFormatted*i.price:Number.isFinite(r.balanceUsd)&&r.balanceUsd>0?r.balanceUsd:0,priceStatus:i?i.stale?"stale":"fresh":"unavailable"}})}function Vf(e,t,n){const o=an($t),[r,s]=L(()=>typeof document>"u"||!document.hidden);pe(()=>{const u=()=>s(!document.hidden);return document.addEventListener("visibilitychange",u),()=>document.removeEventListener("visibilitychange",u)},[]);const a={supportedChains:n??o?.supportedChainIds,nativeChainId:o?.nativeChainId,rpcOverrides:o?.rpcOverrides},i=JSON.stringify([e,a],(u,d)=>typeof d=="bigint"?d.toString():d),l=re(()=>Qf(e,a),[i]),c=bi(`prices:${i}`,l,t&&r&&e.length>0,6e4);return c.updatedAt?c.assets:e}function jf(e){const t=e.chainTokens??e.chainTokenConfig;if(Array.isArray(t))return t.filter(n=>typeof n=="string");if(t&&typeof t=="object")return t}const Yc=({address:e,supportedChains:t,enabled:n=!0,refetchInterval:o,priceEnabled:r=!1})=>{const s=an($t),a=s?.apiUrl||fp,i=aa(),l=s?.supportedChainIds??t,c=JSON.stringify([...l??[]].sort((O,v)=>O-v)),u=e?.toLowerCase(),d=re(async()=>{const O=`${a}/wallets/${u}/balance`;let v,x;try{const F=await pp(O,{cache:"no-store"});if(v=F.status,x=F.requestId,!F.ok)throw new Error(`Failed to fetch balance: ${F.status}`);const T=await F.json();if(!Array.isArray(T.balances))throw new Error("Invalid balance response");return T.balances.map(B=>{const M=zf({receiptToken:typeof B.receiptToken=="string"?B.receiptToken:void 0,tokenName:String(B.tokenName??""),balanceAvailable:String(B.balanceAvailable??"0"),chainTokens:jf(B),decimals:typeof B.decimals=="number"?B.decimals:void 0,balanceUsd:typeof B.balanceUsd=="number"||typeof B.balanceUsd=="string"?B.balanceUsd:null},l);return M?{...M,owner:u,location:"rollup",_source:"spice",positionId:`${u}:rollup:${M.receiptTokenId??M.address}`}:null}).filter(B=>B!==null)}catch(F){const T=F instanceof Error?F.name:void 0,B=v===429?"Balance refresh is temporarily busy. Wait a moment and try again.":v===408||v===504||T==="TimeoutError"?"Balance refresh timed out. Try again.":T==="AbortError"?"Balance refresh was interrupted. Try again.":"Balances are unavailable. Check your connection and try again.",M=new Be("RELAYER_STATUS_ERROR",B,{endpoint:O,httpStatus:v,requestId:x,cause:F});throw Wn(M),M}},[u,a,c,s?.nativeChainId,s?.rpcOverrides]),{assets:p,loading:w,refreshing:m,error:g,updatedAt:h}=bi(`rollup:${u}:${a}:${c}`,d,n&&!!u,o??0,i),y=JSON.stringify(t??[]),C=we(()=>g?p.map(O=>({...O,balanceError:g,balanceStatus:"stale"})):p,[p,g]),S=Vf(C,n&&r,l),b=we(()=>S.filter(O=>!t?.length||t.includes(O.chainId)||Object.keys(O.chainTokens??{}).some(v=>t.some(x=>v.startsWith(`evm:${x}:`)))),[S,y]),A=re(O=>b.filter(v=>v.chainId===O),[b]);return{assets:b,loading:w,error:g,hasBalance:b.some(O=>O.balance>0n),refreshing:m,updatedAt:h,refetch:i.invalidate,getAssetsByChain:A}};async function Gf(e,t,n){if(n)return{decimals:n.decimals,symbol:n.symbol,name:n.name,logoURI:n.logo};const[o,r,s]=await Promise.all([tr(e,{address:t,abi:ft,functionName:"decimals"}),tr(e,{address:t,abi:ft,functionName:"symbol"}).catch(()=>"TOKEN"),tr(e,{address:t,abi:ft,functionName:"name"}).catch(()=>"TOKEN")]);if(!Number.isInteger(Number(o))||Number(o)<0||Number(o)>255)throw new Error("Invalid token decimals");return{decimals:Number(o),symbol:r,name:s,logoURI:void 0}}const Zc=async(e,t,n)=>{const o=At(t,n),r=xt(t),s=await ni(o,{address:e}),a=r.nativeCurrency,i=r.supportedTokens?.find(l=>Fe(l.address));return{address:Kt,name:a.name,symbol:a.symbol,decimals:a.decimals,balance:s,balanceFormatted:Number(Re(s,a.decimals)),balanceUsd:0,priceStatus:"unavailable",logoURI:i?.logo||r.logo,isNative:!0,chainId:t}},Kf=async(e,t,n,o,r,s,a)=>{try{if(!Gn(n))return null;const i=dn(n),l=Gn(e)?dn(e):e,c=At(t,a),u=await tr(c,{address:i,abi:ft,functionName:"balanceOf",args:[l]}),d=Number(Re(u,s));return u>0n?{address:i,name:o,symbol:r,decimals:s,balance:u,balanceFormatted:d,balanceUsd:0,priceStatus:"unavailable",logoURI:void 0,isNative:!1,chainId:t}:null}catch(i){throw i}},Xc=(e,t)=>{const n=xt(t);if(!n)return e;const o=new Set(e.map(s=>s.address.toLowerCase())),r=e.some(s=>s.isNative);for(const s of n.supportedTokens||[])Fe(s.address)&&r||o.has(s.address.toLowerCase())||e.push({address:s.address,name:s.name,symbol:s.symbol,decimals:s.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:s.logo,isNative:Fe(s.address),chainId:t});if(!e.find(s=>s.isNative)){const s=n.supportedTokens?.find(a=>Fe(a.address));e.push({address:Kt,name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,priceStatus:"unavailable",logoURI:s?.logo||n.logo,isNative:!0,chainId:t})}return e},Yf=async(e,t,n)=>{const o=[],r=async i=>{for(const l of i){const c=await Kf(e,t,l.address,l.name,l.symbol,l.decimals,n);c&&(c.logoURI=l.logo,o.push(c))}},s=await Zc(e,t,n);s.balance>0n&&o.push(s);const a=(xt(t)?.supportedTokens||[]).filter(i=>!Fe(i.address));if(a.length>0)try{const i=At(t,n),l=dn(e),c=a.filter(w=>Gn(w.address)).map(w=>({address:dn(w.address),abi:ft,functionName:"balanceOf",args:[l]})),u=await i.multicall({contracts:c}),d=a.filter(w=>Gn(w.address)),p=[];u.forEach((w,m)=>{if(w.status==="success"){const g=w.result;if(g&&g>0n){const h=d[m],y=Number(Re(g,h.decimals));g>0n&&o.push({address:dn(h.address),name:h.name,symbol:h.symbol,decimals:h.decimals,balance:g,balanceFormatted:y,balanceUsd:0,priceStatus:"unavailable",logoURI:h.logo,isNative:!1,chainId:t})}}else p.push(d[m])}),await r(p)}catch{await r(a)}return{tokens:Xc(o,t),chainId:t}},Zf=async(e,t,n)=>{const o=new Map,r=la(e,n?n[e]??"":void 0);if(!r)return o;const s=t.filter(c=>Fe(c)),a=t.filter(c=>!Fe(c)),[i,l]=await Promise.all([a.length?Ci(r,a).catch(()=>new Map):new Map,s.length?Ii(r,xt(e)?.nativeCurrency?.symbol??"ETH").catch(()=>0):0]);for(const[c,u]of i)u>0&&o.set(c,u);if(l>0)for(const c of s)o.set(c.toLowerCase(),l);return o},Xf=async(e,t,n,o=!0,r)=>{const s=At(t,r),a=dn(e),i=[];let l;do{const g=await s.request({method:"alchemy_getTokenBalances",params:[a,"erc20",l?{pageKey:l}:{}]});i.push(...g.tokenBalances),l=g.pageKey||void 0}while(l);const c=i.filter(g=>Gn(g.contractAddress)&&!!g.tokenBalance&&BigInt(g.tokenBalance)>0n),u=xt(t)?.supportedTokens||[],d=g=>u.find(h=>h.address.toLowerCase()===g.toLowerCase()),p=[],w=await Zc(e,t,r),[m]=await Promise.all([Promise.all(c.map(async g=>{const h=d(g.contractAddress);return h?{name:h.name,symbol:h.symbol,decimals:h.decimals,logo:h.logo??null}:await s.request({method:"alchemy_getTokenMetadata",params:[g.contractAddress]})})),o?Ci(n,c.map(g=>g.contractAddress)):void 0,o&&w.balanceFormatted>0?Ii(n,w.symbol):void 0]);if(w.balance>0n){const g=mr(n,`native:${w.symbol}`);p.push({...w,balanceUsd:(g?.price??0)*w.balanceFormatted,priceStatus:g?g.stale?"stale":"fresh":"unavailable"})}return c.forEach((g,h)=>{const y=m[h];if(!Number.isInteger(y.decimals)||y.decimals===null||y.decimals<0||y.decimals>255)throw new Error(`Invalid token metadata on chain ${t}`);const C=BigInt(g.tokenBalance),S=Number(Re(C,y.decimals));if(C<=0n)return;const b=mr(n,g.contractAddress),A=(b?.price??0)*S;p.push({address:dn(g.contractAddress),name:y.name||"Unknown",symbol:y.symbol||"UNKNOWN",decimals:y.decimals,balance:C,balanceFormatted:S,balanceUsd:A,priceStatus:b?b.stale?"stale":"fresh":"unavailable",isDiscovered:!d(g.contractAddress),logoURI:y.logo||void 0,isNative:!1,chainId:t})}),{tokens:Xc(p,t),chainId:t}},Jc=new Set,Jf=async(e,t,n=!0,o)=>{try{const r=la(t,o?o[t]??"":void 0);if(r)try{return await Xf(e,t,r,n&&(typeof document>"u"||!document.hidden),o)}catch(s){Jc.has(t)||(Jc.add(t),console.warn(`Token discovery unavailable on chain ${t}; listing configured tokens only.`,s))}return await Yf(e,t,o)}catch(r){throw r}},Rr=async(e,t,n=[],o)=>{if(!e)throw new Error("Wallet address is required");const r=mp(o),s=t?.length?[...new Set(t)]:Object.keys(r).map(Number),a=await Promise.allSettled(s.map(l=>Jf(e,l,!0,o))),i={};return a.forEach((l,c)=>{const u=s[c];i[u]=l.status==="fulfilled"?l.value:{chainId:u,tokens:[],error:`Unable to refresh balances on chain ${u}`}}),(await Promise.allSettled(n.map(async l=>{const c=i[l.chainId];if(!c||c.error||c.tokens.some(h=>ht(h.address).toLowerCase()===ht(l.address).toLowerCase()))return;const u=At(l.chainId,o),d=await Gf(u,l.address,l.decimals!==void 0&&l.symbol?{decimals:l.decimals,symbol:l.symbol,name:l.name||l.symbol,logo:l.logoURI}:void 0),p=await tr(u,{address:l.address,abi:ft,functionName:"balanceOf",args:[e]});await Zf(l.chainId,[l.address],o);const w=Number(Re(p,d.decimals)),m=la(l.chainId,o?o[l.chainId]??"":void 0),g=m?mr(m,l.address):void 0;c.tokens.push({...d,...l,name:d.name,symbol:d.symbol,decimals:d.decimals,balance:p,balanceFormatted:w,balanceUsd:(g?.price??0)*w,priceStatus:g?g.stale?"stale":"fresh":"unavailable",isNative:!1})}))).forEach((l,c)=>{if(l.status==="rejected"){const u=i[n[c].chainId];u&&(u.error=`Unable to refresh token balances on chain ${u.chainId}`)}}),i},ms=({address:e,supportedChains:t,fetchBalances:n=Rr,additionalTokens:o=[],enabled:r=!0,refreshInterval:s=0,priceEnabled:a=!0})=>{const i=an($t),l=aa(),c=e?.toLowerCase(),u=JSON.stringify([...i?.supportedChainIds??t??[]].sort((C,S)=>C-S)),d=JSON.stringify(o);pe(()=>l.registerTokens(o),[l,d]);const p=c&&c===i?.embeddedWalletAddress?.toLowerCase()?"embedded":"external",w=`wallet:${JSON.stringify([i?.network,i?.apiUrl,i?.rpcOverrides])}:${c}:${p}:${u}:${l.fetcherId(n)}`,m=re(async()=>{let C;try{C=await n(c,JSON.parse(u),l.tokens(),i?.rpcOverrides)}catch(O){const v=O instanceof Error?O.message:"Unable to refresh balances";C=Object.fromEntries(JSON.parse(u).map(x=>[x,{chainId:x,tokens:[],error:v}]))}const S=l.entry(w).snapshot().assets,b=JSON.parse(u).map(O=>C[O]??{chainId:O,tokens:[],error:`Unable to refresh balances on chain ${O}`}),A=b.flatMap(O=>O.error?[O.error]:[]);return{assets:b.flatMap(O=>O.error?S.filter(v=>v.chainId===O.chainId).map(v=>({...v,balanceError:O.error,balanceStatus:"stale"})):O.tokens.map(v=>({...v,owner:c,location:p,_fundingWallet:p,_source:"wallet",positionId:`${c}:${p}:${O.chainId}:${ht(v.address).toLowerCase()}`}))),error:A.length?A.join("; "):null}},[l,c,u,n,p,w]),g=bi(w,m,r&&!!c,s,l),h=JSON.stringify(t&&[...t].sort((C,S)=>C-S)),y=we(()=>t?g.assets.filter(C=>t.includes(C.chainId)):g.assets,[g.assets,h]);return pe(()=>{a&&r&&c&&g.refresh()},[a]),{...g,assets:y,refreshAssets:l.invalidate,getAssetsByChain:re(C=>y.filter(S=>S.chainId===C),[y]),getNativeAssets:re(()=>y.filter(C=>C.isNative),[y])}};function hr(e){const t=an($t),n=aa(),o=e.owner??((t?.mode||"7702")!=="7702"?t?.externalWalletAddress:t?.embeddedWalletAddress),r=o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase(),s=e.sourceChains??t?.supportedChainIds??[],a=(e.enabled??!0)&&!t?.isWhitelistGateActive,i=we(()=>{const p=[...t?.additionalSourceTokens??[],...e.additionalSourceTokens??[],...e.destination?[e.destination]:[]];for(const w of e.supportedSourceAssets??[])for(const m of s){const g=xt(m)?.supportedTokens?.find(h=>Hs(h,[w]));g&&p.push({...g,address:g.address,chainId:m,logoURI:g.logo})}return p},[e.destination,JSON.stringify(t?.additionalSourceTokens),JSON.stringify(e.additionalSourceTokens),JSON.stringify(e.supportedSourceAssets),JSON.stringify(s)]),l=ms({address:o,supportedChains:s,fetchBalances:Rr,additionalTokens:i,enabled:a&&e.includeWalletAssets!==!1,refreshInterval:3e4}),c=Yc({address:o,supportedChains:s,enabled:a&&e.includeRollupAssets!==!1&&!!o&&o.toLowerCase()===t?.embeddedWalletAddress?.toLowerCase(),priceEnabled:a,refetchInterval:3e4}),u=we(()=>a?[...(e.includeWalletAssets===!1?[]:l.assets).map(p=>({...p,owner:p.owner??o,location:p.location??(r?"external":"embedded"),_source:"wallet"})),...(e.includeRollupAssets===!1||o?.toLowerCase()!==t?.embeddedWalletAddress?.toLowerCase()?[]:c.assets).map(p=>({...p,owner:p.owner??o,location:"rollup",_source:"spice"}))]:[],[a,l.assets,c.assets,e.includeWalletAssets,e.includeRollupAssets,o,r,t?.embeddedWalletAddress]),d=we(()=>u.map(p=>({asset:p,...Io(p,e.role??"holding",{allowedTokens:t?.allowedTokens,rpcOverrides:t?.rpcOverrides,liquidityVenues:t?.liquidityVenues,isWhitelistGateActive:!!t?.isWhitelistGateActive},e.destination,e.supportedSourceAssets,{requiresEscrow:e.requiresEscrow})})),[u,t?.allowedTokens,t?.rpcOverrides,t?.liquidityVenues,t?.isWhitelistGateActive,e.role,e.destination,e.supportedSourceAssets,e.requiresEscrow]);return{positions:d,assets:we(()=>d.filter(p=>p.eligible&&p.asset.balance>0n).map(p=>p.asset),[d]),walletAssets:we(()=>u.filter(p=>p._source==="wallet"),[u]),rollupAssets:we(()=>u.filter(p=>p._source==="spice"),[u]),loading:l.loading||c.loading,refreshing:l.refreshing||c.refreshing,error:l.error||c.error,refresh:n.invalidate}}function ca(e,t=!0,n){const o=n?.pendingOnly===!0,r=qe.getBaseUrl(),s=`${r}:${e?.toLowerCase()??""}:${o}`,[a,i]=L({scope:s,actions:[],error:null,loading:t&&!!e,updatedAt:null,revision:0}),[l,c]=L(0),u=re(()=>c(p=>p+1),[]);pe(()=>{if(!t||!e){i(h=>h.scope===s&&h.actions.length===0&&!h.error&&!h.loading&&!h.updatedAt&&h.revision===0?h:{scope:s,actions:[],error:null,loading:!1,updatedAt:null,revision:0});return}const p=new AbortController,w=new $r;w.setBaseUrl(r);let m;i(h=>({scope:s,actions:h.scope===s?h.actions:[],error:h.scope===s?h.error:null,loading:!0,updatedAt:h.scope===s?h.updatedAt:null,revision:h.scope===s?h.revision:0}));const g=async()=>{try{const h=await w.getWalletActions(e,{pendingOnly:o,signal:p.signal});p.signal.aborted||i(y=>({scope:s,actions:h,error:null,loading:!1,updatedAt:new Date().toISOString(),revision:y.scope===s?y.revision+1:1}))}catch(h){if(p.signal.aborted)return;const y=h instanceof Be&&h.context.httpStatus===404;i(y&&!o?C=>({scope:s,actions:[],error:null,loading:!1,updatedAt:new Date().toISOString(),revision:C.scope===s?C.revision+1:1}):C=>({scope:s,actions:C.scope===s?C.actions:[],error:"Activity is temporarily unavailable. Refresh to check again.",loading:!1,updatedAt:C.scope===s?C.updatedAt:null,revision:C.scope===s?C.revision:0}))}p.signal.aborted||(m=setTimeout(g,5e3))};return g(),window.addEventListener("online",u),()=>{p.abort(),m&&clearTimeout(m),window.removeEventListener("online",u)}},[r,e,t,s,o,l,u]);const d=a.scope===s;return{actions:t&&e&&d?a.actions:[],error:d?a.error:null,loading:t&&!!e&&(!d||a.loading),updatedAt:d?a.updatedAt:null,revision:d?a.revision:0,refresh:u}}function Si(e){const t=j(0),n=j(null),o=j(e.run);o.current=e.run;const r=j(e.onSkip);r.current=e.onSkip;const s=j(e.onCleanup);s.current=e.onCleanup,pe(()=>{if(!e.shouldRun){t.current+=1,n.current?.abort(),r.current?.();return}let a=!1,i=!1;const l=async p=>{if(p&&i)return;n.current?.abort();const w=new AbortController;n.current=w;const m=++t.current;i=!0;try{await o.current({isBackground:p,isCurrent:()=>!a&&t.current===m,signal:w.signal})}finally{i=!1}},c=window.setTimeout(()=>void l(!1),e.delayMs??250),u=()=>{document.hidden||l(!0)},d=e.backgroundIntervalMs?window.setInterval(u,e.backgroundIntervalMs):void 0;return d!==void 0&&document.addEventListener("visibilitychange",u),()=>{a=!0,n.current?.abort(),clearTimeout(c),d!==void 0&&(window.clearInterval(d),document.removeEventListener("visibilitychange",u)),s.current?.()}},[e.shouldRun,e.delayMs,e.backgroundIntervalMs,...e.deps])}function $c(e,t){if(e.length!==t.length)return!1;const n=Co(e),o=Co(t);return n.every((r,s)=>r.hash===o[s]?.hash)}const go=e=>new Promise(t=>setTimeout(t,e)),$f="0xa9059cbb";function _c(e){const t=e.findIndex(r=>Ro(r.chainId));if(t<=0)return[];const n=new Map,o=(r,s,a)=>{if(a<=0n)return;const i=`${r}:${s.toLowerCase()}`,l=n.get(i);l?l.amount+=a:n.set(i,{chainId:r,token:s,amount:a})};for(const r of e.slice(0,t)){const s=rs(r.chainId);if(!(!s||s===Kt)){for(const a of r.calls)if(a.value&&a.value>0n&&J(a.to,s)&&o(r.chainId,Kt,a.value),!!a.data?.startsWith($f))try{const i=jn({abi:ft,data:a.data});if(i.functionName!=="transfer")continue;const[l,c]=i.args;J(l,s)&&o(r.chainId,a.to,c)}catch{}}}return[...n.values()]}function ed(e){const t=Yt(e.token,e.chainId);return[t?.equivalenceGroup,t?.symbol,t?.name]}function td(e,t){return Qc(e,t.chainId,t.token,ed(t))}function _f(e,t){const n=Uf(e,t.chainId,t.token,ed(t));return!n||n.receiptDecimals>=n.chainDecimals?t.amount:mo(mo(t.amount,n.chainDecimals,n.receiptDecimals),n.receiptDecimals,n.chainDecimals)}async function nd(e){const{deposits:t,baseline:n,fetchEntries:o,timeoutMs:r=12e4,intervalMs:s,signal:a,wait:i=go}=e;if(t.length===0)return!0;const l=new Map(t.map(d=>[d,td(n,d)])),c=Date.now(),u=c+r;for(;!a?.aborted;){try{const m=await o();if(t.every(g=>td(m,g)-l.get(g)>=_f(m,g)))return!0}catch{}const d=Date.now();if(d>=u)return!1;const p=d-c,w=s??(p<5e3?250:p<15e3?1e3:3e3);await i(Math.min(w,u-d))}return!1}function Ai(e,t){const n=Co(e).map(o=>o.hash);return ur(Qo([{type:"string"},{type:"uint256"},{type:"uint256"},{type:"bytes32[]"}],["ecdsa",0n,t,n]))}async function Ei(e,t,n,o,r){if(o?.aborted)throw new Be("ABORT","Execution transaction aborted");const s={raw:Ai(t,n)},a=r?await e.signMessage(s,r):await e.signMessage(s);console.debug("[SpiceFlow:execution]",{phase:"signature-returned",at:Date.now()});const i=typeof a=="string"?a:a.signature;if(!i)throw new Be("SIGNATURE_FAILED","Failed to sign intent authorization. The wallet returned an empty signature.");return i}function em(e){return e.domain==="spicenet"||Ro(e.chainId)}async function Fi(e){const{chainBatches:t,signingAddress:n,actions:o,cache:r,signal:s,onSignatureRequested:a,beforeSign:i}=e;if(s?.aborted)throw new Be("ABORT","Execution transaction aborted");const l=[...new Set(t.filter(p=>!em(p)).map(p=>p.chainId))].map(p=>({chainId:p,client:At(p),delegateContract:Pl(p)})),[c]=await Promise.all([Promise.all(l.map(async({chainId:p,client:w,delegateContract:m})=>{const g=Number(await Op(n,w)),h=[n.toLowerCase(),p,m.toLowerCase(),g].join(":");return{chainId:p,delegateContract:m,nonce:g,cacheKey:h,cached:r?.get(h)}})),l.length?o.prepareSigning?.():void 0]);if(await i?.(),s?.aborted)throw new Be("ABORT","Execution transaction aborted");const u=[];let d=!1;for(const{chainId:p,delegateContract:w,nonce:m,cacheKey:g,cached:h}of c){if(h){u.push(h);continue}if(d&&await i?.(),s?.aborted)throw new Be("ABORT","Execution transaction aborted");const y=await o.signAuthorization({contractAddress:w,chainId:p,nonce:m},a);d=!0;const C={r:y.r,s:y.s,yParity:y.yParity,address:y.address??w,chainId:Number(y.chainId??p),nonce:Number(y.nonce??m)};r?.set(g,C),u.push(C)}return u}const od=15;function tm(e){return e.now-e.lastProgressAt>=e.pollTimeoutMs}function rd(e,t){return{intentId:e,steps:t.map(n=>({...n,status:"pending"})),overallStatus:"processing"}}function da(e,t,n){const o=e.steps.map(i=>({...i})),r=o[t];if(!r)return e;n.status==="success"||n.status==="completed"?(o[t]={...r,status:"success",transactionHash:n.transactionHash},t+1<o.length&&o[t+1].status==="pending"&&(o[t+1]={...o[t+1],status:"processing"})):n.status==="reverted"||n.status==="error"?o[t]={...r,status:"failed",transactionHash:n.transactionHash,error:n.error}:o[t]={...r,status:"processing"};const s=o.some(i=>i.status==="failed"),a=o.every(i=>i.status==="success");return{...e,steps:o,overallStatus:s?"failed":a?"success":"processing"}}function nm({checkStepStatus:e,retryStep:t,maxRetries:n=3,pollingInterval:o=2500,pollTimeoutMs:r=3e5}){const[s,a]=L(null),i=j(null),l=j(null),c=j(!1),u=j(!1),d=j(0),p=j({}),w=j(0),m=re(b=>{i.current=b,a(b)},[]),g=re(()=>{l.current&&(clearInterval(l.current),l.current=null)},[]),h=re(()=>{d.current=0,p.current={},w.current=0,c.current=!0,g(),m(null)},[g,m]),y=re((b,A)=>{g(),c.current=!1,m(rd(b,A))},[g,m]),C=re((b,A)=>{const O=i.current;O&&m(da(O,b,A))},[m]),S=re((b,A)=>{g(),c.current=!1,u.current=!1,d.current=0,p.current={},w.current=Date.now(),m(rd(b,A));const O=async()=>{if(!(c.current||u.current||!e)){u.current=!0;try{if(tm({now:Date.now(),lastProgressAt:w.current,pollTimeoutMs:r})){const F=i.current;F&&m({...F,steps:F.steps.map(T=>T.status==="success"?T:{...T,status:"failed",error:"Taking longer than expected. It may still complete - check the explorer, then refresh."}),overallStatus:"failed"}),c.current=!0,g();return}const v=i.current;if(!v)return;const x=v.steps.findIndex(F=>F.status!=="success");if(x===-1){c.current=!0,g();return}if(!(x===0||v.steps[x-1].status==="success"))return;try{const F=v.steps[x].stepId,{data:T}=await e(b,F);if(d.current=0,T.status==="success"&&(w.current=Date.now()),T.status==="reverted"){const M=p.current[F]||0;if(t&&M<n){p.current[F]=M+1;try{await t(b,F)}catch(k){console.error(`[intentStatus] retry failed for step ${F}:`,k)}m(da(i.current,x,{status:"executing"}));return}}const B=da(i.current,x,T);m(B),B.overallStatus!=="processing"&&(c.current=!0,g())}catch(F){d.current+=1,console.error(`[intentStatus] poll error (${d.current}/${od}):`,F),d.current>=od&&(m(da(i.current,x,{status:"error"})),c.current=!0,g())}}finally{u.current=!1}}};O(),l.current=setInterval(O,o)},[e,t,n,o,r,g,m]);return pe(()=>()=>g(),[g]),{intentStatus:s,startStatusPolling:S,beginStatusTracking:y,applyStepUpdate:C,stopStatusPolling:g,clearStatus:h}}function om(e,t){return(t||"").trim()||`Transaction ${e}. The transaction was rejected on-chain. This may be due to insufficient balance, price changes, or health factor constraints. Please verify your positions and try again.`}const rm=350,sm=2500;async function sd(e){const{actionId:t,intentIndex:n,intentId:o,stepIndex:r,maxPolls:s=48,maxExecuteAttempts:a=3,pollsBeforeRetry:i=5,maxConsecutiveStatusErrors:l=15,onStatusMessage:c,onStepUpdate:u,signal:d,chainId:p,startWithExecute:w=!0,observeOnly:m=!1,relayer:g=qe,completeOnExecution:h=!1}=e;if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");let y="pending",C,S,b=e.initialExecuteAttempts??0,A=0,O,v;const x=new Promise((T,B)=>{O=T,v=()=>B(new Be("ABORT","Execution transaction aborted"))}),F=()=>{b++,e.onExecuteAttempt?.(b),g.executeStep(t,n,r,{action:"execute"}).then(T=>{T.transactionHash&&(C=T.transactionHash),T.status==="success"&&O({status:T.status,transactionHash:T.transactionHash})}).catch(T=>{const B=T instanceof Error?T.message:String(T);console.warn(`[execution] executeStep ${r} attempt ${b} error (will poll):`,B)})};d?.addEventListener("abort",v,{once:!0});try{w&&!m&&b<a&&F();for(let T=0;T<s;T++){const B=T===0?rm:sm;try{const k=await Promise.race([go(B).then(()=>{}),x]);if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");const E=k??await Promise.race([g.checkStepStatus(o,r,h).then(D=>D.data),x]);if(d?.aborted)throw new Be("ABORT","Execution transaction aborted");A=0,y=E.status,S=E.error;const I=E.transactionHash;I&&(C=I),h&&/^0x[0-9a-f]{64}$/i.test(I??"")&&(E.executionStatus==="success"||E.executionStatus==="reverted")&&(y=E.executionStatus,S=void 0),u?.({status:y,transactionHash:C,error:S})}catch(k){if(k instanceof Error&&(k.name==="AbortError"||k instanceof Be&&k.code==="ABORT"))throw k;if(A++,A>=l){if(!m)throw k;c?.("Status is temporarily unavailable. The backend continues this action.",C)}continue}if(!m&&y==="created"&&T>=b*i&&b<a&&F(),y==="reverted"||y==="error")throw new Be("ON_CHAIN_REVERT",om(y,S),{status:y,txHash:C,actionId:t,intentId:o,stepId:r,chainId:p});if(y==="success"||y==="completed")return C;let M="Waiting for solver...";y==="executing"?M="Transaction executing...":y==="submitted"?M="Transaction submitted...":y==="created"&&(M="Waiting for relayer..."),c?.(M,C)}throw new Be("POLLING_EXHAUSTED",`Transaction is still processing (status: ${y}). This doesn't mean it failed \u2014 the solver may still complete it. Check your positions in a few minutes, or try refreshing the page.`,{actionId:t,intentId:o,stepId:r,lastStatus:y,pollAttempts:s,maxPolls:s,txHash:C})}finally{d?.removeEventListener("abort",v)}}async function am(e){const{actionId:t,intentIndex:n,intentId:o,totalSteps:r,observeOnly:s,delayBeforeSpicenetStepMs:a=5e3,isSpicenetStep:i,beforeStep:l,maxExecuteAttemptsForStep:c,maxPolls:u=48,onStatusMessage:d,onStepUpdate:p,signal:w}=e;let m;for(let g=e.startStep??0;g<r;g++){if(!s&&g>0&&i?.(g)&&a>0&&await go(a),s||await l?.(g),w?.aborted)throw new Be("ABORT","Execution transaction aborted");const h=c?.(g)??3,y=await sd({actionId:t,intentIndex:n,intentId:o,stepIndex:g,observeOnly:s,startWithExecute:e.startWithExecute,relayer:e.relayer,maxPolls:u,maxExecuteAttempts:h,initialExecuteAttempts:e.executeAttempts?.get(g),onExecuteAttempt:C=>e.executeAttempts?.set(g,C),maxConsecutiveStatusErrors:h===6?5:15,onStatusMessage:d,onStepUpdate:p?C=>p(g,C):void 0,signal:w,completeOnExecution:g===r-1&&i?.(g)===!1});y&&(m=y)}return m}const im="0xa9059cbb",lm=[Rp,Cn,zn];function ad(e){return lm.some(t=>J(e,t))}function ua(e,t){return e.map(n=>{if(n.domain==="spicenet"||Ro(n.chainId)||n.calls.length===0)return n;const o=new Set((n.tokenTransfers??[]).filter(a=>(a.from==="escrow"||a.from==="solver")&&J(a.to,t)).map(a=>a.token.toLowerCase()));if(o.size===0)return n;const r=[...o].some(Fe);let s=0;for(const a of n.calls){if(r&&a.value>0n&&a.data==="0x"&&ad(a.to)){s+=1;continue}if(!a.data?.startsWith(im))break;try{const i=jn({abi:ft,data:a.data});if(i.functionName!=="transfer")break;const[l]=i.args;if(!ad(l)||!o.has(a.to.toLowerCase()))break;s+=1}catch{break}}return s===0?n:{...n,calls:n.calls.slice(s)}})}async function id(e,t,n){if(!t||!/^0x[0-9a-f]{64}$/i.test(t))throw new Error("The destination receipt is not available yet; reconcile the existing action before retrying.");const o=()=>new Be("ABORT","Execution observation retired");if(n?.aborted)throw o();const r=await new Promise((s,a)=>{const i=()=>a(o());n?.addEventListener("abort",i,{once:!0}),Promise.resolve().then(()=>e.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1})).then(s,a).finally(()=>n?.removeEventListener("abort",i))});if(n?.aborted)throw o();if(r.transactionHash?.toLowerCase()===t.toLowerCase()&&r.status==="reverted")throw new Be("ON_CHAIN_REVERT","The destination transaction reverted.",{status:"reverted",txHash:t});if(r.transactionHash?.toLowerCase()!==t.toLowerCase()||r.status!=="success")throw new Error("The destination transaction has not been confirmed successfully. Reconcile the existing action before retrying.");return t}async function pa(e){let t=e.hash,n=!1;const o=Date.now()+12e4,r=a=>a.transactionHash&&a.transactionHash.toLowerCase()!==t.toLowerCase();let s=await e.client.waitForTransactionReceipt({hash:t,timeout:12e4,pollingInterval:2e3,confirmations:1,onReplaced:a=>{const i=a.transaction,l=a.replacedTransaction;if(!(a.reason==="repriced"&&l?.hash?.toLowerCase()===t.toLowerCase()&&l?.to?.toLowerCase()===e.call.to.toLowerCase()&&(l.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(l.value??0)===e.call.value&&l?.from&&l.nonce!==void 0&&/^0x[0-9a-f]{64}$/i.test(i?.hash??"")&&i?.to?.toLowerCase()===e.call.to.toLowerCase()&&(i.input??"0x").toLowerCase()===e.call.data.toLowerCase()&&BigInt(i.value??0)===e.call.value&&i.from?.toLowerCase()===l?.from?.toLowerCase()&&i.nonce===l?.nonce)){n=!0,e.onCancelled?.();return}t=i.hash,e.onRepriced?.(t)}});if(n)throw new Error("Transaction was cancelled or replaced with a different action; retry the unfinished action");if((e.confirmations??1)>1&&!r(s)&&s.status==="success"&&(s=await e.client.waitForTransactionReceipt({hash:t,timeout:Math.max(o-Date.now(),1),pollingInterval:2e3,confirmations:e.confirmations})),r(s))throw new Error("Unexpected transaction receipt; recover the submitted transaction before retrying");return{receipt:s,hash:t}}const Ti=10n,cm=5;function Bi(e){return e.map(t=>({...t,calls:[...t.calls],tokenTransfers:t.tokenTransfers?[...t.tokenTransfers]:void 0}))}function fa({token:e,recipient:t,amount:n}){return{to:e,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[t,n]})}}function dm({chainBatches:e,token:t,amount:n}){const o=Bi(e),r=o[o.length-1];if(!r)return o;const s=Oo(r.chainId);return r.calls=[...r.calls,fa({token:t,recipient:s,amount:n})],o}function ld({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:r,policy:s}){const a=Bi(e),i=a[a.length-1];if(!i)throw new Be("INVALID_PARAMS","Action-output escrow funding requires at least one chain batch.");const l=Vs(o,BigInt(s?.platformBps??Ti)),c=r+l;if(c>=o)throw new Be("INVALID_PARAMS","Borrow amount is too small after gas and Spicenet fees.",{grossAmount:o.toString(),gasFee:r.toString(),spicenetFee:l.toString()});const u=o-c,d=Oo(i.chainId),p=[];return r>0n&&p.push(fa({token:n,recipient:s?.gasRecipient??Cn,amount:r})),l>0n&&p.push(fa({token:n,recipient:s?.platformRecipient??zn,amount:l})),i.calls=[...i.calls,...p,fa({token:n,recipient:d,amount:u})],i.tokenTransfers=[...i.tokenTransfers??[],...r>0n?[{from:t,to:Cn,token:n,amount:r}]:[],...l>0n?[{from:t,to:zn,token:n,amount:l}]:[],{from:t,to:d,token:n,amount:u}],{chainBatches:a,gasFee:r,spicenetFee:l,netEscrowAmount:u,outputCredit:{chainId:i.chainId,token:n,amount:o}}}async function cd({chainBatches:e,user:t,token:n,grossAmount:o,chainAuthorizations:r}){let s=0n,a,i=ld({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:s});for(let l=0;l<cm;l+=1){const c=Co(i.chainBatches),u=await qe.estimateBatchGas({user:t,outputToken:n,chainBatches:i.chainBatches.map((p,w)=>({...p,hash:c[w].hash})),chainAuthorizations:r}),d=u.gasFee;if(d===s&&JSON.stringify(u.policy)===JSON.stringify(a))return i;a=u.policy,s=d,i=ld({chainBatches:e,user:t,token:n,grossAmount:o,gasFee:s,policy:a})}throw new Be("INVALID_PARAMS","Action-output fee estimate did not converge. Please retry.")}function No(e){return Ro(e.chainId)}const um="0xa9059cbb";function hs(e,t){return`${e}:${ht(t).toLowerCase()}`}function dd(e,t){return t===Kt.toLowerCase()?{symbol:ro(e),decimals:18}:Yt(t,e)??{symbol:"tokens",decimals:18}}function pm(e,t){const n=Yt(t,e);return[n?.equivalenceGroup,n?.symbol,n?.name]}async function Oi(e){return js(e)}async function Ri(e,t,n){const o=new Map,r=new Map,s=[...n?.walletFundingRequirement?[n.walletFundingRequirement]:[],...n?.walletFundingRequirements??[]];for(const d of s){if(d.amount<0n)throw new Error("Accepted wallet funding must not be negative");const p=hs(d.chainId,d.token);r.set(p,(r.get(p)??0n)+d.amount),o.set(p,0n)}const a=new Map,i=new Map,l=new Map,c=new Map;for(const d of n?.actionOutputCredits??[]){const p=hs(d.chainId,d.token);c.set(p,(c.get(p)??0n)+d.amount)}for(const d of e){if(No(d))continue;for(const m of d.tokenTransfers??[]){if(m.from!=="escrow"&&m.from!=="solver"||!J(m.to,t))continue;const g=BigInt(m.amount??0);if(g<=0n)continue;const h=hs(d.chainId,m.token);a.set(h,(a.get(h)??0n)+g),m.from==="escrow"&&i.set(h,(i.get(h)??0n)+g)}const p=rs(d.chainId),w=m=>!!p&&p!==Kt&&J(m,p);for(const m of d.calls){if(m.value&&m.value>0n){const g=hs(d.chainId,Kt);o.set(g,(o.get(g)??0n)+m.value),w(m.to)&&l.set(g,(l.get(g)??0n)+m.value)}if(m.data?.startsWith(um))try{const g=jn({abi:ft,data:m.data});if(g.functionName!=="transfer")continue;const[h,y]=g.args,C=m.to.toLowerCase(),S=hs(d.chainId,C);o.set(S,(o.get(S)??0n)+y),w(h)&&l.set(S,(l.get(S)??0n)+y)}catch{}}}let u=null;for(const[d,p]of i){const w=p-(l.get(d)??0n);if(w<=0n)continue;const[m,g]=d.split(":"),h=Number(m),y=dd(h,g);u??(u=await Oi(t));const C=Qc(u,h,g,pm(h,g));if(!(C>=w))throw new Be("INVALID_PARAMS",`Insufficient Spice ${y.symbol}: needs ${Re(w,y.decimals)}, has ${Re(C,y.decimals)}.`,{chainId:h,token:g,userAddress:t,requiredAmount:w.toString(),balance:C.toString(),balanceSource:"spice"})}for(const[d,p]of o){const[w,m]=d.split(":"),g=Number(w);let h=p-(a.get(d)??0n)-(c.get(d)??0n);const y=r.get(d)??0n;if(y>h&&(h=y),h<=0n)continue;const C=At(g),S=m===Kt.toLowerCase()?await C.getBalance({address:t}):await C.readContract({address:m,abi:ft,functionName:"balanceOf",args:[t]});if(S>=h)continue;const b=dd(g,m);throw new Be("INVALID_PARAMS",`Insufficient ${b.symbol} on ${ro(g)}: needs ${Re(h,b.decimals)}, has ${Re(S,b.decimals)}.`,{chainId:g,token:m,userAddress:t,requiredAmount:h.toString(),balance:S.toString(),balanceSource:"wallet"})}}function fm({chainBatches:e,tokenAddress:t,tokenTransferAmount:n,useCustomTransfers:o}){if(!(e.some(No)||!(o?e.some(r=>No(r)?!1:(r.tokenTransfers??[]).some(s=>s.from==="escrow"&&BigInt(s.amount??0)>0n)):n>0n)))throw new Be("INVALID_PARAMS","Payouts funded from Spice balance require a Spicenet funding batch before the destination chain batch. Deposits into Spice balance and gas-only actions do not need one.",{tokenAddress:t,tokenTransferAmount:n.toString(),useCustomTransfers:!!o})}function mm(e,t,n,o){t.forEach((r,s)=>{if(!r.to||!r.from||!r.token||r.amount===void 0)throw new Be("INVALID_TOKEN_TRANSFER",`tokenTransfers[${s}] on chain ${e} is missing required fields (to/from/token/amount). This usually means the embedded wallet wasn't ready when the intent was built \u2014 please retry.`,{chainId:e,transferIndex:s,transfer:{from:r.from,to:r.to,token:r.token,amount:r.amount?.toString()},signingAddress:n,useCustomTransfers:o})})}function ma({user:e,chainBatches:t,tokenAddress:n,tokenTransferAmount:o,exp:r,signature:s,chainAuthorizations:a,useCustomTransfers:i}){const l=t,c=Co(l),u=l.filter(d=>!No(d)).length;if(fm({chainBatches:l,tokenAddress:n,tokenTransferAmount:o,useCustomTransfers:i}),!i&&o>0n&&u>1)throw new Be("INVALID_PARAMS","Multiple non-Spicenet batches require explicit tokenTransfers. Pass useCustomTransfers with per-batch transfers instead of relying on the default escrow payout injection.",{nonSpicenetBatchCount:u,tokenAddress:n,tokenTransferAmount:o.toString()});return{user:e,...a?{chainAuthorizations:a}:{},intents:[{mode:"7702",signatureType:"ecdsa",signature:s,nbf:0,exp:r,chainBatches:c.map((d,p)=>{const w=l[p],m=No(w)?[]:i?w.tokenTransfers??[]:o>0n?[{from:"escrow",to:e,token:n,amount:o}]:[];return mm(Number(d.chainId),m,e,i),{hash:d.hash,chainId:Number(d.chainId),tokenTransfers:m,calls:d.calls}})}]}}function ud(e,t){const n=t?.depositToEscrow?.gasFundingSource==="action-output"?t.depositToEscrow:null,o=t?.depositToEscrow&&!n?dm({chainBatches:e,token:t.depositToEscrow.token,amount:t.depositToEscrow.amount}):Bi(e);return{actionOutputDeposit:n,batches:o}}let Di=!1;function Dr(){const{address:e,isConnected:t,isAuthenticated:n,actions:o}=Fo(),r=j(null),s=j(0),a=j(null),{intentStatus:i,startStatusPolling:l,beginStatusTracking:c,applyStepUpdate:u,clearStatus:d}=nm({checkStepStatus:(S,b)=>qe.checkStepStatus(S,b),retryStep:async(S,b)=>{const[A,O]=S.split("/"),v=parseInt(O||"0",10);await qe.executeStep(A,v,b,{action:"execute"})}}),p=re(()=>{s.current++,a.current=null,d()},[d]),w=j(o),m=j(new Map);w.current=o;const g=re((S,b,A,O,v)=>Fi({chainBatches:S,signingAddress:b,actions:w.current,cache:m.current,signal:A,onSignatureRequested:O,beforeSign:v}),[]),h=re((S,b,A,O)=>Ei(w.current,S,b,A,O),[]),y=re(async(S,b,A,O,v,x)=>{let F={},T={};const B=(k,E,I)=>{I?.actionId&&(F={actionId:I.actionId,intentId:I.intentId,intentIndex:I.intentIndex,totalSteps:I.totalSteps,autoContinue:I.autoContinue,user:x?.userOverride||e}),O?.({step:k,message:E,...T,...F,...I})};if(Di)throw new Be("CONCURRENT_EXECUTION","A execution transaction is already in progress. Please wait.");Di=!0;const M=s.current;try{if(!e)throw new Be("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const k=x?.userOverride||e,E=qe.getBaseUrl(),I=a.current;if(I&&J(I.user,k)&&I.apiUrl===E){if(I.resume)return await I.resume(S,b,A,v,O,x);throw I.error}a.current=null;const D=Me=>Gl(Me.map(Pe=>({...Pe,tokenTransfers:Pe.tokenTransfers??[]})),[]),P=D(S),H=Me=>new Map(Object.entries(Me??{}).filter(([Pe,ye])=>Pe!=="signal"&&(typeof ye!="function"||["prepareForSigning","adjustBatchesForEstimate","resolveActionOutputCredits"].includes(Pe))).map(([Pe,ye])=>[Pe,typeof ye=="function"?ye:JSON.stringify(ye,(Ze,ke)=>typeof ke=="bigint"?ke.toString():ke)])),Q=H(x),G=await qe.supportsAutomaticContinuation({signal:v}),{actionOutputDeposit:ne,batches:X}=ud(S,x);let V=X,oe=[],Y=x?.useCustomTransfers,ge=_c(V),xe=null;const he=async()=>{(x?.walletFundingRequirement||x?.walletFundingRequirements?.length)&&await Ri([],k,{walletFundingRequirement:x?.walletFundingRequirement,walletFundingRequirements:x?.walletFundingRequirements});for(let Me=0;ge.length>0&&Me<3;Me++)try{xe=await Oi(k);break}catch(Pe){if(v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(Me===2)throw new Be("RELAYER_ERROR","Unable to read your Spice balance. Please try again before submitting the transaction.",{cause:Pe});await go(1e3)}await x?.validateBeforeSubmit?.(V)};B("building","Preparing your wallet and transaction...");const ve=await g(V,k,v,()=>B("signing-delegation","Confirm the authorization in your wallet..."),he);if(B("building","Checking transaction fees and balances..."),v?.aborted)throw new Be("ABORT","Execution transaction aborted");const _=BigInt(Math.floor(Date.now()/1e3)+3600);if(ne){const Me=await cd({chainBatches:S,user:k,token:ne.token,grossAmount:ne.amount,chainAuthorizations:ve});V=Me.chainBatches,oe=[Me.outputCredit],Y=!0}if(!x?.skipPreSubmitFeeEstimate){let Me=!1;if(x?.feeExecutionMode==="user-transfer"&&x.adjustBatchesForEstimate&&qe.canValidateActionFees()){const Pe=await qe.validateActionFees(ma({user:k,chainBatches:V,tokenAddress:b,tokenTransferAmount:A,exp:Number(_),signature:"0x00",chainAuthorizations:ve,useCustomTransfers:Y}),{signal:v});r.current=Pe;const ye=await x.adjustBatchesForEstimate({feeEstimate:Pe,chainBatches:V});Me=!ye||$c(V,ye),ye&&(V=ye)}for(let Pe=0;!Me&&Pe<10;Pe++){const ye=x?.feeExecutionMode==="user-transfer"?ua(V,k):V,Ze=ma({user:k,chainBatches:ye,tokenAddress:b,tokenTransferAmount:A,exp:Number(_),signature:"0x00",chainAuthorizations:ve,useCustomTransfers:Y}),ke=await qe.estimateActionFees(Ze,{signal:v});r.current=ke;const He=await x?.adjustBatchesForEstimate?.({feeEstimate:ke,chainBatches:V}),gt=!!He&&$c(V,He);if(!He||gt){Me=!0;break}V=He}if(!Me)throw new Be("INVALID_PARAMS","Fee estimate did not converge. Please retry.")}if(x?.prepareForSigning){const Me=await x.prepareForSigning(V);if(Me.length!==V.length||Me.some((Pe,ye)=>Pe.chainId!==V[ye].chainId||Pe.domain!==V[ye].domain))throw new Error("The funded route changed before signing");V=Me}x?.resolveActionOutputCredits&&(oe=await x.resolveActionOutputCredits()),(!x?.skipUserFundingPreflight||x.walletFundingRequirement||x.walletFundingRequirements?.length)&&await Ri(x?.skipUserFundingPreflight?[]:V,k,{actionOutputCredits:oe,walletFundingRequirement:x?.walletFundingRequirement,walletFundingRequirements:x?.walletFundingRequirements}),ge=_c(V),ge.length&&!xe&&(xe=await js(k)),await x?.validateBeforeSubmit?.(V),B("building","Preparing the signing request...");const K=await h(V,_,v,()=>B("signing-intent","Confirm the transaction in your wallet..."));if(v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(E!==qe.getBaseUrl())throw new Be("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");const ie=ma({user:k,chainBatches:V,tokenAddress:b,tokenTransferAmount:A,exp:Number(_),signature:K,chainAuthorizations:ve,useCustomTransfers:Y});let N=V.length-1;for(;N>=0&&No(V[N]);)N--;T={totalSteps:V.length},N>=0&&(T={...T,destinationChainId:Number(V[N].chainId),destinationStepIndex:N});const Le=Date.now();if(B("submitting","Submitting to relayer..."),await x?.validateBeforeSubmit?.(V),v?.aborted)throw new Be("ABORT","Execution transaction aborted");if(E!==qe.getBaseUrl())throw new Be("RELAYER_ERROR","The network changed before submission. Review your balances before trying again.");console.debug("[SpiceFlow:execution]",{phase:"submit-check-complete",at:Date.now(),durationMs:Date.now()-Le});const Te=V.length;let z;try{z=await qe.createAction(ie,{autoContinue:G,idempotencyKey:x?.idempotencyKey,signal:v,onAccepted:Me=>{const[Pe,ye="0"]=Me.intentIds[0].split("/"),Ze=parseInt(ye,10);B("executing","Executing on chain...",{actionId:Pe,intentId:`${Pe}/${Ze}`,intentIndex:Ze,totalSteps:Te,autoContinue:Me.autoContinue===!0})}})}catch(Me){throw M===s.current&&Me instanceof Be&&Me.context.submissionStatus==="unknown"&&(a.current={user:k,apiUrl:E,error:Me}),Me}const[q,ee]=z.intentIds[0].split("/"),ce=parseInt(ee||"0",10),Z=`${q}/${ce}`;B("executing","Executing on chain..."),B("executing","Executing on chain...",{actionId:q,intentId:Z,intentIndex:ce,totalSteps:V.length,autoContinue:z.autoContinue===!0});const ae=new $r;ae.setBaseUrl(E);let ze,Ie=0;const Ce=new Map,tt=async(Me,Pe=O,ye=!1)=>{const Ze=(ke,He,gt)=>Pe?.({step:ke,message:He,...gt});try{if((!ye||!ze)&&(ze=await am({actionId:q,intentIndex:ce,intentId:Z,totalSteps:Te,signal:Me,observeOnly:z.autoContinue===!0,startWithExecute:!ye,startStep:ye?Ie:0,executeAttempts:Ce,onStepUpdate:(ke,He)=>{(He.status==="success"||He.status==="completed")&&(Ie=Math.max(Ie,ke+1))},relayer:z.autoContinue||ye?ae:qe,...xe?{delayBeforeSpicenetStepMs:0}:{},isSpicenetStep:ke=>No(V[ke]),beforeStep:async ke=>{if(z.autoContinue===!0||!xe||!No(V[ke]))return;const He=await nd({deposits:ge,baseline:xe,fetchEntries:()=>Oi(k),signal:Me});if(Me?.aborted)throw new Be("ABORT","Execution transaction aborted");if(!He)throw new Be("POLLING_EXHAUSTED","Your deposit is still waiting for Spice credit. Check this transaction's status before trying again.",{actionId:q,intentId:Z,stepId:ke})},maxExecuteAttemptsForStep:ke=>No(V[ke])?6:3,maxPolls:z.autoContinue?Number.POSITIVE_INFINITY:180,onStatusMessage:(ke,He)=>{Ze("executing",ke,{txHash:He,actionId:q,intentId:Z,intentIndex:ce,totalSteps:Te,autoContinue:z.autoContinue===!0})}})),x?.requireDestinationReceipt){const ke=[...V].reverse().find(He=>!No(He));if(!ke)throw new Error("The action has no destination transaction to verify.");await id(At(ke.chainId),ze,Me)}return Ze("success","Transaction successful!",{txHash:ze,actionId:q,intentId:Z,intentIndex:ce,totalSteps:Te,autoContinue:z.autoContinue===!0}),a.current?.resume===De&&(a.current=null),ze||q}catch(ke){if(ke instanceof Be&&ke.code==="ON_CHAIN_REVERT"&&ke.context.status==="reverted"&&(ke.context.stepId===0||Te===1))throw a.current?.resume===De&&(a.current=null),ke;const He=new Be(ke instanceof Be?ke.code:"RELAYER_STATUS_ERROR",ke instanceof Be&&ke.code==="ON_CHAIN_REVERT"?ke.message:`Your action was accepted, but its completion could not be confirmed. Check the original action before trying again. ${ke instanceof Error?ke.message:""}`.trim(),{...ke instanceof Be?ke.context:{},submissionStatus:"accepted",actionId:q,intentId:Z,txHash:ze,cause:ke});throw M===s.current&&(a.current={user:k,apiUrl:E,error:He,resume:De}),He}},De=async(Me,Pe,ye,Ze,ke,He)=>{const gt=H(He);if(P!==D(Me)||Q.size!==gt.size||[...Q].some(([Xe,ot])=>gt.get(Xe)!==ot)||!J(b,Pe)||A!==ye)throw a.current.error;return tt(Ze,ke,!0)};return await tt(v,O)}catch(k){throw console.error("[Execution] Error:",k),B("error",k.message||"Transaction failed",{error:k.message,...k?.context?.submissionStatus==="unknown"?{submissionStatus:"unknown",...typeof k.context.idempotencyKey=="string"&&/^0x[0-9a-f]{64}$/i.test(k.context.idempotencyKey)?{idempotencyKey:k.context.idempotencyKey}:{},...typeof k.context.user=="string"&&/^0x[0-9a-f]{40}$/i.test(k.context.user)?{user:k.context.user}:{}}:{}}),k}finally{Di=!1}},[e,n,g,h]),C=re(async(S,b,A,O)=>{if(!e&&(!O?.userOverride||O.signAuthorizationsForEstimate))throw new Be("WALLET_DISCONNECTED","No wallet connected. Please log in first.");const v=O?.userOverride||e,x=O?.validateFeeCalls===!0&&O.feeExecutionMode==="user-transfer"&&qe.canValidateActionFees(),{actionOutputDeposit:F,batches:T}=ud(S,O);let B=T;const M=O?.feeExecutionMode==="user-transfer"&&!x?ua(B,v):B,k=O?.signAuthorizationsForEstimate?await g(M,v):void 0;let E=O?.useCustomTransfers;F&&(B=(await cd({chainBatches:S,user:v,token:F.token,grossAmount:F.amount,chainAuthorizations:k})).chainBatches,E=!0);const I=O?.feeExecutionMode==="user-transfer"&&!x?ua(B,v):B,D=ma({user:v,chainBatches:I,tokenAddress:b,tokenTransferAmount:A,exp:Math.floor(Date.now()/1e3)+3600,signature:"0x00",chainAuthorizations:k,useCustomTransfers:E}),P=await(x?qe.validateActionFees(D,{signal:O?.signal}):qe.estimateActionFees(D,{signal:O?.signal}));return r.current=P,P},[e,g]);return{execute:y,estimate:C,lastFeeEstimate:r.current,hasEmbeddedWallet:t&&n,intentStatus:i,startStatusPolling:l,beginStatusTracking:c,applyStepUpdate:u,clearStatus:p}}function un(e,t,n,o){if(t===n)return e;if(t<n)return e*10n**BigInt(n-t);const r=10n**BigInt(t-n);return o==="ceil"?(e+r-1n)/r:e/r}function Tn(e,t){if(!Number.isInteger(t)||t<0||t>255)throw new Error("Invalid token decimals");if(!/^\d+(?:\.\d*)?$/.test(e))throw new Error("Enter a valid amount.");if((e.split(".")[1]?.replace(/0+$/,"")??"").length>t)throw new Error(`Use at most ${t} decimal places for this source.`);return Kn(e,t)}function En(e,t,n){const o=un(e,t,n,"floor");if(un(o,n,t,"floor")!==e)throw new Error(`Use at most ${n} decimal places for this delivered token.`);return o}function hm(e){return`0x77${e.slice(4)}`}function gs({userAddress:e,destinationChainId:t,deliveryToken:n,deliveryAmount:o,withdrawalAmount:r,deliveryRecipient:s,deliveryTransfers:a,requestTimestampMs:i,expiresAt:l,metadata:c,requestNonce:u}){if(l!==void 0&&(!Number.isSafeInteger(l)||l<=0))throw new Error("Withdrawal expiry must be a positive Unix timestamp in seconds");const d=a?.length?a:[{token:n,recipient:s,amount:r??o}],p=d.reduce((y,C)=>y+C.amount,0n);if(p<=0n)return null;const w=i??Date.now(),m=BigInt(Math.floor(w/1e3)),g=e??s,h=hm(ur(Qo([{type:"address"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},...u?[{type:"bytes32"}]:[]],[g,n,s,p,BigInt(t),BigInt(w),...u?[u]:[]])));return{chainId:Kl,domain:"spicenet",tokenTransfers:[],calls:[{to:Kt,value:0n,data:Tt({abi:Zs,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${t}`,idempotenceKey:h,nbf:0n,exp:l===void 0?m+3600n:BigInt(l),metadata:c??"{}",transfers:d.map(y=>({token:dn(y.token).toLowerCase(),to:dn(y.recipient).toLowerCase(),amount:y.amount}))}]})}]}}const Mi=e=>{const[t,n]=L(!1),o=an($t),{dark:r,dk:s}=on();if(pe(()=>{n(!0)},[]),!t)return f("div",{className:e.className,children:f("button",{disabled:!0,style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?s.hoverBg:"#ccc",color:r?s.textSecondary:"white",border:r?`1px solid ${s.buttonBorder}`:"none",borderRadius:"4px",cursor:"not-allowed"},children:"Loading..."})});if(!o){const a='ProviderLogin must be used within SpiceFlowProvider. Please wrap your app with <SpiceFlowProvider provider="privy">.';return f("div",{className:e.className,children:f("button",{onClick:()=>{e.onAuthError&&e.onAuthError(a)},style:{padding:"12px 24px",fontSize:"16px",backgroundColor:r?s.errorBg:"#dc2626",color:r?s.errorText:"white",border:r?`1px solid ${s.errorBorder}`:"none",borderRadius:"4px",cursor:"pointer"},children:"Provider Not Found"})})}return f(hp,{...e})},ws=({size:e=20,strokeWidth:t=2,color:n="currentColor",style:o})=>R("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:o,children:[f("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),ys=(e,t,n,o)=>({width:e,height:e,fill:"none",className:t,"aria-hidden":n??!0,style:o}),Mr=({size:e=16,color:t="currentColor",strokeWidth:n=2,direction:o="down",className:r,style:s,"aria-hidden":a})=>f("svg",{...ys(e,r,a,{transform:o==="up"?"rotate(180deg)":void 0,transition:"transform 0.3s ease",...s}),viewBox:"0 0 16 16",children:f("path",{d:"M4 6L8 10L12 6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),gm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>R("svg",{...ys(e,o,s,r),viewBox:"0 0 24 24",children:[f("circle",{cx:"11",cy:"11",r:"8",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"m21 21-4.3-4.3",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})]}),wm=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ys(e,o,s,r),viewBox:"0 0 24 24",children:f("path",{d:"m6 9 6 6 6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),ym=({size:e=24,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ys(e,o,s,r),viewBox:"0 0 24 24",children:f("path",{d:"m9 18 6-6-6-6",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),pd=({size:e=14,color:t="currentColor",strokeWidth:n=2,className:o,style:r,"aria-hidden":s})=>f("svg",{...ys(e,o,s,r),viewBox:"0 0 16 16",children:f("path",{d:"M3 8L6.5 11.5L13 5",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"})}),fd=({isSuccess:e,type:t,chainName:n,explorerUrl:o,txHash:r,dark:s=!1,successBg:a="#d1fae5",successBorder:i="#6ee7b7",successText:l="#065f46",errorBg:c="#fee2e2",errorBorder:u="#fca5a5",errorText:d="#dc2626",textSecondary:p="#6b7280"})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderRadius:"8px",backgroundColor:e?a:c,border:e?`1px solid ${i}`:`1px solid ${u}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[f("div",{style:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:e?"#10b981":"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:e?f("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f("path",{d:"M11.6667 3.5L5.25 9.91667L2.33333 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):f("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),R("div",{children:[f("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.5px",color:e?l:d},children:e?`${t.toUpperCase()} CONFIRMED`:`${t.toUpperCase()} FAILED`}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:p},children:["on ",n]})]})]}),o&&r&&R("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px",color:p,textDecoration:"none",whiteSpace:"nowrap"},children:["View on explorer",R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[f("path",{d:"M9 6.5V9.5C9 9.76522 8.89464 10.0196 8.70711 10.2071C8.51957 10.3946 8.26522 10.5 8 10.5H2.5C2.23478 10.5 1.98043 10.3946 1.79289 10.2071C1.60536 10.0196 1.5 9.76522 1.5 9.5V4C1.5 3.73478 1.60536 3.48043 1.79289 3.29289C1.98043 3.10536 2.23478 3 2.5 3H5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M7.5 1.5H10.5V4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M5 7L10.5 1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]}),md=`
|
|
4
4
|
@keyframes slideUp {
|
|
5
5
|
from { transform: translateY(100%); }
|
|
6
6
|
to { transform: translateY(0); }
|
|
@@ -13,13 +13,13 @@ import{jsx as f,jsxs as R,Fragment as wn}from"react/jsx-runtime";import{g as bt,
|
|
|
13
13
|
from { opacity: 0; transform: translateY(4px); }
|
|
14
14
|
to { opacity: 1; transform: translateY(0); }
|
|
15
15
|
}
|
|
16
|
-
`,ud=({title:e,showChevron:t,expanded:n,onToggleDetails:o,showClose:r,onClose:s,fontFamily:a,labelColor:i,textPrimary:l,closeHoverBg:c,closePressedBg:u})=>{const[d,p]=L(!1),[w,m]=L(!1);return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:o?"pointer":"default"},onClick:o,children:[R("span",{style:{fontSize:"13px",fontWeight:500,color:i,fontFamily:a},children:[e," "]}),t&&f(Mr,{color:i,direction:n?"up":"down"})]}),r&&f("button",{onClick:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),style:{background:w?u:d?c:"none",border:"none",borderRadius:"4px",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:d||w?l:i,transform:w?"scale(0.9)":d?"scale(1.1)":"scale(1)",transition:po.interactive},children:f(gs,{size:16})})]})},pd=({chainName:e,bg:t,border:n,textPrimary:o,labelColor:r,primaryColor:s})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"20px 16px",borderRadius:"8px",backgroundColor:t,border:`1px solid ${n}`,gap:"12px"},children:[f(Uo,{size:24,borderWidth:3,color:s}),R("div",{children:[f("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.5px",color:o},children:"PROCESSING TRANSACTION"}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:r},children:["on ",e]})]})]}),fd=({bg:e,border:t,left:n,right:o})=>R("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:e,border:`1px solid ${t}`,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n,o]}),Oi=({isOpen:e,onClose:t,onComplete:n,closeOnComplete:o=!1,type:r,results:s,chainId:a,chainName:i,explorerUrl:l,theme:c,styles:u,dark:d,intentStatus:p,onRetry:w,onNewTx:m,onRetryTx:g,asOverlay:h=!0,isProcessing:y=!1,showStepBreakdown:C=!0})=>{const{theme:S,primaryColor:b,dark:A,dk:O}=sn(u,d),v=c||S,[x,F]=L(!1),T=i??(a?ro(a):"Network"),B=l??(a&&Vs(a,"").replace(/\/tx\/.*$/,"")||void 0),M=A?O.cardBg:"#ffffff",k=A?"0 4px 20px rgba(0, 0, 0, 0.4)":"0 4px 20px rgba(0, 0, 0, 0.1)",E=A?"0 -4px 8px -2px rgba(0, 0, 0, 0.4)":"0 -4px 8px -2px rgba(0, 0, 0, 0.15)",I=O.textSecondary,D=A?O.textPrimary:"#374151",P=A?O.inputBg:"#f9fafb",H=A?O.inputBorder:"#e5e7eb",Q=A?O.inputBg:"#f3f4f6",G=A?O.inputBorder:"#e5e7eb",[oe,$]=L(!0),V=A?O.inputBg:"#f9fafb",re=A?O.hoverBg:"#f3f4f6",X=A?{successBg:O.successBg,successBorder:O.successBorder,successText:O.successText,errorBg:O.errorBg,errorBorder:O.errorBorder,errorText:O.errorText}:{},he=p?.steps.find(le=>le.status==="failed")?.error;ue(()=>{!e&&!p&&F(!1)},[e,p]);const be=()=>{F(!0),setTimeout(()=>{window.dispatchEvent(new CustomEvent("tx-complete",{detail:{type:r,results:s}})),window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:{type:r,status:"success",results:s}})),n?.(),o&&t()},300)},fe=()=>{$(!oe)};if(p){const{steps:le,overallStatus:N}=p,Le=N==="processing",Te=N==="success",z=N==="failed",q=le.filter(ie=>ie.transactionHash)[0],ne=le.length>1?le.map(ie=>ie.chainName).filter(Boolean).join(" and "):T!=="Network"?T:le[0]?.chainName||T,de=B||(q?Vs(q.chainId,q.transactionHash||"").replace(/\/tx\/.*$/,""):void 0),J=R(wn,{children:[f(ud,{title:Le?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:C,expanded:oe,onToggleDetails:fe,showClose:!Le,onClose:t,fontFamily:u?.fontFamily||v.typography.fontFamily,labelColor:I,textPrimary:D,closeHoverBg:V,closePressedBg:re}),f("div",{style:{marginBottom:"16px"},children:Le?f(pd,{chainName:ne,bg:Q,border:G,textPrimary:D,labelColor:I,primaryColor:b}):f(cd,{isSuccess:Te,type:r,chainName:ne,explorerUrl:de,txHash:q?.transactionHash,dark:A,...X,textSecondary:I})}),C&&f("div",{style:{overflow:"hidden",maxHeight:oe?"300px":"0px",opacity:oe?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:oe?"16px":"0"},children:f("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:le.map((ie,ze)=>{const Se=ie.transactionHash?Vs(ie.chainId,ie.transactionHash):null;return f(fd,{bg:P,border:H,left:f("span",{style:{fontSize:"13px",color:D},children:ie.chainName?`On ${ie.chainName}`:ie.description||`Step ${ze+1}`}),right:R("span",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"12px",color:ie.status==="success"?"#10b981":ie.status==="failed"?"#ef4444":I,fontWeight:500},children:[Se&&f("a",{href:Se,target:"_blank",rel:"noopener noreferrer",style:{color:A?O.infoText:"#2563eb",textDecoration:"none"},onClick:Ce=>Ce.stopPropagation(),children:"View"}),ie.status==="success"?"\u2713":ie.status==="failed"?"\u2717":"\u25CB"]})},ze)})})}),!Le&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[z&&w&&f(Qt,{variant:"outline",fullWidth:!0,onClick:w,theme:v,styles:u,dark:A,children:"TRY AGAIN"}),m&&R(Qt,{variant:"outline",fullWidth:!0,onClick:m,theme:v,styles:u,dark:A,children:["NEW ",r.toUpperCase()," \u2192"]})]})]});return h?R("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:10,animation:x?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards",pointerEvents:"auto"},children:[f("div",{style:{backgroundColor:M,borderRadius:"12px 12px 0 0",width:"100%",padding:"18px 24px 24px",boxShadow:E},children:J}),f("style",{children:dd})]}):f("div",{style:{backgroundColor:M,borderRadius:"12px",padding:"24px",width:"100%",boxShadow:k},children:J})}if(!e&&!y||!y&&(!s||s.length===0))return null;const xe=s?s.every(le=>le.success):!1,te=s?.[0],K=[...s??[]].reverse().find(le=>le.txHash)?.txHash||te?.txHash;return R("div",{style:{position:h?"absolute":"relative",bottom:h?0:void 0,left:h?0:void 0,right:h?0:void 0,zIndex:h?10:void 0,animation:h?x?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards":void 0,pointerEvents:"auto",width:"100%"},children:[f("div",{style:{backgroundColor:M,borderRadius:h?"12px 12px 0 0":"12px",width:"100%",padding:"18px 0 24px",boxShadow:h?E:k},children:R("div",{style:{width:"100%",boxSizing:"border-box",padding:"0 24px"},children:[f(ud,{title:y?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:!y&&C,expanded:oe,onToggleDetails:y?void 0:fe,showClose:!y,onClose:t,fontFamily:u?.fontFamily||v.typography.fontFamily,labelColor:I,textPrimary:D,closeHoverBg:V,closePressedBg:re}),f("div",{style:{marginBottom:"16px",animation:"statusFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both"},children:y?f(pd,{chainName:T,bg:Q,border:G,textPrimary:D,labelColor:I,primaryColor:b}):f(cd,{isSuccess:xe,type:r,chainName:T,explorerUrl:B,txHash:K,dark:A,...X,textSecondary:I})},y?"processing":xe?"success":"error"),!y&&C&&s&&s.length>1&&f("div",{style:{overflow:"hidden",maxHeight:oe?"200px":"0px",opacity:oe?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:oe?"16px":"0"},children:f("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:s.map((le,N)=>f(fd,{bg:P,border:H,left:R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("span",{style:{fontWeight:600,fontSize:"13px",color:O.textPrimary,fontFamily:tt.mono},children:le.asset.symbol}),le.amount&&f("span",{style:{fontSize:"12px",color:I},children:le.amount})]}),right:f("span",{style:{fontSize:"12px",color:le.success?"#10b981":"#ef4444",fontWeight:500},children:le.success?"\u2713":"\u2717"})},N))})}),!y&&!xe&&s&&f("div",{style:{padding:"12px",backgroundColor:O.errorBg,border:`1px solid ${O.errorBorder}`,borderRadius:"8px",marginBottom:"16px"},children:f("p",{style:{fontSize:"13px",color:O.errorText,margin:0,lineHeight:1.5},children:he||s.find(le=>!le.success)?.error||`${r.charAt(0).toUpperCase()+r.slice(1)} failed. Please try again.`})}),!y&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!xe&&g&&R(Qt,{variant:"outline",fullWidth:!0,onClick:g,theme:v,styles:u,dark:A,children:["TRY AGAIN ",r.toUpperCase()]}),xe&&f(Qt,{variant:"outline",fullWidth:!0,onClick:be,theme:v,styles:u,dark:A,children:"DONE"})]})]})}),f("style",{children:dd})]})};function hm(e,t){switch(e){case"success":return{bg:t.successBg,border:t.successBorder,text:t.successText};case"warning":return{bg:t.warningBg,border:t.warningBorder,text:t.warningText};case"error":return{bg:t.errorBg,border:t.errorBorder,text:t.errorText};case"info":return{bg:t.infoBg,border:t.infoBorder,text:t.infoText}}}const Vn=({variant:e,palette:t,children:n,icon:o,style:r,fontFamily:s,size:a="default"})=>{const i=hm(e,t),l=a==="compact";return R("div",{role:e==="error"?"alert":"status",style:{backgroundColor:i.bg,border:`1px solid ${i.border}`,borderRadius:l?"7px":"8px",padding:l?"8px 10px":"12px 16px",color:i.text,fontSize:l?"12px":"13px",lineHeight:l?1.4:1.5,display:"flex",alignItems:"flex-start",gap:l?"6px":"8px",fontFamily:s,...r},children:[o&&f("span",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:o}),f("span",{style:{minWidth:0,overflowWrap:"anywhere"},children:n})]})};function fa({activity:e,palette:t,onRefresh:n}){return R(wn,{children:[e.actions.length>0&&f(Vn,{variant:"info",palette:t,style:{marginTop:12,marginBottom:12},children:R("details",{children:[f("summary",{children:"Recent wallet activity"}),e.actions.map(o=>{const r=o.intents.flatMap(i=>i.steps),s=r.filter(i=>["success","completed"].includes(i.status)).length,a=r.some(i=>["error","reverted"].includes(i.status));return R("p",{children:[o.actionId,": ",s,"/",r.length," steps completed.",a?" Remaining work stopped; completed transfers are retained.":s<r.length?" Awaiting backend confirmation.":" Completed."]},o.actionId)}),f("button",{type:"button",onClick:()=>{e.refresh(),n?.()},children:n?"Refresh activity and balances":"Refresh activity"})]})}),e.error&&f(Vn,{variant:"warning",palette:t,children:e.error})]})}const md=tt.mono,yo=({label:e,value:t,palette:n,valueColor:o,labelColor:r,style:s})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",...s},children:[f("span",{style:{fontSize:"12px",color:r??n.textSecondary,fontFamily:md,fontWeight:500,letterSpacing:"0.03em",flexShrink:0,whiteSpace:"nowrap"},children:e}),f("span",{style:{fontSize:"13px",color:o??n.textPrimary,fontWeight:500,fontFamily:md,minWidth:0,textAlign:"right",overflowWrap:"anywhere"},children:t})]});var hd="data:image/svg+xml,%3csvg width='108' height='22' viewBox='0 0 108 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.9916 11.9854V11.2041H3.98379C4.48835 11.2041 4.87897 11.0739 5.15566 10.8135C5.43236 10.5498 5.5707 10.1868 5.5707 9.72461V9.71484C5.5707 9.24935 5.43236 8.88639 5.15566 8.62598C4.87897 8.36556 4.48835 8.23535 3.98379 8.23535H1.9916V7.4541H4.2084C4.65111 7.4541 5.04173 7.5485 5.38027 7.7373C5.71882 7.92611 5.98411 8.18978 6.17617 8.52832C6.37148 8.86686 6.46914 9.25911 6.46914 9.70508V9.71484C6.46914 10.1608 6.37148 10.5547 6.17617 10.8965C5.98411 11.2383 5.71882 11.5052 5.38027 11.6973C5.04173 11.8893 4.65111 11.9854 4.2084 11.9854H1.9916ZM1.55215 14.5V7.4541H2.43106V14.5H1.55215ZM9.51875 14.5928C9.0207 14.5928 8.58939 14.4837 8.2248 14.2656C7.86348 14.0443 7.58353 13.7301 7.38496 13.3232C7.18965 12.9163 7.09199 12.4329 7.09199 11.873V11.8633C7.09199 11.3001 7.18965 10.8151 7.38496 10.4082C7.58353 10.0013 7.86348 9.6888 8.2248 9.4707C8.58939 9.2526 9.0207 9.14355 9.51875 9.14355C10.0201 9.14355 10.4514 9.2526 10.8127 9.4707C11.174 9.6888 11.4523 10.0013 11.6477 10.4082C11.8462 10.8151 11.9455 11.3001 11.9455 11.8633V11.873C11.9455 12.4329 11.8462 12.9163 11.6477 13.3232C11.4523 13.7301 11.174 14.0443 10.8127 14.2656C10.4514 14.4837 10.0201 14.5928 9.51875 14.5928ZM9.51875 13.8408C9.85078 13.8408 10.1324 13.7627 10.3635 13.6064C10.5946 13.4502 10.7704 13.2256 10.8908 12.9326C11.0145 12.6396 11.0764 12.2865 11.0764 11.873V11.8633C11.0764 11.4466 11.0145 11.0918 10.8908 10.7988C10.7704 10.5059 10.5946 10.2829 10.3635 10.1299C10.1324 9.97363 9.85078 9.89551 9.51875 9.89551C9.18672 9.89551 8.90514 9.97363 8.67402 10.1299C8.4429 10.2829 8.26549 10.5059 8.1418 10.7988C8.02135 11.0918 7.96113 11.4466 7.96113 11.8633V11.873C7.96113 12.2865 8.02135 12.6396 8.1418 12.9326C8.26549 13.2256 8.4429 13.4502 8.67402 13.6064C8.90514 13.7627 9.18672 13.8408 9.51875 13.8408ZM13.7842 14.5L12.3096 9.23633H13.1592L14.1943 13.4453H14.2725L15.4492 9.23633H16.2549L17.4316 13.4453H17.5098L18.5449 9.23633H19.3896L17.915 14.5H17.0605L15.8838 10.4277H15.8057L14.6338 14.5H13.7842ZM22.1658 14.5928C21.6645 14.5928 21.2332 14.4821 20.8719 14.2607C20.5138 14.0394 20.2371 13.7269 20.0418 13.3232C19.8497 12.9163 19.7537 12.4378 19.7537 11.8877V11.8828C19.7537 11.3392 19.8497 10.8623 20.0418 10.4521C20.2371 10.042 20.5122 9.72135 20.867 9.49023C21.2218 9.25911 21.6368 9.14355 22.1121 9.14355C22.5906 9.14355 23.0008 9.25423 23.3426 9.47559C23.6876 9.69694 23.9513 10.0062 24.1336 10.4033C24.3191 10.7972 24.4119 11.2562 24.4119 11.7803V12.1123H20.1932V11.4336H23.9773L23.5574 12.0537V11.7168C23.5574 11.3034 23.4956 10.9632 23.3719 10.6963C23.2482 10.4294 23.0773 10.2308 22.8592 10.1006C22.6411 9.96712 22.3904 9.90039 22.1072 9.90039C21.824 9.90039 21.5701 9.97038 21.3455 10.1104C21.1242 10.2471 20.9484 10.4505 20.8182 10.7207C20.688 10.9909 20.6229 11.3229 20.6229 11.7168V12.0537C20.6229 12.4281 20.6863 12.7487 20.8133 13.0156C20.9402 13.2793 21.1209 13.4827 21.3553 13.626C21.5896 13.766 21.8663 13.8359 22.1854 13.8359C22.423 13.8359 22.6297 13.8034 22.8055 13.7383C22.9813 13.6732 23.1261 13.5902 23.24 13.4893C23.354 13.3883 23.4337 13.2858 23.4793 13.1816L23.4988 13.1377H24.3484L24.3387 13.1768C24.2931 13.3558 24.2117 13.5299 24.0945 13.6992C23.9806 13.8652 23.8325 14.0166 23.6502 14.1533C23.4679 14.2868 23.2514 14.3942 23.0008 14.4756C22.7534 14.5537 22.4751 14.5928 22.1658 14.5928ZM25.4303 14.5V9.23633H26.2799V10.0176H26.358C26.4589 9.74089 26.6298 9.52604 26.8707 9.37305C27.1116 9.22005 27.4094 9.14355 27.7643 9.14355C27.8456 9.14355 27.9254 9.14844 28.0035 9.1582C28.0849 9.16471 28.1467 9.17122 28.1891 9.17773V10.0029C28.1012 9.98665 28.0149 9.97526 27.9303 9.96875C27.8489 9.95898 27.761 9.9541 27.6666 9.9541C27.3964 9.9541 27.1572 10.0078 26.9488 10.1152C26.7405 10.2227 26.5761 10.3724 26.4557 10.5645C26.3385 10.7565 26.2799 10.9811 26.2799 11.2383V14.5H25.4303ZM30.9408 14.5928C30.4395 14.5928 30.0082 14.4821 29.6469 14.2607C29.2888 14.0394 29.0121 13.7269 28.8168 13.3232C28.6247 12.9163 28.5287 12.4378 28.5287 11.8877V11.8828C28.5287 11.3392 28.6247 10.8623 28.8168 10.4521C29.0121 10.042 29.2872 9.72135 29.642 9.49023C29.9968 9.25911 30.4118 9.14355 30.8871 9.14355C31.3656 9.14355 31.7758 9.25423 32.1176 9.47559C32.4626 9.69694 32.7263 10.0062 32.9086 10.4033C33.0941 10.7972 33.1869 11.2562 33.1869 11.7803V12.1123H28.9682V11.4336H32.7523L32.3324 12.0537V11.7168C32.3324 11.3034 32.2706 10.9632 32.1469 10.6963C32.0232 10.4294 31.8523 10.2308 31.6342 10.1006C31.4161 9.96712 31.1654 9.90039 30.8822 9.90039C30.599 9.90039 30.3451 9.97038 30.1205 10.1104C29.8992 10.2471 29.7234 10.4505 29.5932 10.7207C29.463 10.9909 29.3979 11.3229 29.3979 11.7168V12.0537C29.3979 12.4281 29.4613 12.7487 29.5883 13.0156C29.7152 13.2793 29.8959 13.4827 30.1303 13.626C30.3646 13.766 30.6413 13.8359 30.9604 13.8359C31.198 13.8359 31.4047 13.8034 31.5805 13.7383C31.7563 13.6732 31.9011 13.5902 32.015 13.4893C32.129 13.3883 32.2087 13.2858 32.2543 13.1816L32.2738 13.1377H33.1234L33.1137 13.1768C33.0681 13.3558 32.9867 13.5299 32.8695 13.6992C32.7556 13.8652 32.6075 14.0166 32.4252 14.1533C32.2429 14.2868 32.0264 14.3942 31.7758 14.4756C31.5284 14.5537 31.2501 14.5928 30.9408 14.5928ZM36.1486 14.5928C35.7059 14.5928 35.3186 14.4805 34.9865 14.2559C34.6545 14.0312 34.3973 13.7155 34.215 13.3086C34.0328 12.8984 33.9416 12.4199 33.9416 11.873V11.8633C33.9416 11.3132 34.0328 10.8346 34.215 10.4277C34.3973 10.0208 34.6529 9.70508 34.9816 9.48047C35.3137 9.25586 35.7027 9.14355 36.1486 9.14355C36.3895 9.14355 36.6158 9.18262 36.8273 9.26074C37.0422 9.33561 37.2326 9.44141 37.3986 9.57812C37.5647 9.71484 37.6949 9.8776 37.7893 10.0664H37.8674V7.14648H38.717V14.5H37.8674V13.6602H37.7893C37.6818 13.8555 37.5467 14.0231 37.384 14.1631C37.2212 14.2998 37.0357 14.4056 36.8273 14.4805C36.619 14.5553 36.3928 14.5928 36.1486 14.5928ZM36.3439 13.8408C36.663 13.8408 36.938 13.7611 37.1691 13.6016C37.4003 13.4421 37.5777 13.2158 37.7014 12.9229C37.8251 12.6266 37.8869 12.2767 37.8869 11.873V11.8633C37.8869 11.4564 37.8251 11.1064 37.7014 10.8135C37.5777 10.5205 37.4003 10.2943 37.1691 10.1348C36.938 9.97526 36.663 9.89551 36.3439 9.89551C36.0249 9.89551 35.7499 9.97526 35.5188 10.1348C35.2909 10.291 35.1151 10.5156 34.9914 10.8086C34.871 11.1016 34.8107 11.4531 34.8107 11.8633V11.873C34.8107 12.2799 34.871 12.6315 34.9914 12.9277C35.1151 13.2207 35.2909 13.4469 35.5188 13.6064C35.7499 13.7627 36.0249 13.8408 36.3439 13.8408ZM45.1775 14.5928C44.9334 14.5928 44.7072 14.5553 44.4988 14.4805C44.2905 14.4056 44.1049 14.2998 43.9422 14.1631C43.7794 14.0231 43.6443 13.8555 43.5369 13.6602H43.4588V14.5H42.6092V7.14648H43.4588V10.0664H43.5369C43.6346 9.8776 43.7648 9.71484 43.9275 9.57812C44.0936 9.44141 44.2824 9.33561 44.4939 9.26074C44.7088 9.18262 44.9367 9.14355 45.1775 9.14355C45.6235 9.14355 46.0109 9.25586 46.3396 9.48047C46.6717 9.70508 46.9288 10.0208 47.1111 10.4277C47.2934 10.8346 47.3846 11.3132 47.3846 11.8633V11.873C47.3846 12.4199 47.2934 12.8984 47.1111 13.3086C46.9288 13.7155 46.6717 14.0312 46.3396 14.2559C46.0109 14.4805 45.6235 14.5928 45.1775 14.5928ZM44.9822 13.8408C45.3045 13.8408 45.5796 13.7627 45.8074 13.6064C46.0353 13.4469 46.2094 13.2207 46.3299 12.9277C46.4536 12.6315 46.5154 12.2799 46.5154 11.873V11.8633C46.5154 11.4531 46.4536 11.1016 46.3299 10.8086C46.2094 10.5156 46.0353 10.291 45.8074 10.1348C45.5796 9.97526 45.3045 9.89551 44.9822 9.89551C44.6632 9.89551 44.3881 9.97526 44.157 10.1348C43.9259 10.2943 43.7485 10.5205 43.6248 10.8135C43.5011 11.1064 43.4393 11.4564 43.4393 11.8633V11.873C43.4393 12.2767 43.5011 12.6266 43.6248 12.9229C43.7485 13.2158 43.9259 13.4421 44.157 13.6016C44.3881 13.7611 44.6632 13.8408 44.9822 13.8408ZM48.6568 16.3457C48.6015 16.3457 48.5396 16.3424 48.4713 16.3359C48.4029 16.3327 48.3395 16.3262 48.2809 16.3164V15.6182C48.3329 15.6279 48.3899 15.6344 48.4518 15.6377C48.5136 15.641 48.5738 15.6426 48.6324 15.6426C48.8733 15.6426 49.0702 15.5807 49.2232 15.457C49.3795 15.3333 49.5048 15.1201 49.5992 14.8174L49.6969 14.5049L47.7486 9.23633H48.6568L50.2779 14.0996L49.941 13.5674H50.3414L50.0045 14.0996L51.6207 9.23633H52.5143L50.4586 14.8223C50.3154 15.2161 50.164 15.5238 50.0045 15.7451C49.845 15.9665 49.6578 16.1211 49.443 16.209C49.2314 16.3001 48.9693 16.3457 48.6568 16.3457Z' fill='%230E0D0B'/%3e%3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e%3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e%3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e%3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e%3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e%3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M74.8537 10.0096C75.2721 10.0096 75.654 10.1125 75.9993 10.3184C76.3513 10.5177 76.6303 10.8032 76.8361 11.1751C77.0487 11.547 77.1549 11.9953 77.1549 12.52V12.6495C77.1549 13.1675 77.052 13.6158 76.8461 13.9943C76.6402 14.3729 76.3613 14.6618 76.0093 14.861C75.664 15.0603 75.2788 15.1599 74.8537 15.1599C74.515 15.1599 74.2261 15.1134 73.9871 15.0204C73.7546 14.9341 73.5653 14.8212 73.4192 14.6817C73.2731 14.5423 73.1602 14.3995 73.0805 14.2534H72.941V16.9659L72.1541 16.0013V10.1491H72.9211V10.956H73.0352C73.2729 10.6733 73.3893 10.4911 73.6683 10.2985C73.9538 10.1059 74.349 10.0096 74.8537 10.0096ZM74.6445 10.7069C74.1464 10.7069 73.7347 10.8696 73.4092 11.195C73.0905 11.5138 72.9311 11.9621 72.9311 12.5399V12.6296C72.9311 13.2074 73.0905 13.659 73.4092 13.9844C73.7347 14.3032 74.1464 14.4626 74.6445 14.4626C75.1492 14.4626 75.5577 14.3032 75.8698 13.9844C76.1886 13.659 76.348 13.2074 76.348 12.6296V12.5399C76.348 11.9621 76.1886 11.5138 75.8698 11.195C75.5577 10.8696 75.1492 10.7069 74.6445 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M78.5848 11.9583L78.5555 15.4596L77.7681 14.4846V10.9583L78.5848 11.9583Z' fill='%230E0D0B'/%3e%3cpath d='M101.588 10.2986H102.444L103 10.986H101.588V10.9867H100.802L101.588 11.9623V14.1937C101.588 14.3929 101.685 14.4926 101.877 14.4926H102.379L102.928 15.17H101.668C101.389 15.17 101.173 15.0936 101.021 14.9409C100.874 14.7881 100.801 14.5789 100.801 14.3133V10.986H99.8799L99.3217 10.2986H100.801V9.13501H101.588V10.2986Z' fill='%230E0D0B'/%3e%3cpath d='M69.0133 7.90764C69.4848 7.90764 69.9065 7.99068 70.2784 8.15671C70.6569 8.3161 70.9525 8.55517 71.165 8.87395C71.3842 9.18609 71.4938 9.58126 71.4938 10.0594V10.4778H70.667V10.0594C70.667 9.72072 70.5939 9.44842 70.4477 9.24254C70.3083 9.03666 70.1124 8.88392 69.86 8.7843C69.6143 8.68469 69.332 8.63487 69.0133 8.63487C68.555 8.63487 68.1864 8.7378 67.9075 8.94367C67.6286 9.14291 67.4891 9.4285 67.4891 9.80041C67.4891 10.0461 67.5488 10.2453 67.6684 10.3981C67.7879 10.5508 67.9573 10.677 68.1764 10.7767C68.3956 10.8696 68.658 10.9527 68.9635 11.0257L69.4815 11.1552C69.8866 11.2416 70.2485 11.3611 70.5673 11.5138C70.8927 11.6599 71.1517 11.8625 71.3443 12.1215C71.5369 12.3739 71.6332 12.706 71.6332 13.1177C71.6332 13.5295 71.5303 13.8881 71.3244 14.1936C71.1185 14.4991 70.8263 14.7382 70.4477 14.9109C70.0758 15.0769 69.6375 15.1599 69.1328 15.1599C68.6281 15.1599 68.1765 15.0702 67.778 14.8909C67.3795 14.7116 67.0641 14.4426 66.8316 14.084C66.6058 13.7187 66.4929 13.2638 66.4929 12.7192V12.51H67.3197V12.7192C67.3197 13.297 67.4891 13.7287 67.8278 14.0143C68.1665 14.2932 68.6015 14.4327 69.1328 14.4327C69.6774 14.4327 70.0924 14.3098 70.378 14.0641C70.6636 13.8183 70.8064 13.5095 70.8064 13.1376C70.8064 12.8786 70.74 12.6727 70.6072 12.52C70.481 12.3673 70.3017 12.2444 70.0692 12.1514C69.8368 12.0518 69.5645 11.9655 69.2523 11.8924L68.7343 11.7629C68.3292 11.6566 67.9706 11.5271 67.6584 11.3744C67.3463 11.2216 67.1006 11.0224 66.9213 10.7767C66.7486 10.5243 66.6623 10.2022 66.6623 9.81035C66.6623 9.41852 66.7585 9.07981 66.9511 8.79424C67.1504 8.50866 67.426 8.28953 67.778 8.13678C68.1366 7.98404 68.5484 7.90764 69.0133 7.90764Z' fill='%230E0D0B'/%3e%3cpath d='M81.6544 10.0096C82.1193 10.0096 82.5145 10.0959 82.8399 10.2686C83.1719 10.4412 83.431 10.6704 83.6169 10.956C83.8095 11.2415 83.9324 11.5471 83.9855 11.8725L83.2185 12.0318C83.1853 11.7928 83.1056 11.5736 82.9794 11.3744C82.8598 11.1752 82.6905 11.0158 82.4713 10.8962C82.2521 10.7767 81.9832 10.7169 81.6644 10.7169C81.339 10.7169 81.0468 10.7899 80.7877 10.936C80.5354 11.0821 80.3328 11.2914 80.1801 11.5637C80.034 11.836 79.9609 12.1614 79.9609 12.5399V12.6296C79.9609 13.0081 80.034 13.3335 80.1801 13.6058C80.3328 13.8781 80.5354 14.0873 80.7877 14.2334C81.0468 14.3795 81.339 14.4526 81.6644 14.4526C82.1492 14.4526 82.5178 14.3264 82.7702 14.0741C83.0292 13.8217 83.1886 13.5095 83.2483 13.1376L84.0254 13.307C83.9523 13.6257 83.8195 13.9279 83.6269 14.2135C83.4343 14.4991 83.172 14.7282 82.8399 14.9009C82.5145 15.0735 82.1193 15.1599 81.6544 15.1599C81.1829 15.1599 80.7579 15.0603 80.3793 14.861C80.0074 14.6551 79.7119 14.363 79.4927 13.9844C79.2802 13.6059 79.1739 13.1575 79.1739 12.6395V12.5299C79.1739 12.0053 79.2802 11.557 79.4927 11.1851C79.7119 10.8066 80.0074 10.5177 80.3793 10.3184C80.7579 10.1126 81.1829 10.0096 81.6544 10.0096Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M86.7515 10.0096C87.2097 10.0096 87.6149 10.1092 87.9668 10.3084C88.3188 10.501 88.5944 10.78 88.7937 11.1452C88.9929 11.5105 89.0925 11.9389 89.0925 12.4304V12.7889H85.1177C85.1377 13.3136 85.3071 13.7254 85.6258 14.0243C85.9446 14.3165 86.3431 14.4626 86.8212 14.4626C87.2396 14.4626 87.5617 14.3663 87.7875 14.1737C88.0133 13.9811 88.186 13.752 88.3056 13.4863L88.983 13.815C88.8833 14.0209 88.7439 14.2268 88.5646 14.4327C88.3919 14.6386 88.1628 14.8113 87.8772 14.9507C87.5983 15.0902 87.2396 15.1599 86.8013 15.1599C86.3099 15.1599 85.8782 15.057 85.5063 14.8511C85.1344 14.6386 84.8455 14.343 84.6396 13.9645C84.4337 13.5859 84.3307 13.1476 84.3307 12.6495V12.5299C84.3307 12.0252 84.4337 11.5836 84.6396 11.205C84.8455 10.8265 85.1311 10.5342 85.4963 10.3284C85.8616 10.1159 86.28 10.0096 86.7515 10.0096ZM86.7515 10.7069C86.3066 10.7069 85.9413 10.8331 85.6557 11.0855C85.3701 11.3378 85.1941 11.6898 85.1277 12.1414H88.2956C88.269 11.6898 88.113 11.3378 87.8274 11.0855C87.5485 10.8331 87.1898 10.7069 86.7515 10.7069Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M97.1624 10.0096C97.6207 10.0096 98.0258 10.1092 98.3778 10.3084C98.7298 10.501 99.0054 10.78 99.2046 11.1452C99.4039 11.5105 99.5035 11.9389 99.5035 12.4304V12.7889H95.5287C95.5487 13.3136 95.718 13.7254 96.0368 14.0243C96.3555 14.3165 96.754 14.4626 97.2322 14.4626C97.6505 14.4626 97.9727 14.3663 98.1985 14.1737C98.4243 13.9811 98.5969 13.752 98.7165 13.4863L99.3939 13.815C99.2943 14.0209 99.1548 14.2268 98.9755 14.4327C98.8028 14.6386 98.5737 14.8113 98.2881 14.9507C98.0092 15.0902 97.6506 15.1599 97.2123 15.1599C96.7208 15.1599 96.2892 15.057 95.9172 14.8511C95.5453 14.6386 95.2564 14.343 95.0505 13.9645C94.8446 13.5859 94.7417 13.1476 94.7417 12.6495V12.5299C94.7417 12.0252 94.8446 11.5836 95.0505 11.205C95.2564 10.8265 95.542 10.5342 95.9073 10.3284C96.2725 10.1158 96.6909 10.0096 97.1624 10.0096ZM97.1624 10.7069C96.7175 10.7069 96.3522 10.8331 96.0666 11.0855C95.7811 11.3378 95.6051 11.6898 95.5387 12.1414H98.7066C98.68 11.6898 98.5239 11.3378 98.2383 11.0855C97.9594 10.8331 97.6008 10.7069 97.1624 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M92.2484 10.0594C92.6137 10.0594 92.9391 10.1358 93.2247 10.2885C93.5169 10.4413 93.7494 10.6671 93.9221 10.966C94.0947 11.2648 94.1811 11.6334 94.1811 12.0717V15.1458H93.394V12.1315C93.394 11.6467 93.2712 11.2947 93.0255 11.0755C92.7864 10.8564 92.461 10.7468 92.0492 10.7468C91.5777 10.7468 91.1925 10.8995 90.8936 11.205C90.6014 11.5105 90.4553 11.9655 90.4553 12.5698V15.1458H89.6683V10.1491H90.4354V10.9582H90.5361C90.7355 10.7018 90.8604 10.5342 91.1128 10.3483C91.3718 10.1557 91.7503 10.0594 92.2484 10.0594Z' fill='%230E0D0B'/%3e%3cpath d='M78.5932 10.9581H77.7681V10.1514H78.6L78.5932 10.9581Z' fill='%230E0D0B'/%3e%3c/svg%3e";const gd=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),bo=({isOpen:e,onClose:t,title:n,subtitle:o,children:r,overlayContent:s,overlayDimmed:a=!0,styles:i,theme:l,maxWidth:c="522px",dark:u,footerLinkText:d,bannerSrc:p,bannerAlt:w,closeOnBackdropClick:m=!1})=>{const{theme:g,dark:h,dk:y,palette:C}=sn(i,u),S=u??h,b=l||g,A=i?.fontFamily||b.typography.fontFamily||tt.ui,O=i?.primaryColor||b.colors.primary,v=j(null),x=j(null),F=j(null),T=Pl(),[B,M]=L(!1),[k,E]=L(!1),I=j(t);if(ue(()=>{I.current=t},[t]),ue(()=>{if(!e){E(!1);return}x.current=document.activeElement;const H=document.body.style.overflow;document.body.style.overflow="hidden";const Q=requestAnimationFrame(()=>{const V=requestAnimationFrame(()=>E(!0));F.current=V}),G=()=>{const V=v.current;V&&(V.querySelectorAll(gd)[0]??V).focus({preventScroll:!0})},oe=V=>{if(V.key==="Escape"){V.stopPropagation(),I.current();return}if(V.key!=="Tab")return;const re=v.current;if(!re)return;const X=Array.from(re.querySelectorAll(gd)).filter(xe=>!xe.hasAttribute("aria-hidden"));if(X.length===0){V.preventDefault(),re.focus();return}const he=X[0],be=X[X.length-1],fe=document.activeElement;V.shiftKey&&fe===he?(V.preventDefault(),be.focus()):!V.shiftKey&&fe===be&&(V.preventDefault(),he.focus())},$=requestAnimationFrame(G);return document.addEventListener("keydown",oe),()=>{cancelAnimationFrame($),cancelAnimationFrame(Q),F.current&&cancelAnimationFrame(F.current),document.removeEventListener("keydown",oe),document.body.style.overflow=H;const V=x.current;V&&typeof V.focus=="function"&&V.focus({preventScroll:!0})}},[e]),!e)return null;const D=!!p&&!B,P=w??"";return f("div",{onMouseDown:H=>{m&&H.target===H.currentTarget&&I.current()},style:{position:"fixed",inset:0,backgroundColor:S?"rgba(0,0,0,0.72)":"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"clamp(16px, 4vw, 48px)",zIndex:ur.modal,opacity:k?1:0,transition:`opacity ${za.normal} ${Fr.out}`},children:f("div",{ref:v,role:"dialog","aria-modal":"true","aria-labelledby":T,tabIndex:-1,style:{backgroundColor:C.shellBorder,borderRadius:"12px",padding:"5px",width:"100%",maxWidth:c,boxSizing:"border-box",boxShadow:"0 16px 48px rgba(0, 0, 0, 0.4)",outline:"none",transform:k?"scale(1)":"scale(0.96)",transition:`transform ${za.slow} ${Fr.out}`,display:"flex",flexDirection:"column",maxHeight:"100%"},children:R("div",{style:{backgroundColor:C.shell,border:`1px solid ${C.shellInnerBorder}`,borderRadius:"9px",width:"100%",padding:"0",display:"flex",flexDirection:"column",position:"relative",flex:"0 1 auto",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:[s&&a&&f("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:5,pointerEvents:"none",borderRadius:"12px"},"aria-hidden":"true"}),D&&R("div",{style:{position:"relative",width:"100%"},children:[f("img",{src:p,style:{width:"100%",height:"auto",display:"block",borderRadius:"6px 6px 0 0"},alt:P,"aria-hidden":P===""?"true":void 0,onError:()=>M(!0)}),f("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"8px",right:"8px",minWidth:"44px",minHeight:"44px",color:C.textPrimary,padding:"8px",backgroundColor:"transparent",borderRadius:"9999px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:f(gs,{size:28,strokeWidth:2.5})})]}),R("div",{style:{padding:"28px 28px 0 28px",position:"relative"},children:[!D&&f("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"10px",right:"10px",minWidth:"44px",minHeight:"44px",color:C.textSecondary,padding:"10px",backgroundColor:"transparent",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",fontSize:"18px",fontWeight:"600"},onMouseEnter:H=>{H.currentTarget.style.backgroundColor=S?`${O}1a`:"#f3f4f6"},onMouseLeave:H=>{H.currentTarget.style.backgroundColor="transparent"},children:f(gs,{size:24,strokeWidth:2.4})}),f("h2",{id:T,style:{fontSize:"22px",fontWeight:"700",color:C.textPrimary,margin:"0",fontFamily:A,lineHeight:"1.12"},children:n})]}),o&&f("div",{style:{padding:"11px 28px 13px 28px",fontSize:"12px",color:C.textSecondary,margin:"0",lineHeight:"1.35",fontFamily:A,borderBottom:S?`1px solid ${y.cardBorder}`:"1px solid #cdcfd1"},children:o}),r,R("div",{style:{padding:"12px 28px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("img",{src:hd,alt:"","aria-hidden":"true",width:108,height:22,decoding:"async",style:{width:"108px",height:"22px",opacity:S?.85:1,filter:S?"brightness(0) invert(1)":"none",margin:0,display:"block"}}),f("a",{href:"https://spiceflow-docs.spicenet.io",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"10px",color:C.textSecondary,textDecoration:"none",display:"flex",alignItems:"center",gap:"4px",fontFamily:A,lineHeight:"1"},children:f("span",{style:{color:O,textDecoration:"underline",fontWeight:"500"},children:d??"Learn more \u2192"})})]}),s]})})})};function wd(e){const t=new Set(Tp(e).map(n=>n.toLowerCase()));return t.add(e.toLowerCase()),t}const gm=["USDC","USDT","WETH","WBTC"];function yd(e,t){const n=bt(t);if(!n)return;if(n.nativeCurrency.symbol.toUpperCase()===e.toUpperCase())return{address:jt,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,chainId:t};const o=n.supportedTokens?.find(r=>r.symbol.toUpperCase()===e.toUpperCase());if(o)return{address:o.address.toLowerCase(),symbol:o.symbol,decimals:o.decimals,chainId:t}}function Qo(e,t,n){const o=bt(t);if(!o)return;if(n!==void 0){if(Fe(e)&&!Xt(e,n))return;const a=fi(e,n,t);return a?{address:a.address.toLowerCase(),symbol:a.symbol,decimals:a.decimals,chainId:t}:void 0}if(Fe(e))return;const r=wd(e),s=o.supportedTokens?.find(a=>r.has(a.address.toLowerCase()));if(s)return{address:s.address.toLowerCase(),symbol:s.symbol,decimals:s.decimals,chainId:t}}function wm(e){const{sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,intermediaryCandidates:s=gm}=e;if(na(t,n))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted directly`};if(o===r&&(Fe(t.address)||!Xt(t.address,o)))return{strategy:"direct-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on chain ${o}, no escrow`};if(Qo(t.address,r,o))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted on destination, swapped to ${n.symbol}`};if(Qo(n.address,o,r))return{strategy:"source-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on source chain, then fronted`};for(const a of s){const i=yd(a,o);if(!i||na(t,i)||na(n,i))continue;const l=yd(a,r);if(l&&na(i,l))return{strategy:"intermediary",sourceAsset:t,outputAsset:n,intermediaryAsset:l,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${a} on source, fronted, then ${a} \u2192 ${n.symbol} on destination`}}throw new Be("ROUTE_STRATEGY_ERROR",`No viable cross-chain route found from ${t.symbol} (chain ${o}) to ${n.symbol} (chain ${r}). No intermediary asset is available on both chains.`,{sourceAsset:t.symbol,outputAsset:n.symbol,sourceChainId:o,destinationChainId:r,candidatesChecked:s})}async function ym(e){const{route:t,sourceAmount:n,userAddress:o,registry:r,actionCalls:s,slippage:a}=e;async function i(l,c,u,d){const p=await r.resolveSwap({type:"swap",tokenIn:c,tokenOut:u,amountIn:d,maxSlippage:a},l,o);if(!p)throw new Be("NO_LIQUIDITY",`No venue returned a quote for ${c} \u2192 ${u} on chain ${l}. No liquidity available for this pair.`,{chainId:l,tokenIn:c,tokenOut:u,amountIn:d.toString()});return p}switch(t.strategy){case"direct-swap":{const l=await i(t.destinationChainId,t.sourceAsset.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...l.calls,...s]}],solverFrontToken:t.outputAsset,solverFrontAmount:0n,resolvedSwaps:{sourceSwap:l}}}case"direct":{const l=Qo(t.sourceAsset.address,t.destinationChainId,t.sourceChainId)||t.sourceAsset;if(wd(l.address).has(t.outputAsset.address.toLowerCase()))return{chainBatches:[{chainId:t.destinationChainId,calls:s}],solverFrontToken:l,solverFrontAmount:n,resolvedSwaps:{}};const c=await i(t.destinationChainId,l.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...c.calls,...s]}],solverFrontToken:l,solverFrontAmount:n,resolvedSwaps:{destinationSwap:c}}}case"source-swap":{const l=Qo(t.outputAsset.address,t.sourceChainId,t.destinationChainId);if(!l)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.sourceChainId,side:"source"});const c=Qo(t.outputAsset.address,t.destinationChainId,t.destinationChainId);if(!c)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on destination chain ${t.destinationChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.destinationChainId,side:"destination"});const u=await i(t.sourceChainId,t.sourceAsset.address,l.address,n);return{chainBatches:[{chainId:t.sourceChainId,calls:u.calls},{chainId:t.destinationChainId,calls:s}],solverFrontToken:c,solverFrontAmount:u.amountOutMinimum,resolvedSwaps:{sourceSwap:u}}}case"intermediary":{if(!t.intermediaryAsset)throw new Be("ROUTE_STRATEGY_ERROR","Intermediary strategy requires an intermediary asset but none was provided in the route plan.",{strategy:t.strategy});const l=Qo(t.intermediaryAsset.address,t.sourceChainId,t.destinationChainId);if(!l)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Intermediary ${t.intermediaryAsset.symbol} (${t.intermediaryAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.intermediaryAsset.symbol,address:t.intermediaryAsset.address,chainId:t.sourceChainId,side:"source"});const c=await i(t.sourceChainId,t.sourceAsset.address,l.address,n),u=await i(t.destinationChainId,t.intermediaryAsset.address,t.outputAsset.address,c.amountOutMinimum);return{chainBatches:[{chainId:t.sourceChainId,calls:c.calls},{chainId:t.destinationChainId,calls:[...u.calls,...s]}],solverFrontToken:t.intermediaryAsset,solverFrontAmount:c.amountOutMinimum,resolvedSwaps:{sourceSwap:c,destinationSwap:u}}}default:throw new Be("ROUTE_STRATEGY_ERROR",`Unknown route strategy: ${t.strategy}`,{strategy:t.strategy})}}function bm(e,t,n){if(!e||!t)return null;if(e._source==="wallet"){if(t===e.chainId)return{address:e.address,symbol:e.symbol,name:e.name||e.symbol,decimals:e.decimals,logoURI:e.logoURI};const d=fr(t).find(p=>p.equivalenceGroup==="USDC"&&p.symbol.toUpperCase()==="USDC");return!d||n.length>0&&!n.some(p=>ee(p.address,d.address))?null:{address:d.address,symbol:"USDC",name:d.name||"USD Coin",decimals:d.decimals,logoURI:d.logo}}const o=Br(e,t),r=Object.entries(e.chainTokens??{}).flatMap(([d,p])=>{const w=$n(d);return w?.chainId===t?[{parsed:w,detail:p}]:[]}),s=d=>n.find(p=>ee(p.address,d))??null,a=d=>{const p=r.find(({parsed:g})=>ee(g.address,d));if(!p)return null;const w=bt(t);if(Fe(d))return w?{address:jt,symbol:w.nativeCurrency.symbol,name:w.nativeCurrency.name,decimals:w.nativeCurrency.decimals,logoURI:e.logoURI}:null;const m=w?.supportedTokens?.find(g=>ee(g.address,d));return!m||!pi(e,d,t)?null:{address:p.parsed.address,symbol:m.symbol,name:m.name||p.detail?.name||e.displayName||e.name||e.symbol,decimals:m.decimals,logoURI:m.logo||e.logoURI}},i=r.map(({parsed:d})=>d.address).filter(Fe);for(const d of[...o,...i]){if(Fe(d)){const m=a(d);if(m)return m}const p=s(d);if(p)return p;const w=a(d);if(w)return w}if(e.chainTokens||e.receiptTokenId)return null;const l=so(e,t);if(l){const d=s(l);if(d)return d}const c=Qo(e.address,t,e.chainId);return c?s(c.address)||(n.length>0?null:{address:c.address,symbol:c.symbol||e.symbol,name:e.displayName||e.name||e.symbol,decimals:c.decimals??e.decimals,logoURI:e.logoURI}):null}function xm(e){const t=e.find(n=>Oo(n.chainId))?.calls?.[0]?.data;if(!t)return null;try{const n=Zn({abi:Ks,data:t});return n.functionName!=="createWithdrawalRequest"?null:n.args[0].transfers.map(o=>({token:o.token,recipient:o.to,amount:o.amount}))}catch{return null}}function vm(e,t){if(!e||e.length!==t.length)return!1;const n=o=>o.reduce((r,s)=>r+s.amount,0n);return n(e)!==n(t)?!1:e.every((o,r)=>{const s=t[r];return o.token.toLowerCase()!==s.token.toLowerCase()||o.recipient.toLowerCase()!==s.recipient.toLowerCase()?!1:o.recipient.toLowerCase()===yn.toLowerCase()?Dl(o.amount,s.amount,100n):o.recipient.toLowerCase()!==Qn.toLowerCase()||o.amount===s.amount})}function km(e,t){const n=e.intents.flatMap(s=>s.batches).filter(s=>{const a=Lo(s);return BigInt(s.quotedAmount)>0n||BigInt(s.totalDebit)>0n||a.totalFee>0n}),o=n.filter(s=>s.chainId===t),r=o.length>0?o:n;return r.length===1?r[0]:null}function Cm(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=n.token.toLowerCase(),r=n.recipient.toLowerCase(),s=`${o}:${r}`,a=t.get(s);a?a.amount+=n.amount:t.set(s,{...n})}return[...t.values()]}function bd(e,t){if(!e.token||!e.recipient||e.chainId===null)return null;const n=km(t,e.chainId);if(!n)return null;const{gasFee:o,bridgeFee:r,spicenetFee:s}=Lo(n),a=o+r,i=e.grossAmountRaw-a-s;if(i<=0n)throw new Error("Withdrawal amount does not cover the network fee.");const l=[{token:e.token.address,recipient:e.recipient,amount:i}];return a>0n&&l.push({token:e.token.address,recipient:yn,amount:a}),s>0n&&l.push({token:e.token.address,recipient:Qn,amount:s}),Cm(l)}function Im(e,t,n){const o=bd(e,t);return!o||vm(xm(n),o)?null:e.buildWithdrawBatches(o)}async function xd(e){if(e.executionContextRef.current){await vd(e);return}if(!e.batches.length||!e.walletAddress||!e.recipient)return;const t=qe.getBaseUrl();e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress(null),e.executionContextRef.current=null,e.ui.setLockedGasFee(e.gasFee);try{let n=e.batches;if(e.isNon7702&&e.onWithdrawExecute)await e.onWithdrawExecute(e.amount);else{if(!e.isNon7702&&!n.some(s=>Oo(s.chainId)))throw new Error("Spice withdrawals must include a Spicenet funding batch before the destination chain batch.");const o=e.token?.address||"",r={useCustomTransfers:!0};if(e.buildSpicenetBatch){const s=e.feeEstimate??await e.execution.estimate(n,o,0n,r),a=bd(e,s);a&&(n=e.buildWithdrawBatches(a));const i=s.intents[0]?.batches.find(l=>l.chainId===e.chainId)??s.intents[0]?.batches[0]??null;i&&e.ui.setLockedGasFee(Lo(i).totalFee)}else{const s=(e.feeEstimate??await e.execution.estimate(n,o,0n,r)).intents[0]?.batches[0]??null;s&&e.ui.setLockedGasFee(Lo(s).totalFee)}await e.execution.execute(n,o,0n,s=>{s.actionId&&s.intentId&&typeof s.intentIndex=="number"&&typeof s.totalSteps=="number"&&(e.executionContextRef.current={actionId:s.actionId,intentId:s.intentId,intentIndex:s.intentIndex,totalSteps:s.totalSteps,autoContinue:s.autoContinue,apiUrl:t,finish:()=>Ri(e)}),e.ui.setExecutionProgress(s)},void 0,e.buildSpicenetBatch?{...r,adjustBatchesForEstimate:({feeEstimate:s,chainBatches:a})=>Im(e,s,a)}:{...r,skipPreSubmitFeeEstimate:!0})}await Ri(e)}catch(n){const o=n instanceof Error?n.message:"Withdraw failed";e.ui.setExecutionError(o)}finally{e.ui.setIsExecuting(!1)}}async function Ri(e){window.dispatchEvent(new CustomEvent("withdraw-completed")),await e.onWithdrawSuccess?.({token:e.token?.symbol||"",amount:e.amount,chainId:e.chainId})}async function vd(e){const t=e.executionContextRef.current;if(!t){if(e.isNon7702&&e.onWithdrawExecute){await xd(e);return}e.ui.setExecutionError("The previous withdrawal action is unavailable. Reconcile it before starting another.");return}const n=t.apiUrl?new Jr:qe;t.apiUrl&&n.setBaseUrl(t.apiUrl),e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress({step:"executing",message:"Resuming existing action...",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps});try{let o=t.totalSteps;for(let r=0;r<t.totalSteps;r++)if((await n.checkStepStatus(t.intentId,r)).data.status!=="success"){o=r;break}if(o>=t.totalSteps)e.ui.setExecutionProgress(r=>({...r||{step:"success",message:"Transaction successful!",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps},step:"success",message:"Transaction successful!"}));else for(let r=o;r<t.totalSteps;r++){const s=await td({actionId:t.actionId,intentIndex:t.intentIndex,intentId:t.intentId,stepIndex:r,chainId:e.chainId??void 0,observeOnly:t.autoContinue,maxPolls:t.autoContinue?Number.POSITIVE_INFINITY:void 0,relayer:n,completeOnExecution:!e.isNon7702&&r===t.totalSteps-1,onStatusMessage:(a,i)=>{e.isMountedRef.current&&e.ui.setExecutionProgress({step:"executing",message:a,txHash:i,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}});if(!e.isMountedRef.current)return;e.ui.setExecutionProgress({step:r===t.totalSteps-1?"success":"executing",message:r===t.totalSteps-1?"Transaction successful!":"Executing remaining steps...",txHash:s,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}await(t.finish?.()??Ri(e))}catch(o){const r=o instanceof Error?o.message:"Withdraw failed";e.ui.setExecutionError(r)}finally{e.ui.setIsExecuting(!1)}}async function Sm(e){const t=await e.estimate(e.batches,e.tokenAddress,0n,{useCustomTransfers:!0,signal:e.signal}),n=t.intents.flatMap(r=>r.batches).filter(r=>Lo(r).totalFee>0n),o=n.filter(r=>r.chainId===e.chainId)[0]??n[0]??t.intents[0]?.batches[0];if(!o)throw new Error("No gas fee estimate was returned for this withdraw.");return{gasFee:Lo(o).totalFee,feeEstimate:t}}function Di(e,t){return De(e,t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1")}function Am(e,t,n){return pn(e,t,n,"floor")}function kd(e,t,n=!1){if(e<=0)return"$0";if(!t||!Number.isFinite(t)||t<=0)return"\u2014";const o=e*t;return`$${o>=1?o.toFixed(3).replace(/0+$/,"").replace(/\.$/,""):o.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}${n?" (stale)":""}`}function Em(e,t){return t?JSON.stringify({tokenAddress:t.toLowerCase(),batches:e.map(n=>({chainId:n.chainId,calls:n.calls.map(o=>({to:o.to.toLowerCase(),value:o.value.toString(),data:o.data})),tokenTransfers:(n.tokenTransfers??[]).map(o=>({from:o.from,to:o.to.toLowerCase(),token:o.token.toLowerCase(),amount:o.amount.toString()}))}))}):null}function ma(e,t,n){const o=n.filter(r=>r.amount>0n);return{chainId:e,domain:"evm",tokenTransfers:[],calls:Fe(t)?o.map(r=>({to:r.recipient,value:r.amount,data:"0x"})):o.map(r=>({to:t,value:0n,data:Et({abi:lt,functionName:"transfer",args:[r.recipient,r.amount]})}))}}new Set([yn,Qn].map(e=>e.toLowerCase()));async function Vo(e,t,n){const o=await Qs(e),r=Xt(n,t)?.decimals,s=o.filter(u=>!Array.isArray(u.chainTokens)&&Object.keys(u.chainTokens??{}).some(d=>d.toLowerCase()===`evm:${t}:${n.toLowerCase()}`));if(s.length>1)throw new Error("Order cash receipt identity is ambiguous");const a=new Map;for(const u of s){const d=Object.entries(u.chainTokens??{}).find(([p])=>p.toLowerCase()===`evm:${t}:${n.toLowerCase()}`)?.[1];if(!u.receiptToken||a.has(u.receiptToken)||!/^\d{1,78}$/.test(u.balanceAvailable)||!Number.isInteger(u.decimals)||u.decimals<0||u.decimals>36||typeof d!="object"||r===void 0||d.decimals!==r)throw new Error("Order cash metadata could not be verified");a.set(u.receiptToken,{amount:BigInt(u.balanceAvailable),decimals:u.decimals})}const i=new Set,l=new Set;let c;for(let u=0;u<20;u++){const d=await qe.listLimitOrders(e,c);if(!Array.isArray(d.orders)||d.orders.length>100)throw new Error("Order reservations could not be verified");for(const p of d.orders){if(!/^ord_[0-9a-f]{64}$/.test(p.id)||i.has(p.id)||!ee(p.user,e)||!/^\d{1,78}$/.test(p.reservedAmount)||!["open","executing","needs_attention","filled","cancelled","expired","failed"].includes(p.status))throw new Error("Order reservations could not be verified");if(i.add(p.id),!["open","executing","needs_attention"].includes(p.status))continue;const w=a.get(p.receiptToken);if(!w&&p.chainId===t&&ee(p.tokenIn,n))throw new Error("Active order cash could not be verified");w&&(w.amount-=BigInt(p.reservedAmount))}if(d.nextCursor===null){let p=0n;for(const w of a.values()){if(w.amount<0n)throw new Error("Order reservations exceed the current cash balance");p+=ho(w.amount,w.decimals,r)}return{available:p,entries:o}}if(typeof d.nextCursor!="string"||!/^ord_[0-9a-f]{64}$/.test(d.nextCursor)||l.has(d.nextCursor))throw new Error("Order history is incomplete");c=d.nextCursor,l.add(c)}throw new Error("Order history is incomplete")}const Fm="spiceflow-limit-order:v1",br=go(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]);function Tm(e){if(!/^ord_[0-9a-f]{64}$/.test(e))throw new Error("Invalid limit order ID");return`Spice Flow limit order cancellation v1
|
|
17
|
-
Order: ${e}`}function Mi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode!=="7702")throw new Error("Invalid order intent");return`ord_${ki(t.chainBatches,BigInt(t.exp)).slice(2)}`}function Bm(e){if(!Number.isSafeInteger(e.expiresAt)||e.minimumOutput<=0n||e.amountIn<=0n||e.platformFee<0n||e.gasBridgeFee<0n||e.amountIn+e.platformFee+e.gasBridgeFee!==e.grossAmount)throw new Error("Invalid limit order amounts or expiry");const t=hs({userAddress:e.user,destinationChainId:e.chainId,deliveryToken:e.tokenIn,deliveryAmount:e.grossAmount,deliveryRecipient:e.user,requestTimestampMs:e.requestTimestampMs,expiresAt:e.expiresAt,metadata:Fm,requestNonce:e.requestNonce});if(!t)throw new Error("Order requires a positive cash balance");const n=[...ma(e.chainId,e.tokenIn,[{recipient:Qn,amount:e.platformFee},{recipient:yn,amount:e.gasBridgeFee}]).calls,{to:e.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[e.router,e.amountIn]})},{to:e.router,value:0n,data:Et({abi:br,functionName:"exactInput",args:[{path:e.path,recipient:e.user,deadline:BigInt(e.expiresAt),amountIn:e.amountIn,amountOutMinimum:e.minimumOutput}]})}],o=Io([t,{chainId:e.chainId,calls:n}]);return{user:e.user,amountMode:"gross_input",intents:[{mode:"7702",signatureType:"ecdsa",signature:"0x00",nbf:0,exp:e.expiresAt,chainBatches:o.map((r,s)=>({...r,chainId:Number(r.chainId),tokenTransfers:s===0?[]:[{from:"escrow",to:e.user,token:e.tokenIn,amount:e.grossAmount}]}))}]}}const Om=36;function Nr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=Om}function ys(e){return!e.balanceError&&e.balanceStatus!=="stale"&&e.balance>=0n&&Nr(e.decimals)&&!e.isNative&&!Fe(e.address)}function Ni(e,t){if(!e.chainTokens||Array.isArray(e.chainTokens))return null;let n;for(const[o,r]of Object.entries(e.chainTokens)){const s=$n(o);if(!(!s||s.chainId!==t)){if(n)return null;n={address:s.address,decimals:r?.decimals}}}return n??null}function Pi(e,t,n){if(e<0n)return null;const o=ho(e,t,n);return ho(o,n,t)===e?o:null}function $o(e,t){return Nr(e.receiptTokenDecimals)&&Pi(t,e.decimals,e.receiptTokenDecimals)!==null}function Rm(e,t){if(!Nr(e.receiptTokenDecimals))return-1n;const n=ho(t,e.decimals,e.receiptTokenDecimals),o=ho(n,e.receiptTokenDecimals,e.decimals);return o<=t?o:-1n}function ha(e,t){return e.owner?.toLowerCase()===t.toLowerCase()}function Dm(e,t,n,o,r){if(!e)return[];const s=[];for(const a of Array.isArray(e)?e:[e]){if(a.amount<0n||!ha(a.asset,o)||a.asset.chainId!==r)return null;const i=ve(a.asset);if(i!==ve(t)&&i!==ve(n))return null;const l=s.find(c=>c.positionId===i);l?l.amount+=a.amount:s.push({positionId:i,amount:a.amount})}return s}function bs(e,t,n,o,r,s){if(!n||!/^0x[0-9a-f]{40}$/i.test(n)||!ha(e,n)||e.chainId!==o||!ys(e))return;let a,i,l;if(e.location==="embedded"&&e._source!=="spice"){a=e,l=e.address;const S=t.filter(b=>{const A=Ni(b,o);return b.location==="rollup"&&b._source!=="wallet"&&ha(b,n)&&b.chainId===o&&ys(b)&&!!b.receiptTokenId&&!!A&&ee(A.address,l)});if(S.length!==1)return;[i]=S}else if(e.location==="rollup"&&e._source!=="wallet"&&e.receiptTokenId){i=e;const S=Ni(e,o);if(!S)return;l=S.address;const b=t.filter(A=>A.location==="embedded"&&A._source!=="spice"&&ha(A,n)&&A.chainId===o&&ys(A)&&ee(A.address,l));if(b.length!==1)return;[a]=b}else return;if(!a||!i||!l||!ys(a)||!ys(i)||a.location!=="embedded"||i.location!=="rollup"||!i.receiptTokenId||!Nr(a.decimals)||a.decimals!==i.decimals||!Nr(i.receiptTokenDecimals))return;const c=Ni(i,o);if(!c||!ee(c.address,l)||c.decimals!==void 0&&c.decimals!==a.decimals)return;const u=ve(a),d=ve(i);if(u===d||t.filter(S=>ve(S)===u).length!==1||t.filter(S=>ve(S)===d).length!==1)return;let p=a.balance,w=r??i.balance;if(w<0n||w>i.balance)return;const m=Dm(s,a,i,n,o);if(m===null)return;for(const S of m)if(S.positionId===u){if(S.amount>p)return;p-=S.amount}else{if(S.amount>w||!$o(i,S.amount))return;w-=S.amount}const g=ve(e),h=e.decimals;if(!Nr(h))return;const y=Pi(p,a.decimals,h),C=Pi(w,i.decimals,h);if(!(y===null||C===null))return{wallet:a,escrow:i,owner:n,chainId:o,token:l,decimals:a.decimals,representativePositionId:g,representativeDecimals:h,walletAvailable:p,escrowAvailable:w,availableBalance:y+C,...m.length===1?{reserve:m[0]}:{},reserves:m}}function Cd(e,t,n,o){const r=ve(e);return{positionId:r,asset:e,amount:t,reservedAmount:n.find(s=>s.positionId===r)?.amount??0n,availableAmount:o}}function Wi(e,t,n,o){if(t<=0n)throw new RangeError("Enter an amount within the available balance.");const r=o?.quoteOnly===!0;if(!r&&t>e.availableBalance)throw new RangeError("Enter an amount within the available balance.");let s,a,i=0n,l=0n,c=0n;if(n==="escrow"){const u=t<e.escrowAvailable?t:e.escrowAvailable;if(a=Rm(e.escrow,u),a<0n)throw new RangeError("Enter an amount within the available balance.");if(i=t-a,s=i,l=t,!r&&i>e.walletAvailable||!$o(e.escrow,i)||!$o(e.escrow,l))throw new RangeError("Enter an amount within the available balance.")}else if(s=t<e.walletAvailable?t:e.walletAvailable,c=s,l=t-s,a=l,!r&&l>e.escrowAvailable||!$o(e.escrow,l))throw new RangeError("Enter an amount within the available balance.");return{owner:e.owner,chainId:e.chainId,token:e.token,decimals:e.decimals,representativePositionId:e.representativePositionId,representativeDecimals:e.representativeDecimals,route:n,grossAmount:t,insufficient:s>e.walletAvailable||a>e.escrowAvailable,positions:[Cd(e.wallet,s,e.reserves,e.walletAvailable),Cd(e.escrow,a,e.reserves,e.escrowAvailable)],walletDeposit:i,escrowWithdrawal:l,walletInPlace:c}}function ga(e,t,n,o,r){if(!e.positions.find(u=>u.positionId===e.representativePositionId))throw new Error("The source balance changed. Review the available amount before continuing.");const s=t.filter(u=>ve(u)===e.representativePositionId);if(s.length!==1)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.insufficient)throw new Error("The source balance changed. Review the available amount before continuing.");const a=e.positions.filter(u=>u.reservedAmount>0n).map(u=>({asset:u.asset,amount:u.reservedAmount})),i=bs(s[0],t,n,o,r,a);if(!i||i.representativePositionId!==e.representativePositionId||i.representativeDecimals!==e.representativeDecimals||i.owner.toLowerCase()!==e.owner.toLowerCase()||i.chainId!==e.chainId||!ee(i.token,e.token)||i.decimals!==e.decimals)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.grossAmount<=0n||e.positions.length!==2)throw new Error("The source balance changed. Review the available amount before continuing.");const l=e.positions.find(u=>u.positionId===ve(i.wallet)),c=e.positions.find(u=>u.positionId===ve(i.escrow));if(!l||!c||l.positionId===c.positionId||l.amount<0n||c.amount<0n||l.reservedAmount<0n||c.reservedAmount<0n)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.route==="escrow"){if(e.walletDeposit!==l.amount||e.walletInPlace!==0n||e.escrowWithdrawal!==e.grossAmount||l.amount+c.amount!==e.grossAmount||!$o(i.escrow,c.amount)||!$o(i.escrow,l.amount)||!$o(i.escrow,e.escrowWithdrawal))throw new Error("The source balance changed. Review the available amount before continuing.")}else if(e.walletDeposit!==0n||e.walletInPlace!==l.amount||e.escrowWithdrawal!==c.amount||l.amount+c.amount!==e.grossAmount||!$o(i.escrow,c.amount))throw new Error("The source balance changed. Review the available amount before continuing.");if(l.amount>i.walletAvailable||c.amount>i.escrowAvailable)throw new Error("The source balance changed. Review the available amount before continuing.");for(const u of e.positions){const d=t.find(p=>ve(p)===u.positionId);if(!d||d.decimals!==u.asset.decimals||d.receiptTokenDecimals!==u.asset.receiptTokenDecimals||d.receiptTokenId!==u.asset.receiptTokenId)throw new Error("The source balance changed. Review the available amount before continuing.")}}function Mm(e,t){const n=t.feePolicy;if(!n||t.feeExecutionMode!=="user-transfer"||!t.feeBreakdown)return e;const o=t.feeToken??t.destinationToken,r=[{recipient:n.platformRecipient,amount:t.feeBreakdown.spicenetFee},{recipient:n.gasRecipient,amount:t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee}],s=[];for(const{recipient:a,amount:i}of r){const l=ee(a,n.gasRecipient)?[a,yn,"0x718dE8f0A0DC14D5BC6c560C192F02AE6Af036c7","0x737680c45F88A8b1b389e354dde11419f89BAdd6"]:[a],c=m=>l.some(g=>ee(m,g));let u;const d=(m,g)=>{if(u&&!ee(u,m))throw new Error("Action fee calls use mixed gas fee recipients");u=m,p=!0,w+=g};let p=!1,w=0n;for(const m of e)if(Fe(o))c(m.to)&&m.data==="0x"&&d(m.to,m.value);else if(ee(m.to,o)&&m.value===0n){let g;try{g=Zn({abi:lt,data:m.data})}catch{continue}if(g.functionName==="transfer"&&c(g.args[0])){if(Et({abi:lt,functionName:"transfer",args:g.args}).toLowerCase()!==m.data.toLowerCase())throw new Error("Action fee transfer is not canonical");d(g.args[0],g.args[1])}}if(p){if(w!==i)throw new Error("Action fee calls differ from the accepted fee plan")}else i>0n&&s.push(Fe(o)?{to:a,value:i,data:"0x"}:{to:o,value:0n,data:Et({abi:lt,functionName:"transfer",args:[a,i]})})}return[...s,...e]}function Nm(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=un(n.token),r=un(n.to),s=`${o.toLowerCase()}:${r.toLowerCase()}`,a=t.get(s);a?a.amount+=n.amount:t.set(s,{token:o,to:r,amount:n.amount})}return[...t.values()]}function Pm(e,t){return`0x${t}${e.slice(4)}`}function Ui(e,t,n,o){if(e.some(d=>d.domain==="spicenet"))return e;const r=n?.intents.flatMap(d=>d.batches),s=d=>d.from==="escrow",a=e.map(d=>{const p=r?.find(x=>x.chainId===d.chainId);if(!p)return d;const w=Lo(p),m=w.totalFee;if(m<=0n)return d;const g=(d.tokenTransfers??[]).filter(x=>s(x)&&un(x.to).toLowerCase()===t.toLowerCase()),h=g.find(x=>!Fe(un(x.token)))??g[0];if(!h)return d;const y=un(h.token),C=Fe(y);let S=!1;const b=(d.tokenTransfers??[]).map(x=>S||!s(x)||un(x.to).toLowerCase()!==t.toLowerCase()||un(x.token).toLowerCase()!==y.toLowerCase()?x:(S=!0,{...x,amount:o?.payoutAlreadyGross?BigInt(x.amount):BigInt(x.amount)+m}));if(!S)return d;const A=(x,F)=>C?{to:x,value:F,data:"0x"}:{to:y,value:0n,data:Et({abi:lt,functionName:"transfer",args:[x,F]})},O=[];w.spicenetFee>0n&&O.push(A(Qn,w.spicenetFee));const v=w.gasFee+w.bridgeFee;return v>0n&&O.push(A(yn,v)),{...d,tokenTransfers:b,calls:[...O,...d.calls]}}),i=a.flatMap(d=>(d.tokenTransfers??[]).filter(s).map(p=>{const w=un(p.token),m=un(p.to),g=[{token:w,to:m,amount:BigInt(p.amount)}];return{chainId:d.chainId,transfers:Nm(g)}}));if(i.length===0)return e;const l=o?.requestTimestampMs??Date.now(),c=BigInt(Math.floor(l/1e3));if(o?.expiresAt!==void 0&&(!Number.isSafeInteger(o.expiresAt)||o.expiresAt<=Number(c)))throw new Error("Funding expiry must be a future Unix timestamp");const u=o?.expiresAt===void 0?c+3600n:BigInt(o.expiresAt);return[{chainId:Ql,domain:"spicenet",tokenTransfers:[],calls:i.map((d,p)=>{const w=mr(qo([{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}],[t,d.transfers[0].token,d.transfers.reduce((g,h)=>g+h.amount,0n),BigInt(d.chainId),BigInt(l+p)])),m=Pm(w,"77");return{to:"0x0000000000000000000000000000000000000000",value:0n,data:Et({abi:Ks,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${d.chainId}`,idempotenceKey:m,nbf:0n,exp:u,metadata:"{}",transfers:d.transfers.map(g=>({token:g.token.toLowerCase(),to:g.to,amount:g.amount}))}]})}})},...a]}function _o(e,t,n,o){const r=e.filter(a=>a.domain!=="spicenet"),s=a=>(a.tokenTransfers??[]).some(i=>i.from==="escrow");return[...r.filter(a=>!s(a)),...Ui(r.filter(s),t,n,o)]}class xr extends Error{constructor(t,n){super("The selected balance cannot cover the fee funding amount"),this.requiredAmount=t,this.balance=n,this.name="InsufficientFeeFundingBalanceError"}}function Li(e,t,n,o,r){const s=e[e.length-1];if(!s?.calls.length||s.domain==="spicenet")throw new Error("Proceeds fees require a final destination action");const a=[{to:Qn,amount:r},{to:yn,amount:o}].filter(i=>i.amount>0n);return e.map(i=>i===s?{...i,calls:[...i.calls,...a.map(l=>({to:n,value:0n,data:Et({abi:lt,functionName:"transfer",args:[l.to,l.amount]})}))],tokenTransfers:[...i.tokenTransfers??[],...a.map(l=>({from:t,to:l.to,token:n,amount:l.amount}))]}:i)}async function Id(e,t,n,o,r){const s=Io(e),a=await qe.estimateBatchGas({user:t,outputToken:n,signal:o,requireSimulation:!0,includePlatformFee:r!==void 0,chainBatches:e.map((i,l)=>({...i,hash:s[l].hash}))});if(a.gasQuoteSource!=="estimated"||!a.simulationVerified)throw new Error("Action proceeds require a successful live batch simulation; fallback gas pricing is not sufficient");if(r!==void 0&&(a.platformFee===void 0||a.platformFee>r))throw new Error("Fee conversion platform price changed; refresh before retrying");return a.gasFee}async function Sd(e){if(e.proceeds.token.toLowerCase()!==e.token.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const t=await e.proceeds.resolve(e.signal);if(e.signal?.aborted)throw new Error("Action proceeds quote was cancelled");if(t<0n)throw new Error("Action proceeds cannot be negative");const n=await e.baseline();if(!n?.preview)throw new Error("Action fee quote is unavailable");let o=n.preview.gasFee;const r=n.preview.spicenetFee,s=n.preview.bridgeFee??0n;for(let a=0;a<5;a++){const i=o+r+s,l=t<i?t:i,c=i-l;if(c>0n&&e.fundShortfall===!1)throw new xr(i,t);const u=c>0n?(c*110n+99n)/100n+2n:0n;let d=u,p;const w=_o(await e.buildBatches(u,{actionAmountOverride:e.actionAmountFor?.(i),onSourceSpend:h=>{d=h},onActionCalls:h=>{p=h}}),e.owner,void 0,{expiresAt:e.expiresAt}),m=Li(w,e.owner,e.token,o+s,r),g=await Id(m,e.owner,e.token,e.signal);if(g<=o&&(o-g)*100n<=g*15n)return{preview:{...n.preview,grossAmount:u,netAmount:0n,gasFee:o,totalFee:i,gasQuoteSource:"estimated"},feeEstimate:n.feeEstimate,grossFundingAmount:u,proceedsAvailable:t,proceedsUsed:l,fundingBatches:m,sourceSpendCap:d,destinationAmount:0n,actionDefinition:p};o=g}throw new Error("Action proceeds fee estimate did not converge")}function Ad(e,t){let n,o;if(Fe(t)){if(e.data!=="0x")return null;n=e.to,o=e.value}else{if(!ee(e.to,t))return null;try{const r=Zn({abi:lt,data:e.data});if(r.functionName!=="transfer")return null;[n,o]=r.args}catch{return null}}return ee(n,yn)?{gas:o,platform:0n}:ee(n,Qn)?{gas:0n,platform:o}:null}async function Wm(e,t,n){const o=Ct(e);return Fe(n)?o.getBalance({address:t}):o.readContract({address:n,abi:lt,functionName:"balanceOf",args:[t]})}function Pr(e,t,n){return e.map(o=>o.chainId===t?{...o,calls:o.calls.filter(r=>!Ad(r,n))}:o)}function Ed(e,t,n){if(!e.feeOnlyAction)return{};const o=e.embeddedWalletAddress??e.providerEmbeddedAddress,r=e.feeQuote?.fundingSource,s=r&&r.kind!=="proceeds"?void 0:e.actionProceeds,a=r&&(r.kind==="input"||r.kind==="balance"&&r.asset?._source==="wallet")?r:void 0;if(s||e.feeQuote?.fundingConversion||a){const u=e.feeQuote?.fundingConversion,d=s??{token:t,resolve:async()=>0n},p=e.feeQuote?.preview,w=e.feeQuote?.proceedsUsed,m=u?.fromProceeds?u.tokenIn:t;if(!p||w===void 0||!a&&d.token.toLowerCase()!==m.toLowerCase())throw new Error("Refresh the action proceeds quote");const g=p.gasFee+(p.bridgeFee??0n),h=p.spicenetFee,y=a?async()=>{e.validateFeeQuote?.();const S=await Wm(e.resolvedChainId,o,a.token);e.validateFeeQuote?.();const b=a.kind==="input"?a.amount:(u?.amountInMax??w)+(a.reservedAmount??0n);if(e.signal?.aborted||S<b||u&&u.amountOut<g+h)throw new Error("The fee funding balance changed; refresh before retrying");return u?[{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[]}:async()=>{e.validateFeeQuote?.();const S=await d.resolve(e.signal);if(e.validateFeeQuote?.(),e.signal?.aborted||(u?.fromProceeds?S<u.amountInMax||u.amountOut<g+h:S<w||S+(u?.amountOut??n)<g+h))throw new Error("Action proceeds changed; refresh before retrying");return u?.fromProceeds?[{chainId:e.resolvedChainId,token:u.tokenIn,amount:u.amountInMax},{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[{chainId:e.resolvedChainId,token:t,amount:w+(u?.amountOut??0n)}]},C=async S=>{await y();const b=await Id(S,o,t,e.signal,u?h:void 0);if(await y(),(b>p.gasFee?b-p.gasFee:p.gasFee-b)*100n>b*15n)throw new Error("Action gas quote changed; refresh before retrying")};return{resolveActionOutputCredits:y,prepareForSigning:async S=>{if(e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation)return await C(S),S;const b=Pr(S,e.resolvedChainId,t).map(O=>({...O,tokenTransfers:O.tokenTransfers?.filter(v=>!(typeof v.from=="string"&&ee(v.from,o)&&(ee(v.to,yn)||ee(v.to,Qn))))})),A=Li(b,o,t,g,h);return await C(A),A},validateBeforeSubmit:C}}const i=Xt(t,e.resolvedChainId),l={chainId:e.resolvedChainId,tokenAddress:t,symbol:i?.symbol??e.destinationToken.symbol,decimals:e.executionTokenDecimals??i?.decimals??e.destinationToken.decimals},c=async u=>{e.validateFeeQuote?.();const d=Pr(u,e.resolvedChainId,t),p=await e.execution.estimate(d,t,n,{userOverride:o,useCustomTransfers:!0,feeExecutionMode:"backend-transfer"});e.validateFeeQuote?.();const w=fo(p,l);if(!w||w.chainId!==e.resolvedChainId)throw new Error("The fee service did not return the destination action's fee quote");if(w.gasFee+w.spicenetFee+(w.bridgeFee??0n)+2n>n)throw new Error("Fees exceed the displayed maximum funding; refresh the quote before retrying");return{raw:d,feeEstimate:p,fees:w}};return{prepareForSigning:async u=>{const{raw:d,feeEstimate:p}=await c(u);return e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation?u:_o(d,o,p,{payoutAlreadyGross:!0})},validateBeforeSubmit:async u=>{const{fees:d}=await c(u);let p=0n,w=0n;for(const g of u)if(g.chainId===e.resolvedChainId)for(const h of g.calls){const y=Ad(h,t);y&&(p+=y.gas,w+=y.platform)}if(p+w+2n>n)throw new Error("Signed fees exceed the displayed maximum funding");const m=d.gasFee+(d.bridgeFee??0n);if((p>m?p-m:m-p)*100n>m*15n||w!==d.spicenetFee)throw new Error("The signed gas quote changed materially; refresh before retrying")}}}const Um="0xa9059cbb";function vr(e,t,n){return Fe(e)?{to:n,value:t,data:"0x"}:{to:e,value:0n,data:Et({abi:lt,functionName:"transfer",args:[n,t]})}}function qi(e,t,n){return{chainId:n,calls:[vr(e,t,Bo(n))]}}function Lm(e,t,n,o){const r=t.source.chainId;return{chainId:r,calls:[...e.calls,vr(t.source.address,n,Bo(r)),...o>0n?[vr(t.source.address,o,yn)]:[]]}}function Fd(e,t){const n=e.amountOutMinimum-t;if(n<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");return n}function Td(e,t,n){return e?.asset?._source==="wallet"&&e?.asset.chainId===n}function Bd(e){return e.isNative||Fe(e.address)?!0:!Xt(e.address,e.chainId)}function Od(e,t,n,o){return t!=="user-transfer"||!n||e.length===0||e[0]?.to.toLowerCase()!==o.toLowerCase()||!e[0]?.data.startsWith(Um)?{feeCall:null,remainingCalls:e}:{feeCall:e[0],remainingCalls:e.slice(1)}}async function Wr(e,t,n,o){const r=await(t??hs)({...n,requestTimestampMs:o});return r?[r,e]:[e]}function qm(e){return e.filter(t=>t.domain!=="spicenet")}function Ur(e,t){const n=(e.tokenTransfers??[]).filter(o=>o.from==="escrow").map(o=>({token:pt(o.token),recipient:o.to,amount:BigInt(o.amount)})).filter(o=>o.amount>0n);return t!==void 0&&n.length===1&&(n[0]={...n[0],amount:t}),n.length>0?n:void 0}function Lr(e,t,n){return pn(e,t,n,"ceil")}function Rd(e){const t=e.selectedAsset?.asset;return e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.pivot}function zi(e){const t=e.selectedAsset?.asset;return!e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.sourceSwap&&!!e.pivot}function xs(e,t){if(t?.sourceSpendCap!==void 0&&e>t.sourceSpendCap)throw new Error("The source amount increased. Review the updated quote before submitting.");t?.onSourceSpend?.(e)}async function Dd(e,t,n){let o;const r=await e({...t,buildActionCalls:async(s,a)=>{o=s;const i=Mm(await t.buildActionCalls(s,a),a);return n?.onActionCalls?.({amount:s,context:a,calls:i}),i}},n);if(o!==void 0){if(n?.minimumDestinationAmount!==void 0&&o<n.minimumDestinationAmount)throw new Error("The destination amount decreased. Review the refreshed quote before submitting.");n?.onDestinationAmount?.(o)}return r}const qr=(e,t)=>Dd(zm,e,t),wa=async(e,t)=>{const n=await Dd(Hm,e,t),o=t?.actionContextOverride?.feeBreakdown,r=n[n.length-1];if(t?.actionContextOverride?.feePolicy||e.feeExecutionMode!=="user-transfer"||!o||!r)return n;const s=e.needsSwap&&e.resolvedTokenIn?e.resolvedTokenIn:e.destinationToken.address,[a]=Pr([r],e.resolvedChainId,s),i=ma(e.resolvedChainId,s,[{recipient:Qn,amount:o.spicenetFee},{recipient:yn,amount:o.gasFee+(o.bridgeFee??0n)}]).calls,l=r.calls.filter(c=>!a.calls.includes(c));return l.length===i.length&&i.every(c=>l.some(u=>u.to.toLowerCase()===c.to.toLowerCase()&&u.value===c.value&&u.data===c.data))?n:[...n.slice(0,-1),{...a,calls:[...i,...a.calls]}]};async function zm(e,t){const{currentPaymentAmount:n,destinationToken:o,embeddedWalletAddress:r,providerEmbeddedAddress:s,address:a,isNon7702:i,resolvedChainId:l,buildActionCalls:c,feeExecutionMode:u,buildSpicenetBatch:d,needsSwap:p,exactOutputSwap:w,resolvedTokenIn:m,requestTimestampMs:g}=e,h=t?.sourceAssetOverride?{asset:t.sourceAssetOverride}:e.selectedAsset,y=t?.fundingTokenOverride??m,C=Tn(n,o.decimals),S=t?.actionAmountOverride??(e.feeOnlyAction?0n:C),b=!!e.feeOnlyAction&&(t?.fundingAmountOverride??0n)>0n,A=r||s||a;if(!A)throw new Error("Embedded wallet address is not available. Please sign in and try again.");const O={userAddress:e.recipient??A,executorAddress:A,beneficiary:e.recipient??A,outputRecipient:p?A:void 0,chainId:l,destinationToken:o.address,grossAmount:t?.fundingAmountOverride??C,netAmount:S,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:u,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},v=await c(S,O),x={chainId:l,calls:v},F=!!h&&h.asset._source!=="wallet",T=Td(h??null,i,l),B=F||T&&!!h&&!Bd(h.asset),M=(I,D)=>({token:pt(I),from:"escrow",to:A,amount:D}),k=(I,D,P)=>T?[qi(I,D,l),...P]:P;if(C===0n&&!b)return[x];const E=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup;if(E&&(!p||y?.toLowerCase()===E.token.toLowerCase())){if(p&&!w)throw new Error("The action quote is unavailable.");const I=p?{...x,calls:[...w.calls,...v]}:x,D=t?.fundingAmountOverride??(p?w?.amountInMax??0n:C),P=Wi(E,D,"in-place",{quoteOnly:!0});if(t?.onSourceAllocation?.(P),xs(kn(D,E.decimals,E.representativeDecimals),t),P.escrowWithdrawal===0n)return[I];const H={...I,tokenTransfers:[M(E.token,P.escrowWithdrawal)]};return Wr(H,d,{userAddress:A,destinationChainId:l,deliveryToken:E.token,deliveryAmount:P.escrowWithdrawal,deliveryRecipient:A,deliveryTransfers:Ur(H),sourceAsset:E.escrow},g)}if(h?.asset._source==="wallet"&&h.asset.chainId!==l&&!e.pivot)throw new Error("A current source-to-destination funding route is required");if(e.feeOnlyAction&&t?.fundingTokenOverride&&T)return xs(t.fundingAmountOverride??0n,t),[x];if(Rd(e)){if(p&&!w)throw new Error("Swap quote not available yet");const I=t?.fundingAmountOverride??(w?w.amountInMax:C),D=t?.sourceGasSkimOverride??0n,P=pn(I,e.pivot.destination.decimals,e.pivot.source.decimals,"ceil"),H=P+D,Q=e.sourceExactOutputSwap,G=Q&&(t?.reuseQuotedSourceSwap||Q.amountOut>=H)?Q:e.resolveSourceExactOutputSwap?await e.resolveSourceExactOutputSwap(H):null;if(!G)throw new Error("Swap quote not available yet");xs(G.amountInMax,t);const oe=h.asset;if(G.amountInMax>oe.balance)throw new Error(`Insufficient ${oe.symbol} for this payment. Required ${De(G.amountInMax,oe.decimals)} ${oe.symbol}; available ${De(oe.balance,oe.decimals)} ${oe.symbol}.`);const $=G.amountOut>=H?P:G.amountOut-D;if($<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");const V={chainId:e.pivot.source.chainId,calls:[...G.calls,vr(e.pivot.source.address,$,Bo(e.pivot.source.chainId)),...D>0n?[vr(e.pivot.source.address,D,yn)]:[]]},re={chainId:l,calls:[...w?.calls??[],...v],tokenTransfers:[M(e.pivot.destination.address,I),...x.tokenTransfers??[]]},X=await Wr(re,d,{userAddress:A,destinationChainId:l,deliveryToken:e.pivot.destination.address,deliveryAmount:I,deliveryRecipient:A,deliveryTransfers:Ur(re),sourceAsset:h.asset},g);return[V,...X]}if(h){const I=t?.fundingAmountOverride??w?.amountInMax??C;xs(Lr(I,await Do(h.asset,y??h.asset.address,l,o),h.asset.decimals),t)}if(p&&w){const I=y??so(h.asset,l)??h.asset.address,D=t?.fundingAmountOverride??w.amountInMax,P=B?[M(I,D)]:[],H={chainId:l,calls:[...w.calls,...v],tokenTransfers:[...P,...x.tokenTransfers??[]]};if(!B)return[H];const Q=await Wr(H,d,{userAddress:A,destinationChainId:l,deliveryToken:I,deliveryAmount:D,deliveryRecipient:A,deliveryTransfers:Ur(H),sourceAsset:h.asset},g);return k(I,D,Q)}if(B){const I=y??so(h.asset,l)??o.address;if(T&&!e.feeOnlyAction&&I.toLowerCase()===o.address.toLowerCase())return[x];const D=t?.fundingAmountOverride??C,P={...x,tokenTransfers:[M(I,D),...x.tokenTransfers??[]]},H=await Wr(P,d,{userAddress:A,destinationChainId:l,deliveryToken:I,deliveryAmount:D,deliveryRecipient:A,deliveryTransfers:Ur(P),sourceAsset:h.asset},g);return k(I,D,H)}return[x]}async function Hm(e,t){const{selectedAsset:n,embeddedWalletAddress:o,recipient:r,resolvedChainId:s,destinationToken:a,buildActionCalls:i,feeExecutionMode:l,buildSpicenetBatch:c,isPayMode:u,isNon7702:d,needsSwap:p,resolvedSwap:w,quoteAmountOut:m,resolvedTokenIn:g,requestTimestampMs:h}=e;if(!n?.asset||!o)return[];const y=r??o;if(!y)return[];const C=zi(e);let S=e.sourceSwap,b=Tn(n.amount,n.asset.decimals),A=C?e.sourceSwap.amountOutMinimum:null;if(C&&e.isFeeInclusiveInput&&(A=Fd(e.sourceSwap,t?.sourceGasSkimOverride??0n)),C&&!e.isFeeInclusiveInput&&(t?.fundingAmountOverride!==void 0||(t?.sourceGasSkimOverride??0n)>0n)){A=t?.fundingAmountOverride!==void 0?Lr(t.fundingAmountOverride,e.pivot.destination.decimals,e.pivot.source.decimals):e.sourceSwap.amountOutMinimum;const fe=A+(t?.sourceGasSkimOverride??0n);if(!e.resolveSourceExactOutputSwap)throw new Error("The source quote cannot include fees yet.");const xe=await e.resolveSourceExactOutputSwap(fe);if(xe.amountOut<fe)throw new Error("The source quote does not cover the accepted funding amount.");b=xe.amountInMax,S={...xe,amountOutMinimum:xe.amountOut}}const O=C?e.pivot.destination.address:g??so(n.asset,s)??a.address,v=C?e.pivot.destination.decimals:await Do(n.asset,O,s,a),x=t?.fundingAmountOverride??t?.actionAmountOverride??(C?pn(A,e.pivot.source.decimals,v,"floor"):kn(Tn(n.amount,n.asset.decimals),n.asset.decimals,v)),F=t?.fundingAmountOverride??x,T=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup,B=T&&!C?Wi(T,F,"escrow",{quoteOnly:!0}):void 0;B&&t?.onSourceAllocation?.(B);const M=B?.walletDeposit??t?.sourceFundingAmountOverride??Lr(x,v,n.asset.decimals);xs(B&&T?kn(F,T.decimals,T.representativeDecimals):C?b:M,t);const k=t?.deliveryAmountOverride??(l==="user-transfer"?F:t?.actionContextOverride?.netAmount??F),E=t?.withdrawalAmountOverride??k,I=t?.actionAmountOverride??t?.actionContextOverride?.netAmount??x;let D=w;if(p&&!u&&(t?.actionContextOverride?.netAmount!==void 0||C&&(t?.sourceGasSkimOverride??0n)>0n&&!t?.reuseQuotedSourceSwap)){if(!e.resolveInputSwap)throw new Error("Swap quote cannot be refreshed for the amount after fees.");const fe=t?.actionContextOverride?.netAmount??I;(!D||e.swapInputAmount!==fe)&&(D=await e.resolveInputSwap(fe,w??void 0))}D&&t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??I);const P=D?.amountOutMinimum??m,H={userAddress:y,executorAddress:o,beneficiary:y,outputRecipient:p?o:void 0,chainId:s,destinationToken:a.address,feeToken:l==="user-transfer"&&p&&g?g:a.address,grossAmount:F,netAmount:I,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:l,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},Q=()=>i(I,H),G=n.asset?._source==="wallet";if(!u&&G&&n.asset.chainId===s&&Bd(n.asset)){if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||P===null)throw new Error("Swap quote not available yet")}if(p&&D&&P){const fe=await i(t?.actionAmountOverride??P,{...H,netAmount:t?.actionAmountOverride??P}),{feeCall:xe,remainingCalls:te}=Od(fe,l,p,H.feeToken);return[{chainId:s,calls:[...xe?[xe]:[],...D.calls,...te]}]}return[{chainId:s,calls:await Q()}]}if(!u&&G&&n.asset.chainId!==s&&!C)throw new Error("A current source-to-destination funding route is required");const oe=n.asset._source!=="wallet",$=Td(n,d,s);if(!(oe||$||C))return[{chainId:s,calls:await Q()}];const V=C?Lm(S,e.pivot,A,t?.sourceGasSkimOverride??0n):B&&T?B.walletDeposit>0n?qi(T.token,B.walletDeposit,s):null:$?qi(g??pt(n.asset.address),M,s):null,re=(fe,xe)=>({token:pt(fe),from:"escrow",to:o,amount:xe});if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||P===null)throw new Error("Swap quote not available yet")}if(p&&D&&P&&g){const fe=await i(t?.actionAmountOverride??P,{...H,netAmount:t?.actionAmountOverride??P}),{feeCall:xe,remainingCalls:te}=Od(fe,l,p,H.feeToken),K={chainId:s,calls:[...xe?[xe]:[],...D.calls,...te],tokenTransfers:[re(g,k)]},le=await Wr(K,c,{userAddress:o,destinationChainId:s,deliveryToken:g,deliveryAmount:k,withdrawalAmount:E,deliveryRecipient:o,deliveryTransfers:Ur(K,E),sourceAsset:n.asset},h);return V?[V,...le]:le}const X=g??so(n.asset,s)??a.address,he={chainId:s,calls:await Q(),tokenTransfers:[re(X,k)]},be=await Wr(he,c,{userAddress:o,destinationChainId:s,deliveryToken:X,deliveryAmount:k,withdrawalAmount:E,deliveryRecipient:o,deliveryTransfers:Ur(he,E),sourceAsset:n.asset},h);return V?[V,...be]:be}async function Qm(e,t,n,o,r){let s=e;for(let a=0;a<4;a++){const i=await t(s),l=await o(i,n,s,r),c=pp(l);if(c===null||c>=e)return s;const u=s-c,d=e+u;if(d<=s)return s;s=d}return s}function Vm(e){return{...e,resolve:async(t,n,o)=>{const r=await e.resolve(t,n,o),s=r?.calls[0]?.to;return!r||!s||Fe(t.tokenIn)?r:{...r,calls:[{to:t.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[s,r.amountInMax]})},...r.calls]}}}}function vs(e){const t=(e?.customVenues??[]).map(o=>Zp(Vm(o)));async function n(o,r,s){const a=t.filter(c=>c.chainIds.includes(r));if(a.length===0)throw new Be("NO_SWAP_ROUTE",`No exact-output venue supports chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut});const i=(await Promise.allSettled(a.map(async c=>({venue:c,quote:await c.resolve(o,r,s)})))).filter(c=>c.status==="fulfilled").map(c=>c.value).filter(c=>c.quote!==null);if(i.length===0)throw new Be("NO_SWAP_ROUTE",`All aggregators failed for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut.toString()});const l=i.find(c=>c.venue.preferred);return l?l.quote:(i.sort((c,u)=>c.quote.amountIn<u.quote.amountIn?-1:c.quote.amountIn>u.quote.amountIn?1:0),i[0].quote)}return{getQuote:n,venues:t}}function Md(e,t,n){if(e._source==="wallet")return e.chainId===t?e.address:null;const o=Br(e,t);return o.find(r=>r.toLowerCase()===n.toLowerCase())??o[0]??null}async function Nd(e,t,n,o){const r=Io(o),s=await qe.estimateBatchGas({user:t,outputToken:n,requireSimulation:!0,includePlatformFee:!0,signal:e.signal,chainBatches:o.map((a,i)=>({...a,hash:r[i].hash}))});if(!s.simulationVerified||s.gasQuoteSource!=="estimated"||s.platformFee===void 0||s.gasFee<=0n)throw new Error("Fee funding requires verified gas and platform pricing");return s}async function ks(e,t){const n=e.selectedAsset?.asset,o=!t&&!!e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==e.destinationToken.address.toLowerCase(),r=!!t||o,s=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!s||!r&&(!n||n._source!=="spice"&&!(n._source==="wallet"&&n.chainId===e.resolvedChainId)))throw new Error("A local embedded or Spice balance is required for fee conversion");const a=t?t.token:o?e.actionProceeds.token:Md(n,e.resolvedChainId,e.destinationToken.address);if(!a)throw new Error("This receipt has no registered destination withdrawal token");const i=Xt(a,e.resolvedChainId)?.decimals??(Fe(a)?18:r?await Ct(e.resolvedChainId).readContract({address:a,abi:lt,functionName:"decimals"}):n?._source==="wallet"?n.decimals:void 0);if(i===void 0)throw new Error("Fee funding token metadata is unavailable");const l=e.destinationToken.address;if(e.actionProceeds&&!o&&e.actionProceeds.token.toLowerCase()!==l.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const c=t?t.amount:e.actionProceeds?await e.actionProceeds.resolve(e.signal):0n;if(c<0n||e.signal?.aborted)throw new Error("Action proceeds quote was cancelled or invalid");const u=vs({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[e.resolvedChainId],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...hr(e.liquidityVenues).output]}),d=w=>Nd(e,s,l,w);let p=await d(await e.buildPayChainBatches({fundingAmountOverride:0n}));for(let w=0;w<8;w++){const m=p.gasFee+p.platformFee,g=r?0n:c<m?c:m,h=m-g,y=h>0n?(h*110n+99n)/100n+2n:0n,C=y>0n?await u.getQuote({tokenIn:a,tokenOut:l,amountOut:y,maxSlippage:e.maxSlippage},e.resolvedChainId,s):null;if(e.signal?.aborted)throw new Error("Fee conversion quote was cancelled");if(C&&(C.amountOut!==y||C.amountInMax<=0n||C.amountInMax<C.amountIn||!C.calls.length))throw new Error("Invalid exact-output fee conversion quote");const S=C?.amountInMax??0n,b=r?0n:Lr(S,i,n.decimals);if(r&&S>c)throw new xr(S,c);if(!r&&b>n.balance)throw new xr(b,n.balance);let A,O=_o(await e.buildPayChainBatches({fundingAmountOverride:r?0n:S,...r?{}:{fundingTokenOverride:a},...t?{actionAmountOverride:t.amount-S}:{},onActionCalls:x=>{A=x}}),s,void 0,{expiresAt:e.expiresAt});if(C){const x=O.length-1;O=O.map((F,T)=>T===x?{...F,calls:[...F.calls,...C.calls]}:F)}O=Li(O,s,l,p.gasFee,p.platformFee);const v=await d(O);if(v.gasFee<=p.gasFee&&(p.gasFee-v.gasFee)*100n<=v.gasFee*15n&&v.platformFee===p.platformFee){const x={tokenIn:a,tokenOut:l,amountInMax:S,amountOut:y,sourceAmountMax:b,...o?{fromProceeds:!0}:{},...t?{fromInput:!0}:{}};return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,grossAmount:r?0n:y,netAmount:0n,gasFee:p.gasFee,spicenetFee:p.platformFee,totalFee:m,gasQuoteSource:"estimated"},grossFundingAmount:r?0n:S,proceedsAvailable:c,proceedsUsed:r?m:g,fundingConversion:x,fundingBatches:O,sourceSpendCap:b,destinationAmount:0n,actionDefinition:A}}p=v}throw new Error("Fee conversion pricing did not converge")}const ya=["input","proceeds","balance"];function jm(e){if(e.reserve&&e.reserve.amount<0n)throw new Error("Fee funding reserve cannot be negative");if(e.reserves?.some(i=>i.amount<0n))throw new Error("Fee funding reserve cannot be negative");const t=i=>ee(i,e.feeToken),n=(i,l)=>Number(i.swap)-Number(l.swap),o={input:[],proceeds:[],balance:[]};for(const i of e.inputs??[])i.amount>0n&&o.input.push({kind:"input",...i,swap:!t(i.token)});o.input.sort(n),e.proceeds&&e.proceeds.amount>0n&&o.proceeds.push({kind:"proceeds",...e.proceeds,swap:!t(e.proceeds.token)});const r=e.balances.filter(i=>i._source==="wallet"&&i.chainId===e.chainId&&i.location!=="external"),s=e.balances.filter(i=>i._source==="spice"),a=i=>{const l=[];for(const c of i){const u=[...e.reserves??[],...e.reserve?[e.reserve]:[]].filter(m=>ve(c)===ve(m.asset)).reduce((m,g)=>g.amount>m?g.amount:m,0n),d=c.balance-u;if(d<=0n)continue;const p=u>0n?{...c,balance:d,balanceFormatted:Number(De(d,c.decimals)),balanceUsd:c.balanceUsd*Number(d)/Number(c.balance)}:c,w=Md(p,e.chainId,e.feeToken);w&&(e.inputs?.some(m=>ee(m.token,w)&&![...e.reserves??[],...e.reserve?[e.reserve]:[]].some(g=>ee(g.asset.address,m.token)))||l.push({kind:"balance",token:w,amount:p.balance,asset:p,...u>0n?{reservedAmount:u}:{},swap:!t(w)}))}return l.sort((c,u)=>n(c,u)||u.asset.balanceUsd-c.asset.balanceUsd)};return o.balance=[...a(r),...a(s)],(e.order??ya).flatMap(i=>o[i])}function Gm(e){return e instanceof xr||e instanceof Be&&e.code==="NO_SWAP_ROUTE"}async function Hi(e,t){const n=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!n||!e.ready||!e.authenticated)return null;const o=e.destinationToken.address;let r;const s=()=>r??(r=(async()=>{const c=await Nd(e,n,o,await e.buildPayChainBatches({fundingAmountOverride:0n}));return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:c.gasFee,spicenetFee:c.platformFee,bridgeFee:0n,totalFee:c.gasFee+c.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}})()),a=(c,u)=>e.buildPayChainBatches({...u,fundingAmountOverride:c}),i=(c,u)=>Sd({proceeds:{token:o,resolve:async()=>c},owner:n,token:o,signal:e.signal,baseline:s,buildBatches:a,fundShortfall:!1,expiresAt:e.expiresAt,actionAmountFor:u}),l=async c=>{if(c.kind==="input")return c.swap?ks({...e,actionProceeds:void 0},c):i(c.amount,m=>c.amount-m);if(c.kind==="proceeds"){const m={...e.actionProceeds,resolve:async()=>c.amount};return c.swap?ks({...e,actionProceeds:m}):i(c.amount)}const u=c.asset;if(u._source==="wallet"&&!c.swap)return i(u.balance);let d=!c.swap&&u._source==="spice"?e.getCombinedSourceGroup?.(u):void 0;if(d){const m=[ve(d.wallet),ve(d.escrow)],g=[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[]].filter(h=>m.includes(ve(h.asset)));g.length&&(d=e.getCombinedSourceGroup?.(u,g))}const p={...e,selectedAsset:{asset:u,amount:"0"},combinedSourceGroup:d,resolvedTokenIn:c.token,actionInput:void 0,actionProceeds:void 0,buildPayChainBatches:m=>e.buildPayChainBatches({...m,sourceAssetOverride:u,combinedSourceGroupOverride:d??null,fundingTokenOverride:m?.fundingTokenOverride??c.token})};if(c.swap)return ks(p);const w=await t(p);if(w&&(w.sourceSpendCap??0n)>(d?.availableBalance??u.balance))throw new xr(w.sourceSpendCap,d?.availableBalance??u.balance);return w};for(const c of e.feeFunding??ya){const u=c==="proceeds"&&e.actionProceeds?{token:e.actionProceeds.token,amount:await e.actionProceeds.resolve(e.signal)}:void 0;if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");if(u&&u.amount<0n)throw new Error("Action proceeds cannot be negative");const d=jm({feeToken:o,chainId:e.resolvedChainId,inputs:e.actionInput,proceeds:u,balances:e.feeFundingBalances??[],order:[c],reserve:e.feeFundingReserve,reserves:e.feeFundingReserves});for(const p of d)try{const w=await l(p);if(!w)continue;const{swap:m,...g}=p;return{...w,fundingSource:g}}catch(w){if(e.signal?.aborted||!Gm(w))throw w}}throw new Error(`No available balance can cover this action's ${e.destinationToken.symbol} execution cost`)}async function Pd(e,t,n,o=!1){const r=e.selectedAsset,s=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!r||!s||!e.ready||!e.authenticated||e.isQuoting)return null;if(!e.combinedSourceGroup&&r.asset._source!=="wallet"||r.asset.chainId!==e.resolvedChainId||!oa(r.asset)&&r.asset.owner&&!ee(r.asset.owner,s))throw new Error("Funded fee hierarchy requires principal on the action chain in the executing wallet.");if(o&&(e.isPayMode||!e.isFeeInclusiveInput||t.recipient&&!ee(t.recipient,s)))throw new Error("Output-funded actions require an input-inclusive amount left in the executing wallet.");if(e.isPayMode&&e.needsSwap&&!e.exactOutputSwap)return null;const a=e.isPayMode?Tn(e.currentPaymentAmount,e.destinationToken.decimals):void 0;if(e.isPayMode&&e.needsSwap&&e.exactOutputSwap.amountOut!==a)throw new Error("Wait for the payment quote for the current amount.");const i=fr(e.resolvedChainId).find(b=>b.equivalenceGroup==="USDC");if(!i)throw new Error("Configure the execution fee token for this chain.");const l={...i,address:i.address,chainId:e.resolvedChainId},c=a!==void 0?e.needsSwap?e.exactOutputSwap.amountInMax:a:Tn(r.amount,r.asset.decimals);if(c<=0n||c>(e.combinedSourceGroup?.availableBalance??r.asset.balance))throw new Error("Enter an amount within the available balance.");if(!e.isPayMode&&e.needsSwap&&t.swapInputAmount!=null&&t.swapInputAmount!==c)throw new Error("Wait for the action quote for the current amount.");const u=a??(e.needsSwap?t.resolvedSwap?.amountOutMinimum??0n:c);let d=t.resolvedSwap??void 0,p=c,w=u;const m=e.combinedSourceGroup?Wi(e.combinedSourceGroup,c,"in-place"):void 0,g={...e,feeOnlyAction:!0,selectedAsset:null,isPayMode:!0,isFeeInclusiveInput:!1,parsedAmount:0,currentPaymentAmount:"0",destinationToken:l,resolvedTokenIn:l.address,executionTokenAddress:l.address,needsSwap:!1,resolvedSwap:null,isDirect:!0,actionInput:!e.isPayMode&&e.isFeeInclusiveInput?[{token:r.asset.address,amount:c}]:void 0,actionProceeds:o?{token:e.destinationToken.address,resolve:async()=>u>0n?u-1n:0n}:e.actionProceeds,feeFundingBalances:e.feeFundingBalances?.filter(b=>!b.balanceError&&!(e.feeFundingReserve&&ve(e.feeFundingReserve.asset)!==ve(r.asset)&&ve(b)===ve(e.feeFundingReserve.asset))&&!oa(b)&&(!b.owner||ee(b.owner,s))),feeFundingReserves:m?.positions.map(b=>({asset:b.asset,amount:b.amount})),feeFundingReserve:m?void 0:{asset:r.asset,amount:e.feeFundingReserve&&ve(e.feeFundingReserve.asset)===ve(r.asset)&&e.feeFundingReserve.amount>c?e.feeFundingReserve.amount:c},buildPayChainBatches:async b=>{const A=b?.actionAmountOverride??c;if(A<=0n)throw new xr(c+1n,c);const O=!e.isPayMode&&e.needsSwap?A===c?t.resolvedSwap:await t.resolveInputSwap?.(A,t.resolvedSwap??void 0):null,v=e.needsSwap?e.isPayMode?e.exactOutputSwap:O:null;if(e.needsSwap&&!v)throw new Error("The action quote is unavailable.");d=O??void 0,p=A,w=a??d?.amountOutMinimum??A;const x={userAddress:t.recipient??s,executorAddress:s,beneficiary:t.recipient??s,outputRecipient:s,chainId:e.resolvedChainId,destinationToken:e.destinationToken.address,grossAmount:u,netAmount:w,feeToken:l.address,feeExecutionMode:"backend-transfer"},F=await t.buildActionCalls(w,x),T={amount:w,context:x,calls:F},B=[...v?.calls??[],...F];let M=await qr({...t,selectedAsset:null,combinedSourceGroup:void 0,feeOnlyAction:!0,isPayMode:!0,isFeeInclusiveInput:!1,currentPaymentAmount:"0",destinationToken:l,resolvedTokenIn:l.address,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,feeExecutionMode:"backend-transfer",buildActionCalls:()=>B},{...b,onActionCalls:()=>b?.onActionCalls?.(T)});if(m?.escrowWithdrawal){const k=[...M].reverse().findIndex(I=>I.domain!=="spicenet"&&I.chainId===e.resolvedChainId),E=k<0?-1:M.length-k-1;if(E<0)throw new Error("The action quote is unavailable.");M[E]={...M[E],tokenTransfers:[...M[E].tokenTransfers??[],{token:m.token,from:"escrow",to:s,amount:m.escrowWithdrawal}]},M=_o(M,s,void 0,{payoutAlreadyGross:!0,requestTimestampMs:t.requestTimestampMs,expiresAt:e.expiresAt})}return M}},h=await Hi(g,n);if(!h)return null;if(o&&h.fundingSource?.kind==="proceeds"&&(w-=h.fundingConversion?.amountInMax??h.proceedsUsed??0n),w<=0n)throw new Error("Not enough action output remains after execution costs.");let y=m;const C=y&&h.sourceAllocation&&y.positions.every(b=>h.sourceAllocation.positions.some(A=>A.positionId===b.positionId)),S=h.sourceAllocation&&!C?h.sourceAllocation:void 0;if(y){const b=h.sourceAllocation?.positions??[],A=h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ve(h.fundingSource.asset)===ve(e.combinedSourceGroup.wallet)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n,O=b.find(x=>x.positionId===ve(e.combinedSourceGroup.wallet))?.amount??A,v=b.find(x=>x.positionId===ve(e.combinedSourceGroup.escrow))?.amount??(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ve(h.fundingSource.asset)===ve(e.combinedSourceGroup.escrow)?h.sourceSpendCap??0n:0n);y={...y,grossAmount:c+O+v,walletInPlace:y.walletInPlace+O,escrowWithdrawal:y.escrowWithdrawal+v,positions:y.positions.map(x=>({...x,amount:x.amount+(x.asset.location==="embedded"?O:v),reservedAmount:0n}))}}return{...h,fundedFeeToken:l,batches:h.fundingBatches??h.batches,destinationSwap:d,swapInputAmount:p,destinationAmount:w,sourceAllocation:y,feeSourceAllocation:S,sourceSpendCap:y?.grossAmount??c+(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&ve(h.fundingSource.asset)===ve(r.asset)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n)}}async function Km(e,t){const n=e.externalGasRecipient,o=e.embeddedWalletAddress||e.providerEmbeddedAddress,r=e.resolvedChainId,s=t.batches,a=s.map(y=>y.chainId).lastIndexOf(r);if(a<0)throw new Error("Destination gas quote is unavailable.");const[i,l]=await Promise.all([qe.estimateBatchGas({user:o,outputToken:jt,chainBatches:s,stepIndex:a,signal:e.signal}),Ct(r).getBalance({address:n})]);if(e.signal?.aborted)throw new Error("Fee estimation cancelled");if(i.gasQuoteSource!=="estimated"||i.gasFee<=0n)throw new Error("A native gas quote is required for the external wallet.");const c=s[a].calls.reduce((y,C)=>ee(C.to,n)&&C.data==="0x"?y+C.value:y,0n),u=i.gasFee,d=l+c<u?await e.externalGasCalls?.(t)??[]:[],p=d.reduce((y,C)=>y+C.value,0n),w=(3n+BigInt(d.length))*u+p,m=l+c<u?w-l-c:0n,g={chainId:r,recipient:n,balance:l,incoming:c,transactionGas:u,nativeAmount:m,currentTransactions:d.length,currentValue:p,feeAmount:0n,calls:[]};if(m===0n)return g;const h=e.executionTokenAddress;if(Fe(h))g.feeAmount=m;else{const y=await vs({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[r],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...hr(e.liquidityVenues).output]}).getQuote({tokenIn:h,tokenOut:jt,amountOut:m,maxSlippage:e.maxSlippage},r,o);if(y.amountOut!==m||y.amountInMax<=0n||!y.calls.length)throw new Error("The external gas purchase could not be quoted.");if(e.signal?.aborted)throw new Error("Fee estimation cancelled");g.feeAmount=y.amountInMax,g.calls=y.calls}return g.calls=[...g.calls,{to:n,value:m,data:"0x"}],g}function ba(e,t){if(!t?.nativeAmount)return e;const n=e.map(o=>o.chainId).lastIndexOf(t.chainId);if(n<0)throw new Error("The gas reserve destination changed.");return e.map((o,r)=>r===n?{...o,calls:[...o.calls,...t.calls]}:o)}function Wd(e,t){if(e&&e.nativeAmount>0n){const n=t.filter(r=>r.chainId===e.chainId).slice(-1)[0],o=n?.calls.slice(-e.calls.length);if(!o||o.length!==e.calls.length||o.some((r,s)=>{const a=e.calls[s];return!ee(r.to,a.to)||r.value!==a.value||r.data!==a.data}))throw new Error("The external gas purchase changed. Refresh the quote before submitting.");if(n.calls.slice(0,-e.calls.length).reduce((r,s)=>ee(s.to,e.recipient)&&s.data==="0x"?r+s.value:r,0n)<e.incoming)throw new Error("The native result changed. Refresh the gas reserve quote before submitting.")}}async function Ud(e,t){if(!e)return;t&&Wd(e,t);const n=await Ct(e.chainId).getBalance({address:e.recipient});if(e.nativeAmount>0n?n!==e.balance:n+e.incoming<e.transactionGas)throw new Error("The external wallet gas balance changed. Refresh the quote before submitting.")}async function Ym(e){const t=e.selectedAsset.asset;if(t.chainId!==e.destinationToken.chainId||!ee(pt(t.address),pt(e.destinationToken.address)))throw new Error("Direct execution requires the destination token on its own chain.");if(t.decimals!==e.destinationToken.decimals)throw new Error("Source and destination token decimals do not match.");const n=Tn(e.paymentAmount??e.selectedAsset.amount,t.decimals);if(n<=0n)throw new Error("Enter a positive action amount.");const o={userAddress:e.beneficiary??e.account,executorAddress:e.account,beneficiary:e.beneficiary??e.account,chainId:e.destinationToken.chainId,destinationToken:e.destinationToken.address,feeToken:t.address,grossAmount:n,netAmount:n,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},r=await e.buildActionCalls(n,o);if(!r.length)throw new Error("No action calls configured.");if(Fe(t.address)&&r.reduce((s,a)=>s+a.value,0n)>n)throw new Error("The native action exceeds the accepted source amount.");return{actionDefinition:{amount:n,context:o,calls:r},actionContext:o,batches:[{chainId:o.chainId,calls:r}],fundingAmount:n,sourceSpendCap:n,destinationAmount:n,feeEstimate:null,preview:{symbol:t.symbol,decimals:t.decimals,grossAmount:n,netAmount:n,totalFee:0n,gasFee:0n,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"static_zero"}}}async function Ld(e){const[t]=await e.buildSupplyChainBatches({sourceGasSkimOverride:1n,reuseQuotedSourceSwap:!0});if(!t)throw new Error("Swap quote not available yet");const{gasFee:n}=await qe.estimateBatchGas({user:e.user,outputToken:e.pivot.source.address,stepIndex:0,chainBatches:[t],signal:e.signal});return n}const Qi=(e,t)=>(e+t-1n)/t;function xa(e,t,n=0n){return e.intents.length===0?t:{...e,intents:e.intents.map(o=>({...o,batches:o.batches.map(r=>{const s=t.intents.find(l=>l.intentIndex===o.intentIndex)?.batches.find(l=>l.chainId===r.chainId);if(!s&&n===0n)return r;const a={...r.feeBreakdown};let i=0n;for(const l of["gasFee","bridgeFee"]){const c=BigInt(a[l]??"0"),u=BigInt(s?.feeBreakdown[l]??"0"),d=c>u?c+Qi(c*n,10000n):u;d>c&&(a[l]=d.toString(),i+=d-c)}return{...r,feeBreakdown:a,totalDebit:(BigInt(r.totalDebit)+i).toString()}})}))}}async function qd(e){if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");if(!qe.canValidateActionFees())throw new Error("This withdrawal requires signed fee validation. Refresh the quote before submitting.");const[t,n]=await Promise.all([e.signedEstimate??e.estimate(e.batches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"user-transfer",validateFeeCalls:!0}),e.estimate(e.pricingBatches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"backend-transfer",validateFeeCalls:!1})]);if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");const o=r=>r.intents.flatMap(s=>s.batches.map(a=>`${s.intentIndex}:${a.chainId}`)).sort().join(",");if(!o(n)||o(n)!==o(t))throw new Error("Unable to validate the signed withdrawal fees.");return{intents:n.intents.map(r=>({...r,batches:r.batches.map(s=>{const a=t.intents.find(c=>c.intentIndex===r.intentIndex)?.batches.find(c=>c.chainId===s.chainId);if(!a)throw new Error("Unable to validate the signed withdrawal fees.");const i={...s.feeBreakdown};let l=0n;for(const c of["gasFee","bridgeFee"]){const u=BigInt(i[c]??"0"),d=BigInt(a.feeBreakdown[c]??"0");d>u&&(i[c]=d.toString(),l+=d-u)}return{...s,feeBreakdown:i,totalDebit:(BigInt(s.totalDebit)+l).toString()}})}))}}function Zm(e,t){const n=e.spicenetFee+(e.bridgeFee??0n);return e.grossAmount<=n?t+e.gasFee+n:Qi((t+e.gasFee)*e.grossAmount,e.grossAmount-n)+2n}async function zd(e){const{requiredNetFunding:t}=e;if(e.feeOnlyAction){const c=e.executionOptions?.userOverride;if(!c||t!==0n)throw new Error("Fee-only estimates require a zero action amount and its embedded executor");let u=1n,d;for(let p=0;p<8;p++){const w=_o(await e.buildBatches(u),c,d,{payoutAlreadyGross:!0,expiresAt:e.expiresAt}),m=await e.estimate(Pr(w,e.tokenDescriptor.chainId,e.fundingToken),e.fundingToken,u,{...e.executionOptions,feeExecutionMode:"backend-transfer"}),g=fo(m,e.tokenDescriptor);if(!g)throw new Error("The fee service did not return a fee quote for this action");const h=g.gasFee+g.spicenetFee+(g.bridgeFee??0n);if(d&&h+2n<=u)return{preview:{...g,grossAmount:u,netAmount:0n},feeEstimate:m,grossFundingAmount:u};u=(h*110n+99n)/100n+2n,d=m}throw new Error("Fee-only funding did not converge; refresh the fee quote before retrying")}const n=await e.buildBatches(t),o=await e.estimate(n,e.fundingToken,t,e.executionOptions),r=fo(o,e.tokenDescriptor);if(!r)return{preview:$r(n,e.tokenDescriptor,t),feeEstimate:o,grossFundingAmount:t};const s=Zm(r,t),a=c=>r.grossAmount>0n?Qi(c*s,r.grossAmount):c,i=a(r.spicenetFee),l=a(r.bridgeFee??0n);return{preview:{...r,grossAmount:s,netAmount:t,spicenetFee:i,bridgeFee:l,totalFee:r.gasFee+i+l},feeEstimate:o,grossFundingAmount:s}}async function Hd(e){if(e.balance<=0n)throw new Error("No spendable balance remains after source gas.");let t=e.balance;for(let n=0;n<8;n++){const o=await e.planForAmount(t);if(!o||o.sourceSpendCap===void 0||o.sourceSpendCap<=0n)throw new Error("Max requires a current route and fee estimate.");if(o.sourceSpendCap<=e.balance)return es(t,e.decimals);const r=t*e.balance/o.sourceSpendCap;if(r<=0n||r>=t)throw new Error("The balance cannot cover this action and its fees.");t=r}throw new Error("Max fees did not converge. Refresh the quote before retrying.")}async function Xm(e){if(e.isPayMode||e.needsSwap||e.isQuoting||e.pivot||!e.embeddedWalletAddress)return null;const t=e.asset,n=Xt(e.executionTokenAddress,t.chainId);return!n||t.balance<=0n?null:Hd({balance:t.balance,decimals:t.decimals,planForAmount:o=>jo({selectedAsset:{asset:t,amount:es(o,t.decimals)},isPayMode:!1,isNon7702:!1,isFeeInclusiveInput:!1,parsedAmount:Number(es(o,t.decimals)),currentPaymentAmount:"0",destinationToken:{...n,address:e.executionTokenAddress,chainId:t.chainId},resolvedChainId:t.chainId,resolvedTokenIn:e.executionTokenAddress,executionTokenAddress:e.executionTokenAddress,embeddedWalletAddress:e.embeddedWalletAddress,providerEmbeddedAddress:e.embeddedWalletAddress,address:e.embeddedWalletAddress,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isSourceDestToken:!0,needsSwap:!1,isQuoting:!1,resolvedSwap:null,exactOutputSwap:null,buildPayChainBatches:async()=>[],buildSupplyChainBatches:r=>e.buildSupplyChainBatches({...r,actionAmountOverride:o}),estimate:e.estimate,feeExecutionMode:e.feeExecutionMode})})}async function jo(e){const t=await Qd(e);if(!e.externalGasRecipient||!t?.batches?.length)return t;const n=await Km(e,t);if(!n.nativeAmount)return{...t,externalGasReserve:n};const o=await Qd({...e,externalGasReserve:n,initialFeeEstimate:void 0,buildPayChainBatches:async r=>ba(await e.buildPayChainBatches(r),n),buildSupplyChainBatches:async r=>ba(await e.buildSupplyChainBatches({...r,...e.feeExecutionMode!=="user-transfer"&&r?.actionContextOverride?.netAmount!==void 0?{deliveryAmountOverride:r.actionContextOverride.netAmount+n.feeAmount}:{}}),n)});return o?(Wd(n,o.batches??[]),{...o,externalGasReserve:n,preview:{...o.preview,gasFee:o.preview.gasFee+n.feeAmount,totalFee:(o.preview.totalFee??0n)+(e.isPayMode?n.feeAmount:0n),...e.isPayMode?{netAmount:o.preview.netAmount-n.feeAmount}:{}}}):null}async function Qd(e){const{signal:t,selectedAsset:n,isPayMode:o,isFeeInclusiveInput:r=!1,parsedAmount:s,needsSwap:a,exactOutputSwap:i,isNon7702:l,currentPaymentAmount:c,destinationToken:u,feeExecutionMode:d,resolvedTokenIn:p,embeddedWalletAddress:w,providerEmbeddedAddress:m,resolvedChainId:g,isConnected:h,address:y,ready:C,authenticated:S,isDirect:b,resolvedSwap:A,sourceSwap:O,pivot:v,isQuoting:x,executionTokenAddress:F,buildPayChainBatches:T,buildSupplyChainBatches:B,estimate:M}=e;if(e.feeOnlyAction&&!n&&e.feeFunding?.length!==0)return Hi(e,jo);if(e.feeOnlyAction&&e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==u.address.toLowerCase()||e.feeOnlyAction&&n&&(n.asset._source==="spice"||n.asset._source==="wallet"&&n.asset.chainId===g)&&(p?p.toLowerCase()!==u.address.toLowerCase():n.asset.receiptTokenId||n.asset.chainTokens))return ks(e);if(e.actionProceeds&&e.feeOnlyAction){const re=w||m;if(!re||!C||!S)return null;if(p&&p.toLowerCase()!==u.address.toLowerCase())throw new Error("Action proceeds require a matching fee-token source");return Sd({proceeds:e.actionProceeds,owner:re,token:u.address,signal:t,buildBatches:(X,he)=>T({...he,fundingAmountOverride:X}),baseline:()=>jo({...e,actionProceeds:void 0,selectedAsset:n??{amount:"0",asset:{...u,name:u.symbol,balance:0n,balanceFormatted:0,balanceUsd:0,isNative:!1,_source:"spice"}}})})}if(!n?.asset)return null;if(o){if(!w&&!m||s<=0&&!e.feeOnlyAction||a&&!i&&!e.feeOnlyAction)return null;const re=Tn(c,u.decimals),X=p||so(n.asset,g)||n.asset.address||u.address,he={chainId:g,tokenAddress:X,symbol:Xt(X,g)?.symbol??n.asset.symbol,decimals:await Do(n.asset,X,g,u)};if(!e.quoteOnly&&(!h||!y||!C||!S))return null;const be=w||m||y,fe=(a?i?.amountInMax??0n:re)+(e.externalGasReserve?.feeAmount??0n);if(fe===0n&&!e.feeOnlyAction)return null;const xe=v?await Ld({user:be,pivot:v,buildSupplyChainBatches:ne=>T({...ne,sourceGasSkimOverride:1n}),signal:t}):0n,te=Date.now();let K=await zd({requiredNetFunding:fe,expiresAt:e.expiresAt,feeOnlyAction:e.feeOnlyAction,buildBatches:ne=>T({fundingAmountOverride:ne,sourceGasSkimOverride:xe}).then(de=>Ui(qm(de),be,void 0,{requestTimestampMs:te,expiresAt:e.expiresAt})),fundingToken:X,estimate:M,executionOptions:{userOverride:be,useCustomTransfers:!0,feeExecutionMode:d,signal:t},tokenDescriptor:he});if(!K.preview)return null;let le=0n,N,Le,Te=[],z=!1;for(let ne=0;ne<8;ne++){if(t?.aborted)throw new Error("Fee estimation cancelled");if(Te=_o(await T({fundingAmountOverride:K.grossFundingAmount,sourceGasSkimOverride:xe,onSourceSpend:Me=>{le=Me},onSourceAllocation:Me=>{N=Me},onActionCalls:Me=>{Le=Me}}),be,K.feeEstimate,{payoutAlreadyGross:!0,requestTimestampMs:te,expiresAt:e.expiresAt}),N){const Me=fo(K.feeEstimate,he);if(!Me)throw new Error("The action quote is unavailable.");const Ne=ma(g,X,[{recipient:yn,amount:Me.gasFee+(Me.bridgeFee??0n)},{recipient:Qn,amount:Me.spicenetFee}]).calls;Te=Pr(Te,g,X);const We=[...Te].reverse().findIndex(Ye=>Ye.domain!=="spicenet"&&Ye.chainId===g),we=We<0?-1:Te.length-We-1;if(we<0)throw new Error("The action quote is unavailable.");Te[we]={...Te[we],calls:[...Ne,...Te[we].calls]}}if(e.feeOnlyAction){z=!0;break}const de=await M(Te,X,K.grossFundingAmount,{userOverride:be,useCustomTransfers:!0,feeExecutionMode:d,signal:t}),J=d==="user-transfer"?xa(de,K.feeEstimate):de,ie=fo(J,he)??$r(Te,he,fe);if(!ie)return null;const ze=fe+ie.gasFee+ie.spicenetFee+(ie.bridgeFee??0n),Se=fo(K.feeEstimate,he),Ce=(Se?.gasFee??0n)===ie.gasFee&&(Se?.spicenetFee??0n)===ie.spicenetFee&&(Se?.bridgeFee??0n)===(ie.bridgeFee??0n),et=K.grossFundingAmount===ze&&Ce;if(K={feeEstimate:J,grossFundingAmount:ze,preview:{...ie,grossAmount:ze,netAmount:fe}},et){z=!0;break}}if(!z)throw new Error("Payment fees did not converge. Refresh the quote before submitting.");if(!K.preview)return null;const q=v?pn(xe,v.source.decimals,v.destination.decimals,"ceil"):0n;return{...K,batches:Te,sourceSpendCap:le,sourceAllocation:N,actionDefinition:Le,destinationAmount:re,preview:{...K.preview,grossAmount:K.preview.grossAmount+q,gasFee:K.preview.gasFee+q,totalFee:(K.preview.totalFee??0n)+q},...v?{sourceGasSkim:xe}:{}}}if(s<=0||!w)return null;const k=w||m;if(v&&!O)return null;const E=zi({isPayMode:o,selectedAsset:n,resolvedChainId:g,sourceSwap:O,pivot:v});if(!(!o&&!l&&n.asset?._source==="wallet"&&n.asset.chainId!==g)&&!b&&!A&&!x||x)return null;let I=await B();if(I.length===0)return null;const D={chainId:g,tokenAddress:F,symbol:Xt(F,g)?.symbol??(n.asset.chainId===g&&ee(n.asset.address,F)?n.asset.symbol:u.symbol),decimals:await Do(n.asset,F,g,u)},P=E&&e.initialFeeEstimate!==void 0&&e.initialSourceGasSkim!==void 0,H=E?P?e.initialSourceGasSkim:await Ld({user:k,pivot:v,buildSupplyChainBatches:B,signal:t}):0n;E&&H>0n&&(I=await B({sourceGasSkimOverride:H}));const Q=E?pn(r?Fd(O,H):O.amountOutMinimum,v.source.decimals,v.destination.decimals,"floor"):pn(Tn(n.amount,n.asset.decimals),n.asset.decimals,D.decimals,"floor"),G=e.quotedInclusivePlatformFee&&d==="user-transfer",oe={userOverride:k,useCustomTransfers:!0,feeExecutionMode:d,signal:t,...E?{skipUserFundingPreflight:!0}:{}};let $=Q,V=e.initialFeeEstimate??await M(I,F,$,G?{...oe,feeExecutionMode:"backend-transfer"}:oe);G&&!e.initialFeeEstimate&&(V=xa(V,{intents:[]},100n));for(let re=0;re<8;re++){if(t?.aborted)throw new Error("Fee estimation cancelled");const X=fo(V,D)??$r(I,D,$);if(!X)return null;const he=Vi(X,Q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);$=he.grossAmount;let be,fe,xe,te,K,le;const N=await B({fundingAmountOverride:$,sourceGasSkimOverride:H,actionContextOverride:he,onDestinationAmount:J=>{be=J},onSourceSpend:J=>{fe=J},onSourceAllocation:J=>{xe=J},onSwap:(J,ie)=>{te=J,K=ie},onActionCalls:J=>{le=J}}),Le=G?Pr(await B({fundingAmountOverride:$,sourceGasSkimOverride:H,actionContextOverride:he,deliveryAmountOverride:he.netAmount,withdrawalAmountOverride:he.netAmount}).then(J=>{if(J.length!==N.length)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return J.map((ie,ze)=>{const Se=N[ze];if(!Se||Se.chainId!==ie.chainId||Se.domain!==ie.domain)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return ie.domain==="spicenet"?ie:{...ie,calls:Se.calls}})}),g,F):void 0,[Te,z]=await Promise.all([Le?qd({estimate:M,batches:N,pricingBatches:Le,tokenAddress:F,fundingAmount:$,options:oe}):M(N,F,$,{...oe,validateFeeCalls:e.initialFeeEstimate!==void 0}),P?qe.estimateBatchGas({user:k,outputToken:v.source.address,stepIndex:0,chainBatches:[N[0]],signal:t}):void 0]);if(z&&!(G?z.gasFee<=H:d==="user-transfer"?_r(H,z.gasFee,e.feeToleranceBps):z.gasFee===H))throw new Error("Source gas changed. Prepare a fresh fee quote.");const q=d==="user-transfer"?xa(Te,V,G?100n:0n):Te,ne=fo(q,D)??$r(N,D,$);if(!ne)return null;const de=Vi(ne,Q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);if(JSON.stringify(he,(J,ie)=>typeof ie=="bigint"?ie.toString():ie)===JSON.stringify(de,(J,ie)=>typeof ie=="bigint"?ie.toString():ie)||!G&&d==="user-transfer"&&Ha(he.feeBreakdown,de.feeBreakdown,e.feeToleranceBps)){const J=d==="user-transfer"?X:ne,ie=E?pn(H,v.source.decimals,v.destination.decimals,"ceil"):0n;return{batches:N,feePricingBatches:Le,fundingAmount:$,actionContext:he,sourceSpendCap:fe,sourceAllocation:xe,destinationAmount:be,destinationSwap:te,swapInputAmount:K,actionDefinition:le,feeEstimate:d==="user-transfer"?V:q,sourceGasSkim:H,preview:{...J,grossAmount:$+ie,netAmount:he.netAmount,gasFee:J.gasFee+ie,spicenetFee:he.feeBreakdown.spicenetFee,totalFee:he.combinedFeeAmount+ie}}}V=q,I=N}throw new Error("Fees did not converge. Refresh the quote before submitting.")}class va extends Error{constructor(t){super("Amount is too small to cover fees. Increase the amount and retry."),this.preview=t,this.name="FeeShortfallError"}}function Vi(e,t,n,o,r=0n,s=!1){const a=BigInt(e.feePolicy?.platformBps??Si),i=e.feePolicy?{feePolicy:e.feePolicy}:{},l=e.gasFee+(e.bridgeFee??0n)+r;if(e.gasQuoteSource==="static_zero"&&r===0n)return{...i,grossAmount:t,netAmount:t,combinedFeeAmount:0n,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:0n,bridgeFee:0n,spicenetFee:0n}};if(n&&s){const d=l+e.spicenetFee;if(t<=d)throw new va({...e,grossAmount:t,netAmount:0n,totalFee:d});return{...i,grossAmount:t,netAmount:t-d,combinedFeeAmount:d,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:e.spicenetFee}}}const c=n?fp(t,l,a):null;if(c&&!c.coversFees)throw new va({...e,grossAmount:t,netAmount:0n,spicenetFee:0n,totalFee:l});const u=c?.spicenetFee??(o==="user-transfer"?Hs(t,a):e.spicenetFee);return{...i,grossAmount:c?.grossAmount??t+u+l,netAmount:c?.netAmount??t,combinedFeeAmount:u+l,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:u}}}async function Jm(e,t){if(e.feeQuote?.sourceAllocation){e.validateFeeQuote?.();const l=e.feeQuote.sourceAllocation;ga(l,l.positions.map(c=>c.asset),e.embeddedWalletAddress??e.providerEmbeddedAddress??void 0,e.resolvedChainId);return}const n=e.selectedAsset?.asset;if(!n||n?._source!=="wallet")return;const o=so(n,e.resolvedChainId);if(!o||!ee(o,e.executionTokenAddress))return;const r=await Do(n,e.executionTokenAddress,e.resolvedChainId,e.destinationToken),s=Lr(t,r,n.decimals);if(s<=n.balance)return;const a=De(s,n.decimals),i=De(n.balance,n.decimals);throw new Error(`Insufficient ${n.symbol} for this total amount. Required ${a} ${n.symbol}; available ${i} ${n.symbol}.`)}function $m(e){const t=Xt(e.executionTokenAddress,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:e.executionTokenAddress,symbol:t?.symbol??e.destinationToken.symbol,decimals:t?.decimals??e.destinationToken.decimals}}function _m(e){const t=e.selectedAsset.asset,n=Tn(e.selectedAsset.amount,t.decimals);if(n<=t.balance)return n;throw new Error(`Insufficient ${t.symbol} for this total amount. Required ${De(n,t.decimals)} ${t.symbol}; available ${De(t.balance,t.decimals)} ${t.symbol}.`)}function Vd(e,t,n,o){const r=$m(t),s=fo(e,r)??$r(o,r,n);if(s)return Vi(s,n,!!t.isFeeInclusiveInput,t.feeExecutionMode,0n,t.quotedInclusivePlatformFee)}function jd(e,t,n){let o=0n,r=0n;const s=n.toLowerCase();for(const a of e)if(a.chainId===t){for(const i of a.calls??[])if(i.to.toLowerCase()===s)try{const l=Zn({abi:lt,data:i.data});if(l.functionName!=="transfer")continue;const c=l.args[0].toLowerCase(),u=l.args[1];c===Qn.toLowerCase()?o+=u:c===yn.toLowerCase()&&(r+=u)}catch{continue}}return{spicenetFee:o,gasFee:r}}function eh(e,t,n,o){const r=t.feeExecutionMode==="user-transfer"&&t.needsSwap&&t.resolvedTokenIn?t.resolvedTokenIn:t.executionTokenAddress,s=jd(e,t.resolvedChainId,r);return s.spicenetFee===0n&&n.feeBreakdown.spicenetFee>0n||s.gasFee===0n&&n.feeBreakdown.gasFee>0n?!1:_r(s.spicenetFee,n.feeBreakdown.spicenetFee,t.feeToleranceBps)&&_r(s.gasFee,n.feeBreakdown.gasFee,t.feeToleranceBps)&&_r(o.feeBreakdown.bridgeFee,n.feeBreakdown.bridgeFee,t.feeToleranceBps)}function th(e,t,n){return e?Dl(e.grossAmount,t.grossAmount,100n)&&Ha(e.feeBreakdown,t.feeBreakdown,n):!1}function nh(e,t){const n=Xt(t,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:t,symbol:n?.symbol??e.selectedAsset?.asset.symbol??"",decimals:n?.decimals??e.selectedAsset?.asset.decimals??e.destinationToken.decimals}}async function oh(e,t){const n=e.feeQuote;return n?.feeEstimate&&n.grossFundingAmount!==void 0?{grossFundingAmount:n.grossFundingAmount,feeEstimate:n.feeEstimate}:zd({...t,feeOnlyAction:e.feeOnlyAction,estimate:e.execution.estimate,tokenDescriptor:nh(e,t.fundingToken)})}function Gd(e,t){const n=t instanceof Error?t:new Error(String(t));if(n.name==="AbortError"||n instanceof Be&&n.code==="ABORT"){e.ui.setStep("idle");return}const o=n.message||"Transaction failed";e.ui.setStep("error"),e.ui.setStatusMsg(o),e.ui.setError(o)}function Kd(e,t){const n=Un(t,"Payment failed. Please try again.");e.ui.setError(n),e.ui.setPaymentResult({status:"failed",error:n})}async function Yd(e){e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("executing"),e.ui.setStatusMsg("Confirm the transaction in your external wallet..."),e.ui.setTxHash(null),e.isPayMode&&(e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"}));try{if(e.validateFeeQuote?.(),!e.feeQuote?.batches||!e.feeQuote.actionDefinition)throw new Error("Review the direct action plan before submitting.");const t=await e.execution.execute(e.feeQuote.batches,e.destinationToken.address,0n,e.execution.onProgress);e.ui.setTxHash(t),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed"),e.isPayMode&&e.ui.setPaymentResult({status:"success",txHash:t})}catch(t){e.isPayMode?Kd(e,t):Gd(e,t)}finally{e.ui.setIsExecuting(!1)}}async function Zd(e,t,n){e.validateFeeQuote?.();const o=e.feeQuote;if(!o.batches||o.sourceSpendCap===void 0||!o.fundingSource)throw new Error("Refresh the action before submitting.");const r=o.fundedFeeToken,s=o.grossFundingAmount??0n,a=Ed({...e,signal:n,feeOnlyAction:!0,destinationToken:r,actionProceeds:e.actionProceeds??{token:o.fundingSource.token,resolve:async()=>o.proceedsAvailable??0n}},r.address,s);return e.execution.execute(o.batches,o.fundingConversion?.tokenIn??o.fundingSource.token,s,t,n,{...a,userOverride:e.embeddedWalletAddress||e.providerEmbeddedAddress,useCustomTransfers:!0,feeExecutionMode:"backend-transfer",skipPreSubmitFeeEstimate:!0})}async function Xd(e){if(!e.selectedAsset?.asset&&!e.feeQuote?.fundingPlan||e.parsedAmount<=0){e.ui.setError("Select an asset and enter an amount");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.directExternalAction)return Yd(e);if(!e.embeddedWalletAddress){e.ui.setError("Wallet not ready");return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("signing-delegation"),e.ui.setStatusMsg("Building transaction..."),e.ui.setTxHash(null),e.refs.spiceDepositSubmittedRef.current=!1;const t=new AbortController;e.refs.abortControllerRef.current=t;try{const n=e.embeddedWalletAddress||e.providerEmbeddedAddress,o=e.feeQuote;if(o?.fundingPlan){e.validateFeeQuote?.();const m=o.fundingPlan;if(!o.batches?.length||!o.feeEstimate||o.fundingAmount===void 0)throw new Error("Review the combined funding plan before submitting.");const g=[...new Set(m.sources.filter(S=>S.asset.location==="embedded").map(S=>S.chainId))];for(const[S,b]of g.entries()){const A=m.sources.filter(F=>F.asset.location==="embedded"&&F.chainId===b),O=o.batches[S];if(!O||O.chainId!==b)throw new Error("The accepted source funding vector changed.");const v=await qe.estimateBatchGas({user:m.owner,outputToken:A[0].pivotToken.address,stepIndex:0,chainBatches:[O]});e.validateFeeQuote?.();const x=A.reduce((F,T)=>F+T.gasFeeAmount,0n);if(v.gasFee<0n||!_r(x,v.gasFee,e.feeToleranceBps))throw new Error("Source funding fees changed. Refresh before submitting this purchase.")}const h={chainId:m.token.chainId,tokenAddress:m.token.address,symbol:m.token.symbol,decimals:m.token.decimals},y=fo(o.feeEstimate,h);if(!y)throw new Error("The accepted purchase fees are unavailable.");const C=await e.execution.execute(o.batches,m.token.address,o.fundingAmount,e.execution.onProgress,t.signal,{userOverride:m.owner,useCustomTransfers:!0,skipUserFundingPreflight:!0,feeExecutionMode:"user-transfer",adjustBatchesForEstimate:({feeEstimate:S})=>{const b=fo(S,h);if(!b||!Ha(y,b,e.feeToleranceBps))throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}});e.ui.setTxHash(C),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}if(o?.fundedFeeToken){const m=await Zd(e,e.execution.onProgress,t.signal);e.ui.setTxHash(m),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}const r=zi(e);r&&_m(e);const s=e.feeQuote?.batches?e.feeQuote:await jo({...e,feeExecutionMode:e.feeExecutionMode,isDirect:!e.needsSwap,isQuoting:!1,resolvedSwap:null,buildPayChainBatches:e.execution.buildPayChainBatches,buildSupplyChainBatches:e.execution.buildSupplyChainBatches,estimate:e.execution.estimate});if(!s?.batches||s.fundingAmount===void 0||!s.actionContext)throw new Error("A current action plan is required. Refresh the quote before submitting.");const a=e.isFeeInclusiveInput?s.actionContext.grossAmount:s.actionContext.netAmount;let i=s.batches;const l=i.some(m=>m.tokenTransfers?.length),c={userOverride:n,useCustomTransfers:l,feeExecutionMode:e.feeExecutionMode,...r?{skipUserFundingPreflight:!0}:{}},u=s.fundingAmount,d=s.actionContext;await Jm(e,u);const p=d,w=await e.execution.execute(i,e.executionTokenAddress,l?u:0n,e.execution.onProgress,t.signal,e.feeExecutionMode==="user-transfer"?{...c,skipUserFundingPreflight:!0,adjustBatchesForEstimate:async({feeEstimate:m,chainBatches:g})=>{if(s.feePricingBatches){e.validateFeeQuote?.();const S=await qd({estimate:e.execution.estimate,batches:g,pricingBatches:s.feePricingBatches,tokenAddress:e.executionTokenAddress,fundingAmount:u,options:{...c,signal:t.signal},signedEstimate:m});e.validateFeeQuote?.();const b=Vd(S,e,a,g),A=p.feeBreakdown,O=jd(g,e.resolvedChainId,e.executionTokenAddress);if(!b||b.feeBreakdown.spicenetFee!==A.spicenetFee||b.feeBreakdown.gasFee>A.gasFee||b.feeBreakdown.bridgeFee>A.bridgeFee||O.spicenetFee!==A.spicenetFee||O.gasFee!==A.gasFee+A.bridgeFee)throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}const h=Vd(s.feeEstimate?xa(m,s.feeEstimate):m,e,a,g);if(!h)throw new Error("Unable to validate the accepted fees. Refresh the quote before submitting.");const y=th(p,h,e.feeToleranceBps),C=eh(g,e,h,p);if(y||C)return null;throw new Error("Transaction fees changed. Refresh the quote before submitting.")}}:{...c,skipPreSubmitFeeEstimate:!0});e.ui.setTxHash(w),e.ui.setStep("success"),e.ui.setStatusMsg("Deposit confirmed")}catch(n){Gd(e,n)}finally{e.ui.setIsExecuting(!1)}}async function Jd(e){if(e.parsedAmount<0){e.ui.setError("Enter a valid payment amount");return}const t=e.parsedAmount===0;if(!e.selectedAsset?.asset&&!t){e.ui.setError("Select a payment source");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.parsedAmount>0&&e.needsSwap&&!e.exactOutputSwap){e.ui.setError("Swap quote not available. Try a different asset.");return}if(e.directExternalAction)return Yd(e);const n=Rd(e)&&!t,o=n?e.feeQuote?.sourceGasSkim??0n:0n,r=a=>e.execution.buildPayChainBatches(n?{...a,sourceGasSkimOverride:o}:a);if(!e.isConnected||!e.address){e.ui.setError("Please connect your wallet to continue");return}if(!e.ready||!e.authenticated){e.ui.setError(`Please authenticate with ${e.provider||"wallet provider"} to continue`);return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"});const s=new AbortController;e.refs.abortControllerRef.current=s;try{if(e.feeQuote?.fundedFeeToken){const b=await Zd(e,A=>{e.execution.onProgress(A),A.txHash&&(e.ui.setTxHash(A.txHash),e.ui.setPaymentResult({status:"processing",txHash:A.txHash}))},s.signal);e.ui.setPaymentResult(A=>({status:"success",txHash:A?.txHash||b}));return}const a=Tn(e.currentPaymentAmount,e.destinationToken.decimals),i={useCustomTransfers:!0,feeExecutionMode:e.feeExecutionMode,...n?{skipUserFundingPreflight:!0}:{}};if(t&&!e.feeOnlyAction){const b=await r(),A=await e.execution.execute(b,e.executionTokenAddress,0n,O=>{e.execution.onProgress(O),O.txHash&&(e.ui.setPaymentResult(v=>({...v??{status:"processing"},txHash:O.txHash})),e.ui.setTxHash(O.txHash))},s.signal,i);e.ui.setPaymentResult(O=>({status:"success",txHash:O?.txHash||A}));return}const l=e.selectedAsset?.asset,c=e.feeQuote?.fundingSource;if(!l&&!e.actionProceeds&&!c)throw new Error("Select a payment source");const u=e.feeQuote?.fundingConversion?.tokenIn||c?.token||e.resolvedTokenIn||l?.address||e.destinationToken.address,d=e.needsSwap?e.exactOutputSwap?.amountInMax??0n:a,p=e.embeddedWalletAddress||e.providerEmbeddedAddress||e.address,w=!!e.feeQuote?.fundingConversion||!!c&&(c.kind!=="balance"||c.asset?._source==="wallet"),{grossFundingAmount:m,feeEstimate:g}=w?{grossFundingAmount:e.feeQuote.grossFundingAmount??0n,feeEstimate:void 0}:await oh(e,{requiredNetFunding:d,buildBatches:b=>e.execution.buildPayChainBatches({fundingAmountOverride:b}).then(A=>_o(A,p)),fundingToken:u,executionOptions:i});let h=e.feeQuote?.fundingBatches??e.feeQuote?.batches??_o(await r({fundingAmountOverride:m}),p,e.actionProceeds?void 0:g,{payoutAlreadyGross:!0});const y=Ed(e,e.feeQuote?.fundingConversion?.tokenOut??u,m);y.prepareForSigning&&(h=await y.prepareForSigning(h));const C=h.some(b=>b.tokenTransfers?.length),S=await e.execution.execute(h,u,C?m:0n,b=>{e.execution.onProgress(b),b.txHash&&(e.ui.setPaymentResult(A=>({...A,txHash:b.txHash})),e.ui.setTxHash(b.txHash))},s.signal,{...i,...y,skipPreSubmitFeeEstimate:!0});e.ui.setPaymentResult(b=>({status:"success",txHash:b?.txHash||S}))}catch(a){Kd(e,a)}finally{e.ui.setIsExecuting(!1)}}async function $d(e){const{quote:t,recipient:n,chainId:o,token:r}=e,s=t.batches?_d(t.batches,r,o,n):0n;if(s<=0n)throw new Error("The route does not deliver the action amount to the external wallet.");const a={userAddress:n,executorAddress:n,beneficiary:e.beneficiary??n,chainId:o,destinationToken:r,feeToken:r,grossAmount:s,netAmount:s,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},i=await e.buildCalls(s,a);if(!i.length)throw new Error("No action calls configured.");return{amount:s,context:a,calls:i.map(l=>({...l}))}}function rh(e,t,n){const o=[],r=(s,a,i)=>{i>0n&&o.push(Fe(s)?{to:a,value:i,data:"0x"}:{to:s,value:0n,data:Et({abi:lt,functionName:"transfer",args:[a,i]})})};return t.feeExecutionMode==="user-transfer"&&t.feeBreakdown&&(r(t.feeToken??t.destinationToken,Qn,t.feeBreakdown.spicenetFee),r(t.feeToken??t.destinationToken,yn,t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee)),r(t.destinationToken,n,e),o}function _d(e,t,n,o){let r=0n;for(const s of e)if(s.chainId===n){for(const a of s.calls)if(ee(a.to,t))try{const i=Zn({abi:lt,data:a.data});i.functionName==="transfer"&&ee(i.args[0],o)&&(r+=i.args[1])}catch{}}return r}async function sh(e){if(!/^0x[0-9a-f]{64}$/i.test(e.hash))throw new Error("The external delivery receipt is unavailable.");const t=Ct(e.chainId),n=await t.getTransactionReceipt({hash:e.hash});if(n.status!=="success"||!ee(n.transactionHash,e.hash))throw new Error("The external delivery receipt was not successful.");let o=0n;for(const r of n.logs)if(ee(r.address,e.token))try{const s=Lp({abi:lt,eventName:"Transfer",data:r.data,topics:r.topics});ee(s.args.to,e.recipient)&&ee(s.args.from,e.sender)&&(o+=s.args.value)}catch{}if(o!==e.amount)throw new Error("The received external amount does not match the accepted action.");if(await t.readContract({address:e.token,abi:lt,functionName:"balanceOf",args:[e.recipient]})<e.amount)throw new Error("The external wallet no longer holds the delivered action amount.")}async function eu(e,t,n){let o=null;try{const r=await e.request({method:"eth_chainId"});o=parseInt(r,16)}catch{o=null}o!==t&&(n?.(),await Ml(e,t))}function ji(e){let t=e;const n=new Set;for(;t&&typeof t=="object"&&!n.has(t);){if(n.add(t),t.code===4001)return!0;t=t.cause}return!1}async function Gi(e){const t=e.provider??await e.wallet?.getEthereumProvider();if(!t)throw new Error("External wallet provider not available");await eu(t,e.chainId,e.onSwitch);const n=await t.request({method:"eth_accounts"});if(!Array.isArray(n)||!n.some(r=>typeof r=="string"&&r.toLowerCase()===e.account.toLowerCase()))throw new Error("The connected source wallet changed. Reconnect the selected account before funding.");const o=bt(e.chainId)?.viemChain;return{extWc:Xa({account:e.account,chain:o,transport:Ja(t)}),viemChain:o}}async function tu(e,t,n){const o=Date.now()+1e4;for(;Date.now()<o;){let r,s;try{r=await Promise.race([Promise.all([t.getBlockNumber({cacheTime:0}),e.request({method:"eth_blockNumber"}).then(BigInt)]),new Promise(a=>{s=setTimeout(()=>a(null),Math.max(0,o-Date.now()))})])}catch{return}finally{clearTimeout(s)}if(!r||Date.now()>=o||r.every(a=>a>=n))return;await new Promise(a=>setTimeout(a,Math.min(250,o-Date.now())))}}async function ah(e){let t;for(const[n,o]of e.calls.entries()){await e.observer?.onSending?.(n);let r;try{r=await e.extWc.sendTransaction({to:o.to,data:o.data,value:o.value,chain:e.viemChain})}catch(i){throw ji(i)&&e.observer?.onRejected?.(n),i}e.observer?.onSubmitted?.(n,r);const s=await da({client:e.client,hash:r,call:o,onRepriced:i=>e.observer?.onSubmitted?.(n,i),onCancelled:()=>e.observer?.onReverted?.(n,r)});r=s.hash;const a=s.receipt;if(a.status!=="success")throw e.observer?.onReverted?.(n,r),new Error(e.errorMessage);await tu(e.extWc,e.client,a.blockNumber),e.observer?.onConfirmed?.(n,r),t=r}return t}async function nu(e){const t=await e.client.estimateFeesPerGas(),n=t.maxFeePerGas??t.gasPrice;if(typeof n!="bigint"||n<=0n)throw new Error("Network gas could not be priced.");let o=0n;for(const r of e.calls){const s=await e.client.estimateGas({account:e.account,...r});o+=(s*n*120n+99n)/100n}return o}async function ou(e){const{definition:t,account:n,chainId:o}=e,{calls:r}=t;if(!ee(t.context.executorAddress,n)||t.context.chainId!==o||!r.length)throw new Error("The direct action no longer matches its wallet or chain.");const s=Ct(o);let a;for(const i of r){await e.assertCurrent();const[l,c]=await Promise.all([nu({client:s,account:n,calls:[i]}),s.getBalance({address:n})]);if(c<i.value+l)throw new Error("The external wallet has insufficient native balance for this transaction and network gas.");await e.assertCurrent();const{extWc:u,viemChain:d}=await Gi({wallet:e.wallet,account:n,chainId:o});await e.assertCurrent(),a=await ah({extWc:u,viemChain:d,client:s,calls:[i],errorMessage:"The external transaction reverted. Retry the unfinished action when ready."})}if(!a)throw new Error("The direct action has no confirmed receipt.");return a}function Cs(e,t,n){if(!ee(e.owner,t)||e.balanceError||e.balanceStatus==="stale"||e._wrapFromNative||!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>36)return!1;if(e.location==="embedded"&&e._source==="wallet"){const r=gr(e.chainId);return!!r&&(!ee(e.address,r.address)||e.decimals===r.decimals)}if(e.location!=="rollup"||e._source!=="spice"||!e.receiptTokenId||!e.chainTokens||Array.isArray(e.chainTokens))return!1;const o=Object.entries(e.chainTokens).filter(([r])=>$n(r)?.chainId===n.chainId);return o.length===1&&ee($n(o[0][0])?.address,n.address)&&(o[0][1].decimals===void 0||o[0][1].decimals===n.decimals)}async function ru(e){const{owner:t,token:n}=e,o=gr(n.chainId);if(!o||!ee(o.address,n.address)||o.decimals!==n.decimals||e.destinationToken.chainId!==n.chainId)throw new Error("Combined funding requires the destination chain's supported USDC token.");if(e.budget!=="max"&&e.budget<=0n)throw new Error("Enter a positive purchase budget.");const r=()=>{if(e.signal?.aborted)throw new Error("Fee estimation cancelled")},s=(v,x=0n,F=0n,T=0n)=>new va({symbol:n.symbol,decimals:n.decimals,grossAmount:v,netAmount:0n,gasFee:x,spicenetFee:F,bridgeFee:T,totalFee:x+F+T,gasQuoteSource:"estimated"}),a=new Set,i=new Set,l=[],c=v=>v.location==="rollup"?0:ee(v.address,gr(v.chainId)?.address)?v.chainId===n.chainId?1:3:v.chainId===n.chainId?2:4,u=[...e.sources].sort((v,x)=>c(v.asset)-c(x.asset));let d=0n;for(const v of u){r();const{asset:x,availableAmount:F,reservedAmount:T}=v,B=ve(x),M=x.location==="rollup"?`${t.toLowerCase()}:rollup:${x.receiptTokenId}`:`${t.toLowerCase()}:${x.location}:${x.chainId}:${pt(x.address).toLowerCase()}`;if(a.has(B)||i.has(M))throw new Error("A funding position was included more than once.");if(a.add(B),i.add(M),!Cs(x,t,n)||typeof F!="bigint"||typeof T!="bigint"||F<0n||T<0n||F+T>x.balance)throw new Error("A funding position or its available balance cannot be verified.");if(F===0n||e.budget!=="max"&&d>=e.budget)continue;const k=x.location==="rollup"?n:{...gr(x.chainId),chainId:x.chainId},E=x.location==="rollup"||ee(x.address,k.address)?void 0:await e.resolveSourceInput(x,k,F);if(r(),E&&(E.amountOutMinimum<=0n||E.amountOutMinimum>E.amountOut||!E.calls.length))throw new Error("A funding conversion has no guaranteed output.");x.location==="rollup"&&x.receiptTokenDecimals!==void 0&&kn(F,x.decimals,x.receiptTokenDecimals);const I=E?.amountOutMinimum??kn(F,x.decimals,k.decimals),D=kn(pn(I,k.decimals,n.decimals,"floor"),n.decimals,k.decimals);D!==0n&&(d+=kn(D,k.decimals,n.decimals),l.push({positionId:B,asset:x,owner:t,chainId:x.chainId,token:x.address,decimals:x.decimals,sourceSpendCap:F,quotedAvailable:F,reservedAmount:T,pivotToken:k,amountOutMinimum:D,gasFeeAmount:0n,...E?{swap:E}:{}}))}const p=l.reduce((v,x)=>v+kn(x.amountOutMinimum,x.pivotToken.decimals,n.decimals),0n);let w=e.budget==="max"?p:e.budget;if(e.budget==="max"&&w===0n)throw s(0n);if(w<=0n||w>p)throw new Error("The available funding positions cannot cover this purchase budget.");const m=[];let g=w;for(const v of l){if(g===0n)break;const x=kn(v.amountOutMinimum,v.pivotToken.decimals,n.decimals),F=x<g?x:g,T=kn(F,n.decimals,v.pivotToken.decimals);if(F===x)m.push(v);else if(v.swap){const B=await e.resolveSourceOutput(v.asset,v.pivotToken,T);if(r(),!B||B.amountInMax<=0n||B.amountIn<0n||B.amountIn>B.amountInMax||B.amountInMax>v.quotedAvailable||B.amountOut<T||!B.calls.length)throw new Error("The funding conversion cannot fit its accepted source balance.");m.push({...v,sourceSpendCap:B.amountInMax,amountOutMinimum:T,swap:{venue:B.venue,calls:B.calls,amountOut:B.amountOut,amountOutMinimum:T}})}else{const B=kn(T,v.pivotToken.decimals,v.decimals);v.asset.location==="rollup"&&v.asset.receiptTokenDecimals!==void 0&&kn(B,v.decimals,v.asset.receiptTokenDecimals),m.push({...v,sourceSpendCap:B,amountOutMinimum:T})}g-=F}const h=new Map;for(const v of m){if(v.asset.location==="rollup")continue;const x=h.get(v.chainId)??[];x.push(v),h.set(v.chainId,x)}const y=new Map,C=(v=!1)=>[...h].map(([x,F])=>{const T=F[0].pivotToken,B=F.reduce((k,E)=>k+E.amountOutMinimum,0n),M=y.get(x)??(v?1n:0n);if(B<=M&&!v)throw s(w,pn(M,T.decimals,n.decimals,"ceil"));return{chainId:x,calls:[...F.flatMap(k=>k.swap?.calls??[]),vr(T.address,B>M?B-M:0n,Bo(x)),...M>0n?[vr(T.address,M,yn)]:[]]}});for(let v=0;v<8&&h.size>0;v++){const x=C(!0);let F=!1;for(const[T,[B,M]]of[...h].entries()){r();const k=await qe.estimateBatchGas({user:t,outputToken:M[0].pivotToken.address,stepIndex:0,chainBatches:[x[T]],signal:e.signal});if(k.gasFee<0n)throw new Error("The source gas quote is invalid.");const E=M[0].pivotToken,I=kn(pn(k.gasFee,E.decimals,n.decimals,"ceil"),n.decimals,E.decimals),D=y.get(B),P=D!==void 0&&D>I?D:I,H=M.reduce((Q,G)=>Q+G.amountOutMinimum,0n);if(P>=H){if(e.budget!=="max")return ru({...e,sources:e.sources.filter(Q=>Q.asset.location==="rollup"||Q.asset.chainId!==B)});w-=kn(H,E.decimals,n.decimals),h.delete(B);for(const Q of M)m.splice(m.indexOf(Q),1);F=!0;continue}(D===void 0||P!==D)&&(F=!0),y.set(B,P)}if(!F)break;if(v===7)throw new Error("Source fees did not converge. Refresh the quote before submitting.")}let S=0n;for(const[v,x]of h){const F=y.get(v);x[0].gasFeeAmount=F,S+=kn(F,x[0].pivotToken.decimals,n.decimals)}const b=w-S;if(b<=0n)throw s(w,S);let A={gasFee:0n,spicenetFee:0n,bridgeFee:0n},O="estimated";for(let v=0;v<8;v++){r();const x=A.gasFee+A.spicenetFee+A.bridgeFee,F={grossAmount:b,netAmount:b-x,combinedFeeAmount:x,feeExecutionMode:"user-transfer",feeBreakdown:A},T=F.netAmount;if(T<=0n)throw s(w,S+A.gasFee,A.spicenetFee,A.bridgeFee);const B=ee(n.address,e.destinationToken.address)?void 0:await e.resolveDestinationInput(T);if(r(),B&&(B.amountOutMinimum<=0n||B.amountOutMinimum>B.amountOut||!B.calls.length))throw new Error("The purchase conversion has no guaranteed output.");const M=B?.amountOutMinimum??kn(T,n.decimals,e.destinationToken.decimals),k={...F,userAddress:e.beneficiary??t,executorAddress:t,beneficiary:e.beneficiary??t,chainId:n.chainId,destinationToken:e.destinationToken.address,feeToken:n.address,grossAmount:w,netAmount:M,combinedFeeAmount:F.combinedFeeAmount+S},E=await e.buildActionCalls(M,k);if(!E.length&&!B?.calls.length)throw new Error("No action calls configured.");const I={intents:[{intentIndex:0,batches:[{chainId:n.chainId,quotedAmount:T.toString(),totalDebit:b.toString(),gasQuoteSource:O,feeBreakdown:{gasFee:A.gasFee.toString(),spicenetFee:A.spicenetFee.toString(),bridgeFee:A.bridgeFee.toString()}}]}]},D={chainId:n.chainId,calls:[...B?.calls??[],...E],tokenTransfers:[{from:"escrow",to:t,token:n.address,amount:b}]},P=[...C(),...Ui([D],t,I,{payoutAlreadyGross:!0,requestTimestampMs:e.requestTimestampMs})],H=await e.estimate(P,n.address,b,{userOverride:t,useCustomTransfers:!0,feeExecutionMode:"user-transfer",signal:e.signal,skipUserFundingPreflight:!0}),Q=H.intents.flatMap(V=>V.batches);if(H.intents.length!==1||H.intents[0].intentIndex!==0||Q.length!==1||Q[0].chainId!==n.chainId)throw new Error("The destination fee quote is missing or ambiguous.");const G=fo(H,{...n,tokenAddress:n.address});if(!G)throw new Error("The destination fee quote cannot be verified.");const oe=Lo(Q[0]);if(oe.gasFee<0n||oe.spicenetFee<0n||oe.bridgeFee<0n)throw new Error("The destination fee quote is invalid.");if(oe.spicenetFee>Hs(b,10n))throw new Error("The destination platform fee exceeds the supported purchase fee.");const $={gasFee:oe.gasFee>A.gasFee?oe.gasFee:A.gasFee,bridgeFee:oe.bridgeFee>A.bridgeFee?oe.bridgeFee:A.bridgeFee,spicenetFee:oe.spicenetFee>A.spicenetFee?oe.spicenetFee:A.spicenetFee};if(v>0&&$.gasFee===A.gasFee&&$.bridgeFee===A.bridgeFee&&$.spicenetFee===A.spicenetFee)return{fundingPlan:{owner:t,token:n,totalBudget:w,sources:m},batches:P,feeEstimate:I,actionDefinition:{amount:M,context:k,calls:E},actionContext:k,fundingAmount:b,destinationAmount:M,destinationSwap:B,swapInputAmount:T,preview:{symbol:n.symbol,decimals:n.decimals,grossAmount:w,netAmount:T,totalFee:F.combinedFeeAmount+S,gasFee:A.gasFee+S,spicenetFee:F.feeBreakdown.spicenetFee,bridgeFee:A.bridgeFee,gasQuoteSource:O}};A=$,O=G.gasQuoteSource}throw new Error("Fees did not converge. Refresh the quote before submitting.")}function ka(e,t,n,o){return n?{to:e,value:o,data:"0x"}:{to:t,value:0n,data:Et({abi:lt,functionName:"transfer",args:[e,o]})}}async function su(e){const t=ka(e.recipient,e.token,e.isNative,e.amount),[n,o]=await Promise.all([e.client.estimateGas({account:e.account,...t}),e.client.estimateFeesPerGas()]),r=o.maxFeePerGas??o.gasPrice;if(typeof r!="bigint"||r<=0n)throw new Error("Source transaction gas could not be priced.");return(n*r*120n+99n)/100n}function Ki(e,t){return t.isNative?e.sendTransaction({to:t.recipient,value:t.amount,chain:t.viemChain}):e.sendTransaction({to:t.tokenAddr,data:Et({abi:lt,functionName:"transfer",args:[t.recipient,t.amount]}),chain:t.viemChain})}async function ih(e){const{extWc:t,sourceClient:n,recipient:o,tokenAddr:r,isNative:s,amount:a}=e;if(a<=0n)return;await e.observer?.onSending?.(0);let i;try{i=await Ki(t,{recipient:o,tokenAddr:r,isNative:s,amount:a,viemChain:e.viemChain})}catch(u){throw ji(u)&&e.observer?.onRejected?.(0),u}e.observer?.onSubmitted?.(0,i);const l=await da({client:n,hash:i,call:ka(o,r,s,a),onRepriced:u=>e.observer?.onSubmitted?.(0,u),onCancelled:()=>e.observer?.onReverted?.(0,i)});i=l.hash;const c=l.receipt;if(c.status!=="success")throw e.observer?.onReverted?.(0,i),new Error("Embedded wallet funding failed");await tu(t,n,c.blockNumber),e.observer?.onConfirmed?.(0,i)}async function au(e){const{asset:t,embedded:n,external:o,amount:r}=e;if(!o||!e.externalWallet)throw new Error("Connect the source wallet before funding.");if(r<=0n)return;const s=Ct(t.chainId),a=t.isNative||Fe(t.address),[i,l]=await Promise.all([su({client:s,account:o,recipient:n,token:t.address,isNative:a,amount:r}),s.getBalance({address:o})]);if(l<i+(a?r:0n))throw new Error("The source wallet has insufficient native balance for funding and gas.");const{extWc:c,viemChain:u}=await Gi({wallet:e.externalWallet,account:o,chainId:t.chainId});await ih({extWc:c,sourceClient:s,recipient:n,tokenAddr:t.address,isNative:a,amount:r,viemChain:u,observer:{...e.observer,onSending:async d=>{await e.assertCurrent(),await e.observer?.onSending?.(d)}}})}function iu(e){const t=an(_t),n=bt(e.chainId),o=e.address??n?.supportedTokens?.find(m=>m.symbol.toLowerCase()===e.symbol?.toLowerCase())?.address,r=e.symbol??(o&&Fe(o)?n?.nativeCurrency?.symbol:n?.supportedTokens?.find(m=>!!o&&ee(m.address,o))?.symbol),s=qa(e.chainId,t?.rpcOverrides),[a,i]=L(0),l=`${e.chainId}:${o?.toLowerCase()}:${s}:${e.decimals??""}:${r??""}:${a}`,[c,u]=L(null);ue(()=>{let m=!1;if(!(!e.enabled||!o||!s?.trim()))return Promise.all([e.decimals??Ls(e.chainId,o,t?.rpcOverrides),r??Xo(Ct(e.chainId,t?.rpcOverrides),{address:o,abi:lt,functionName:"symbol"}).catch(()=>{})]).then(([g,h])=>{if(!Number.isInteger(g)||g<0||g>255)throw new Error("Invalid destination token decimals");m||u({key:l,decimals:g,symbol:h})}).catch(g=>{m||u({key:l,error:g.message})}),()=>{m=!0}},[e.enabled,l]);const d=c?.key===l?c:null,p=ge(()=>({address:o??jt,chainId:e.chainId,decimals:d?.decimals??0,symbol:r??d?.symbol??(o?ts(o):""),logoURI:e.logoURI}),[o,e.chainId,d?.decimals,d?.symbol,r,e.logoURI]),w=e.enabled?o?s?.trim()?d?.error??null:`Configure SpiceFlowProvider rpcOverrides[${e.chainId}] before continuing.`:"Configure the destination token address before continuing.":null;return{token:p,error:w,ready:e.enabled&&!!o&&!!s?.trim()&&d?.decimals!==void 0,refresh:se(()=>i(m=>m+1),[])}}function Ca(e,t){const n=!!e&&e.symbol!==void 0&&e.decimals!==void 0,o=iu({enabled:t&&!!e&&!n,chainId:e?.chainId??0,address:e?.address,decimals:e?.decimals,symbol:e?.symbol,logoURI:e?.logoURI});return{token:e?n?e:o.ready?o.token:void 0:void 0,error:o.error}}const Ia={address:jt,symbol:"",decimals:18,chainId:0};function lu(e,t,n){return ee(e.address,t)&&e.chainId===n?e._source==="wallet"?0:1:2}function lh(e,t,n,o){const r=lu(e,n,o)-lu(t,n,o);return r!==0?r:(t.balanceUsd||0)-(e.balanceUsd||0)}const ch=Dc;function cu(e){const t=an(_t),n=Tr(),o=t?.embeddedWalletAddress||n.embeddedAddress,r=t?.externalWalletAddress||n.externalAddress,s=(t?.mode||"7702")!=="7702",a=e.destinationToken??Ia,i=e.enabled&&!!e.destinationToken,l=yr({...e,owner:o,enabled:i&&!!o&&(!s||e.includeCrossChainEmbeddedAssets!==!1),role:"spend-source",destination:e.destinationToken}),c=yr({...e,owner:r,enabled:i&&!!r&&(s||e.includeExternalWalletAssets!==!1),role:"spend-source",destination:e.destinationToken});return{displayAssets:ge(()=>[...l.assets,...c.assets].sort((u,d)=>lh(u,d,a.address,a.chainId)),[l.assets,c.assets,a.address,a.chainId]),filteredSpiceAssets:l.rollupAssets,walletAssets:[...l.walletAssets,...c.walletAssets],embeddedWalletAddress:o,externalAddress:r,isNon7702:s,refreshSpiceAssets:l.refresh,refreshWalletAssets:l.refresh,loading:l.loading||c.loading,refreshing:l.refreshing||c.refreshing,error:l.error||c.error}}function dh(e,t){return!e||e._source!=="wallet"?null:mi(e,t)}function Yi(e){return fc({aerodrome:!1,oneInch:{chainIds:[]},customVenues:e})}const Zi=hr(),uh=Yi(Zi.input);function du(e){return{venue:"mapped-transfer",amountOut:e,amountOutMinimum:e,calls:[]}}function uu(e){return{venue:"mapped-transfer",amountIn:e,amountInMax:e,amountOut:e,calls:[]}}async function Is(e){if(ee(e.tokenIn,e.tokenOut))return du(e.amountIn);if(e.resolveInputSwap){const n=await e.resolveInputSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient);if(n)return n}const t=await(e.liquidityVenues?Yi(hr(e.liquidityVenues).input):uh).resolveSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient,e.selectedSwap);if(!t)throw new Error("No liquidity for this pair.");return t}async function pu(e){return ee(e.tokenIn,e.tokenOut)?uu(e.amountOut):vs({customVenues:e.liquidityVenues?hr(e.liquidityVenues).output:Zi.output}).getQuote({tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountOut:e.amountOut,maxSlippage:e.maxSlippage},e.chainId,e.recipient)}function fu(e){const{enabled:t=!0,direction:n,selectedAsset:o,destinationToken:r,chainId:s=r.chainId,recipient:a,paymentAmount:i,maxSlippage:l,refreshIntervalMs:c,resolveInputSwap:u,resolveExactOutputSwap:d}=e,p=an(_t),w=p?.liquidityVenues,m=JSON.stringify([p?.network,p?.apiUrl,p?.rpcOverrides]),[g,h]=L(!1),[y,C]=L(null),[S,b]=L(null),[A,O]=L(null),[v,x]=L(null),[F,T]=L(null),[B,M]=L(null),[k,E]=L(null),[I,D]=L(null),[P,H]=L(null),[Q,G]=L(null),[oe,$]=L(null),[V,re]=L(null),[X,he]=L(null),[be,fe]=L(0),[xe,te]=L(null),[K,le]=L(null),N=j(null),Le=j(null),Te=j(0),z=j(new Map),q=se(()=>{Te.current++,z.current.clear(),le(null),fe(pe=>pe+1)},[]),ne=c&&c>0?c:null,de=w?JSON.stringify(w):"",J=ge(()=>w?hr(w):Zi,[de]),ie=ge(()=>Yi(J.input),[J]),ze=ge(()=>vs({customVenues:[...d?[{name:"consumer-exact-output",chainIds:[s],preferred:!0,resolve:d}]:[],...J.output]}),[d,s,J]);ue(()=>{z.current.clear()},[ze]);const Se=ge(()=>t?dh(o?.asset,s):null,[t,o?.asset,s]),Ce=ge(()=>{if(!t||!o?.asset)return null;if(Se)return Se.destination.address;const pe=so(o.asset,s);if(pe)return pe;const Oe=Qo(o.asset.address,s,o.asset.chainId);return Oe?Oe.address:null},[t,o?.asset,s,Se]),et=ge(()=>t&&o?.asset?Br(o.asset,s):[],[t,o?.asset,s]),Me=ge(()=>et.map(pe=>pe.toLowerCase()).join(","),[et]),Ne=JSON.stringify([t,m,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,o?.amount,s,Me,n,i]);ue(()=>{let pe=!1;if(Le.current&&(clearTimeout(Le.current),Le.current=null),!t||!o?.asset||Se||et.length<=1){re(null),he(null);return}return Le.current=setTimeout(async()=>{const Oe=n==="input"?o.amount:i||"0";let at=0n;try{at=n==="input"?Tn(Oe,o.asset.decimals):0n}catch{at=0n}try{const Ke=await Bc(o.asset,s,{requiredAmount:at});pe||(re(Ke),he(Ne))}catch{pe||re(null)}},400),()=>{pe=!0,Le.current&&(clearTimeout(Le.current),Le.current=null)}},[Ne]);const We=ge(()=>(X===Ne?V:null)??Ce,[V,X,Ne,Ce]),we=ge(()=>!o?.asset||!We?[]:[We,...et.filter(pe=>pe.toLowerCase()!==We.toLowerCase())],[o?.asset,We,et]),Ye=ge(()=>!o?.asset||!ls(o.asset.address,o.asset.chainId,r.address,r.chainId)||!We?!1:ee(We,r.address),[o,r.address,r.chainId,We]),ke=We?ee(We,r.address):!1,He=n==="output"&&parseFloat(i||"0")===0,ft=t&&!!o?.asset&&!Ye&&!ke&&!He,Ze=JSON.stringify([t,de,n,ft,m,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,n==="input"?o?.amount:i,we.map(pe=>pe.toLowerCase()),s,r.address.toLowerCase(),r.chainId,r.decimals,a?.toLowerCase(),l,ne,Se?.source.address.toLowerCase()??""]),nt=ge(()=>({}),[Ze,ie,ze,u,be]),Qe=K?.request===nt&&(!ne||K.expiresAt>Date.now());return ue(()=>{if(!ne||K?.request!==nt)return;const pe=setTimeout(q,Math.max(0,K.expiresAt-Date.now()));return()=>clearTimeout(pe)},[ne,K,nt,q]),ue(()=>{N.current&&clearTimeout(N.current),te(nt),le(null),C(null);const pe=n==="input"?o?.amount:i,Oe=parseFloat(pe||"0");if(!t||!Number.isFinite(Oe)||Oe<=0||!o?.asset||!a||we.length===0){Te.current++,b(null),O(null),x(null),T(null),M(null),E(null),D(null),$(null),C(null),h(!1);return}const at=o.asset.decimals;let Ke;try{Ke=n==="input"?Tn(o.amount,at):Tn(i||"0",r.decimals)}catch(rt){Te.current++,C(rt instanceof Error?rt.message:"Invalid amount or token precision"),h(!1);return}const Ae=++Te.current,Xe=()=>Ae!==Te.current;h(!0);const kt=n==="output"?150:100,Ge=async(rt,ct,dt,mt={chainId:s,tokenOut:r.address,amountIn:Ke},fn=we)=>{for(const wt of fn){const ht=`${m}:${de}:${n}:${mt.chainId}:${wt.toLowerCase()}:${mt.tokenOut.toLowerCase()}:${mt.amountIn.toString()}:${a.toLowerCase()}:${l??"default"}:${ne??"default"}`,Wt=z.current.get(ht),Ft=Wt&&Wt.expiresAt>Date.now()?rt(Wt):void 0;if(Ft)return{quote:Ft,tokenIn:wt,expiresAt:Wt.expiresAt};const Z=await dt(wt);if(Xe())return"stale";if(!Z)continue;const Ut=Date.now()+Math.min(ne??3e4,3e4);return z.current.set(ht,{expiresAt:Ut,direction:n,...ct(Z)}),{quote:Z,tokenIn:wt,expiresAt:Ut}}return null},Bt=rt=>Ge(ct=>ct.resolvedSwap,ct=>({resolvedSwap:ct}),async ct=>{const dt=!Se&&rt.chainId===s&&o.asset._source!=="wallet",mt=dt?await Do(o.asset,ct,rt.chainId,r):at;if(Xe())return null;const fn=dt?kn(rt.amountIn,at,mt):rt.amountIn;if(ee(ct,rt.tokenOut))return du(fn);const wt={type:"swap",tokenIn:ct,tokenOut:rt.tokenOut,amountIn:fn,maxSlippage:l};if(u){const ht=await u(wt,rt.chainId,a);if(ht)return ht}return ie.resolveSwap(wt,rt.chainId,a)},rt,rt.candidates);return N.current=setTimeout(async()=>{try{if(n==="input"){let rt=null,ct=Ke;if(Se){if(rt=await Bt({chainId:Se.source.chainId,tokenOut:Se.source.address,amountIn:Ke,candidates:[o.asset.address]}),rt==="stale"||Xe())return;if(!rt)throw new Error("No liquidity for this pair");ct=pn(rt.quote.amountOutMinimum,Se.source.decimals,Se.destination.decimals,"floor")}const dt=ft||!Se?await Bt({chainId:s,tokenOut:r.address,amountIn:ct,candidates:we}):null;if(dt==="stale"||Xe())return;if(ft&&!dt)throw new Error("No liquidity for this pair");const mt=dt?dt.quote.amountOut:ct,fn=Math.min(dt?.expiresAt??1/0,rt?.expiresAt??1/0),wt=Se?.destination.decimals??await Do(o.asset,dt.tokenIn,s,r),ht=!Se&&o.asset._source!=="wallet"?kn(ct,at,wt):ct;if(Xe())return;$(dt?.tokenIn??Se?.destination.address??null),le({request:nt,key:`${mr(jl(Ze))}:${Ae}`,expiresAt:fn}),D(mt),H(ht),G(wt),x(ft?dt?.quote??null:null),T(rt?.quote??null),M(null),E(null);const Wt=parseFloat(De(mt,r.decimals));b(Wt<.01?Wt.toPrecision(4):Wt.toLocaleString(void 0,{maximumFractionDigits:6})),O(null),C(null)}else{const rt=ht=>Ge(Wt=>Wt.exactOutputSwap,Wt=>({exactOutputSwap:Wt}),async Wt=>{try{return ee(Wt,ht.tokenOut)?uu(ht.amountOut):await ze.getQuote({tokenIn:Wt,tokenOut:ht.tokenOut,amountOut:ht.amountOut,maxSlippage:l},ht.chainId,a)}catch{return null}},{chainId:ht.chainId,tokenOut:ht.tokenOut,amountIn:ht.amountOut},ht.candidates),ct=!Se||ft,dt=ct?await rt({chainId:s,tokenOut:r.address,amountOut:Ke,candidates:we}):null;if(dt==="stale"||Xe())return;if(ct&&!dt)throw new Error("No liquidity for this pair");let mt=null;if(Se){const ht=dt?dt.quote.amountInMax:Ke;if(mt=await rt({chainId:Se.source.chainId,tokenOut:Se.source.address,amountOut:pn(ht,Se.destination.decimals,Se.source.decimals,"ceil"),candidates:[o.asset.address]}),mt==="stale"||Xe())return;if(!mt)throw new Error("No liquidity for this pair")}const fn=mt?at:await Do(o.asset,dt.tokenIn,s,r);if(Xe())return;$(dt?.tokenIn??Se?.destination.address??null),le({request:nt,key:`${mr(jl(Ze))}:${Ae}`,expiresAt:Math.min(dt?.expiresAt??1/0,mt?.expiresAt??1/0)}),E(dt?.quote??null),M(mt?.quote??null),x(null),T(null),D(null);const wt=mt?.quote.amountIn??dt.quote.amountIn;O(De(wt,fn)),b(null),C(null)}}catch(rt){if(Xe())return;const ct=rt instanceof Error?rt.message:"Failed to get quote";C(ct),b(null),O(null),x(null),T(null),M(null),E(null),D(null),$(null)}finally{Xe()||h(!1)}},ft||Se?kt:0),()=>{Te.current++,N.current&&clearTimeout(N.current)}},[nt]),{inputAmount:Qe&&n==="input"?P:null,inputDecimals:Qe&&n==="input"?Q:null,quoteKey:Qe?K.key:null,quoteExpiresAt:Qe?K.expiresAt:null,refreshQuote:q,isQuoting:xe===nt?g:ft||!!Se,quoteError:xe===nt?y:null,estimatedOutput:Qe?S:null,estimatedInput:Qe?A:null,resolvedSwap:Qe?v:null,exactOutputSwap:Qe?k:null,quoteAmountOut:Qe?I:null,resolvedTokenIn:ft&&Qe?oe??We:We,isDirect:ke,needsSwap:ft,selectedIsEquivalent:Ye,sourceSwap:Qe?F:null,sourceExactOutputSwap:Qe?B:null,pivot:Se}}function Ss(e){const{enabled:t=!0,destinationToken:n,selectedAsset:o,paymentAmount:r="0",sourceChains:s,supportedSourceAssets:a,buildActionCalls:i,feeExecutionMode:l="user-transfer",buildSpicenetBatch:c,onPayExecute:u,resolveExactOutputSwap:d,amountDirection:p=e.feeOnlyAction?"output":e.fundingSources?"input-inclusive":"input",onSuccess:w,onError:m}=e,g=Ca(n,t),h=g.token??Ia,y=!!e.fundingSources,C=!!e.combineSourceBalances||y,S=Ca(e.fundingSources?.token,t&&y),b=S.token??Ia,A=t&&!!g.token,O=p==="output",v=p==="input-inclusive",x=e.feeFunding?.length!==0&&(e.actionProceeds==="output"||!!e.feeFunding?.length),F=O?"output":"input",T=h.chainId,B=an(_t),M=mp(B?.feeToleranceBps),k=B?.mode||"7702",E=!1,I=!!B?.isWhitelistGateActive,D=!!B?.isWhitelistConfigured&&B?.isUserWhitelisted!==!0,P=ge(()=>s??B?.supportedChainIds??[],[s,B?.supportedChainIds]),H=a,{address:Q,isConnected:G,isReady:oe,isAuthenticated:$,provider:V}=Eo(),{execute:re,estimate:X,clearStatus:he}=Dr(),{externalWallet:be,embeddedAddress:fe,activeWallet:xe,activeAddress:te}=Tr(),K=B?.externalWalletAddress,le=B?.embeddedWalletAddress||fe,N=o,Le=oa(N?.asset,k!=="7702"),Te=!!N&&N.asset.chainId===h.chainId&&ee(pt(N.asset.address),pt(h.address)),z=!e.quoteOnlyAccount&&(k!=="7702"||e.actionExecution?.wallet==="external")&&Le&&Te&&(!O||Number(r)>0)&&!e.feeOnlyAction&&!e.actionProceeds,q=Le&&!z,ne=e.actionExecution?.wallet==="external"&&!z,de=ne?[h.chainId,...N?.asset._source==="wallet"?[N.asset.chainId]:[]].find(W=>!B?.rpcOverrides?.[W]):void 0,J=y&&(p!=="input-inclusive"||N||e.feeOnlyAction||e.actionInput||e.actionProceeds||e.actionExecution||k!=="7702")?"Combined funding supports an input-inclusive account purchase without a selected token.":y&&S.error?S.error:g.error?g.error:u?"Move onPayExecute protocol calls to buildActionCalls and application updates to onSuccess before continuing.":ne&&(O&&!(Number(r)>0)||e.feeOnlyAction||e.actionProceeds||e.prependSourceEscrow||Fe(h.address))?"External wallet execution requires a positive ERC20 supply or payment with SDK-managed funding.":de!==void 0?`Configure rpcOverrides for chain ${de} before routing to the external caller.`:null,ie=ge(()=>ne&&K?(W,U)=>rh(W,U,K):i,[ne,K,i]),{displayAssets:ze,filteredSpiceAssets:Se,walletAssets:Ce,embeddedWalletAddress:et,refreshSpiceAssets:Me,refreshWalletAssets:Ne,loading:We,refreshing:we,error:Ye}=cu({address:Q,destinationToken:h,supportedSourceAssets:H,sourceChains:P,additionalSourceTokens:[...e.additionalSourceTokens??[],...N?.asset._source==="wallet"?[{address:N.asset.address,chainId:N.asset.chainId,decimals:N.asset.decimals,symbol:N.asset.symbol,name:N.asset.name,logoURI:N.asset.logoURI}]:[]],includeExternalWalletAssets:e.includeExternalWalletAssets,includeCrossChainEmbeddedAssets:e.includeCrossChainEmbeddedAssets,enabled:A&&(!!e.quoteOnlyAccount||(k!=="7702"?!!K:!!le))}),ke=e.quoteOnlyAccount??et,He=[...Ce,...Se].filter(W=>!y||W.location!=="external"&&ee(W.owner,le)),ft=JSON.stringify(He,(W,U)=>typeof U=="bigint"?U.toString():U),Ze=ge(()=>He,[ft]),nt=JSON.stringify([C,le,T,Ze.map(W=>[ve(W),W.balance.toString(),W.decimals,W.receiptTokenDecimals,W.balanceStatus,W.balanceError,W.chainTokens])]),[Qe,pe]=L(null),Oe=se(W=>C?bs(W,Ze,le??void 0,T):void 0,[C,Ze,le,T]);ue(()=>{if(!C||!A||!le)return;let W=!1;pe(null);const U=new Map;for(const ae of Ze){const me=Oe(ae);if(me)U.set(ve(me.escrow),me);else if(ae.location==="rollup"&&ae.owner?.toLowerCase()===le.toLowerCase()&&ae.chainId===T&&!ae.balanceError&&ae.balanceStatus!=="stale"){const ce=Object.entries(ae.chainTokens??{}).filter(([Pe])=>Pe.toLowerCase().startsWith(`evm:${T}:`));ce.length===1&&ce[0][1].decimals!==void 0&&U.set(ve(ae),{owner:ae.owner,chainId:T,token:ce[0][0].split(":")[2],decimals:ce[0][1].decimals,escrow:ae})}}return Promise.allSettled([...U].map(async([ae,me])=>{const ce=await Vo(me.owner,me.chainId,me.token);if(!ce.entries.some(Pe=>Pe.receiptToken===me.escrow.receiptTokenId&&Pe.decimals===me.escrow.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");return[ae,pn(ce.available,me.decimals,me.escrow.decimals,"floor")]})).then(ae=>{const me=ae.flatMap(ce=>ce.status==="fulfilled"?[ce.value]:[]);W||pe({scope:nt,balances:Object.fromEntries(me)})}),()=>{W=!0}},[C,A,le,nt,Oe]);const at=se(W=>!C||W.owner?.toLowerCase()!==le?.toLowerCase()||W.chainId!==T?!1:Ze.some(U=>U.owner?.toLowerCase()===W.owner?.toLowerCase()&&U.chainId===T&&(W.location==="embedded"&&U.location==="rollup"&&Object.keys(U.chainTokens??{}).some(ae=>ae.toLowerCase()===`evm:${T}:${W.address.toLowerCase()}`)||W.location==="rollup"&&U.location==="embedded"&&Object.keys(W.chainTokens??{}).some(ae=>ae.toLowerCase()===`evm:${T}:${U.address.toLowerCase()}`))),[C,le,T,Ze]),Ke=se((W,U)=>{const ae=Ze.find(Pe=>ve(Pe)===ve(W));if(!ae)return;const me=Oe(ae);if(!me||Qe?.scope!==nt)return;const ce=Qe.balances[ve(me.escrow)];if(ce!==void 0)return bs(ae,Ze,le??void 0,T,ce,U)},[Oe,Qe,nt,Ze,le,T]),Ae=se(W=>{if(!C)return W.balance;const U=Ze.find(ae=>ve(ae)===ve(W));if(!(!U||U.balanceError||U.balanceStatus==="stale")&&!(C&&U.location!=="external"&&U.owner?.toLowerCase()!==le?.toLowerCase()))return at(U)?Ke(U)?.availableBalance:C&&U.location==="rollup"?Qe?.scope===nt?Qe.balances[ve(U)]:void 0:U.balance},[Ze,at,Ke,C,Qe,nt,le]),Xe=ge(()=>{if(!C)return ze;const W=new Set;return ze.filter(U=>{const ae=Oe(U);if(!ae)return!0;const me=ve(ae.escrow);return W.has(me)?!1:(W.add(me),!0)})},[ze,C,Oe]),kt=JSON.stringify(e.fundingSources?.positionIds??[]),Ge=ge(()=>{if(!y||!S.token||!le)return[];const W=new Set(JSON.parse(kt));return Ze.filter(U=>W.has(ve(U))&&Cs(U,le,b)&&(U.location==="rollup"||P.includes(U.chainId))&&So(U,"spend-source",{...B,isWhitelistGateActive:I},b,H).eligible)},[y,S.token,le,kt,Ze,b,P,B,H]),Bt=ge(()=>Ge.flatMap(W=>{const U=W.location==="rollup"?Qe?.scope===nt?Qe.balances[ve(W)]:void 0:W.balance;return U===void 0||U<=0n||U>W.balance?[]:[{asset:W,availableAmount:U,reservedAmount:W.balance-U}]}),[Ge,Qe,nt]),rt=JSON.stringify(Bt,(W,U)=>typeof U=="bigint"?U.toString():U),ct=x||e.feeFunding?.length!==0&&O&&!!N&&!!Ke(N.asset),dt=ge(()=>e.feeOnlyAction||ct?ze.filter(W=>W.balance>0n&&W.location!=="external"&&(W._source==="spice"||W._source==="wallet"&&W.chainId===T)).flatMap(W=>{if(!C||W.location!=="rollup")return[W];const U=Qe?.scope===nt?Qe.balances[ve(W)]:void 0;return U===void 0?[]:[{...W,balance:U}]}):[],[ze,e.feeOnlyAction,ct,T,C,Qe,nt]),mt=N?[...Ce,...Se].find(W=>ve(W)===ve(N.asset)):void 0,fn=ge(()=>N&&mt?{...N,asset:mt}:N,[N,mt]),wt=N?So(mt??N.asset,"spend-source",{allowedTokens:B?.allowedTokens,rpcOverrides:B?.rpcOverrides,liquidityVenues:B?.liquidityVenues,isWhitelistGateActive:I},h,H):null,ht=N&&mt?Ke(mt):void 0,Wt=C?N&&mt?Ae(mt):void 0:N?.asset.balance,Ft=C&&N&&(at(N.asset)||N.asset.location==="rollup")?Wt??0n:mt?mt.balance<(N?.asset.balance??0n)?mt.balance:N.asset.balance:0n,[Z,Ut]=L(!1),[it,Tt]=L(!1),en=j(!1),bn=j(!1),Re=j(!0);To(()=>(Re.current=!0,()=>{Re.current=!1,jn.current.accepted&&Nn.current?.abort()}),[]);const[Gt,Ot]=L(null),[Ln,Rt]=L(null),Cn=j(0),jn=j({accepted:!1}),Gn=j(m);Gn.current=m;const Bn=se(W=>{Ot(W),typeof W=="string"&&W&&Gn.current?.(new Error(W),ns(W))},[]),[In,xn]=L("idle"),[On,Dt]=L(""),[Rn,Sn]=L(null),[Yt,qt]=L(!1),[Je,St]=L(null),[ao,ln]=L(null),[io,mn]=L(!1),[_n,Jt]=L(!1),[Mn,An]=L(null),ut=j(N),Kn=j(!1),Nn=j(null),Mt=j(null),Pn=ke||fe||Q,xo=qe.getBaseUrl(),Y=`${xo}:${Pn?.toLowerCase()??""}`,Ie=j(Y);Ie.current=Y;const[$e,It]=L({scope:Y,checking:!1,supported:null,pending:!1,error:null}),tn=j(0),Lt=j(null),nn=j(0),$t=j({scope:Y,supported:null,terminal:new Map}),cn=j(null),Zt=j(null),En=j(null),dn=j(null),qn=j(null),Vt=j(w),Dn=j(null),zn=j(!1),[Ko,gt]=L(null),[Kt,tr]=L(null),[nr,or]=L(!1),[Qr,Vr]=L(0),Hn=Je?.status==="success"?Je.txHash:In==="success"?Rn:null,lo=!!Hn&&Ko!==Hn,rr=j(lo);rr.current=lo;const _=se(async(W,U=!1)=>{if(Lt.current?.scope===Y&&Lt.current.version===nn.current&&!U)return!1;const ae=Mt.current?.scope===Y?Mt.current.progress:void 0;if(z&&!ae?.actionId&&ae?.submissionStatus!=="unknown"||!Pn)return!0;const me=++tn.current,ce=()=>Re.current&&Ie.current===Y&&tn.current===me,Pe=new Jr;Pe.setBaseUrl(xo),It(Ee=>({...Ee.scope===Y?Ee:{supported:null,pending:!1},scope:Y,checking:!0,error:null}));try{$t.current.scope!==Y&&($t.current={scope:Y,supported:null,terminal:new Map});const Ee=$t.current,ot=W&&Ee.supported!==null?Ee.supported:await Pe.supportsAutomaticContinuation();if(!ce())return!1;Ee.supported=ot;const rn=Mt.current?.scope===Y?Mt.current:null;let yt=rn?.progress;if(yt?.submissionStatus==="unknown"&&!yt.actionId){const At=yt.idempotencyKey;if(!At)throw new Error("The original submission identity is unavailable.");const hn=await Pe.getActionBySubmission(Pn,At);if(!ce())return!1;if(!hn)return It({scope:Y,supported:ot,checking:!1,pending:!0,error:null}),!1;const[Wn,gn="0"]=hn.intentIds[0].split("/");yt={...yt,actionId:Wn,intentId:hn.intentIds[0],intentIndex:Number(gn),autoContinue:hn.autoContinue===!0,submissionStatus:void 0},rn&&(rn.progress=yt)}const Po=ot?W??await Pe.getWalletActions(Pn,{pendingOnly:!0}):[];if(!ce())return!1;let oo=!1,uo,Zo=0;const Ao=new Set([...yt?.actionId?[yt.actionId]:[],...Po.map(At=>At.actionId)]);for(const At of Ee.terminal.keys())Ao.has(At)||Ee.terminal.delete(At);for(const At of Ao){const hn=Po.find(vn=>vn.actionId===At);if(hn&&hn.intents.length!==1){oo=!0,uo??(uo=hn);break}const Wn=yt?.actionId===At,gn=Wn?yt.intentIndex??0:0,Pt=`${At}/${gn}`;let Fn=Ee.terminal.get(At)??"unresolved";if(ot&&Fn==="unresolved"){if(Zo===4){oo=!0,uo??(uo=hn);break}Zo++,Fn=await Pe.getIntentRecoveryStatus(At,gn)}else!ot&&Wn&&yt?.totalSteps&&(await Promise.all(Array.from({length:yt.totalSteps},(vn,st)=>Pe.checkStepStatus(Pt,st,!0)))).every(vn=>vn.data.status==="success")&&(Fn="completed");if(!ce())return!1;if(Fn==="unresolved"){oo=!0,uo??(uo=hn);break}if(Ee.terminal.set(At,Fn),Ee.terminal.size>100&&Ee.terminal.delete(Ee.terminal.keys().next().value),!(!Wn||!rn)){if(Fn==="completed"&&yt?.step!=="success"&&en.current){oo=!0;break}if(Fn==="completed"&&yt?.step!=="success"&&!en.current){if(rn.routedExternal)throw new Error("Funds were delivered, but the wallet action is not confirmed. Check wallet activity before trying again.");const vn=rn.batches;let st=yt?.destinationStepIndex,ko=yt?.destinationChainId;if(st===void 0||ko===void 0){if(yt?.totalSteps!==vn?.length)throw new Error("The original destination is unavailable. Check this action's status before continuing.");for(st=(vn?.length??0)-1;st>=0&&Oo(vn[st].chainId);)st--;ko=vn?.[st]?.chainId}if(!Number.isSafeInteger(st)||st<0||st>=(yt?.totalSteps??0)||!Number.isSafeInteger(ko)||!ko||Oo(ko))throw new Error("The original destination is unavailable. Check this action's status before continuing.");const Wo=await Pe.checkStepStatus(Pt,st,!0);if(!ce())return!1;const La=await od(Ct(ko),Wo.data.transactionHash);if(!ce())return!1;yt={...yt,step:"success",message:"Transaction confirmed",txHash:La,submissionStatus:void 0},rn.progress=yt,Sn(La),xn("success"),Ot(null),Dt("Transaction confirmed"),St(sp=>sp&&{status:"success",txHash:La})}else Fn==="cancelled"&&(rn.progress=void 0)}}return It({scope:Y,supported:ot,checking:!1,pending:oo,error:null,action:uo}),!oo}catch(Ee){return ce()&&It(ot=>({...ot,scope:Y,supported:$t.current.scope===Y?$t.current.supported:null,checking:!1,pending:!0,error:Un(Ee,"The original action status is unavailable. Check again before submitting.")})),!1}},[z,Pn,Y,xo]),ye=Mt.current?.scope===Y?Mt.current.progress:void 0,vt=!!Pn&&(!z||ye?.submissionStatus==="unknown"||!!ye?.actionId&&ye.step!=="success"),Ue=$e.scope===Y,Ve=vt&&Ue&&$e.pending,_e=ia(Pn,vt&&Ue&&$e.supported===!0&&(A||Ve),{pendingOnly:!0}),co=j({scope:Y,..._e});co.current={scope:Y,..._e};const sr=j(null),Ir=se(async()=>{await _(),_e.error&&_e.refresh()},[_,_e.refresh,_e.error]),ar=vt&&(Ue?$e.checking||$e.supported===null&&!$e.error||_e.loading:!0),ir=vt&&Ue?$e.error??_e.error:null,Qu=!vt||Ue&&!ar&&!Ve&&!ir;ue(()=>{if(!(!A&&!ye?.actionId&&ye?.submissionStatus!=="unknown"))return _(),()=>{tn.current++,Lt.current?.scope===Y&&(Lt.current=null)}},[Y,A,_]),ue(()=>{if(!_e.updatedAt||_e.loading||_e.error||Lt.current?.scope===Y&&Lt.current.version===nn.current)return;const W=sr.current;W?.scope===Y&&W.revision===_e.revision||(sr.current={scope:Y,revision:_e.revision},_(_e.actions))},[_e.revision,_e.loading,_e.error,it,Y,_]),ue(()=>{ut.current=N},[N]);const zt=z?K:ke||fe||Q,eo=A&&!Z&&In==="idle"&&!J&&!D&&!!zt&&!z&&!O&&v&&l==="user-transfer"&&!e.feeOnlyAction&&!e.actionInput&&!e.actionProceeds&&!!N&&Number(N.amount||"0")===0&&!!wt?.eligible&&Ft>0n,jr=ge(()=>{if(!eo||!N)return N;const W=10n**BigInt(N.asset.decimals);return{...N,amount:De(Ft<W?Ft:W,N.asset.decimals)}},[eo,N,Ft]),Fs=fu({enabled:A&&!D&&!z&&!y,direction:F,selectedAsset:jr,destinationToken:h,chainId:T,recipient:zt,paymentAmount:r,resolveExactOutputSwap:d,resolveInputSwap:e.resolveInputSwap,maxSlippage:e.maxSlippage}),Sr=z?{...Fs,quoteKey:"direct-external",quoteExpiresAt:null,quoteAmountOut:null,inputAmount:null,inputDecimals:N?.asset.decimals??null,isQuoting:!1,quoteError:null,isDirect:!0,needsSwap:!1,selectedIsEquivalent:!0,resolvedTokenIn:h.address,resolvedSwap:null,exactOutputSwap:null,sourceSwap:null,sourceExactOutputSwap:null,pivot:null,estimatedInput:O?r:N?.amount??null,estimatedOutput:O?r:N?.amount??null}:Fs,Nt=Sr,{isQuoting:pl,resolvedSwap:Ts,exactOutputSwap:Bs,quoteAmountOut:fl,resolvedTokenIn:to,isDirect:ml,needsSwap:No,selectedIsEquivalent:Vu,sourceSwap:Os,sourceExactOutputSwap:Rs,pivot:Ht}=Sr,vo=O||y?parseFloat(r||"0"):parseFloat(N?.amount||"")||0,ju=N?.asset?._source==="wallet",Gu=!!N?.asset&&ju&&N.asset.chainId!==T,Ku=N?Number(De(Ft,N.asset.decimals)):0,Yu=ge(()=>{if(!N||O)return!1;try{return Tn(N.amount||"0",N.asset.decimals)>Ft}catch{return!0}},[N,O,Ft]);ue(()=>{if(!A){Cn.current++,Rt(null),he?.(),Bn(null),Ut(!1);const W=ye?.submissionStatus==="unknown"||!!ye?.actionId&&ye.step!=="success";!lo&&!Ve&&!W&&(xn("idle"),Dt(""),Sn(null),qt(!1),St(null),Mt.current?.scope===Y&&(Mt.current.progress=void 0)),ln(null),mn(!1),Jt(!1),An(null),Kn.current=!1,Nn.current&&!Ve&&!W&&(Nn.current.abort(),Nn.current=null)}},[A,lo,Ve,Y]);const hl=se(W=>{if(!Re.current||Ie.current!==Y||W.user&&!ee(W.user,Pn))return;const U=Mt.current;U?.scope===Y&&(W.actionId||W.submissionStatus==="unknown")&&((!U.progress?.actionId&&W.actionId||!U.progress?.submissionStatus&&W.submissionStatus==="unknown")&&tn.current++,U.progress={...U.progress,...W},It(ae=>({...ae,scope:Y,checking:!1,pending:W.step!=="success",error:null}))),xn({building:"building","signing-delegation":"signing-delegation","signing-intent":"signing-intent",submitting:"submitting",executing:"executing",success:"success",error:"error"}[W.step]||"executing"),Dt(W.message),W.txHash&&Sn(W.txHash)},[Y,Pn]),lr=ge(()=>({currentPaymentAmount:r,isFeeInclusiveInput:v,feeOnlyAction:e.feeOnlyAction,swapInputAmount:Sr.inputAmount,destinationToken:h,embeddedWalletAddress:ke,providerEmbeddedAddress:fe,externalWalletAddress:K,address:Q,recipient:e.recipient??(k!=="7702"?K:void 0),isNon7702:E,isPayMode:O,resolvedChainId:T,buildActionCalls:ie,feeExecutionMode:l,buildSpicenetBatch:c,selectedAsset:N,combinedSourceGroup:ht,needsSwap:No,resolvedSwap:Ts,exactOutputSwap:Bs,quoteAmountOut:fl,resolvedTokenIn:to,sourceSwap:Os,sourceExactOutputSwap:Rs,pivot:Ht,resolveSourceExactOutputSwap:async W=>{if(!Ht||!zt)throw new Error("Swap route is not ready.");const U=await pu({chainId:Ht.source.chainId,recipient:zt,tokenIn:N.asset.address,tokenOut:Ht.source.address,amountOut:W,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}).catch(()=>null);if(!U)throw new Error("No liquidity for this pair.");return U},resolveInputSwap:async(W,U)=>{if(!to||!zt)throw new Error("Swap route is not ready.");return Is({chainId:T,recipient:zt,tokenIn:to,tokenOut:h.address,amountIn:W,selectedSwap:U,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap})}}),[r,ht,h,ke,fe,K,Q,e.recipient,e.feeOnlyAction,e.maxSlippage,e.resolveInputSwap,Sr.inputAmount,v,k,E,O,T,ie,l,c,N,ht,No,Ts,Bs,fl,to,Os,Rs,Ht,zt,B?.liquidityVenues]),Gr=ge(()=>y?b.address:N?.asset?Ht?Ht.destination.address:No&&to?to:N.asset.chainId===T?N.asset.address:to??so(N.asset,T)??h.address:h.address,[y,b,N,h.address,No,T,to,Ht]),no=JSON.stringify([y&&[b,kt],N&&ve(N.asset),p,e.quoteOnlyAccount,e.actionExecution?.wallet,h.address,h.chainId,h.decimals,e.recipient,k,y?void 0:K,z?K:ke,B?.apiUrl,B?.rpcOverrides,e.maxSlippage,l,M,e.feeOnlyAction,e.quotedInclusivePlatformFee,C,e.actionProceeds==="output"?"output":e.actionProceeds?.token,e.feeFunding,e.actionInput?.map(W=>[W.token,W.amount.toString()]),e.feeFundingReserve&&ve(e.feeFundingReserve.asset),e.feeFundingReserve?.amount.toString(),B?.liquidityVenues,B?.allowedTokens,I,H,P,e.actionInput,e.actionProceeds,e.feeFunding,T,Gr,Nt.pivot?.source.address,Nt.pivot?.destination.address],(W,U)=>typeof U=="bigint"?U.toString():U),gl=j(null);gl.current=A&&!Z&&!J&&!D?no:null,ue(()=>()=>{dn.current?.controller.abort(),dn.current=null},[no,A,Z,J,D]);const Yn=mr(qp(JSON.stringify([no,N?.amount,r]))),Yo=JSON.stringify([Q,le,fe,y?void 0:K,y?le:te,oe,$,G,V]),Na=JSON.stringify([Yo,B?.apiUrl,B?.network]),Ds=Ln===Na;ue(()=>()=>{Cn.current++,jn.current.accepted&&(Nn.current?.abort(),en.current=!1,Re.current&&(Tt(!1),Ut(!1),xn("idle"),Dt(""),Sn(null),Ot(null),qt(!1),St(null))),he?.()},[Na]);const xt=j({key:Yn,enabled:A,sourceBalance:Ft,physicalAssets:Ze,combinedCash:Qe,combinationScope:nt,sourceEligible:wt?.eligible,externalSignerReady:!!be&&!!K,owner:zt,walletScope:Yo,policyAvailable:!J&&!D});(xt.current.key!==Yn||xt.current.enabled!==A||xt.current.owner!==zt||xt.current.walletScope!==Yo||xt.current.policyAvailable!==(!J&&!D))&&nn.current++,xt.current={key:Yn,enabled:A,sourceBalance:Ft,physicalAssets:Ze,combinedCash:Qe,combinationScope:nt,sourceEligible:wt?.eligible,externalSignerReady:!!be&&!!K,owner:zt,walletScope:Yo,policyAvailable:!J&&!D};const Ms=j(!1),wl=j(e.onSubmit);wl.current=e.onSubmit;const yl=j(e.beforeSubmit);yl.current=e.beforeSubmit;const Ns=se(async W=>{if(!Ms.current||en.current)return;en.current=!0,Ms.current=!1;const U=qn.current,ae=xt.current,me=nn.current,ce=Cn.current,Pe={accepted:!1};jn.current=Pe;const Ee=()=>!Pe.accepted||Re.current&&ce===Cn.current&&xt.current.enabled&&xt.current.walletScope===ae.walletScope,ot=gn=>(...Pt)=>{Ee()&&gn(...Pt)},rn={...U,execution:{...U.execution,onProgress:ot(U.execution.onProgress)},ui:{setError:ot(U.ui.setError),setStep:ot(U.ui.setStep),setStatusMsg:ot(U.ui.setStatusMsg),setTxHash:ot(U.ui.setTxHash),setIsExecuting:ot(U.ui.setIsExecuting),setShowStatusPanel:ot(U.ui.setShowStatusPanel),setPaymentResult:ot(U.ui.setPaymentResult)}},yt=rn.feeQuote,Po=yt?.fundingSource,oo=JSON.stringify(Po,(gn,Pt)=>typeof Pt=="bigint"?Pt.toString():Pt),uo=JSON.stringify([yt?.sourceAllocation,yt?.feeSourceAllocation,yt?.fundingPlan],(gn,Pt)=>typeof Pt=="bigint"?Pt.toString():Pt),Zo=wl.current,Ao=Gn.current,At={operationKey:ae.key,feeQuote:yt,selectedAsset:rn.selectedAsset};Tt(!0),Ot(null);const hn=co.current.revision;sr.current={scope:Y,revision:hn};const Wn={scope:Y,version:me};Lt.current=Wn;try{try{const gn="The original action status is pending or unavailable. Check its status before submitting.";if(!await _(void 0,!0))throw new Error(gn);await yl.current?.(At);const Pt=co.current;if(Pt.scope!==Y||Pt.loading||Pt.error)throw new Error(Pt.error??gn);if(Pt.revision!==hn&&Pt.updatedAt&&(sr.current={scope:Y,revision:Pt.revision},!await _(Pt.actions,!0)))throw new Error(gn);const Fn=co.current;if(Fn.scope!==Y||Fn.loading||Fn.error||Fn.revision!==hn&&Fn.actions.some(ko=>ko.intents.length!==1||$t.current.scope!==Y||!$t.current.terminal.has(ko.actionId)))throw new Error(Fn.error??gn);const vn=xt.current,st=qn.current;if(!Re.current||me!==nn.current||!vn.enabled||vn.key!==ae.key||vn.owner!==ae.owner||!bn.current||st?.feeQuote!==yt||yt?.fundingSource!==Po||JSON.stringify(yt?.fundingSource,(ko,Wo)=>typeof Wo=="bigint"?Wo.toString():Wo)!==oo||JSON.stringify([yt?.sourceAllocation,yt?.feeSourceAllocation,yt?.fundingPlan],(ko,Wo)=>typeof Wo=="bigint"?Wo.toString():Wo)!==uo)throw new Error("The wallet, policy or accepted action quote changed. Review again before submitting.");rn.validateFeeQuote?.(),Zo?.(),Vt.current=rn.onSuccess,Mt.current={key:ae.key,quote:yt,scope:Y,routedExternal:ne}}catch(gn){const Pt=Un(gn,"Unable to prepare this action");Re.current&&(Ot(Pt),xn("idle")),Ao?.(new Error(Pt),ns(Pt));return}finally{Lt.current===Wn&&(Lt.current=null)}await(W?Jd(rn):Xd(rn))}finally{jn.current===Pe&&(en.current=!1,Re.current&&Tt(!1))}},[_,Y,ne]),bl=se(()=>Ns(!1),[Ns]),Ps=z,Pa=D,xl=!Zt.current?.quote.fundedFeeToken&&(v||!!Ht)&&!!ao&&ao.netAmount===0n,Kr=ge(()=>!!e.feeOnlyAction||y&&vo>0||(!!N?.asset||!!e.actionProceeds)&&vo>0,[N,vo,e.actionProceeds,e.feeOnlyAction,y]),cr=ge(()=>!A||!Kr||!N?.asset&&!e.actionProceeds&&!e.feeOnlyAction&&!y?null:[Yn,y?rt:"",C?`${nt}:${Qe?.scope===nt?JSON.stringify(Qe.balances,(W,U)=>typeof U=="bigint"?U.toString():U):"pending"}`:"",O?"pay":"supply",p,N?ve(N.asset):"sdk-funded",e.actionInput?.map(W=>`${W.token.toLowerCase()}:${W.amount}`).join(",")??"",e.feeFunding?.join(",")??"",e.quoteOnlyAccount??"executable",e.quotedInclusivePlatformFee?"quoted-inclusive-fee":"split-inclusive-fee",JSON.stringify(B?.rpcOverrides),B?.apiUrl,e.recipient,N?.asset.address.toLowerCase(),N?.asset.chainId,N?.amount,r,h.address.toLowerCase(),h.chainId,T,Nt.resolvedTokenIn?.toLowerCase()??"",Nt.quoteKey,Nt.needsSwap?"swap":"direct",Nt.isDirect?"direct-token":"routed-token","7702",Te?"source-dest":"cross-chain",Nt.isQuoting?"quoting":"quoted",Nt.exactOutputSwap?.amountIn?.toString()??"",Nt.exactOutputSwap?.amountInMax?.toString()??"",Nt.exactOutputSwap?.venue??"",Nt.resolvedSwap?.amountOut?.toString()??"",Nt.quoteAmountOut?.toString()??"",Nt.sourceSwap?.amountOutMinimum?.toString()??"",Nt.sourceExactOutputSwap?.amountInMax?.toString()??"",Nt.pivot?.source.address.toLowerCase()??"",ke??"",fe??"",Q??""].join("|"),[A,C,nt,Qe,Yn,y,rt,e.actionProceeds,e.feeOnlyAction,e.actionInput,e.feeFunding,e.quotedInclusivePlatformFee,e.quoteOnlyAccount,Z,In,Kr,Ps,N,O,p,r,h,T,Nt,E,Te,ke,fe,Q]),vl=(W,U)=>{const ae=U.filter(me=>me.location==="rollup"&&Cs(me,zt,b));for(const me of W){if(me.location!=="embedded")continue;const ce=gr(me.chainId);for(const Pe of ae){const Ee=Object.entries(Pe.chainTokens??{}).filter(([ot])=>$n(ot)?.chainId===me.chainId);if(Ee.length&&(Ee.length!==1||!ee($n(Ee[0][0])?.address,ce?.address)||Ee[0][1].decimals!==void 0&&Ee[0][1].decimals!==ce?.decimals))throw new Error("The source funding receipt mapping changed. Refresh before submitting.")}}},Ws=se(async(W,U)=>{if(!y||!S.token||!zt||J)throw new Error(J??"The account funding route is not ready.");if(Ge.some(ae=>ae.location==="rollup"&&(Qe?.scope!==nt||Qe.balances[ve(ae)]===void 0)))throw new Error("The cash reservations are unavailable. Refresh before submitting.");return vl(Bt.map(ae=>ae.asset),Ze),ru({owner:zt,token:b,budget:W,sources:Bt,destinationToken:h,beneficiary:e.recipient,buildActionCalls:ie,requestTimestampMs:Date.now(),signal:U,resolveSourceInput:(ae,me,ce)=>Is({chainId:ae.chainId,recipient:zt,tokenIn:pt(ae.address),tokenOut:me.address,amountIn:ce,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveSourceOutput:(ae,me,ce)=>pu({chainId:ae.chainId,recipient:zt,tokenIn:pt(ae.address),tokenOut:me.address,amountOut:ce,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveDestinationInput:ae=>Is({chainId:b.chainId,recipient:zt,tokenIn:b.address,tokenOut:h.address,amountIn:ae,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap}),estimate:X})},[y,S.token,zt,J,b,Bt,Ge,Ze,Qe,nt,h,e.recipient,ie,B?.liquidityVenues,e.maxSlippage,e.resolveInputSwap,X]),Zu=ge(()=>{if(!y||!S.token||We||Ye)return;const W=new Set(JSON.parse(kt));if(Ze.some(ae=>W.has(ve(ae))&&(ae.balanceStatus==="stale"||!!ae.balanceError)))return;let U=0;for(const ae of Ge){const me=ae.location==="rollup"?Qe?.scope===nt?Qe.balances[ve(ae)]:void 0:ae.balance;if(me===void 0)return;if(me===0n)continue;const ce=Number(De(ae.balance,ae.decimals)),Pe=Number(De(me,ae.decimals));if(ae.priceStatus!=="fresh"||!Number.isFinite(ae.balanceUsd)||ae.balanceUsd<=0||!Number.isFinite(ce)||ce<=0)return;U+=ae.balanceUsd*Pe/ce}if(!(!Number.isFinite(U)||U<0||U>=1e15))return Tn(U.toFixed(b.decimals),b.decimals)},[y,S.token,We,Ye,kt,Ze,Ge,Qe,nt,b.decimals]),Xu=se(async()=>{if(!y||!A||D||J)return null;const W=xt.current;try{const U=await Ws("max");return!Re.current||!xt.current.enabled||xt.current.key!==W.key||xt.current.owner!==W.owner?null:U.fundingPlan?De(U.fundingPlan.totalBudget,b.decimals):null}catch{return null}},[y,A,D,J,Ws,b.decimals]),Yr=se(async(W,U,ae)=>{if(y)return Ws(Tn(r,b.decimals),W);if(z){if(!K||!N)throw new Error("Connect the external wallet before continuing.");return Ym({selectedAsset:U?.selectedAsset??N,destinationToken:h,paymentAmount:O?r:void 0,account:K,beneficiary:e.recipient,buildActionCalls:ie,feeExecutionMode:l})}const me={...ae??{...lr,selectedAsset:jr},requestTimestampMs:Date.now()};if(C&&N&&at(N.asset)&&!ht)throw new Error("The combined source balance and reservations are unavailable. Refresh before submitting.");const ce={combineSourceBalances:C,combinedSourceGroup:ht,getCombinedSourceGroup:Ke,signal:W,feeToleranceBps:M,externalGasRecipient:ne?K:void 0,externalGasCalls:ne?async Ee=>(await $d({quote:Ee,recipient:K,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:l,buildCalls:i})).calls:void 0,feeOnlyAction:e.feeOnlyAction,actionInput:e.actionInput,actionProceeds:e.actionProceeds==="output"?void 0:e.actionProceeds,feeFunding:e.feeFunding,feeFundingBalances:dt,feeFundingReserve:e.feeFundingReserve,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveExactOutputSwap:d,selectedAsset:jr,isPayMode:O,isFeeInclusiveInput:v,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,parsedAmount:eo?Number(jr.amount):vo,needsSwap:Nt.needsSwap,exactOutputSwap:Nt.exactOutputSwap,isNon7702:E,isSourceDestToken:Te,currentPaymentAmount:r,destinationToken:h,feeExecutionMode:l,resolvedTokenIn:Nt.resolvedTokenIn,embeddedWalletAddress:ke,providerEmbeddedAddress:fe,resolvedChainId:T,isConnected:G,address:Q,ready:oe,authenticated:$,quoteOnly:!!e.quoteOnlyAccount,isDirect:Nt.isDirect,resolvedSwap:Nt.resolvedSwap,sourceSwap:Nt.sourceSwap,sourceExactOutputSwap:Nt.sourceExactOutputSwap,pivot:Nt.pivot,isQuoting:Nt.isQuoting,executionTokenAddress:Gr,buildPayChainBatches:Ee=>qr(me,Ee),buildSupplyChainBatches:Ee=>wa(me,Ee),estimate:X,...U},Pe=!ce.feeOnlyAction&&ce.selectedAsset&&ct&&(ce.selectedAsset.asset._source==="wallet"||!!ce.combinedSourceGroup)&&ce.selectedAsset.asset.chainId===T;if(ct&&!ce.feeOnlyAction&&ce.selectedAsset&&!Pe&&e.feeFunding&&e.feeFunding.join(",")!==ya.join(","))throw new Error("Fee-source overrides require a wallet source on the action chain.");return Pe||ct&&e.actionProceeds==="output"?Pd(ce,me,jo,e.actionProceeds==="output"):jo(ce)},[y,Ws,b.decimals,N,e.quoteOnlyAccount,ct,C,ht,Ke,at,jr,eo,z,ne,i,K,e.recipient,ie,e.feeOnlyAction,e.actionInput,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,dt,e.feeFundingReserve,e.maxSlippage,d,M,B?.liquidityVenues,O,v,vo,Nt,E,Te,r,h,l,ke,fe,lr,X,T,G,Q,oe,$,Gr]);ue(()=>{cn.current=Yr},[Yr]);const Wa=se(async W=>{if(O)return null;if(!N||ve(W)!==ve(N.asset)||!zt||!to)throw new Error("Select a source before calculating Max.");let U=Ae(W);if(U===void 0)throw new Error("This source is unavailable.");if(z){if(!W.isNative&&!Fe(W.address))return De(U,W.decimals);const ae=Ct(W.chainId),me=K;let ce=U;for(let Pe=0;Pe<8;Pe++){const Ee=await Yr(void 0,{selectedAsset:{asset:W,amount:De(Pe===0?1n:ce,W.decimals)}});if(!Ee?.actionDefinition)throw new Error("The direct action could not be sized.");const ot=await nu({client:ae,account:me,calls:Ee.actionDefinition.calls}),rn=U>ot?U-ot:0n;if(rn===0n)return"0";if(Pe>0&&ce<=rn)return De(ce,W.decimals);ce=rn}throw new Error("Network gas could not be reserved for Max. Enter a smaller amount.")}if(q&&(W.isNative||Fe(W.address))){if(!K)throw new Error("Connect the source wallet before calculating Max.");const ae=await su({client:Ct(W.chainId),account:K,recipient:zt,token:W.address,isNative:!0,amount:1n});U-=ae}return ct&&v&&W._source==="wallet"&&W.chainId===T?De(U>0n?U:0n,W.decimals):Hd({balance:U,decimals:W.decimals,planForAmount:async ae=>{const me={...lr,requestTimestampMs:Date.now(),selectedAsset:{asset:W,amount:De(ae,W.decimals)}};let ce=ae;Ht?(me.sourceSwap=await Is({chainId:W.chainId,recipient:zt,tokenIn:W.address,tokenOut:Ht.source.address,amountIn:ae,maxSlippage:e.maxSlippage,liquidityVenues:B?.liquidityVenues,resolveInputSwap:e.resolveInputSwap}),ce=pn(me.sourceSwap.amountOutMinimum,Ht.source.decimals,Ht.destination.decimals,"floor")):ce=kn(ae,W.decimals,await Do(W,to,T,h)),me.resolvedSwap=No?await me.resolveInputSwap(ce):null,me.swapInputAmount=ce,me.quoteAmountOut=me.resolvedSwap?.amountOut??ce;const Pe=ct&&W._source==="wallet"&&W.chainId===T,Ee=await Yr(void 0,{selectedAsset:me.selectedAsset,...Pe?{isFeeInclusiveInput:!0}:{},parsedAmount:Number(me.selectedAsset.amount),sourceSwap:me.sourceSwap,resolvedSwap:me.resolvedSwap,isQuoting:!1,buildSupplyChainBatches:ot=>wa(me,ot)},me);return Pe&&Ee?.fundingSource?.kind==="input"&&!v?{...Ee,sourceSpendCap:ae+(ae-Ee.swapInputAmount)}:Ee}})},[N,ct,lr,O,z,zt,to,T,h,q,K,Ht,No,Yr,Ae,e.maxSlippage,e.resolveInputSwap,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,v,B?.liquidityVenues]),Ju=JSON.stringify([no,Yo,ft,N?.asset,e.feeFundingReserve,e.actionExecution?.recoveryKey,No,to,Ht,A,J,D],(W,U)=>typeof U=="bigint"?U.toString():U),kl=j(Wa);To(()=>{kl.current=Wa},[Wa]);const Cl=se(W=>kl.current(W),[Ju,ie,c,d,e.resolveInputSwap,typeof e.actionProceeds=="object"?e.actionProceeds.resolve:void 0,X]);vi({shouldRun:A&&!Z&&In==="idle"&&(Kr||eo)&&!Nt.isQuoting&&(!!cr||eo),deps:[A,Z,In,Kr,Ps,Nt.isQuoting,cr,eo,no],onSkip:()=>{if(!A){En.current=null,mn(!1),Jt(!1),An(null),ln(null);return}if(Z||In!=="idle"){mn(!1);return}if(!Kr){ln(null),mn(!1),Jt(!1),An(null);return}Nt.isQuoting&&(mn(!1),Jt(!1))},onCleanup:()=>mn(!1),delayMs:Nt.needsSwap||Nt.pivot?0:100,backgroundIntervalMs:3e4,run:async({isBackground:W,isCurrent:U,signal:ae})=>{if(eo){const ce=En.current;if(ce?.scope===no&&Date.now()-ce.at<3e4||dn.current?.scope===no&&Date.now()-dn.current.at<3e4)return;dn.current?.controller.abort();const Pe=new AbortController,Ee=cn.current?.(Pe.signal).then(ot=>{Pe.signal.aborted||gl.current!==no||!ot?.feeEstimate||(En.current={scope:no,at:Date.now(),feeEstimate:ot.feeEstimate,sourceGasSkim:ot.sourceGasSkim})}).catch(ot=>{Pe.signal.aborted||console.debug("[SpiceSupply] fee prewarm unavailable:",ot)})??Promise.resolve();dn.current={scope:no,at:Date.now(),controller:Pe,promise:Ee},await Ee;return}const me=cr;W||(An(null),mn(!0));try{if(dn.current?.scope===no&&await dn.current.promise,ae.aborted||!U())return;const ce=En.current,Pe=!O&&ce?.scope===no&&Date.now()-ce.at<3e4?ce:void 0;let Ee;try{Ee=await cn.current?.(ae,Pe?{initialFeeEstimate:Pe.feeEstimate,initialSourceGasSkim:Pe.sourceGasSkim}:void 0)}catch(ot){if(!Pe||ae.aborted||!U())throw ot;Ee=await cn.current?.(ae)}if(!U())return;if(Ee&&me){const ot=ne?await $d({quote:Ee,recipient:K,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:l,buildCalls:i}):void 0;if(ot&&Ee.externalGasReserve?.nativeAmount&&(ot.calls.length>Ee.externalGasReserve.currentTransactions||ot.calls.reduce((rn,yt)=>rn+yt.value,0n)>Ee.externalGasReserve.currentValue))throw new Error("The external action gas requirement changed. Refresh the quote.");if(ae.aborted||!U())return;Zt.current={key:me,quote:Ee,externalAction:ot},Ee.feeEstimate&&(En.current={scope:no,at:Date.now(),feeEstimate:Ee.feeEstimate,sourceGasSkim:Ee.sourceGasSkim}),ln(Ee.preview),Jt(!0)}else Zt.current=null,ln(null),Jt(!1);An(null)}catch(ce){if(!U())return;if(W&&Zt.current?.key===me){console.warn("[SpiceSupply] fee refresh failed:",ce);return}const Pe=Un(ce,"Unable to calculate fees for this action.");Zt.current=null,ln(ce instanceof va?ce.preview:null),Jt(!1),An(Pe)}finally{U()&&mn(!1)}}});const Il=se(()=>Ns(!0),[Ns]);ue(()=>{if(!Hn||Dn.current===Hn)return;Dn.current=Hn;const W=Vt.current;zn.current=!0,or(!0),tr(null),Promise.resolve().then(()=>W?.(Hn)).then(()=>{gt(Hn),Me(),Ne()}).catch(U=>{tr(`Transaction confirmed; application update needs retry: ${Un(U,"Unable to finalize the action")}`)}).finally(()=>{zn.current=!1,or(!1)})},[Hn,Qr]);const Sl=lo&&!Kt,$u=se(()=>{!rr.current||zn.current||(Dn.current=null,Vr(W=>W+1))},[]),_u=se(()=>{if(rr.current)return;const W=Mt.current?.progress;W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"||(qt(!1),St(null),Kn.current=!1,Me(),Ne())},[Me,Ne]),je=cr&&Zt.current?.key===cr?Zt.current.quote:null,Zr=je?Zt.current?.externalAction:void 0,ep=nn.current,dr=(W=!0)=>{if(J)throw new Error(J);if(!Re.current||!xt.current.enabled||xt.current.key!==Yn||nn.current!==ep||xt.current.walletScope!==Yo||!xt.current.policyAvailable)throw new Error("The source, amount, beneficiary or configuration changed. Review the form before continuing.");if(ne&&!xt.current.externalSignerReady)throw new Error("Connect the external wallet before funding.");if((N||e.feeOnlyAction||y)&&!je)throw new Error("A current action plan is required. Refresh the quote before submitting.");if(W&&je?.fundingPlan){const U=je.fundingPlan;if(vl(U.sources.map(ce=>ce.asset),xt.current.physicalAssets),!ee(U.owner,xt.current.owner)||!ee(U.token.address,b.address)||U.token.chainId!==b.chainId||U.token.decimals!==b.decimals||U.totalBudget!==Tn(r,b.decimals))throw new Error("The accepted account funding plan changed. Review again.");for(const ce of je.batches??[])if(!(ce.domain!=="spicenet"&&!Oo(ce.chainId)))for(const Pe of ce.calls){const Ee=Zn({abi:Ks,data:Pe.data});if(Ee.functionName!=="createWithdrawalRequest"||Ee.args[0].exp<=BigInt(Math.floor(Date.now()/1e3)))throw new Error("The accepted withdrawal expired. Refresh before funding this purchase.")}const ae=new Set(JSON.parse(kt)),me=new Set;for(const ce of U.sources){const Pe=xt.current.physicalAssets.find(ot=>ve(ot)===ce.positionId),Ee=Pe?.location==="rollup"?xt.current.combinedCash?.scope===xt.current.combinationScope?xt.current.combinedCash.balances[ce.positionId]:void 0:Pe?.balance;if(!Pe||me.has(ce.positionId)||!ae.has(ce.positionId)||!Cs(Pe,U.owner,U.token)||!So(Pe,"spend-source",{...B,isWhitelistGateActive:I},b,H).eligible||Pe.chainId!==ce.chainId||Pe.decimals!==ce.decimals||!ee(Pe.address,ce.token)||!ee(ce.owner,U.owner)||ce.sourceSpendCap<=0n||Ee===void 0||ce.sourceSpendCap>Ee)throw new Error("A funding source balance, owner or policy changed. Review again.");me.add(ce.positionId)}if(!me.size)throw new Error("The accepted funding sources are unavailable.")}if(W)for(const U of[je?.sourceAllocation,je?.feeSourceAllocation]){if(!U)continue;const ae=U.positions.find(ce=>ce.asset.location==="rollup"),me=xt.current.combinedCash?.balances[ae.positionId];if(me===void 0||xt.current.combinedCash?.scope!==xt.current.combinationScope)throw new Error("The combined source reservations are unavailable. Refresh before submitting.");ga(U,xt.current.physicalAssets,xt.current.owner??void 0,T,me)}if(z&&N?.asset.owner&&!ee(N.asset.owner,K))throw new Error("Reconnect the external wallet that owns the selected asset.");if(W&&N&&(je?.sourceSpendCap??0n)>xt.current.sourceBalance)throw new Error("The source balance changed. Review the available amount before continuing.");if(W&&N&&!xt.current.sourceEligible)throw new Error(wt?.reason??"This source is unavailable.");if(W)for(const U of[je?.sourceAllocation,je?.feeSourceAllocation])U&&ga(U,xt.current.physicalAssets,xt.current.owner??void 0,T)},Al=async()=>{if(dr(),je?.fundingPlan){const U=je.fundingPlan;for(const ae of U.sources){if(ae.asset.location!=="rollup")continue;const me=await Vo(U.owner,U.token.chainId,U.token.address);if(dr(),!me.entries.some(ce=>ce.receiptToken===ae.asset.receiptTokenId&&ce.decimals===ae.asset.receiptTokenDecimals)||pn(me.available,U.token.decimals,ae.decimals,"floor")<ae.sourceSpendCap)throw new Error("The cash receipt balance or reservations changed. Review again.")}return}const W=je?.sourceAllocation;for(const U of[W,je?.feeSourceAllocation]){if(!U)continue;const ae=await Vo(U.owner,U.chainId,U.token);dr();const me=await Ct(U.chainId).readContract({address:U.token,abi:lt,functionName:"balanceOf",args:[U.owner]});dr();const ce=xt.current.physicalAssets.map(Ee=>Ee.location==="embedded"&&ve(Ee)===U.positions.find(ot=>ot.asset.location==="embedded")?.positionId?{...Ee,balance:me}:Ee),Pe=U.positions.find(Ee=>Ee.asset.location==="rollup");if(!ae.entries.some(Ee=>Ee.receiptToken===Pe.asset.receiptTokenId&&Ee.decimals===Pe.asset.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");ga(U,ce,U.owner,U.chainId,pn(ae.available,U.decimals,Pe.asset.decimals,"floor"))}if(!W){const U=N?.asset.location==="rollup"?N.asset:je?.fundingSource?.asset?.location==="rollup"?je.fundingSource.asset:void 0;if(!C||!U)return;const ae=so(U,T);if(!ae)throw new Error("The cash receipt mapping is unavailable. Refresh before submitting.");const me=await Vo(zt,T,ae),ce=await Do(U,ae,T,h);dr();const Pe=je?.fundedFeeToken&&je.fundingSource?.asset?.location==="rollup"?pn(je.grossFundingAmount??0n,je.fundedFeeToken.decimals,U.decimals,"ceil"):je?.sourceSpendCap??0n;if(!me.entries.some(Ee=>Ee.receiptToken===U.receiptTokenId&&Ee.decimals===U.receiptTokenDecimals)||pn(me.available,ce,U.decimals,"floor")<Pe)throw new Error("The cash balance or reservations changed. Refresh before submitting.");return}},Xr=async()=>Al(),El=W=>({...W,sourceSpendCap:je?.sourceSpendCap,minimumDestinationAmount:je?.destinationAmount}),Us=je?.sourceAllocation?.insufficient||je?.feeSourceAllocation?.insufficient?!0:N&&je?.sourceSpendCap!==void 0?je.sourceSpendCap>Ft:Yu,Fl={...lr,resolvedSwap:je?.destinationSwap??lr.resolvedSwap,swapInputAmount:je?.swapInputAmount??lr.swapInputAmount};let Ar=!1;qn.current={selectedAsset:N,parsedAmount:vo,currentPaymentAmount:r,isInsufficientBalance:Us,isPayMode:O,isFeeInclusiveInput:v,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,feeOnlyAction:e.feeOnlyAction,actionProceeds:e.actionProceeds==="output"?void 0:e.actionProceeds,validateFeeQuote:()=>dr(!Ar),isNon7702:E,directExternalAction:z,isSourceDestToken:Te,needsSwap:No,exactOutputSwap:Bs,selectedIsEquivalent:Vu,resolvedTokenIn:to,sourceSwap:Os,sourceExactOutputSwap:Rs,pivot:Ht,embeddedWalletAddress:ke,providerEmbeddedAddress:fe,externalWallet:be,externalWalletAddress:K,activeSignerWallet:xe,activeSignerAddress:te,address:Q,isConnected:G,ready:oe,authenticated:$,provider:V,resolvedChainId:T,executionTokenAddress:Gr,destinationToken:h,buildActionCalls:ie,feeExecutionMode:l,feeToleranceBps:M,buildSpicenetBatch:c,onPayExecute:u,onSuccess:w,feeQuote:je,execution:{estimate:(W,U,ae,me)=>X(W,U,ae,{...me,userOverride:zt}),execute:async(W,U,ae,me,ce,Pe)=>{const Ee=Cn.current,ot=jn.current,rn=me;if(me=At=>{At.actionId&&(ot.accepted=!0),rn?.(At)},!ce){const At=new AbortController;Nn.current=At,ce=At.signal}const yt=ce,Po=()=>Re.current&&xt.current.enabled&&xt.current.walletScope===Yo&&Cn.current===Ee&&!yt.aborted,oo=()=>new Be("ABORT","Execution observation retired"),uo=async At=>{if(ot.accepted&&!Po())throw oo();return new Promise((hn,Wn)=>{const gn=()=>{ot.accepted&&Wn(oo())};yt.addEventListener("abort",gn,{once:!0}),At().then(Pt=>{!ot.accepted||Po()?hn(Pt):Wn(oo())},Wn).finally(()=>yt.removeEventListener("abort",gn))})},Zo=async()=>Ar?dr(!1):Al();if(await Xr(),await Ud(je?.externalGasReserve),ne&&!Zr)throw new Error("The external action plan is unavailable.");if(z){if(!je?.actionDefinition)throw new Error("The direct action plan is unavailable.");return ou({definition:je.actionDefinition,account:K,chainId:h.chainId,wallet:be,assertCurrent:Xr})}let Ao=!1;try{q&&N&&(Dt("Transfer the selected source to your embedded wallet"),await au({asset:N.asset,embedded:zt,external:K,externalWallet:be,amount:je?.sourceSpendCap??0n,assertCurrent:Xr,observer:{onSending:()=>{Ao=!0},onRejected:()=>{Ao=!1},onReverted:()=>{Ao=!1}}}),Ar=!0,await Zo()),Mt.current?.scope===Y&&(Mt.current.batches=W.map(st=>({...st})));const At=[W,U,ae,ne?st=>me?.(st.step==="success"?{...st,step:"executing",message:"Funds delivered. Confirm the action in your external wallet.",txHash:void 0}:{...st,txHash:void 0}):me,ce,{...Pe,userOverride:zt,requireDestinationReceipt:!0,resolveActionOutputCredits:async()=>[...await Pe?.resolveActionOutputCredits?.()??[],...je?.fundingPlan?.sources.flatMap(st=>st.asset.location==="embedded"&&st.swap?[{chainId:st.chainId,token:st.pivotToken.address,amount:st.amountOutMinimum}]:[])??[],...je?.externalGasReserve?.nativeAmount&&!Fe(Gr)?[{chainId:T,token:jt,amount:je.externalGasReserve.nativeAmount}]:[]],walletFundingRequirements:je?.fundingPlan?.sources.filter(st=>st.asset.location==="embedded").map(st=>({chainId:st.chainId,token:st.token,amount:st.sourceSpendCap})),walletFundingRequirement:je?.sourceAllocation?{chainId:je.sourceAllocation.chainId,token:je.sourceAllocation.token,amount:je.sourceAllocation.positions.find(st=>st.asset.location==="embedded")?.amount??0n}:N?.asset._source==="wallet"&&je?.sourceSpendCap!==void 0?{chainId:N.asset.chainId,token:N.asset.address,amount:je.sourceSpendCap}:void 0,validateBeforeSubmit:async st=>{if(await Zo(),await Ud(je?.externalGasReserve,st),await Pe?.validateBeforeSubmit?.(st),ne&&_d(st,h.address,h.chainId,K)!==Zr.amount)throw new Error("The external delivery changed. Review the quote before continuing.")}}],hn=()=>re(...At);let Wn,gn=0;for(;;)try{Wn=await uo(hn);break}catch(st){if(ot.accepted&&!Po())throw oo();if(!(st instanceof Be)||st.context.submissionStatus!=="accepted"||st.code==="ON_CHAIN_REVERT"||st.code==="ABORT")throw st;ot.accepted=!0,me?.({step:"executing",message:"Your action was accepted. Confirming the original transaction...",actionId:st.context.actionId,intentId:st.context.intentId}),await uo(()=>wo(Math.min(1e3*2**Math.min(gn++,5),3e4)))}if(!ne)return Wn;Ar=!0;const Pt=async()=>{if(ce?.aborted)throw new Error("Execution transaction aborted");await Zo()};await Pt(),await sh({hash:Wn,token:h.address,chainId:h.chainId,recipient:K,sender:zt,amount:Zr.amount}),await Pt();const Fn=await ou({definition:Zr,account:K,chainId:h.chainId,wallet:be,assertCurrent:Pt}),vn=Mt.current;return vn?.scope===Y&&vn.progress&&(vn.progress={...vn.progress,step:"success",txHash:Fn,message:"Transaction confirmed"},hl(vn.progress)),Fn}catch(At){const hn=At instanceof Be&&(At.context.submissionStatus==="unknown"||At.context.submissionStatus==="accepted");throw Re.current&&xt.current.enabled&&Cn.current===Ee&&xt.current.walletScope===Yo&&(hn||Ar||Ao)&&Rt(Na),Ao&&!Ar?new Be("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this action and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:At}):(Un(At),At)}},buildPayChainBatches:async W=>ba(await qr(Fl,El(W)),je?.externalGasReserve),buildSupplyChainBatches:async W=>ba(await wa(Fl,El(W)),je?.externalGasReserve),onProgress:hl},ui:{setError:Bn,setStep:xn,setStatusMsg:Dt,setTxHash:Sn,setIsExecuting:Ut,setShowStatusPanel:qt,setPaymentResult:St},refs:{spiceDepositSubmittedRef:Kn,abortControllerRef:Nn}};const Er=!!e.isZeroAmountPay&&!e.feeOnlyAction&&O&&vo===0,tp=y?vo>0&&!!je?.fundingPlan&&!!je.batches?.length&&!Z&&_n&&!Mn&&!Pa:O?(Er||!!N?.asset||!!e.actionProceeds||!!e.feeOnlyAction)&&vo>=0&&!Us&&!Z&&(Er||Ps||_n)&&!Mn&&(Er||e.feeOnlyAction||!No||!!Bs)&&(Er||e.feeOnlyAction||!Ht||!!Rs)&&!Pa:!!N?.asset&&vo>0&&!Us&&!Z&&(z||_n)&&!Mn&&!xl&&(Ht?!!Os&&!pl&&(ml||!!Ts):Gu||ml||!!Ts&&!pl)&&!Pa,Tl=!e.quoteOnlyAccount&&(z||oe&&$&&G&&!!Q)&&!J&&!Ds&&!!zt&&(!ne||!!Zr&&!!be&&!!K)&&(!z||!!be&&(!N?.asset.owner||ee(N.asset.owner,K)))&&(k==="7702"||!!K)&&!lo&&!nr&&!Kt&&A&&tp&&(Er||y&&!!je?.fundingPlan||!N&&(!!e.actionProceeds||!!e.feeOnlyAction)||!!wt?.eligible)&&In!=="success"&&Je?.status!=="success"&&!Sr.quoteError&&(Er||!!cr&&Zt.current?.key===cr);bn.current=Tl;const Bl=Tl&&Qu&&!e.submitDisabled&&!it&&!en.current;Ms.current=Bl;const Ua=se(()=>{if(rr.current||Ds)return;const W=Mt.current?.scope===Y?Mt.current.progress:void 0;if(Ve||ar||ir||W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"){Ir();return}Ms.current=!1,Zt.current=null,Jt(!1),Fs.refreshQuote(),xn("idle"),Bn(null),Dt(""),St(null),qt(!1)},[Fs.refreshQuote,Bn,Ve,ar,ir,Y,Ir,Ds]),Ol=j(Yn);ue(()=>{const W=Ol.current!==Yn;Ol.current=Yn,(W||Qa(Gt))&&In==="error"&&!Z&&Mt.current&&Mt.current.key!==Yn&&Ua()},[Yn,In,Z,Gt,Ua]);const np=se(()=>{qt(!1)},[]),op=se(()=>{if(rr.current)return;const W=Mt.current?.progress;W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"||(xn("idle"),Sn(null),Me())},[Me]),on=je??(Zt.current?.key.startsWith(`${Yn}|`)?Zt.current.quote:null)??(Mt.current?.key===Yn?Mt.current.quote:null),rp=async W=>{if(e.quoteOnlyAccount)throw new Error("A preview cannot fund an action.");if(Ds)throw new Error("Check your activity and balances before funding another action.");if(z)throw new Error("This source executes directly from the external wallet; submit the action without embedded funding.");if(!(!q||!N)){if(!je||W!==je.sourceSpendCap)throw new Error("Use the displayed source funding maximum before preparing this action.");await Xr(),await au({asset:N.asset,embedded:zt,external:K,externalWallet:be,amount:W,assertCurrent:Xr})}};return{operationKey:Yn,feeQuote:on,selectedAsset:fn,capability:wt,assets:{getAvailableBalance:Ae,fundingSources:Ge,selectable:Xe,displayAssets:Xe,filteredSpiceAssets:Se,embeddedWalletAddress:ke,externalAddress:K,isNon7702:k!=="7702",refreshSpiceAssets:Me,refreshWalletAssets:Ne,loading:We,refreshing:we,error:Ye},quote:{...Sr,...eo?{quoteKey:null,quoteExpiresAt:null,quoteError:null,isQuoting:!1,estimatedInput:null,estimatedOutput:null,quoteAmountOut:null,inputAmount:null,resolvedSwap:null,sourceSwap:null,exactOutputSwap:null,sourceExactOutputSwap:null}:{},hasSourceConversion:!!Ht,executionInput:Ht&&on?{address:Ht.destination.address,chainId:Ht.destination.chainId,decimals:Ht.destination.decimals,amount:on.preview.netAmount}:null,...on?.destinationSwap?{resolvedSwap:on.destinationSwap,inputAmount:on.swapInputAmount,estimatedOutput:De(on.destinationSwap.amountOut,h.decimals)}:{},...on?.fundedFeeToken&&on.destinationAmount!==void 0?{estimatedOutput:De(on.destinationAmount+(on.destinationSwap?on.destinationSwap.amountOut-on.destinationSwap.amountOutMinimum:0n),h.decimals)}:{}},fees:{fundingConversion:on?.fundingConversion,fundingSource:on?.fundingSource,proceedsUsed:on?.proceedsUsed,fundingShortfall:on?.grossFundingAmount,source:Ht&&on?{address:Ht.source.address,chainId:Ht.source.chainId,symbol:Ht.source.symbol,decimals:Ht.source.decimals,gasFee:on.sourceGasSkim??0n,spicenetFee:0n}:null,destinationAmount:on?.destinationAmount,sourceSpendCap:on?.sourceSpendCap,preview:eo?null:on?.preview??ao,isLoading:!eo&&io,ready:!eo&&!!je,error:eo?null:Mn},amount:{availableBalance:y?Zu:Wt,sourceRequiredAmount:on?.sourceSpendCap??null,parsed:vo,isInsufficientBalance:Us,sourceBalance:Ku,feesExceedAmount:xl},status:{activity:_e,pending:Ve,recoveryChecking:ar,recoveryError:ir,actionId:ye?.actionId??(Ue?$e.action?.actionId:void 0),intentId:ye?.intentId??(Ue?$e.action?.intents[0]?.intentId:void 0),autoContinue:ye?.autoContinue??(Ue?$e.action?.autoContinue:void 0),submissionStatus:ye?.submissionStatus,idempotencyKey:ye?.submissionStatus==="unknown"?ye.idempotencyKey:void 0,user:ye?.user??(Ue?$e.action?.user:void 0),finalizing:nr||Sl,finalizationError:Kt,step:lo&&In==="success"?"executing":In,statusMsg:ar?"Checking previous action status...":Ve?ir??"A previous transaction is still pending. Check its status before submitting again.":lo?Kt??"Transaction confirmed. Updating application...":On,txHash:Rn,isExecuting:Z||it||Sl,error:J||Kt||Gt||wt?.reason||null,showStatusPanel:Yt,paymentResult:lo&&Je?.status==="success"?{...Je,status:"processing"}:Je},flags:{directExecutionFeeNote:Ps},retryFinalization:$u,refreshStatus:Ir,fundEmbeddedSource:rp,canExecute:Bl,submit:O?Il:bl,submitSupply:bl,submitPay:Il,retrySupply:Ua,dismissPaymentStatus:np,resolveMaxAmount:Cl,max:()=>y?Xu():N?Cl(N.asset):Promise.resolve(null),resetAfterSuccess:op,resetPaymentState:_u}}function ph(e){const{asset:t,amount:n,recipient:o,owner:r,onSuccess:s}=e,a=!!t&&!!e.destination&&e.destination.chainId!==t.chainId,i=e.destination?.chainId??t?.chainId??e.sourceChains?.[0]??0,l=ge(()=>fr(i).find(C=>C.equivalenceGroup==="USDC"),[i]),c=se((C,S)=>{const b=!a&&C===0n?n:C;if(!t||n<=0n||n>t.balance||!a&&b>n||!o||!r||ee(r,o))throw new Error("Enter a valid withdrawal amount and recipient.");if(S.chainId!==i||!ee(S.executorAddress??S.userAddress,r))throw new Error("The withdrawal wallet or network changed. Review the withdrawal again.");if(a&&(!e.destination||e.destination.symbol!=="USDC"||C<=0n))throw new Error("A USDC withdrawal quote is required for this network.");return ma(i,a?e.destination.address:t.address,[{recipient:o,amount:b}]).calls},[t?.address,t?.chainId,t?.balance,n,o,r,i,a,e.destination?.address,e.destination?.symbol]),u=ge(()=>t?[{address:t.address,chainId:t.chainId,symbol:t.symbol,decimals:t.decimals,logoURI:t.logoURI}]:void 0,[t?.address,t?.chainId,t?.symbol,t?.decimals,t?.logoURI]),d=Ss({enabled:e.enabled&&!!l&&!!t&&n>0n&&!!o&&!!r&&!ee(r,o),amountDirection:"input-inclusive",quotedInclusivePlatformFee:!0,feeFunding:ya,destinationToken:e.destination??{address:t?.address??jt,symbol:t?.symbol??"",decimals:t?.decimals??6,chainId:i},recipient:o,selectedAsset:t?{asset:t,amount:De(n,t.decimals)}:null,additionalSourceTokens:u,sourceChains:e.sourceChains,includeCrossChainEmbeddedAssets:!0,includeExternalWalletAssets:!1,feeExecutionMode:a?"user-transfer":"backend-transfer",buildActionCalls:c,buildSpicenetBatch:hs,onError:(C,S)=>e.onError?.(C.message,S),onSuccess:async()=>{if(!t)return;const C=d.fees.destinationAmount;if(a&&(C==null||C<=0n))throw new Error("The confirmed withdrawal amount is unavailable.");window.dispatchEvent(new CustomEvent("withdraw-completed")),await s?.({token:a?"USDC":t.symbol,amount:De(a?C:n,a?e.destination.decimals:t.decimals),chainId:i})}}),p=`${e.enabled}:${t?.chainId}:${t?.address}:${n}:${o}:${r}:${i}:${e.destination?.address}`,w=j(p);ue(()=>{w.current===p||d.status.isExecuting||(w.current=p,(d.status.step==="success"||d.status.paymentResult?.status==="success")&&d.resetAfterSuccess())},[p,d.status.isExecuting,d.status.step,d.status.paymentResult?.status,d.resetAfterSuccess]);const m=d.fees.fundingSource,g=m?.kind==="input"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed??0n:0n,h=m?.kind==="input"?t:m?.asset,y=h?h._source==="wallet"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed:d.amount.sourceRequiredAmount:null;return{supply:d,source:h,maximumFeeFunding:y,feeFromAmount:g}}const mu=tt.ui,fh=({label:e,loading:t,balance:n,dark:o,dk:r})=>{const s=o?r.textSecondary:"#7D7C7B",a=o?r.textSecondary:"#71757A";return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontFamily:mu,fontSize:"17px",fontWeight:500,color:s,lineHeight:"24px"},children:e}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontFamily:mu,fontSize:"13px",fontWeight:500,color:a,lineHeight:"16px"},children:["Balance:"," ",t?"...":n===null?"\u2014":Va(n)]})]})};function mh(e,t=40,n=18){const o=e.length,r=[{maxLength:7,shrink:0},{maxLength:10,shrink:6},{maxLength:13,shrink:12},{maxLength:16,shrink:16},{maxLength:20,shrink:19}].find(s=>o<=s.maxLength);return Math.max(n,t-(r?.shrink??22))}const kr=({value:e,element:t="span",placeholder:n,ariaLabel:o,ariaInvalid:r,disabled:s,onChange:a,inputMode:i="decimal",autoComplete:l="off",dataSpiceflowFocus:c,fontFamily:u,fontWeight:d=700,color:p,textAlign:w,lineHeight:m=1,maxFontSize:g=40,minFontSize:h=18,overflow:y="ellipsis",title:C,style:S})=>{const b=j(null),[A,O]=L(),v=mh(e||n||"",g,h),x=e||n||"";ue(()=>{const B=b.current;if(!B||y!=="ellipsis"){O(void 0);return}let M=!0,k=null;const E=()=>{if(!M)return;const D=getComputedStyle(B),P=B.clientWidth-parseFloat(D.paddingLeft||"0")-parseFloat(D.paddingRight||"0");if(!(P>0))return;if(!k){try{k=document.createElement("canvas").getContext("2d")}catch{return}if(!k)return}k.font=`${D.fontStyle} ${D.fontWeight} ${v}px ${D.fontFamily}`;const H=k.measureText(x),Q=Math.max(H.width,(H.actualBoundingBoxLeft||0)+(H.actualBoundingBoxRight||0))+(parseFloat(D.letterSpacing)||0)*Math.max(0,x.length-1),G=Q>P?v*Math.max(0,P-1)/Q:void 0;O(oe=>oe===G?oe:G)};E();const I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(E);return I?.observe(B),I||window.addEventListener("resize",E),document.fonts?.addEventListener("loadingdone",E),()=>{M=!1,I?.disconnect(),I||window.removeEventListener("resize",E),document.fonts?.removeEventListener("loadingdone",E)}},[x,v,u,d,y,t,S?.fontFamily,S?.fontStyle,S?.fontWeight,S?.letterSpacing,S?.paddingLeft,S?.paddingRight]);const F=y==="wrap"?{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"normal"}:y==="ellipsis"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{},T={fontFamily:u,fontSize:`${Math.min(v,A??v)}px`,fontWeight:d,color:p,lineHeight:m,letterSpacing:0,textAlign:w,minWidth:0,maxWidth:"100%",...F,...S};return t==="input"?f("input",{ref:b,type:"text",inputMode:i,autoComplete:l,"aria-label":o,"aria-invalid":r||void 0,"data-spiceflow-focus":c||void 0,value:e,onChange:a,placeholder:n,disabled:s,title:C,style:{backgroundColor:"transparent",border:"none",outline:"none",padding:0,width:"100%",...T}}):f(t,{ref:b,title:C,style:T,children:e})},hu=({isOpen:e,position:t,title:n,items:o,selectedId:r,onSelect:s,portalAttribute:a})=>{const{dark:i,dk:l,primaryColor:c}=sn(),[u,d]=L(null),[p,w]=L(!1);return ue(()=>{if(!e){w(!1);return}const m=requestAnimationFrame(()=>{requestAnimationFrame(()=>w(!0))});return()=>cancelAnimationFrame(m)},[e]),!e||!t||o.length===0?null:_a(R("div",{[`data-${a}-popover`]:"true",style:{position:"fixed",top:`${t.top}px`,left:`${t.left}px`,opacity:p?1:0,transform:p?"scale(1) translateY(0)":"scale(0.96) translateY(-6px)",transition:`opacity 200ms ${Fr.out}, transform 200ms ${Fr.out}`,backgroundColor:i?l.shell:"#ffffff",borderRadius:"10px",padding:"10px 12px",boxShadow:i?"0 16px 48px rgba(0,0,0,0.45)":"0 12px 32px rgba(0,0,0,0.12)",border:`1px solid ${l.cardBorder}`,minWidth:"220px",zIndex:ur.dropdown,fontFamily:tt.mono},children:[f("div",{style:{marginBottom:"6px"},children:f("span",{style:{fontSize:"11px",fontWeight:500,color:i?l.textPrimary:"#0e0d0b",textTransform:"uppercase",letterSpacing:"1px"},children:n})}),f("div",{style:{borderBottom:`1px solid ${l.cardBorder}`,marginBottom:"6px"}}),f("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:o.map(m=>{const g=r===m.id,h=u===m.id;return R("button",{onClick:y=>{y.stopPropagation(),s(m.id)},onMouseEnter:()=>d(m.id),onMouseLeave:()=>d(null),style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 4px",borderRadius:"8px",border:"none",cursor:"pointer",backgroundColor:g?i?l.hoverBg:"#f3f4f6":h?i?l.cardBg:"#f9fafb":"transparent",transition:"background-color 0.15s",width:"100%",fontFamily:tt.mono},children:[m.icon&&f("img",{src:m.icon,alt:m.label,style:{width:"22px",height:"22px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",fontWeight:g?700:500,textTransform:"uppercase",color:i?l.textPrimary:"#0e0d0b",letterSpacing:"0.5px",flex:1,textAlign:"left"},children:m.label}),m.detail&&f("span",{style:{fontSize:"11px",fontWeight:500,color:l.textSecondary},children:m.detail}),g&&f(ld,{color:c,style:{flexShrink:0}})]},m.id)})})]}),document.body)},Sa=tt.ui,hh=tt.mono,gh=170,wh=({header:e,amount:t,receiveAmountDisplay:n,receiveUsdEstimate:o,selectedDestToken:r,destTokenSymbol:s,destChainName:a,destChainLogo:i,compatibleDestinationChains:l,networkSwitchRef:c,onOpenNetworkPopover:u,showNetworkPopover:d,setShowNetworkPopover:p,networkPopoverPos:w,selectedChainId:m,setSelectedChainId:g,dark:h,dk:y})=>{const C=h?y.cardBg:"#E9E9E9",S=h?y.cardBorder:"#C6C6C6",b=h?y.textSecondary:"#71757A",A=h?y.textPrimary:"#0E0D0B",O=h?y.cardBorder:"#C5C5C4",v=h?"rgba(255,255,255,0.08)":"#D4D3D3",x=s.length>8?"14px":s.length>6?"16px":"18px";return R("div",{style:{backgroundColor:C,border:`1px solid ${S}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[f(kr,{element:"div",value:n,title:n,fontFamily:Sa,color:t?A:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,overflow:"wrap"}),f("div",{style:{fontSize:"12px",fontWeight:500,color:b,fontFamily:Sa,marginTop:"10px"},children:o})]}),R("div",{style:{width:`${gh}px`,flexShrink:0,display:"flex",flexDirection:"column",alignItems:"stretch",gap:"8px"},children:[R("div",{style:{backgroundColor:"transparent",border:`1px solid ${O}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px"},children:[f("img",{src:r?.logoURI||Bf,alt:s,style:{width:"24px",height:"24px",borderRadius:"50%"}}),f("span",{style:{fontSize:x,fontWeight:500,color:A,lineHeight:"1.3",fontFamily:Sa,flex:1,minWidth:0,letterSpacing:0},children:s})]}),R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:v,borderTop:`1px solid ${O}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[i&&f("img",{src:i,alt:a,style:{width:"13px",height:"13px",borderRadius:"50%",flexShrink:0}}),f("span",{style:{fontSize:"11px",fontWeight:400,color:A,fontFamily:Sa,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:a})]}),f("button",{ref:c,onClick:F=>{F.stopPropagation(),u(c.current)},style:{background:"none",border:"none",cursor:l.length>1?"pointer":"not-allowed",padding:"0 0 0 8px",fontSize:"9.5px",fontFamily:hh,color:b,textDecoration:"underline",fontWeight:600,opacity:l.length>1?1:.45},children:"Switch"}),f(hu,{isOpen:d,position:w,title:"SELECT NETWORK",portalAttribute:"network",items:l.map(F=>{const T=bt(F);return{id:String(F),label:T?.displayName||String(F),icon:Jo[F]||ds}}),selectedId:m!==null?String(m):null,onSelect:F=>{g(Number(F)),p(!1)}})]})]}),f("div",{style:{minHeight:"14px"}})]})]})]})},yh=tt.ui,er=tt.mono,bh=({show:e,onToggle:t,showCustomAddress:n,setShowCustomAddress:o,customRecipient:r,setCustomRecipient:s,externalAddress:a,recipientAddress:i,destChainName:l,destChainLogo:c,compatibleDestinationChains:u,txDetailsChainSwitchRef:d,onOpenNetworkPopover:p,sourceChainLabel:w,sourceDetailsLogo:m,sourceTokenLabel:g,amount:h,totalSourceDebitDisplay:y,receiveAmountDisplay:C,destTokenSymbol:S,shouldQuoteWithdrawGas:b,estimatingFee:A,feeError:O,displayedGasFee:v,selectedDestToken:x,theme:F,styles:T,dark:B,dk:M})=>{const k=B?M.textSecondary:"#71757A",E=B?M.textPrimary:"#0E0D0B",I=u.length>1,D=n&&r?Xn(r)?ts(r):r:i?ts(i):"\u2014";return R(wn,{children:[R("div",{onClick:t,style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:e?"10px":"0",cursor:"pointer",userSelect:"none"},children:[f("span",{style:{fontSize:"13px",color:k,fontFamily:yh,fontWeight:600},children:"Transaction Details"}),f(fm,{size:12,color:k,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),e&&R("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:[R("div",{children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontSize:"12px",color:k,fontFamily:er,fontWeight:500,letterSpacing:"0.03em"},children:"TO"}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("span",{style:{fontSize:"13px",color:E,fontFamily:er,fontWeight:500},children:D}),f("button",{onClick:()=>{o(P=>!P),!n&&a&&s(a)},style:{background:"none",border:"none",cursor:"pointer",padding:"0",fontSize:"9.5px",fontFamily:er,color:k,textDecoration:"underline",fontWeight:600},children:n?"Reset":"Switch"})]})]}),n&&R("div",{style:{marginTop:"6px"},children:[f("div",{style:{marginBottom:"6px",padding:"7px 9px",borderRadius:"6px",border:"1px solid rgba(239, 68, 68, 0.55)",backgroundColor:"rgba(239, 68, 68, 0.12)",color:"#ef4444",fontSize:"10px",lineHeight:1.35,fontFamily:er,fontWeight:700,letterSpacing:0,textTransform:"uppercase"},children:"CAUTION: ENTERING AN INCORRECT ADDRESS WILL RESULT IN LOSS OF FUNDS"}),f("input",{type:"text",autoComplete:"off",spellCheck:!1,"aria-label":"Recipient address","aria-invalid":r&&!Xn(r)?!0:void 0,"data-spiceflow-focus":!0,value:r,onChange:P=>s(P.target.value),placeholder:"0x...",style:{width:"100%",padding:"8px 10px",borderRadius:"6px",border:`1px solid ${r&&!Xn(r)?B?M.errorBorder:"#fca5a5":B?M.inputBorder:"#d1d5db"}`,backgroundColor:B?M.inputBg:"#f9fafb",color:B?M.inputText:"#111827",fontSize:"12px",fontFamily:er,outline:"none",boxSizing:"border-box"}}),r&&!Xn(r)&&f("span",{style:{fontSize:"11px",color:M.errorText,marginTop:"3px",display:"block"},children:"Invalid address"})]})]}),f(yo,{palette:M,labelColor:k,valueColor:E,label:"RECEIVING CHAIN",value:R("div",{style:{display:"flex",alignItems:"center",gap:"7px"},children:[c&&f("img",{src:c,alt:l,style:{width:"14px",height:"14px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",color:E,fontWeight:500,fontFamily:er,textTransform:"uppercase"},children:l}),f("button",{ref:d,onClick:P=>{P.stopPropagation(),p(d.current)},style:{background:"none",border:"none",cursor:I?"pointer":"not-allowed",padding:"0",fontSize:"9.5px",fontFamily:er,color:k,textDecoration:"underline",fontWeight:600,opacity:I?1:.45},children:"Switch"})]})}),f(yo,{palette:M,labelColor:k,valueColor:E,label:"REQUESTED WITHDRAWAL",value:R(Xi,{logo:m||null,alt:w,primaryText:E,children:[h||"0"," ",g]})}),b&&f(yo,{palette:M,labelColor:k,valueColor:E,label:"TOTAL SOURCE DEBIT",value:R(Xi,{logo:m||null,alt:w,primaryText:E,children:[y," ",g]})}),f(yo,{palette:M,labelColor:k,valueColor:E,label:"YOU RECEIVE",value:R(Xi,{logo:c,alt:l,primaryText:E,gap:"4px",children:[C," ",S]})}),b&&R(wn,{children:[f(yo,{palette:M,labelColor:k,label:"EST. NETWORK FEE",valueColor:O?"#f87171":E,value:A?"Estimating...":O?"Unavailable":v!==null&&x?`${Di(v,x.decimals)} ${x.symbol}`:"Estimating..."}),O&&f(Vn,{variant:"error",size:"compact",palette:M,fontFamily:T?.fontFamily||F.typography.fontFamily,children:O})]})]})]})},xh=mo(bh),Xi=({logo:e,alt:t,primaryText:n,gap:o="6px",children:r})=>R("div",{style:{display:"flex",alignItems:"center",gap:o},children:[e&&f("img",{src:e,alt:t,style:{width:"13px",height:"13px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",color:n,fontWeight:500,fontFamily:er},children:r})]}),Ji=({pct:e,isMax:t,primaryColor:n,dark:o,fillColor:r})=>{const s=e/100;return R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:[f("circle",{cx:"7",cy:"7",r:"6.84375",fill:t?n:"none",stroke:t?n:o?"#4a5568":"#3C3E42",strokeWidth:"0.3125"}),!t&&s>0&&f("path",{d:`M 7 7 L 7 0.15625 A 6.84375 6.84375 0 ${s>.5?1:0} 1 ${7+6.84375*Math.sin(s*2*Math.PI)} ${7-6.84375*Math.cos(s*2*Math.PI)} Z`,fill:r})]})},As=tt.ui,vh=170,kh=({header:e,amount:t,setAmount:n,isInsufficient:o,sourceAmountDecimals:r,selectedSourceAsset:s,resolvedSelectedSourceAsset:a,spiceAssets:i,setSelectedSourceAsset:l,sourceUsdEstimate:c,sourceTokenLabel:u,sourceChainLabel:d,totalSelectedBalance:p,showSourceTokenPopover:w,setShowSourceTokenPopover:m,tokenPopoverPos:g,setTokenPopoverPos:h,tokenTriggerRef:y,primaryColor:C,dark:S,dk:b})=>{const A=Fo(),O=a?A({...a,logoURI:a._source==="wallet"?a.logoURI:cs}).logoURI:cs,v=S?b.cardBg:"#E9E9E9",x=S?b.cardBorder:"#C6C6C6",F=S?b.textSecondary:"#71757A",T=S?b.textPrimary:"#0E0D0B",B=S?b.cardBorder:"#C5C5C4",M=S?"rgba(255,255,255,0.08)":"#D4D3D3",k=u.length>8?"14px":u.length>6?"16px":"18px";return R("div",{style:{backgroundColor:v,border:`1px solid ${x}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px",position:"relative"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[f(kr,{element:"input",ariaLabel:"Withdraw amount",ariaInvalid:o,dataSpiceflowFocus:!0,value:t,onChange:E=>{const I=E.target.value;if(I===""){n("");return}/^\d*\.?\d*$/.test(I)&&n(js(I.startsWith(".")?`0${I}`:I,r??s?.decimals))},placeholder:"0.0",fontFamily:As,color:o?"#ef4444":t?T:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,style:{width:"100%"}}),f("div",{style:{fontSize:"12px",fontWeight:500,color:F,fontFamily:As,marginTop:"10px"},children:c})]}),f("div",{style:{width:`${vh}px`,flexShrink:0},children:R("div",{style:{backgroundColor:"transparent",border:`1px solid ${B}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{ref:y,onClick:E=>{if(E.stopPropagation(),!w&&y.current){const I=y.current.getBoundingClientRect(),D=220,P=16;h({top:I.bottom+8,left:Math.min(Math.max(P,I.right-D),window.innerWidth-D-P)})}m(I=>!I)},style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px",cursor:"pointer"},children:[O&&f("img",{src:O,alt:u,style:{width:"24px",height:"24px",borderRadius:"50%"}}),f("span",{style:{fontSize:k,fontWeight:500,color:T,lineHeight:"1.3",fontFamily:As,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",letterSpacing:0},children:u}),f(Mr,{size:15,color:T,strokeWidth:2.25})]}),f(hu,{isOpen:w,position:g,title:"SELECT TOKEN",portalAttribute:"token",items:(i||[]).map(E=>({id:ve(E),label:A({...E,displaySymbol:E.displaySymbol||(E._source==="wallet"?E.symbol:E.receiptTokenName)}).symbol,icon:A({...E,logoURI:E._source==="wallet"?E.logoURI:cs}).logoURI||void 0,detail:`${Va(E.balanceFormatted)} \xB7 ${E._source==="wallet"?bt(E.chainId)?.displayName||E.chainId:"Spicenet"}`})),selectedId:a?ve(a):null,onSelect:E=>{const I=(i||[]).find(D=>ve(D)===E);I&&(l(I),n("")),m(!1)}}),f("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:M,borderTop:`1px solid ${B}`},children:f("span",{style:{fontSize:"11px",fontWeight:400,color:T,fontFamily:As,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:d})})]})})]}),R("div",{style:{minHeight:"18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o?f("span",{style:{fontSize:"12px",color:b.errorText,fontFamily:As,fontWeight:500},children:"Insufficient Balance"}):f("span",{}),f("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0px",minHeight:"32px",marginRight:"-9px"},children:[0,25,50,75,100].map((E,I)=>{const D=I===4,P=parseFloat(t)||0,H=p>0&&Math.abs(P/p*100-E)<1;return f("button",{type:"button","aria-label":`Set amount to ${E}%`,"aria-pressed":H,onClick:()=>{const Q=a?.balance??0n;n(E===0?"":De(Q*BigInt(E)/100n,r??s?.decimals??6))},title:`${E}%`,disabled:p===0,"data-spiceflow-focus":!0,style:{width:"32px",height:"32px",padding:"9px",border:"none",backgroundColor:"transparent",cursor:p===0?"not-allowed":"pointer",opacity:H?1:.5,transition:"opacity 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:f(Ji,{pct:E,isMax:D,primaryColor:C,dark:S,fillColor:S?b.textSecondary:"#3C3E42"})},E)})})]})]})};var $i="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 4.99995V6.99995M5 3.31245V3.31189M9.5 5C9.5 7.48528 7.48528 9.5 5 9.5C2.51472 9.5 0.5 7.48528 0.5 5C0.5 2.51472 2.51472 0.5 5 0.5C7.48528 0.5 9.5 2.51472 9.5 5Z' stroke='black' stroke-opacity='0.4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Ch=({dark:e,dk:t})=>R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[f("img",{src:$i,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...e?{filter:"invert(0.6)"}:{}}}),f("p",{style:{fontSize:"13px",color:e?t.textSecondary:"#979AA0",margin:"0",lineHeight:"1.4",fontFamily:tt.ui},children:"Withdraw collateral from your account to 10+ EVM blockchains."})]}),Ih=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,onWithdrawExecute:r,onWithdrawSuccess:s,onWithdrawError:a,availableTokens:i,initialSourceAssetId:l,walletAssets:c,buildSpicenetBatch:u=hs})=>{const d=an(_t);if(!d)return f("div",{children:"Error: SpiceWithdraw must be used within SpiceFlowProvider"});const p=d.mode||"7702",w=p==="presign"||p==="ondemand",m=d.supportedChainIds,g=d.allowedTokens,h=c?.initialAsset,y=ge(()=>[...c?.extraAssets??[],...h?[h]:[]].map(Y=>({address:Y.address,chainId:Y.chainId,symbol:Y.symbol,decimals:Y.decimals})),[c?.extraAssets,h]),C=d.isWhitelistGateActive,{theme:S,dark:b,dk:A}=sn(o),O=Fo(),v=d.network,x=()=>w?"select":"provider-login",[F,T]=L(x()),[B,M]=L(!1),[k,E]=L(null),[I,D]=L(null),[P,H]=L(""),[Q,G]=L(!1),[oe,$]=L(!1),[V,re]=L(!1),[X,he]=L(""),[be,fe]=L(!0),xe=j(null),te=j(null),K=j(null),[le,N]=L(null),[Le,Te]=L(null),z=Eo(),{isReady:q,isAuthenticated:ne,address:de}=z,J=d?.embeddedWalletAddress,{address:ie,chainId:ze}=Ka(),Se=d.externalWalletAddress||ie,[Ce,et]=L(!1),[Me,Ne]=L(null),We=j(a);We.current=a;const we=se(Y=>{Ne(Y),typeof Y=="string"&&Y&&We.current?.(Y,ns(Y))},[]),[Ye,ke]=L(null),He=j(null),ft=j(!0),Ze=j(null);ue(()=>(ft.current=!0,()=>{ft.current=!1}),[]);const{execute:nt,estimate:Qe,clearStatus:pe}=Dr(),Oe=ia(de,e),[at,Ke]=L(null),[Ae,Xe]=L(null),[kt,Ge]=L(!1),[Bt,rt]=L(null),{assets:ct,loading:dt,error:mt,refresh:fn}=yr({owner:J,role:"holding",includeWalletAssets:!0,additionalSourceTokens:y,enabled:e&&!!J}),wt=ge(()=>{if(C)return[];const Y=(Ie,$e)=>($e.balanceUsd||0)-(Ie.balanceUsd||0);return(ct??[]).filter(Ie=>Ie.balance>0n&&So(Ie,"holding",{allowedTokens:g,isWhitelistGateActive:C}).eligible).sort(Y)},[ct,g,C]),ht=ge(()=>[...new Set([...m??[],...Object.keys(i??{}).map(Number),...(wt||[]).map(Y=>Y.chainId),...(wt||[]).flatMap(Y=>Object.keys(Y.chainTokens??{}).map(Ie=>{const[,$e]=Ie.split(":"),It=Number($e);return Number.isFinite(It)?It:null}).filter(Ie=>Ie!==null))])].filter(Y=>bt(Y)?.network===v),[m,i,wt,v]),Wt=ge(()=>{if(i)return i;const Y={};for(const Ie of wt||[]){const $e=Object.entries(Ie.chainTokens??{});if($e.length>0){for(const[It,tn]of $e){const[Lt,nn,$t]=It.split(":");if(Lt!=="evm"||!nn||!$t)continue;const cn=Number(nn);if(!Number.isFinite(cn))continue;const Zt=$t.startsWith("0x")?$t.toLowerCase():`0x${$t.toLowerCase()}`,En=bt(cn)?.supportedTokens?.find(dn=>ee(dn.address,Zt));En&&pi(Ie,Zt,cn)&&(Y[cn]||(Y[cn]=[]),Y[cn].find(dn=>ee(dn.address,Zt))||Y[cn].push({address:Zt,symbol:En?.symbol||tn?.name||Ie.symbol,name:En?.name||tn?.name||Ie.displayName||Ie.name||Ie.symbol,decimals:En?.decimals??tn?.decimals??Ie.decimals,logoURI:En?.logo||Ie.logoURI}))}continue}Y[Ie.chainId]||(Y[Ie.chainId]=[]),Y[Ie.chainId].find(It=>ee(It.address,Ie.address))||Y[Ie.chainId].push({address:Ie.address,symbol:Ie.symbol,name:Ie.displayName||Ie.name||Ie.symbol,decimals:Ie.decimals,logoURI:Ie.logoURI})}return Y},[i,wt]),Ft=se((Y,Ie)=>{const $e=bm(Y,Ie,Ie?Y?._source==="wallet"?i?.[Ie]??[]:Wt[Ie]??[]:[]);return!Y||!$e||!Ie?null:Y._source==="wallet"||So(Y,"withdraw-destination",d,{...$e,chainId:Ie}).eligible?$e:null},[Wt,i,d.allowedTokens,d.rpcOverrides,d.isWhitelistGateActive]),Z=ge(()=>k?wt.find(Y=>ve(Y)===ve(k))??null:null,[k,wt]),Ut=Z?Z.balanceError:mt,it=Z?._source==="wallet",Tt=ge(()=>{if(!Z)return[];const Y=Object.keys(Z.chainTokens??{}).map(Ie=>$n(Ie)?.chainId??null).filter(Ie=>Ie!==null);return Array.from(new Set([...Y,Z.chainId,...ht].filter(Number.isFinite))).filter(Ie=>bt(Ie)?.network===v&&(Z._source==="wallet"||Ft(Z,Ie)!==null))},[Z,ht,Ft,v]),en=ge(()=>{if(!Z||typeof window>"u")return null;const Y=`spiceflow:withdraw-chain:${Z.receiptTokenId||Z.address.toLowerCase()}`,Ie=window.localStorage.getItem(Y),$e=Ie?Number(Ie):null;return $e!==null&&Number.isFinite($e)&&Tt.includes($e)?$e:null},[Z,Tt]),bn=ge(()=>Z?Z._source==="wallet"?Z.chainId:en!==null?en:ze&&Tt.includes(ze)?ze:Z.chainId&&Tt.includes(Z.chainId)?Z.chainId:Tt[0]??null:ht[0]??null,[Z,en,ze,Tt,ht]),Re=ge(()=>Ft(Z,I),[Ft,Z,I]);ue(()=>{e&&(E(null),H(""))},[e,l,h?.address,h?.chainId]),ue(()=>{if(!e||!wt.length||k)return;const Y=h?wt.find(Ie=>Ie.chainId===h.chainId&&ee(Ie.address,h.address)&&Ie._source==="wallet"):l?wt.find(Ie=>Ie.receiptTokenId===l):wt[0];E(Y??null),H("")},[e,wt,k,l,h]);const Gt=j(null);ue(()=>{if(!Z){Gt.current=null;return}const Y=ve(Z),Ie=Gt.current!==Y;Gt.current=Y,(Ie&&Z._source==="wallet"||I===null||!Tt.includes(I))&&D(bn)},[Z,I,bn,Tt]),ue(()=>{if(!Q&&!oe)return;const Y=Ie=>{const $e=Ie.target;Q&&!xe.current?.contains($e)&&!te.current?.contains($e)&&!$e?.closest?.("[data-network-popover]")&&G(!1),oe&&!K.current?.contains($e)&&!$e?.closest?.("[data-token-popover]")&&$(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[Q,oe]);const Ot=se(Y=>{if(!Y||Tt.length<=1)return;const Ie=Y.getBoundingClientRect(),$e=220,It=16;N({top:Ie.bottom+8,left:Math.min(Math.max(It,Ie.right-$e),window.innerWidth-$e-It)}),G(tn=>!tn)},[Tt.length]),Ln=se(()=>fe(Y=>!Y),[]);ue(()=>{if(!Z||I===null||typeof window>"u")return;const Y=`spiceflow:withdraw-chain:${Z.receiptTokenId||Z.address.toLowerCase()}`;window.localStorage.setItem(Y,String(I))},[Z,I]);const Rt=V?Xn(X)?X:void 0:Se||(it?void 0:J),Cn=yr({owner:Rt,role:"holding",includeRollupAssets:!1,sourceChains:I?[I]:[],additionalSourceTokens:Re&&I?[{...Re,chainId:I}]:[],enabled:e&&!!Rt&&!!Re&&!!I}),jn=Cn.walletAssets.find(Y=>ee(Y.owner,Rt)&&Y.chainId===I&&ee(Y.address,Re?.address)),Gn=Z?.balanceFormatted??0,Bn=Z?O(it?Z:{...Z,displaySymbol:Z.displaySymbol||Z.receiptTokenName,logoURI:cs}):void 0,In=Bn?.symbol||"Select token",xn=Z?.displayChainName||(it?bt(Z.chainId)?.displayName:"Spicenet")||"Network",On=Z?.receiptTokenDecimals??Z?.decimals,Dt=ge(()=>{if(!Re||On===void 0)return 0n;try{return Tn(P||"0",On)}catch{return 0n}},[P,Re,On]),Rn=ge(()=>!Re||On===void 0?0n:Am(Dt,On,Re.decimals),[Re,On,Dt]),Sn=Ae??at,Yt=Dt,qt=ph({enabled:e&&it&&!!Re,destination:Re&&I?{...Re,chainId:I}:null,asset:it?Z:null,amount:Dt,recipient:Rt,owner:J,sourceChains:m,onSuccess:s,onError:a}),Je=qt.supply,St=it&&I!==Z?.chainId,ao=it?Je.fees.ready?Je.fees.destinationAmount??0n:0n:Rn>(Sn??0n)?Rn-(Sn??0n):0n,ln=it&&I?Re?So(Z,"spend-source",d,{...Re,chainId:I}).reason:"USDC withdrawal is unavailable on this network. Choose another network.":null,io=Ce||it&&(Je.status.isExecuting||Je.status.finalizing),mn=Je.status.step==="success"||Je.status.paymentResult?.status==="success",_n=se(Y=>{if(it||!I||!Re)return[];if(Dt===0n||Rn===0n||!Rt)return[];const Ie=Array.isArray(Y)?Y.filter(Lt=>Lt.amount>0n):[{token:Re.address,recipient:Rt,amount:Y??Rn}],$e=Ie.reduce((Lt,nn)=>Lt+nn.amount,0n);if($e<=0n)return[];const It={chainId:I,calls:[],tokenTransfers:Ie.map(Lt=>({from:"escrow",to:Lt.recipient,token:Lt.token,amount:Lt.amount}))},tn=u({destinationChainId:I,deliveryToken:Re.address,deliveryAmount:$e,deliveryRecipient:Rt,deliveryTransfers:Ie,requestTimestampMs:Ze.current??Date.now()});return tn?[tn,It]:[It]},[it,I,Re,Dt,Rn,Rt,u]),Jt=ge(()=>_n(),[_n]),Mn=ge(()=>Em(Jt,Re?.address),[Jt,Re?.address]),An=j(null),ut=!it&&e&&!w&&!Ce&&!!Re&&!!I&&Dt!==0n;vi({shouldRun:ut&&Jt.length>0&&!!Mn,deps:[ut,Jt.length>0,Mn],delayMs:500,onSkip:()=>{An.current=null,Ke(null),rt(null),Ge(ut&&Jt.length===0)},onCleanup:()=>Ge(!1),run:async({isCurrent:Y,signal:Ie})=>{const $e=Mn;Ge(!0),rt(null);try{const It=await Sm({batches:Jt,tokenAddress:Re.address,chainId:I,estimate:Qe,signal:Ie});if(!Y())return;An.current={key:$e,quote:It},Ke(It.gasFee)}catch(It){if(!Y())return;An.current=null,Ke(null),rt(It instanceof Error?It.message:"Failed to estimate gas fee")}finally{Y()&&Ge(!1)}}}),ue(()=>{Ce||Xe(null)},[Ce,P,I,Re?.address]);const Kn=se(()=>{M(!0),T("select")},[]),Nn=se(()=>{io||t()},[t,io]),Mt=j(null);Mt.current={batches:Jt,walletAddress:de,recipient:Rt,token:Re,chainId:I,amount:P,grossAmountRaw:Rn,gasFee:at,feeEstimate:Mn&&An.current?.key===Mn?An.current.quote.feeEstimate:null,isNon7702:w,buildWithdrawBatches:_n,execution:{estimate:Qe,execute:nt},ui:{setIsExecuting:et,setExecutionError:we,setExecutionProgress:ke,setLockedGasFee:Xe},executionContextRef:He,isMountedRef:ft,onWithdrawExecute:r,onWithdrawSuccess:s,buildSpicenetBatch:u};const Pn=se(()=>(Ze.current=Date.now(),xd(Mt.current)),[]),xo=se(()=>vd(Mt.current),[]);if(ue(()=>{if(!e){pe?.();const Y=setTimeout(()=>{T(x()),M(!1),E(null),D(null),H(""),G(!1),$(!1),re(!1),he(""),et(!1),we(null),ke(null),He.current=null},300);return()=>clearTimeout(Y)}},[e,w]),ue(()=>{if(!w&&e&&F==="provider-login"&&q&&ne&&J&&!B){const Y=setTimeout(()=>{M(!0),T("select")},100);return()=>clearTimeout(Y)}},[w,e,F,q,ne,J,B]),!e)return null;if(F==="provider-login"&&!w)return f(Bi,{onAuthSuccess:Kn,autoTrigger:!0});if(F==="select"){const Y=parseFloat(P)||0,Ie=On?Di(Yt,On):P||"0",$e=!!Z&&Yt>Z.balance,It=(I?bt(I):null)?.displayName||"Network",tn=I?Jo[I]||ds:null,Lt=Re?.symbol||"\u2014",nn=In,$t=Re?Di(ao,Re.decimals):"0",cn=Z&&Z.balanceFormatted>0?Z.balanceUsd/Z.balanceFormatted:void 0,Zt=Z?.priceStatus==="stale",En=kd(Y,cn,Zt),dn=kd(parseFloat($t)||0,St?void 0:cn,Zt),qn=(!V||Xn(X))&&(!it||!ee(Rt,J)),Vt=!w&&!it&&Y>0&&Re!==null,Dn=!Vt||at!==null&&!kt&&!Bt,zn=Y>0&&!$e&&!dt&&!Ut&&Z!==null&&I!==null&&Re!==null&&!ln&&Rt&&qn&&Dn&&ao>0n&&(!it||Je.canExecute&&!mn),Ko=!zn,gt=dt?"LOADING BALANCES":Ut?"BALANCES UNAVAILABLE":Z===null?"NO BALANCE":Y===0?"ENTER AMOUNT":$e?"INSUFFICIENT BALANCE":Vt&&!Dn?Bt?"GAS UNAVAILABLE":"ESTIMATING GAS":Vt&&ao===0n?"AMOUNT TOO SMALL":it&&!Je.canExecute?"REVIEW FEES":"WITHDRAW",Kt=!!Ye&&(Ye.step==="success"||Ye.step==="error"),tr=o?.primaryColor||S.colors.primary,nr=402,or=(Qr,Vr,Hn)=>f(fh,{label:Qr,loading:Hn,balance:Vr,dark:b,dk:A});return f(bo,{isOpen:!0,onClose:Nn,title:"Withdraw",subtitle:f(Ch,{dark:b,dk:A}),styles:o,theme:S,dark:b,maxWidth:"486px",footerLinkText:"Spicenet accounts \u2192",overlayDimmed:!1,closeOnBackdropClick:n,overlayContent:Kt?f("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"flex-end",pointerEvents:"none",zIndex:20},children:f("div",{style:{pointerEvents:"auto"},children:f(Oi,{type:"withdraw",isOpen:!0,isProcessing:io,onRetryTx:()=>{xo()},onNewTx:()=>{ke(null),H(""),we(null),He.current=null},onClose:()=>{ke(null),we(null),et(!1),He.current=null},onComplete:()=>{ke(null),we(null),et(!1),He.current=null},results:[{asset:{symbol:Re?.symbol||"Token",address:Re?.address||""},txHash:Ye?.txHash||"",success:Ye?.step==="success",error:Ye?.error,amount:P}],chainId:I??void 0,theme:S})})}):null,children:R("fieldset",{disabled:io,style:{border:0,minWidth:0,width:"calc(100% - 32px)",maxWidth:`${nr}px`,margin:"0 auto",padding:"0 0 4px 0",position:"relative"},children:[f(fa,{activity:Oe,palette:A,onRefresh:()=>{fn()}}),R("div",{style:{marginTop:"16px",marginBottom:"16px",display:"flex",flexDirection:"column",gap:"16px"},children:[f(kh,{header:or("Source",Gn,dt),amount:P,setAmount:H,isInsufficient:$e,sourceAmountDecimals:On,selectedSourceAsset:Z,resolvedSelectedSourceAsset:Z,spiceAssets:wt,setSelectedSourceAsset:E,sourceUsdEstimate:En,sourceTokenLabel:nn,sourceChainLabel:xn,totalSelectedBalance:Gn,showSourceTokenPopover:oe,setShowSourceTokenPopover:$,tokenPopoverPos:Le,setTokenPopoverPos:Te,tokenTriggerRef:K,primaryColor:tr,dark:b,dk:A}),f(wh,{header:or("Destination",jn?.balanceFormatted??null,Cn.loading),amount:P,receiveAmountDisplay:$t,receiveUsdEstimate:dn,selectedDestToken:Re,destTokenSymbol:Lt,destChainName:It,destChainLogo:tn,compatibleDestinationChains:Tt,networkSwitchRef:xe,onOpenNetworkPopover:Ot,showNetworkPopover:Q,setShowNetworkPopover:G,networkPopoverPos:le,selectedChainId:I,setSelectedChainId:D,dark:b,dk:A})]}),R("div",{style:{marginBottom:S.spacing.sm},children:[f(xh,{show:be,onToggle:Ln,showCustomAddress:V,setShowCustomAddress:re,customRecipient:X,setCustomRecipient:he,externalAddress:Se,recipientAddress:Rt,destChainName:It,destChainLogo:tn,compatibleDestinationChains:Tt,txDetailsChainSwitchRef:te,onOpenNetworkPopover:Ot,sourceChainLabel:xn,sourceDetailsLogo:Z?Bn?.logoURI:cs,sourceTokenLabel:nn,amount:P,totalSourceDebitDisplay:Ie,receiveAmountDisplay:$t,destTokenSymbol:Lt,shouldQuoteWithdrawGas:Vt,estimatingFee:kt,feeError:Bt,displayedGasFee:Sn,selectedDestToken:Re,theme:S,styles:o,dark:b,dk:A}),St&&f(Vn,{variant:"info",size:"compact",palette:A,children:Je.fees.ready?`You receive ${$t} USDC on ${It}`:`USDC on ${It} \u2014 ${ln||Je.fees.error||Je.quote.quoteError||"waiting for quote"}`}),it&&Je.fees.ready&&R(wn,{children:[f(yo,{palette:A,label:"TOTAL SOURCE DEBIT",value:`${Ie} ${nn}`}),f(yo,{palette:A,label:"MINIMUM RECEIVED",value:`${$t} ${Lt}`}),f(yo,{palette:A,label:St?"DESTINATION FEES":"EST. FEE",value:Je.fees.preview?.totalFee!==void 0?`${De(Je.fees.preview.totalFee,Je.fees.preview.decimals)} ${Je.fees.preview.symbol}`:"Unavailable"})]}),St&&Je.fees.ready&&Je.fees.source&&f(yo,{palette:A,label:"SOURCE NETWORK FEE",value:`${De(Je.fees.source.gasFee,Je.fees.source.decimals)} ${Je.fees.source.symbol}`}),ln&&f(Vn,{variant:"warning",size:"compact",palette:A,children:ln}),it&&R("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!St&&f(yo,{palette:A,label:"FEE ASSET",value:Je.fees.isLoading?"Estimating...":qt.source?`${O(qt.source).symbol} \xB7 ${qt.source._source==="spice"?"Spicenet":bt(qt.source.chainId)?.displayName}`:"Unavailable"}),!St&&f(yo,{palette:A,label:"MAXIMUM FEE FUNDING",value:Je.fees.isLoading?"Estimating...":Je.fees.ready&&qt.source&&qt.maximumFeeFunding!=null?`${De(qt.maximumFeeFunding,qt.source.decimals)} ${O(qt.source).symbol}`:"Unavailable"}),!mn&&(Je.status.error||Je.fees.error||Je.quote?.quoteError)&&f(Vn,{variant:"error",size:"compact",palette:A,children:Je.status.error||Je.fees.error||Je.quote?.quoteError}),!mn&&Je.status.finalizationError&&f(Qt,{variant:"outline",dark:b,disabled:Je.status.finalizing,onClick:()=>void Je.retryFinalization(),children:"Retry application update"}),!mn&&Je.status.step==="error"&&Je.status.error==="Transaction fees changed. Refresh the quote before submitting."&&f(Qt,{variant:"outline",dark:b,disabled:Je.status.isExecuting,onClick:Je.retrySupply,children:"Refresh quote"}),Je.status.statusMsg&&f("span",{role:"status",children:Je.status.statusMsg})]}),Z&&!dt&&Tt.length===0&&f(Vn,{variant:"warning",size:"compact",palette:A,children:"No withdrawal networks are available for this asset."}),Me&&f(Vn,{variant:"error",size:"compact",palette:A,fontFamily:o?.fontFamily||S.typography.fontFamily,style:{marginBottom:"12px"},children:Me}),mt&&R(Vn,{variant:Ut?"error":"warning",size:"compact",palette:A,children:[Ut?"Unable to load this balance. Please try again.":"Some other balances could not be refreshed."," ",f("button",{type:"button",onClick:()=>void fn(),children:"Retry"})]}),f(Qt,{variant:"outline",fullWidth:!0,onClick:()=>{if(zn)if(it){if(St&&ao<=0n)return;Je.submitSupply()}else Pn()},disabled:Ko||io,theme:S,dark:b,styles:o,style:{marginTop:"8px"},children:io?"EXECUTING...":it&&mn?"WITHDRAWN":gt})]})]})})}return null},_i=Ih,Sh=({onDepositClick:e,onWithdrawClick:t,depositDisabled:n=!1,withdrawDisabled:o=!1,primaryColor:r="#EA4B4B",buttonStyles:s,dark:a=!1})=>{if(!e&&!t)return null;const i={button:{backgroundColor:r,...s}};return R("div",{style:{display:"flex",gap:"8px"},children:[e&&f(Qt,{variant:"outline",onClick:e,disabled:n,dark:a,styles:i,style:{flex:1,height:"44px",fontSize:"12px"},children:"Deposit"}),t&&f(Qt,{variant:"outline",onClick:()=>t(),disabled:o,dark:a,styles:i,style:{flex:1,height:"44px",fontSize:"12px"},children:"Withdraw"})]})},Ah=mo(Sh),Eh=({section:e,dk:t,dark:n=!1})=>{const o=r=>{switch(r){case"green":return"#10b981";case"red":return"#ef4444";default:return t.textPrimary}};return R("div",{children:[f("div",{style:{fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:t.textSecondary,marginBottom:"8px",textTransform:"uppercase"},children:e.title}),f("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:e.items.map((r,s)=>R("div",{role:r.onClick?"button":void 0,tabIndex:r.onClick?0:void 0,onClick:r.onClick,onKeyDown:r.onClick?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),r.onClick?.())}:void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",backgroundColor:t.cardBg,border:n?`1px solid ${t.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[r.tokenLogoURI?f("img",{src:r.tokenLogoURI,alt:r.tokenSymbol,style:{width:"20px",height:"20px",borderRadius:"50%"}}):f("div",{style:{width:"20px",height:"20px",borderRadius:"50%",backgroundColor:n?t.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:600,color:t.textSecondary},children:r.tokenSymbol.charAt(0)}),R("div",{children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:t.textPrimary},children:r.tokenSymbol}),f("div",{style:{fontSize:"11px",color:t.textSecondary},children:r.label})]})]}),f("div",{style:{fontSize:"13px",fontWeight:600,color:o(r.valueColor)},children:r.displayValue})]},s))})]})},Fh=mo(Eh);var Th="data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='black' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='17 1 21 5 17 9' /%3e%3cpath d='M3 11V9a4 4 0 0 1 4-4h14' /%3e%3cpolyline points='7 23 3 19 7 15' /%3e%3cpath d='M21 13v2a4 4 0 0 1-4 4H3' /%3e%3c/svg%3e";const el=({color:e})=>R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[f("circle",{cx:"7",cy:"7",r:"6.5",stroke:e,strokeWidth:"1.2"}),f("path",{d:"M7 6v4",stroke:e,strokeWidth:"1.2",strokeLinecap:"round"}),f("circle",{cx:"7",cy:"4.5",r:"0.7",fill:e})]}),gu=({content:e,label:t="More info",textColor:n="#f9fafb",backgroundColor:o="#111827",borderColor:r="rgba(255,255,255,0.08)",accentColor:s="#9ca3af",children:a})=>{const i=Pl(),[l,c]=L(!1),u=j(null),[d,p]=L(!1),[w,m]=L(null);ue(()=>{p(!0)},[]),To(()=>{if(!l||!u.current)return;const h=()=>{if(!u.current)return;const y=u.current.getBoundingClientRect(),C=Math.min(220,window.innerWidth-48),S=Math.min(Math.max(y.left+y.width/2,24+C/2),window.innerWidth-24-C/2),b=y.top>84;m({top:b?y.top-10:y.bottom+10,left:S,placement:b?"top":"bottom"})};return h(),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[l]);const g=l&&d&&w?_a(R("span",{id:i,role:"tooltip",style:{position:"fixed",left:w.left,top:w.top,transform:w.placement==="top"?"translate(-50%, -100%)":"translate(-50%, 0)",width:"220px",maxWidth:"min(220px, calc(100vw - 48px))",padding:"10px 12px",borderRadius:"10px",backgroundColor:o,color:n,border:`1px solid ${r}`,boxShadow:"0 18px 45px rgba(0,0,0,0.28)",fontSize:"11px",lineHeight:"1.45",fontWeight:500,textAlign:"left",zIndex:ur.tooltip,pointerEvents:"none"},children:[e,f("span",{"aria-hidden":"true",style:{position:"absolute",left:"50%",width:"10px",height:"10px",transform:"translateX(-50%) rotate(45deg)",backgroundColor:o,...w.placement==="top"?{bottom:"-6px",borderRight:`1px solid ${r}`,borderBottom:`1px solid ${r}`}:{top:"-6px",borderTop:`1px solid ${r}`,borderLeft:`1px solid ${r}`}}})]}),document.body):null;return R(wn,{children:[f("span",{ref:u,style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:f("button",{type:"button","aria-label":t,"aria-describedby":l?i:void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),style:{width:"18px",height:"18px",borderRadius:"999px",display:"inline-flex",alignItems:"center",justifyContent:"center",border:`1px solid ${r}`,backgroundColor:"transparent",color:s,cursor:"help",padding:0,outline:"none",boxShadow:l?`0 0 0 2px ${s}26`:"none",transition:"border-color 120ms ease, box-shadow 120ms ease, color 120ms ease"},children:a||f(el,{color:s})})}),g]})},Bh=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s=!0,address:a,dk:i,dark:l=!1,showModeToggle:c,isEmbeddedMode:u=!0,onModeToggle:d})=>{const[p,w]=L(!1),m=async()=>{a&&await hp(a)&&(w(!0),setTimeout(()=>w(!1),2e3))},g=t==="active",h=n||(g?"Active":"Inactive"),y=g?"#10b981":"#9ca3af",C=R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[R("div",{children:[f("strong",{children:"Embedded:"})," Deposit assets into ",e," account and use them here."]}),R("div",{children:[f("strong",{children:"External:"})," Use assets from your connected wallet here."]})]});return R("div",{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"4px"},children:[R("div",{style:{fontSize:"13px",fontWeight:600,color:i.textPrimary},children:[e," Account"]}),c?R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[R("button",{onClick:d,style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:l?i.hoverBg:"#f3f4f6",border:l?`1px solid ${i.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"11px",fontWeight:600,fontFamily:tt.mono,color:i.textSecondary,transition:"background-color 150ms ease, border-color 150ms ease, color 150ms ease",letterSpacing:"0.02em"},children:[f("span",{children:u?"Embedded":"External"}),f("img",{src:Th,alt:"","aria-hidden":"true",style:{width:"11px",height:"11px",display:"block",...l?{filter:"invert(0.65)"}:{}}})]}),f(gu,{content:C,label:"Account mode info",textColor:l?i.textPrimary:"#f9fafb",backgroundColor:l?i.cardBg:"#111827",borderColor:l?i.cardBorder:"rgba(255,255,255,0.08)",accentColor:l?i.textSecondary:"#6b7280",children:f("img",{src:$i,alt:"","aria-hidden":"true",style:{width:"12px",height:"12px",display:"block",...l?{filter:"invert(0.65)"}:{}}})})]}):R("div",{style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:l?i.hoverBg:g?"#ecfdf5":"#f3f4f6",border:l?`1px solid ${i.cardBorder}`:g?"1px solid #a7f3d0":"1px solid #e5e7eb"},children:[f("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:y}}),f("span",{style:{fontSize:"11px",fontWeight:500,color:l?i.textSecondary:g?"#065f46":"#6b7280"},children:h})]})]}),s&&f("div",{style:{fontSize:"28px",fontWeight:700,color:i.textPrimary,lineHeight:1.2,marginBottom:"2px"},children:pr(o)}),s&&r&&f("div",{style:{fontSize:"12px",color:i.textSecondary,marginBottom:"8px"},children:r}),a&&R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f("span",{style:{fontSize:"12px",fontFamily:tt.mono,color:l?i.textSecondary:"#9ca3af"},children:ts(a)}),f("button",{onClick:m,style:{padding:"2px 6px",fontSize:"10px",fontWeight:500,backgroundColor:"transparent",color:l?i.textSecondary:"#9ca3af",border:"none",cursor:"pointer",borderRadius:"4px",transition:"background-color 150ms ease, color 150ms ease"},title:"Copy address",children:p?"Copied":"Copy"})]})]})},Oh=mo(Bh),Rh={1:"ethereum",56:"binance-smart-chain",137:"polygon-pos",143:"monad",4114:"citrea",4663:"robinhood",8453:"base",42161:"arbitrum-one"},Dh=6e4,Es=new Map;function wu(e,t){return Es.get(e)?.logos?.get(t.toLowerCase())}function Mh(e,t){const n=Rh[e];if(!n||Fe(t))return;const o=Es.get(e);if(o?.logos||o?.pending)return o.pending;if(o?.failedAt!==void 0&&Date.now()-o.failedAt<Dh)return;const r=Promise.resolve().then(async()=>{try{const s=await fetch(`https://tokens.coingecko.com/${n}/all.json`,{signal:AbortSignal.timeout(1e4)});if(!s.ok)throw new Error("Token list request failed");const a=await s.json(),i=new Map;for(const l of a?.tokens??[])l?.address&&l?.logoURI&&i.set(String(l.address).toLowerCase(),l.logoURI);Es.set(e,{logos:i})}catch(s){console.warn(`[tokenLogos] Token list unavailable for chain ${e}`,s),Es.set(e,{failedAt:Date.now()})}});return Es.set(e,{...o,pending:r}),r}function tl(e,t,n){const[o,r]=L(),s=e||e===null||t===void 0||!n?void 0:`${t}:${n.toLowerCase()}`,a=s?wu(t,n):void 0;return ue(()=>{if(!s||a||t===void 0||!n)return;let i=!0;const l=()=>{const u=wu(t,n);i&&u&&r({token:s,logo:u})},c=Mh(t,n);return c?c.then(l):l(),()=>{i=!1}},[s,a,t,n]),e||a||(o&&o.token===s?o.logo:void 0)}const Nh=({asset:e,label:t,logo:n,dk:o,dark:r})=>{const s=tl(n,e.chainId,e.tokenAddress),[a,i]=Co.useState();return n===null?null:s&&s!==a?f("img",{src:s,alt:t,onError:()=>i(s),style:{width:"24px",height:"24px",borderRadius:"50%"}}):f("div",{style:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:r?o.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:600,color:o.textSecondary},children:t.charAt(0)})},Ph=e=>`${e.tokenAddress}-${e.chainId}`,Wh=({spiceAssets:e,loading:t,dk:n,dark:o=!1,canDirectWithdraw:r=!1,onDirectWithdraw:s,directWithdrawState:a,onWithdrawClick:i,limit:l})=>{const c=Fo(),[u,d]=L(!1),p=l!==void 0&&!u?Math.max(e.length-l,0):0,w=p>0?e.slice(0,l):e,m={fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:n.textSecondary,marginBottom:"8px",textTransform:"uppercase"},g={backgroundColor:n.cardBg,border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"};return t?R("div",{children:[f("div",{style:m,children:"Idle Balances"}),[1,2].map(h=>f("div",{style:{...g,padding:"12px",marginBottom:"6px",height:"48px",animation:"pulse 1.5s ease-in-out infinite",opacity:.5}},h))]}):e.length===0?R("div",{children:[f("div",{style:m,children:"Idle Balances"}),f("div",{style:{...g,padding:"16px",textAlign:"center",fontSize:"13px",color:o?n.textSecondary:"#9ca3af"},children:"No assets yet. Deposit to get started."})]}):R("div",{children:[f("div",{style:m,children:"Idle Balances"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[w.map(h=>{const y=bt(h.chainId),C=h.chainDisplayName||y?.displayName||`Chain ${h.chainId}`,S=c({symbol:h.tokenSymbol,displaySymbol:h.tokenDisplaySymbol||h.tokenDisplayName,displayName:h.tokenDisplayName,receiptTokenId:h.receiptTokenId,receiptTokenName:h.receiptTokenName,location:h.location,logoURI:h.logoURI}),b=S.symbol,A=Ph(h),O=h.receiptTokenId&&i,v=O||r&&h.directWithdraw&&!!s,x=!O&&a?.key===A?a:null,F=x?.step==="pending";return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",...g},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f(Nh,{asset:h,label:b,logo:S.logoURI,dk:n,dark:o}),R("div",{children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:b}),f("div",{style:{fontSize:"11px",color:o?n.textSecondary:"#9ca3af"},children:C})]})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[R("div",{style:{textAlign:"right"},children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:Gs({balance:BigInt(h.balance),decimals:h.tokenDecimals})}),f("div",{style:{fontSize:"11px",color:x?.step==="error"?n.errorText:o?n.textSecondary:"#9ca3af"},children:x?.step==="error"?x.message||"Withdraw failed":!Number.isFinite(h.usdValue)||h.usdValue<=0?"\u2014":`${pr(h.usdValue)}${h.priceStatus==="stale"?" (stale)":""}`})]}),v&&f("button",{onClick:()=>{F||(O?O(h.receiptTokenId):s(h))},disabled:F,title:O?"Choose withdrawal network":"Withdraw to external wallet",style:{padding:"6px 10px",borderRadius:"6px",border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",backgroundColor:o?n.hoverBg:"#ffffff",color:n.textPrimary,fontSize:"11px",fontWeight:600,cursor:F?"default":"pointer",opacity:F?.6:1,whiteSpace:"nowrap"},children:F?"Withdrawing\u2026":"Withdraw"})]})]},h.positionId??`${h.owner??""}:${h.location??""}:${h.receiptTokenId??`${h.tokenAddress}-${h.chainId}`}`)}),l!==void 0&&e.length>l&&R("button",{onClick:()=>d(!u),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"8px 12px",...g,cursor:"pointer",color:n.textSecondary,fontSize:"12px",fontWeight:500},children:[f("span",{children:u?"Show less":`Show ${p} more`}),f("span",{style:{transform:u?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]})]})]})},Uh=mo(Wh),Lh=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s,address:a,spiceAssets:i,spiceAssetsLoading:l,customSections:c,notice:u,onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:m,buttonStyles:g,dk:h,dark:y=!1,showModeToggle:C,isEmbeddedMode:S,onModeToggle:b,showConnectExternalCta:A,onConnectExternalWallet:O,connectExternalError:v,showHowItWorks:x=!0,canDirectWithdraw:F,onDirectWithdraw:T,directWithdrawState:B,idleBalancesLimit:M})=>{const[k,E]=L(!1);return R("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",maxHeight:"calc(80vh - 32px)",overflowY:"auto"},children:[f(Oh,{appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s,address:a,dk:h,dark:y,showModeToggle:C,isEmbeddedMode:S,onModeToggle:b}),u&&f("div",{style:{padding:"10px 12px",borderRadius:"8px",backgroundColor:u.tone==="warning"?y?"rgba(245, 158, 11, 0.12)":"#fffbeb":u.tone==="success"?y?"rgba(16, 185, 129, 0.12)":"#ecfdf5":h.cardBg,border:u.tone==="warning"?y?"1px solid rgba(245, 158, 11, 0.35)":"1px solid #fde68a":u.tone==="success"?y?"1px solid rgba(16, 185, 129, 0.35)":"1px solid #a7f3d0":y?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",color:u.tone==="warning"?y?"#fbbf24":"#92400e":u.tone==="success"?y?"#34d399":"#047857":h.textSecondary,fontSize:"12px",lineHeight:1.45,fontWeight:500},children:u.message}),A&&R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[f("button",{onClick:O,style:{width:"100%",padding:"10px 14px",borderRadius:"8px",backgroundColor:m||"#EA4B4B",color:"#ffffff",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:600,fontFamily:tt.ui,transition:"opacity 150ms ease"},children:"Connect External Wallet"}),v&&f("span",{style:{fontSize:"11px",color:y?h.errorText:"#b91c1c",lineHeight:1.4},children:v})]}),f("div",{style:{height:"1px",backgroundColor:y?"#2d2d2d":"#e5e7eb"}}),f(Ah,{onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:m,buttonStyles:g,dark:y}),x&&R("div",{children:[R("button",{onClick:()=>E(!k),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"8px 12px",backgroundColor:h.cardBg,border:y?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",color:h.textSecondary,fontSize:"12px",fontWeight:500},children:[f("span",{children:"How It Works"}),f("span",{style:{transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]}),k&&R("div",{style:{marginTop:"6px",padding:"10px 12px",backgroundColor:y?h.cardBg:"#f0fdf4",border:y?`1px solid ${h.cardBorder}`:"1px solid #bbf7d0",borderRadius:"8px",fontSize:"12px",lineHeight:1.5,color:y?h.textSecondary:"#374151"},children:["Fund your ",e," Account from any supported chain. Once funded, transact gas-free and asset-abstracted on ",e,"."]})]}),f(Uh,{spiceAssets:i,loading:l,dk:h,dark:y,canDirectWithdraw:F,onDirectWithdraw:T,directWithdrawState:B,onWithdrawClick:p,limit:M}),c.map((I,D)=>f(Fh,{section:I,dk:h,dark:y},D))]})},qh=mo(Lh);function zh({dark:e,onSuccess:t,onError:n}){const{disconnect:o}=Ya(),{logout:r}=Yl(),[s,a]=L(!1);return f(Qt,{variant:"ghost",fullWidth:!0,dark:e,loading:s,onClick:async()=>{a(!0);try{o(),await r(),t()}catch(i){n(Un(i,"Unable to disconnect. Please try again."))}finally{a(!1)}},children:"Disconnect"})}const nl=380,Cr=8,Hh=[],Qh={};function yu(e){return e?.trim().replace(/^spice/i,"").replace(/[^a-z0-9]/gi,"").toUpperCase()||void 0}function Vh(e,t){const n=new Map;Object.entries(t).forEach(([r,s])=>{if(!Number.isFinite(s)||s<=0)return;n.set(r,s),n.set(r.toUpperCase(),s);const a=yu(r);a&&n.set(a,s)});const o=[e.symbol,e.displaySymbol,e.receiptTokenName,e.name,e.displayName];for(const r of o){if(!r)continue;const s=n.get(r)??n.get(r.toUpperCase());if(s!==void 0)return s;const a=yu(r);if(!a)continue;const i=n.get(a);if(i!==void 0)return i}return 0}const bu=({appName:e,status:t="active",statusLabel:n,customSections:o=Hh,extraAssets:r=[],tokenPrices:s={},tokenLogos:a=Qh,breakdownLabels:i=[],notice:l,styles:c,dark:u,onDepositClick:d,onWithdrawClick:p,showModeToggle:w=!1,defaultMode:m,showUsdSummary:g=!0,alwaysShowEmbeddedIdle:h=!1,idleBalancesLimit:y,showDisconnect:C=!1})=>{const S=an(_t),b=S?.mode!=="7702",A=!!S?.isWhitelistGateActive,O=!!S?.isWhitelistConfigured&&S?.isUserWhitelisted!==!0,v=j(!1);ue(()=>{if(!v.current){if(gp()){v.current=!0;return}m&&S?.setMode&&(S.setMode(m==="non7702"?"ondemand":"7702"),v.current=!0)}},[S,m]);const[x,F]=L(!1),[T,B]=L({top:0,bottom:0,left:0,placement:"below"}),M=j(null),k=j(null),{address:E,isConnected:I}=Eo(),D=S?.embeddedWalletAddress,P=S?.externalWalletAddress,{embeddedAddress:H}=Tr(),{brand:Q,dark:G,primaryColor:oe,dk:$}=sn(c,u),V=e??Q?.appName??"Spice",re=b&&!P,X=!b||h,he=X?D||H:E,be=ge(()=>S?.supportedChainIds??Ys("mainnet"),[S?.supportedChainIds]),fe=yr({owner:X?he:P,role:"holding",sourceChains:be,additionalSourceTokens:r.filter(pe=>!pe.receiptTokenId&&(!pe.owner||ee(pe.owner,X?he:P))).map(pe=>({address:pe.tokenAddress,chainId:pe.chainId,decimals:pe.tokenDecimals,symbol:pe.tokenSymbol,logoURI:pe.logoURI})),includeRollupAssets:X,enabled:X?!!he:!!P}),xe=fe.assets.filter(pe=>pe._source==="spice"),te=fe.walletAssets,K=fe.loading,le=fe.refresh,N=X?he:P,Le=ge(()=>r.filter(pe=>!pe.owner||pe.owner.toLowerCase()===N?.toLowerCase()).map(pe=>({...pe,owner:pe.owner??N,location:pe.location??(pe.receiptTokenId?"rollup":X?"embedded":"external")})),[r,N,X]),Te=ge(()=>{const pe=new Map(Object.entries(s).filter(([,Oe])=>Number.isFinite(Oe)&&Oe>0).map(([Oe,at])=>[Oe.toLowerCase(),at]));return te.map(Oe=>({owner:Oe.owner,location:Oe.location,positionId:ve(Oe),tokenAddress:Oe.address,tokenSymbol:Oe.symbol,tokenDecimals:Oe.decimals,chainId:Oe.chainId,chainDisplayName:ro(Oe.chainId),balance:Oe.balance.toString(),balanceFormatted:Oe.balanceFormatted,usdValue:Oe.balanceUsd||(pe.get(`${Oe.chainId}:${Oe.address.toLowerCase()}`)??0)*Oe.balanceFormatted,logoURI:Oe.logoURI||a[Oe.symbol],directWithdraw:X}))},[te,Le,a,s,X]),z=ge(()=>{const pe=X?xe.map(Ae=>{const Xe=Ae.balanceUsd||0,kt=Number.isFinite(Ae.balanceFormatted)?Ae.balanceFormatted:0,Ge=Vh(Ae,s),Bt=Ae.priceStatus&&Ge>0?Ge*kt:Xe>0?Xe:Ge*kt;return{owner:Ae.owner,location:Ae.location,positionId:ve(Ae),tokenAddress:Ae.address,tokenSymbol:Ae.symbol,tokenDisplaySymbol:yp(Ae),tokenDisplayName:wp(Ae),tokenDecimals:Ae.decimals,chainId:Ae.chainId,chainDisplayName:ja(Ae),balance:Ae.balance.toString(),balanceFormatted:Ae.balanceFormatted,usdValue:Bt,priceStatus:Ge>0?void 0:Ae.priceStatus,logoURI:Ae.logoURI,receiptTokenId:Ae.receiptTokenId,receiptTokenName:Ae.receiptTokenName}}):[],Oe=Ae=>`${Ae.owner?.toLowerCase()}:${Ae.location}:${Ae.chainId}:${Ae.receiptTokenId??pt(Ae.tokenAddress).toLowerCase()}`,at=new Map([...fe.rollupAssets,...te].map(Ae=>[Oe({...Ae,tokenAddress:Ae.address}),Ae])),Ke=new Map([...pe,...Te].map(Ae=>[Oe(Ae),Ae]));for(const Ae of re?[]:Le){const Xe=Oe(Ae),kt=Ke.get(Xe);Ke.set(Xe,kt?{...Ae,...kt,logoURI:Ae.logoURI??kt.logoURI,tokenDisplayName:Ae.tokenDisplayName??kt.tokenDisplayName,tokenDisplaySymbol:Ae.tokenDisplaySymbol??kt.tokenDisplaySymbol}:Ae)}return[...Ke.values()].filter(Ae=>BigInt(Ae.balance)>0n&&Rc({isDiscovered:at.get(Oe(Ae))?.isDiscovered,balanceUsd:Ae.usdValue},!0)&&qs(at.get(Oe(Ae))??{address:Ae.tokenAddress,symbol:Ae.tokenSymbol,displaySymbol:Ae.tokenDisplaySymbol},S?.allowedTokens)).sort((Ae,Xe)=>Xe.usdValue-Ae.usdValue)},[X,re,xe,fe.rollupAssets,s,Te,Le,S?.allowedTokens]),q=ge(()=>z.reduce((pe,Oe)=>pe+Oe.usdValue,0),[z]),ne=ge(()=>o.reduce((pe,Oe)=>pe+(Oe.totalValue??0),0),[o]),de=q+ne,J=ge(()=>{const pe=[];q>0&&pe.push(`${pr(q)} idle`);for(const Oe of o){const at=i.find(Ke=>Ke.sectionTitle===Oe.title)?.label||Oe.title.toLowerCase();pe.push(`${pr(Oe.totalValue??0)} ${at}`)}return pe.join(" \xB7 ")},[q,o,i]),ie=se(()=>{if(!M.current)return;const pe=M.current.getBoundingClientRect(),Oe=window.innerHeight-pe.bottom-Cr,at=pe.top-Cr,Ke=Oe>=400||Oe>=at?"below":"above",Ae=Math.max(Cr,Math.min(pe.right-nl,window.innerWidth-nl-Cr)),Xe=Ke==="below"?pe.bottom+Cr:pe.top-Cr,kt=Ke==="above"?window.innerHeight-Xe:0;B({top:Xe,bottom:kt,left:Ae,placement:Ke})},[]);To(()=>{x&&ie()},[x,ie]),ue(()=>{if(!x)return;const pe=Ke=>{M.current&&!M.current.contains(Ke.target)&&k.current&&!k.current.contains(Ke.target)&&F(!1)},Oe=Ke=>{Ke.key==="Escape"&&F(!1)},at=()=>ie();return document.addEventListener("mousedown",pe),document.addEventListener("keydown",Oe),window.addEventListener("scroll",at,{passive:!0}),window.addEventListener("resize",ie),()=>{document.removeEventListener("mousedown",pe),document.removeEventListener("keydown",Oe),window.removeEventListener("scroll",at),window.removeEventListener("resize",ie)}},[x,ie]);const ze=X?D||H||E:P||E,Se=se(()=>{S?.setMode&&S.setMode(b?"7702":"ondemand")},[S,b]),[Ce,et]=L(null);let Me=null;try{Me=Kl({onSuccess:()=>et(null),onError:pe=>et(Un(pe,"Failed to connect wallet."))}).connectWallet}catch{Me=null}const Ne=se(()=>{Me&&(F(!1),et(null),Me({walletChainType:"ethereum-only"}))},[Me]),We=!P&&!!Me,we=se(()=>{F(!1),d?.()},[d]),Ye=se(pe=>{F(!1),p?.(pe)},[p]),[ke,He]=L(null),ft=X&&!!P&&!ee(N,P),Ze=se(pe=>{const Oe=te.find(at=>at.chainId===pe.chainId&&ee(at.address,pe.tokenAddress));Oe&&(F(!1),He(Oe))},[te]);if(typeof window>"u")return null;const nt=R("button",{ref:M,onClick:()=>F(!x),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 14px",borderRadius:"9999px",backgroundColor:G?$.hoverBg:"#ffffff",border:G?`1px solid ${$.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"13px",fontWeight:500,fontFamily:tt.ui,color:G?$.textPrimary:"#111827",transition:"background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease",boxShadow:G?"none":"0 1px 2px rgba(0,0,0,0.05)"},children:[R("span",{children:[V," Account"]}),I&&g&&R("span",{style:{color:G?$.textSecondary:"#6b7280"},children:["\xB7 ",pr(de)]}),f("span",{style:{fontSize:"10px",color:G?$.textSecondary:"#9ca3af",transform:x?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:"\u25BE"})]}),Qe=x?Zl.createPortal(R(wn,{children:[f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:ur.popover},onClick:()=>F(!1)}),R("div",{ref:k,style:{position:"fixed",top:T.placement==="below"?`${T.top}px`:"auto",bottom:T.placement==="above"?`${T.bottom}px`:"auto",left:`${T.left}px`,width:`${nl}px`,maxWidth:`calc(100vw - ${Cr*2}px)`,maxHeight:"80vh",backgroundColor:G?$.shell:"#ffffff",border:G?`1px solid ${$.cardBorder}`:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:G?"0 10px 40px rgba(0, 0, 0, 0.5)":"0 10px 40px rgba(0, 0, 0, 0.12)",zIndex:ur.popover+1,overflow:"hidden",animation:`accountDisplayFadeIn 200ms ${Fr.out}`},children:[f(qh,{appName:V,status:t,statusLabel:n,totalUsdValue:de,breakdownSubtitle:J,showUsdSummary:g,address:X?ze:E,spiceAssets:z,spiceAssetsLoading:K,customSections:o,notice:l,onDepositClick:d?we:void 0,onWithdrawClick:p?Ye:void 0,depositDisabled:O,primaryColor:oe,buttonStyles:c?.button,dk:$,dark:G,showModeToggle:w,isEmbeddedMode:!b,onModeToggle:Se,showConnectExternalCta:We,onConnectExternalWallet:Ne,connectExternalError:Ce,showHowItWorks:!A,canDirectWithdraw:ft,onDirectWithdraw:Ze,idleBalancesLimit:y}),C&&I&&f("div",{style:{padding:"0 16px 16px"},children:f(zh,{dark:G,onSuccess:()=>F(!1),onError:et})})]}),f("style",{children:`
|
|
16
|
+
`,hd=({title:e,showChevron:t,expanded:n,onToggleDetails:o,showClose:r,onClose:s,fontFamily:a,labelColor:i,textPrimary:l,closeHoverBg:c,closePressedBg:u})=>{const[d,p]=L(!1),[w,m]=L(!1);return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:o?"pointer":"default"},onClick:o,children:[R("span",{style:{fontSize:"13px",fontWeight:500,color:i,fontFamily:a},children:[e," "]}),t&&f(Mr,{color:i,direction:n?"up":"down"})]}),r&&f("button",{onClick:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1),style:{background:w?u:d?c:"none",border:"none",borderRadius:"4px",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:d||w?l:i,transform:w?"scale(0.9)":d?"scale(1.1)":"scale(1)",transition:uo.interactive},children:f(ws,{size:16})})]})},gd=({chainName:e,bg:t,border:n,textPrimary:o,labelColor:r,primaryColor:s})=>R("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"20px 16px",borderRadius:"8px",backgroundColor:t,border:`1px solid ${n}`,gap:"12px"},children:[f(zo,{size:24,borderWidth:3,color:s}),R("div",{children:[f("p",{style:{margin:0,fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.5px",color:o},children:"PROCESSING TRANSACTION"}),R("p",{style:{margin:"2px 0 0 0",fontSize:"12px",color:r},children:["on ",e]})]})]}),wd=({bg:e,border:t,left:n,right:o})=>R("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:e,border:`1px solid ${t}`,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n,o]}),Ni=({isOpen:e,onClose:t,onComplete:n,closeOnComplete:o=!1,type:r,results:s,chainId:a,chainName:i,explorerUrl:l,theme:c,styles:u,dark:d,intentStatus:p,onRetry:w,onNewTx:m,onRetryTx:g,asOverlay:h=!0,isProcessing:y=!1,showStepBreakdown:C=!0})=>{const{theme:S,primaryColor:b,dark:A,dk:O}=on(u,d),v=c||S,[x,F]=L(!1),T=i??(a?ro(a):"Network"),B=l??(a&&Gs(a,"").replace(/\/tx\/.*$/,"")||void 0),M=A?O.cardBg:"#ffffff",k=A?"0 4px 20px rgba(0, 0, 0, 0.4)":"0 4px 20px rgba(0, 0, 0, 0.1)",E=A?"0 -4px 8px -2px rgba(0, 0, 0, 0.4)":"0 -4px 8px -2px rgba(0, 0, 0, 0.15)",I=O.textSecondary,D=A?O.textPrimary:"#374151",P=A?O.inputBg:"#f9fafb",H=A?O.inputBorder:"#e5e7eb",Q=A?O.inputBg:"#f3f4f6",G=A?O.inputBorder:"#e5e7eb",[ne,X]=L(!0),V=A?O.inputBg:"#f9fafb",oe=A?O.hoverBg:"#f3f4f6",Y=A?{successBg:O.successBg,successBorder:O.successBorder,successText:O.successText,errorBg:O.errorBg,errorBorder:O.errorBorder,errorText:O.errorText}:{},ge=p?.steps.find(ie=>ie.status==="failed")?.error;pe(()=>{!e&&!p&&F(!1)},[e,p]);const xe=()=>{F(!0),setTimeout(()=>{window.dispatchEvent(new CustomEvent("tx-complete",{detail:{type:r,results:s}})),window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:{type:r,status:"success",results:s}})),n?.(),o&&t()},300)},he=()=>{X(!ne)};if(p){const{steps:ie,overallStatus:N}=p,Le=N==="processing",Te=N==="success",z=N==="failed",q=ie.filter(ae=>ae.transactionHash)[0],ee=ie.length>1?ie.map(ae=>ae.chainName).filter(Boolean).join(" and "):T!=="Network"?T:ie[0]?.chainName||T,ce=B||(q?Gs(q.chainId,q.transactionHash||"").replace(/\/tx\/.*$/,""):void 0),Z=R(kn,{children:[f(hd,{title:Le?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:C,expanded:ne,onToggleDetails:he,showClose:!Le,onClose:t,fontFamily:u?.fontFamily||v.typography.fontFamily,labelColor:I,textPrimary:D,closeHoverBg:V,closePressedBg:oe}),f("div",{style:{marginBottom:"16px"},children:Le?f(gd,{chainName:ee,bg:Q,border:G,textPrimary:D,labelColor:I,primaryColor:b}):f(fd,{isSuccess:Te,type:r,chainName:ee,explorerUrl:ce,txHash:q?.transactionHash,dark:A,...Y,textSecondary:I})}),C&&f("div",{style:{overflow:"hidden",maxHeight:ne?"300px":"0px",opacity:ne?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:ne?"16px":"0"},children:f("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:ie.map((ae,ze)=>{const Ie=ae.transactionHash?Gs(ae.chainId,ae.transactionHash):null;return f(wd,{bg:P,border:H,left:f("span",{style:{fontSize:"13px",color:D},children:ae.chainName?`On ${ae.chainName}`:ae.description||`Step ${ze+1}`}),right:R("span",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"12px",color:ae.status==="success"?"#10b981":ae.status==="failed"?"#ef4444":I,fontWeight:500},children:[Ie&&f("a",{href:Ie,target:"_blank",rel:"noopener noreferrer",style:{color:A?O.infoText:"#2563eb",textDecoration:"none"},onClick:Ce=>Ce.stopPropagation(),children:"View"}),ae.status==="success"?"\u2713":ae.status==="failed"?"\u2717":"\u25CB"]})},ze)})})}),!Le&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[z&&w&&f(Vt,{variant:"outline",fullWidth:!0,onClick:w,theme:v,styles:u,dark:A,children:"TRY AGAIN"}),m&&R(Vt,{variant:"outline",fullWidth:!0,onClick:m,theme:v,styles:u,dark:A,children:["NEW ",r.toUpperCase()," \u2192"]})]})]});return h?R("div",{style:{position:"absolute",bottom:0,left:0,right:0,zIndex:10,animation:x?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards",pointerEvents:"auto"},children:[f("div",{style:{backgroundColor:M,borderRadius:"12px 12px 0 0",width:"100%",padding:"18px 24px 24px",boxShadow:E},children:Z}),f("style",{children:md})]}):f("div",{style:{backgroundColor:M,borderRadius:"12px",padding:"24px",width:"100%",boxShadow:k},children:Z})}if(!e&&!y||!y&&(!s||s.length===0))return null;const ve=s?s.every(ie=>ie.success):!1,_=s?.[0],K=[...s??[]].reverse().find(ie=>ie.txHash)?.txHash||_?.txHash;return R("div",{style:{position:h?"absolute":"relative",bottom:h?0:void 0,left:h?0:void 0,right:h?0:void 0,zIndex:h?10:void 0,animation:h?x?"slideDown 0.3s ease-in forwards":"slideUp 0.3s ease-out forwards":void 0,pointerEvents:"auto",width:"100%"},children:[f("div",{style:{backgroundColor:M,borderRadius:h?"12px 12px 0 0":"12px",width:"100%",padding:"18px 0 24px",boxShadow:h?E:k},children:R("div",{style:{width:"100%",boxSizing:"border-box",padding:"0 24px"},children:[f(hd,{title:y?`Processing ${r.charAt(0).toUpperCase()+r.slice(1)}`:`${r.charAt(0).toUpperCase()+r.slice(1)} results`,showChevron:!y&&C,expanded:ne,onToggleDetails:y?void 0:he,showClose:!y,onClose:t,fontFamily:u?.fontFamily||v.typography.fontFamily,labelColor:I,textPrimary:D,closeHoverBg:V,closePressedBg:oe}),f("div",{style:{marginBottom:"16px",animation:"statusFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both"},children:y?f(gd,{chainName:T,bg:Q,border:G,textPrimary:D,labelColor:I,primaryColor:b}):f(fd,{isSuccess:ve,type:r,chainName:T,explorerUrl:B,txHash:K,dark:A,...Y,textSecondary:I})},y?"processing":ve?"success":"error"),!y&&C&&s&&s.length>1&&f("div",{style:{overflow:"hidden",maxHeight:ne?"200px":"0px",opacity:ne?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:ne?"16px":"0"},children:f("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:s.map((ie,N)=>f(wd,{bg:P,border:H,left:R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("span",{style:{fontWeight:600,fontSize:"13px",color:O.textPrimary,fontFamily:nt.mono},children:ie.asset.symbol}),ie.amount&&f("span",{style:{fontSize:"12px",color:I},children:ie.amount})]}),right:f("span",{style:{fontSize:"12px",color:ie.success?"#10b981":"#ef4444",fontWeight:500},children:ie.success?"\u2713":"\u2717"})},N))})}),!y&&!ve&&s&&f("div",{style:{padding:"12px",backgroundColor:O.errorBg,border:`1px solid ${O.errorBorder}`,borderRadius:"8px",marginBottom:"16px"},children:f("p",{style:{fontSize:"13px",color:O.errorText,margin:0,lineHeight:1.5},children:ge||s.find(ie=>!ie.success)?.error||`${r.charAt(0).toUpperCase()+r.slice(1)} failed. Please try again.`})}),!y&&R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!ve&&g&&R(Vt,{variant:"outline",fullWidth:!0,onClick:g,theme:v,styles:u,dark:A,children:["TRY AGAIN ",r.toUpperCase()]}),ve&&f(Vt,{variant:"outline",fullWidth:!0,onClick:xe,theme:v,styles:u,dark:A,children:"DONE"})]})]})}),f("style",{children:md})]})};function bm(e,t){switch(e){case"success":return{bg:t.successBg,border:t.successBorder,text:t.successText};case"warning":return{bg:t.warningBg,border:t.warningBorder,text:t.warningText};case"error":return{bg:t.errorBg,border:t.errorBorder,text:t.errorText};case"info":return{bg:t.infoBg,border:t.infoBorder,text:t.infoText}}}const Hn=({variant:e,palette:t,children:n,icon:o,style:r,fontFamily:s,size:a="default"})=>{const i=bm(e,t),l=a==="compact";return R("div",{role:e==="error"?"alert":"status",style:{backgroundColor:i.bg,border:`1px solid ${i.border}`,borderRadius:l?"7px":"8px",padding:l?"8px 10px":"12px 16px",color:i.text,fontSize:l?"12px":"13px",lineHeight:l?1.4:1.5,display:"flex",alignItems:"flex-start",gap:l?"6px":"8px",fontFamily:s,...r},children:[o&&f("span",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:o}),f("span",{style:{minWidth:0,overflowWrap:"anywhere"},children:n})]})};function ha({activity:e,palette:t,onRefresh:n}){return R(kn,{children:[e.actions.length>0&&f(Hn,{variant:"info",palette:t,style:{marginTop:12,marginBottom:12},children:R("details",{children:[f("summary",{children:"Recent wallet activity"}),e.actions.map(o=>{const r=o.intents.flatMap(i=>i.steps),s=r.filter(i=>["success","completed"].includes(i.status)).length,a=r.some(i=>["error","reverted"].includes(i.status));return R("p",{children:[o.actionId,": ",s,"/",r.length," steps completed.",a?" Remaining work stopped; completed transfers are retained.":s<r.length?" Awaiting backend confirmation.":" Completed."]},o.actionId)}),f("button",{type:"button",onClick:()=>{e.refresh(),n?.()},children:n?"Refresh activity and balances":"Refresh activity"})]})}),e.error&&f(Hn,{variant:"warning",palette:t,children:e.error})]})}const yd=nt.mono,wo=({label:e,value:t,palette:n,valueColor:o,labelColor:r,style:s})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",...s},children:[f("span",{style:{fontSize:"12px",color:r??n.textSecondary,fontFamily:yd,fontWeight:500,letterSpacing:"0.03em",flexShrink:0,whiteSpace:"nowrap"},children:e}),f("span",{style:{fontSize:"13px",color:o??n.textPrimary,fontWeight:500,fontFamily:yd,minWidth:0,textAlign:"right",overflowWrap:"anywhere"},children:t})]});var bd="data:image/svg+xml,%3csvg width='108' height='22' viewBox='0 0 108 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1.9916 11.9854V11.2041H3.98379C4.48835 11.2041 4.87897 11.0739 5.15566 10.8135C5.43236 10.5498 5.5707 10.1868 5.5707 9.72461V9.71484C5.5707 9.24935 5.43236 8.88639 5.15566 8.62598C4.87897 8.36556 4.48835 8.23535 3.98379 8.23535H1.9916V7.4541H4.2084C4.65111 7.4541 5.04173 7.5485 5.38027 7.7373C5.71882 7.92611 5.98411 8.18978 6.17617 8.52832C6.37148 8.86686 6.46914 9.25911 6.46914 9.70508V9.71484C6.46914 10.1608 6.37148 10.5547 6.17617 10.8965C5.98411 11.2383 5.71882 11.5052 5.38027 11.6973C5.04173 11.8893 4.65111 11.9854 4.2084 11.9854H1.9916ZM1.55215 14.5V7.4541H2.43106V14.5H1.55215ZM9.51875 14.5928C9.0207 14.5928 8.58939 14.4837 8.2248 14.2656C7.86348 14.0443 7.58353 13.7301 7.38496 13.3232C7.18965 12.9163 7.09199 12.4329 7.09199 11.873V11.8633C7.09199 11.3001 7.18965 10.8151 7.38496 10.4082C7.58353 10.0013 7.86348 9.6888 8.2248 9.4707C8.58939 9.2526 9.0207 9.14355 9.51875 9.14355C10.0201 9.14355 10.4514 9.2526 10.8127 9.4707C11.174 9.6888 11.4523 10.0013 11.6477 10.4082C11.8462 10.8151 11.9455 11.3001 11.9455 11.8633V11.873C11.9455 12.4329 11.8462 12.9163 11.6477 13.3232C11.4523 13.7301 11.174 14.0443 10.8127 14.2656C10.4514 14.4837 10.0201 14.5928 9.51875 14.5928ZM9.51875 13.8408C9.85078 13.8408 10.1324 13.7627 10.3635 13.6064C10.5946 13.4502 10.7704 13.2256 10.8908 12.9326C11.0145 12.6396 11.0764 12.2865 11.0764 11.873V11.8633C11.0764 11.4466 11.0145 11.0918 10.8908 10.7988C10.7704 10.5059 10.5946 10.2829 10.3635 10.1299C10.1324 9.97363 9.85078 9.89551 9.51875 9.89551C9.18672 9.89551 8.90514 9.97363 8.67402 10.1299C8.4429 10.2829 8.26549 10.5059 8.1418 10.7988C8.02135 11.0918 7.96113 11.4466 7.96113 11.8633V11.873C7.96113 12.2865 8.02135 12.6396 8.1418 12.9326C8.26549 13.2256 8.4429 13.4502 8.67402 13.6064C8.90514 13.7627 9.18672 13.8408 9.51875 13.8408ZM13.7842 14.5L12.3096 9.23633H13.1592L14.1943 13.4453H14.2725L15.4492 9.23633H16.2549L17.4316 13.4453H17.5098L18.5449 9.23633H19.3896L17.915 14.5H17.0605L15.8838 10.4277H15.8057L14.6338 14.5H13.7842ZM22.1658 14.5928C21.6645 14.5928 21.2332 14.4821 20.8719 14.2607C20.5138 14.0394 20.2371 13.7269 20.0418 13.3232C19.8497 12.9163 19.7537 12.4378 19.7537 11.8877V11.8828C19.7537 11.3392 19.8497 10.8623 20.0418 10.4521C20.2371 10.042 20.5122 9.72135 20.867 9.49023C21.2218 9.25911 21.6368 9.14355 22.1121 9.14355C22.5906 9.14355 23.0008 9.25423 23.3426 9.47559C23.6876 9.69694 23.9513 10.0062 24.1336 10.4033C24.3191 10.7972 24.4119 11.2562 24.4119 11.7803V12.1123H20.1932V11.4336H23.9773L23.5574 12.0537V11.7168C23.5574 11.3034 23.4956 10.9632 23.3719 10.6963C23.2482 10.4294 23.0773 10.2308 22.8592 10.1006C22.6411 9.96712 22.3904 9.90039 22.1072 9.90039C21.824 9.90039 21.5701 9.97038 21.3455 10.1104C21.1242 10.2471 20.9484 10.4505 20.8182 10.7207C20.688 10.9909 20.6229 11.3229 20.6229 11.7168V12.0537C20.6229 12.4281 20.6863 12.7487 20.8133 13.0156C20.9402 13.2793 21.1209 13.4827 21.3553 13.626C21.5896 13.766 21.8663 13.8359 22.1854 13.8359C22.423 13.8359 22.6297 13.8034 22.8055 13.7383C22.9813 13.6732 23.1261 13.5902 23.24 13.4893C23.354 13.3883 23.4337 13.2858 23.4793 13.1816L23.4988 13.1377H24.3484L24.3387 13.1768C24.2931 13.3558 24.2117 13.5299 24.0945 13.6992C23.9806 13.8652 23.8325 14.0166 23.6502 14.1533C23.4679 14.2868 23.2514 14.3942 23.0008 14.4756C22.7534 14.5537 22.4751 14.5928 22.1658 14.5928ZM25.4303 14.5V9.23633H26.2799V10.0176H26.358C26.4589 9.74089 26.6298 9.52604 26.8707 9.37305C27.1116 9.22005 27.4094 9.14355 27.7643 9.14355C27.8456 9.14355 27.9254 9.14844 28.0035 9.1582C28.0849 9.16471 28.1467 9.17122 28.1891 9.17773V10.0029C28.1012 9.98665 28.0149 9.97526 27.9303 9.96875C27.8489 9.95898 27.761 9.9541 27.6666 9.9541C27.3964 9.9541 27.1572 10.0078 26.9488 10.1152C26.7405 10.2227 26.5761 10.3724 26.4557 10.5645C26.3385 10.7565 26.2799 10.9811 26.2799 11.2383V14.5H25.4303ZM30.9408 14.5928C30.4395 14.5928 30.0082 14.4821 29.6469 14.2607C29.2888 14.0394 29.0121 13.7269 28.8168 13.3232C28.6247 12.9163 28.5287 12.4378 28.5287 11.8877V11.8828C28.5287 11.3392 28.6247 10.8623 28.8168 10.4521C29.0121 10.042 29.2872 9.72135 29.642 9.49023C29.9968 9.25911 30.4118 9.14355 30.8871 9.14355C31.3656 9.14355 31.7758 9.25423 32.1176 9.47559C32.4626 9.69694 32.7263 10.0062 32.9086 10.4033C33.0941 10.7972 33.1869 11.2562 33.1869 11.7803V12.1123H28.9682V11.4336H32.7523L32.3324 12.0537V11.7168C32.3324 11.3034 32.2706 10.9632 32.1469 10.6963C32.0232 10.4294 31.8523 10.2308 31.6342 10.1006C31.4161 9.96712 31.1654 9.90039 30.8822 9.90039C30.599 9.90039 30.3451 9.97038 30.1205 10.1104C29.8992 10.2471 29.7234 10.4505 29.5932 10.7207C29.463 10.9909 29.3979 11.3229 29.3979 11.7168V12.0537C29.3979 12.4281 29.4613 12.7487 29.5883 13.0156C29.7152 13.2793 29.8959 13.4827 30.1303 13.626C30.3646 13.766 30.6413 13.8359 30.9604 13.8359C31.198 13.8359 31.4047 13.8034 31.5805 13.7383C31.7563 13.6732 31.9011 13.5902 32.015 13.4893C32.129 13.3883 32.2087 13.2858 32.2543 13.1816L32.2738 13.1377H33.1234L33.1137 13.1768C33.0681 13.3558 32.9867 13.5299 32.8695 13.6992C32.7556 13.8652 32.6075 14.0166 32.4252 14.1533C32.2429 14.2868 32.0264 14.3942 31.7758 14.4756C31.5284 14.5537 31.2501 14.5928 30.9408 14.5928ZM36.1486 14.5928C35.7059 14.5928 35.3186 14.4805 34.9865 14.2559C34.6545 14.0312 34.3973 13.7155 34.215 13.3086C34.0328 12.8984 33.9416 12.4199 33.9416 11.873V11.8633C33.9416 11.3132 34.0328 10.8346 34.215 10.4277C34.3973 10.0208 34.6529 9.70508 34.9816 9.48047C35.3137 9.25586 35.7027 9.14355 36.1486 9.14355C36.3895 9.14355 36.6158 9.18262 36.8273 9.26074C37.0422 9.33561 37.2326 9.44141 37.3986 9.57812C37.5647 9.71484 37.6949 9.8776 37.7893 10.0664H37.8674V7.14648H38.717V14.5H37.8674V13.6602H37.7893C37.6818 13.8555 37.5467 14.0231 37.384 14.1631C37.2212 14.2998 37.0357 14.4056 36.8273 14.4805C36.619 14.5553 36.3928 14.5928 36.1486 14.5928ZM36.3439 13.8408C36.663 13.8408 36.938 13.7611 37.1691 13.6016C37.4003 13.4421 37.5777 13.2158 37.7014 12.9229C37.8251 12.6266 37.8869 12.2767 37.8869 11.873V11.8633C37.8869 11.4564 37.8251 11.1064 37.7014 10.8135C37.5777 10.5205 37.4003 10.2943 37.1691 10.1348C36.938 9.97526 36.663 9.89551 36.3439 9.89551C36.0249 9.89551 35.7499 9.97526 35.5188 10.1348C35.2909 10.291 35.1151 10.5156 34.9914 10.8086C34.871 11.1016 34.8107 11.4531 34.8107 11.8633V11.873C34.8107 12.2799 34.871 12.6315 34.9914 12.9277C35.1151 13.2207 35.2909 13.4469 35.5188 13.6064C35.7499 13.7627 36.0249 13.8408 36.3439 13.8408ZM45.1775 14.5928C44.9334 14.5928 44.7072 14.5553 44.4988 14.4805C44.2905 14.4056 44.1049 14.2998 43.9422 14.1631C43.7794 14.0231 43.6443 13.8555 43.5369 13.6602H43.4588V14.5H42.6092V7.14648H43.4588V10.0664H43.5369C43.6346 9.8776 43.7648 9.71484 43.9275 9.57812C44.0936 9.44141 44.2824 9.33561 44.4939 9.26074C44.7088 9.18262 44.9367 9.14355 45.1775 9.14355C45.6235 9.14355 46.0109 9.25586 46.3396 9.48047C46.6717 9.70508 46.9288 10.0208 47.1111 10.4277C47.2934 10.8346 47.3846 11.3132 47.3846 11.8633V11.873C47.3846 12.4199 47.2934 12.8984 47.1111 13.3086C46.9288 13.7155 46.6717 14.0312 46.3396 14.2559C46.0109 14.4805 45.6235 14.5928 45.1775 14.5928ZM44.9822 13.8408C45.3045 13.8408 45.5796 13.7627 45.8074 13.6064C46.0353 13.4469 46.2094 13.2207 46.3299 12.9277C46.4536 12.6315 46.5154 12.2799 46.5154 11.873V11.8633C46.5154 11.4531 46.4536 11.1016 46.3299 10.8086C46.2094 10.5156 46.0353 10.291 45.8074 10.1348C45.5796 9.97526 45.3045 9.89551 44.9822 9.89551C44.6632 9.89551 44.3881 9.97526 44.157 10.1348C43.9259 10.2943 43.7485 10.5205 43.6248 10.8135C43.5011 11.1064 43.4393 11.4564 43.4393 11.8633V11.873C43.4393 12.2767 43.5011 12.6266 43.6248 12.9229C43.7485 13.2158 43.9259 13.4421 44.157 13.6016C44.3881 13.7611 44.6632 13.8408 44.9822 13.8408ZM48.6568 16.3457C48.6015 16.3457 48.5396 16.3424 48.4713 16.3359C48.4029 16.3327 48.3395 16.3262 48.2809 16.3164V15.6182C48.3329 15.6279 48.3899 15.6344 48.4518 15.6377C48.5136 15.641 48.5738 15.6426 48.6324 15.6426C48.8733 15.6426 49.0702 15.5807 49.2232 15.457C49.3795 15.3333 49.5048 15.1201 49.5992 14.8174L49.6969 14.5049L47.7486 9.23633H48.6568L50.2779 14.0996L49.941 13.5674H50.3414L50.0045 14.0996L51.6207 9.23633H52.5143L50.4586 14.8223C50.3154 15.2161 50.164 15.5238 50.0045 15.7451C49.845 15.9665 49.6578 16.1211 49.443 16.209C49.2314 16.3001 48.9693 16.3457 48.6568 16.3457Z' fill='%230E0D0B'/%3e%3cpath d='M62.7081 13.27C62.742 13.27 62.7642 13.3057 62.7491 13.3362V13.336L61.1229 16.6083C61.0892 16.6761 60.9926 16.6759 60.959 16.6083L59.3382 13.336C59.3232 13.3057 59.3453 13.27 59.3792 13.27H62.7081Z' fill='%23EA4B4B'/%3e%3cpath d='M61.0026 9.71913C61.0194 9.68524 61.0678 9.68524 61.0845 9.71913L62.747 13.0897C62.762 13.12 62.7399 13.1557 62.706 13.1557H59.3763C59.3424 13.1557 59.3203 13.12 59.3353 13.0897L61.0026 9.71913Z' fill='%23EA4B4B'/%3e%3cpath d='M60.8426 9.63827C60.8766 9.63827 60.8987 9.6741 60.8835 9.70444L59.2164 13.0594C59.1995 13.0932 59.1513 13.0932 59.1345 13.0594L57.5001 9.77047C57.47 9.70962 57.5142 9.63827 57.5821 9.63827H60.8426Z' fill='%23EA4B4B'/%3e%3cpath d='M64.5036 9.63617C64.5715 9.63618 64.6157 9.70753 64.5855 9.76838H64.5854L62.9512 13.0573C62.9344 13.0911 62.8862 13.0912 62.8692 13.0573L61.2021 9.70235C61.187 9.672 61.2091 9.63617 61.2431 9.63617H64.5036Z' fill='%23EA4B4B'/%3e%3cpath d='M62.8284 6.18281C62.862 6.11518 62.9586 6.11518 62.9922 6.18281L64.5855 9.38969C64.6157 9.45054 64.5715 9.52189 64.5036 9.52189H61.2431C61.2091 9.52189 61.187 9.48605 61.2021 9.45571L62.8283 6.18265L62.8284 6.18281Z' fill='%23EA4B4B'/%3e%3cpath d='M62.3131 6.13196C62.381 6.13196 62.4252 6.20331 62.3951 6.26416C62.154 6.74935 61.9128 7.23455 61.6718 7.71975H61.6716C61.4225 8.22125 61.1733 8.72259 60.9242 9.22409C60.9074 9.25799 60.859 9.25799 60.8422 9.22409L60.6305 8.79587C60.6275 8.78957 60.6259 8.78263 60.6259 8.77553V6.22349C60.6259 6.17297 60.6668 6.13196 60.7173 6.13196H62.3131Z' fill='%23EA4B4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M74.8537 10.0096C75.2721 10.0096 75.654 10.1125 75.9993 10.3184C76.3513 10.5177 76.6303 10.8032 76.8361 11.1751C77.0487 11.547 77.1549 11.9953 77.1549 12.52V12.6495C77.1549 13.1675 77.052 13.6158 76.8461 13.9943C76.6402 14.3729 76.3613 14.6618 76.0093 14.861C75.664 15.0603 75.2788 15.1599 74.8537 15.1599C74.515 15.1599 74.2261 15.1134 73.9871 15.0204C73.7546 14.9341 73.5653 14.8212 73.4192 14.6817C73.2731 14.5423 73.1602 14.3995 73.0805 14.2534H72.941V16.9659L72.1541 16.0013V10.1491H72.9211V10.956H73.0352C73.2729 10.6733 73.3893 10.4911 73.6683 10.2985C73.9538 10.1059 74.349 10.0096 74.8537 10.0096ZM74.6445 10.7069C74.1464 10.7069 73.7347 10.8696 73.4092 11.195C73.0905 11.5138 72.9311 11.9621 72.9311 12.5399V12.6296C72.9311 13.2074 73.0905 13.659 73.4092 13.9844C73.7347 14.3032 74.1464 14.4626 74.6445 14.4626C75.1492 14.4626 75.5577 14.3032 75.8698 13.9844C76.1886 13.659 76.348 13.2074 76.348 12.6296V12.5399C76.348 11.9621 76.1886 11.5138 75.8698 11.195C75.5577 10.8696 75.1492 10.7069 74.6445 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M78.5848 11.9583L78.5555 15.4596L77.7681 14.4846V10.9583L78.5848 11.9583Z' fill='%230E0D0B'/%3e%3cpath d='M101.588 10.2986H102.444L103 10.986H101.588V10.9867H100.802L101.588 11.9623V14.1937C101.588 14.3929 101.685 14.4926 101.877 14.4926H102.379L102.928 15.17H101.668C101.389 15.17 101.173 15.0936 101.021 14.9409C100.874 14.7881 100.801 14.5789 100.801 14.3133V10.986H99.8799L99.3217 10.2986H100.801V9.13501H101.588V10.2986Z' fill='%230E0D0B'/%3e%3cpath d='M69.0133 7.90764C69.4848 7.90764 69.9065 7.99068 70.2784 8.15671C70.6569 8.3161 70.9525 8.55517 71.165 8.87395C71.3842 9.18609 71.4938 9.58126 71.4938 10.0594V10.4778H70.667V10.0594C70.667 9.72072 70.5939 9.44842 70.4477 9.24254C70.3083 9.03666 70.1124 8.88392 69.86 8.7843C69.6143 8.68469 69.332 8.63487 69.0133 8.63487C68.555 8.63487 68.1864 8.7378 67.9075 8.94367C67.6286 9.14291 67.4891 9.4285 67.4891 9.80041C67.4891 10.0461 67.5488 10.2453 67.6684 10.3981C67.7879 10.5508 67.9573 10.677 68.1764 10.7767C68.3956 10.8696 68.658 10.9527 68.9635 11.0257L69.4815 11.1552C69.8866 11.2416 70.2485 11.3611 70.5673 11.5138C70.8927 11.6599 71.1517 11.8625 71.3443 12.1215C71.5369 12.3739 71.6332 12.706 71.6332 13.1177C71.6332 13.5295 71.5303 13.8881 71.3244 14.1936C71.1185 14.4991 70.8263 14.7382 70.4477 14.9109C70.0758 15.0769 69.6375 15.1599 69.1328 15.1599C68.6281 15.1599 68.1765 15.0702 67.778 14.8909C67.3795 14.7116 67.0641 14.4426 66.8316 14.084C66.6058 13.7187 66.4929 13.2638 66.4929 12.7192V12.51H67.3197V12.7192C67.3197 13.297 67.4891 13.7287 67.8278 14.0143C68.1665 14.2932 68.6015 14.4327 69.1328 14.4327C69.6774 14.4327 70.0924 14.3098 70.378 14.0641C70.6636 13.8183 70.8064 13.5095 70.8064 13.1376C70.8064 12.8786 70.74 12.6727 70.6072 12.52C70.481 12.3673 70.3017 12.2444 70.0692 12.1514C69.8368 12.0518 69.5645 11.9655 69.2523 11.8924L68.7343 11.7629C68.3292 11.6566 67.9706 11.5271 67.6584 11.3744C67.3463 11.2216 67.1006 11.0224 66.9213 10.7767C66.7486 10.5243 66.6623 10.2022 66.6623 9.81035C66.6623 9.41852 66.7585 9.07981 66.9511 8.79424C67.1504 8.50866 67.426 8.28953 67.778 8.13678C68.1366 7.98404 68.5484 7.90764 69.0133 7.90764Z' fill='%230E0D0B'/%3e%3cpath d='M81.6544 10.0096C82.1193 10.0096 82.5145 10.0959 82.8399 10.2686C83.1719 10.4412 83.431 10.6704 83.6169 10.956C83.8095 11.2415 83.9324 11.5471 83.9855 11.8725L83.2185 12.0318C83.1853 11.7928 83.1056 11.5736 82.9794 11.3744C82.8598 11.1752 82.6905 11.0158 82.4713 10.8962C82.2521 10.7767 81.9832 10.7169 81.6644 10.7169C81.339 10.7169 81.0468 10.7899 80.7877 10.936C80.5354 11.0821 80.3328 11.2914 80.1801 11.5637C80.034 11.836 79.9609 12.1614 79.9609 12.5399V12.6296C79.9609 13.0081 80.034 13.3335 80.1801 13.6058C80.3328 13.8781 80.5354 14.0873 80.7877 14.2334C81.0468 14.3795 81.339 14.4526 81.6644 14.4526C82.1492 14.4526 82.5178 14.3264 82.7702 14.0741C83.0292 13.8217 83.1886 13.5095 83.2483 13.1376L84.0254 13.307C83.9523 13.6257 83.8195 13.9279 83.6269 14.2135C83.4343 14.4991 83.172 14.7282 82.8399 14.9009C82.5145 15.0735 82.1193 15.1599 81.6544 15.1599C81.1829 15.1599 80.7579 15.0603 80.3793 14.861C80.0074 14.6551 79.7119 14.363 79.4927 13.9844C79.2802 13.6059 79.1739 13.1575 79.1739 12.6395V12.5299C79.1739 12.0053 79.2802 11.557 79.4927 11.1851C79.7119 10.8066 80.0074 10.5177 80.3793 10.3184C80.7579 10.1126 81.1829 10.0096 81.6544 10.0096Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M86.7515 10.0096C87.2097 10.0096 87.6149 10.1092 87.9668 10.3084C88.3188 10.501 88.5944 10.78 88.7937 11.1452C88.9929 11.5105 89.0925 11.9389 89.0925 12.4304V12.7889H85.1177C85.1377 13.3136 85.3071 13.7254 85.6258 14.0243C85.9446 14.3165 86.3431 14.4626 86.8212 14.4626C87.2396 14.4626 87.5617 14.3663 87.7875 14.1737C88.0133 13.9811 88.186 13.752 88.3056 13.4863L88.983 13.815C88.8833 14.0209 88.7439 14.2268 88.5646 14.4327C88.3919 14.6386 88.1628 14.8113 87.8772 14.9507C87.5983 15.0902 87.2396 15.1599 86.8013 15.1599C86.3099 15.1599 85.8782 15.057 85.5063 14.8511C85.1344 14.6386 84.8455 14.343 84.6396 13.9645C84.4337 13.5859 84.3307 13.1476 84.3307 12.6495V12.5299C84.3307 12.0252 84.4337 11.5836 84.6396 11.205C84.8455 10.8265 85.1311 10.5342 85.4963 10.3284C85.8616 10.1159 86.28 10.0096 86.7515 10.0096ZM86.7515 10.7069C86.3066 10.7069 85.9413 10.8331 85.6557 11.0855C85.3701 11.3378 85.1941 11.6898 85.1277 12.1414H88.2956C88.269 11.6898 88.113 11.3378 87.8274 11.0855C87.5485 10.8331 87.1898 10.7069 86.7515 10.7069Z' fill='%230E0D0B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M97.1624 10.0096C97.6207 10.0096 98.0258 10.1092 98.3778 10.3084C98.7298 10.501 99.0054 10.78 99.2046 11.1452C99.4039 11.5105 99.5035 11.9389 99.5035 12.4304V12.7889H95.5287C95.5487 13.3136 95.718 13.7254 96.0368 14.0243C96.3555 14.3165 96.754 14.4626 97.2322 14.4626C97.6505 14.4626 97.9727 14.3663 98.1985 14.1737C98.4243 13.9811 98.5969 13.752 98.7165 13.4863L99.3939 13.815C99.2943 14.0209 99.1548 14.2268 98.9755 14.4327C98.8028 14.6386 98.5737 14.8113 98.2881 14.9507C98.0092 15.0902 97.6506 15.1599 97.2123 15.1599C96.7208 15.1599 96.2892 15.057 95.9172 14.8511C95.5453 14.6386 95.2564 14.343 95.0505 13.9645C94.8446 13.5859 94.7417 13.1476 94.7417 12.6495V12.5299C94.7417 12.0252 94.8446 11.5836 95.0505 11.205C95.2564 10.8265 95.542 10.5342 95.9073 10.3284C96.2725 10.1158 96.6909 10.0096 97.1624 10.0096ZM97.1624 10.7069C96.7175 10.7069 96.3522 10.8331 96.0666 11.0855C95.7811 11.3378 95.6051 11.6898 95.5387 12.1414H98.7066C98.68 11.6898 98.5239 11.3378 98.2383 11.0855C97.9594 10.8331 97.6008 10.7069 97.1624 10.7069Z' fill='%230E0D0B'/%3e%3cpath d='M92.2484 10.0594C92.6137 10.0594 92.9391 10.1358 93.2247 10.2885C93.5169 10.4413 93.7494 10.6671 93.9221 10.966C94.0947 11.2648 94.1811 11.6334 94.1811 12.0717V15.1458H93.394V12.1315C93.394 11.6467 93.2712 11.2947 93.0255 11.0755C92.7864 10.8564 92.461 10.7468 92.0492 10.7468C91.5777 10.7468 91.1925 10.8995 90.8936 11.205C90.6014 11.5105 90.4553 11.9655 90.4553 12.5698V15.1458H89.6683V10.1491H90.4354V10.9582H90.5361C90.7355 10.7018 90.8604 10.5342 91.1128 10.3483C91.3718 10.1557 91.7503 10.0594 92.2484 10.0594Z' fill='%230E0D0B'/%3e%3cpath d='M78.5932 10.9581H77.7681V10.1514H78.6L78.5932 10.9581Z' fill='%230E0D0B'/%3e%3c/svg%3e";const xd=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),yo=({isOpen:e,onClose:t,title:n,subtitle:o,children:r,overlayContent:s,overlayDimmed:a=!0,styles:i,theme:l,maxWidth:c="522px",dark:u,footerLinkText:d,bannerSrc:p,bannerAlt:w,closeOnBackdropClick:m=!1})=>{const{theme:g,dark:h,dk:y,palette:C}=on(i,u),S=u??h,b=l||g,A=i?.fontFamily||b.typography.fontFamily||nt.ui,O=i?.primaryColor||b.colors.primary,v=j(null),x=j(null),F=j(null),T=ql(),[B,M]=L(!1),[k,E]=L(!1),I=j(t);if(pe(()=>{I.current=t},[t]),pe(()=>{if(!e){E(!1);return}x.current=document.activeElement;const H=document.body.style.overflow;document.body.style.overflow="hidden";const Q=requestAnimationFrame(()=>{const V=requestAnimationFrame(()=>E(!0));F.current=V}),G=()=>{const V=v.current;V&&(V.querySelectorAll(xd)[0]??V).focus({preventScroll:!0})},ne=V=>{if(V.key==="Escape"){V.stopPropagation(),I.current();return}if(V.key!=="Tab")return;const oe=v.current;if(!oe)return;const Y=Array.from(oe.querySelectorAll(xd)).filter(ve=>!ve.hasAttribute("aria-hidden"));if(Y.length===0){V.preventDefault(),oe.focus();return}const ge=Y[0],xe=Y[Y.length-1],he=document.activeElement;V.shiftKey&&he===ge?(V.preventDefault(),xe.focus()):!V.shiftKey&&he===xe&&(V.preventDefault(),ge.focus())},X=requestAnimationFrame(G);return document.addEventListener("keydown",ne),()=>{cancelAnimationFrame(X),cancelAnimationFrame(Q),F.current&&cancelAnimationFrame(F.current),document.removeEventListener("keydown",ne),document.body.style.overflow=H;const V=x.current;V&&typeof V.focus=="function"&&V.focus({preventScroll:!0})}},[e]),!e)return null;const D=!!p&&!B,P=w??"";return f("div",{onMouseDown:H=>{m&&H.target===H.currentTarget&&I.current()},style:{position:"fixed",inset:0,backgroundColor:S?"rgba(0,0,0,0.72)":"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"clamp(16px, 4vw, 48px)",zIndex:lr.modal,opacity:k?1:0,transition:`opacity ${ja.normal} ${Fr.out}`},children:f("div",{ref:v,role:"dialog","aria-modal":"true","aria-labelledby":T,tabIndex:-1,style:{backgroundColor:C.shellBorder,borderRadius:"12px",padding:"5px",width:"100%",maxWidth:c,boxSizing:"border-box",boxShadow:"0 16px 48px rgba(0, 0, 0, 0.4)",outline:"none",transform:k?"scale(1)":"scale(0.96)",transition:`transform ${ja.slow} ${Fr.out}`,display:"flex",flexDirection:"column",maxHeight:"100%"},children:R("div",{style:{backgroundColor:C.shell,border:`1px solid ${C.shellInnerBorder}`,borderRadius:"9px",width:"100%",padding:"0",display:"flex",flexDirection:"column",position:"relative",flex:"0 1 auto",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:[s&&a&&f("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:5,pointerEvents:"none",borderRadius:"12px"},"aria-hidden":"true"}),D&&R("div",{style:{position:"relative",width:"100%"},children:[f("img",{src:p,style:{width:"100%",height:"auto",display:"block",borderRadius:"6px 6px 0 0"},alt:P,"aria-hidden":P===""?"true":void 0,onError:()=>M(!0)}),f("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"8px",right:"8px",minWidth:"44px",minHeight:"44px",color:C.textPrimary,padding:"8px",backgroundColor:"transparent",borderRadius:"9999px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:f(ws,{size:28,strokeWidth:2.5})})]}),R("div",{style:{padding:"28px 28px 0 28px",position:"relative"},children:[!D&&f("button",{type:"button",onClick:t,"aria-label":"Close dialog",style:{position:"absolute",top:"10px",right:"10px",minWidth:"44px",minHeight:"44px",color:C.textSecondary,padding:"10px",backgroundColor:"transparent",borderRadius:"50%",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",fontSize:"18px",fontWeight:"600"},onMouseEnter:H=>{H.currentTarget.style.backgroundColor=S?`${O}1a`:"#f3f4f6"},onMouseLeave:H=>{H.currentTarget.style.backgroundColor="transparent"},children:f(ws,{size:24,strokeWidth:2.4})}),f("h2",{id:T,style:{fontSize:"22px",fontWeight:"700",color:C.textPrimary,margin:"0",fontFamily:A,lineHeight:"1.12"},children:n})]}),o&&f("div",{style:{padding:"11px 28px 13px 28px",fontSize:"12px",color:C.textSecondary,margin:"0",lineHeight:"1.35",fontFamily:A,borderBottom:S?`1px solid ${y.cardBorder}`:"1px solid #cdcfd1"},children:o}),r,R("div",{style:{padding:"12px 28px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("img",{src:bd,alt:"","aria-hidden":"true",width:108,height:22,decoding:"async",style:{width:"108px",height:"22px",opacity:S?.85:1,filter:S?"brightness(0) invert(1)":"none",margin:0,display:"block"}}),f("a",{href:"https://spiceflow-docs.spicenet.io",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"10px",color:C.textSecondary,textDecoration:"none",display:"flex",alignItems:"center",gap:"4px",fontFamily:A,lineHeight:"1"},children:f("span",{style:{color:O,textDecoration:"underline",fontWeight:"500"},children:d??"Learn more \u2192"})})]}),s]})})})};function vd(e){const t=new Set(Dp(e).map(n=>n.toLowerCase()));return t.add(e.toLowerCase()),t}const xm=["USDC","USDT","WETH","WBTC"];function kd(e,t){const n=xt(t);if(!n)return;if(n.nativeCurrency.symbol.toUpperCase()===e.toUpperCase())return{address:Kt,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals,chainId:t};const o=n.supportedTokens?.find(r=>r.symbol.toUpperCase()===e.toUpperCase());if(o)return{address:o.address.toLowerCase(),symbol:o.symbol,decimals:o.decimals,chainId:t}}function Go(e,t,n){const o=xt(t);if(!o)return;if(n!==void 0){if(Fe(e)&&!Yt(e,n))return;const a=wi(e,n,t);return a?{address:a.address.toLowerCase(),symbol:a.symbol,decimals:a.decimals,chainId:t}:void 0}if(Fe(e))return;const r=vd(e),s=o.supportedTokens?.find(a=>r.has(a.address.toLowerCase()));if(s)return{address:s.address.toLowerCase(),symbol:s.symbol,decimals:s.decimals,chainId:t}}function vm(e){const{sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,intermediaryCandidates:s=xm}=e;if(ra(t,n))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted directly`};if(o===r&&(Fe(t.address)||!Yt(t.address,o)))return{strategy:"direct-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on chain ${o}, no escrow`};if(Go(t.address,r,o))return{strategy:"direct",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} fronted on destination, swapped to ${n.symbol}`};if(Go(n.address,o,r))return{strategy:"source-swap",sourceAsset:t,outputAsset:n,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${n.symbol} on source chain, then fronted`};for(const a of s){const i=kd(a,o);if(!i||ra(t,i)||ra(n,i))continue;const l=kd(a,r);if(l&&ra(i,l))return{strategy:"intermediary",sourceAsset:t,outputAsset:n,intermediaryAsset:l,sourceChainId:o,destinationChainId:r,summary:`${t.symbol} \u2192 ${a} on source, fronted, then ${a} \u2192 ${n.symbol} on destination`}}throw new Be("ROUTE_STRATEGY_ERROR",`No viable cross-chain route found from ${t.symbol} (chain ${o}) to ${n.symbol} (chain ${r}). No intermediary asset is available on both chains.`,{sourceAsset:t.symbol,outputAsset:n.symbol,sourceChainId:o,destinationChainId:r,candidatesChecked:s})}async function km(e){const{route:t,sourceAmount:n,userAddress:o,registry:r,actionCalls:s,slippage:a}=e;async function i(l,c,u,d){const p=await r.resolveSwap({type:"swap",tokenIn:c,tokenOut:u,amountIn:d,maxSlippage:a},l,o);if(!p)throw new Be("NO_LIQUIDITY",`No venue returned a quote for ${c} \u2192 ${u} on chain ${l}. No liquidity available for this pair.`,{chainId:l,tokenIn:c,tokenOut:u,amountIn:d.toString()});return p}switch(t.strategy){case"direct-swap":{const l=await i(t.destinationChainId,t.sourceAsset.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...l.calls,...s]}],solverFrontToken:t.outputAsset,solverFrontAmount:0n,resolvedSwaps:{sourceSwap:l}}}case"direct":{const l=Go(t.sourceAsset.address,t.destinationChainId,t.sourceChainId)||t.sourceAsset;if(vd(l.address).has(t.outputAsset.address.toLowerCase()))return{chainBatches:[{chainId:t.destinationChainId,calls:s}],solverFrontToken:l,solverFrontAmount:n,resolvedSwaps:{}};const c=await i(t.destinationChainId,l.address,t.outputAsset.address,n);return{chainBatches:[{chainId:t.destinationChainId,calls:[...c.calls,...s]}],solverFrontToken:l,solverFrontAmount:n,resolvedSwaps:{destinationSwap:c}}}case"source-swap":{const l=Go(t.outputAsset.address,t.sourceChainId,t.destinationChainId);if(!l)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.sourceChainId,side:"source"});const c=Go(t.outputAsset.address,t.destinationChainId,t.destinationChainId);if(!c)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Output asset ${t.outputAsset.symbol} (${t.outputAsset.address}) not found on destination chain ${t.destinationChainId}`,{token:t.outputAsset.symbol,address:t.outputAsset.address,chainId:t.destinationChainId,side:"destination"});const u=await i(t.sourceChainId,t.sourceAsset.address,l.address,n);return{chainBatches:[{chainId:t.sourceChainId,calls:u.calls},{chainId:t.destinationChainId,calls:s}],solverFrontToken:c,solverFrontAmount:u.amountOutMinimum,resolvedSwaps:{sourceSwap:u}}}case"intermediary":{if(!t.intermediaryAsset)throw new Be("ROUTE_STRATEGY_ERROR","Intermediary strategy requires an intermediary asset but none was provided in the route plan.",{strategy:t.strategy});const l=Go(t.intermediaryAsset.address,t.sourceChainId,t.destinationChainId);if(!l)throw new Be("ROUTE_TOKEN_NOT_FOUND",`Intermediary ${t.intermediaryAsset.symbol} (${t.intermediaryAsset.address}) not found on source chain ${t.sourceChainId}`,{token:t.intermediaryAsset.symbol,address:t.intermediaryAsset.address,chainId:t.sourceChainId,side:"source"});const c=await i(t.sourceChainId,t.sourceAsset.address,l.address,n),u=await i(t.destinationChainId,t.intermediaryAsset.address,t.outputAsset.address,c.amountOutMinimum);return{chainBatches:[{chainId:t.sourceChainId,calls:c.calls},{chainId:t.destinationChainId,calls:[...u.calls,...s]}],solverFrontToken:t.intermediaryAsset,solverFrontAmount:c.amountOutMinimum,resolvedSwaps:{sourceSwap:c,destinationSwap:u}}}default:throw new Be("ROUTE_STRATEGY_ERROR",`Unknown route strategy: ${t.strategy}`,{strategy:t.strategy})}}function Cm(e,t,n){if(!e||!t)return null;if(e._source==="wallet"){if(t===e.chainId)return{address:e.address,symbol:e.symbol,name:e.name||e.symbol,decimals:e.decimals,logoURI:e.logoURI};const d=dr(t).find(p=>p.equivalenceGroup==="USDC"&&p.symbol.toUpperCase()==="USDC");return!d||n.length>0&&!n.some(p=>J(p.address,d.address))?null:{address:d.address,symbol:"USDC",name:d.name||"USD Coin",decimals:d.decimals,logoURI:d.logo}}const o=Br(e,t),r=Object.entries(e.chainTokens??{}).flatMap(([d,p])=>{const w=Yn(d);return w?.chainId===t?[{parsed:w,detail:p}]:[]}),s=d=>n.find(p=>J(p.address,d))??null,a=d=>{const p=r.find(({parsed:g})=>J(g.address,d));if(!p)return null;const w=xt(t);if(Fe(d))return w?{address:Kt,symbol:w.nativeCurrency.symbol,name:w.nativeCurrency.name,decimals:w.nativeCurrency.decimals,logoURI:e.logoURI}:null;const m=w?.supportedTokens?.find(g=>J(g.address,d));return!m||!gi(e,d,t)?null:{address:p.parsed.address,symbol:m.symbol,name:m.name||p.detail?.name||e.displayName||e.name||e.symbol,decimals:m.decimals,logoURI:m.logo||e.logoURI}},i=r.map(({parsed:d})=>d.address).filter(Fe);for(const d of[...o,...i]){if(Fe(d)){const m=a(d);if(m)return m}const p=s(d);if(p)return p;const w=a(d);if(w)return w}if(e.chainTokens||e.receiptTokenId)return null;const l=so(e,t);if(l){const d=s(l);if(d)return d}const c=Go(e.address,t,e.chainId);return c?s(c.address)||(n.length>0?null:{address:c.address,symbol:c.symbol||e.symbol,name:e.displayName||e.name||e.symbol,decimals:c.decimals??e.decimals,logoURI:e.logoURI}):null}function Im(e){const t=e.find(n=>Ro(n.chainId))?.calls?.[0]?.data;if(!t)return null;try{const n=jn({abi:Zs,data:t});return n.functionName!=="createWithdrawalRequest"?null:n.args[0].transfers.map(o=>({token:o.token,recipient:o.to,amount:o.amount}))}catch{return null}}function Sm(e,t){if(!e||e.length!==t.length)return!1;const n=o=>o.reduce((r,s)=>r+s.amount,0n);return n(e)!==n(t)?!1:e.every((o,r)=>{const s=t[r];return o.token.toLowerCase()!==s.token.toLowerCase()||o.recipient.toLowerCase()!==s.recipient.toLowerCase()?!1:o.recipient.toLowerCase()===Cn.toLowerCase()?Wl(o.amount,s.amount,100n):o.recipient.toLowerCase()!==zn.toLowerCase()||o.amount===s.amount})}function Am(e,t){const n=e.intents.flatMap(s=>s.batches).filter(s=>{const a=Ho(s);return BigInt(s.quotedAmount)>0n||BigInt(s.totalDebit)>0n||a.totalFee>0n}),o=n.filter(s=>s.chainId===t),r=o.length>0?o:n;return r.length===1?r[0]:null}function Em(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=n.token.toLowerCase(),r=n.recipient.toLowerCase(),s=`${o}:${r}`,a=t.get(s);a?a.amount+=n.amount:t.set(s,{...n})}return[...t.values()]}function Cd(e,t){if(!e.token||!e.recipient||e.chainId===null)return null;const n=Am(t,e.chainId);if(!n)return null;const{gasFee:o,bridgeFee:r,spicenetFee:s}=Ho(n),a=o+r,i=e.grossAmountRaw-a-s;if(i<=0n)throw new Error("Withdrawal amount does not cover the network fee.");const l=[{token:e.token.address,recipient:e.recipient,amount:i}];return a>0n&&l.push({token:e.token.address,recipient:Cn,amount:a}),s>0n&&l.push({token:e.token.address,recipient:zn,amount:s}),Em(l)}function Fm(e,t,n){const o=Cd(e,t);return!o||Sm(Im(n),o)?null:e.buildWithdrawBatches(o)}async function Id(e){if(e.executionContextRef.current){await Sd(e);return}if(!e.batches.length||!e.walletAddress||!e.recipient)return;const t=qe.getBaseUrl();e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress(null),e.executionContextRef.current=null,e.ui.setLockedGasFee(e.gasFee);try{let n=e.batches;if(e.isNon7702&&e.onWithdrawExecute)await e.onWithdrawExecute(e.amount);else{if(!e.isNon7702&&!n.some(s=>Ro(s.chainId)))throw new Error("Spice withdrawals must include a Spicenet funding batch before the destination chain batch.");const o=e.token?.address||"",r={useCustomTransfers:!0};if(e.buildSpicenetBatch){const s=e.feeEstimate??await e.execution.estimate(n,o,0n,r),a=Cd(e,s);a&&(n=e.buildWithdrawBatches(a));const i=s.intents[0]?.batches.find(l=>l.chainId===e.chainId)??s.intents[0]?.batches[0]??null;i&&e.ui.setLockedGasFee(Ho(i).totalFee)}else{const s=(e.feeEstimate??await e.execution.estimate(n,o,0n,r)).intents[0]?.batches[0]??null;s&&e.ui.setLockedGasFee(Ho(s).totalFee)}await e.execution.execute(n,o,0n,s=>{s.actionId&&s.intentId&&typeof s.intentIndex=="number"&&typeof s.totalSteps=="number"&&(e.executionContextRef.current={actionId:s.actionId,intentId:s.intentId,intentIndex:s.intentIndex,totalSteps:s.totalSteps,autoContinue:s.autoContinue,apiUrl:t,finish:()=>Pi(e)}),e.ui.setExecutionProgress(s)},void 0,e.buildSpicenetBatch?{...r,adjustBatchesForEstimate:({feeEstimate:s,chainBatches:a})=>Fm(e,s,a)}:{...r,skipPreSubmitFeeEstimate:!0})}await Pi(e)}catch(n){const o=n instanceof Error?n.message:"Withdraw failed";e.ui.setExecutionError(o)}finally{e.ui.setIsExecuting(!1)}}async function Pi(e){window.dispatchEvent(new CustomEvent("withdraw-completed")),await e.onWithdrawSuccess?.({token:e.token?.symbol||"",amount:e.amount,chainId:e.chainId})}async function Sd(e){const t=e.executionContextRef.current;if(!t){if(e.isNon7702&&e.onWithdrawExecute){await Id(e);return}e.ui.setExecutionError("The previous withdrawal action is unavailable. Reconcile it before starting another.");return}const n=t.apiUrl?new $r:qe;t.apiUrl&&n.setBaseUrl(t.apiUrl),e.ui.setIsExecuting(!0),e.ui.setExecutionError(null),e.ui.setExecutionProgress({step:"executing",message:"Resuming existing action...",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps});try{let o=t.totalSteps;for(let r=0;r<t.totalSteps;r++)if((await n.checkStepStatus(t.intentId,r)).data.status!=="success"){o=r;break}if(o>=t.totalSteps)e.ui.setExecutionProgress(r=>({...r||{step:"success",message:"Transaction successful!",actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps},step:"success",message:"Transaction successful!"}));else for(let r=o;r<t.totalSteps;r++){const s=await sd({actionId:t.actionId,intentIndex:t.intentIndex,intentId:t.intentId,stepIndex:r,chainId:e.chainId??void 0,observeOnly:t.autoContinue,maxPolls:t.autoContinue?Number.POSITIVE_INFINITY:void 0,relayer:n,completeOnExecution:!e.isNon7702&&r===t.totalSteps-1,onStatusMessage:(a,i)=>{e.isMountedRef.current&&e.ui.setExecutionProgress({step:"executing",message:a,txHash:i,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}});if(!e.isMountedRef.current)return;e.ui.setExecutionProgress({step:r===t.totalSteps-1?"success":"executing",message:r===t.totalSteps-1?"Transaction successful!":"Executing remaining steps...",txHash:s,actionId:t.actionId,intentId:t.intentId,intentIndex:t.intentIndex,totalSteps:t.totalSteps})}await(t.finish?.()??Pi(e))}catch(o){const r=o instanceof Error?o.message:"Withdraw failed";e.ui.setExecutionError(r)}finally{e.ui.setIsExecuting(!1)}}async function Tm(e){const t=await e.estimate(e.batches,e.tokenAddress,0n,{useCustomTransfers:!0,signal:e.signal}),n=t.intents.flatMap(r=>r.batches).filter(r=>Ho(r).totalFee>0n),o=n.filter(r=>r.chainId===e.chainId)[0]??n[0]??t.intents[0]?.batches[0];if(!o)throw new Error("No gas fee estimate was returned for this withdraw.");return{gasFee:Ho(o).totalFee,feeEstimate:t}}function Wi(e,t){return Re(e,t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1")}function Bm(e,t,n){return un(e,t,n,"floor")}function Ad(e,t,n=!1){if(e<=0)return"$0";if(!t||!Number.isFinite(t)||t<=0)return"\u2014";const o=e*t;return`$${o>=1?o.toFixed(3).replace(/0+$/,"").replace(/\.$/,""):o.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}${n?" (stale)":""}`}function Om(e,t){return t?JSON.stringify({tokenAddress:t.toLowerCase(),batches:e.map(n=>({chainId:n.chainId,calls:n.calls.map(o=>({to:o.to.toLowerCase(),value:o.value.toString(),data:o.data})),tokenTransfers:(n.tokenTransfers??[]).map(o=>({from:o.from,to:o.to.toLowerCase(),token:o.token.toLowerCase(),amount:o.amount.toString()}))}))}):null}function ga(e,t,n){const o=n.filter(r=>r.amount>0n);return{chainId:e,domain:"evm",tokenTransfers:[],calls:Fe(t)?o.map(r=>({to:r.recipient,value:r.amount,data:"0x"})):o.map(r=>({to:t,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[r.recipient,r.amount]})}))}}new Set([Cn,zn].map(e=>e.toLowerCase()));async function Ko(e,t,n){const o=await js(e),r=Yt(n,t)?.decimals,s=o.filter(u=>!Array.isArray(u.chainTokens)&&Object.keys(u.chainTokens??{}).some(d=>d.toLowerCase()===`evm:${t}:${n.toLowerCase()}`));if(s.length>1)throw new Error("Order cash receipt identity is ambiguous");const a=new Map;for(const u of s){const d=Object.entries(u.chainTokens??{}).find(([p])=>p.toLowerCase()===`evm:${t}:${n.toLowerCase()}`)?.[1];if(!u.receiptToken||a.has(u.receiptToken)||!/^\d{1,78}$/.test(u.balanceAvailable)||!Number.isInteger(u.decimals)||u.decimals<0||u.decimals>36||typeof d!="object"||r===void 0||d.decimals!==r)throw new Error("Order cash metadata could not be verified");a.set(u.receiptToken,{amount:BigInt(u.balanceAvailable),decimals:u.decimals})}const i=new Set,l=new Set;let c;for(let u=0;u<20;u++){const d=await qe.listLimitOrders(e,c);if(!Array.isArray(d.orders)||d.orders.length>100)throw new Error("Order reservations could not be verified");for(const p of d.orders){if(!/^ord_[0-9a-f]{64}$/.test(p.id)||i.has(p.id)||!J(p.user,e)||!/^\d{1,78}$/.test(p.reservedAmount)||!["open","executing","needs_attention","filled","cancelled","expired","failed"].includes(p.status))throw new Error("Order reservations could not be verified");if(i.add(p.id),!["open","executing","needs_attention"].includes(p.status))continue;const w=a.get(p.receiptToken);if(!w&&p.chainId===t&&J(p.tokenIn,n))throw new Error("Active order cash could not be verified");w&&(w.amount-=BigInt(p.reservedAmount))}if(d.nextCursor===null){let p=0n;for(const w of a.values()){if(w.amount<0n)throw new Error("Order reservations exceed the current cash balance");p+=mo(w.amount,w.decimals,r)}return{available:p,entries:o}}if(typeof d.nextCursor!="string"||!/^ord_[0-9a-f]{64}$/.test(d.nextCursor)||l.has(d.nextCursor))throw new Error("Order history is incomplete");c=d.nextCursor,l.add(c)}throw new Error("Order history is incomplete")}const Rm="spiceflow-limit-order:v1",gr=ho(["function exactInput((bytes path, address recipient, uint256 deadline, uint256 amountIn, uint256 amountOutMinimum) params) payable returns (uint256 amountOut)"]);function Dm(e){if(!/^ord_[0-9a-f]{64}$/.test(e))throw new Error("Invalid limit order ID");return`Spice Flow limit order cancellation v1
|
|
17
|
+
Order: ${e}`}function Ui(e){const t=e.intents[0];if(e.intents.length!==1||t.mode!=="7702")throw new Error("Invalid order intent");return`ord_${Ai(t.chainBatches,BigInt(t.exp)).slice(2)}`}function Mm(e){if(!Number.isSafeInteger(e.expiresAt)||e.minimumOutput<=0n||e.amountIn<=0n||e.platformFee<0n||e.gasBridgeFee<0n||e.amountIn+e.platformFee+e.gasBridgeFee!==e.grossAmount)throw new Error("Invalid limit order amounts or expiry");const t=gs({userAddress:e.user,destinationChainId:e.chainId,deliveryToken:e.tokenIn,deliveryAmount:e.grossAmount,deliveryRecipient:e.user,requestTimestampMs:e.requestTimestampMs,expiresAt:e.expiresAt,metadata:Rm,requestNonce:e.requestNonce});if(!t)throw new Error("Order requires a positive cash balance");const n=[...ga(e.chainId,e.tokenIn,[{recipient:zn,amount:e.platformFee},{recipient:Cn,amount:e.gasBridgeFee}]).calls,{to:e.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[e.router,e.amountIn]})},{to:e.router,value:0n,data:Tt({abi:gr,functionName:"exactInput",args:[{path:e.path,recipient:e.user,deadline:BigInt(e.expiresAt),amountIn:e.amountIn,amountOutMinimum:e.minimumOutput}]})}],o=Co([t,{chainId:e.chainId,calls:n}]);return{user:e.user,amountMode:"gross_input",intents:[{mode:"7702",signatureType:"ecdsa",signature:"0x00",nbf:0,exp:e.expiresAt,chainBatches:o.map((r,s)=>({...r,chainId:Number(r.chainId),tokenTransfers:s===0?[]:[{from:"escrow",to:e.user,token:e.tokenIn,amount:e.grossAmount}]}))}]}}const Nm=36;function Nr(e){return typeof e=="number"&&Number.isInteger(e)&&e>=0&&e<=Nm}function bs(e){return!e.balanceError&&e.balanceStatus!=="stale"&&e.balance>=0n&&Nr(e.decimals)&&!e.isNative&&!Fe(e.address)}function Li(e,t){if(!e.chainTokens||Array.isArray(e.chainTokens))return null;let n;for(const[o,r]of Object.entries(e.chainTokens)){const s=Yn(o);if(!(!s||s.chainId!==t)){if(n)return null;n={address:s.address,decimals:r?.decimals}}}return n??null}function qi(e,t,n){if(e<0n)return null;const o=mo(e,t,n);return mo(o,n,t)===e?o:null}function or(e,t){return Nr(e.receiptTokenDecimals)&&qi(t,e.decimals,e.receiptTokenDecimals)!==null}function Pm(e,t){if(!Nr(e.receiptTokenDecimals))return-1n;const n=mo(t,e.decimals,e.receiptTokenDecimals),o=mo(n,e.receiptTokenDecimals,e.decimals);return o<=t?o:-1n}function wa(e,t){return e.owner?.toLowerCase()===t.toLowerCase()}function Wm(e,t,n,o,r){if(!e)return[];const s=[];for(const a of Array.isArray(e)?e:[e]){if(a.amount<0n||!wa(a.asset,o)||a.asset.chainId!==r)return null;const i=be(a.asset);if(i!==be(t)&&i!==be(n))return null;const l=s.find(c=>c.positionId===i);l?l.amount+=a.amount:s.push({positionId:i,amount:a.amount})}return s}function xs(e,t,n,o,r,s){if(!n||!/^0x[0-9a-f]{40}$/i.test(n)||!wa(e,n)||e.chainId!==o||!bs(e))return;let a,i,l;if(e.location==="embedded"&&e._source!=="spice"){a=e,l=e.address;const S=t.filter(b=>{const A=Li(b,o);return b.location==="rollup"&&b._source!=="wallet"&&wa(b,n)&&b.chainId===o&&bs(b)&&!!b.receiptTokenId&&!!A&&J(A.address,l)});if(S.length!==1)return;[i]=S}else if(e.location==="rollup"&&e._source!=="wallet"&&e.receiptTokenId){i=e;const S=Li(e,o);if(!S)return;l=S.address;const b=t.filter(A=>A.location==="embedded"&&A._source!=="spice"&&wa(A,n)&&A.chainId===o&&bs(A)&&J(A.address,l));if(b.length!==1)return;[a]=b}else return;if(!a||!i||!l||!bs(a)||!bs(i)||a.location!=="embedded"||i.location!=="rollup"||!i.receiptTokenId||!Nr(a.decimals)||a.decimals!==i.decimals||!Nr(i.receiptTokenDecimals))return;const c=Li(i,o);if(!c||!J(c.address,l)||c.decimals!==void 0&&c.decimals!==a.decimals)return;const u=be(a),d=be(i);if(u===d||t.filter(S=>be(S)===u).length!==1||t.filter(S=>be(S)===d).length!==1)return;let p=a.balance,w=r??i.balance;if(w<0n||w>i.balance)return;const m=Wm(s,a,i,n,o);if(m===null)return;for(const S of m)if(S.positionId===u){if(S.amount>p)return;p-=S.amount}else{if(S.amount>w||!or(i,S.amount))return;w-=S.amount}const g=be(e),h=e.decimals;if(!Nr(h))return;const y=qi(p,a.decimals,h),C=qi(w,i.decimals,h);if(!(y===null||C===null))return{wallet:a,escrow:i,owner:n,chainId:o,token:l,decimals:a.decimals,representativePositionId:g,representativeDecimals:h,walletAvailable:p,escrowAvailable:w,availableBalance:y+C,...m.length===1?{reserve:m[0]}:{},reserves:m}}function Ed(e,t,n,o){const r=be(e);return{positionId:r,asset:e,amount:t,reservedAmount:n.find(s=>s.positionId===r)?.amount??0n,availableAmount:o}}function zi(e,t,n,o){if(t<=0n)throw new RangeError("Enter an amount within the available balance.");const r=o?.quoteOnly===!0;if(!r&&t>e.availableBalance)throw new RangeError("Enter an amount within the available balance.");let s,a,i=0n,l=0n,c=0n;if(n==="escrow"){const u=t<e.escrowAvailable?t:e.escrowAvailable;if(a=Pm(e.escrow,u),a<0n)throw new RangeError("Enter an amount within the available balance.");if(i=t-a,s=i,l=t,!r&&i>e.walletAvailable||!or(e.escrow,i)||!or(e.escrow,l))throw new RangeError("Enter an amount within the available balance.")}else if(s=t<e.walletAvailable?t:e.walletAvailable,c=s,l=t-s,a=l,!r&&l>e.escrowAvailable||!or(e.escrow,l))throw new RangeError("Enter an amount within the available balance.");return{owner:e.owner,chainId:e.chainId,token:e.token,decimals:e.decimals,representativePositionId:e.representativePositionId,representativeDecimals:e.representativeDecimals,route:n,grossAmount:t,insufficient:s>e.walletAvailable||a>e.escrowAvailable,positions:[Ed(e.wallet,s,e.reserves,e.walletAvailable),Ed(e.escrow,a,e.reserves,e.escrowAvailable)],walletDeposit:i,escrowWithdrawal:l,walletInPlace:c}}function ya(e,t,n,o,r){if(!e.positions.find(u=>u.positionId===e.representativePositionId))throw new Error("The source balance changed. Review the available amount before continuing.");const s=t.filter(u=>be(u)===e.representativePositionId);if(s.length!==1)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.insufficient)throw new Error("The source balance changed. Review the available amount before continuing.");const a=e.positions.filter(u=>u.reservedAmount>0n).map(u=>({asset:u.asset,amount:u.reservedAmount})),i=xs(s[0],t,n,o,r,a);if(!i||i.representativePositionId!==e.representativePositionId||i.representativeDecimals!==e.representativeDecimals||i.owner.toLowerCase()!==e.owner.toLowerCase()||i.chainId!==e.chainId||!J(i.token,e.token)||i.decimals!==e.decimals)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.grossAmount<=0n||e.positions.length!==2)throw new Error("The source balance changed. Review the available amount before continuing.");const l=e.positions.find(u=>u.positionId===be(i.wallet)),c=e.positions.find(u=>u.positionId===be(i.escrow));if(!l||!c||l.positionId===c.positionId||l.amount<0n||c.amount<0n||l.reservedAmount<0n||c.reservedAmount<0n)throw new Error("The source balance changed. Review the available amount before continuing.");if(e.route==="escrow"){if(e.walletDeposit!==l.amount||e.walletInPlace!==0n||e.escrowWithdrawal!==e.grossAmount||l.amount+c.amount!==e.grossAmount||!or(i.escrow,c.amount)||!or(i.escrow,l.amount)||!or(i.escrow,e.escrowWithdrawal))throw new Error("The source balance changed. Review the available amount before continuing.")}else if(e.walletDeposit!==0n||e.walletInPlace!==l.amount||e.escrowWithdrawal!==c.amount||l.amount+c.amount!==e.grossAmount||!or(i.escrow,c.amount))throw new Error("The source balance changed. Review the available amount before continuing.");if(l.amount>i.walletAvailable||c.amount>i.escrowAvailable)throw new Error("The source balance changed. Review the available amount before continuing.");for(const u of e.positions){const d=t.find(p=>be(p)===u.positionId);if(!d||d.decimals!==u.asset.decimals||d.receiptTokenDecimals!==u.asset.receiptTokenDecimals||d.receiptTokenId!==u.asset.receiptTokenId)throw new Error("The source balance changed. Review the available amount before continuing.")}}function Um(e,t){const n=t.feePolicy;if(!n||t.feeExecutionMode!=="user-transfer"||!t.feeBreakdown)return e;const o=t.feeToken??t.destinationToken,r=[{recipient:n.platformRecipient,amount:t.feeBreakdown.spicenetFee},{recipient:n.gasRecipient,amount:t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee}],s=[];for(const{recipient:a,amount:i}of r){const l=J(a,n.gasRecipient)?[a,Cn,"0x718dE8f0A0DC14D5BC6c560C192F02AE6Af036c7","0x737680c45F88A8b1b389e354dde11419f89BAdd6"]:[a],c=m=>l.some(g=>J(m,g));let u;const d=(m,g)=>{if(u&&!J(u,m))throw new Error("Action fee calls use mixed gas fee recipients");u=m,p=!0,w+=g};let p=!1,w=0n;for(const m of e)if(Fe(o))c(m.to)&&m.data==="0x"&&d(m.to,m.value);else if(J(m.to,o)&&m.value===0n){let g;try{g=jn({abi:ft,data:m.data})}catch{continue}if(g.functionName==="transfer"&&c(g.args[0])){if(Tt({abi:ft,functionName:"transfer",args:g.args}).toLowerCase()!==m.data.toLowerCase())throw new Error("Action fee transfer is not canonical");d(g.args[0],g.args[1])}}if(p){if(w!==i)throw new Error("Action fee calls differ from the accepted fee plan")}else i>0n&&s.push(Fe(o)?{to:a,value:i,data:"0x"}:{to:o,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[a,i]})})}return[...s,...e]}function Lm(e){const t=new Map;for(const n of e){if(n.amount<=0n)continue;const o=dn(n.token),r=dn(n.to),s=`${o.toLowerCase()}:${r.toLowerCase()}`,a=t.get(s);a?a.amount+=n.amount:t.set(s,{token:o,to:r,amount:n.amount})}return[...t.values()]}function qm(e,t){return`0x${t}${e.slice(4)}`}function Hi(e,t,n,o){if(e.some(d=>d.domain==="spicenet"))return e;const r=n?.intents.flatMap(d=>d.batches),s=d=>d.from==="escrow",a=e.map(d=>{const p=r?.find(x=>x.chainId===d.chainId);if(!p)return d;const w=Ho(p),m=w.totalFee;if(m<=0n)return d;const g=(d.tokenTransfers??[]).filter(x=>s(x)&&dn(x.to).toLowerCase()===t.toLowerCase()),h=g.find(x=>!Fe(dn(x.token)))??g[0];if(!h)return d;const y=dn(h.token),C=Fe(y);let S=!1;const b=(d.tokenTransfers??[]).map(x=>S||!s(x)||dn(x.to).toLowerCase()!==t.toLowerCase()||dn(x.token).toLowerCase()!==y.toLowerCase()?x:(S=!0,{...x,amount:o?.payoutAlreadyGross?BigInt(x.amount):BigInt(x.amount)+m}));if(!S)return d;const A=(x,F)=>C?{to:x,value:F,data:"0x"}:{to:y,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[x,F]})},O=[];w.spicenetFee>0n&&O.push(A(zn,w.spicenetFee));const v=w.gasFee+w.bridgeFee;return v>0n&&O.push(A(Cn,v)),{...d,tokenTransfers:b,calls:[...O,...d.calls]}}),i=a.flatMap(d=>(d.tokenTransfers??[]).filter(s).map(p=>{const w=dn(p.token),m=dn(p.to),g=[{token:w,to:m,amount:BigInt(p.amount)}];return{chainId:d.chainId,transfers:Lm(g)}}));if(i.length===0)return e;const l=o?.requestTimestampMs??Date.now(),c=BigInt(Math.floor(l/1e3));if(o?.expiresAt!==void 0&&(!Number.isSafeInteger(o.expiresAt)||o.expiresAt<=Number(c)))throw new Error("Funding expiry must be a future Unix timestamp");const u=o?.expiresAt===void 0?c+3600n:BigInt(o.expiresAt);return[{chainId:Kl,domain:"spicenet",tokenTransfers:[],calls:i.map((d,p)=>{const w=ur(Qo([{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"}],[t,d.transfers[0].token,d.transfers.reduce((g,h)=>g+h.amount,0n),BigInt(d.chainId),BigInt(l+p)])),m=qm(w,"77");return{to:"0x0000000000000000000000000000000000000000",value:0n,data:Tt({abi:Zs,functionName:"createWithdrawalRequest",args:[{chainId:`evm:${d.chainId}`,idempotenceKey:m,nbf:0n,exp:u,metadata:"{}",transfers:d.transfers.map(g=>({token:g.token.toLowerCase(),to:g.to,amount:g.amount}))}]})}})},...a]}function rr(e,t,n,o){const r=e.filter(a=>a.domain!=="spicenet"),s=a=>(a.tokenTransfers??[]).some(i=>i.from==="escrow");return[...r.filter(a=>!s(a)),...Hi(r.filter(s),t,n,o)]}class wr extends Error{constructor(t,n){super("The selected balance cannot cover the fee funding amount"),this.requiredAmount=t,this.balance=n,this.name="InsufficientFeeFundingBalanceError"}}function Qi(e,t,n,o,r){const s=e[e.length-1];if(!s?.calls.length||s.domain==="spicenet")throw new Error("Proceeds fees require a final destination action");const a=[{to:zn,amount:r},{to:Cn,amount:o}].filter(i=>i.amount>0n);return e.map(i=>i===s?{...i,calls:[...i.calls,...a.map(l=>({to:n,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[l.to,l.amount]})}))],tokenTransfers:[...i.tokenTransfers??[],...a.map(l=>({from:t,to:l.to,token:n,amount:l.amount}))]}:i)}async function Fd(e,t,n,o,r){const s=Co(e),a=await qe.estimateBatchGas({user:t,outputToken:n,signal:o,requireSimulation:!0,includePlatformFee:r!==void 0,chainBatches:e.map((i,l)=>({...i,hash:s[l].hash}))});if(a.gasQuoteSource!=="estimated"||!a.simulationVerified)throw new Error("Action proceeds require a successful live batch simulation; fallback gas pricing is not sufficient");if(r!==void 0&&(a.platformFee===void 0||a.platformFee>r))throw new Error("Fee conversion platform price changed; refresh before retrying");return a.gasFee}async function Td(e){if(e.proceeds.token.toLowerCase()!==e.token.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const t=await e.proceeds.resolve(e.signal);if(e.signal?.aborted)throw new Error("Action proceeds quote was cancelled");if(t<0n)throw new Error("Action proceeds cannot be negative");const n=await e.baseline();if(!n?.preview)throw new Error("Action fee quote is unavailable");let o=n.preview.gasFee;const r=n.preview.spicenetFee,s=n.preview.bridgeFee??0n;for(let a=0;a<5;a++){const i=o+r+s,l=t<i?t:i,c=i-l;if(c>0n&&e.fundShortfall===!1)throw new wr(i,t);const u=c>0n?(c*110n+99n)/100n+2n:0n;let d=u,p;const w=rr(await e.buildBatches(u,{actionAmountOverride:e.actionAmountFor?.(i),onSourceSpend:h=>{d=h},onActionCalls:h=>{p=h}}),e.owner,void 0,{expiresAt:e.expiresAt}),m=Qi(w,e.owner,e.token,o+s,r),g=await Fd(m,e.owner,e.token,e.signal);if(g<=o&&(o-g)*100n<=g*15n)return{preview:{...n.preview,grossAmount:u,netAmount:0n,gasFee:o,totalFee:i,gasQuoteSource:"estimated"},feeEstimate:n.feeEstimate,grossFundingAmount:u,proceedsAvailable:t,proceedsUsed:l,fundingBatches:m,sourceSpendCap:d,destinationAmount:0n,actionDefinition:p};o=g}throw new Error("Action proceeds fee estimate did not converge")}function Bd(e,t){let n,o;if(Fe(t)){if(e.data!=="0x")return null;n=e.to,o=e.value}else{if(!J(e.to,t))return null;try{const r=jn({abi:ft,data:e.data});if(r.functionName!=="transfer")return null;[n,o]=r.args}catch{return null}}return J(n,Cn)?{gas:o,platform:0n}:J(n,zn)?{gas:0n,platform:o}:null}async function zm(e,t,n){const o=At(e);return Fe(n)?o.getBalance({address:t}):o.readContract({address:n,abi:ft,functionName:"balanceOf",args:[t]})}function Pr(e,t,n){return e.map(o=>o.chainId===t?{...o,calls:o.calls.filter(r=>!Bd(r,n))}:o)}function Od(e,t,n){if(!e.feeOnlyAction)return{};const o=e.embeddedWalletAddress??e.providerEmbeddedAddress,r=e.feeQuote?.fundingSource,s=r&&r.kind!=="proceeds"?void 0:e.actionProceeds,a=r&&(r.kind==="input"||r.kind==="balance"&&r.asset?._source==="wallet")?r:void 0;if(s||e.feeQuote?.fundingConversion||a){const u=e.feeQuote?.fundingConversion,d=s??{token:t,resolve:async()=>0n},p=e.feeQuote?.preview,w=e.feeQuote?.proceedsUsed,m=u?.fromProceeds?u.tokenIn:t;if(!p||w===void 0||!a&&d.token.toLowerCase()!==m.toLowerCase())throw new Error("Refresh the action proceeds quote");const g=p.gasFee+(p.bridgeFee??0n),h=p.spicenetFee,y=a?async()=>{e.validateFeeQuote?.();const S=await zm(e.resolvedChainId,o,a.token);e.validateFeeQuote?.();const b=a.kind==="input"?a.amount:(u?.amountInMax??w)+(a.reservedAmount??0n);if(e.signal?.aborted||S<b||u&&u.amountOut<g+h)throw new Error("The fee funding balance changed; refresh before retrying");return u?[{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[]}:async()=>{e.validateFeeQuote?.();const S=await d.resolve(e.signal);if(e.validateFeeQuote?.(),e.signal?.aborted||(u?.fromProceeds?S<u.amountInMax||u.amountOut<g+h:S<w||S+(u?.amountOut??n)<g+h))throw new Error("Action proceeds changed; refresh before retrying");return u?.fromProceeds?[{chainId:e.resolvedChainId,token:u.tokenIn,amount:u.amountInMax},{chainId:e.resolvedChainId,token:t,amount:u.amountOut}]:[{chainId:e.resolvedChainId,token:t,amount:w+(u?.amountOut??0n)}]},C=async S=>{await y();const b=await Fd(S,o,t,e.signal,u?h:void 0);if(await y(),(b>p.gasFee?b-p.gasFee:p.gasFee-b)*100n>b*15n)throw new Error("Action gas quote changed; refresh before retrying")};return{resolveActionOutputCredits:y,prepareForSigning:async S=>{if(e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation)return await C(S),S;const b=Pr(S,e.resolvedChainId,t).map(O=>({...O,tokenTransfers:O.tokenTransfers?.filter(v=>!(typeof v.from=="string"&&J(v.from,o)&&(J(v.to,Cn)||J(v.to,zn))))})),A=Qi(b,o,t,g,h);return await C(A),A},validateBeforeSubmit:C}}const i=Yt(t,e.resolvedChainId),l={chainId:e.resolvedChainId,tokenAddress:t,symbol:i?.symbol??e.destinationToken.symbol,decimals:e.executionTokenDecimals??i?.decimals??e.destinationToken.decimals},c=async u=>{e.validateFeeQuote?.();const d=Pr(u,e.resolvedChainId,t),p=await e.execution.estimate(d,t,n,{userOverride:o,useCustomTransfers:!0,feeExecutionMode:"backend-transfer"});e.validateFeeQuote?.();const w=po(p,l);if(!w||w.chainId!==e.resolvedChainId)throw new Error("The fee service did not return the destination action's fee quote");if(w.gasFee+w.spicenetFee+(w.bridgeFee??0n)+2n>n)throw new Error("Fees exceed the displayed maximum funding; refresh the quote before retrying");return{raw:d,feeEstimate:p,fees:w}};return{prepareForSigning:async u=>{const{raw:d,feeEstimate:p}=await c(u);return e.feeQuote?.sourceAllocation||e.feeQuote?.feeSourceAllocation?u:rr(d,o,p,{payoutAlreadyGross:!0})},validateBeforeSubmit:async u=>{const{fees:d}=await c(u);let p=0n,w=0n;for(const g of u)if(g.chainId===e.resolvedChainId)for(const h of g.calls){const y=Bd(h,t);y&&(p+=y.gas,w+=y.platform)}if(p+w+2n>n)throw new Error("Signed fees exceed the displayed maximum funding");const m=d.gasFee+(d.bridgeFee??0n);if((p>m?p-m:m-p)*100n>m*15n||w!==d.spicenetFee)throw new Error("The signed gas quote changed materially; refresh before retrying")}}}const Hm="0xa9059cbb";function yr(e,t,n){return Fe(e)?{to:n,value:t,data:"0x"}:{to:e,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[n,t]})}}function Vi(e,t,n){return{chainId:n,calls:[yr(e,t,Oo(n))]}}function Qm(e,t,n,o){const r=t.source.chainId;return{chainId:r,calls:[...e.calls,yr(t.source.address,n,Oo(r)),...o>0n?[yr(t.source.address,o,Cn)]:[]]}}function Rd(e,t){const n=e.amountOutMinimum-t;if(n<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");return n}function Dd(e,t,n){return e?.asset?._source==="wallet"&&e?.asset.chainId===n}function Md(e){return e.isNative||Fe(e.address)?!0:!Yt(e.address,e.chainId)}function Nd(e,t,n,o){return t!=="user-transfer"||!n||e.length===0||e[0]?.to.toLowerCase()!==o.toLowerCase()||!e[0]?.data.startsWith(Hm)?{feeCall:null,remainingCalls:e}:{feeCall:e[0],remainingCalls:e.slice(1)}}async function Wr(e,t,n,o){const r=await(t??gs)({...n,requestTimestampMs:o});return r?[r,e]:[e]}function Vm(e){return e.filter(t=>t.domain!=="spicenet")}function Ur(e,t){const n=(e.tokenTransfers??[]).filter(o=>o.from==="escrow").map(o=>({token:ht(o.token),recipient:o.to,amount:BigInt(o.amount)})).filter(o=>o.amount>0n);return t!==void 0&&n.length===1&&(n[0]={...n[0],amount:t}),n.length>0?n:void 0}function Lr(e,t,n){return un(e,t,n,"ceil")}function Pd(e){const t=e.selectedAsset?.asset;return e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.pivot}function ji(e){const t=e.selectedAsset?.asset;return!e.isPayMode&&!!t&&t._source==="wallet"&&t.chainId!==e.resolvedChainId&&!!e.sourceSwap&&!!e.pivot}function vs(e,t){if(t?.sourceSpendCap!==void 0&&e>t.sourceSpendCap)throw new Error("The source amount increased. Review the updated quote before submitting.");t?.onSourceSpend?.(e)}async function Wd(e,t,n){let o;const r=await e({...t,buildActionCalls:async(s,a)=>{o=s;const i=Um(await t.buildActionCalls(s,a),a);return n?.onActionCalls?.({amount:s,context:a,calls:i}),i}},n);if(o!==void 0){if(n?.minimumDestinationAmount!==void 0&&o<n.minimumDestinationAmount)throw new Error("The destination amount decreased. Review the refreshed quote before submitting.");n?.onDestinationAmount?.(o)}return r}const qr=(e,t)=>Wd(jm,e,t),ba=async(e,t)=>{const n=await Wd(Gm,e,t),o=t?.actionContextOverride?.feeBreakdown,r=n[n.length-1];if(t?.actionContextOverride?.feePolicy||e.feeExecutionMode!=="user-transfer"||!o||!r)return n;const s=e.needsSwap&&e.resolvedTokenIn?e.resolvedTokenIn:e.destinationToken.address,[a]=Pr([r],e.resolvedChainId,s),i=ga(e.resolvedChainId,s,[{recipient:zn,amount:o.spicenetFee},{recipient:Cn,amount:o.gasFee+(o.bridgeFee??0n)}]).calls,l=r.calls.filter(c=>!a.calls.includes(c));return l.length===i.length&&i.every(c=>l.some(u=>u.to.toLowerCase()===c.to.toLowerCase()&&u.value===c.value&&u.data===c.data))?n:[...n.slice(0,-1),{...a,calls:[...i,...a.calls]}]};async function jm(e,t){const{currentPaymentAmount:n,destinationToken:o,embeddedWalletAddress:r,providerEmbeddedAddress:s,address:a,isNon7702:i,resolvedChainId:l,buildActionCalls:c,feeExecutionMode:u,buildSpicenetBatch:d,needsSwap:p,exactOutputSwap:w,resolvedTokenIn:m,requestTimestampMs:g}=e,h=t?.sourceAssetOverride?{asset:t.sourceAssetOverride}:e.selectedAsset,y=t?.fundingTokenOverride??m,C=Tn(n,o.decimals),S=t?.actionAmountOverride??(e.feeOnlyAction?0n:C),b=!!e.feeOnlyAction&&(t?.fundingAmountOverride??0n)>0n,A=r||s||a;if(!A)throw new Error("Embedded wallet address is not available. Please sign in and try again.");const O={userAddress:e.recipient??A,executorAddress:A,beneficiary:e.recipient??A,outputRecipient:p?A:void 0,chainId:l,destinationToken:o.address,grossAmount:t?.fundingAmountOverride??C,netAmount:S,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:u,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},v=await c(S,O),x={chainId:l,calls:v},F=!!h&&h.asset._source!=="wallet",T=Dd(h??null,i,l),B=F||T&&!!h&&!Md(h.asset),M=(I,D)=>({token:ht(I),from:"escrow",to:A,amount:D}),k=(I,D,P)=>T?[Vi(I,D,l),...P]:P;if(C===0n&&!b)return[x];const E=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup;if(E&&(!p||y?.toLowerCase()===E.token.toLowerCase())){if(p&&!w)throw new Error("The action quote is unavailable.");const I=p?{...x,calls:[...w.calls,...v]}:x,D=t?.fundingAmountOverride??(p?w?.amountInMax??0n:C),P=zi(E,D,"in-place",{quoteOnly:!0});if(t?.onSourceAllocation?.(P),vs(En(D,E.decimals,E.representativeDecimals),t),P.escrowWithdrawal===0n)return[I];const H={...I,tokenTransfers:[M(E.token,P.escrowWithdrawal)]};return Wr(H,d,{userAddress:A,destinationChainId:l,deliveryToken:E.token,deliveryAmount:P.escrowWithdrawal,deliveryRecipient:A,deliveryTransfers:Ur(H),sourceAsset:E.escrow},g)}if(h?.asset._source==="wallet"&&h.asset.chainId!==l&&!e.pivot)throw new Error("A current source-to-destination funding route is required");if(e.feeOnlyAction&&t?.fundingTokenOverride&&T)return vs(t.fundingAmountOverride??0n,t),[x];if(Pd(e)){if(p&&!w)throw new Error("Swap quote not available yet");const I=t?.fundingAmountOverride??(w?w.amountInMax:C),D=t?.sourceGasSkimOverride??0n,P=un(I,e.pivot.destination.decimals,e.pivot.source.decimals,"ceil"),H=P+D,Q=e.sourceExactOutputSwap,G=Q&&(t?.reuseQuotedSourceSwap||Q.amountOut>=H)?Q:e.resolveSourceExactOutputSwap?await e.resolveSourceExactOutputSwap(H):null;if(!G)throw new Error("Swap quote not available yet");vs(G.amountInMax,t);const ne=h.asset;if(G.amountInMax>ne.balance)throw new Error(`Insufficient ${ne.symbol} for this payment. Required ${Re(G.amountInMax,ne.decimals)} ${ne.symbol}; available ${Re(ne.balance,ne.decimals)} ${ne.symbol}.`);const X=G.amountOut>=H?P:G.amountOut-D;if(X<=0n)throw new Error("Amount is too small to cover fees. Increase the amount and retry.");const V={chainId:e.pivot.source.chainId,calls:[...G.calls,yr(e.pivot.source.address,X,Oo(e.pivot.source.chainId)),...D>0n?[yr(e.pivot.source.address,D,Cn)]:[]]},oe={chainId:l,calls:[...w?.calls??[],...v],tokenTransfers:[M(e.pivot.destination.address,I),...x.tokenTransfers??[]]},Y=await Wr(oe,d,{userAddress:A,destinationChainId:l,deliveryToken:e.pivot.destination.address,deliveryAmount:I,deliveryRecipient:A,deliveryTransfers:Ur(oe),sourceAsset:h.asset},g);return[V,...Y]}if(h){const I=t?.fundingAmountOverride??w?.amountInMax??C;vs(Lr(I,await Mo(h.asset,y??h.asset.address,l,o),h.asset.decimals),t)}if(p&&w){const I=y??so(h.asset,l)??h.asset.address,D=t?.fundingAmountOverride??w.amountInMax,P=B?[M(I,D)]:[],H={chainId:l,calls:[...w.calls,...v],tokenTransfers:[...P,...x.tokenTransfers??[]]};if(!B)return[H];const Q=await Wr(H,d,{userAddress:A,destinationChainId:l,deliveryToken:I,deliveryAmount:D,deliveryRecipient:A,deliveryTransfers:Ur(H),sourceAsset:h.asset},g);return k(I,D,Q)}if(B){const I=y??so(h.asset,l)??o.address;if(T&&!e.feeOnlyAction&&I.toLowerCase()===o.address.toLowerCase())return[x];const D=t?.fundingAmountOverride??C,P={...x,tokenTransfers:[M(I,D),...x.tokenTransfers??[]]},H=await Wr(P,d,{userAddress:A,destinationChainId:l,deliveryToken:I,deliveryAmount:D,deliveryRecipient:A,deliveryTransfers:Ur(P),sourceAsset:h.asset},g);return k(I,D,H)}return[x]}async function Gm(e,t){const{selectedAsset:n,embeddedWalletAddress:o,recipient:r,resolvedChainId:s,destinationToken:a,buildActionCalls:i,feeExecutionMode:l,buildSpicenetBatch:c,isPayMode:u,isNon7702:d,needsSwap:p,resolvedSwap:w,quoteAmountOut:m,resolvedTokenIn:g,requestTimestampMs:h}=e;if(!n?.asset||!o)return[];const y=r??o;if(!y)return[];const C=ji(e);let S=e.sourceSwap,b=Tn(n.amount,n.asset.decimals),A=C?e.sourceSwap.amountOutMinimum:null;if(C&&e.isFeeInclusiveInput&&(A=Rd(e.sourceSwap,t?.sourceGasSkimOverride??0n)),C&&!e.isFeeInclusiveInput&&(t?.fundingAmountOverride!==void 0||(t?.sourceGasSkimOverride??0n)>0n)){A=t?.fundingAmountOverride!==void 0?Lr(t.fundingAmountOverride,e.pivot.destination.decimals,e.pivot.source.decimals):e.sourceSwap.amountOutMinimum;const he=A+(t?.sourceGasSkimOverride??0n);if(!e.resolveSourceExactOutputSwap)throw new Error("The source quote cannot include fees yet.");const ve=await e.resolveSourceExactOutputSwap(he);if(ve.amountOut<he)throw new Error("The source quote does not cover the accepted funding amount.");b=ve.amountInMax,S={...ve,amountOutMinimum:ve.amountOut}}const O=C?e.pivot.destination.address:g??so(n.asset,s)??a.address,v=C?e.pivot.destination.decimals:await Mo(n.asset,O,s,a),x=t?.fundingAmountOverride??t?.actionAmountOverride??(C?un(A,e.pivot.source.decimals,v,"floor"):En(Tn(n.amount,n.asset.decimals),n.asset.decimals,v)),F=t?.fundingAmountOverride??x,T=t?.combinedSourceGroupOverride===null?void 0:t?.combinedSourceGroupOverride??e.combinedSourceGroup,B=T&&!C?zi(T,F,"escrow",{quoteOnly:!0}):void 0;B&&t?.onSourceAllocation?.(B);const M=B?.walletDeposit??t?.sourceFundingAmountOverride??Lr(x,v,n.asset.decimals);vs(B&&T?En(F,T.decimals,T.representativeDecimals):C?b:M,t);const k=t?.deliveryAmountOverride??(l==="user-transfer"?F:t?.actionContextOverride?.netAmount??F),E=t?.withdrawalAmountOverride??k,I=t?.actionAmountOverride??t?.actionContextOverride?.netAmount??x;let D=w;if(p&&!u&&(t?.actionContextOverride?.netAmount!==void 0||C&&(t?.sourceGasSkimOverride??0n)>0n&&!t?.reuseQuotedSourceSwap)){if(!e.resolveInputSwap)throw new Error("Swap quote cannot be refreshed for the amount after fees.");const he=t?.actionContextOverride?.netAmount??I;(!D||e.swapInputAmount!==he)&&(D=await e.resolveInputSwap(he,w??void 0))}D&&t?.onSwap?.(D,t?.actionContextOverride?.netAmount??e.swapInputAmount??I);const P=D?.amountOutMinimum??m,H={userAddress:y,executorAddress:o,beneficiary:y,outputRecipient:p?o:void 0,chainId:s,destinationToken:a.address,feeToken:l==="user-transfer"&&p&&g?g:a.address,grossAmount:F,netAmount:I,combinedFeeAmount:t?.actionContextOverride?.combinedFeeAmount,feeExecutionMode:l,feeBreakdown:t?.actionContextOverride?.feeBreakdown,...t?.actionContextOverride},Q=()=>i(I,H),G=n.asset?._source==="wallet";if(!u&&G&&n.asset.chainId===s&&Md(n.asset)){if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||P===null)throw new Error("Swap quote not available yet")}if(p&&D&&P){const he=await i(t?.actionAmountOverride??P,{...H,netAmount:t?.actionAmountOverride??P}),{feeCall:ve,remainingCalls:_}=Nd(he,l,p,H.feeToken);return[{chainId:s,calls:[...ve?[ve]:[],...D.calls,..._]}]}return[{chainId:s,calls:await Q()}]}if(!u&&G&&n.asset.chainId!==s&&!C)throw new Error("A current source-to-destination funding route is required");const ne=n.asset._source!=="wallet",X=Dd(n,d,s);if(!(ne||X||C))return[{chainId:s,calls:await Q()}];const V=C?Qm(S,e.pivot,A,t?.sourceGasSkimOverride??0n):B&&T?B.walletDeposit>0n?Vi(T.token,B.walletDeposit,s):null:X?Vi(g??ht(n.asset.address),M,s):null,oe=(he,ve)=>({token:ht(he),from:"escrow",to:o,amount:ve});if(p){if(!g)throw new Error("Swap input token could not be resolved");if(!D||P===null)throw new Error("Swap quote not available yet")}if(p&&D&&P&&g){const he=await i(t?.actionAmountOverride??P,{...H,netAmount:t?.actionAmountOverride??P}),{feeCall:ve,remainingCalls:_}=Nd(he,l,p,H.feeToken),K={chainId:s,calls:[...ve?[ve]:[],...D.calls,..._],tokenTransfers:[oe(g,k)]},ie=await Wr(K,c,{userAddress:o,destinationChainId:s,deliveryToken:g,deliveryAmount:k,withdrawalAmount:E,deliveryRecipient:o,deliveryTransfers:Ur(K,E),sourceAsset:n.asset},h);return V?[V,...ie]:ie}const Y=g??so(n.asset,s)??a.address,ge={chainId:s,calls:await Q(),tokenTransfers:[oe(Y,k)]},xe=await Wr(ge,c,{userAddress:o,destinationChainId:s,deliveryToken:Y,deliveryAmount:k,withdrawalAmount:E,deliveryRecipient:o,deliveryTransfers:Ur(ge,E),sourceAsset:n.asset},h);return V?[V,...xe]:xe}async function Km(e,t,n,o,r){let s=e;for(let a=0;a<4;a++){const i=await t(s),l=await o(i,n,s,r),c=gp(l);if(c===null||c>=e)return s;const u=s-c,d=e+u;if(d<=s)return s;s=d}return s}function Ym(e){return{...e,resolve:async(t,n,o)=>{const r=await e.resolve(t,n,o),s=r?.calls[0]?.to;return!r||!s||Fe(t.tokenIn)?r:{...r,calls:[{to:t.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[s,r.amountInMax]})},...r.calls]}}}}function ks(e){const t=(e?.customVenues??[]).map(o=>_p(Ym(o)));async function n(o,r,s){const a=t.filter(c=>c.chainIds.includes(r));if(a.length===0)throw new Be("NO_SWAP_ROUTE",`No exact-output venue supports chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut});const i=(await Promise.allSettled(a.map(async c=>({venue:c,quote:await c.resolve(o,r,s)})))).filter(c=>c.status==="fulfilled").map(c=>c.value).filter(c=>c.quote!==null);if(i.length===0)throw new Be("NO_SWAP_ROUTE",`All aggregators failed for ${o.tokenIn} \u2192 ${o.tokenOut} on chain ${r}`,{chainId:r,tokenIn:o.tokenIn,tokenOut:o.tokenOut,amountOut:o.amountOut.toString()});const l=i.find(c=>c.venue.preferred);return l?l.quote:(i.sort((c,u)=>c.quote.amountIn<u.quote.amountIn?-1:c.quote.amountIn>u.quote.amountIn?1:0),i[0].quote)}return{getQuote:n,venues:t}}function Ud(e,t,n){if(e._source==="wallet")return e.chainId===t?e.address:null;const o=Br(e,t);return o.find(r=>r.toLowerCase()===n.toLowerCase())??o[0]??null}async function Ld(e,t,n,o){const r=Co(o),s=await qe.estimateBatchGas({user:t,outputToken:n,requireSimulation:!0,includePlatformFee:!0,signal:e.signal,chainBatches:o.map((a,i)=>({...a,hash:r[i].hash}))});if(!s.simulationVerified||s.gasQuoteSource!=="estimated"||s.platformFee===void 0||s.gasFee<=0n)throw new Error("Fee funding requires verified gas and platform pricing");return s}async function Cs(e,t){const n=e.selectedAsset?.asset,o=!t&&!!e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==e.destinationToken.address.toLowerCase(),r=!!t||o,s=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!s||!r&&(!n||n._source!=="spice"&&!(n._source==="wallet"&&n.chainId===e.resolvedChainId)))throw new Error("A local embedded or Spice balance is required for fee conversion");const a=t?t.token:o?e.actionProceeds.token:Ud(n,e.resolvedChainId,e.destinationToken.address);if(!a)throw new Error("This receipt has no registered destination withdrawal token");const i=Yt(a,e.resolvedChainId)?.decimals??(Fe(a)?18:r?await At(e.resolvedChainId).readContract({address:a,abi:ft,functionName:"decimals"}):n?._source==="wallet"?n.decimals:void 0);if(i===void 0)throw new Error("Fee funding token metadata is unavailable");const l=e.destinationToken.address;if(e.actionProceeds&&!o&&e.actionProceeds.token.toLowerCase()!==l.toLowerCase())throw new Error("Action proceeds must use the destination fee token");const c=t?t.amount:e.actionProceeds?await e.actionProceeds.resolve(e.signal):0n;if(c<0n||e.signal?.aborted)throw new Error("Action proceeds quote was cancelled or invalid");const u=ks({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[e.resolvedChainId],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...pr(e.liquidityVenues).output]}),d=w=>Ld(e,s,l,w);let p=await d(await e.buildPayChainBatches({fundingAmountOverride:0n}));for(let w=0;w<8;w++){const m=p.gasFee+p.platformFee,g=r?0n:c<m?c:m,h=m-g,y=h>0n?(h*110n+99n)/100n+2n:0n,C=y>0n?await u.getQuote({tokenIn:a,tokenOut:l,amountOut:y,maxSlippage:e.maxSlippage},e.resolvedChainId,s):null;if(e.signal?.aborted)throw new Error("Fee conversion quote was cancelled");if(C&&(C.amountOut!==y||C.amountInMax<=0n||C.amountInMax<C.amountIn||!C.calls.length))throw new Error("Invalid exact-output fee conversion quote");const S=C?.amountInMax??0n,b=r?0n:Lr(S,i,n.decimals);if(r&&S>c)throw new wr(S,c);if(!r&&b>n.balance)throw new wr(b,n.balance);let A,O=rr(await e.buildPayChainBatches({fundingAmountOverride:r?0n:S,...r?{}:{fundingTokenOverride:a},...t?{actionAmountOverride:t.amount-S}:{},onActionCalls:x=>{A=x}}),s,void 0,{expiresAt:e.expiresAt});if(C){const x=O.length-1;O=O.map((F,T)=>T===x?{...F,calls:[...F.calls,...C.calls]}:F)}O=Qi(O,s,l,p.gasFee,p.platformFee);const v=await d(O);if(v.gasFee<=p.gasFee&&(p.gasFee-v.gasFee)*100n<=v.gasFee*15n&&v.platformFee===p.platformFee){const x={tokenIn:a,tokenOut:l,amountInMax:S,amountOut:y,sourceAmountMax:b,...o?{fromProceeds:!0}:{},...t?{fromInput:!0}:{}};return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,grossAmount:r?0n:y,netAmount:0n,gasFee:p.gasFee,spicenetFee:p.platformFee,totalFee:m,gasQuoteSource:"estimated"},grossFundingAmount:r?0n:S,proceedsAvailable:c,proceedsUsed:r?m:g,fundingConversion:x,fundingBatches:O,sourceSpendCap:b,destinationAmount:0n,actionDefinition:A}}p=v}throw new Error("Fee conversion pricing did not converge")}const xa=["input","proceeds","balance"];function Zm(e){if(e.reserve&&e.reserve.amount<0n)throw new Error("Fee funding reserve cannot be negative");if(e.reserves?.some(i=>i.amount<0n))throw new Error("Fee funding reserve cannot be negative");const t=i=>J(i,e.feeToken),n=(i,l)=>Number(i.swap)-Number(l.swap),o={input:[],proceeds:[],balance:[]};for(const i of e.inputs??[])i.amount>0n&&o.input.push({kind:"input",...i,swap:!t(i.token)});o.input.sort(n),e.proceeds&&e.proceeds.amount>0n&&o.proceeds.push({kind:"proceeds",...e.proceeds,swap:!t(e.proceeds.token)});const r=e.balances.filter(i=>i._source==="wallet"&&i.chainId===e.chainId&&i.location!=="external"),s=e.balances.filter(i=>i._source==="spice"),a=i=>{const l=[];for(const c of i){const u=[...e.reserves??[],...e.reserve?[e.reserve]:[]].filter(m=>be(c)===be(m.asset)).reduce((m,g)=>g.amount>m?g.amount:m,0n),d=c.balance-u;if(d<=0n)continue;const p=u>0n?{...c,balance:d,balanceFormatted:Number(Re(d,c.decimals)),balanceUsd:c.balanceUsd*Number(d)/Number(c.balance)}:c,w=Ud(p,e.chainId,e.feeToken);w&&(e.inputs?.some(m=>J(m.token,w)&&![...e.reserves??[],...e.reserve?[e.reserve]:[]].some(g=>J(g.asset.address,m.token)))||l.push({kind:"balance",token:w,amount:p.balance,asset:p,...u>0n?{reservedAmount:u}:{},swap:!t(w)}))}return l.sort((c,u)=>n(c,u)||u.asset.balanceUsd-c.asset.balanceUsd)};return o.balance=[...a(r),...a(s)],(e.order??xa).flatMap(i=>o[i])}function Xm(e){return e instanceof wr||e instanceof Be&&e.code==="NO_SWAP_ROUTE"}async function Gi(e,t){const n=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!n||!e.ready||!e.authenticated)return null;const o=e.destinationToken.address;let r;const s=()=>r??(r=(async()=>{const c=await Ld(e,n,o,await e.buildPayChainBatches({fundingAmountOverride:0n}));return{feeEstimate:null,preview:{symbol:e.destinationToken.symbol,decimals:e.destinationToken.decimals,gasFee:c.gasFee,spicenetFee:c.platformFee,bridgeFee:0n,totalFee:c.gasFee+c.platformFee,grossAmount:0n,netAmount:0n,gasQuoteSource:"estimated"}}})()),a=(c,u)=>e.buildPayChainBatches({...u,fundingAmountOverride:c}),i=(c,u)=>Td({proceeds:{token:o,resolve:async()=>c},owner:n,token:o,signal:e.signal,baseline:s,buildBatches:a,fundShortfall:!1,expiresAt:e.expiresAt,actionAmountFor:u}),l=async c=>{if(c.kind==="input")return c.swap?Cs({...e,actionProceeds:void 0},c):i(c.amount,m=>c.amount-m);if(c.kind==="proceeds"){const m={...e.actionProceeds,resolve:async()=>c.amount};return c.swap?Cs({...e,actionProceeds:m}):i(c.amount)}const u=c.asset;if(u._source==="wallet"&&!c.swap)return i(u.balance);let d=!c.swap&&u._source==="spice"?e.getCombinedSourceGroup?.(u):void 0;if(d){const m=[be(d.wallet),be(d.escrow)],g=[...e.feeFundingReserves??[],...e.feeFundingReserve?[e.feeFundingReserve]:[]].filter(h=>m.includes(be(h.asset)));g.length&&(d=e.getCombinedSourceGroup?.(u,g))}const p={...e,selectedAsset:{asset:u,amount:"0"},combinedSourceGroup:d,resolvedTokenIn:c.token,actionInput:void 0,actionProceeds:void 0,buildPayChainBatches:m=>e.buildPayChainBatches({...m,sourceAssetOverride:u,combinedSourceGroupOverride:d??null,fundingTokenOverride:m?.fundingTokenOverride??c.token})};if(c.swap)return Cs(p);const w=await t(p);if(w&&(w.sourceSpendCap??0n)>(d?.availableBalance??u.balance))throw new wr(w.sourceSpendCap,d?.availableBalance??u.balance);return w};for(const c of e.feeFunding??xa){const u=c==="proceeds"&&e.actionProceeds?{token:e.actionProceeds.token,amount:await e.actionProceeds.resolve(e.signal)}:void 0;if(e.signal?.aborted)throw new Error("Fee funding quote was cancelled");if(u&&u.amount<0n)throw new Error("Action proceeds cannot be negative");const d=Zm({feeToken:o,chainId:e.resolvedChainId,inputs:e.actionInput,proceeds:u,balances:e.feeFundingBalances??[],order:[c],reserve:e.feeFundingReserve,reserves:e.feeFundingReserves});for(const p of d)try{const w=await l(p);if(!w)continue;const{swap:m,...g}=p;return{...w,fundingSource:g}}catch(w){if(e.signal?.aborted||!Xm(w))throw w}}throw new Error(`No available balance can cover this action's ${e.destinationToken.symbol} execution cost`)}async function qd(e,t,n,o=!1){const r=e.selectedAsset,s=e.embeddedWalletAddress||e.providerEmbeddedAddress;if(!r||!s||!e.ready||!e.authenticated||e.isQuoting)return null;if(!e.combinedSourceGroup&&r.asset._source!=="wallet"||r.asset.chainId!==e.resolvedChainId||!sa(r.asset)&&r.asset.owner&&!J(r.asset.owner,s))throw new Error("Funded fee hierarchy requires principal on the action chain in the executing wallet.");if(o&&(e.isPayMode||!e.isFeeInclusiveInput||t.recipient&&!J(t.recipient,s)))throw new Error("Output-funded actions require an input-inclusive amount left in the executing wallet.");if(e.isPayMode&&e.needsSwap&&!e.exactOutputSwap)return null;const a=e.isPayMode?Tn(e.currentPaymentAmount,e.destinationToken.decimals):void 0;if(e.isPayMode&&e.needsSwap&&e.exactOutputSwap.amountOut!==a)throw new Error("Wait for the payment quote for the current amount.");const i=dr(e.resolvedChainId).find(b=>b.equivalenceGroup==="USDC");if(!i)throw new Error("Configure the execution fee token for this chain.");const l={...i,address:i.address,chainId:e.resolvedChainId},c=a!==void 0?e.needsSwap?e.exactOutputSwap.amountInMax:a:Tn(r.amount,r.asset.decimals);if(c<=0n||c>(e.combinedSourceGroup?.availableBalance??r.asset.balance))throw new Error("Enter an amount within the available balance.");if(!e.isPayMode&&e.needsSwap&&t.swapInputAmount!=null&&t.swapInputAmount!==c)throw new Error("Wait for the action quote for the current amount.");const u=a??(e.needsSwap?t.resolvedSwap?.amountOutMinimum??0n:c);let d=t.resolvedSwap??void 0,p=c,w=u;const m=e.combinedSourceGroup?zi(e.combinedSourceGroup,c,"in-place"):void 0,g={...e,feeOnlyAction:!0,selectedAsset:null,isPayMode:!0,isFeeInclusiveInput:!1,parsedAmount:0,currentPaymentAmount:"0",destinationToken:l,resolvedTokenIn:l.address,executionTokenAddress:l.address,needsSwap:!1,resolvedSwap:null,isDirect:!0,actionInput:!e.isPayMode&&e.isFeeInclusiveInput?[{token:r.asset.address,amount:c}]:void 0,actionProceeds:o?{token:e.destinationToken.address,resolve:async()=>u>0n?u-1n:0n}:e.actionProceeds,feeFundingBalances:e.feeFundingBalances?.filter(b=>!b.balanceError&&!(e.feeFundingReserve&&be(e.feeFundingReserve.asset)!==be(r.asset)&&be(b)===be(e.feeFundingReserve.asset))&&!sa(b)&&(!b.owner||J(b.owner,s))),feeFundingReserves:m?.positions.map(b=>({asset:b.asset,amount:b.amount})),feeFundingReserve:m?void 0:{asset:r.asset,amount:e.feeFundingReserve&&be(e.feeFundingReserve.asset)===be(r.asset)&&e.feeFundingReserve.amount>c?e.feeFundingReserve.amount:c},buildPayChainBatches:async b=>{const A=b?.actionAmountOverride??c;if(A<=0n)throw new wr(c+1n,c);const O=!e.isPayMode&&e.needsSwap?A===c?t.resolvedSwap:await t.resolveInputSwap?.(A,t.resolvedSwap??void 0):null,v=e.needsSwap?e.isPayMode?e.exactOutputSwap:O:null;if(e.needsSwap&&!v)throw new Error("The action quote is unavailable.");d=O??void 0,p=A,w=a??d?.amountOutMinimum??A;const x={userAddress:t.recipient??s,executorAddress:s,beneficiary:t.recipient??s,outputRecipient:s,chainId:e.resolvedChainId,destinationToken:e.destinationToken.address,grossAmount:u,netAmount:w,feeToken:l.address,feeExecutionMode:"backend-transfer"},F=await t.buildActionCalls(w,x),T={amount:w,context:x,calls:F},B=[...v?.calls??[],...F];let M=await qr({...t,selectedAsset:null,combinedSourceGroup:void 0,feeOnlyAction:!0,isPayMode:!0,isFeeInclusiveInput:!1,currentPaymentAmount:"0",destinationToken:l,resolvedTokenIn:l.address,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,feeExecutionMode:"backend-transfer",buildActionCalls:()=>B},{...b,onActionCalls:()=>b?.onActionCalls?.(T)});if(m?.escrowWithdrawal){const k=[...M].reverse().findIndex(I=>I.domain!=="spicenet"&&I.chainId===e.resolvedChainId),E=k<0?-1:M.length-k-1;if(E<0)throw new Error("The action quote is unavailable.");M[E]={...M[E],tokenTransfers:[...M[E].tokenTransfers??[],{token:m.token,from:"escrow",to:s,amount:m.escrowWithdrawal}]},M=rr(M,s,void 0,{payoutAlreadyGross:!0,requestTimestampMs:t.requestTimestampMs,expiresAt:e.expiresAt})}return M}},h=await Gi(g,n);if(!h)return null;if(o&&h.fundingSource?.kind==="proceeds"&&(w-=h.fundingConversion?.amountInMax??h.proceedsUsed??0n),w<=0n)throw new Error("Not enough action output remains after execution costs.");let y=m;const C=y&&h.sourceAllocation&&y.positions.every(b=>h.sourceAllocation.positions.some(A=>A.positionId===b.positionId)),S=h.sourceAllocation&&!C?h.sourceAllocation:void 0;if(y){const b=h.sourceAllocation?.positions??[],A=h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&be(h.fundingSource.asset)===be(e.combinedSourceGroup.wallet)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n,O=b.find(x=>x.positionId===be(e.combinedSourceGroup.wallet))?.amount??A,v=b.find(x=>x.positionId===be(e.combinedSourceGroup.escrow))?.amount??(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&be(h.fundingSource.asset)===be(e.combinedSourceGroup.escrow)?h.sourceSpendCap??0n:0n);y={...y,grossAmount:c+O+v,walletInPlace:y.walletInPlace+O,escrowWithdrawal:y.escrowWithdrawal+v,positions:y.positions.map(x=>({...x,amount:x.amount+(x.asset.location==="embedded"?O:v),reservedAmount:0n}))}}return{...h,fundedFeeToken:l,batches:h.fundingBatches??h.batches,destinationSwap:d,swapInputAmount:p,destinationAmount:w,sourceAllocation:y,feeSourceAllocation:S,sourceSpendCap:y?.grossAmount??c+(h.fundingSource?.kind==="balance"&&h.fundingSource.asset&&be(h.fundingSource.asset)===be(r.asset)?h.fundingConversion?.amountInMax??h.proceedsUsed??0n:0n)}}async function Jm(e,t){const n=e.externalGasRecipient,o=e.embeddedWalletAddress||e.providerEmbeddedAddress,r=e.resolvedChainId,s=t.batches,a=s.map(y=>y.chainId).lastIndexOf(r);if(a<0)throw new Error("Destination gas quote is unavailable.");const[i,l]=await Promise.all([qe.estimateBatchGas({user:o,outputToken:Kt,chainBatches:s,stepIndex:a,signal:e.signal}),At(r).getBalance({address:n})]);if(e.signal?.aborted)throw new Error("Fee estimation cancelled");if(i.gasQuoteSource!=="estimated"||i.gasFee<=0n)throw new Error("A native gas quote is required for the external wallet.");const c=s[a].calls.reduce((y,C)=>J(C.to,n)&&C.data==="0x"?y+C.value:y,0n),u=i.gasFee,d=l+c<u?await e.externalGasCalls?.(t)??[]:[],p=d.reduce((y,C)=>y+C.value,0n),w=(3n+BigInt(d.length))*u+p,m=l+c<u?w-l-c:0n,g={chainId:r,recipient:n,balance:l,incoming:c,transactionGas:u,nativeAmount:m,currentTransactions:d.length,currentValue:p,feeAmount:0n,calls:[]};if(m===0n)return g;const h=e.executionTokenAddress;if(Fe(h))g.feeAmount=m;else{const y=await ks({customVenues:[...e.resolveExactOutputSwap?[{name:"consumer-exact-output",chainIds:[r],preferred:!0,resolve:e.resolveExactOutputSwap}]:[],...pr(e.liquidityVenues).output]}).getQuote({tokenIn:h,tokenOut:Kt,amountOut:m,maxSlippage:e.maxSlippage},r,o);if(y.amountOut!==m||y.amountInMax<=0n||!y.calls.length)throw new Error("The external gas purchase could not be quoted.");if(e.signal?.aborted)throw new Error("Fee estimation cancelled");g.feeAmount=y.amountInMax,g.calls=y.calls}return g.calls=[...g.calls,{to:n,value:m,data:"0x"}],g}function va(e,t){if(!t?.nativeAmount)return e;const n=e.map(o=>o.chainId).lastIndexOf(t.chainId);if(n<0)throw new Error("The gas reserve destination changed.");return e.map((o,r)=>r===n?{...o,calls:[...o.calls,...t.calls]}:o)}function zd(e,t){if(e&&e.nativeAmount>0n){const n=t.filter(r=>r.chainId===e.chainId).slice(-1)[0],o=n?.calls.slice(-e.calls.length);if(!o||o.length!==e.calls.length||o.some((r,s)=>{const a=e.calls[s];return!J(r.to,a.to)||r.value!==a.value||r.data!==a.data}))throw new Error("The external gas purchase changed. Refresh the quote before submitting.");if(n.calls.slice(0,-e.calls.length).reduce((r,s)=>J(s.to,e.recipient)&&s.data==="0x"?r+s.value:r,0n)<e.incoming)throw new Error("The native result changed. Refresh the gas reserve quote before submitting.")}}async function Hd(e,t){if(!e)return;t&&zd(e,t);const n=await At(e.chainId).getBalance({address:e.recipient});if(e.nativeAmount>0n?n!==e.balance:n+e.incoming<e.transactionGas)throw new Error("The external wallet gas balance changed. Refresh the quote before submitting.")}async function $m(e){const t=e.selectedAsset.asset;if(t.chainId!==e.destinationToken.chainId||!J(ht(t.address),ht(e.destinationToken.address)))throw new Error("Direct execution requires the destination token on its own chain.");if(t.decimals!==e.destinationToken.decimals)throw new Error("Source and destination token decimals do not match.");const n=Tn(e.paymentAmount??e.selectedAsset.amount,t.decimals);if(n<=0n)throw new Error("Enter a positive action amount.");const o={userAddress:e.beneficiary??e.account,executorAddress:e.account,beneficiary:e.beneficiary??e.account,chainId:e.destinationToken.chainId,destinationToken:e.destinationToken.address,feeToken:t.address,grossAmount:n,netAmount:n,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},r=await e.buildActionCalls(n,o);if(!r.length)throw new Error("No action calls configured.");if(Fe(t.address)&&r.reduce((s,a)=>s+a.value,0n)>n)throw new Error("The native action exceeds the accepted source amount.");return{actionDefinition:{amount:n,context:o,calls:r},actionContext:o,batches:[{chainId:o.chainId,calls:r}],fundingAmount:n,sourceSpendCap:n,destinationAmount:n,feeEstimate:null,preview:{symbol:t.symbol,decimals:t.decimals,grossAmount:n,netAmount:n,totalFee:0n,gasFee:0n,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"static_zero"}}}async function Qd(e){const[t]=await e.buildSupplyChainBatches({sourceGasSkimOverride:1n,reuseQuotedSourceSwap:!0});if(!t)throw new Error("Swap quote not available yet");const{gasFee:n}=await qe.estimateBatchGas({user:e.user,outputToken:e.pivot.source.address,stepIndex:0,chainBatches:[t],signal:e.signal});return n}const Ki=(e,t)=>(e+t-1n)/t;function ka(e,t,n=0n){return e.intents.length===0?t:{...e,intents:e.intents.map(o=>({...o,batches:o.batches.map(r=>{const s=t.intents.find(l=>l.intentIndex===o.intentIndex)?.batches.find(l=>l.chainId===r.chainId);if(!s&&n===0n)return r;const a={...r.feeBreakdown};let i=0n;for(const l of["gasFee","bridgeFee"]){const c=BigInt(a[l]??"0"),u=BigInt(s?.feeBreakdown[l]??"0"),d=c>u?c+Ki(c*n,10000n):u;d>c&&(a[l]=d.toString(),i+=d-c)}return{...r,feeBreakdown:a,totalDebit:(BigInt(r.totalDebit)+i).toString()}})}))}}async function Vd(e){if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");if(!qe.canValidateActionFees())throw new Error("This withdrawal requires signed fee validation. Refresh the quote before submitting.");const[t,n]=await Promise.all([e.signedEstimate??e.estimate(e.batches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"user-transfer",validateFeeCalls:!0}),e.estimate(e.pricingBatches,e.tokenAddress,e.fundingAmount,{...e.options,feeExecutionMode:"backend-transfer",validateFeeCalls:!1})]);if(e.options.signal?.aborted)throw new Error("Fee estimation cancelled");const o=r=>r.intents.flatMap(s=>s.batches.map(a=>`${s.intentIndex}:${a.chainId}`)).sort().join(",");if(!o(n)||o(n)!==o(t))throw new Error("Unable to validate the signed withdrawal fees.");return{intents:n.intents.map(r=>({...r,batches:r.batches.map(s=>{const a=t.intents.find(c=>c.intentIndex===r.intentIndex)?.batches.find(c=>c.chainId===s.chainId);if(!a)throw new Error("Unable to validate the signed withdrawal fees.");const i={...s.feeBreakdown};let l=0n;for(const c of["gasFee","bridgeFee"]){const u=BigInt(i[c]??"0"),d=BigInt(a.feeBreakdown[c]??"0");d>u&&(i[c]=d.toString(),l+=d-u)}return{...s,feeBreakdown:i,totalDebit:(BigInt(s.totalDebit)+l).toString()}})}))}}function _m(e,t){const n=e.spicenetFee+(e.bridgeFee??0n);return e.grossAmount<=n?t+e.gasFee+n:Ki((t+e.gasFee)*e.grossAmount,e.grossAmount-n)+2n}async function jd(e){const{requiredNetFunding:t}=e;if(e.feeOnlyAction){const c=e.executionOptions?.userOverride;if(!c||t!==0n)throw new Error("Fee-only estimates require a zero action amount and its embedded executor");let u=1n,d;for(let p=0;p<8;p++){const w=rr(await e.buildBatches(u),c,d,{payoutAlreadyGross:!0,expiresAt:e.expiresAt}),m=await e.estimate(Pr(w,e.tokenDescriptor.chainId,e.fundingToken),e.fundingToken,u,{...e.executionOptions,feeExecutionMode:"backend-transfer"}),g=po(m,e.tokenDescriptor);if(!g)throw new Error("The fee service did not return a fee quote for this action");const h=g.gasFee+g.spicenetFee+(g.bridgeFee??0n);if(d&&h+2n<=u)return{preview:{...g,grossAmount:u,netAmount:0n},feeEstimate:m,grossFundingAmount:u};u=(h*110n+99n)/100n+2n,d=m}throw new Error("Fee-only funding did not converge; refresh the fee quote before retrying")}const n=await e.buildBatches(t),o=await e.estimate(n,e.fundingToken,t,e.executionOptions),r=po(o,e.tokenDescriptor);if(!r)return{preview:_r(n,e.tokenDescriptor,t),feeEstimate:o,grossFundingAmount:t};const s=_m(r,t),a=c=>r.grossAmount>0n?Ki(c*s,r.grossAmount):c,i=a(r.spicenetFee),l=a(r.bridgeFee??0n);return{preview:{...r,grossAmount:s,netAmount:t,spicenetFee:i,bridgeFee:l,totalFee:r.gasFee+i+l},feeEstimate:o,grossFundingAmount:s}}async function Gd(e){if(e.balance<=0n)throw new Error("No spendable balance remains after source gas.");let t=e.balance;for(let n=0;n<8;n++){const o=await e.planForAmount(t);if(!o||o.sourceSpendCap===void 0||o.sourceSpendCap<=0n)throw new Error("Max requires a current route and fee estimate.");if(o.sourceSpendCap<=e.balance)return ts(t,e.decimals);const r=t*e.balance/o.sourceSpendCap;if(r<=0n||r>=t)throw new Error("The balance cannot cover this action and its fees.");t=r}throw new Error("Max fees did not converge. Refresh the quote before retrying.")}async function eh(e){if(e.isPayMode||e.needsSwap||e.isQuoting||e.pivot||!e.embeddedWalletAddress)return null;const t=e.asset,n=Yt(e.executionTokenAddress,t.chainId);return!n||t.balance<=0n?null:Gd({balance:t.balance,decimals:t.decimals,planForAmount:o=>Yo({selectedAsset:{asset:t,amount:ts(o,t.decimals)},isPayMode:!1,isNon7702:!1,isFeeInclusiveInput:!1,parsedAmount:Number(ts(o,t.decimals)),currentPaymentAmount:"0",destinationToken:{...n,address:e.executionTokenAddress,chainId:t.chainId},resolvedChainId:t.chainId,resolvedTokenIn:e.executionTokenAddress,executionTokenAddress:e.executionTokenAddress,embeddedWalletAddress:e.embeddedWalletAddress,providerEmbeddedAddress:e.embeddedWalletAddress,address:e.embeddedWalletAddress,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isSourceDestToken:!0,needsSwap:!1,isQuoting:!1,resolvedSwap:null,exactOutputSwap:null,buildPayChainBatches:async()=>[],buildSupplyChainBatches:r=>e.buildSupplyChainBatches({...r,actionAmountOverride:o}),estimate:e.estimate,feeExecutionMode:e.feeExecutionMode})})}async function Yo(e){const t=await Kd(e);if(!e.externalGasRecipient||!t?.batches?.length)return t;const n=await Jm(e,t);if(!n.nativeAmount)return{...t,externalGasReserve:n};const o=await Kd({...e,externalGasReserve:n,initialFeeEstimate:void 0,buildPayChainBatches:async r=>va(await e.buildPayChainBatches(r),n),buildSupplyChainBatches:async r=>va(await e.buildSupplyChainBatches({...r,...e.feeExecutionMode!=="user-transfer"&&r?.actionContextOverride?.netAmount!==void 0?{deliveryAmountOverride:r.actionContextOverride.netAmount+n.feeAmount}:{}}),n)});return o?(zd(n,o.batches??[]),{...o,externalGasReserve:n,preview:{...o.preview,gasFee:o.preview.gasFee+n.feeAmount,totalFee:(o.preview.totalFee??0n)+(e.isPayMode?n.feeAmount:0n),...e.isPayMode?{netAmount:o.preview.netAmount-n.feeAmount}:{}}}):null}async function Kd(e){const{signal:t,selectedAsset:n,isPayMode:o,isFeeInclusiveInput:r=!1,parsedAmount:s,needsSwap:a,exactOutputSwap:i,isNon7702:l,currentPaymentAmount:c,destinationToken:u,feeExecutionMode:d,resolvedTokenIn:p,embeddedWalletAddress:w,providerEmbeddedAddress:m,resolvedChainId:g,isConnected:h,address:y,ready:C,authenticated:S,isDirect:b,resolvedSwap:A,sourceSwap:O,pivot:v,isQuoting:x,executionTokenAddress:F,buildPayChainBatches:T,buildSupplyChainBatches:B,estimate:M}=e;if(e.feeOnlyAction&&!n&&e.feeFunding?.length!==0)return Gi(e,Yo);if(e.feeOnlyAction&&e.actionProceeds&&e.actionProceeds.token.toLowerCase()!==u.address.toLowerCase()||e.feeOnlyAction&&n&&(n.asset._source==="spice"||n.asset._source==="wallet"&&n.asset.chainId===g)&&(p?p.toLowerCase()!==u.address.toLowerCase():n.asset.receiptTokenId||n.asset.chainTokens))return Cs(e);if(e.actionProceeds&&e.feeOnlyAction){const oe=w||m;if(!oe||!C||!S)return null;if(p&&p.toLowerCase()!==u.address.toLowerCase())throw new Error("Action proceeds require a matching fee-token source");return Td({proceeds:e.actionProceeds,owner:oe,token:u.address,signal:t,buildBatches:(Y,ge)=>T({...ge,fundingAmountOverride:Y}),baseline:()=>Yo({...e,actionProceeds:void 0,selectedAsset:n??{amount:"0",asset:{...u,name:u.symbol,balance:0n,balanceFormatted:0,balanceUsd:0,isNative:!1,_source:"spice"}}})})}if(!n?.asset)return null;if(o){if(!w&&!m||s<=0&&!e.feeOnlyAction||a&&!i&&!e.feeOnlyAction)return null;const oe=Tn(c,u.decimals),Y=p||so(n.asset,g)||n.asset.address||u.address,ge={chainId:g,tokenAddress:Y,symbol:Yt(Y,g)?.symbol??n.asset.symbol,decimals:await Mo(n.asset,Y,g,u)};if(!e.quoteOnly&&(!h||!y||!C||!S))return null;const xe=w||m||y,he=(a?i?.amountInMax??0n:oe)+(e.externalGasReserve?.feeAmount??0n);if(he===0n&&!e.feeOnlyAction)return null;const ve=v?await Qd({user:xe,pivot:v,buildSupplyChainBatches:ee=>T({...ee,sourceGasSkimOverride:1n}),signal:t}):0n,_=Date.now();let K=await jd({requiredNetFunding:he,expiresAt:e.expiresAt,feeOnlyAction:e.feeOnlyAction,buildBatches:ee=>T({fundingAmountOverride:ee,sourceGasSkimOverride:ve}).then(ce=>Hi(Vm(ce),xe,void 0,{requestTimestampMs:_,expiresAt:e.expiresAt})),fundingToken:Y,estimate:M,executionOptions:{userOverride:xe,useCustomTransfers:!0,feeExecutionMode:d,signal:t},tokenDescriptor:ge});if(!K.preview)return null;let ie=0n,N,Le,Te=[],z=!1;for(let ee=0;ee<8;ee++){if(t?.aborted)throw new Error("Fee estimation cancelled");if(Te=rr(await T({fundingAmountOverride:K.grossFundingAmount,sourceGasSkimOverride:ve,onSourceSpend:De=>{ie=De},onSourceAllocation:De=>{N=De},onActionCalls:De=>{Le=De}}),xe,K.feeEstimate,{payoutAlreadyGross:!0,requestTimestampMs:_,expiresAt:e.expiresAt}),N){const De=po(K.feeEstimate,ge);if(!De)throw new Error("The action quote is unavailable.");const Me=ga(g,Y,[{recipient:Cn,amount:De.gasFee+(De.bridgeFee??0n)},{recipient:zn,amount:De.spicenetFee}]).calls;Te=Pr(Te,g,Y);const Pe=[...Te].reverse().findIndex(Ze=>Ze.domain!=="spicenet"&&Ze.chainId===g),ye=Pe<0?-1:Te.length-Pe-1;if(ye<0)throw new Error("The action quote is unavailable.");Te[ye]={...Te[ye],calls:[...Me,...Te[ye].calls]}}if(e.feeOnlyAction){z=!0;break}const ce=await M(Te,Y,K.grossFundingAmount,{userOverride:xe,useCustomTransfers:!0,feeExecutionMode:d,signal:t}),Z=d==="user-transfer"?ka(ce,K.feeEstimate):ce,ae=po(Z,ge)??_r(Te,ge,he);if(!ae)return null;const ze=he+ae.gasFee+ae.spicenetFee+(ae.bridgeFee??0n),Ie=po(K.feeEstimate,ge),Ce=(Ie?.gasFee??0n)===ae.gasFee&&(Ie?.spicenetFee??0n)===ae.spicenetFee&&(Ie?.bridgeFee??0n)===(ae.bridgeFee??0n),tt=K.grossFundingAmount===ze&&Ce;if(K={feeEstimate:Z,grossFundingAmount:ze,preview:{...ae,grossAmount:ze,netAmount:he}},tt){z=!0;break}}if(!z)throw new Error("Payment fees did not converge. Refresh the quote before submitting.");if(!K.preview)return null;const q=v?un(ve,v.source.decimals,v.destination.decimals,"ceil"):0n;return{...K,batches:Te,sourceSpendCap:ie,sourceAllocation:N,actionDefinition:Le,destinationAmount:oe,preview:{...K.preview,grossAmount:K.preview.grossAmount+q,gasFee:K.preview.gasFee+q,totalFee:(K.preview.totalFee??0n)+q},...v?{sourceGasSkim:ve}:{}}}if(s<=0||!w)return null;const k=w||m;if(v&&!O)return null;const E=ji({isPayMode:o,selectedAsset:n,resolvedChainId:g,sourceSwap:O,pivot:v});if(!(!o&&!l&&n.asset?._source==="wallet"&&n.asset.chainId!==g)&&!b&&!A&&!x||x)return null;let I=await B();if(I.length===0)return null;const D={chainId:g,tokenAddress:F,symbol:Yt(F,g)?.symbol??(n.asset.chainId===g&&J(n.asset.address,F)?n.asset.symbol:u.symbol),decimals:await Mo(n.asset,F,g,u)},P=E&&e.initialFeeEstimate!==void 0&&e.initialSourceGasSkim!==void 0,H=E?P?e.initialSourceGasSkim:await Qd({user:k,pivot:v,buildSupplyChainBatches:B,signal:t}):0n;E&&H>0n&&(I=await B({sourceGasSkimOverride:H}));const Q=E?un(r?Rd(O,H):O.amountOutMinimum,v.source.decimals,v.destination.decimals,"floor"):un(Tn(n.amount,n.asset.decimals),n.asset.decimals,D.decimals,"floor"),G=e.quotedInclusivePlatformFee&&d==="user-transfer",ne={userOverride:k,useCustomTransfers:!0,feeExecutionMode:d,signal:t,...E?{skipUserFundingPreflight:!0}:{}};let X=Q,V=e.initialFeeEstimate??await M(I,F,X,G?{...ne,feeExecutionMode:"backend-transfer"}:ne);G&&!e.initialFeeEstimate&&(V=ka(V,{intents:[]},100n));for(let oe=0;oe<8;oe++){if(t?.aborted)throw new Error("Fee estimation cancelled");const Y=po(V,D)??_r(I,D,X);if(!Y)return null;const ge=Yi(Y,Q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);X=ge.grossAmount;let xe,he,ve,_,K,ie;const N=await B({fundingAmountOverride:X,sourceGasSkimOverride:H,actionContextOverride:ge,onDestinationAmount:Z=>{xe=Z},onSourceSpend:Z=>{he=Z},onSourceAllocation:Z=>{ve=Z},onSwap:(Z,ae)=>{_=Z,K=ae},onActionCalls:Z=>{ie=Z}}),Le=G?Pr(await B({fundingAmountOverride:X,sourceGasSkimOverride:H,actionContextOverride:ge,deliveryAmountOverride:ge.netAmount,withdrawalAmountOverride:ge.netAmount}).then(Z=>{if(Z.length!==N.length)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return Z.map((ae,ze)=>{const Ie=N[ze];if(!Ie||Ie.chainId!==ae.chainId||Ie.domain!==ae.domain)throw new Error("The withdrawal fee route changed. Refresh the quote before submitting.");return ae.domain==="spicenet"?ae:{...ae,calls:Ie.calls}})}),g,F):void 0,[Te,z]=await Promise.all([Le?Vd({estimate:M,batches:N,pricingBatches:Le,tokenAddress:F,fundingAmount:X,options:ne}):M(N,F,X,{...ne,validateFeeCalls:e.initialFeeEstimate!==void 0}),P?qe.estimateBatchGas({user:k,outputToken:v.source.address,stepIndex:0,chainBatches:[N[0]],signal:t}):void 0]);if(z&&!(G?z.gasFee<=H:d==="user-transfer"?es(H,z.gasFee,e.feeToleranceBps):z.gasFee===H))throw new Error("Source gas changed. Prepare a fresh fee quote.");const q=d==="user-transfer"?ka(Te,V,G?100n:0n):Te,ee=po(q,D)??_r(N,D,X);if(!ee)return null;const ce=Yi(ee,Q,r,d,e.externalGasReserve?.feeAmount,e.quotedInclusivePlatformFee);if(JSON.stringify(ge,(Z,ae)=>typeof ae=="bigint"?ae.toString():ae)===JSON.stringify(ce,(Z,ae)=>typeof ae=="bigint"?ae.toString():ae)||!G&&d==="user-transfer"&&Ga(ge.feeBreakdown,ce.feeBreakdown,e.feeToleranceBps)){const Z=d==="user-transfer"?Y:ee,ae=E?un(H,v.source.decimals,v.destination.decimals,"ceil"):0n;return{batches:N,feePricingBatches:Le,fundingAmount:X,actionContext:ge,sourceSpendCap:he,sourceAllocation:ve,destinationAmount:xe,destinationSwap:_,swapInputAmount:K,actionDefinition:ie,feeEstimate:d==="user-transfer"?V:q,sourceGasSkim:H,preview:{...Z,grossAmount:X+ae,netAmount:ge.netAmount,gasFee:Z.gasFee+ae,spicenetFee:ge.feeBreakdown.spicenetFee,totalFee:ge.combinedFeeAmount+ae}}}V=q,I=N}throw new Error("Fees did not converge. Refresh the quote before submitting.")}class Ca extends Error{constructor(t){super("Amount is too small to cover fees. Increase the amount and retry."),this.preview=t,this.name="FeeShortfallError"}}function Yi(e,t,n,o,r=0n,s=!1){const a=BigInt(e.feePolicy?.platformBps??Ti),i=e.feePolicy?{feePolicy:e.feePolicy}:{},l=e.gasFee+(e.bridgeFee??0n)+r;if(e.gasQuoteSource==="static_zero"&&r===0n)return{...i,grossAmount:t,netAmount:t,combinedFeeAmount:0n,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:0n,bridgeFee:0n,spicenetFee:0n}};if(n&&s){const d=l+e.spicenetFee;if(t<=d)throw new Ca({...e,grossAmount:t,netAmount:0n,totalFee:d});return{...i,grossAmount:t,netAmount:t-d,combinedFeeAmount:d,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:e.spicenetFee}}}const c=n?wp(t,l,a):null;if(c&&!c.coversFees)throw new Ca({...e,grossAmount:t,netAmount:0n,spicenetFee:0n,totalFee:l});const u=c?.spicenetFee??(o==="user-transfer"?Vs(t,a):e.spicenetFee);return{...i,grossAmount:c?.grossAmount??t+u+l,netAmount:c?.netAmount??t,combinedFeeAmount:u+l,feeExecutionMode:o??"backend-transfer",feeBreakdown:{gasFee:e.gasFee,bridgeFee:e.bridgeFee??0n,spicenetFee:u}}}async function th(e,t){if(e.feeQuote?.sourceAllocation){e.validateFeeQuote?.();const l=e.feeQuote.sourceAllocation;ya(l,l.positions.map(c=>c.asset),e.embeddedWalletAddress??e.providerEmbeddedAddress??void 0,e.resolvedChainId);return}const n=e.selectedAsset?.asset;if(!n||n?._source!=="wallet")return;const o=so(n,e.resolvedChainId);if(!o||!J(o,e.executionTokenAddress))return;const r=await Mo(n,e.executionTokenAddress,e.resolvedChainId,e.destinationToken),s=Lr(t,r,n.decimals);if(s<=n.balance)return;const a=Re(s,n.decimals),i=Re(n.balance,n.decimals);throw new Error(`Insufficient ${n.symbol} for this total amount. Required ${a} ${n.symbol}; available ${i} ${n.symbol}.`)}function nh(e){const t=Yt(e.executionTokenAddress,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:e.executionTokenAddress,symbol:t?.symbol??e.destinationToken.symbol,decimals:t?.decimals??e.destinationToken.decimals}}function oh(e){const t=e.selectedAsset.asset,n=Tn(e.selectedAsset.amount,t.decimals);if(n<=t.balance)return n;throw new Error(`Insufficient ${t.symbol} for this total amount. Required ${Re(n,t.decimals)} ${t.symbol}; available ${Re(t.balance,t.decimals)} ${t.symbol}.`)}function Yd(e,t,n,o){const r=nh(t),s=po(e,r)??_r(o,r,n);if(s)return Yi(s,n,!!t.isFeeInclusiveInput,t.feeExecutionMode,0n,t.quotedInclusivePlatformFee)}function Zd(e,t,n){let o=0n,r=0n;const s=n.toLowerCase();for(const a of e)if(a.chainId===t){for(const i of a.calls??[])if(i.to.toLowerCase()===s)try{const l=jn({abi:ft,data:i.data});if(l.functionName!=="transfer")continue;const c=l.args[0].toLowerCase(),u=l.args[1];c===zn.toLowerCase()?o+=u:c===Cn.toLowerCase()&&(r+=u)}catch{continue}}return{spicenetFee:o,gasFee:r}}function rh(e,t,n,o){const r=t.feeExecutionMode==="user-transfer"&&t.needsSwap&&t.resolvedTokenIn?t.resolvedTokenIn:t.executionTokenAddress,s=Zd(e,t.resolvedChainId,r);return s.spicenetFee===0n&&n.feeBreakdown.spicenetFee>0n||s.gasFee===0n&&n.feeBreakdown.gasFee>0n?!1:es(s.spicenetFee,n.feeBreakdown.spicenetFee,t.feeToleranceBps)&&es(s.gasFee,n.feeBreakdown.gasFee,t.feeToleranceBps)&&es(o.feeBreakdown.bridgeFee,n.feeBreakdown.bridgeFee,t.feeToleranceBps)}function sh(e,t,n){return e?Wl(e.grossAmount,t.grossAmount,100n)&&Ga(e.feeBreakdown,t.feeBreakdown,n):!1}function ah(e,t){const n=Yt(t,e.resolvedChainId);return{chainId:e.resolvedChainId,tokenAddress:t,symbol:n?.symbol??e.selectedAsset?.asset.symbol??"",decimals:n?.decimals??e.selectedAsset?.asset.decimals??e.destinationToken.decimals}}async function ih(e,t){const n=e.feeQuote;return n?.feeEstimate&&n.grossFundingAmount!==void 0?{grossFundingAmount:n.grossFundingAmount,feeEstimate:n.feeEstimate}:jd({...t,feeOnlyAction:e.feeOnlyAction,estimate:e.execution.estimate,tokenDescriptor:ah(e,t.fundingToken)})}function Xd(e,t){const n=t instanceof Error?t:new Error(String(t));if(n.name==="AbortError"||n instanceof Be&&n.code==="ABORT"){e.ui.setStep("idle");return}const o=n.message||"Transaction failed";e.ui.setStep("error"),e.ui.setStatusMsg(o),e.ui.setError(o)}function Jd(e,t){const n=Wn(t,"Payment failed. Please try again.");e.ui.setError(n),e.ui.setPaymentResult({status:"failed",error:n})}async function $d(e){e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("executing"),e.ui.setStatusMsg("Confirm the transaction in your external wallet..."),e.ui.setTxHash(null),e.isPayMode&&(e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"}));try{if(e.validateFeeQuote?.(),!e.feeQuote?.batches||!e.feeQuote.actionDefinition)throw new Error("Review the direct action plan before submitting.");const t=await e.execution.execute(e.feeQuote.batches,e.destinationToken.address,0n,e.execution.onProgress);e.ui.setTxHash(t),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed"),e.isPayMode&&e.ui.setPaymentResult({status:"success",txHash:t})}catch(t){e.isPayMode?Jd(e,t):Xd(e,t)}finally{e.ui.setIsExecuting(!1)}}async function _d(e,t,n){e.validateFeeQuote?.();const o=e.feeQuote;if(!o.batches||o.sourceSpendCap===void 0||!o.fundingSource)throw new Error("Refresh the action before submitting.");const r=o.fundedFeeToken,s=o.grossFundingAmount??0n,a=Od({...e,signal:n,feeOnlyAction:!0,destinationToken:r,actionProceeds:e.actionProceeds??{token:o.fundingSource.token,resolve:async()=>o.proceedsAvailable??0n}},r.address,s);return e.execution.execute(o.batches,o.fundingConversion?.tokenIn??o.fundingSource.token,s,t,n,{...a,userOverride:e.embeddedWalletAddress||e.providerEmbeddedAddress,useCustomTransfers:!0,feeExecutionMode:"backend-transfer",skipPreSubmitFeeEstimate:!0})}async function eu(e){if(!e.selectedAsset?.asset&&!e.feeQuote?.fundingPlan||e.parsedAmount<=0){e.ui.setError("Select an asset and enter an amount");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.directExternalAction)return $d(e);if(!e.embeddedWalletAddress){e.ui.setError("Wallet not ready");return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setStep("signing-delegation"),e.ui.setStatusMsg("Building transaction..."),e.ui.setTxHash(null),e.refs.spiceDepositSubmittedRef.current=!1;const t=new AbortController;e.refs.abortControllerRef.current=t;try{const n=e.embeddedWalletAddress||e.providerEmbeddedAddress,o=e.feeQuote;if(o?.fundingPlan){e.validateFeeQuote?.();const m=o.fundingPlan;if(!o.batches?.length||!o.feeEstimate||o.fundingAmount===void 0)throw new Error("Review the combined funding plan before submitting.");const g=[...new Set(m.sources.filter(S=>S.asset.location==="embedded").map(S=>S.chainId))];for(const[S,b]of g.entries()){const A=m.sources.filter(F=>F.asset.location==="embedded"&&F.chainId===b),O=o.batches[S];if(!O||O.chainId!==b)throw new Error("The accepted source funding vector changed.");const v=await qe.estimateBatchGas({user:m.owner,outputToken:A[0].pivotToken.address,stepIndex:0,chainBatches:[O]});e.validateFeeQuote?.();const x=A.reduce((F,T)=>F+T.gasFeeAmount,0n);if(v.gasFee<0n||!es(x,v.gasFee,e.feeToleranceBps))throw new Error("Source funding fees changed. Refresh before submitting this purchase.")}const h={chainId:m.token.chainId,tokenAddress:m.token.address,symbol:m.token.symbol,decimals:m.token.decimals},y=po(o.feeEstimate,h);if(!y)throw new Error("The accepted purchase fees are unavailable.");const C=await e.execution.execute(o.batches,m.token.address,o.fundingAmount,e.execution.onProgress,t.signal,{userOverride:m.owner,useCustomTransfers:!0,skipUserFundingPreflight:!0,feeExecutionMode:"user-transfer",adjustBatchesForEstimate:({feeEstimate:S})=>{const b=po(S,h);if(!b||!Ga(y,b,e.feeToleranceBps))throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}});e.ui.setTxHash(C),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}if(o?.fundedFeeToken){const m=await _d(e,e.execution.onProgress,t.signal);e.ui.setTxHash(m),e.ui.setStep("success"),e.ui.setStatusMsg("Transaction confirmed");return}const r=ji(e);r&&oh(e);const s=e.feeQuote?.batches?e.feeQuote:await Yo({...e,feeExecutionMode:e.feeExecutionMode,isDirect:!e.needsSwap,isQuoting:!1,resolvedSwap:null,buildPayChainBatches:e.execution.buildPayChainBatches,buildSupplyChainBatches:e.execution.buildSupplyChainBatches,estimate:e.execution.estimate});if(!s?.batches||s.fundingAmount===void 0||!s.actionContext)throw new Error("A current action plan is required. Refresh the quote before submitting.");const a=e.isFeeInclusiveInput?s.actionContext.grossAmount:s.actionContext.netAmount;let i=s.batches;const l=i.some(m=>m.tokenTransfers?.length),c={userOverride:n,useCustomTransfers:l,feeExecutionMode:e.feeExecutionMode,...r?{skipUserFundingPreflight:!0}:{}},u=s.fundingAmount,d=s.actionContext;await th(e,u);const p=d,w=await e.execution.execute(i,e.executionTokenAddress,l?u:0n,e.execution.onProgress,t.signal,e.feeExecutionMode==="user-transfer"?{...c,skipUserFundingPreflight:!0,adjustBatchesForEstimate:async({feeEstimate:m,chainBatches:g})=>{if(s.feePricingBatches){e.validateFeeQuote?.();const S=await Vd({estimate:e.execution.estimate,batches:g,pricingBatches:s.feePricingBatches,tokenAddress:e.executionTokenAddress,fundingAmount:u,options:{...c,signal:t.signal},signedEstimate:m});e.validateFeeQuote?.();const b=Yd(S,e,a,g),A=p.feeBreakdown,O=Zd(g,e.resolvedChainId,e.executionTokenAddress);if(!b||b.feeBreakdown.spicenetFee!==A.spicenetFee||b.feeBreakdown.gasFee>A.gasFee||b.feeBreakdown.bridgeFee>A.bridgeFee||O.spicenetFee!==A.spicenetFee||O.gasFee!==A.gasFee+A.bridgeFee)throw new Error("Transaction fees changed. Refresh the quote before submitting.");return null}const h=Yd(s.feeEstimate?ka(m,s.feeEstimate):m,e,a,g);if(!h)throw new Error("Unable to validate the accepted fees. Refresh the quote before submitting.");const y=sh(p,h,e.feeToleranceBps),C=rh(g,e,h,p);if(y||C)return null;throw new Error("Transaction fees changed. Refresh the quote before submitting.")}}:{...c,skipPreSubmitFeeEstimate:!0});e.ui.setTxHash(w),e.ui.setStep("success"),e.ui.setStatusMsg("Deposit confirmed")}catch(n){Xd(e,n)}finally{e.ui.setIsExecuting(!1)}}async function tu(e){if(e.parsedAmount<0){e.ui.setError("Enter a valid payment amount");return}const t=e.parsedAmount===0;if(!e.selectedAsset?.asset&&!t){e.ui.setError("Select a payment source");return}if(e.isInsufficientBalance){e.ui.setError("Insufficient balance");return}if(e.parsedAmount>0&&e.needsSwap&&!e.exactOutputSwap){e.ui.setError("Swap quote not available. Try a different asset.");return}if(e.directExternalAction)return $d(e);const n=Pd(e)&&!t,o=n?e.feeQuote?.sourceGasSkim??0n:0n,r=a=>e.execution.buildPayChainBatches(n?{...a,sourceGasSkimOverride:o}:a);if(!e.isConnected||!e.address){e.ui.setError("Please connect your wallet to continue");return}if(!e.ready||!e.authenticated){e.ui.setError(`Please authenticate with ${e.provider||"wallet provider"} to continue`);return}e.ui.setIsExecuting(!0),e.ui.setError(null),e.ui.setShowStatusPanel(!0),e.ui.setPaymentResult({status:"processing"});const s=new AbortController;e.refs.abortControllerRef.current=s;try{if(e.feeQuote?.fundedFeeToken){const b=await _d(e,A=>{e.execution.onProgress(A),A.txHash&&(e.ui.setTxHash(A.txHash),e.ui.setPaymentResult({status:"processing",txHash:A.txHash}))},s.signal);e.ui.setPaymentResult(A=>({status:"success",txHash:A?.txHash||b}));return}const a=Tn(e.currentPaymentAmount,e.destinationToken.decimals),i={useCustomTransfers:!0,feeExecutionMode:e.feeExecutionMode,...n?{skipUserFundingPreflight:!0}:{}};if(t&&!e.feeOnlyAction){const b=await r(),A=await e.execution.execute(b,e.executionTokenAddress,0n,O=>{e.execution.onProgress(O),O.txHash&&(e.ui.setPaymentResult(v=>({...v??{status:"processing"},txHash:O.txHash})),e.ui.setTxHash(O.txHash))},s.signal,i);e.ui.setPaymentResult(O=>({status:"success",txHash:O?.txHash||A}));return}const l=e.selectedAsset?.asset,c=e.feeQuote?.fundingSource;if(!l&&!e.actionProceeds&&!c)throw new Error("Select a payment source");const u=e.feeQuote?.fundingConversion?.tokenIn||c?.token||e.resolvedTokenIn||l?.address||e.destinationToken.address,d=e.needsSwap?e.exactOutputSwap?.amountInMax??0n:a,p=e.embeddedWalletAddress||e.providerEmbeddedAddress||e.address,w=!!e.feeQuote?.fundingConversion||!!c&&(c.kind!=="balance"||c.asset?._source==="wallet"),{grossFundingAmount:m,feeEstimate:g}=w?{grossFundingAmount:e.feeQuote.grossFundingAmount??0n,feeEstimate:void 0}:await ih(e,{requiredNetFunding:d,buildBatches:b=>e.execution.buildPayChainBatches({fundingAmountOverride:b}).then(A=>rr(A,p)),fundingToken:u,executionOptions:i});let h=e.feeQuote?.fundingBatches??e.feeQuote?.batches??rr(await r({fundingAmountOverride:m}),p,e.actionProceeds?void 0:g,{payoutAlreadyGross:!0});const y=Od(e,e.feeQuote?.fundingConversion?.tokenOut??u,m);y.prepareForSigning&&(h=await y.prepareForSigning(h));const C=h.some(b=>b.tokenTransfers?.length),S=await e.execution.execute(h,u,C?m:0n,b=>{e.execution.onProgress(b),b.txHash&&(e.ui.setPaymentResult(A=>({...A,txHash:b.txHash})),e.ui.setTxHash(b.txHash))},s.signal,{...i,...y,skipPreSubmitFeeEstimate:!0});e.ui.setPaymentResult(b=>({status:"success",txHash:b?.txHash||S}))}catch(a){Jd(e,a)}finally{e.ui.setIsExecuting(!1)}}async function nu(e){const{quote:t,recipient:n,chainId:o,token:r}=e,s=t.batches?ou(t.batches,r,o,n):0n;if(s<=0n)throw new Error("The route does not deliver the action amount to the external wallet.");const a={userAddress:n,executorAddress:n,beneficiary:e.beneficiary??n,chainId:o,destinationToken:r,feeToken:r,grossAmount:s,netAmount:s,combinedFeeAmount:0n,feeExecutionMode:e.feeExecutionMode,feeBreakdown:{spicenetFee:0n,gasFee:0n,bridgeFee:0n}},i=await e.buildCalls(s,a);if(!i.length)throw new Error("No action calls configured.");return{amount:s,context:a,calls:i.map(l=>({...l}))}}function lh(e,t,n){const o=[],r=(s,a,i)=>{i>0n&&o.push(Fe(s)?{to:a,value:i,data:"0x"}:{to:s,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[a,i]})})};return t.feeExecutionMode==="user-transfer"&&t.feeBreakdown&&(r(t.feeToken??t.destinationToken,zn,t.feeBreakdown.spicenetFee),r(t.feeToken??t.destinationToken,Cn,t.feeBreakdown.gasFee+t.feeBreakdown.bridgeFee)),r(t.destinationToken,n,e),o}function ou(e,t,n,o){let r=0n;for(const s of e)if(s.chainId===n){for(const a of s.calls)if(J(a.to,t))try{const i=jn({abi:ft,data:a.data});i.functionName==="transfer"&&J(i.args[0],o)&&(r+=i.args[1])}catch{}}return r}async function ch(e){if(!/^0x[0-9a-f]{64}$/i.test(e.hash))throw new Error("The external delivery receipt is unavailable.");const t=At(e.chainId),n=await t.getTransactionReceipt({hash:e.hash});if(n.status!=="success"||!J(n.transactionHash,e.hash))throw new Error("The external delivery receipt was not successful.");let o=0n;for(const r of n.logs)if(J(r.address,e.token))try{const s=Qp({abi:ft,eventName:"Transfer",data:r.data,topics:r.topics});J(s.args.to,e.recipient)&&J(s.args.from,e.sender)&&(o+=s.args.value)}catch{}if(o!==e.amount)throw new Error("The received external amount does not match the accepted action.");if(await t.readContract({address:e.token,abi:ft,functionName:"balanceOf",args:[e.recipient]})<e.amount)throw new Error("The external wallet no longer holds the delivered action amount.")}async function ru(e,t,n){let o=null;try{const r=await e.request({method:"eth_chainId"});o=parseInt(r,16)}catch{o=null}o!==t&&(n?.(),await Ul(e,t))}function Zi(e){let t=e;const n=new Set;for(;t&&typeof t=="object"&&!n.has(t);){if(n.add(t),t.code===4001)return!0;t=t.cause}return!1}async function Xi(e){const t=e.provider??await e.wallet?.getEthereumProvider();if(!t)throw new Error("External wallet provider not available");await ru(t,e.chainId,e.onSwitch);const n=await t.request({method:"eth_accounts"});if(!Array.isArray(n)||!n.some(r=>typeof r=="string"&&r.toLowerCase()===e.account.toLowerCase()))throw new Error("The connected source wallet changed. Reconnect the selected account before funding.");const o=xt(e.chainId)?.viemChain;return{extWc:ei({account:e.account,chain:o,transport:ti(t)}),viemChain:o}}async function su(e,t,n){const o=Date.now()+1e4;for(;Date.now()<o;){let r,s;try{r=await Promise.race([Promise.all([t.getBlockNumber({cacheTime:0}),e.request({method:"eth_blockNumber"}).then(BigInt)]),new Promise(a=>{s=setTimeout(()=>a(null),Math.max(0,o-Date.now()))})])}catch{return}finally{clearTimeout(s)}if(!r||Date.now()>=o||r.every(a=>a>=n))return;await new Promise(a=>setTimeout(a,Math.min(250,o-Date.now())))}}async function dh(e){let t;for(const[n,o]of e.calls.entries()){await e.observer?.onSending?.(n);let r;try{r=await e.extWc.sendTransaction({to:o.to,data:o.data,value:o.value,chain:e.viemChain})}catch(i){throw Zi(i)&&e.observer?.onRejected?.(n),i}e.observer?.onSubmitted?.(n,r);const s=await pa({client:e.client,hash:r,call:o,onRepriced:i=>e.observer?.onSubmitted?.(n,i),onCancelled:()=>e.observer?.onReverted?.(n,r)});r=s.hash;const a=s.receipt;if(a.status!=="success")throw e.observer?.onReverted?.(n,r),new Error(e.errorMessage);await su(e.extWc,e.client,a.blockNumber),e.observer?.onConfirmed?.(n,r),t=r}return t}async function au(e){const t=await e.client.estimateFeesPerGas(),n=t.maxFeePerGas??t.gasPrice;if(typeof n!="bigint"||n<=0n)throw new Error("Network gas could not be priced.");let o=0n;for(const r of e.calls){const s=await e.client.estimateGas({account:e.account,...r});o+=(s*n*120n+99n)/100n}return o}async function iu(e){const{definition:t,account:n,chainId:o}=e,{calls:r}=t;if(!J(t.context.executorAddress,n)||t.context.chainId!==o||!r.length)throw new Error("The direct action no longer matches its wallet or chain.");const s=At(o);let a;for(const i of r){await e.assertCurrent();const[l,c]=await Promise.all([au({client:s,account:n,calls:[i]}),s.getBalance({address:n})]);if(c<i.value+l)throw new Error("The external wallet has insufficient native balance for this transaction and network gas.");await e.assertCurrent();const{extWc:u,viemChain:d}=await Xi({wallet:e.wallet,account:n,chainId:o});await e.assertCurrent(),a=await dh({extWc:u,viemChain:d,client:s,calls:[i],errorMessage:"The external transaction reverted. Retry the unfinished action when ready."})}if(!a)throw new Error("The direct action has no confirmed receipt.");return a}function Is(e,t,n){if(!J(e.owner,t)||e.balanceError||e.balanceStatus==="stale"||e._wrapFromNative||!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>36)return!1;if(e.location==="embedded"&&e._source==="wallet"){const r=fr(e.chainId);return!!r&&(!J(e.address,r.address)||e.decimals===r.decimals)}if(e.location!=="rollup"||e._source!=="spice"||!e.receiptTokenId||!e.chainTokens||Array.isArray(e.chainTokens))return!1;const o=Object.entries(e.chainTokens).filter(([r])=>Yn(r)?.chainId===n.chainId);return o.length===1&&J(Yn(o[0][0])?.address,n.address)&&(o[0][1].decimals===void 0||o[0][1].decimals===n.decimals)}async function lu(e){const{owner:t,token:n}=e,o=fr(n.chainId);if(!o||!J(o.address,n.address)||o.decimals!==n.decimals||e.destinationToken.chainId!==n.chainId)throw new Error("Combined funding requires the destination chain's supported USDC token.");if(e.budget!=="max"&&e.budget<=0n)throw new Error("Enter a positive purchase budget.");const r=()=>{if(e.signal?.aborted)throw new Error("Fee estimation cancelled")},s=(v,x=0n,F=0n,T=0n)=>new Ca({symbol:n.symbol,decimals:n.decimals,grossAmount:v,netAmount:0n,gasFee:x,spicenetFee:F,bridgeFee:T,totalFee:x+F+T,gasQuoteSource:"estimated"}),a=new Set,i=new Set,l=[],c=v=>v.location==="rollup"?0:J(v.address,fr(v.chainId)?.address)?v.chainId===n.chainId?1:3:v.chainId===n.chainId?2:4,u=[...e.sources].sort((v,x)=>c(v.asset)-c(x.asset));let d=0n;for(const v of u){r();const{asset:x,availableAmount:F,reservedAmount:T}=v,B=be(x),M=x.location==="rollup"?`${t.toLowerCase()}:rollup:${x.receiptTokenId}`:`${t.toLowerCase()}:${x.location}:${x.chainId}:${ht(x.address).toLowerCase()}`;if(a.has(B)||i.has(M))throw new Error("A funding position was included more than once.");if(a.add(B),i.add(M),!Is(x,t,n)||typeof F!="bigint"||typeof T!="bigint"||F<0n||T<0n||F+T>x.balance)throw new Error("A funding position or its available balance cannot be verified.");if(F===0n||e.budget!=="max"&&d>=e.budget)continue;const k=x.location==="rollup"?n:{...fr(x.chainId),chainId:x.chainId},E=x.location==="rollup"||J(x.address,k.address)?void 0:await e.resolveSourceInput(x,k,F);if(r(),E&&(E.amountOutMinimum<=0n||E.amountOutMinimum>E.amountOut||!E.calls.length))throw new Error("A funding conversion has no guaranteed output.");x.location==="rollup"&&x.receiptTokenDecimals!==void 0&&En(F,x.decimals,x.receiptTokenDecimals);const I=E?.amountOutMinimum??En(F,x.decimals,k.decimals),D=En(un(I,k.decimals,n.decimals,"floor"),n.decimals,k.decimals);D!==0n&&(d+=En(D,k.decimals,n.decimals),l.push({positionId:B,asset:x,owner:t,chainId:x.chainId,token:x.address,decimals:x.decimals,sourceSpendCap:F,quotedAvailable:F,reservedAmount:T,pivotToken:k,amountOutMinimum:D,gasFeeAmount:0n,...E?{swap:E}:{}}))}const p=l.reduce((v,x)=>v+En(x.amountOutMinimum,x.pivotToken.decimals,n.decimals),0n);let w=e.budget==="max"?p:e.budget;if(e.budget==="max"&&w===0n)throw s(0n);if(w<=0n||w>p)throw new Error("The available funding positions cannot cover this purchase budget.");const m=[];let g=w;for(const v of l){if(g===0n)break;const x=En(v.amountOutMinimum,v.pivotToken.decimals,n.decimals),F=x<g?x:g,T=En(F,n.decimals,v.pivotToken.decimals);if(F===x)m.push(v);else if(v.swap){const B=await e.resolveSourceOutput(v.asset,v.pivotToken,T);if(r(),!B||B.amountInMax<=0n||B.amountIn<0n||B.amountIn>B.amountInMax||B.amountInMax>v.quotedAvailable||B.amountOut<T||!B.calls.length)throw new Error("The funding conversion cannot fit its accepted source balance.");m.push({...v,sourceSpendCap:B.amountInMax,amountOutMinimum:T,swap:{venue:B.venue,calls:B.calls,amountOut:B.amountOut,amountOutMinimum:T}})}else{const B=En(T,v.pivotToken.decimals,v.decimals);v.asset.location==="rollup"&&v.asset.receiptTokenDecimals!==void 0&&En(B,v.decimals,v.asset.receiptTokenDecimals),m.push({...v,sourceSpendCap:B,amountOutMinimum:T})}g-=F}const h=new Map;for(const v of m){if(v.asset.location==="rollup")continue;const x=h.get(v.chainId)??[];x.push(v),h.set(v.chainId,x)}const y=new Map,C=(v=!1)=>[...h].map(([x,F])=>{const T=F[0].pivotToken,B=F.reduce((k,E)=>k+E.amountOutMinimum,0n),M=y.get(x)??(v?1n:0n);if(B<=M&&!v)throw s(w,un(M,T.decimals,n.decimals,"ceil"));return{chainId:x,calls:[...F.flatMap(k=>k.swap?.calls??[]),yr(T.address,B>M?B-M:0n,Oo(x)),...M>0n?[yr(T.address,M,Cn)]:[]]}});for(let v=0;v<8&&h.size>0;v++){const x=C(!0);let F=!1;for(const[T,[B,M]]of[...h].entries()){r();const k=await qe.estimateBatchGas({user:t,outputToken:M[0].pivotToken.address,stepIndex:0,chainBatches:[x[T]],signal:e.signal});if(k.gasFee<0n)throw new Error("The source gas quote is invalid.");const E=M[0].pivotToken,I=En(un(k.gasFee,E.decimals,n.decimals,"ceil"),n.decimals,E.decimals),D=y.get(B),P=D!==void 0&&D>I?D:I,H=M.reduce((Q,G)=>Q+G.amountOutMinimum,0n);if(P>=H){if(e.budget!=="max")return lu({...e,sources:e.sources.filter(Q=>Q.asset.location==="rollup"||Q.asset.chainId!==B)});w-=En(H,E.decimals,n.decimals),h.delete(B);for(const Q of M)m.splice(m.indexOf(Q),1);F=!0;continue}(D===void 0||P!==D)&&(F=!0),y.set(B,P)}if(!F)break;if(v===7)throw new Error("Source fees did not converge. Refresh the quote before submitting.")}let S=0n;for(const[v,x]of h){const F=y.get(v);x[0].gasFeeAmount=F,S+=En(F,x[0].pivotToken.decimals,n.decimals)}const b=w-S;if(b<=0n)throw s(w,S);let A={gasFee:0n,spicenetFee:0n,bridgeFee:0n},O="estimated";for(let v=0;v<8;v++){r();const x=A.gasFee+A.spicenetFee+A.bridgeFee,F={grossAmount:b,netAmount:b-x,combinedFeeAmount:x,feeExecutionMode:"user-transfer",feeBreakdown:A},T=F.netAmount;if(T<=0n)throw s(w,S+A.gasFee,A.spicenetFee,A.bridgeFee);const B=J(n.address,e.destinationToken.address)?void 0:await e.resolveDestinationInput(T);if(r(),B&&(B.amountOutMinimum<=0n||B.amountOutMinimum>B.amountOut||!B.calls.length))throw new Error("The purchase conversion has no guaranteed output.");const M=B?.amountOutMinimum??En(T,n.decimals,e.destinationToken.decimals),k={...F,userAddress:e.beneficiary??t,executorAddress:t,beneficiary:e.beneficiary??t,chainId:n.chainId,destinationToken:e.destinationToken.address,feeToken:n.address,grossAmount:w,netAmount:M,combinedFeeAmount:F.combinedFeeAmount+S},E=await e.buildActionCalls(M,k);if(!E.length&&!B?.calls.length)throw new Error("No action calls configured.");const I={intents:[{intentIndex:0,batches:[{chainId:n.chainId,quotedAmount:T.toString(),totalDebit:b.toString(),gasQuoteSource:O,feeBreakdown:{gasFee:A.gasFee.toString(),spicenetFee:A.spicenetFee.toString(),bridgeFee:A.bridgeFee.toString()}}]}]},D={chainId:n.chainId,calls:[...B?.calls??[],...E],tokenTransfers:[{from:"escrow",to:t,token:n.address,amount:b}]},P=[...C(),...Hi([D],t,I,{payoutAlreadyGross:!0,requestTimestampMs:e.requestTimestampMs})],H=await e.estimate(P,n.address,b,{userOverride:t,useCustomTransfers:!0,feeExecutionMode:"user-transfer",signal:e.signal,skipUserFundingPreflight:!0}),Q=H.intents.flatMap(V=>V.batches);if(H.intents.length!==1||H.intents[0].intentIndex!==0||Q.length!==1||Q[0].chainId!==n.chainId)throw new Error("The destination fee quote is missing or ambiguous.");const G=po(H,{...n,tokenAddress:n.address});if(!G)throw new Error("The destination fee quote cannot be verified.");const ne=Ho(Q[0]);if(ne.gasFee<0n||ne.spicenetFee<0n||ne.bridgeFee<0n)throw new Error("The destination fee quote is invalid.");if(ne.spicenetFee>Vs(b,10n))throw new Error("The destination platform fee exceeds the supported purchase fee.");const X={gasFee:ne.gasFee>A.gasFee?ne.gasFee:A.gasFee,bridgeFee:ne.bridgeFee>A.bridgeFee?ne.bridgeFee:A.bridgeFee,spicenetFee:ne.spicenetFee>A.spicenetFee?ne.spicenetFee:A.spicenetFee};if(v>0&&X.gasFee===A.gasFee&&X.bridgeFee===A.bridgeFee&&X.spicenetFee===A.spicenetFee)return{fundingPlan:{owner:t,token:n,totalBudget:w,sources:m},batches:P,feeEstimate:I,actionDefinition:{amount:M,context:k,calls:E},actionContext:k,fundingAmount:b,destinationAmount:M,destinationSwap:B,swapInputAmount:T,preview:{symbol:n.symbol,decimals:n.decimals,grossAmount:w,netAmount:T,totalFee:F.combinedFeeAmount+S,gasFee:A.gasFee+S,spicenetFee:F.feeBreakdown.spicenetFee,bridgeFee:A.bridgeFee,gasQuoteSource:O}};A=X,O=G.gasQuoteSource}throw new Error("Fees did not converge. Refresh the quote before submitting.")}function Ia(e,t,n,o){return n?{to:e,value:o,data:"0x"}:{to:t,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[e,o]})}}async function cu(e){const t=Ia(e.recipient,e.token,e.isNative,e.amount),[n,o]=await Promise.all([e.client.estimateGas({account:e.account,...t}),e.client.estimateFeesPerGas()]),r=o.maxFeePerGas??o.gasPrice;if(typeof r!="bigint"||r<=0n)throw new Error("Source transaction gas could not be priced.");return(n*r*120n+99n)/100n}function Ji(e,t){return t.isNative?e.sendTransaction({to:t.recipient,value:t.amount,chain:t.viemChain}):e.sendTransaction({to:t.tokenAddr,data:Tt({abi:ft,functionName:"transfer",args:[t.recipient,t.amount]}),chain:t.viemChain})}async function uh(e){const{extWc:t,sourceClient:n,recipient:o,tokenAddr:r,isNative:s,amount:a}=e;if(a<=0n)return;await e.observer?.onSending?.(0);let i;try{i=await Ji(t,{recipient:o,tokenAddr:r,isNative:s,amount:a,viemChain:e.viemChain})}catch(u){throw Zi(u)&&e.observer?.onRejected?.(0),u}e.observer?.onSubmitted?.(0,i);const l=await pa({client:n,hash:i,call:Ia(o,r,s,a),onRepriced:u=>e.observer?.onSubmitted?.(0,u),onCancelled:()=>e.observer?.onReverted?.(0,i)});i=l.hash;const c=l.receipt;if(c.status!=="success")throw e.observer?.onReverted?.(0,i),new Error("Embedded wallet funding failed");await su(t,n,c.blockNumber),e.observer?.onConfirmed?.(0,i)}async function du(e){const{asset:t,embedded:n,external:o,amount:r}=e;if(!o||!e.externalWallet)throw new Error("Connect the source wallet before funding.");if(r<=0n)return;const s=At(t.chainId),a=t.isNative||Fe(t.address),[i,l]=await Promise.all([cu({client:s,account:o,recipient:n,token:t.address,isNative:a,amount:r}),s.getBalance({address:o})]);if(l<i+(a?r:0n))throw new Error("The source wallet has insufficient native balance for funding and gas.");const{extWc:c,viemChain:u}=await Xi({wallet:e.externalWallet,account:o,chainId:t.chainId});await uh({extWc:c,sourceClient:s,recipient:n,tokenAddr:t.address,isNative:a,amount:r,viemChain:u,observer:{...e.observer,onSending:async d=>{await e.assertCurrent(),await e.observer?.onSending?.(d)}}})}function uu(e){const t=an($t),n=xt(e.chainId),o=e.address??n?.supportedTokens?.find(m=>m.symbol.toLowerCase()===e.symbol?.toLowerCase())?.address,r=e.symbol??(o&&Fe(o)?n?.nativeCurrency?.symbol:n?.supportedTokens?.find(m=>!!o&&J(m.address,o))?.symbol),s=Va(e.chainId,t?.rpcOverrides),[a,i]=L(0),l=`${e.chainId}:${o?.toLowerCase()}:${s}:${e.decimals??""}:${r??""}:${a}`,[c,u]=L(null);pe(()=>{let m=!1;if(!(!e.enabled||!o||!s?.trim()))return Promise.all([e.decimals??zs(e.chainId,o,t?.rpcOverrides),r??tr(At(e.chainId,t?.rpcOverrides),{address:o,abi:ft,functionName:"symbol"}).catch(()=>{})]).then(([g,h])=>{if(!Number.isInteger(g)||g<0||g>255)throw new Error("Invalid destination token decimals");m||u({key:l,decimals:g,symbol:h})}).catch(g=>{m||u({key:l,error:g.message})}),()=>{m=!0}},[e.enabled,l]);const d=c?.key===l?c:null,p=we(()=>({address:o??Kt,chainId:e.chainId,decimals:d?.decimals??0,symbol:r??d?.symbol??(o?ns(o):""),logoURI:e.logoURI}),[o,e.chainId,d?.decimals,d?.symbol,r,e.logoURI]),w=e.enabled?o?s?.trim()?d?.error??null:`Configure SpiceFlowProvider rpcOverrides[${e.chainId}] before continuing.`:"Configure the destination token address before continuing.":null;return{token:p,error:w,ready:e.enabled&&!!o&&!!s?.trim()&&d?.decimals!==void 0,refresh:re(()=>i(m=>m+1),[])}}function Sa(e,t){const n=!!e&&e.symbol!==void 0&&e.decimals!==void 0,o=uu({enabled:t&&!!e&&!n,chainId:e?.chainId??0,address:e?.address,decimals:e?.decimals,symbol:e?.symbol,logoURI:e?.logoURI});return{token:e?n?e:o.ready?o.token:void 0:void 0,error:o.error}}const Aa={address:Kt,symbol:"",decimals:18,chainId:0};function pu(e,t,n){return J(e.address,t)&&e.chainId===n?e._source==="wallet"?0:1:2}function ph(e,t,n,o){const r=pu(e,n,o)-pu(t,n,o);return r!==0?r:(t.balanceUsd||0)-(e.balanceUsd||0)}const fh=Wc;function fu(e){const t=an($t),n=Tr(),o=t?.embeddedWalletAddress||n.embeddedAddress,r=t?.externalWalletAddress||n.externalAddress,s=(t?.mode||"7702")!=="7702",a=e.destinationToken??Aa,i=e.enabled&&!!e.destinationToken,l=hr({...e,owner:o,enabled:i&&!!o&&(!s||e.includeCrossChainEmbeddedAssets!==!1),role:"spend-source",destination:e.destinationToken}),c=hr({...e,owner:r,enabled:i&&!!r&&(s||e.includeExternalWalletAssets!==!1),role:"spend-source",destination:e.destinationToken});return{displayAssets:we(()=>[...l.assets,...c.assets].sort((u,d)=>ph(u,d,a.address,a.chainId)),[l.assets,c.assets,a.address,a.chainId]),filteredSpiceAssets:l.rollupAssets,walletAssets:[...l.walletAssets,...c.walletAssets],embeddedWalletAddress:o,externalAddress:r,isNon7702:s,refreshSpiceAssets:l.refresh,refreshWalletAssets:l.refresh,loading:l.loading||c.loading,refreshing:l.refreshing||c.refreshing,error:l.error||c.error}}function mh(e,t){return!e||e._source!=="wallet"?null:yi(e,t)}function $i(e){return wc({aerodrome:!1,oneInch:{chainIds:[]},customVenues:e})}const _i=pr(),hh=$i(_i.input);function mu(e){return{venue:"mapped-transfer",amountOut:e,amountOutMinimum:e,calls:[]}}function hu(e){return{venue:"mapped-transfer",amountIn:e,amountInMax:e,amountOut:e,calls:[]}}async function Ss(e){if(J(e.tokenIn,e.tokenOut))return mu(e.amountIn);if(e.resolveInputSwap){const n=await e.resolveInputSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient);if(n)return n}const t=await(e.liquidityVenues?$i(pr(e.liquidityVenues).input):hh).resolveSwap({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn,maxSlippage:e.maxSlippage},e.chainId,e.recipient,e.selectedSwap);if(!t)throw new Error("No liquidity for this pair.");return t}async function gu(e){return J(e.tokenIn,e.tokenOut)?hu(e.amountOut):ks({customVenues:e.liquidityVenues?pr(e.liquidityVenues).output:_i.output}).getQuote({tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountOut:e.amountOut,maxSlippage:e.maxSlippage},e.chainId,e.recipient)}function wu(e){const{enabled:t=!0,direction:n,selectedAsset:o,destinationToken:r,chainId:s=r.chainId,recipient:a,paymentAmount:i,maxSlippage:l,refreshIntervalMs:c,resolveInputSwap:u,resolveExactOutputSwap:d}=e,p=an($t),w=p?.liquidityVenues,m=JSON.stringify([p?.network,p?.apiUrl,p?.rpcOverrides]),[g,h]=L(!1),[y,C]=L(null),[S,b]=L(null),[A,O]=L(null),[v,x]=L(null),[F,T]=L(null),[B,M]=L(null),[k,E]=L(null),[I,D]=L(null),[P,H]=L(null),[Q,G]=L(null),[ne,X]=L(null),[V,oe]=L(null),[Y,ge]=L(null),[xe,he]=L(0),[ve,_]=L(null),[K,ie]=L(null),N=j(null),Le=j(null),Te=j(0),z=j(new Map),q=re(()=>{Te.current++,z.current.clear(),ie(null),he(fe=>fe+1)},[]),ee=c&&c>0?c:null,ce=w?JSON.stringify(w):"",Z=we(()=>w?pr(w):_i,[ce]),ae=we(()=>$i(Z.input),[Z]),ze=we(()=>ks({customVenues:[...d?[{name:"consumer-exact-output",chainIds:[s],preferred:!0,resolve:d}]:[],...Z.output]}),[d,s,Z]);pe(()=>{z.current.clear()},[ze]);const Ie=we(()=>t?mh(o?.asset,s):null,[t,o?.asset,s]),Ce=we(()=>{if(!t||!o?.asset)return null;if(Ie)return Ie.destination.address;const fe=so(o.asset,s);if(fe)return fe;const Oe=Go(o.asset.address,s,o.asset.chainId);return Oe?Oe.address:null},[t,o?.asset,s,Ie]),tt=we(()=>t&&o?.asset?Br(o.asset,s):[],[t,o?.asset,s]),De=we(()=>tt.map(fe=>fe.toLowerCase()).join(","),[tt]),Me=JSON.stringify([t,m,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,o?.amount,s,De,n,i]);pe(()=>{let fe=!1;if(Le.current&&(clearTimeout(Le.current),Le.current=null),!t||!o?.asset||Ie||tt.length<=1){oe(null),ge(null);return}return Le.current=setTimeout(async()=>{const Oe=n==="input"?o.amount:i||"0";let dt=0n;try{dt=n==="input"?Tn(Oe,o.asset.decimals):0n}catch{dt=0n}try{const Ye=await Mc(o.asset,s,{requiredAmount:dt});fe||(oe(Ye),ge(Me))}catch{fe||oe(null)}},400),()=>{fe=!0,Le.current&&(clearTimeout(Le.current),Le.current=null)}},[Me]);const Pe=we(()=>(Y===Me?V:null)??Ce,[V,Y,Me,Ce]),ye=we(()=>!o?.asset||!Pe?[]:[Pe,...tt.filter(fe=>fe.toLowerCase()!==Pe.toLowerCase())],[o?.asset,Pe,tt]),Ze=we(()=>!o?.asset||!cs(o.asset.address,o.asset.chainId,r.address,r.chainId)||!Pe?!1:J(Pe,r.address),[o,r.address,r.chainId,Pe]),ke=Pe?J(Pe,r.address):!1,He=n==="output"&&parseFloat(i||"0")===0,gt=t&&!!o?.asset&&!Ze&&!ke&&!He,Xe=JSON.stringify([t,ce,n,gt,m,o?.asset.owner,o?.asset.location,o?.asset.receiptTokenId,o?.asset.address,o?.asset.chainId,o?.asset.decimals,n==="input"?o?.amount:i,ye.map(fe=>fe.toLowerCase()),s,r.address.toLowerCase(),r.chainId,r.decimals,a?.toLowerCase(),l,ee,Ie?.source.address.toLowerCase()??""]),ot=we(()=>({}),[Xe,ae,ze,u,xe]),Qe=K?.request===ot&&(!ee||K.expiresAt>Date.now());return pe(()=>{if(!ee||K?.request!==ot)return;const fe=setTimeout(q,Math.max(0,K.expiresAt-Date.now()));return()=>clearTimeout(fe)},[ee,K,ot,q]),pe(()=>{N.current&&clearTimeout(N.current),_(ot),ie(null),C(null);const fe=n==="input"?o?.amount:i,Oe=parseFloat(fe||"0");if(!t||!Number.isFinite(Oe)||Oe<=0||!o?.asset||!a||ye.length===0){Te.current++,b(null),O(null),x(null),T(null),M(null),E(null),D(null),X(null),C(null),h(!1);return}const dt=o.asset.decimals;let Ye;try{Ye=n==="input"?Tn(o.amount,dt):Tn(i||"0",r.decimals)}catch(lt){Te.current++,C(lt instanceof Error?lt.message:"Invalid amount or token precision"),h(!1);return}const Se=++Te.current,Je=()=>Se!==Te.current;h(!0);const It=n==="output"?150:100,Ke=async(lt,ut,pt,Et={chainId:s,tokenOut:r.address,amountIn:Ye},_t=ye)=>{for(const Ct of _t){const at=`${m}:${ce}:${n}:${Et.chainId}:${Ct.toLowerCase()}:${Et.tokenOut.toLowerCase()}:${Et.amountIn.toString()}:${a.toLowerCase()}:${l??"default"}:${ee??"default"}`,Wt=z.current.get(at),Ut=Wt&&Wt.expiresAt>Date.now()?lt(Wt):void 0;if(Ut)return{quote:Ut,tokenIn:Ct,expiresAt:Wt.expiresAt};const $=await pt(Ct);if(Je())return"stale";if(!$)continue;const Lt=Date.now()+Math.min(ee??3e4,3e4);return z.current.set(at,{expiresAt:Lt,direction:n,...ut($)}),{quote:$,tokenIn:Ct,expiresAt:Lt}}return null},Rt=lt=>Ke(ut=>ut.resolvedSwap,ut=>({resolvedSwap:ut}),async ut=>{const pt=!Ie&<.chainId===s&&o.asset._source!=="wallet",Et=pt?await Mo(o.asset,ut,lt.chainId,r):dt;if(Je())return null;const _t=pt?En(lt.amountIn,dt,Et):lt.amountIn;if(J(ut,lt.tokenOut))return mu(_t);const Ct={type:"swap",tokenIn:ut,tokenOut:lt.tokenOut,amountIn:_t,maxSlippage:l};if(u){const at=await u(Ct,lt.chainId,a);if(at)return at}return ae.resolveSwap(Ct,lt.chainId,a)},lt,lt.candidates);return N.current=setTimeout(async()=>{try{if(n==="input"){let lt=null,ut=Ye;if(Ie){if(lt=await Rt({chainId:Ie.source.chainId,tokenOut:Ie.source.address,amountIn:Ye,candidates:[o.asset.address]}),lt==="stale"||Je())return;if(!lt)throw new Error("No liquidity for this pair");ut=un(lt.quote.amountOutMinimum,Ie.source.decimals,Ie.destination.decimals,"floor")}const pt=gt||!Ie?await Rt({chainId:s,tokenOut:r.address,amountIn:ut,candidates:ye}):null;if(pt==="stale"||Je())return;if(gt&&!pt)throw new Error("No liquidity for this pair");const Et=pt?pt.quote.amountOut:ut,_t=Math.min(pt?.expiresAt??1/0,lt?.expiresAt??1/0),Ct=Ie?.destination.decimals??await Mo(o.asset,pt.tokenIn,s,r),at=!Ie&&o.asset._source!=="wallet"?En(ut,dt,Ct):ut;if(Je())return;X(pt?.tokenIn??Ie?.destination.address??null),ie({request:ot,key:`${ur(Zl(Xe))}:${Se}`,expiresAt:_t}),D(Et),H(at),G(Ct),x(gt?pt?.quote??null:null),T(lt?.quote??null),M(null),E(null);const Wt=parseFloat(Re(Et,r.decimals));b(Wt<.01?Wt.toPrecision(4):Wt.toLocaleString(void 0,{maximumFractionDigits:6})),O(null),C(null)}else{const lt=at=>Ke(Wt=>Wt.exactOutputSwap,Wt=>({exactOutputSwap:Wt}),async Wt=>{try{return J(Wt,at.tokenOut)?hu(at.amountOut):await ze.getQuote({tokenIn:Wt,tokenOut:at.tokenOut,amountOut:at.amountOut,maxSlippage:l},at.chainId,a)}catch{return null}},{chainId:at.chainId,tokenOut:at.tokenOut,amountIn:at.amountOut},at.candidates),ut=!Ie||gt,pt=ut?await lt({chainId:s,tokenOut:r.address,amountOut:Ye,candidates:ye}):null;if(pt==="stale"||Je())return;if(ut&&!pt)throw new Error("No liquidity for this pair");let Et=null;if(Ie){const at=pt?pt.quote.amountInMax:Ye;if(Et=await lt({chainId:Ie.source.chainId,tokenOut:Ie.source.address,amountOut:un(at,Ie.destination.decimals,Ie.source.decimals,"ceil"),candidates:[o.asset.address]}),Et==="stale"||Je())return;if(!Et)throw new Error("No liquidity for this pair")}const _t=Et?dt:await Mo(o.asset,pt.tokenIn,s,r);if(Je())return;X(pt?.tokenIn??Ie?.destination.address??null),ie({request:ot,key:`${ur(Zl(Xe))}:${Se}`,expiresAt:Math.min(pt?.expiresAt??1/0,Et?.expiresAt??1/0)}),E(pt?.quote??null),M(Et?.quote??null),x(null),T(null),D(null);const Ct=Et?.quote.amountIn??pt.quote.amountIn;O(Re(Ct,_t)),b(null),C(null)}}catch(lt){if(Je())return;const ut=lt instanceof Error?lt.message:"Failed to get quote";C(ut),b(null),O(null),x(null),T(null),M(null),E(null),D(null),X(null)}finally{Je()||h(!1)}},gt||Ie?It:0),()=>{Te.current++,N.current&&clearTimeout(N.current)}},[ot]),{inputAmount:Qe&&n==="input"?P:null,inputDecimals:Qe&&n==="input"?Q:null,quoteKey:Qe?K.key:null,quoteExpiresAt:Qe?K.expiresAt:null,refreshQuote:q,isQuoting:ve===ot?g:gt||!!Ie,quoteError:ve===ot?y:null,estimatedOutput:Qe?S:null,estimatedInput:Qe?A:null,resolvedSwap:Qe?v:null,exactOutputSwap:Qe?k:null,quoteAmountOut:Qe?I:null,resolvedTokenIn:gt&&Qe?ne??Pe:Pe,isDirect:ke,needsSwap:gt,selectedIsEquivalent:Ze,sourceSwap:Qe?F:null,sourceExactOutputSwap:Qe?B:null,pivot:Ie}}function As(e){const{enabled:t=!0,destinationToken:n,selectedAsset:o,paymentAmount:r="0",sourceChains:s,supportedSourceAssets:a,buildActionCalls:i,feeExecutionMode:l="user-transfer",buildSpicenetBatch:c,onPayExecute:u,resolveExactOutputSwap:d,amountDirection:p=e.feeOnlyAction?"output":e.fundingSources?"input-inclusive":"input",onSuccess:w,onError:m}=e,g=Sa(n,t),h=g.token??Aa,y=!!e.fundingSources,C=!!e.combineSourceBalances||y,S=Sa(e.fundingSources?.token,t&&y),b=S.token??Aa,A=t&&!!g.token,O=p==="output",v=p==="input-inclusive",x=e.feeFunding?.length!==0&&(e.actionProceeds==="output"||!!e.feeFunding?.length),F=O?"output":"input",T=h.chainId,B=an($t),M=yp(B?.feeToleranceBps),k=B?.mode||"7702",E=!1,I=!!B?.isWhitelistGateActive,D=!!B?.isWhitelistConfigured&&B?.isUserWhitelisted!==!0,P=we(()=>s??B?.supportedChainIds??[],[s,B?.supportedChainIds]),H=a,{address:Q,isConnected:G,isReady:ne,isAuthenticated:X,provider:V}=Fo(),{execute:oe,estimate:Y,clearStatus:ge}=Dr(),{externalWallet:xe,embeddedAddress:he,activeWallet:ve,activeAddress:_}=Tr(),K=B?.externalWalletAddress,ie=B?.embeddedWalletAddress||he,N=o,Le=sa(N?.asset,k!=="7702"),Te=!!N&&N.asset.chainId===h.chainId&&J(ht(N.asset.address),ht(h.address)),z=!e.quoteOnlyAccount&&(k!=="7702"||e.actionExecution?.wallet==="external")&&Le&&Te&&(!O||Number(r)>0)&&!e.feeOnlyAction&&!e.actionProceeds,q=Le&&!z,ee=e.actionExecution?.wallet==="external"&&!z,ce=ee?[h.chainId,...N?.asset._source==="wallet"?[N.asset.chainId]:[]].find(W=>!B?.rpcOverrides?.[W]):void 0,Z=y&&(p!=="input-inclusive"||N||e.feeOnlyAction||e.actionInput||e.actionProceeds||e.actionExecution||k!=="7702")?"Combined funding supports an input-inclusive account purchase without a selected token.":y&&S.error?S.error:g.error?g.error:u?"Move onPayExecute protocol calls to buildActionCalls and application updates to onSuccess before continuing.":ee&&(O&&!(Number(r)>0)||e.feeOnlyAction||e.actionProceeds||e.prependSourceEscrow||Fe(h.address))?"External wallet execution requires a positive ERC20 supply or payment with SDK-managed funding.":ce!==void 0?`Configure rpcOverrides for chain ${ce} before routing to the external caller.`:null,ae=we(()=>ee&&K?(W,U)=>lh(W,U,K):i,[ee,K,i]),{displayAssets:ze,filteredSpiceAssets:Ie,walletAssets:Ce,embeddedWalletAddress:tt,refreshSpiceAssets:De,refreshWalletAssets:Me,loading:Pe,refreshing:ye,error:Ze}=fu({address:Q,destinationToken:h,supportedSourceAssets:H,sourceChains:P,additionalSourceTokens:[...e.additionalSourceTokens??[],...N?.asset._source==="wallet"?[{address:N.asset.address,chainId:N.asset.chainId,decimals:N.asset.decimals,symbol:N.asset.symbol,name:N.asset.name,logoURI:N.asset.logoURI}]:[]],includeExternalWalletAssets:e.includeExternalWalletAssets,includeCrossChainEmbeddedAssets:e.includeCrossChainEmbeddedAssets,enabled:A&&(!!e.quoteOnlyAccount||(k!=="7702"?!!K:!!ie))}),ke=e.quoteOnlyAccount??tt,He=[...Ce,...Ie].filter(W=>!y||W.location!=="external"&&J(W.owner,ie)),gt=JSON.stringify(He,(W,U)=>typeof U=="bigint"?U.toString():U),Xe=we(()=>He,[gt]),ot=JSON.stringify([C,ie,T,Xe.map(W=>[be(W),W.balance.toString(),W.decimals,W.receiptTokenDecimals,W.balanceStatus,W.balanceError,W.chainTokens])]),[Qe,fe]=L(null),Oe=re(W=>C?xs(W,Xe,ie??void 0,T):void 0,[C,Xe,ie,T]);pe(()=>{if(!C||!A||!ie)return;let W=!1;fe(null);const U=new Map;for(const se of Xe){const me=Oe(se);if(me)U.set(be(me.escrow),me);else if(se.location==="rollup"&&se.owner?.toLowerCase()===ie.toLowerCase()&&se.chainId===T&&!se.balanceError&&se.balanceStatus!=="stale"){const le=Object.entries(se.chainTokens??{}).filter(([Ne])=>Ne.toLowerCase().startsWith(`evm:${T}:`));le.length===1&&le[0][1].decimals!==void 0&&U.set(be(se),{owner:se.owner,chainId:T,token:le[0][0].split(":")[2],decimals:le[0][1].decimals,escrow:se})}}return Promise.allSettled([...U].map(async([se,me])=>{const le=await Ko(me.owner,me.chainId,me.token);if(!le.entries.some(Ne=>Ne.receiptToken===me.escrow.receiptTokenId&&Ne.decimals===me.escrow.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");return[se,un(le.available,me.decimals,me.escrow.decimals,"floor")]})).then(se=>{const me=se.flatMap(le=>le.status==="fulfilled"?[le.value]:[]);W||fe({scope:ot,balances:Object.fromEntries(me)})}),()=>{W=!0}},[C,A,ie,ot,Oe]);const dt=re(W=>!C||W.owner?.toLowerCase()!==ie?.toLowerCase()||W.chainId!==T?!1:Xe.some(U=>U.owner?.toLowerCase()===W.owner?.toLowerCase()&&U.chainId===T&&(W.location==="embedded"&&U.location==="rollup"&&Object.keys(U.chainTokens??{}).some(se=>se.toLowerCase()===`evm:${T}:${W.address.toLowerCase()}`)||W.location==="rollup"&&U.location==="embedded"&&Object.keys(W.chainTokens??{}).some(se=>se.toLowerCase()===`evm:${T}:${U.address.toLowerCase()}`))),[C,ie,T,Xe]),Ye=re((W,U)=>{const se=Xe.find(Ne=>be(Ne)===be(W));if(!se)return;const me=Oe(se);if(!me||Qe?.scope!==ot)return;const le=Qe.balances[be(me.escrow)];if(le!==void 0)return xs(se,Xe,ie??void 0,T,le,U)},[Oe,Qe,ot,Xe,ie,T]),Se=re(W=>{if(!C)return W.balance;const U=Xe.find(se=>be(se)===be(W));if(!(!U||U.balanceError||U.balanceStatus==="stale")&&!(C&&U.location!=="external"&&U.owner?.toLowerCase()!==ie?.toLowerCase()))return dt(U)?Ye(U)?.availableBalance:C&&U.location==="rollup"?Qe?.scope===ot?Qe.balances[be(U)]:void 0:U.balance},[Xe,dt,Ye,C,Qe,ot,ie]),Je=we(()=>{if(!C)return ze;const W=new Set;return ze.filter(U=>{const se=Oe(U);if(!se)return!0;const me=be(se.escrow);return W.has(me)?!1:(W.add(me),!0)})},[ze,C,Oe]),It=JSON.stringify(e.fundingSources?.positionIds??[]),Ke=we(()=>{if(!y||!S.token||!ie)return[];const W=new Set(JSON.parse(It));return Xe.filter(U=>W.has(be(U))&&Is(U,ie,b)&&(U.location==="rollup"||P.includes(U.chainId))&&Io(U,"spend-source",{...B,isWhitelistGateActive:I},b,H).eligible)},[y,S.token,ie,It,Xe,b,P,B,H]),Rt=we(()=>Ke.flatMap(W=>{const U=W.location==="rollup"?Qe?.scope===ot?Qe.balances[be(W)]:void 0:W.balance;return U===void 0||U<=0n||U>W.balance?[]:[{asset:W,availableAmount:U,reservedAmount:W.balance-U}]}),[Ke,Qe,ot]),lt=JSON.stringify(Rt,(W,U)=>typeof U=="bigint"?U.toString():U),ut=x||e.feeFunding?.length!==0&&O&&!!N&&!!Ye(N.asset),pt=we(()=>e.feeOnlyAction||ut?ze.filter(W=>W.balance>0n&&W.location!=="external"&&(W._source==="spice"||W._source==="wallet"&&W.chainId===T)).flatMap(W=>{if(!C||W.location!=="rollup")return[W];const U=Qe?.scope===ot?Qe.balances[be(W)]:void 0;return U===void 0?[]:[{...W,balance:U}]}):[],[ze,e.feeOnlyAction,ut,T,C,Qe,ot]),Et=!!e.feeOnlyAction||ut,_t=Et&&Pe,Ct=Et?pt.map(W=>`${be(W)}:${W.balance}`).sort().join(","):"",at=N?[...Ce,...Ie].find(W=>be(W)===be(N.asset)):void 0,Wt=we(()=>N&&at?{...N,asset:at}:N,[N,at]),Ut=N?Io(at??N.asset,"spend-source",{allowedTokens:B?.allowedTokens,rpcOverrides:B?.rpcOverrides,liquidityVenues:B?.liquidityVenues,isWhitelistGateActive:I},h,H):null,$=N&&at?Ye(at):void 0,Lt=C?N&&at?Se(at):void 0:N?.asset.balance,$e=C&&N&&(dt(N.asset)||N.asset.location==="rollup")?Lt??0n:at?at.balance<(N?.asset.balance??0n)?at.balance:N.asset.balance:0n,[wt,In]=L(!1),[pn,Ue]=L(!1),Pt=j(!1),qt=j(!1),jt=j(!0);Bo(()=>(jt.current=!0,()=>{jt.current=!1,ao.current.accepted&&ue.current?.abort()}),[]);const[Bt,Rn]=L(null),[So,Zn]=L(null),fn=j(0),ao=j({accepted:!1}),Qn=j(m);Qn.current=m;const mn=re(W=>{Rn(W),typeof W=="string"&&W&&Qn.current?.(new Error(W),os(W))},[]),[St,en]=L("idle"),[Xn,Dt]=L(""),[Zt,_e]=L(null),[zt,Un]=L(!1),[ln,Bn]=L(null),[Ln,Dn]=L(null),[On,hn]=L(!1),[qn,et]=L(!1),Jn=j(null),[$n,Mn]=L(null),Xo=j(N),bo=j(!1),ue=j(null),de=j(null),rt=ke||he||Q,Ot=qe.getBaseUrl(),We=`${Ot}:${rt?.toLowerCase()??""}`,Xt=j(We);Xt.current=We;const[Gt,rn]=L({scope:We,checking:!1,supported:null,pending:!1,error:null}),cn=j(0),sn=j(null),gn=j(0),wn=j({scope:We,supported:null,terminal:new Map}),Nn=j(null),kt=j(null),Sn=j(null),yn=j(null),Ao=j(null),mt=j(w),Jt=j(null),Jo=j(!1),[vr,kr]=L(null),[Po,Cr]=L(null),[Wo,Qr]=L(!1),[Wa,te]=L(0),Ae=ln?.status==="success"?ln.txHash:St==="success"?Zt:null,yt=!!Ae&&vr!==Ae,Ve=j(yt);Ve.current=yt;const je=re(async(W,U=!1)=>{if(sn.current?.scope===We&&sn.current.version===gn.current&&!U)return!1;const se=de.current?.scope===We?de.current.progress:void 0;if(z&&!se?.actionId&&se?.submissionStatus!=="unknown"||!rt)return!0;const me=++cn.current,le=()=>jt.current&&Xt.current===We&&cn.current===me,Ne=new $r;Ne.setBaseUrl(Ot),rn(Ee=>({...Ee.scope===We?Ee:{supported:null,pending:!1},scope:We,checking:!0,error:null}));try{wn.current.scope!==We&&(wn.current={scope:We,supported:null,terminal:new Map});const Ee=wn.current,st=W&&Ee.supported!==null?Ee.supported:await Ne.supportsAutomaticContinuation();if(!le())return!1;Ee.supported=st;const nn=de.current?.scope===We?de.current:null;let bt=nn?.progress;if(bt?.submissionStatus==="unknown"&&!bt.actionId){const Ft=bt.idempotencyKey;if(!Ft)throw new Error("The original submission identity is unavailable.");const xn=await Ne.getActionBySubmission(rt,Ft);if(!le())return!1;if(!xn)return rn({scope:We,supported:st,checking:!1,pending:!0,error:null}),!1;const[Pn,vn="0"]=xn.intentIds[0].split("/");bt={...bt,actionId:Pn,intentId:xn.intentIds[0],intentIndex:Number(vn),autoContinue:xn.autoContinue===!0,submissionStatus:void 0},nn&&(nn.progress=bt)}const Lo=st?W??await Ne.getWalletActions(rt,{pendingOnly:!0}):[];if(!le())return!1;let oo=!1,co,er=0;const Eo=new Set([...bt?.actionId?[bt.actionId]:[],...Lo.map(Ft=>Ft.actionId)]);for(const Ft of Ee.terminal.keys())Eo.has(Ft)||Ee.terminal.delete(Ft);for(const Ft of Eo){const xn=Lo.find(An=>An.actionId===Ft);if(xn&&xn.intents.length!==1){oo=!0,co??(co=xn);break}const Pn=bt?.actionId===Ft,vn=Pn?bt.intentIndex??0:0,Nt=`${Ft}/${vn}`;let Fn=Ee.terminal.get(Ft)??"unresolved";if(st&&Fn==="unresolved"){if(er===4){oo=!0,co??(co=xn);break}er++,Fn=await Ne.getIntentRecoveryStatus(Ft,vn)}else!st&&Pn&&bt?.totalSteps&&(await Promise.all(Array.from({length:bt.totalSteps},(An,ct)=>Ne.checkStepStatus(Nt,ct,!0)))).every(An=>An.data.status==="success")&&(Fn="completed");if(!le())return!1;if(Fn==="unresolved"){oo=!0,co??(co=xn);break}if(Ee.terminal.set(Ft,Fn),Ee.terminal.size>100&&Ee.terminal.delete(Ee.terminal.keys().next().value),!(!Pn||!nn)){if(Fn==="completed"&&bt?.step!=="success"&&Pt.current){oo=!0;break}if(Fn==="completed"&&bt?.step!=="success"&&!Pt.current){if(nn.routedExternal)throw new Error("Funds were delivered, but the wallet action is not confirmed. Check wallet activity before trying again.");const An=nn.batches;let ct=bt?.destinationStepIndex,vo=bt?.destinationChainId;if(ct===void 0||vo===void 0){if(bt?.totalSteps!==An?.length)throw new Error("The original destination is unavailable. Check this action's status before continuing.");for(ct=(An?.length??0)-1;ct>=0&&Ro(An[ct].chainId);)ct--;vo=An?.[ct]?.chainId}if(!Number.isSafeInteger(ct)||ct<0||ct>=(bt?.totalSteps??0)||!Number.isSafeInteger(vo)||!vo||Ro(vo))throw new Error("The original destination is unavailable. Check this action's status before continuing.");const qo=await Ne.checkStepStatus(Nt,ct,!0);if(!le())return!1;const Qa=await id(At(vo),qo.data.transactionHash);if(!le())return!1;bt={...bt,step:"success",message:"Transaction confirmed",txHash:Qa,submissionStatus:void 0},nn.progress=bt,_e(Qa),en("success"),Rn(null),Dt("Transaction confirmed"),Bn(cp=>cp&&{status:"success",txHash:Qa})}else Fn==="cancelled"&&(nn.progress=void 0)}}return rn({scope:We,supported:st,checking:!1,pending:oo,error:null,action:co}),!oo}catch(Ee){return le()&&rn(st=>({...st,scope:We,supported:wn.current.scope===We?wn.current.supported:null,checking:!1,pending:!0,error:Wn(Ee,"The original action status is unavailable. Check again before submitting.")})),!1}},[z,rt,We,Ot]),it=de.current?.scope===We?de.current.progress:void 0,_n=!!rt&&(!z||it?.submissionStatus==="unknown"||!!it?.actionId&&it.step!=="success"),io=Gt.scope===We,lo=_n&&io&&Gt.pending,bn=ca(rt,_n&&io&&Gt.supported===!0&&(A||lo),{pendingOnly:!0}),Ir=j({scope:We,...bn});Ir.current={scope:We,...bn};const Ts=j(null),Ua=re(async()=>{await je(),bn.error&&bn.refresh()},[je,bn.refresh,bn.error]),Vr=_n&&(io?Gt.checking||Gt.supported===null&&!Gt.error||bn.loading:!0),jr=_n&&io?Gt.error??bn.error:null,Ku=!_n||io&&!Vr&&!lo&&!jr;pe(()=>{if(!(!A&&!it?.actionId&&it?.submissionStatus!=="unknown"))return je(),()=>{cn.current++,sn.current?.scope===We&&(sn.current=null)}},[We,A,je]),pe(()=>{if(!bn.updatedAt||bn.loading||bn.error||sn.current?.scope===We&&sn.current.version===gn.current)return;const W=Ts.current;W?.scope===We&&W.revision===bn.revision||(Ts.current={scope:We,revision:bn.revision},je(bn.actions))},[bn.revision,bn.loading,bn.error,pn,We,je]),pe(()=>{Xo.current=N},[N]);const Ht=z?K:ke||he||Q,eo=A&&!wt&&St==="idle"&&!Z&&!D&&!!Ht&&!z&&!O&&v&&l==="user-transfer"&&!e.feeOnlyAction&&!e.actionInput&&!e.actionProceeds&&!!N&&Number(N.amount||"0")===0&&!!Ut?.eligible&&$e>0n,Gr=we(()=>{if(!eo||!N)return N;const W=10n**BigInt(N.asset.decimals);return{...N,amount:Re($e<W?$e:W,N.asset.decimals)}},[eo,N,$e]),Bs=wu({enabled:A&&!D&&!z&&!y,direction:F,selectedAsset:Gr,destinationToken:h,chainId:T,recipient:Ht,paymentAmount:r,resolveExactOutputSwap:d,resolveInputSwap:e.resolveInputSwap,maxSlippage:e.maxSlippage}),Sr=z?{...Bs,quoteKey:"direct-external",quoteExpiresAt:null,quoteAmountOut:null,inputAmount:null,inputDecimals:N?.asset.decimals??null,isQuoting:!1,quoteError:null,isDirect:!0,needsSwap:!1,selectedIsEquivalent:!0,resolvedTokenIn:h.address,resolvedSwap:null,exactOutputSwap:null,sourceSwap:null,sourceExactOutputSwap:null,pivot:null,estimatedInput:O?r:N?.amount??null,estimatedOutput:O?r:N?.amount??null}:Bs,Mt=Sr,{isQuoting:gl,resolvedSwap:Os,exactOutputSwap:Rs,quoteAmountOut:wl,resolvedTokenIn:to,isDirect:yl,needsSwap:Uo,selectedIsEquivalent:Yu,sourceSwap:Ds,sourceExactOutputSwap:Ms,pivot:Qt}=Sr,xo=O||y?parseFloat(r||"0"):parseFloat(N?.amount||"")||0,Zu=N?.asset?._source==="wallet",Xu=!!N?.asset&&Zu&&N.asset.chainId!==T,Ju=N?Number(Re($e,N.asset.decimals)):0,$u=we(()=>{if(!N||O)return!1;try{return Tn(N.amount||"0",N.asset.decimals)>$e}catch{return!0}},[N,O,$e]);pe(()=>{if(!A){fn.current++,Zn(null),ge?.(),mn(null),In(!1);const W=it?.submissionStatus==="unknown"||!!it?.actionId&&it.step!=="success";!yt&&!lo&&!W&&(en("idle"),Dt(""),_e(null),Un(!1),Bn(null),de.current?.scope===We&&(de.current.progress=void 0)),Dn(null),hn(!1),et(!1),Mn(null),bo.current=!1,ue.current&&!lo&&!W&&(ue.current.abort(),ue.current=null)}},[A,yt,lo,We]);const bl=re(W=>{if(!jt.current||Xt.current!==We||W.user&&!J(W.user,rt))return;const U=de.current;U?.scope===We&&(W.actionId||W.submissionStatus==="unknown")&&((!U.progress?.actionId&&W.actionId||!U.progress?.submissionStatus&&W.submissionStatus==="unknown")&&cn.current++,U.progress={...U.progress,...W},rn(se=>({...se,scope:We,checking:!1,pending:W.step!=="success",error:null}))),en({building:"building","signing-delegation":"signing-delegation","signing-intent":"signing-intent",submitting:"submitting",executing:"executing",success:"success",error:"error"}[W.step]||"executing"),Dt(W.message),W.txHash&&_e(W.txHash)},[We,rt]),ar=we(()=>({currentPaymentAmount:r,isFeeInclusiveInput:v,feeOnlyAction:e.feeOnlyAction,swapInputAmount:Sr.inputAmount,destinationToken:h,embeddedWalletAddress:ke,providerEmbeddedAddress:he,externalWalletAddress:K,address:Q,recipient:e.recipient??(k!=="7702"?K:void 0),isNon7702:E,isPayMode:O,resolvedChainId:T,buildActionCalls:ae,feeExecutionMode:l,buildSpicenetBatch:c,selectedAsset:N,combinedSourceGroup:$,needsSwap:Uo,resolvedSwap:Os,exactOutputSwap:Rs,quoteAmountOut:wl,resolvedTokenIn:to,sourceSwap:Ds,sourceExactOutputSwap:Ms,pivot:Qt,resolveSourceExactOutputSwap:async W=>{if(!Qt||!Ht)throw new Error("Swap route is not ready.");const U=await gu({chainId:Qt.source.chainId,recipient:Ht,tokenIn:N.asset.address,tokenOut:Qt.source.address,amountOut:W,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}).catch(()=>null);if(!U)throw new Error("No liquidity for this pair.");return U},resolveInputSwap:async(W,U)=>{if(!to||!Ht)throw new Error("Swap route is not ready.");return Ss({chainId:T,recipient:Ht,tokenIn:to,tokenOut:h.address,amountIn:W,selectedSwap:U,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap})}}),[r,$,h,ke,he,K,Q,e.recipient,e.feeOnlyAction,e.maxSlippage,e.resolveInputSwap,Sr.inputAmount,v,k,E,O,T,ae,l,c,N,$,Uo,Os,Rs,wl,to,Ds,Ms,Qt,Ht,B?.liquidityVenues]),Kr=we(()=>y?b.address:N?.asset?Qt?Qt.destination.address:Uo&&to?to:N.asset.chainId===T?N.asset.address:to??so(N.asset,T)??h.address:h.address,[y,b,N,h.address,Uo,T,to,Qt]),no=JSON.stringify([y&&[b,It],N&&be(N.asset),p,e.quoteOnlyAccount,e.actionExecution?.wallet,h.address,h.chainId,h.decimals,e.recipient,k,y?void 0:K,z?K:ke,B?.apiUrl,B?.rpcOverrides,e.maxSlippage,l,M,e.feeOnlyAction,e.quotedInclusivePlatformFee,C,e.actionProceeds==="output"?"output":e.actionProceeds?.token,e.feeFunding,e.actionInput?.map(W=>[W.token,W.amount.toString()]),e.feeFundingReserve&&be(e.feeFundingReserve.asset),e.feeFundingReserve?.amount.toString(),B?.liquidityVenues,B?.allowedTokens,I,H,P,e.actionInput,e.actionProceeds,e.feeFunding,T,Kr,Mt.pivot?.source.address,Mt.pivot?.destination.address],(W,U)=>typeof U=="bigint"?U.toString():U),xl=j(null);xl.current=A&&!wt&&!Z&&!D?no:null,pe(()=>()=>{yn.current?.controller.abort(),yn.current=null},[no,A,wt,Z,D]);const Vn=ur(Vp(JSON.stringify([no,N?.amount,r]))),$o=JSON.stringify([Q,ie,he,y?void 0:K,y?ie:_,ne,X,G,V]),La=JSON.stringify([$o,B?.apiUrl,B?.network]),Ns=So===La;pe(()=>()=>{fn.current++,ao.current.accepted&&(ue.current?.abort(),Pt.current=!1,jt.current&&(Ue(!1),In(!1),en("idle"),Dt(""),_e(null),Rn(null),Un(!1),Bn(null))),ge?.()},[La]);const vt=j({key:Vn,enabled:A,sourceBalance:$e,physicalAssets:Xe,combinedCash:Qe,combinationScope:ot,sourceEligible:Ut?.eligible,externalSignerReady:!!xe&&!!K,owner:Ht,walletScope:$o,policyAvailable:!Z&&!D});(vt.current.key!==Vn||vt.current.enabled!==A||vt.current.owner!==Ht||vt.current.walletScope!==$o||vt.current.policyAvailable!==(!Z&&!D))&&gn.current++,vt.current={key:Vn,enabled:A,sourceBalance:$e,physicalAssets:Xe,combinedCash:Qe,combinationScope:ot,sourceEligible:Ut?.eligible,externalSignerReady:!!xe&&!!K,owner:Ht,walletScope:$o,policyAvailable:!Z&&!D};const Ps=j(!1),vl=j(e.onSubmit);vl.current=e.onSubmit;const kl=j(e.beforeSubmit);kl.current=e.beforeSubmit;const Ws=re(async W=>{if(!Ps.current||Pt.current)return;Pt.current=!0,Ps.current=!1;const U=Ao.current,se=vt.current,me=gn.current,le=fn.current,Ne={accepted:!1};ao.current=Ne;const Ee=()=>!Ne.accepted||jt.current&&le===fn.current&&vt.current.enabled&&vt.current.walletScope===se.walletScope,st=vn=>(...Nt)=>{Ee()&&vn(...Nt)},nn={...U,execution:{...U.execution,onProgress:st(U.execution.onProgress)},ui:{setError:st(U.ui.setError),setStep:st(U.ui.setStep),setStatusMsg:st(U.ui.setStatusMsg),setTxHash:st(U.ui.setTxHash),setIsExecuting:st(U.ui.setIsExecuting),setShowStatusPanel:st(U.ui.setShowStatusPanel),setPaymentResult:st(U.ui.setPaymentResult)}},bt=nn.feeQuote,Lo=bt?.fundingSource,oo=JSON.stringify(Lo,(vn,Nt)=>typeof Nt=="bigint"?Nt.toString():Nt),co=JSON.stringify([bt?.sourceAllocation,bt?.feeSourceAllocation,bt?.fundingPlan],(vn,Nt)=>typeof Nt=="bigint"?Nt.toString():Nt),er=vl.current,Eo=Qn.current,Ft={operationKey:se.key,feeQuote:bt,selectedAsset:nn.selectedAsset};Ue(!0),Rn(null);const xn=Ir.current.revision;Ts.current={scope:We,revision:xn};const Pn={scope:We,version:me};sn.current=Pn;try{try{const vn="The original action status is pending or unavailable. Check its status before submitting.";if(!await je(void 0,!0))throw new Error(vn);await kl.current?.(Ft);const Nt=Ir.current;if(Nt.scope!==We||Nt.loading||Nt.error)throw new Error(Nt.error??vn);if(Nt.revision!==xn&&Nt.updatedAt&&(Ts.current={scope:We,revision:Nt.revision},!await je(Nt.actions,!0)))throw new Error(vn);const Fn=Ir.current;if(Fn.scope!==We||Fn.loading||Fn.error||Fn.revision!==xn&&Fn.actions.some(vo=>vo.intents.length!==1||wn.current.scope!==We||!wn.current.terminal.has(vo.actionId)))throw new Error(Fn.error??vn);const An=vt.current,ct=Ao.current;if(!jt.current||me!==gn.current||!An.enabled||An.key!==se.key||An.owner!==se.owner||!qt.current||ct?.feeQuote!==bt||bt?.fundingSource!==Lo||JSON.stringify(bt?.fundingSource,(vo,qo)=>typeof qo=="bigint"?qo.toString():qo)!==oo||JSON.stringify([bt?.sourceAllocation,bt?.feeSourceAllocation,bt?.fundingPlan],(vo,qo)=>typeof qo=="bigint"?qo.toString():qo)!==co)throw new Error("The wallet, policy or accepted action quote changed. Review again before submitting.");nn.validateFeeQuote?.(),er?.(),mt.current=nn.onSuccess,de.current={key:se.key,quote:bt,scope:We,routedExternal:ee}}catch(vn){const Nt=Wn(vn,"Unable to prepare this action");jt.current&&(Rn(Nt),en("idle")),Eo?.(new Error(Nt),os(Nt));return}finally{sn.current===Pn&&(sn.current=null)}await(W?tu(nn):eu(nn))}finally{ao.current===Ne&&(Pt.current=!1,jt.current&&Ue(!1))}},[je,We,ee]),Cl=re(()=>Ws(!1),[Ws]),Us=z,qa=D,Il=!kt.current?.quote.fundedFeeToken&&(v||!!Qt)&&!!Ln&&Ln.netAmount===0n,Yr=we(()=>!!e.feeOnlyAction||y&&xo>0||(!!N?.asset||!!e.actionProceeds)&&xo>0,[N,xo,e.actionProceeds,e.feeOnlyAction,y]),_o=we(()=>!A||!Yr||!N?.asset&&!e.actionProceeds&&!e.feeOnlyAction&&!y?null:[Vn,Ct,y?lt:"",C?`${ot}:${Qe?.scope===ot?JSON.stringify(Qe.balances,(W,U)=>typeof U=="bigint"?U.toString():U):"pending"}`:"",O?"pay":"supply",p,N?be(N.asset):"sdk-funded",e.actionInput?.map(W=>`${W.token.toLowerCase()}:${W.amount}`).join(",")??"",e.feeFunding?.join(",")??"",e.quoteOnlyAccount??"executable",e.quotedInclusivePlatformFee?"quoted-inclusive-fee":"split-inclusive-fee",JSON.stringify(B?.rpcOverrides),B?.apiUrl,e.recipient,N?.asset.address.toLowerCase(),N?.asset.chainId,N?.amount,r,h.address.toLowerCase(),h.chainId,T,Mt.resolvedTokenIn?.toLowerCase()??"",Mt.quoteKey,Mt.needsSwap?"swap":"direct",Mt.isDirect?"direct-token":"routed-token","7702",Te?"source-dest":"cross-chain",Mt.isQuoting?"quoting":"quoted",Mt.exactOutputSwap?.amountIn?.toString()??"",Mt.exactOutputSwap?.amountInMax?.toString()??"",Mt.exactOutputSwap?.venue??"",Mt.resolvedSwap?.amountOut?.toString()??"",Mt.quoteAmountOut?.toString()??"",Mt.sourceSwap?.amountOutMinimum?.toString()??"",Mt.sourceExactOutputSwap?.amountInMax?.toString()??"",Mt.pivot?.source.address.toLowerCase()??"",ke??"",he??"",Q??""].join("|"),[A,C,ot,Qe,Vn,y,lt,Ct,e.actionProceeds,e.feeOnlyAction,e.actionInput,e.feeFunding,e.quotedInclusivePlatformFee,e.quoteOnlyAccount,wt,St,Yr,Us,N,O,p,r,h,T,Mt,E,Te,ke,he,Q]),Sl=(W,U)=>{const se=U.filter(me=>me.location==="rollup"&&Is(me,Ht,b));for(const me of W){if(me.location!=="embedded")continue;const le=fr(me.chainId);for(const Ne of se){const Ee=Object.entries(Ne.chainTokens??{}).filter(([st])=>Yn(st)?.chainId===me.chainId);if(Ee.length&&(Ee.length!==1||!J(Yn(Ee[0][0])?.address,le?.address)||Ee[0][1].decimals!==void 0&&Ee[0][1].decimals!==le?.decimals))throw new Error("The source funding receipt mapping changed. Refresh before submitting.")}}},Ls=re(async(W,U)=>{if(!y||!S.token||!Ht||Z)throw new Error(Z??"The account funding route is not ready.");if(Ke.some(se=>se.location==="rollup"&&(Qe?.scope!==ot||Qe.balances[be(se)]===void 0)))throw new Error("The cash reservations are unavailable. Refresh before submitting.");return Sl(Rt.map(se=>se.asset),Xe),lu({owner:Ht,token:b,budget:W,sources:Rt,destinationToken:h,beneficiary:e.recipient,buildActionCalls:ae,requestTimestampMs:Date.now(),signal:U,resolveSourceInput:(se,me,le)=>Ss({chainId:se.chainId,recipient:Ht,tokenIn:ht(se.address),tokenOut:me.address,amountIn:le,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveSourceOutput:(se,me,le)=>gu({chainId:se.chainId,recipient:Ht,tokenIn:ht(se.address),tokenOut:me.address,amountOut:le,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage}),resolveDestinationInput:se=>Ss({chainId:b.chainId,recipient:Ht,tokenIn:b.address,tokenOut:h.address,amountIn:se,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveInputSwap:e.resolveInputSwap}),estimate:Y})},[y,S.token,Ht,Z,b,Rt,Ke,Xe,Qe,ot,h,e.recipient,ae,B?.liquidityVenues,e.maxSlippage,e.resolveInputSwap,Y]),_u=we(()=>{if(!y||!S.token||Pe||Ze)return;const W=new Set(JSON.parse(It));if(Xe.some(se=>W.has(be(se))&&(se.balanceStatus==="stale"||!!se.balanceError)))return;let U=0;for(const se of Ke){const me=se.location==="rollup"?Qe?.scope===ot?Qe.balances[be(se)]:void 0:se.balance;if(me===void 0)return;if(me===0n)continue;const le=Number(Re(se.balance,se.decimals)),Ne=Number(Re(me,se.decimals));if(se.priceStatus!=="fresh"||!Number.isFinite(se.balanceUsd)||se.balanceUsd<=0||!Number.isFinite(le)||le<=0)return;U+=se.balanceUsd*Ne/le}if(!(!Number.isFinite(U)||U<0||U>=1e15))return Tn(U.toFixed(b.decimals),b.decimals)},[y,S.token,Pe,Ze,It,Xe,Ke,Qe,ot,b.decimals]),ep=re(async()=>{if(!y||!A||D||Z)return null;const W=vt.current;try{const U=await Ls("max");return!jt.current||!vt.current.enabled||vt.current.key!==W.key||vt.current.owner!==W.owner?null:U.fundingPlan?Re(U.fundingPlan.totalBudget,b.decimals):null}catch{return null}},[y,A,D,Z,Ls,b.decimals]),Zr=re(async(W,U,se)=>{if(y)return Ls(Tn(r,b.decimals),W);if(z){if(!K||!N)throw new Error("Connect the external wallet before continuing.");return $m({selectedAsset:U?.selectedAsset??N,destinationToken:h,paymentAmount:O?r:void 0,account:K,beneficiary:e.recipient,buildActionCalls:ae,feeExecutionMode:l})}const me={...se??{...ar,selectedAsset:Gr},requestTimestampMs:Date.now()};if(C&&N&&dt(N.asset)&&!$)throw new Error("The combined source balance and reservations are unavailable. Refresh before submitting.");const le={combineSourceBalances:C,combinedSourceGroup:$,getCombinedSourceGroup:Ye,signal:W,feeToleranceBps:M,externalGasRecipient:ee?K:void 0,externalGasCalls:ee?async Ee=>(await nu({quote:Ee,recipient:K,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:l,buildCalls:i})).calls:void 0,feeOnlyAction:e.feeOnlyAction,actionInput:e.actionInput,actionProceeds:e.actionProceeds==="output"?void 0:e.actionProceeds,feeFunding:e.feeFunding,feeFundingBalances:pt,feeFundingReserve:e.feeFundingReserve,liquidityVenues:B?.liquidityVenues,maxSlippage:e.maxSlippage,resolveExactOutputSwap:d,selectedAsset:Gr,isPayMode:O,isFeeInclusiveInput:v,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,parsedAmount:eo?Number(Gr.amount):xo,needsSwap:Mt.needsSwap,exactOutputSwap:Mt.exactOutputSwap,isNon7702:E,isSourceDestToken:Te,currentPaymentAmount:r,destinationToken:h,feeExecutionMode:l,resolvedTokenIn:Mt.resolvedTokenIn,embeddedWalletAddress:ke,providerEmbeddedAddress:he,resolvedChainId:T,isConnected:G,address:Q,ready:ne,authenticated:X,quoteOnly:!!e.quoteOnlyAccount,isDirect:Mt.isDirect,resolvedSwap:Mt.resolvedSwap,sourceSwap:Mt.sourceSwap,sourceExactOutputSwap:Mt.sourceExactOutputSwap,pivot:Mt.pivot,isQuoting:Mt.isQuoting,executionTokenAddress:Kr,buildPayChainBatches:Ee=>qr(me,Ee),buildSupplyChainBatches:Ee=>ba(me,Ee),estimate:Y,...U},Ne=!le.feeOnlyAction&&le.selectedAsset&&ut&&(le.selectedAsset.asset._source==="wallet"||!!le.combinedSourceGroup)&&le.selectedAsset.asset.chainId===T;if(ut&&!le.feeOnlyAction&&le.selectedAsset&&!Ne&&e.feeFunding&&e.feeFunding.join(",")!==xa.join(","))throw new Error("Fee-source overrides require a wallet source on the action chain.");return Ne||ut&&e.actionProceeds==="output"?qd(le,me,Yo,e.actionProceeds==="output"):Yo(le)},[y,Ls,b.decimals,N,e.quoteOnlyAccount,ut,C,$,Ye,dt,Gr,eo,z,ee,i,K,e.recipient,ae,e.feeOnlyAction,e.actionInput,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,pt,e.feeFundingReserve,e.maxSlippage,d,M,B?.liquidityVenues,O,v,xo,Mt,E,Te,r,h,l,ke,he,ar,Y,T,G,Q,ne,X,Kr]);pe(()=>{Nn.current=Zr},[Zr]);const za=re(async W=>{if(O)return null;if(!N||be(W)!==be(N.asset)||!Ht||!to)throw new Error("Select a source before calculating Max.");let U=Se(W);if(U===void 0)throw new Error("This source is unavailable.");if(z){if(!W.isNative&&!Fe(W.address))return Re(U,W.decimals);const se=At(W.chainId),me=K;let le=U;for(let Ne=0;Ne<8;Ne++){const Ee=await Zr(void 0,{selectedAsset:{asset:W,amount:Re(Ne===0?1n:le,W.decimals)}});if(!Ee?.actionDefinition)throw new Error("The direct action could not be sized.");const st=await au({client:se,account:me,calls:Ee.actionDefinition.calls}),nn=U>st?U-st:0n;if(nn===0n)return"0";if(Ne>0&&le<=nn)return Re(le,W.decimals);le=nn}throw new Error("Network gas could not be reserved for Max. Enter a smaller amount.")}if(q&&(W.isNative||Fe(W.address))){if(!K)throw new Error("Connect the source wallet before calculating Max.");const se=await cu({client:At(W.chainId),account:K,recipient:Ht,token:W.address,isNative:!0,amount:1n});U-=se}return ut&&v&&W._source==="wallet"&&W.chainId===T?Re(U>0n?U:0n,W.decimals):Gd({balance:U,decimals:W.decimals,planForAmount:async se=>{const me={...ar,requestTimestampMs:Date.now(),selectedAsset:{asset:W,amount:Re(se,W.decimals)}};let le=se;Qt?(me.sourceSwap=await Ss({chainId:W.chainId,recipient:Ht,tokenIn:W.address,tokenOut:Qt.source.address,amountIn:se,maxSlippage:e.maxSlippage,liquidityVenues:B?.liquidityVenues,resolveInputSwap:e.resolveInputSwap}),le=un(me.sourceSwap.amountOutMinimum,Qt.source.decimals,Qt.destination.decimals,"floor")):le=En(se,W.decimals,await Mo(W,to,T,h)),me.resolvedSwap=Uo?await me.resolveInputSwap(le):null,me.swapInputAmount=le,me.quoteAmountOut=me.resolvedSwap?.amountOut??le;const Ne=ut&&W._source==="wallet"&&W.chainId===T,Ee=await Zr(void 0,{selectedAsset:me.selectedAsset,...Ne?{isFeeInclusiveInput:!0}:{},parsedAmount:Number(me.selectedAsset.amount),sourceSwap:me.sourceSwap,resolvedSwap:me.resolvedSwap,isQuoting:!1,buildSupplyChainBatches:st=>ba(me,st)},me);return Ne&&Ee?.fundingSource?.kind==="input"&&!v?{...Ee,sourceSpendCap:se+(se-Ee.swapInputAmount)}:Ee}})},[N,ut,ar,O,z,Ht,to,T,h,q,K,Qt,Uo,Zr,Se,e.maxSlippage,e.resolveInputSwap,e.actionProceeds,e.feeFunding,e.quotedInclusivePlatformFee,v,B?.liquidityVenues]),tp=JSON.stringify([no,$o,gt,N?.asset,e.feeFundingReserve,e.actionExecution?.recoveryKey,Uo,to,Qt,A,Z,D],(W,U)=>typeof U=="bigint"?U.toString():U),Al=j(za);Bo(()=>{Al.current=za},[za]);const El=re(W=>Al.current(W),[tp,ae,c,d,e.resolveInputSwap,typeof e.actionProceeds=="object"?e.actionProceeds.resolve:void 0,Y]);Si({shouldRun:A&&!wt&&St==="idle"&&(Yr||eo)&&!Mt.isQuoting&&!_t&&(!!_o||eo),deps:[A,wt,St,Yr,Us,Mt.isQuoting,_o,_t,eo,no],onSkip:()=>{if(!A){Sn.current=null,hn(!1),et(!1),Mn(null),Dn(null);return}if(wt||St!=="idle"){hn(!1);return}if(!Yr){Dn(null),hn(!1),et(!1),Mn(null);return}Mt.isQuoting&&(hn(!1),et(!1))},onCleanup:()=>hn(!1),delayMs:Mt.needsSwap||Mt.pivot?0:100,backgroundIntervalMs:3e4,run:async({isBackground:W,isCurrent:U,signal:se})=>{if(eo){const le=Sn.current;if(le?.scope===no&&Date.now()-le.at<3e4||yn.current?.scope===no&&Date.now()-yn.current.at<3e4)return;yn.current?.controller.abort();const Ne=new AbortController,Ee=Nn.current?.(Ne.signal).then(st=>{Ne.signal.aborted||xl.current!==no||!st?.feeEstimate||(Sn.current={scope:no,at:Date.now(),feeEstimate:st.feeEstimate,sourceGasSkim:st.sourceGasSkim})}).catch(st=>{Ne.signal.aborted||console.debug("[SpiceSupply] fee prewarm unavailable:",st)})??Promise.resolve();yn.current={scope:no,at:Date.now(),controller:Ne,promise:Ee},await Ee;return}const me=_o;W||(Mn(null),hn(!0));try{if(yn.current?.scope===no&&await yn.current.promise,se.aborted||!U())return;const le=Sn.current,Ne=!O&&le?.scope===no&&Date.now()-le.at<3e4?le:void 0;let Ee;try{Ee=await Nn.current?.(se,Ne?{initialFeeEstimate:Ne.feeEstimate,initialSourceGasSkim:Ne.sourceGasSkim}:void 0)}catch(st){if(!Ne||se.aborted||!U())throw st;Ee=await Nn.current?.(se)}if(!U())return;if(Ee&&me){const st=ee?await nu({quote:Ee,recipient:K,beneficiary:e.recipient,chainId:h.chainId,token:h.address,feeExecutionMode:l,buildCalls:i}):void 0;if(st&&Ee.externalGasReserve?.nativeAmount&&(st.calls.length>Ee.externalGasReserve.currentTransactions||st.calls.reduce((nn,bt)=>nn+bt.value,0n)>Ee.externalGasReserve.currentValue))throw new Error("The external action gas requirement changed. Refresh the quote.");if(se.aborted||!U())return;kt.current={key:me,quote:Ee,externalAction:st},Ee.feeEstimate&&(Sn.current={scope:no,at:Date.now(),feeEstimate:Ee.feeEstimate,sourceGasSkim:Ee.sourceGasSkim}),Dn(Ee.preview),et(!0)}else kt.current=null,Dn(null),et(!1);Mn(null)}catch(le){if(!U())return;if(W&&kt.current?.key===me){console.warn("[SpiceSupply] fee refresh failed:",le);return}const Ne=Wn(le,"Unable to calculate fees for this action.");kt.current=null,Dn(le instanceof Ca?le.preview:null),et(!1),Jn.current=me,Mn(Ne)}finally{U()&&hn(!1)}}});const Fl=re(()=>Ws(!0),[Ws]);pe(()=>{if(!Ae||Jt.current===Ae)return;Jt.current=Ae;const W=mt.current;Jo.current=!0,Qr(!0),Cr(null),Promise.resolve().then(()=>W?.(Ae)).then(()=>{kr(Ae),De(),Me()}).catch(U=>{Cr(`Transaction confirmed; application update needs retry: ${Wn(U,"Unable to finalize the action")}`)}).finally(()=>{Jo.current=!1,Qr(!1)})},[Ae,Wa]);const Tl=yt&&!Po,np=re(()=>{!Ve.current||Jo.current||(Jt.current=null,te(W=>W+1))},[]),op=re(()=>{if(Ve.current)return;const W=de.current?.progress;W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"||(Un(!1),Bn(null),bo.current=!1,De(),Me())},[De,Me]),Ge=_o&&kt.current?.key===_o?kt.current.quote:null,Xr=Ge?kt.current?.externalAction:void 0,rp=gn.current,ir=(W=!0)=>{if(Z)throw new Error(Z);if(!jt.current||!vt.current.enabled||vt.current.key!==Vn||gn.current!==rp||vt.current.walletScope!==$o||!vt.current.policyAvailable)throw new Error("The source, amount, beneficiary or configuration changed. Review the form before continuing.");if(ee&&!vt.current.externalSignerReady)throw new Error("Connect the external wallet before funding.");if((N||e.feeOnlyAction||y)&&!Ge)throw new Error("A current action plan is required. Refresh the quote before submitting.");if(W&&Ge?.fundingPlan){const U=Ge.fundingPlan;if(Sl(U.sources.map(le=>le.asset),vt.current.physicalAssets),!J(U.owner,vt.current.owner)||!J(U.token.address,b.address)||U.token.chainId!==b.chainId||U.token.decimals!==b.decimals||U.totalBudget!==Tn(r,b.decimals))throw new Error("The accepted account funding plan changed. Review again.");for(const le of Ge.batches??[])if(!(le.domain!=="spicenet"&&!Ro(le.chainId)))for(const Ne of le.calls){const Ee=jn({abi:Zs,data:Ne.data});if(Ee.functionName!=="createWithdrawalRequest"||Ee.args[0].exp<=BigInt(Math.floor(Date.now()/1e3)))throw new Error("The accepted withdrawal expired. Refresh before funding this purchase.")}const se=new Set(JSON.parse(It)),me=new Set;for(const le of U.sources){const Ne=vt.current.physicalAssets.find(st=>be(st)===le.positionId),Ee=Ne?.location==="rollup"?vt.current.combinedCash?.scope===vt.current.combinationScope?vt.current.combinedCash.balances[le.positionId]:void 0:Ne?.balance;if(!Ne||me.has(le.positionId)||!se.has(le.positionId)||!Is(Ne,U.owner,U.token)||!Io(Ne,"spend-source",{...B,isWhitelistGateActive:I},b,H).eligible||Ne.chainId!==le.chainId||Ne.decimals!==le.decimals||!J(Ne.address,le.token)||!J(le.owner,U.owner)||le.sourceSpendCap<=0n||Ee===void 0||le.sourceSpendCap>Ee)throw new Error("A funding source balance, owner or policy changed. Review again.");me.add(le.positionId)}if(!me.size)throw new Error("The accepted funding sources are unavailable.")}if(W)for(const U of[Ge?.sourceAllocation,Ge?.feeSourceAllocation]){if(!U)continue;const se=U.positions.find(le=>le.asset.location==="rollup"),me=vt.current.combinedCash?.balances[se.positionId];if(me===void 0||vt.current.combinedCash?.scope!==vt.current.combinationScope)throw new Error("The combined source reservations are unavailable. Refresh before submitting.");ya(U,vt.current.physicalAssets,vt.current.owner??void 0,T,me)}if(z&&N?.asset.owner&&!J(N.asset.owner,K))throw new Error("Reconnect the external wallet that owns the selected asset.");if(W&&N&&(Ge?.sourceSpendCap??0n)>vt.current.sourceBalance)throw new Error("The source balance changed. Review the available amount before continuing.");if(W&&N&&!vt.current.sourceEligible)throw new Error(Ut?.reason??"This source is unavailable.");if(W)for(const U of[Ge?.sourceAllocation,Ge?.feeSourceAllocation])U&&ya(U,vt.current.physicalAssets,vt.current.owner??void 0,T)},Bl=async()=>{if(ir(),Ge?.fundingPlan){const U=Ge.fundingPlan;for(const se of U.sources){if(se.asset.location!=="rollup")continue;const me=await Ko(U.owner,U.token.chainId,U.token.address);if(ir(),!me.entries.some(le=>le.receiptToken===se.asset.receiptTokenId&&le.decimals===se.asset.receiptTokenDecimals)||un(me.available,U.token.decimals,se.decimals,"floor")<se.sourceSpendCap)throw new Error("The cash receipt balance or reservations changed. Review again.")}return}const W=Ge?.sourceAllocation;for(const U of[W,Ge?.feeSourceAllocation]){if(!U)continue;const se=await Ko(U.owner,U.chainId,U.token);ir();const me=await At(U.chainId).readContract({address:U.token,abi:ft,functionName:"balanceOf",args:[U.owner]});ir();const le=vt.current.physicalAssets.map(Ee=>Ee.location==="embedded"&&be(Ee)===U.positions.find(st=>st.asset.location==="embedded")?.positionId?{...Ee,balance:me}:Ee),Ne=U.positions.find(Ee=>Ee.asset.location==="rollup");if(!se.entries.some(Ee=>Ee.receiptToken===Ne.asset.receiptTokenId&&Ee.decimals===Ne.asset.receiptTokenDecimals))throw new Error("The cash receipt mapping changed. Refresh before submitting.");ya(U,le,U.owner,U.chainId,un(se.available,U.decimals,Ne.asset.decimals,"floor"))}if(!W){const U=N?.asset.location==="rollup"?N.asset:Ge?.fundingSource?.asset?.location==="rollup"?Ge.fundingSource.asset:void 0;if(!C||!U)return;const se=so(U,T);if(!se)throw new Error("The cash receipt mapping is unavailable. Refresh before submitting.");const me=await Ko(Ht,T,se),le=await Mo(U,se,T,h);ir();const Ne=Ge?.fundedFeeToken&&Ge.fundingSource?.asset?.location==="rollup"?un(Ge.grossFundingAmount??0n,Ge.fundedFeeToken.decimals,U.decimals,"ceil"):Ge?.sourceSpendCap??0n;if(!me.entries.some(Ee=>Ee.receiptToken===U.receiptTokenId&&Ee.decimals===U.receiptTokenDecimals)||un(me.available,le,U.decimals,"floor")<Ne)throw new Error("The cash balance or reservations changed. Refresh before submitting.");return}},Jr=async()=>Bl(),Ol=W=>({...W,sourceSpendCap:Ge?.sourceSpendCap,minimumDestinationAmount:Ge?.destinationAmount}),qs=Ge?.sourceAllocation?.insufficient||Ge?.feeSourceAllocation?.insufficient?!0:N&&Ge?.sourceSpendCap!==void 0?Ge.sourceSpendCap>$e:$u,Rl={...ar,resolvedSwap:Ge?.destinationSwap??ar.resolvedSwap,swapInputAmount:Ge?.swapInputAmount??ar.swapInputAmount};let Ar=!1;Ao.current={selectedAsset:N,parsedAmount:xo,currentPaymentAmount:r,isInsufficientBalance:qs,isPayMode:O,isFeeInclusiveInput:v,quotedInclusivePlatformFee:e.quotedInclusivePlatformFee,feeOnlyAction:e.feeOnlyAction,actionProceeds:e.actionProceeds==="output"?void 0:e.actionProceeds,validateFeeQuote:()=>ir(!Ar),isNon7702:E,directExternalAction:z,isSourceDestToken:Te,needsSwap:Uo,exactOutputSwap:Rs,selectedIsEquivalent:Yu,resolvedTokenIn:to,sourceSwap:Ds,sourceExactOutputSwap:Ms,pivot:Qt,embeddedWalletAddress:ke,providerEmbeddedAddress:he,externalWallet:xe,externalWalletAddress:K,activeSignerWallet:ve,activeSignerAddress:_,address:Q,isConnected:G,ready:ne,authenticated:X,provider:V,resolvedChainId:T,executionTokenAddress:Kr,destinationToken:h,buildActionCalls:ae,feeExecutionMode:l,feeToleranceBps:M,buildSpicenetBatch:c,onPayExecute:u,onSuccess:w,feeQuote:Ge,execution:{estimate:(W,U,se,me)=>Y(W,U,se,{...me,userOverride:Ht}),execute:async(W,U,se,me,le,Ne)=>{const Ee=fn.current,st=ao.current,nn=me;if(me=Ft=>{Ft.actionId&&(st.accepted=!0),nn?.(Ft)},!le){const Ft=new AbortController;ue.current=Ft,le=Ft.signal}const bt=le,Lo=()=>jt.current&&vt.current.enabled&&vt.current.walletScope===$o&&fn.current===Ee&&!bt.aborted,oo=()=>new Be("ABORT","Execution observation retired"),co=async Ft=>{if(st.accepted&&!Lo())throw oo();return new Promise((xn,Pn)=>{const vn=()=>{st.accepted&&Pn(oo())};bt.addEventListener("abort",vn,{once:!0}),Ft().then(Nt=>{!st.accepted||Lo()?xn(Nt):Pn(oo())},Pn).finally(()=>bt.removeEventListener("abort",vn))})},er=async()=>Ar?ir(!1):Bl();if(await Jr(),await Hd(Ge?.externalGasReserve),ee&&!Xr)throw new Error("The external action plan is unavailable.");if(z){if(!Ge?.actionDefinition)throw new Error("The direct action plan is unavailable.");return iu({definition:Ge.actionDefinition,account:K,chainId:h.chainId,wallet:xe,assertCurrent:Jr})}let Eo=!1;try{q&&N&&(Dt("Transfer the selected source to your embedded wallet"),await du({asset:N.asset,embedded:Ht,external:K,externalWallet:xe,amount:Ge?.sourceSpendCap??0n,assertCurrent:Jr,observer:{onSending:()=>{Eo=!0},onRejected:()=>{Eo=!1},onReverted:()=>{Eo=!1}}}),Ar=!0,await er()),de.current?.scope===We&&(de.current.batches=W.map(ct=>({...ct})));const Ft=[W,U,se,ee?ct=>me?.(ct.step==="success"?{...ct,step:"executing",message:"Funds delivered. Confirm the action in your external wallet.",txHash:void 0}:{...ct,txHash:void 0}):me,le,{...Ne,userOverride:Ht,requireDestinationReceipt:!0,resolveActionOutputCredits:async()=>[...await Ne?.resolveActionOutputCredits?.()??[],...Ge?.fundingPlan?.sources.flatMap(ct=>ct.asset.location==="embedded"&&ct.swap?[{chainId:ct.chainId,token:ct.pivotToken.address,amount:ct.amountOutMinimum}]:[])??[],...Ge?.externalGasReserve?.nativeAmount&&!Fe(Kr)?[{chainId:T,token:Kt,amount:Ge.externalGasReserve.nativeAmount}]:[]],walletFundingRequirements:Ge?.fundingPlan?.sources.filter(ct=>ct.asset.location==="embedded").map(ct=>({chainId:ct.chainId,token:ct.token,amount:ct.sourceSpendCap})),walletFundingRequirement:Ge?.sourceAllocation?{chainId:Ge.sourceAllocation.chainId,token:Ge.sourceAllocation.token,amount:Ge.sourceAllocation.positions.find(ct=>ct.asset.location==="embedded")?.amount??0n}:N?.asset._source==="wallet"&&Ge?.sourceSpendCap!==void 0?{chainId:N.asset.chainId,token:N.asset.address,amount:Ge.sourceSpendCap}:void 0,validateBeforeSubmit:async ct=>{if(await er(),await Hd(Ge?.externalGasReserve,ct),await Ne?.validateBeforeSubmit?.(ct),ee&&ou(ct,h.address,h.chainId,K)!==Xr.amount)throw new Error("The external delivery changed. Review the quote before continuing.")}}],xn=()=>oe(...Ft);let Pn,vn=0;for(;;)try{Pn=await co(xn);break}catch(ct){if(st.accepted&&!Lo())throw oo();if(!(ct instanceof Be)||ct.context.submissionStatus!=="accepted"||ct.code==="ON_CHAIN_REVERT"||ct.code==="ABORT")throw ct;st.accepted=!0,me?.({step:"executing",message:"Your action was accepted. Confirming the original transaction...",actionId:ct.context.actionId,intentId:ct.context.intentId}),await co(()=>go(Math.min(1e3*2**Math.min(vn++,5),3e4)))}if(!ee)return Pn;Ar=!0;const Nt=async()=>{if(le?.aborted)throw new Error("Execution transaction aborted");await er()};await Nt(),await ch({hash:Pn,token:h.address,chainId:h.chainId,recipient:K,sender:Ht,amount:Xr.amount}),await Nt();const Fn=await iu({definition:Xr,account:K,chainId:h.chainId,wallet:xe,assertCurrent:Nt}),An=de.current;return An?.scope===We&&An.progress&&(An.progress={...An.progress,step:"success",txHash:Fn,message:"Transaction confirmed"},bl(An.progress)),Fn}catch(Ft){const xn=Ft instanceof Be&&(Ft.context.submissionStatus==="unknown"||Ft.context.submissionStatus==="accepted");throw jt.current&&vt.current.enabled&&fn.current===Ee&&vt.current.walletScope===$o&&(xn||Ar||Eo)&&Zn(La),Eo&&!Ar?new Be("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this action and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:Ft}):(Wn(Ft),Ft)}},buildPayChainBatches:async W=>va(await qr(Rl,Ol(W)),Ge?.externalGasReserve),buildSupplyChainBatches:async W=>va(await ba(Rl,Ol(W)),Ge?.externalGasReserve),onProgress:bl},ui:{setError:mn,setStep:en,setStatusMsg:Dt,setTxHash:_e,setIsExecuting:In,setShowStatusPanel:Un,setPaymentResult:Bn},refs:{spiceDepositSubmittedRef:bo,abortControllerRef:ue}};const Er=!!e.isZeroAmountPay&&!e.feeOnlyAction&&O&&xo===0,sp=y?xo>0&&!!Ge?.fundingPlan&&!!Ge.batches?.length&&!wt&&qn&&!$n&&!qa:O?(Er||!!N?.asset||!!e.actionProceeds||!!e.feeOnlyAction)&&xo>=0&&!qs&&!wt&&(Er||Us||qn)&&!$n&&(Er||e.feeOnlyAction||!Uo||!!Rs)&&(Er||e.feeOnlyAction||!Qt||!!Ms)&&!qa:!!N?.asset&&xo>0&&!qs&&!wt&&(z||qn)&&!$n&&!Il&&(Qt?!!Ds&&!gl&&(yl||!!Os):Xu||yl||!!Os&&!gl)&&!qa,Dl=!e.quoteOnlyAccount&&(z||ne&&X&&G&&!!Q)&&!Z&&!Ns&&!!Ht&&(!ee||!!Xr&&!!xe&&!!K)&&(!z||!!xe&&(!N?.asset.owner||J(N.asset.owner,K)))&&(k==="7702"||!!K)&&!yt&&!Wo&&!Po&&A&&sp&&(Er||y&&!!Ge?.fundingPlan||!N&&(!!e.actionProceeds||!!e.feeOnlyAction)||!!Ut?.eligible)&&St!=="success"&&ln?.status!=="success"&&!Sr.quoteError&&(Er||!!_o&&kt.current?.key===_o);qt.current=Dl;const Ml=Dl&&Ku&&!e.submitDisabled&&!pn&&!Pt.current;Ps.current=Ml;const Ha=re(()=>{if(Ve.current||Ns)return;const W=de.current?.scope===We?de.current.progress:void 0;if(lo||Vr||jr||W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"){Ua();return}Ps.current=!1,kt.current=null,et(!1),Bs.refreshQuote(),en("idle"),mn(null),Dt(""),Bn(null),Un(!1)},[Bs.refreshQuote,mn,lo,Vr,jr,We,Ua,Ns]),Nl=j(Vn);pe(()=>{const W=Nl.current!==Vn;Nl.current=Vn,(W||Ka(Bt))&&St==="error"&&!wt&&de.current&&de.current.key!==Vn&&Ha()},[Vn,St,wt,Bt,Ha]);const ap=re(()=>{Un(!1)},[]),ip=re(()=>{if(Ve.current)return;const W=de.current?.progress;W?.submissionStatus==="unknown"||W?.actionId&&W.step!=="success"||(en("idle"),_e(null),De())},[De]),tn=Ge??(kt.current?.key.startsWith(`${Vn}|`)?kt.current.quote:null)??(de.current?.key===Vn?de.current.quote:null),lp=async W=>{if(e.quoteOnlyAccount)throw new Error("A preview cannot fund an action.");if(Ns)throw new Error("Check your activity and balances before funding another action.");if(z)throw new Error("This source executes directly from the external wallet; submit the action without embedded funding.");if(!(!q||!N)){if(!Ge||W!==Ge.sourceSpendCap)throw new Error("Use the displayed source funding maximum before preparing this action.");await Jr(),await du({asset:N.asset,embedded:Ht,external:K,externalWallet:xe,amount:W,assertCurrent:Jr})}};return{operationKey:Vn,feeQuote:tn,selectedAsset:Wt,capability:Ut,assets:{getAvailableBalance:Se,fundingSources:Ke,selectable:Je,displayAssets:Je,filteredSpiceAssets:Ie,embeddedWalletAddress:ke,externalAddress:K,isNon7702:k!=="7702",refreshSpiceAssets:De,refreshWalletAssets:Me,loading:Pe,refreshing:ye,error:Ze},quote:{...Sr,...eo?{quoteKey:null,quoteExpiresAt:null,quoteError:null,isQuoting:!1,estimatedInput:null,estimatedOutput:null,quoteAmountOut:null,inputAmount:null,resolvedSwap:null,sourceSwap:null,exactOutputSwap:null,sourceExactOutputSwap:null}:{},hasSourceConversion:!!Qt,executionInput:Qt&&tn?{address:Qt.destination.address,chainId:Qt.destination.chainId,decimals:Qt.destination.decimals,amount:tn.preview.netAmount}:null,...tn?.destinationSwap?{resolvedSwap:tn.destinationSwap,inputAmount:tn.swapInputAmount,estimatedOutput:Re(tn.destinationSwap.amountOut,h.decimals)}:{},...tn?.fundedFeeToken&&tn.destinationAmount!==void 0?{estimatedOutput:Re(tn.destinationAmount+(tn.destinationSwap?tn.destinationSwap.amountOut-tn.destinationSwap.amountOutMinimum:0n),h.decimals)}:{}},fees:{fundingConversion:tn?.fundingConversion,fundingSource:tn?.fundingSource,proceedsUsed:tn?.proceedsUsed,fundingShortfall:tn?.grossFundingAmount,source:Qt&&tn?{address:Qt.source.address,chainId:Qt.source.chainId,symbol:Qt.source.symbol,decimals:Qt.source.decimals,gasFee:tn.sourceGasSkim??0n,spicenetFee:0n}:null,destinationAmount:tn?.destinationAmount,sourceSpendCap:tn?.sourceSpendCap,preview:eo?null:tn?.preview??Ln,isLoading:!eo&&(On||_t),ready:!eo&&!!Ge,error:eo||_t||Et&&Jn.current!==_o?null:$n},amount:{availableBalance:y?_u:Lt,sourceRequiredAmount:tn?.sourceSpendCap??null,parsed:xo,isInsufficientBalance:qs,sourceBalance:Ju,feesExceedAmount:Il},status:{activity:bn,pending:lo,recoveryChecking:Vr,recoveryError:jr,actionId:it?.actionId??(io?Gt.action?.actionId:void 0),intentId:it?.intentId??(io?Gt.action?.intents[0]?.intentId:void 0),autoContinue:it?.autoContinue??(io?Gt.action?.autoContinue:void 0),submissionStatus:it?.submissionStatus,idempotencyKey:it?.submissionStatus==="unknown"?it.idempotencyKey:void 0,user:it?.user??(io?Gt.action?.user:void 0),finalizing:Wo||Tl,finalizationError:Po,step:yt&&St==="success"?"executing":St,statusMsg:Vr?"Checking previous action status...":lo?jr??"A previous transaction is still pending. Check its status before submitting again.":yt?Po??"Transaction confirmed. Updating application...":Xn,txHash:Zt,isExecuting:wt||pn||Tl,error:Z||Po||Bt||Ut?.reason||null,showStatusPanel:zt,paymentResult:yt&&ln?.status==="success"?{...ln,status:"processing"}:ln},flags:{directExecutionFeeNote:Us},retryFinalization:np,refreshStatus:Ua,fundEmbeddedSource:lp,canExecute:Ml,submit:O?Fl:Cl,submitSupply:Cl,submitPay:Fl,retrySupply:Ha,dismissPaymentStatus:ap,resolveMaxAmount:El,max:()=>y?ep():N?El(N.asset):Promise.resolve(null),resetAfterSuccess:ip,resetPaymentState:op}}function gh(e){const{asset:t,amount:n,recipient:o,owner:r,onSuccess:s}=e,a=!!t&&!!e.destination&&e.destination.chainId!==t.chainId,i=e.destination?.chainId??t?.chainId??e.sourceChains?.[0]??0,l=we(()=>dr(i).find(C=>C.equivalenceGroup==="USDC"),[i]),c=re((C,S)=>{const b=!a&&C===0n?n:C;if(!t||n<=0n||n>t.balance||!a&&b>n||!o||!r||J(r,o))throw new Error("Enter a valid withdrawal amount and recipient.");if(S.chainId!==i||!J(S.executorAddress??S.userAddress,r))throw new Error("The withdrawal wallet or network changed. Review the withdrawal again.");if(a&&(!e.destination||e.destination.symbol!=="USDC"||C<=0n))throw new Error("A USDC withdrawal quote is required for this network.");return ga(i,a?e.destination.address:t.address,[{recipient:o,amount:b}]).calls},[t?.address,t?.chainId,t?.balance,n,o,r,i,a,e.destination?.address,e.destination?.symbol]),u=we(()=>t?[{address:t.address,chainId:t.chainId,symbol:t.symbol,decimals:t.decimals,logoURI:t.logoURI}]:void 0,[t?.address,t?.chainId,t?.symbol,t?.decimals,t?.logoURI]),d=As({enabled:e.enabled&&!!l&&!!t&&n>0n&&!!o&&!!r&&!J(r,o),amountDirection:"input-inclusive",quotedInclusivePlatformFee:!0,feeFunding:xa,destinationToken:e.destination??{address:t?.address??Kt,symbol:t?.symbol??"",decimals:t?.decimals??6,chainId:i},recipient:o,selectedAsset:t?{asset:t,amount:Re(n,t.decimals)}:null,additionalSourceTokens:u,sourceChains:e.sourceChains,includeCrossChainEmbeddedAssets:!0,includeExternalWalletAssets:!1,feeExecutionMode:a?"user-transfer":"backend-transfer",buildActionCalls:c,buildSpicenetBatch:gs,onError:(C,S)=>e.onError?.(C.message,S),onSuccess:async()=>{if(!t)return;const C=d.fees.destinationAmount;if(a&&(C==null||C<=0n))throw new Error("The confirmed withdrawal amount is unavailable.");window.dispatchEvent(new CustomEvent("withdraw-completed")),await s?.({token:a?"USDC":t.symbol,amount:Re(a?C:n,a?e.destination.decimals:t.decimals),chainId:i})}}),p=`${e.enabled}:${t?.chainId}:${t?.address}:${n}:${o}:${r}:${i}:${e.destination?.address}`,w=j(p);pe(()=>{w.current===p||d.status.isExecuting||(w.current=p,(d.status.step==="success"||d.status.paymentResult?.status==="success")&&d.resetAfterSuccess())},[p,d.status.isExecuting,d.status.step,d.status.paymentResult?.status,d.resetAfterSuccess]);const m=d.fees.fundingSource,g=m?.kind==="input"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed??0n:0n,h=m?.kind==="input"?t:m?.asset,y=h?h._source==="wallet"?d.fees.fundingConversion?.amountInMax??d.fees.proceedsUsed:d.amount.sourceRequiredAmount:null;return{supply:d,source:h,maximumFeeFunding:y,feeFromAmount:g}}const yu=nt.ui,wh=({label:e,loading:t,balance:n,dark:o,dk:r})=>{const s=o?r.textSecondary:"#7D7C7B",a=o?r.textSecondary:"#71757A";return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontFamily:yu,fontSize:"17px",fontWeight:500,color:s,lineHeight:"24px"},children:e}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontFamily:yu,fontSize:"13px",fontWeight:500,color:a,lineHeight:"16px"},children:["Balance:"," ",t?"...":n===null?"\u2014":Ya(n)]})]})};function yh(e,t=40,n=18){const o=e.length,r=[{maxLength:7,shrink:0},{maxLength:10,shrink:6},{maxLength:13,shrink:12},{maxLength:16,shrink:16},{maxLength:20,shrink:19}].find(s=>o<=s.maxLength);return Math.max(n,t-(r?.shrink??22))}const br=({value:e,element:t="span",placeholder:n,ariaLabel:o,ariaInvalid:r,disabled:s,onChange:a,inputMode:i="decimal",autoComplete:l="off",dataSpiceflowFocus:c,fontFamily:u,fontWeight:d=700,color:p,textAlign:w,lineHeight:m=1,maxFontSize:g=40,minFontSize:h=18,overflow:y="ellipsis",title:C,style:S})=>{const b=j(null),[A,O]=L(),v=yh(e||n||"",g,h),x=e||n||"";pe(()=>{const B=b.current;if(!B||y!=="ellipsis"){O(void 0);return}let M=!0,k=null;const E=()=>{if(!M)return;const D=getComputedStyle(B),P=B.clientWidth-parseFloat(D.paddingLeft||"0")-parseFloat(D.paddingRight||"0");if(!(P>0))return;if(!k){try{k=document.createElement("canvas").getContext("2d")}catch{return}if(!k)return}k.font=`${D.fontStyle} ${D.fontWeight} ${v}px ${D.fontFamily}`;const H=k.measureText(x),Q=Math.max(H.width,(H.actualBoundingBoxLeft||0)+(H.actualBoundingBoxRight||0))+(parseFloat(D.letterSpacing)||0)*Math.max(0,x.length-1),G=Q>P?v*Math.max(0,P-1)/Q:void 0;O(ne=>ne===G?ne:G)};E();const I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(E);return I?.observe(B),I||window.addEventListener("resize",E),document.fonts?.addEventListener("loadingdone",E),()=>{M=!1,I?.disconnect(),I||window.removeEventListener("resize",E),document.fonts?.removeEventListener("loadingdone",E)}},[x,v,u,d,y,t,S?.fontFamily,S?.fontStyle,S?.fontWeight,S?.letterSpacing,S?.paddingLeft,S?.paddingRight]);const F=y==="wrap"?{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"normal"}:y==="ellipsis"?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{},T={fontFamily:u,fontSize:`${Math.min(v,A??v)}px`,fontWeight:d,color:p,lineHeight:m,letterSpacing:0,textAlign:w,minWidth:0,maxWidth:"100%",...F,...S};return t==="input"?f("input",{ref:b,type:"text",inputMode:i,autoComplete:l,"aria-label":o,"aria-invalid":r||void 0,"data-spiceflow-focus":c||void 0,value:e,onChange:a,placeholder:n,disabled:s,title:C,style:{backgroundColor:"transparent",border:"none",outline:"none",padding:0,width:"100%",...T}}):f(t,{ref:b,title:C,style:T,children:e})},bu=({isOpen:e,position:t,title:n,items:o,selectedId:r,onSelect:s,portalAttribute:a})=>{const{dark:i,dk:l,primaryColor:c}=on(),[u,d]=L(null),[p,w]=L(!1);return pe(()=>{if(!e){w(!1);return}const m=requestAnimationFrame(()=>{requestAnimationFrame(()=>w(!0))});return()=>cancelAnimationFrame(m)},[e]),!e||!t||o.length===0?null:oi(R("div",{[`data-${a}-popover`]:"true",style:{position:"fixed",top:`${t.top}px`,left:`${t.left}px`,opacity:p?1:0,transform:p?"scale(1) translateY(0)":"scale(0.96) translateY(-6px)",transition:`opacity 200ms ${Fr.out}, transform 200ms ${Fr.out}`,backgroundColor:i?l.shell:"#ffffff",borderRadius:"10px",padding:"10px 12px",boxShadow:i?"0 16px 48px rgba(0,0,0,0.45)":"0 12px 32px rgba(0,0,0,0.12)",border:`1px solid ${l.cardBorder}`,minWidth:"220px",zIndex:lr.dropdown,fontFamily:nt.mono},children:[f("div",{style:{marginBottom:"6px"},children:f("span",{style:{fontSize:"11px",fontWeight:500,color:i?l.textPrimary:"#0e0d0b",textTransform:"uppercase",letterSpacing:"1px"},children:n})}),f("div",{style:{borderBottom:`1px solid ${l.cardBorder}`,marginBottom:"6px"}}),f("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:o.map(m=>{const g=r===m.id,h=u===m.id;return R("button",{onClick:y=>{y.stopPropagation(),s(m.id)},onMouseEnter:()=>d(m.id),onMouseLeave:()=>d(null),style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 4px",borderRadius:"8px",border:"none",cursor:"pointer",backgroundColor:g?i?l.hoverBg:"#f3f4f6":h?i?l.cardBg:"#f9fafb":"transparent",transition:"background-color 0.15s",width:"100%",fontFamily:nt.mono},children:[m.icon&&f("img",{src:m.icon,alt:m.label,style:{width:"22px",height:"22px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",fontWeight:g?700:500,textTransform:"uppercase",color:i?l.textPrimary:"#0e0d0b",letterSpacing:"0.5px",flex:1,textAlign:"left"},children:m.label}),m.detail&&f("span",{style:{fontSize:"11px",fontWeight:500,color:l.textSecondary},children:m.detail}),g&&f(pd,{color:c,style:{flexShrink:0}})]},m.id)})})]}),document.body)},Ea=nt.ui,bh=nt.mono,xh=170,vh=({header:e,amount:t,receiveAmountDisplay:n,receiveUsdEstimate:o,selectedDestToken:r,destTokenSymbol:s,destChainName:a,destChainLogo:i,compatibleDestinationChains:l,networkSwitchRef:c,onOpenNetworkPopover:u,showNetworkPopover:d,setShowNetworkPopover:p,networkPopoverPos:w,selectedChainId:m,setSelectedChainId:g,dark:h,dk:y})=>{const C=h?y.cardBg:"#E9E9E9",S=h?y.cardBorder:"#C6C6C6",b=h?y.textSecondary:"#71757A",A=h?y.textPrimary:"#0E0D0B",O=h?y.cardBorder:"#C5C5C4",v=h?"rgba(255,255,255,0.08)":"#D4D3D3",x=s.length>8?"14px":s.length>6?"16px":"18px";return R("div",{style:{backgroundColor:C,border:`1px solid ${S}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[f(br,{element:"div",value:n,title:n,fontFamily:Ea,color:t?A:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,overflow:"wrap"}),f("div",{style:{fontSize:"12px",fontWeight:500,color:b,fontFamily:Ea,marginTop:"10px"},children:o})]}),R("div",{style:{width:`${xh}px`,flexShrink:0,display:"flex",flexDirection:"column",alignItems:"stretch",gap:"8px"},children:[R("div",{style:{backgroundColor:"transparent",border:`1px solid ${O}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px"},children:[f("img",{src:r?.logoURI||Mf,alt:s,style:{width:"24px",height:"24px",borderRadius:"50%"}}),f("span",{style:{fontSize:x,fontWeight:500,color:A,lineHeight:"1.3",fontFamily:Ea,flex:1,minWidth:0,letterSpacing:0},children:s})]}),R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:v,borderTop:`1px solid ${O}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[i&&f("img",{src:i,alt:a,style:{width:"13px",height:"13px",borderRadius:"50%",flexShrink:0}}),f("span",{style:{fontSize:"11px",fontWeight:400,color:A,fontFamily:Ea,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:a})]}),f("button",{ref:c,onClick:F=>{F.stopPropagation(),u(c.current)},style:{background:"none",border:"none",cursor:l.length>1?"pointer":"not-allowed",padding:"0 0 0 8px",fontSize:"9.5px",fontFamily:bh,color:b,textDecoration:"underline",fontWeight:600,opacity:l.length>1?1:.45},children:"Switch"}),f(bu,{isOpen:d,position:w,title:"SELECT NETWORK",portalAttribute:"network",items:l.map(F=>{const T=xt(F);return{id:String(F),label:T?.displayName||String(F),icon:nr[F]||us}}),selectedId:m!==null?String(m):null,onSelect:F=>{g(Number(F)),p(!1)}})]})]}),f("div",{style:{minHeight:"14px"}})]})]})]})},kh=nt.ui,sr=nt.mono,Ch=({show:e,onToggle:t,showCustomAddress:n,setShowCustomAddress:o,customRecipient:r,setCustomRecipient:s,externalAddress:a,recipientAddress:i,destChainName:l,destChainLogo:c,compatibleDestinationChains:u,txDetailsChainSwitchRef:d,onOpenNetworkPopover:p,sourceChainLabel:w,sourceDetailsLogo:m,sourceTokenLabel:g,amount:h,totalSourceDebitDisplay:y,receiveAmountDisplay:C,destTokenSymbol:S,shouldQuoteWithdrawGas:b,estimatingFee:A,feeError:O,displayedGasFee:v,selectedDestToken:x,theme:F,styles:T,dark:B,dk:M})=>{const k=B?M.textSecondary:"#71757A",E=B?M.textPrimary:"#0E0D0B",I=u.length>1,D=n&&r?Gn(r)?ns(r):r:i?ns(i):"\u2014";return R(kn,{children:[R("div",{onClick:t,style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:e?"10px":"0",cursor:"pointer",userSelect:"none"},children:[f("span",{style:{fontSize:"13px",color:k,fontFamily:kh,fontWeight:600},children:"Transaction Details"}),f(wm,{size:12,color:k,style:{transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),e&&R("div",{style:{display:"flex",flexDirection:"column",gap:"7px"},children:[R("div",{children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontSize:"12px",color:k,fontFamily:sr,fontWeight:500,letterSpacing:"0.03em"},children:"TO"}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("span",{style:{fontSize:"13px",color:E,fontFamily:sr,fontWeight:500},children:D}),f("button",{onClick:()=>{o(P=>!P),!n&&a&&s(a)},style:{background:"none",border:"none",cursor:"pointer",padding:"0",fontSize:"9.5px",fontFamily:sr,color:k,textDecoration:"underline",fontWeight:600},children:n?"Reset":"Switch"})]})]}),n&&R("div",{style:{marginTop:"6px"},children:[f("div",{style:{marginBottom:"6px",padding:"7px 9px",borderRadius:"6px",border:"1px solid rgba(239, 68, 68, 0.55)",backgroundColor:"rgba(239, 68, 68, 0.12)",color:"#ef4444",fontSize:"10px",lineHeight:1.35,fontFamily:sr,fontWeight:700,letterSpacing:0,textTransform:"uppercase"},children:"CAUTION: ENTERING AN INCORRECT ADDRESS WILL RESULT IN LOSS OF FUNDS"}),f("input",{type:"text",autoComplete:"off",spellCheck:!1,"aria-label":"Recipient address","aria-invalid":r&&!Gn(r)?!0:void 0,"data-spiceflow-focus":!0,value:r,onChange:P=>s(P.target.value),placeholder:"0x...",style:{width:"100%",padding:"8px 10px",borderRadius:"6px",border:`1px solid ${r&&!Gn(r)?B?M.errorBorder:"#fca5a5":B?M.inputBorder:"#d1d5db"}`,backgroundColor:B?M.inputBg:"#f9fafb",color:B?M.inputText:"#111827",fontSize:"12px",fontFamily:sr,outline:"none",boxSizing:"border-box"}}),r&&!Gn(r)&&f("span",{style:{fontSize:"11px",color:M.errorText,marginTop:"3px",display:"block"},children:"Invalid address"})]})]}),f(wo,{palette:M,labelColor:k,valueColor:E,label:"RECEIVING CHAIN",value:R("div",{style:{display:"flex",alignItems:"center",gap:"7px"},children:[c&&f("img",{src:c,alt:l,style:{width:"14px",height:"14px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",color:E,fontWeight:500,fontFamily:sr,textTransform:"uppercase"},children:l}),f("button",{ref:d,onClick:P=>{P.stopPropagation(),p(d.current)},style:{background:"none",border:"none",cursor:I?"pointer":"not-allowed",padding:"0",fontSize:"9.5px",fontFamily:sr,color:k,textDecoration:"underline",fontWeight:600,opacity:I?1:.45},children:"Switch"})]})}),f(wo,{palette:M,labelColor:k,valueColor:E,label:"REQUESTED WITHDRAWAL",value:R(el,{logo:m||null,alt:w,primaryText:E,children:[h||"0"," ",g]})}),b&&f(wo,{palette:M,labelColor:k,valueColor:E,label:"TOTAL SOURCE DEBIT",value:R(el,{logo:m||null,alt:w,primaryText:E,children:[y," ",g]})}),f(wo,{palette:M,labelColor:k,valueColor:E,label:"YOU RECEIVE",value:R(el,{logo:c,alt:l,primaryText:E,gap:"4px",children:[C," ",S]})}),b&&R(kn,{children:[f(wo,{palette:M,labelColor:k,label:"EST. NETWORK FEE",valueColor:O?"#f87171":E,value:A?"Estimating...":O?"Unavailable":v!==null&&x?`${Wi(v,x.decimals)} ${x.symbol}`:"Estimating..."}),O&&f(Hn,{variant:"error",size:"compact",palette:M,fontFamily:T?.fontFamily||F.typography.fontFamily,children:O})]})]})]})},Ih=fo(Ch),el=({logo:e,alt:t,primaryText:n,gap:o="6px",children:r})=>R("div",{style:{display:"flex",alignItems:"center",gap:o},children:[e&&f("img",{src:e,alt:t,style:{width:"13px",height:"13px",borderRadius:"50%"}}),f("span",{style:{fontSize:"13px",color:n,fontWeight:500,fontFamily:sr},children:r})]}),tl=({pct:e,isMax:t,primaryColor:n,dark:o,fillColor:r})=>{const s=e/100;return R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",children:[f("circle",{cx:"7",cy:"7",r:"6.84375",fill:t?n:"none",stroke:t?n:o?"#4a5568":"#3C3E42",strokeWidth:"0.3125"}),!t&&s>0&&f("path",{d:`M 7 7 L 7 0.15625 A 6.84375 6.84375 0 ${s>.5?1:0} 1 ${7+6.84375*Math.sin(s*2*Math.PI)} ${7-6.84375*Math.cos(s*2*Math.PI)} Z`,fill:r})]})},Es=nt.ui,Sh=170,Ah=({header:e,amount:t,setAmount:n,isInsufficient:o,sourceAmountDecimals:r,selectedSourceAsset:s,resolvedSelectedSourceAsset:a,spiceAssets:i,setSelectedSourceAsset:l,sourceUsdEstimate:c,sourceTokenLabel:u,sourceChainLabel:d,totalSelectedBalance:p,showSourceTokenPopover:w,setShowSourceTokenPopover:m,tokenPopoverPos:g,setTokenPopoverPos:h,tokenTriggerRef:y,primaryColor:C,dark:S,dk:b})=>{const A=To(),O=a?A({...a,logoURI:a._source==="wallet"?a.logoURI:ds}).logoURI:ds,v=S?b.cardBg:"#E9E9E9",x=S?b.cardBorder:"#C6C6C6",F=S?b.textSecondary:"#71757A",T=S?b.textPrimary:"#0E0D0B",B=S?b.cardBorder:"#C5C5C4",M=S?"rgba(255,255,255,0.08)":"#D4D3D3",k=u.length>8?"14px":u.length>6?"16px":"18px";return R("div",{style:{backgroundColor:v,border:`1px solid ${x}`,borderRadius:"7px",padding:"14px 16px 12px 16px",minHeight:"138px",display:"flex",flexDirection:"column",gap:"6px",position:"relative"},children:[e,R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",flex:1},children:[R("div",{style:{flex:1,minWidth:0,alignSelf:"flex-start",paddingTop:"4px"},children:[f(br,{element:"input",ariaLabel:"Withdraw amount",ariaInvalid:o,dataSpiceflowFocus:!0,value:t,onChange:E=>{const I=E.target.value;if(I===""){n("");return}/^\d*\.?\d*$/.test(I)&&n(Ks(I.startsWith(".")?`0${I}`:I,r??s?.decimals))},placeholder:"0.0",fontFamily:Es,color:o?"#ef4444":t?T:"#A8A8A7",lineHeight:"0.95",maxFontSize:54,minFontSize:32,style:{width:"100%"}}),f("div",{style:{fontSize:"12px",fontWeight:500,color:F,fontFamily:Es,marginTop:"10px"},children:c})]}),f("div",{style:{width:`${Sh}px`,flexShrink:0},children:R("div",{style:{backgroundColor:"transparent",border:`1px solid ${B}`,borderRadius:"8px",overflow:"hidden",width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[R("div",{ref:y,onClick:E=>{if(E.stopPropagation(),!w&&y.current){const I=y.current.getBoundingClientRect(),D=220,P=16;h({top:I.bottom+8,left:Math.min(Math.max(P,I.right-D),window.innerWidth-D-P)})}m(I=>!I)},style:{display:"flex",alignItems:"center",gap:"6px",padding:"9px 10px 8px 10px",cursor:"pointer"},children:[O&&f("img",{src:O,alt:u,style:{width:"24px",height:"24px",borderRadius:"50%"}}),f("span",{style:{fontSize:k,fontWeight:500,color:T,lineHeight:"1.3",fontFamily:Es,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",letterSpacing:0},children:u}),f(Mr,{size:15,color:T,strokeWidth:2.25})]}),f(bu,{isOpen:w,position:g,title:"SELECT TOKEN",portalAttribute:"token",items:(i||[]).map(E=>({id:be(E),label:A({...E,displaySymbol:E.displaySymbol||(E._source==="wallet"?E.symbol:E.receiptTokenName)}).symbol,icon:A({...E,logoURI:E._source==="wallet"?E.logoURI:ds}).logoURI||void 0,detail:`${Ya(E.balanceFormatted)} \xB7 ${E._source==="wallet"?xt(E.chainId)?.displayName||E.chainId:"Spicenet"}`})),selectedId:a?be(a):null,onSelect:E=>{const I=(i||[]).find(D=>be(D)===E);I&&(l(I),n("")),m(!1)}}),f("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 10px",backgroundColor:M,borderTop:`1px solid ${B}`},children:f("span",{style:{fontSize:"11px",fontWeight:400,color:T,fontFamily:Es,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textTransform:"uppercase"},children:d})})]})})]}),R("div",{style:{minHeight:"18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o?f("span",{style:{fontSize:"12px",color:b.errorText,fontFamily:Es,fontWeight:500},children:"Insufficient Balance"}):f("span",{}),f("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0px",minHeight:"32px",marginRight:"-9px"},children:[0,25,50,75,100].map((E,I)=>{const D=I===4,P=parseFloat(t)||0,H=p>0&&Math.abs(P/p*100-E)<1;return f("button",{type:"button","aria-label":`Set amount to ${E}%`,"aria-pressed":H,onClick:()=>{const Q=a?.balance??0n;n(E===0?"":Re(Q*BigInt(E)/100n,r??s?.decimals??6))},title:`${E}%`,disabled:p===0,"data-spiceflow-focus":!0,style:{width:"32px",height:"32px",padding:"9px",border:"none",backgroundColor:"transparent",cursor:p===0?"not-allowed":"pointer",opacity:H?1:.5,transition:"opacity 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:f(tl,{pct:E,isMax:D,primaryColor:C,dark:S,fillColor:S?b.textSecondary:"#3C3E42"})},E)})})]})]})};var nl="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 4.99995V6.99995M5 3.31245V3.31189M9.5 5C9.5 7.48528 7.48528 9.5 5 9.5C2.51472 9.5 0.5 7.48528 0.5 5C0.5 2.51472 2.51472 0.5 5 0.5C7.48528 0.5 9.5 2.51472 9.5 5Z' stroke='black' stroke-opacity='0.4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Eh=({dark:e,dk:t})=>R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[f("img",{src:nl,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...e?{filter:"invert(0.6)"}:{}}}),f("p",{style:{fontSize:"13px",color:e?t.textSecondary:"#979AA0",margin:"0",lineHeight:"1.4",fontFamily:nt.ui},children:"Withdraw collateral from your account to 10+ EVM blockchains."})]}),Fh=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,onWithdrawExecute:r,onWithdrawSuccess:s,onWithdrawError:a,availableTokens:i,initialSourceAssetId:l,walletAssets:c,buildSpicenetBatch:u=gs})=>{const d=an($t);if(!d)return f("div",{children:"Error: SpiceWithdraw must be used within SpiceFlowProvider"});const p=d.mode||"7702",w=p==="presign"||p==="ondemand",m=d.supportedChainIds,g=d.allowedTokens,h=c?.initialAsset,y=we(()=>[...c?.extraAssets??[],...h?[h]:[]].map(ue=>({address:ue.address,chainId:ue.chainId,symbol:ue.symbol,decimals:ue.decimals})),[c?.extraAssets,h]),C=d.isWhitelistGateActive,{theme:S,dark:b,dk:A}=on(o),O=To(),v=d.network,x=()=>w?"select":"provider-login",[F,T]=L(x()),[B,M]=L(!1),[k,E]=L(null),[I,D]=L(null),[P,H]=L(""),[Q,G]=L(!1),[ne,X]=L(!1),[V,oe]=L(!1),[Y,ge]=L(""),[xe,he]=L(!0),ve=j(null),_=j(null),K=j(null),[ie,N]=L(null),[Le,Te]=L(null),z=Fo(),{isReady:q,isAuthenticated:ee,address:ce}=z,Z=d?.embeddedWalletAddress,{address:ae,chainId:ze}=Ja(),Ie=d.externalWalletAddress||ae,[Ce,tt]=L(!1),[De,Me]=L(null),Pe=j(a);Pe.current=a;const ye=re(ue=>{Me(ue),typeof ue=="string"&&ue&&Pe.current?.(ue,os(ue))},[]),[Ze,ke]=L(null),He=j(null),gt=j(!0),Xe=j(null);pe(()=>(gt.current=!0,()=>{gt.current=!1}),[]);const{execute:ot,estimate:Qe,clearStatus:fe}=Dr(),Oe=ca(ce,e),[dt,Ye]=L(null),[Se,Je]=L(null),[It,Ke]=L(!1),[Rt,lt]=L(null),{assets:ut,loading:pt,error:Et,refresh:_t}=hr({owner:Z,role:"holding",includeWalletAssets:!0,additionalSourceTokens:y,enabled:e&&!!Z}),Ct=we(()=>{if(C)return[];const ue=(de,rt)=>(rt.balanceUsd||0)-(de.balanceUsd||0);return(ut??[]).filter(de=>de.balance>0n&&Io(de,"holding",{allowedTokens:g,isWhitelistGateActive:C}).eligible).sort(ue)},[ut,g,C]),at=we(()=>[...new Set([...m??[],...Object.keys(i??{}).map(Number),...(Ct||[]).map(ue=>ue.chainId),...(Ct||[]).flatMap(ue=>Object.keys(ue.chainTokens??{}).map(de=>{const[,rt]=de.split(":"),Ot=Number(rt);return Number.isFinite(Ot)?Ot:null}).filter(de=>de!==null))])].filter(ue=>xt(ue)?.network===v),[m,i,Ct,v]),Wt=we(()=>{if(i)return i;const ue={};for(const de of Ct||[]){const rt=Object.entries(de.chainTokens??{});if(rt.length>0){for(const[Ot,We]of rt){const[Xt,Gt,rn]=Ot.split(":");if(Xt!=="evm"||!Gt||!rn)continue;const cn=Number(Gt);if(!Number.isFinite(cn))continue;const sn=rn.startsWith("0x")?rn.toLowerCase():`0x${rn.toLowerCase()}`,gn=xt(cn)?.supportedTokens?.find(wn=>J(wn.address,sn));gn&&gi(de,sn,cn)&&(ue[cn]||(ue[cn]=[]),ue[cn].find(wn=>J(wn.address,sn))||ue[cn].push({address:sn,symbol:gn?.symbol||We?.name||de.symbol,name:gn?.name||We?.name||de.displayName||de.name||de.symbol,decimals:gn?.decimals??We?.decimals??de.decimals,logoURI:gn?.logo||de.logoURI}))}continue}ue[de.chainId]||(ue[de.chainId]=[]),ue[de.chainId].find(Ot=>J(Ot.address,de.address))||ue[de.chainId].push({address:de.address,symbol:de.symbol,name:de.displayName||de.name||de.symbol,decimals:de.decimals,logoURI:de.logoURI})}return ue},[i,Ct]),Ut=re((ue,de)=>{const rt=Cm(ue,de,de?ue?._source==="wallet"?i?.[de]??[]:Wt[de]??[]:[]);return!ue||!rt||!de?null:ue._source==="wallet"||Io(ue,"withdraw-destination",d,{...rt,chainId:de}).eligible?rt:null},[Wt,i,d.allowedTokens,d.rpcOverrides,d.isWhitelistGateActive]),$=we(()=>k?Ct.find(ue=>be(ue)===be(k))??null:null,[k,Ct]),Lt=$?$.balanceError:Et,$e=$?._source==="wallet",wt=we(()=>{if(!$)return[];const ue=Object.keys($.chainTokens??{}).map(de=>Yn(de)?.chainId??null).filter(de=>de!==null);return Array.from(new Set([...ue,$.chainId,...at].filter(Number.isFinite))).filter(de=>xt(de)?.network===v&&($._source==="wallet"||Ut($,de)!==null))},[$,at,Ut,v]),In=we(()=>{if(!$||typeof window>"u")return null;const ue=`spiceflow:withdraw-chain:${$.receiptTokenId||$.address.toLowerCase()}`,de=window.localStorage.getItem(ue),rt=de?Number(de):null;return rt!==null&&Number.isFinite(rt)&&wt.includes(rt)?rt:null},[$,wt]),pn=we(()=>$?$._source==="wallet"?$.chainId:In!==null?In:ze&&wt.includes(ze)?ze:$.chainId&&wt.includes($.chainId)?$.chainId:wt[0]??null:at[0]??null,[$,In,ze,wt,at]),Ue=we(()=>Ut($,I),[Ut,$,I]);pe(()=>{e&&(E(null),H(""))},[e,l,h?.address,h?.chainId]),pe(()=>{if(!e||!Ct.length||k)return;const ue=h?Ct.find(de=>de.chainId===h.chainId&&J(de.address,h.address)&&de._source==="wallet"):l?Ct.find(de=>de.receiptTokenId===l):Ct[0];E(ue??null),H("")},[e,Ct,k,l,h]);const Pt=j(null);pe(()=>{if(!$){Pt.current=null;return}const ue=be($),de=Pt.current!==ue;Pt.current=ue,(de&&$._source==="wallet"||I===null||!wt.includes(I))&&D(pn)},[$,I,pn,wt]),pe(()=>{if(!Q&&!ne)return;const ue=de=>{const rt=de.target;Q&&!ve.current?.contains(rt)&&!_.current?.contains(rt)&&!rt?.closest?.("[data-network-popover]")&&G(!1),ne&&!K.current?.contains(rt)&&!rt?.closest?.("[data-token-popover]")&&X(!1)};return document.addEventListener("mousedown",ue),()=>document.removeEventListener("mousedown",ue)},[Q,ne]);const qt=re(ue=>{if(!ue||wt.length<=1)return;const de=ue.getBoundingClientRect(),rt=220,Ot=16;N({top:de.bottom+8,left:Math.min(Math.max(Ot,de.right-rt),window.innerWidth-rt-Ot)}),G(We=>!We)},[wt.length]),jt=re(()=>he(ue=>!ue),[]);pe(()=>{if(!$||I===null||typeof window>"u")return;const ue=`spiceflow:withdraw-chain:${$.receiptTokenId||$.address.toLowerCase()}`;window.localStorage.setItem(ue,String(I))},[$,I]);const Bt=V?Gn(Y)?Y:void 0:Ie||($e?void 0:Z),Rn=hr({owner:Bt,role:"holding",includeRollupAssets:!1,sourceChains:I?[I]:[],additionalSourceTokens:Ue&&I?[{...Ue,chainId:I}]:[],enabled:e&&!!Bt&&!!Ue&&!!I}),So=Rn.walletAssets.find(ue=>J(ue.owner,Bt)&&ue.chainId===I&&J(ue.address,Ue?.address)),Zn=$?.balanceFormatted??0,fn=$?O($e?$:{...$,displaySymbol:$.displaySymbol||$.receiptTokenName,logoURI:ds}):void 0,ao=fn?.symbol||"Select token",Qn=$?.displayChainName||($e?xt($.chainId)?.displayName:"Spicenet")||"Network",mn=$?.receiptTokenDecimals??$?.decimals,St=we(()=>{if(!Ue||mn===void 0)return 0n;try{return Tn(P||"0",mn)}catch{return 0n}},[P,Ue,mn]),en=we(()=>!Ue||mn===void 0?0n:Bm(St,mn,Ue.decimals),[Ue,mn,St]),Xn=Se??dt,Dt=St,Zt=gh({enabled:e&&$e&&!!Ue,destination:Ue&&I?{...Ue,chainId:I}:null,asset:$e?$:null,amount:St,recipient:Bt,owner:Z,sourceChains:m,onSuccess:s,onError:a}),_e=Zt.supply,zt=$e&&I!==$?.chainId,Un=$e?_e.fees.ready?_e.fees.destinationAmount??0n:0n:en>(Xn??0n)?en-(Xn??0n):0n,ln=$e&&I?Ue?Io($,"spend-source",d,{...Ue,chainId:I}).reason:"USDC withdrawal is unavailable on this network. Choose another network.":null,Bn=Ce||$e&&(_e.status.isExecuting||_e.status.finalizing),Ln=_e.status.step==="success"||_e.status.paymentResult?.status==="success",Dn=re(ue=>{if($e||!I||!Ue)return[];if(St===0n||en===0n||!Bt)return[];const de=Array.isArray(ue)?ue.filter(Xt=>Xt.amount>0n):[{token:Ue.address,recipient:Bt,amount:ue??en}],rt=de.reduce((Xt,Gt)=>Xt+Gt.amount,0n);if(rt<=0n)return[];const Ot={chainId:I,calls:[],tokenTransfers:de.map(Xt=>({from:"escrow",to:Xt.recipient,token:Xt.token,amount:Xt.amount}))},We=u({destinationChainId:I,deliveryToken:Ue.address,deliveryAmount:rt,deliveryRecipient:Bt,deliveryTransfers:de,requestTimestampMs:Xe.current??Date.now()});return We?[We,Ot]:[Ot]},[$e,I,Ue,St,en,Bt,u]),On=we(()=>Dn(),[Dn]),hn=we(()=>Om(On,Ue?.address),[On,Ue?.address]),qn=j(null),et=!$e&&e&&!w&&!Ce&&!!Ue&&!!I&&St!==0n;Si({shouldRun:et&&On.length>0&&!!hn,deps:[et,On.length>0,hn],delayMs:500,onSkip:()=>{qn.current=null,Ye(null),lt(null),Ke(et&&On.length===0)},onCleanup:()=>Ke(!1),run:async({isCurrent:ue,signal:de})=>{const rt=hn;Ke(!0),lt(null);try{const Ot=await Tm({batches:On,tokenAddress:Ue.address,chainId:I,estimate:Qe,signal:de});if(!ue())return;qn.current={key:rt,quote:Ot},Ye(Ot.gasFee)}catch(Ot){if(!ue())return;qn.current=null,Ye(null),lt(Ot instanceof Error?Ot.message:"Failed to estimate gas fee")}finally{ue()&&Ke(!1)}}}),pe(()=>{Ce||Je(null)},[Ce,P,I,Ue?.address]);const Jn=re(()=>{M(!0),T("select")},[]),$n=re(()=>{Bn||t()},[t,Bn]),Mn=j(null);Mn.current={batches:On,walletAddress:ce,recipient:Bt,token:Ue,chainId:I,amount:P,grossAmountRaw:en,gasFee:dt,feeEstimate:hn&&qn.current?.key===hn?qn.current.quote.feeEstimate:null,isNon7702:w,buildWithdrawBatches:Dn,execution:{estimate:Qe,execute:ot},ui:{setIsExecuting:tt,setExecutionError:ye,setExecutionProgress:ke,setLockedGasFee:Je},executionContextRef:He,isMountedRef:gt,onWithdrawExecute:r,onWithdrawSuccess:s,buildSpicenetBatch:u};const Xo=re(()=>(Xe.current=Date.now(),Id(Mn.current)),[]),bo=re(()=>Sd(Mn.current),[]);if(pe(()=>{if(!e){fe?.();const ue=setTimeout(()=>{T(x()),M(!1),E(null),D(null),H(""),G(!1),X(!1),oe(!1),ge(""),tt(!1),ye(null),ke(null),He.current=null},300);return()=>clearTimeout(ue)}},[e,w]),pe(()=>{if(!w&&e&&F==="provider-login"&&q&&ee&&Z&&!B){const ue=setTimeout(()=>{M(!0),T("select")},100);return()=>clearTimeout(ue)}},[w,e,F,q,ee,Z,B]),!e)return null;if(F==="provider-login"&&!w)return f(Mi,{onAuthSuccess:Jn,autoTrigger:!0});if(F==="select"){const ue=parseFloat(P)||0,de=mn?Wi(Dt,mn):P||"0",rt=!!$&&Dt>$.balance,Ot=(I?xt(I):null)?.displayName||"Network",We=I?nr[I]||us:null,Xt=Ue?.symbol||"\u2014",Gt=ao,rn=Ue?Wi(Un,Ue.decimals):"0",cn=$&&$.balanceFormatted>0?$.balanceUsd/$.balanceFormatted:void 0,sn=$?.priceStatus==="stale",gn=Ad(ue,cn,sn),wn=Ad(parseFloat(rn)||0,zt?void 0:cn,sn),Nn=(!V||Gn(Y))&&(!$e||!J(Bt,Z)),kt=!w&&!$e&&ue>0&&Ue!==null,Sn=!kt||dt!==null&&!It&&!Rt,yn=ue>0&&!rt&&!pt&&!Lt&&$!==null&&I!==null&&Ue!==null&&!ln&&Bt&&Nn&&Sn&&Un>0n&&(!$e||_e.canExecute&&!Ln),Ao=!yn,mt=pt?"LOADING BALANCES":Lt?"BALANCES UNAVAILABLE":$===null?"NO BALANCE":ue===0?"ENTER AMOUNT":rt?"INSUFFICIENT BALANCE":kt&&!Sn?Rt?"GAS UNAVAILABLE":"ESTIMATING GAS":kt&&Un===0n?"AMOUNT TOO SMALL":$e&&!_e.canExecute?"REVIEW FEES":"WITHDRAW",Jt=!!Ze&&(Ze.step==="success"||Ze.step==="error"),Jo=o?.primaryColor||S.colors.primary,vr=402,kr=(Po,Cr,Wo)=>f(wh,{label:Po,loading:Wo,balance:Cr,dark:b,dk:A});return f(yo,{isOpen:!0,onClose:$n,title:"Withdraw",subtitle:f(Eh,{dark:b,dk:A}),styles:o,theme:S,dark:b,maxWidth:"486px",footerLinkText:"Spicenet accounts \u2192",overlayDimmed:!1,closeOnBackdropClick:n,overlayContent:Jt?f("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"flex-end",pointerEvents:"none",zIndex:20},children:f("div",{style:{pointerEvents:"auto"},children:f(Ni,{type:"withdraw",isOpen:!0,isProcessing:Bn,onRetryTx:()=>{bo()},onNewTx:()=>{ke(null),H(""),ye(null),He.current=null},onClose:()=>{ke(null),ye(null),tt(!1),He.current=null},onComplete:()=>{ke(null),ye(null),tt(!1),He.current=null},results:[{asset:{symbol:Ue?.symbol||"Token",address:Ue?.address||""},txHash:Ze?.txHash||"",success:Ze?.step==="success",error:Ze?.error,amount:P}],chainId:I??void 0,theme:S})})}):null,children:R("fieldset",{disabled:Bn,style:{border:0,minWidth:0,width:"calc(100% - 32px)",maxWidth:`${vr}px`,margin:"0 auto",padding:"0 0 4px 0",position:"relative"},children:[f(ha,{activity:Oe,palette:A,onRefresh:()=>{_t()}}),R("div",{style:{marginTop:"16px",marginBottom:"16px",display:"flex",flexDirection:"column",gap:"16px"},children:[f(Ah,{header:kr("Source",Zn,pt),amount:P,setAmount:H,isInsufficient:rt,sourceAmountDecimals:mn,selectedSourceAsset:$,resolvedSelectedSourceAsset:$,spiceAssets:Ct,setSelectedSourceAsset:E,sourceUsdEstimate:gn,sourceTokenLabel:Gt,sourceChainLabel:Qn,totalSelectedBalance:Zn,showSourceTokenPopover:ne,setShowSourceTokenPopover:X,tokenPopoverPos:Le,setTokenPopoverPos:Te,tokenTriggerRef:K,primaryColor:Jo,dark:b,dk:A}),f(vh,{header:kr("Destination",So?.balanceFormatted??null,Rn.loading),amount:P,receiveAmountDisplay:rn,receiveUsdEstimate:wn,selectedDestToken:Ue,destTokenSymbol:Xt,destChainName:Ot,destChainLogo:We,compatibleDestinationChains:wt,networkSwitchRef:ve,onOpenNetworkPopover:qt,showNetworkPopover:Q,setShowNetworkPopover:G,networkPopoverPos:ie,selectedChainId:I,setSelectedChainId:D,dark:b,dk:A})]}),R("div",{style:{marginBottom:S.spacing.sm},children:[f(Ih,{show:xe,onToggle:jt,showCustomAddress:V,setShowCustomAddress:oe,customRecipient:Y,setCustomRecipient:ge,externalAddress:Ie,recipientAddress:Bt,destChainName:Ot,destChainLogo:We,compatibleDestinationChains:wt,txDetailsChainSwitchRef:_,onOpenNetworkPopover:qt,sourceChainLabel:Qn,sourceDetailsLogo:$?fn?.logoURI:ds,sourceTokenLabel:Gt,amount:P,totalSourceDebitDisplay:de,receiveAmountDisplay:rn,destTokenSymbol:Xt,shouldQuoteWithdrawGas:kt,estimatingFee:It,feeError:Rt,displayedGasFee:Xn,selectedDestToken:Ue,theme:S,styles:o,dark:b,dk:A}),zt&&f(Hn,{variant:"info",size:"compact",palette:A,children:_e.fees.ready?`You receive ${rn} USDC on ${Ot}`:`USDC on ${Ot} \u2014 ${ln||_e.fees.error||_e.quote.quoteError||"waiting for quote"}`}),$e&&_e.fees.ready&&R(kn,{children:[f(wo,{palette:A,label:"TOTAL SOURCE DEBIT",value:`${de} ${Gt}`}),f(wo,{palette:A,label:"MINIMUM RECEIVED",value:`${rn} ${Xt}`}),f(wo,{palette:A,label:zt?"DESTINATION FEES":"EST. FEE",value:_e.fees.preview?.totalFee!==void 0?`${Re(_e.fees.preview.totalFee,_e.fees.preview.decimals)} ${_e.fees.preview.symbol}`:"Unavailable"})]}),zt&&_e.fees.ready&&_e.fees.source&&f(wo,{palette:A,label:"SOURCE NETWORK FEE",value:`${Re(_e.fees.source.gasFee,_e.fees.source.decimals)} ${_e.fees.source.symbol}`}),ln&&f(Hn,{variant:"warning",size:"compact",palette:A,children:ln}),$e&&R("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!zt&&f(wo,{palette:A,label:"FEE ASSET",value:_e.fees.isLoading?"Estimating...":Zt.source?`${O(Zt.source).symbol} \xB7 ${Zt.source._source==="spice"?"Spicenet":xt(Zt.source.chainId)?.displayName}`:"Unavailable"}),!zt&&f(wo,{palette:A,label:"MAXIMUM FEE FUNDING",value:_e.fees.isLoading?"Estimating...":_e.fees.ready&&Zt.source&&Zt.maximumFeeFunding!=null?`${Re(Zt.maximumFeeFunding,Zt.source.decimals)} ${O(Zt.source).symbol}`:"Unavailable"}),!Ln&&(_e.status.error||_e.fees.error||_e.quote?.quoteError)&&f(Hn,{variant:"error",size:"compact",palette:A,children:_e.status.error||_e.fees.error||_e.quote?.quoteError}),!Ln&&_e.status.finalizationError&&f(Vt,{variant:"outline",dark:b,disabled:_e.status.finalizing,onClick:()=>void _e.retryFinalization(),children:"Retry application update"}),!Ln&&_e.status.step==="error"&&_e.status.error==="Transaction fees changed. Refresh the quote before submitting."&&f(Vt,{variant:"outline",dark:b,disabled:_e.status.isExecuting,onClick:_e.retrySupply,children:"Refresh quote"}),_e.status.statusMsg&&f("span",{role:"status",children:_e.status.statusMsg})]}),$&&!pt&&wt.length===0&&f(Hn,{variant:"warning",size:"compact",palette:A,children:"No withdrawal networks are available for this asset."}),De&&f(Hn,{variant:"error",size:"compact",palette:A,fontFamily:o?.fontFamily||S.typography.fontFamily,style:{marginBottom:"12px"},children:De}),Et&&R(Hn,{variant:Lt?"error":"warning",size:"compact",palette:A,children:[Lt?"Unable to load this balance. Please try again.":"Some other balances could not be refreshed."," ",f("button",{type:"button",onClick:()=>void _t(),children:"Retry"})]}),f(Vt,{variant:"outline",fullWidth:!0,onClick:()=>{if(yn)if($e){if(zt&&Un<=0n)return;_e.submitSupply()}else Xo()},disabled:Ao||Bn,theme:S,dark:b,styles:o,style:{marginTop:"8px"},children:Bn?"EXECUTING...":$e&&Ln?"WITHDRAWN":mt})]})]})})}return null},ol=Fh,Th=({onDepositClick:e,onWithdrawClick:t,depositDisabled:n=!1,withdrawDisabled:o=!1,primaryColor:r="#EA4B4B",buttonStyles:s,dark:a=!1})=>{if(!e&&!t)return null;const i={button:{backgroundColor:r,...s}};return R("div",{style:{display:"flex",gap:"8px"},children:[e&&f(Vt,{variant:"outline",onClick:e,disabled:n,dark:a,styles:i,style:{flex:1,height:"44px",fontSize:"12px"},children:"Deposit"}),t&&f(Vt,{variant:"outline",onClick:()=>t(),disabled:o,dark:a,styles:i,style:{flex:1,height:"44px",fontSize:"12px"},children:"Withdraw"})]})},Bh=fo(Th),Oh=({section:e,dk:t,dark:n=!1})=>{const o=r=>{switch(r){case"green":return"#10b981";case"red":return"#ef4444";default:return t.textPrimary}};return R("div",{children:[f("div",{style:{fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:t.textSecondary,marginBottom:"8px",textTransform:"uppercase"},children:e.title}),f("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:e.items.map((r,s)=>R("div",{role:r.onClick?"button":void 0,tabIndex:r.onClick?0:void 0,onClick:r.onClick,onKeyDown:r.onClick?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),r.onClick?.())}:void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",backgroundColor:t.cardBg,border:n?`1px solid ${t.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[r.tokenLogoURI?f("img",{src:r.tokenLogoURI,alt:r.tokenSymbol,style:{width:"20px",height:"20px",borderRadius:"50%"}}):f("div",{style:{width:"20px",height:"20px",borderRadius:"50%",backgroundColor:n?t.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:600,color:t.textSecondary},children:r.tokenSymbol.charAt(0)}),R("div",{children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:t.textPrimary},children:r.tokenSymbol}),f("div",{style:{fontSize:"11px",color:t.textSecondary},children:r.label})]})]}),f("div",{style:{fontSize:"13px",fontWeight:600,color:o(r.valueColor)},children:r.displayValue})]},s))})]})},Rh=fo(Oh);var Dh="data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='black' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='17 1 21 5 17 9' /%3e%3cpath d='M3 11V9a4 4 0 0 1 4-4h14' /%3e%3cpolyline points='7 23 3 19 7 15' /%3e%3cpath d='M21 13v2a4 4 0 0 1-4 4H3' /%3e%3c/svg%3e";const rl=({color:e})=>R("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[f("circle",{cx:"7",cy:"7",r:"6.5",stroke:e,strokeWidth:"1.2"}),f("path",{d:"M7 6v4",stroke:e,strokeWidth:"1.2",strokeLinecap:"round"}),f("circle",{cx:"7",cy:"4.5",r:"0.7",fill:e})]}),xu=({content:e,label:t="More info",textColor:n="#f9fafb",backgroundColor:o="#111827",borderColor:r="rgba(255,255,255,0.08)",accentColor:s="#9ca3af",children:a})=>{const i=ql(),[l,c]=L(!1),u=j(null),[d,p]=L(!1),[w,m]=L(null);pe(()=>{p(!0)},[]),Bo(()=>{if(!l||!u.current)return;const h=()=>{if(!u.current)return;const y=u.current.getBoundingClientRect(),C=Math.min(220,window.innerWidth-48),S=Math.min(Math.max(y.left+y.width/2,24+C/2),window.innerWidth-24-C/2),b=y.top>84;m({top:b?y.top-10:y.bottom+10,left:S,placement:b?"top":"bottom"})};return h(),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[l]);const g=l&&d&&w?oi(R("span",{id:i,role:"tooltip",style:{position:"fixed",left:w.left,top:w.top,transform:w.placement==="top"?"translate(-50%, -100%)":"translate(-50%, 0)",width:"220px",maxWidth:"min(220px, calc(100vw - 48px))",padding:"10px 12px",borderRadius:"10px",backgroundColor:o,color:n,border:`1px solid ${r}`,boxShadow:"0 18px 45px rgba(0,0,0,0.28)",fontSize:"11px",lineHeight:"1.45",fontWeight:500,textAlign:"left",zIndex:lr.tooltip,pointerEvents:"none"},children:[e,f("span",{"aria-hidden":"true",style:{position:"absolute",left:"50%",width:"10px",height:"10px",transform:"translateX(-50%) rotate(45deg)",backgroundColor:o,...w.placement==="top"?{bottom:"-6px",borderRight:`1px solid ${r}`,borderBottom:`1px solid ${r}`}:{top:"-6px",borderTop:`1px solid ${r}`,borderLeft:`1px solid ${r}`}}})]}),document.body):null;return R(kn,{children:[f("span",{ref:u,style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:f("button",{type:"button","aria-label":t,"aria-describedby":l?i:void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),style:{width:"18px",height:"18px",borderRadius:"999px",display:"inline-flex",alignItems:"center",justifyContent:"center",border:`1px solid ${r}`,backgroundColor:"transparent",color:s,cursor:"help",padding:0,outline:"none",boxShadow:l?`0 0 0 2px ${s}26`:"none",transition:"border-color 120ms ease, box-shadow 120ms ease, color 120ms ease"},children:a||f(rl,{color:s})})}),g]})},Mh=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s=!0,address:a,dk:i,dark:l=!1,showModeToggle:c,isEmbeddedMode:u=!0,onModeToggle:d})=>{const[p,w]=L(!1),m=async()=>{a&&await bp(a)&&(w(!0),setTimeout(()=>w(!1),2e3))},g=t==="active",h=n||(g?"Active":"Inactive"),y=g?"#10b981":"#9ca3af",C=R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[R("div",{children:[f("strong",{children:"Embedded:"})," Deposit assets into ",e," account and use them here."]}),R("div",{children:[f("strong",{children:"External:"})," Use assets from your connected wallet here."]})]});return R("div",{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"4px"},children:[R("div",{style:{fontSize:"13px",fontWeight:600,color:i.textPrimary},children:[e," Account"]}),c?R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[R("button",{onClick:d,style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:l?i.hoverBg:"#f3f4f6",border:l?`1px solid ${i.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"11px",fontWeight:600,fontFamily:nt.mono,color:i.textSecondary,transition:"background-color 150ms ease, border-color 150ms ease, color 150ms ease",letterSpacing:"0.02em"},children:[f("span",{children:u?"Embedded":"External"}),f("img",{src:Dh,alt:"","aria-hidden":"true",style:{width:"11px",height:"11px",display:"block",...l?{filter:"invert(0.65)"}:{}}})]}),f(xu,{content:C,label:"Account mode info",textColor:l?i.textPrimary:"#f9fafb",backgroundColor:l?i.cardBg:"#111827",borderColor:l?i.cardBorder:"rgba(255,255,255,0.08)",accentColor:l?i.textSecondary:"#6b7280",children:f("img",{src:nl,alt:"","aria-hidden":"true",style:{width:"12px",height:"12px",display:"block",...l?{filter:"invert(0.65)"}:{}}})})]}):R("div",{style:{display:"flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",backgroundColor:l?i.hoverBg:g?"#ecfdf5":"#f3f4f6",border:l?`1px solid ${i.cardBorder}`:g?"1px solid #a7f3d0":"1px solid #e5e7eb"},children:[f("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:y}}),f("span",{style:{fontSize:"11px",fontWeight:500,color:l?i.textSecondary:g?"#065f46":"#6b7280"},children:h})]})]}),s&&f("div",{style:{fontSize:"28px",fontWeight:700,color:i.textPrimary,lineHeight:1.2,marginBottom:"2px"},children:cr(o)}),s&&r&&f("div",{style:{fontSize:"12px",color:i.textSecondary,marginBottom:"8px"},children:r}),a&&R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f("span",{style:{fontSize:"12px",fontFamily:nt.mono,color:l?i.textSecondary:"#9ca3af"},children:ns(a)}),f("button",{onClick:m,style:{padding:"2px 6px",fontSize:"10px",fontWeight:500,backgroundColor:"transparent",color:l?i.textSecondary:"#9ca3af",border:"none",cursor:"pointer",borderRadius:"4px",transition:"background-color 150ms ease, color 150ms ease"},title:"Copy address",children:p?"Copied":"Copy"})]})]})},Nh=fo(Mh),Ph={1:"ethereum",56:"binance-smart-chain",137:"polygon-pos",143:"monad",4114:"citrea",4663:"robinhood",8453:"base",42161:"arbitrum-one"},Wh=6e4,Fs=new Map;function vu(e,t){return Fs.get(e)?.logos?.get(t.toLowerCase())}function Uh(e,t){const n=Ph[e];if(!n||Fe(t))return;const o=Fs.get(e);if(o?.logos||o?.pending)return o.pending;if(o?.failedAt!==void 0&&Date.now()-o.failedAt<Wh)return;const r=Promise.resolve().then(async()=>{try{const s=await fetch(`https://tokens.coingecko.com/${n}/all.json`,{signal:AbortSignal.timeout(1e4)});if(!s.ok)throw new Error("Token list request failed");const a=await s.json(),i=new Map;for(const l of a?.tokens??[])l?.address&&l?.logoURI&&i.set(String(l.address).toLowerCase(),l.logoURI);Fs.set(e,{logos:i})}catch(s){console.warn(`[tokenLogos] Token list unavailable for chain ${e}`,s),Fs.set(e,{failedAt:Date.now()})}});return Fs.set(e,{...o,pending:r}),r}function sl(e,t,n){const[o,r]=L(),s=e||e===null||t===void 0||!n?void 0:`${t}:${n.toLowerCase()}`,a=s?vu(t,n):void 0;return pe(()=>{if(!s||a||t===void 0||!n)return;let i=!0;const l=()=>{const u=vu(t,n);i&&u&&r({token:s,logo:u})},c=Uh(t,n);return c?c.then(l):l(),()=>{i=!1}},[s,a,t,n]),e||a||(o&&o.token===s?o.logo:void 0)}const Lh=({asset:e,label:t,logo:n,dk:o,dark:r})=>{const s=sl(n,e.chainId,e.tokenAddress),[a,i]=ko.useState();return n===null?null:s&&s!==a?f("img",{src:s,alt:t,onError:()=>i(s),style:{width:"24px",height:"24px",borderRadius:"50%"}}):f("div",{style:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:r?o.hoverBg:"#e5e7eb",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:600,color:o.textSecondary},children:t.charAt(0)})},qh=e=>`${e.tokenAddress}-${e.chainId}`,zh=({spiceAssets:e,loading:t,dk:n,dark:o=!1,canDirectWithdraw:r=!1,onDirectWithdraw:s,directWithdrawState:a,onWithdrawClick:i,limit:l})=>{const c=To(),[u,d]=L(!1),p=l!==void 0&&!u?Math.max(e.length-l,0):0,w=p>0?e.slice(0,l):e,m={fontSize:"11px",fontWeight:600,letterSpacing:"1px",color:n.textSecondary,marginBottom:"8px",textTransform:"uppercase"},g={backgroundColor:n.cardBg,border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px"};return t?R("div",{children:[f("div",{style:m,children:"Idle Balances"}),[1,2].map(h=>f("div",{style:{...g,padding:"12px",marginBottom:"6px",height:"48px",animation:"pulse 1.5s ease-in-out infinite",opacity:.5}},h))]}):e.length===0?R("div",{children:[f("div",{style:m,children:"Idle Balances"}),f("div",{style:{...g,padding:"16px",textAlign:"center",fontSize:"13px",color:o?n.textSecondary:"#9ca3af"},children:"No assets yet. Deposit to get started."})]}):R("div",{children:[f("div",{style:m,children:"Idle Balances"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[w.map(h=>{const y=xt(h.chainId),C=h.chainDisplayName||y?.displayName||`Chain ${h.chainId}`,S=c({symbol:h.tokenSymbol,displaySymbol:h.tokenDisplaySymbol||h.tokenDisplayName,displayName:h.tokenDisplayName,receiptTokenId:h.receiptTokenId,receiptTokenName:h.receiptTokenName,location:h.location,logoURI:h.logoURI}),b=S.symbol,A=qh(h),O=h.receiptTokenId&&i,v=O||r&&h.directWithdraw&&!!s,x=!O&&a?.key===A?a:null,F=x?.step==="pending";return R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",...g},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f(Lh,{asset:h,label:b,logo:S.logoURI,dk:n,dark:o}),R("div",{children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:b}),f("div",{style:{fontSize:"11px",color:o?n.textSecondary:"#9ca3af"},children:C})]})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[R("div",{style:{textAlign:"right"},children:[f("div",{style:{fontSize:"13px",fontWeight:500,color:n.textPrimary},children:Ys({balance:BigInt(h.balance),decimals:h.tokenDecimals})}),f("div",{style:{fontSize:"11px",color:x?.step==="error"?n.errorText:o?n.textSecondary:"#9ca3af"},children:x?.step==="error"?x.message||"Withdraw failed":!Number.isFinite(h.usdValue)||h.usdValue<=0?"\u2014":`${cr(h.usdValue)}${h.priceStatus==="stale"?" (stale)":""}`})]}),v&&f("button",{onClick:()=>{F||(O?O(h.receiptTokenId):s(h))},disabled:F,title:O?"Choose withdrawal network":"Withdraw to external wallet",style:{padding:"6px 10px",borderRadius:"6px",border:o?`1px solid ${n.cardBorder}`:"1px solid #e5e7eb",backgroundColor:o?n.hoverBg:"#ffffff",color:n.textPrimary,fontSize:"11px",fontWeight:600,cursor:F?"default":"pointer",opacity:F?.6:1,whiteSpace:"nowrap"},children:F?"Withdrawing\u2026":"Withdraw"})]})]},h.positionId??`${h.owner??""}:${h.location??""}:${h.receiptTokenId??`${h.tokenAddress}-${h.chainId}`}`)}),l!==void 0&&e.length>l&&R("button",{onClick:()=>d(!u),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"8px 12px",...g,cursor:"pointer",color:n.textSecondary,fontSize:"12px",fontWeight:500},children:[f("span",{children:u?"Show less":`Show ${p} more`}),f("span",{style:{transform:u?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]})]})]})},Hh=fo(zh),Qh=({appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s,address:a,spiceAssets:i,spiceAssetsLoading:l,customSections:c,notice:u,onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:m,buttonStyles:g,dk:h,dark:y=!1,showModeToggle:C,isEmbeddedMode:S,onModeToggle:b,showConnectExternalCta:A,onConnectExternalWallet:O,connectExternalError:v,showHowItWorks:x=!0,canDirectWithdraw:F,onDirectWithdraw:T,directWithdrawState:B,idleBalancesLimit:M})=>{const[k,E]=L(!1);return R("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",maxHeight:"calc(80vh - 32px)",overflowY:"auto"},children:[f(Nh,{appName:e,status:t,statusLabel:n,totalUsdValue:o,breakdownSubtitle:r,showUsdSummary:s,address:a,dk:h,dark:y,showModeToggle:C,isEmbeddedMode:S,onModeToggle:b}),u&&f("div",{style:{padding:"10px 12px",borderRadius:"8px",backgroundColor:u.tone==="warning"?y?"rgba(245, 158, 11, 0.12)":"#fffbeb":u.tone==="success"?y?"rgba(16, 185, 129, 0.12)":"#ecfdf5":h.cardBg,border:u.tone==="warning"?y?"1px solid rgba(245, 158, 11, 0.35)":"1px solid #fde68a":u.tone==="success"?y?"1px solid rgba(16, 185, 129, 0.35)":"1px solid #a7f3d0":y?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",color:u.tone==="warning"?y?"#fbbf24":"#92400e":u.tone==="success"?y?"#34d399":"#047857":h.textSecondary,fontSize:"12px",lineHeight:1.45,fontWeight:500},children:u.message}),A&&R("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[f("button",{onClick:O,style:{width:"100%",padding:"10px 14px",borderRadius:"8px",backgroundColor:m||"#EA4B4B",color:"#ffffff",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:600,fontFamily:nt.ui,transition:"opacity 150ms ease"},children:"Connect External Wallet"}),v&&f("span",{style:{fontSize:"11px",color:y?h.errorText:"#b91c1c",lineHeight:1.4},children:v})]}),f("div",{style:{height:"1px",backgroundColor:y?"#2d2d2d":"#e5e7eb"}}),f(Bh,{onDepositClick:d,onWithdrawClick:p,depositDisabled:w,primaryColor:m,buttonStyles:g,dark:y}),x&&R("div",{children:[R("button",{onClick:()=>E(!k),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"8px 12px",backgroundColor:h.cardBg,border:y?`1px solid ${h.cardBorder}`:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",color:h.textSecondary,fontSize:"12px",fontWeight:500},children:[f("span",{children:"How It Works"}),f("span",{style:{transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease",fontSize:"10px"},children:"\u25BE"})]}),k&&R("div",{style:{marginTop:"6px",padding:"10px 12px",backgroundColor:y?h.cardBg:"#f0fdf4",border:y?`1px solid ${h.cardBorder}`:"1px solid #bbf7d0",borderRadius:"8px",fontSize:"12px",lineHeight:1.5,color:y?h.textSecondary:"#374151"},children:["Fund your ",e," Account from any supported chain. Once funded, transact gas-free and asset-abstracted on ",e,"."]})]}),f(Hh,{spiceAssets:i,loading:l,dk:h,dark:y,canDirectWithdraw:F,onDirectWithdraw:T,directWithdrawState:B,onWithdrawClick:p,limit:M}),c.map((I,D)=>f(Rh,{section:I,dk:h,dark:y},D))]})},Vh=fo(Qh);function jh({dark:e,onSuccess:t,onError:n}){const{disconnect:o}=$a(),{logout:r}=$l(),[s,a]=L(!1);return f(Vt,{variant:"ghost",fullWidth:!0,dark:e,loading:s,onClick:async()=>{a(!0);try{o(),await r(),t()}catch(i){n(Wn(i,"Unable to disconnect. Please try again."))}finally{a(!1)}},children:"Disconnect"})}const al=380,xr=8,Gh=[],Kh={};function ku(e){return e?.trim().replace(/^spice/i,"").replace(/[^a-z0-9]/gi,"").toUpperCase()||void 0}function Yh(e,t){const n=new Map;Object.entries(t).forEach(([r,s])=>{if(!Number.isFinite(s)||s<=0)return;n.set(r,s),n.set(r.toUpperCase(),s);const a=ku(r);a&&n.set(a,s)});const o=[e.symbol,e.displaySymbol,e.receiptTokenName,e.name,e.displayName];for(const r of o){if(!r)continue;const s=n.get(r)??n.get(r.toUpperCase());if(s!==void 0)return s;const a=ku(r);if(!a)continue;const i=n.get(a);if(i!==void 0)return i}return 0}const Cu=({appName:e,status:t="active",statusLabel:n,customSections:o=Gh,extraAssets:r=[],tokenPrices:s={},tokenLogos:a=Kh,breakdownLabels:i=[],notice:l,styles:c,dark:u,onDepositClick:d,onWithdrawClick:p,showModeToggle:w=!1,defaultMode:m,showUsdSummary:g=!0,alwaysShowEmbeddedIdle:h=!1,idleBalancesLimit:y,showDisconnect:C=!1})=>{const S=an($t),b=S?.mode!=="7702",A=!!S?.isWhitelistGateActive,O=!!S?.isWhitelistConfigured&&S?.isUserWhitelisted!==!0,v=j(!1);pe(()=>{if(!v.current){if(xp()){v.current=!0;return}m&&S?.setMode&&(S.setMode(m==="non7702"?"ondemand":"7702"),v.current=!0)}},[S,m]);const[x,F]=L(!1),[T,B]=L({top:0,bottom:0,left:0,placement:"below"}),M=j(null),k=j(null),{address:E,isConnected:I}=Fo(),D=S?.embeddedWalletAddress,P=S?.externalWalletAddress,{embeddedAddress:H}=Tr(),{brand:Q,dark:G,primaryColor:ne,dk:X}=on(c,u),V=e??Q?.appName??"Spice",oe=b&&!P,Y=!b||h,ge=Y?D||H:E,xe=we(()=>S?.supportedChainIds??Xs("mainnet"),[S?.supportedChainIds]),he=hr({owner:Y?ge:P,role:"holding",sourceChains:xe,additionalSourceTokens:r.filter(fe=>!fe.receiptTokenId&&(!fe.owner||J(fe.owner,Y?ge:P))).map(fe=>({address:fe.tokenAddress,chainId:fe.chainId,decimals:fe.tokenDecimals,symbol:fe.tokenSymbol,logoURI:fe.logoURI})),includeRollupAssets:Y,enabled:Y?!!ge:!!P}),ve=he.assets.filter(fe=>fe._source==="spice"),_=he.walletAssets,K=he.loading,ie=he.refresh,N=Y?ge:P,Le=we(()=>r.filter(fe=>!fe.owner||fe.owner.toLowerCase()===N?.toLowerCase()).map(fe=>({...fe,owner:fe.owner??N,location:fe.location??(fe.receiptTokenId?"rollup":Y?"embedded":"external")})),[r,N,Y]),Te=we(()=>{const fe=new Map(Object.entries(s).filter(([,Oe])=>Number.isFinite(Oe)&&Oe>0).map(([Oe,dt])=>[Oe.toLowerCase(),dt]));return _.map(Oe=>({owner:Oe.owner,location:Oe.location,positionId:be(Oe),tokenAddress:Oe.address,tokenSymbol:Oe.symbol,tokenDecimals:Oe.decimals,chainId:Oe.chainId,chainDisplayName:ro(Oe.chainId),balance:Oe.balance.toString(),balanceFormatted:Oe.balanceFormatted,usdValue:Oe.balanceUsd||(fe.get(`${Oe.chainId}:${Oe.address.toLowerCase()}`)??0)*Oe.balanceFormatted,logoURI:Oe.logoURI||a[Oe.symbol],directWithdraw:Y}))},[_,Le,a,s,Y]),z=we(()=>{const fe=Y?ve.map(Se=>{const Je=Se.balanceUsd||0,It=Number.isFinite(Se.balanceFormatted)?Se.balanceFormatted:0,Ke=Yh(Se,s),Rt=Se.priceStatus&&Ke>0?Ke*It:Je>0?Je:Ke*It;return{owner:Se.owner,location:Se.location,positionId:be(Se),tokenAddress:Se.address,tokenSymbol:Se.symbol,tokenDisplaySymbol:kp(Se),tokenDisplayName:vp(Se),tokenDecimals:Se.decimals,chainId:Se.chainId,chainDisplayName:Za(Se),balance:Se.balance.toString(),balanceFormatted:Se.balanceFormatted,usdValue:Rt,priceStatus:Ke>0?void 0:Se.priceStatus,logoURI:Se.logoURI,receiptTokenId:Se.receiptTokenId,receiptTokenName:Se.receiptTokenName}}):[],Oe=Se=>`${Se.owner?.toLowerCase()}:${Se.location}:${Se.chainId}:${Se.receiptTokenId??ht(Se.tokenAddress).toLowerCase()}`,dt=new Map([...he.rollupAssets,..._].map(Se=>[Oe({...Se,tokenAddress:Se.address}),Se])),Ye=new Map([...fe,...Te].map(Se=>[Oe(Se),Se]));for(const Se of oe?[]:Le){const Je=Oe(Se),It=Ye.get(Je);Ye.set(Je,It?{...Se,...It,logoURI:Se.logoURI??It.logoURI,tokenDisplayName:Se.tokenDisplayName??It.tokenDisplayName,tokenDisplaySymbol:Se.tokenDisplaySymbol??It.tokenDisplaySymbol}:Se)}return[...Ye.values()].filter(Se=>BigInt(Se.balance)>0n&&Pc({isDiscovered:dt.get(Oe(Se))?.isDiscovered,balanceUsd:Se.usdValue},!0)&&Hs(dt.get(Oe(Se))??{address:Se.tokenAddress,symbol:Se.tokenSymbol,displaySymbol:Se.tokenDisplaySymbol},S?.allowedTokens)).sort((Se,Je)=>Je.usdValue-Se.usdValue)},[Y,oe,ve,he.rollupAssets,s,Te,Le,S?.allowedTokens]),q=we(()=>z.reduce((fe,Oe)=>fe+Oe.usdValue,0),[z]),ee=we(()=>o.reduce((fe,Oe)=>fe+(Oe.totalValue??0),0),[o]),ce=q+ee,Z=we(()=>{const fe=[];q>0&&fe.push(`${cr(q)} idle`);for(const Oe of o){const dt=i.find(Ye=>Ye.sectionTitle===Oe.title)?.label||Oe.title.toLowerCase();fe.push(`${cr(Oe.totalValue??0)} ${dt}`)}return fe.join(" \xB7 ")},[q,o,i]),ae=re(()=>{if(!M.current)return;const fe=M.current.getBoundingClientRect(),Oe=window.innerHeight-fe.bottom-xr,dt=fe.top-xr,Ye=Oe>=400||Oe>=dt?"below":"above",Se=Math.max(xr,Math.min(fe.right-al,window.innerWidth-al-xr)),Je=Ye==="below"?fe.bottom+xr:fe.top-xr,It=Ye==="above"?window.innerHeight-Je:0;B({top:Je,bottom:It,left:Se,placement:Ye})},[]);Bo(()=>{x&&ae()},[x,ae]),pe(()=>{if(!x)return;const fe=Ye=>{M.current&&!M.current.contains(Ye.target)&&k.current&&!k.current.contains(Ye.target)&&F(!1)},Oe=Ye=>{Ye.key==="Escape"&&F(!1)},dt=()=>ae();return document.addEventListener("mousedown",fe),document.addEventListener("keydown",Oe),window.addEventListener("scroll",dt,{passive:!0}),window.addEventListener("resize",ae),()=>{document.removeEventListener("mousedown",fe),document.removeEventListener("keydown",Oe),window.removeEventListener("scroll",dt),window.removeEventListener("resize",ae)}},[x,ae]);const ze=Y?D||H||E:P||E,Ie=re(()=>{S?.setMode&&S.setMode(b?"7702":"ondemand")},[S,b]),[Ce,tt]=L(null);let De=null;try{De=Jl({onSuccess:()=>tt(null),onError:fe=>tt(Wn(fe,"Failed to connect wallet."))}).connectWallet}catch{De=null}const Me=re(()=>{De&&(F(!1),tt(null),De({walletChainType:"ethereum-only"}))},[De]),Pe=!P&&!!De,ye=re(()=>{F(!1),d?.()},[d]),Ze=re(fe=>{F(!1),p?.(fe)},[p]),[ke,He]=L(null),gt=Y&&!!P&&!J(N,P),Xe=re(fe=>{const Oe=_.find(dt=>dt.chainId===fe.chainId&&J(dt.address,fe.tokenAddress));Oe&&(F(!1),He(Oe))},[_]);if(typeof window>"u")return null;const ot=R("button",{ref:M,onClick:()=>F(!x),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"8px 14px",borderRadius:"9999px",backgroundColor:G?X.hoverBg:"#ffffff",border:G?`1px solid ${X.cardBorder}`:"1px solid #e5e7eb",cursor:"pointer",fontSize:"13px",fontWeight:500,fontFamily:nt.ui,color:G?X.textPrimary:"#111827",transition:"background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease",boxShadow:G?"none":"0 1px 2px rgba(0,0,0,0.05)"},children:[R("span",{children:[V," Account"]}),I&&g&&R("span",{style:{color:G?X.textSecondary:"#6b7280"},children:["\xB7 ",cr(ce)]}),f("span",{style:{fontSize:"10px",color:G?X.textSecondary:"#9ca3af",transform:x?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms ease"},children:"\u25BE"})]}),Qe=x?_l.createPortal(R(kn,{children:[f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:lr.popover},onClick:()=>F(!1)}),R("div",{ref:k,style:{position:"fixed",top:T.placement==="below"?`${T.top}px`:"auto",bottom:T.placement==="above"?`${T.bottom}px`:"auto",left:`${T.left}px`,width:`${al}px`,maxWidth:`calc(100vw - ${xr*2}px)`,maxHeight:"80vh",backgroundColor:G?X.shell:"#ffffff",border:G?`1px solid ${X.cardBorder}`:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:G?"0 10px 40px rgba(0, 0, 0, 0.5)":"0 10px 40px rgba(0, 0, 0, 0.12)",zIndex:lr.popover+1,overflow:"hidden",animation:`accountDisplayFadeIn 200ms ${Fr.out}`},children:[f(Vh,{appName:V,status:t,statusLabel:n,totalUsdValue:ce,breakdownSubtitle:Z,showUsdSummary:g,address:Y?ze:E,spiceAssets:z,spiceAssetsLoading:K,customSections:o,notice:l,onDepositClick:d?ye:void 0,onWithdrawClick:p?Ze:void 0,depositDisabled:O,primaryColor:ne,buttonStyles:c?.button,dk:X,dark:G,showModeToggle:w,isEmbeddedMode:!b,onModeToggle:Ie,showConnectExternalCta:Pe,onConnectExternalWallet:Me,connectExternalError:Ce,showHowItWorks:!A,canDirectWithdraw:gt,onDirectWithdraw:Xe,idleBalancesLimit:y}),C&&I&&f("div",{style:{padding:"0 16px 16px"},children:f(jh,{dark:G,onSuccess:()=>F(!1),onError:tt})})]}),f("style",{children:`
|
|
18
18
|
@keyframes accountDisplayFadeIn {
|
|
19
19
|
from { opacity: 0; transform: translateY(-4px); }
|
|
20
20
|
to { opacity: 1; transform: translateY(0); }
|
|
21
21
|
}
|
|
22
|
-
`})]}),document.body):null;return R(wn,{children:[nt,Qe,ke&&Zl.createPortal(f(_i,{isOpen:!0,onClose:()=>He(null),styles:c,walletAssets:{initialAsset:ke},onWithdrawSuccess:()=>{le(),He(null)}}),document.body)]})},xu=({chainId:e,name:t,size:n=16})=>{const o=e&&(Jo[e]||ql(e)?.logo)||"";return o?f("img",{src:o,alt:t||`Chain ${e}`,loading:"lazy",decoding:"async",width:n,height:n,style:{width:`${n}px`,height:`${n}px`,borderRadius:"50%",objectFit:"cover",flexShrink:0}}):null},Aa=({symbol:e,label:t,logoURI:n,chainId:o,address:r,size:s=20,theme:a})=>{const{theme:i}=sn(),l=a||i,[c,u]=L(),d={width:`${s}px`,height:`${s}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${s*.4}px`,fontWeight:l.typography.fontWeight.bold,flexShrink:0,overflow:"hidden",backgroundColor:"#ffffff"},p=tl(n===null?null:n||gi[e.toUpperCase()],o,r);if(n===null)return null;if(p&&p!==c)return f("img",{src:p,alt:t??e,loading:"lazy",decoding:"async",style:{...d,objectFit:"cover"},onError:()=>u(p)});const w=jh(e);return f("div",{style:{...d,...w.style},children:w.icon})},jh=e=>{const t=e.toUpperCase(),n={ETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},BTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USDC:{bg:"#2775CA",text:"#FFFFFF"},USDT:{bg:"#26A17B",text:"#FFFFFF"},DAI:{bg:"#F5AC37",text:"#FFFFFF"},WETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},WBTC:{bg:"#F09242",text:"#FFFFFF",icon:"\u20BF"},CBTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USD:{bg:"#26A17B",text:"#FFFFFF",icon:"$"},MATIC:{bg:"#8247E5",text:"#FFFFFF"},AVAX:{bg:"#E84142",text:"#FFFFFF"},SOL:{bg:"#9945FF",text:"#FFFFFF"},DOT:{bg:"#E6007A",text:"#FFFFFF"},ADA:{bg:"#0033AD",text:"#FFFFFF"},LINK:{bg:"#375BD2",text:"#FFFFFF"},UNI:{bg:"#FF007A",text:"#FFFFFF"},AAVE:{bg:"#B6509E",text:"#FFFFFF"},CRV:{bg:"#40E0D0",text:"#000000"}}[t];if(n)return{style:{backgroundColor:n.bg,color:n.text},icon:n.icon||t.charAt(0)};const o=t.split("").reduce((i,l)=>l.charCodeAt(0)+((i<<5)-i),0),r=Math.abs(o)%360,s=`hsl(${r}, 60%, 50%)`,a=r>180?"#FFFFFF":"#000000";return{style:{backgroundColor:s,color:a},icon:t.charAt(0)}},Gh=({selectedAsset:e,assets:t,onAssetSelect:n,showDropdown:o,onToggleDropdown:r,disabled:s=!1,theme:a,onViewAllAssets:i,getAvailableBalance:l})=>{const c=Fo(),u=I=>{const D=l?l(I):I.balance;return D===void 0?"...":Gs({balance:D,decimals:I.decimals})},{theme:d}=sn(),p=a||d,w=j(null),m=j(null),g=j(null),[h,y]=L(null);ue(()=>{if(o&&m.current){const I=()=>{if(m.current){const D=m.current.getBoundingClientRect();y({top:D.bottom+6,right:window.innerWidth-D.right})}};return I(),window.addEventListener("scroll",I,!0),window.addEventListener("resize",I),()=>{window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I)}}else y(null)},[o]),ue(()=>{const I=D=>{w.current&&!w.current.contains(D.target)&&g.current&&!g.current.contains(D.target)&&o&&r()};return o&&document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}},[o,r]);const[C,S]=L(!1),b=p.mode==="light",A={backgroundColor:"transparent",border:`1px solid ${b?"#aaaaaa":p.colors.border}`,borderRadius:"6px",color:p.colors.text,cursor:s?"not-allowed":"pointer",padding:"8px 14px 8px 10px",width:"100%",display:"flex",flexDirection:"column",gap:"4px",opacity:s?.6:1,transition:po.interactive,transform:C?"scale(0.98)":"scale(1)"},O={display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px",minWidth:0},v={display:"flex",alignItems:"center",gap:"4px",paddingTop:"4px",borderTop:`1px solid ${p.colors.border}`},x=()=>h?{position:"fixed",top:`${h.top}px`,right:`${h.right}px`,backgroundColor:p.colors.secondary,border:`1px solid ${p.colors.border}`,borderRadius:p.borderRadius.md,boxShadow:p.shadows.lg,zIndex:ur.dropdown,width:"200px",maxHeight:"300px",overflow:"auto"}:{},F={backgroundColor:"transparent",border:"none",color:p.colors.text,cursor:"pointer",padding:p.spacing.sm,width:"100%",display:"flex",alignItems:"center",gap:p.spacing.sm,transition:`background-color ${p.animation.normal}`,":hover":{backgroundColor:p.colors.surfaceHover}},T={display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1},B={fontSize:p.typography.fontSize.sm,fontWeight:p.typography.fontWeight.medium},M={fontSize:p.typography.fontSize.xs,color:p.colors.textMuted},k={backgroundColor:"transparent",border:"none",borderTop:`1px solid ${p.colors.border}`,color:p.colors.primary,cursor:"pointer",padding:"10px 12px",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",fontFamily:p.typography.fontFamily,fontSize:p.typography.fontSize.xs,fontWeight:p.typography.fontWeight.medium,textDecoration:"underline",textUnderlineOffset:"2px"},E={transition:`transform ${p.animation.normal}`,transform:o?"rotate(180deg)":"rotate(0deg)",flexShrink:0};return R(wn,{children:[f("div",{style:{position:"relative"},ref:w,children:R("div",{ref:m,style:A,onClick:s?void 0:r,onMouseLeave:()=>{S(!1)},onMouseDown:()=>S(!0),onMouseUp:()=>S(!1),children:[R("div",{style:O,children:[f("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},children:e?.asset?R(wn,{children:[f(Aa,{symbol:e.asset.symbol,label:c(e.asset).symbol,logoURI:c(e.asset).logoURI,chainId:e.asset.chainId,address:e.asset.address,theme:p,size:24}),f("span",{style:{fontSize:"15px",fontWeight:500,color:p.colors.text,lineHeight:"1.5",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c(e.asset).symbol})]}):f("span",{style:{fontSize:"14px",color:p.colors.textMuted},children:"Select"})}),f("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:b?p.colors.textMuted:"#c7ccd4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:E,children:f("path",{d:"M6 9l6 6 6-6"})})]}),e?.asset&&R("div",{style:v,children:[!e.asset.displayChainName&&f(xu,{chainId:e.asset.chainId,theme:p}),f("span",{style:{fontSize:"11px",color:p.colors.textMuted},children:ja(e.asset)})]})]})}),o&&h&&_a(R("div",{ref:g,style:x(),children:[t.length===0&&f("div",{style:{padding:"10px 12px",color:p.colors.textMuted,fontSize:p.typography.fontSize.xs},children:"No assets available"}),t.map(I=>R("button",{style:F,onClick:()=>{n(I),r()},children:[f(Aa,{symbol:I.symbol,label:c(I).symbol,logoURI:c(I).logoURI,chainId:I.chainId,address:I.address,theme:p},ve(I)),R("div",{style:T,children:[R("div",{style:{display:"flex",alignItems:"center",gap:p.spacing.xs},children:[f("span",{style:B,children:c(I).symbol}),!I.displayChainName&&f(xu,{chainId:I.chainId,theme:p})]}),R("span",{style:M,children:[u(I)," \u2022 ",ja(I)]})]})]},ve(I))),i&&R("button",{type:"button",style:k,onClick:()=>{r(),i()},children:[f("span",{children:"View all assets"}),R("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[f("path",{d:"M5 12h14"}),f("path",{d:"M13 5l7 7-7 7"})]})]})]}),document.body)]})},Kh=({assets:e,selectedAsset:t,onAssetSelect:n,onAmountChange:o,disabled:r=!1,loading:s=!1,label:a="Select Asset",showBalance:i=!0,showMaxButton:l=!0,placeholder:c="0.0",theme:u,styles:d,maxAmount:p,resolveMaxAmount:w,getAvailableBalance:m,hideAmountInput:g=!1,displayAmount:h,dark:y,onViewAllAssets:C})=>{const S=Fo(),{theme:b,primaryColor:A,dark:O,dk:v}=sn(d,y),x=u||b,F=y??O,[T,B]=L(!1),[M,k]=L(null),[E,I]=L(null),[D,P]=L(!1),[H,Q]=L(null),[G,oe]=L(t?.amount||""),$=j(0),V=t?.asset?ve(t.asset):"",re=t?.asset?m?m(t.asset):t.asset.balance:void 0,X=H??p;To(()=>()=>{$.current++},[]),To(()=>{$.current++,oe(t?.amount||""),P(!1)},[V,t?.amount]),To(()=>{$.current++,Q(null),P(!1)},[V,t?.asset.owner,t?.asset.decimals,t?.asset.balance,re,p,w,r,s]);const he=()=>{$.current++,P(!1)},be=()=>{const z=t?.asset;if(!z||re===void 0)return;if(!X)return re;const q=Jn(X,z.decimals);return q<re?q:re},fe=z=>{oe(z),o?.(z)},xe=z=>{he();const q=t?.asset,ne=js(z.startsWith(".")?`0${z}`:z,q?.decimals);if(!q||!ne)return fe(ne);const de=Jn(ne,q.decimals),J=be();fe(J!==void 0&&de>J?De(J,q.decimals):ne)},te=async()=>{const z=t?.asset;if(!z||r||s||re===void 0)return;const q=++$.current,ne=()=>$.current===q,de=w;if(H!==null){const ie=be();ie!==void 0&&fe(De(ie,z.decimals));return}if(de){P(!0);try{const ie=await de(z);if(!ne())return;if(ie!==null){const ze=js(ie,z.decimals),Se=be();if(!ze||Se===void 0)return;const Ce=Jn(ze,z.decimals)>Se?De(Se,z.decimals):ze;Q(Ce),fe(Ce);return}return}catch(ie){ne()&&console.warn("[AssetSelector] Failed to resolve max amount:",ie);return}finally{ne()&&P(!1)}}const J=be();ne()&&J!==void 0&&fe(De(J,z.decimals))},K=async z=>{if(!t||r||re===void 0)return;if(z===100)return te();he();const q=be();q!==void 0&&fe(De(q*BigInt(z)/100n,t.asset.decimals))},le=t&&re!==void 0?Number(De(re,t.asset.decimals)):0,N=parseFloat(G)||0,Le=le>0?N/le*100:0,Te={backgroundColor:d?.assetSelector?.backgroundColor||d?.secondaryBackground||(F?v.cardBg:"#e9e9e9"),border:F?`0.5px solid ${v.cardBorder}`:"0.5px solid #A8A8A7",borderRadius:d?.assetSelector?.borderRadius||"6px",padding:d?.assetSelector?.padding||"16px",height:"auto",minHeight:g?void 0:"144px",display:"flex",flexDirection:"column",gap:"8px",position:"relative",opacity:r?.6:1};return s?f("div",{style:Te,children:R("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"16px",width:"60px"}}),f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"40px",width:"150px"}})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"8px"},children:[f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"12px",width:"80px"}}),f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"6px",height:"46px",width:"128px"}})]})]})}):R("div",{style:Te,children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontFamily:d?.fontFamily||x.typography.fontFamily,fontSize:"16px",fontWeight:500,color:F?v.textSecondary:"#7d7c7b",lineHeight:"24px"},children:a}),i&&t?.asset&&R("span",{style:{fontFamily:d?.fontFamily||x.typography.fontFamily,fontSize:"12px",fontWeight:500,color:F?v.textSecondary:"#71757a",lineHeight:"16px"},children:["Balance:"," ",re===void 0?"...":Gs({balance:re,decimals:t.asset.decimals})]})]}),R("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 12px",justifyContent:g&&!h?"flex-start":"space-between",alignItems:"center",flex:1},children:[!g&&f(kr,{element:"input",ariaLabel:t?.asset?`${S(t.asset).symbol} amount`:"Amount",dataSpiceflowFocus:!0,value:G,onChange:z=>xe(z.target.value),placeholder:c,disabled:r||!t?.asset,fontFamily:d?.fontFamily||x.typography.fontFamily,color:r?F?"rgba(255, 255, 255, 0.16)":"rgba(14, 13, 11, 0.16)":G?F?"#ffffff":"#0e0d0b":F?"#4a5568":"#d1d5db",lineHeight:"1.08",maxFontSize:40,minFontSize:22,style:{width:"100%",maxWidth:"200px",flex:"1 1 200px",minWidth:"min(200px, 100%)"}}),f("div",{style:{width:"176px",maxWidth:"100%",position:"relative",flexShrink:0,marginLeft:g&&!h?void 0:"auto"},children:f(Gh,{selectedAsset:t,assets:e,onAssetSelect:z=>{he(),Q(null),n(z)},showDropdown:T,onToggleDropdown:()=>B(!T),disabled:r,theme:x,onViewAllAssets:C,getAvailableBalance:m})}),g&&h&&f(kr,{element:"span",value:h,title:h,fontFamily:d?.fontFamily||x.typography.fontFamily,color:F?"#ffffff":"#0e0d0b",lineHeight:"1.08",textAlign:"right",maxFontSize:40,minFontSize:22,style:{flex:"1 1 200px",minWidth:"min(200px, 100%)"}})]}),!g&&f("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",height:"14px"},children:[0,25,50,75,100].filter(z=>l||z!==100).map((z,q)=>{const ne=Math.abs(Le-z)<1,de=q===4,J=M===z,ie=E===z;return f("button",{onClick:()=>K(z),onMouseEnter:()=>k(z),onMouseLeave:()=>{k(null),I(null)},onMouseDown:()=>I(z),onMouseUp:()=>I(null),disabled:r||!t?.asset||re===void 0||z===100&&D,title:`${z}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:r||!t?.asset||re===void 0||z===100&&D?"not-allowed":"pointer",opacity:ne?1:J?.8:.5,transform:ie?"scale(0.85)":J?"scale(1.15)":"scale(1)",transition:po.interactive},children:f(Ji,{pct:z,isMax:de,primaryColor:A,dark:F,fillColor:F?v.textSecondary:"#3C3E42"})},z)})})]})},zr=mo(Kh);function Yh({asset:e,showLogo:t=!0,showLabel:n=!0,denomination:o="token",className:r,style:s}){const a=Fo()(e),i=o==="token"?Gs(e):Number.isFinite(e.balanceUsd)&&(e.balanceUsd>0||e.balance===0n)?pr(e.balanceUsd):"\u2014";return R("span",{className:r,style:{display:"inline-flex",alignItems:"center",gap:6,...s},children:[t&&f(Aa,{symbol:e.symbol,label:a.symbol,logoURI:a.logoURI,chainId:e.chainId,address:e.address}),n&&f("span",{children:a.symbol}),f("span",{children:i})]})}var Zh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAASrdJREFUeAHtfQeYHMd15quemc0LLhjBiAEDCAYQiUkgRQDMBNNClBlkSwdYsqQ7fz7Jd2f7fLYOgD/rbMmyLZ19n0VZMmDLFCWaFMAcRBILRjAgMElgxIAUAZAEiMXmndB19arqVVXPzkzPzM7ODq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AQD6UqcB1yu+ec1mcaGABgZMzbj2PktQKFGRGgWZgCWo5iWVPo4T4yHn1ldjdRwUQMGIUhGuV5soI2y2FyA5QvD4PyW32aiUWgedBmgwvvoEe17JktilIJUu7ym6wXBdYsZdbFJ82YMiMrdyTzf1gA3aoH/46zseWr1Hf1u7A0tAMi8UZaB1s5UQqBhOqOikelgmNFe2zAH08LLN+3ACDx3oAy/9YhfevpGBqqWGPmoIYO44F3CkzNH3HQS7RT8FDuT+sekaaUM/a5iZ5koxinEJM5vvUJK91I7rpbGyn1YiQS/i+2X1IKnxmKKYtjanezqSnTOycVZkuX8pKDSpNg9XUbiGZthTF3wu8R2V57WZNUavR2wBwrNero92SH0u5ELuB7cHdjAOcBRpeQ5e8Xmfm68WTwlfusVJ+gV7ogUi8VTsWz2pd7MUKpWTBEhQoQIESJEiBAhQoQIESJEaED8f8CLHLNBkXU/AAAAAElFTkSuQmCC",vu="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.51484 1.22476C5.04689 0.494255 5.87167 0 6.83333 0C7.79352 0 8.62302 0.493038 9.15721 1.22447C10.0512 1.08473 10.9879 1.32154 11.6665 2.00014C12.3456 2.67921 12.5823 3.61677 12.4419 4.51135C13.1714 5.04616 13.6667 5.87042 13.6667 6.83333C13.6667 7.79624 13.1714 8.62051 12.4419 9.15532C12.5823 10.0499 12.3456 10.9875 11.6665 11.6665C10.986 12.3471 10.049 12.5769 9.15858 12.4403C8.62445 13.1728 7.79434 13.6667 6.83333 13.6667C5.86959 13.6667 5.04474 13.1705 4.50996 12.44C3.619 12.5772 2.68116 12.3475 2.00014 11.6665C1.31939 10.9858 1.08903 10.0476 1.23037 9.15532C0.501138 8.62162 0 7.79824 0 6.83333C0 5.86843 0.501137 5.04504 1.23037 4.51135C1.08903 3.61904 1.31939 2.68089 2.00014 2.00014C2.67986 1.32042 3.61766 1.08457 4.51484 1.22476ZM9.20928 5.95387C9.51334 5.74624 9.59152 5.33144 9.38389 5.02737C9.17626 4.72331 8.76145 4.64514 8.45739 4.85277L8.3995 4.89229C7.48372 5.51764 6.69012 6.30153 6.05487 7.20477L5.30449 6.45518C5.044 6.19497 4.62189 6.1952 4.36168 6.45569C4.10147 6.71618 4.10169 7.13829 4.36218 7.3985L5.7 8.73489C5.84693 8.88167 6.05387 8.95158 6.25971 8.924C6.46555 8.89641 6.64677 8.77448 6.74987 8.5942C7.34322 7.55668 8.16436 6.6674 9.1514 5.9934L9.20928 5.95387Z' fill='%23EA4B4B'/%3e%3c/svg%3e",Xh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAACLCAYAAAAqND1fAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwABSQ1JREFUeAFsvQm8LelZ1vtV1Rr23uecHtLpdJLuzAlJkClABCWMXrwCgSQkKiJ6ZcgACApcryIXyFUGFRARE0jCKDIE0Bs1SJwgAbwKBBAJZJ473enu9HzOHtZQdet56/l/9e4Nq3+n995rrar6xnd43ud9v+Zf/aufGna7Xdnv96Vt27JYLMowDPFPL37qpc/13a7r6vt935flcnnu+/qe7qdX0zT1Pf2u9/VT9zg7O4trdQ89d7PZxPd4fm4L99d1ugf3VHv0Pd1D7+lz/dP7ek+/5xfXqA36fbvd1u/QPr1Pe7kvbeZa2qPv5/6vVqvaL92be9Au/a5/tEMvtZ925DbwXL6fX3lcGff8LOZJ92UseQ7zxrVco+fqO7qPrs9jxTzl9un3PG688nzo9zxfev/iK49nXnN5fvM6YL3Qh4vt53nMGfdU3xlX/eSzvFa5D/Oa+8pzaENuRx5Tvsv40JbcX67Lz2IcuJ+epT3B7/meue20+eL36Ctt0L1ov55Pmxlf+sqYswbYV3kP8Tzaq8/ZT7l/9Dfvo4trRP/0LO0d/s77jTbQV8aJ7+V5p9+8xx77k+aQ7+X7sWdo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+FLkrHP5/3uuR68bnUO9J+o6rdaJrkFfdc0vCuAJASsY1XF1PGWUuj7ttaP7C+tzP/p+10GTnIj+Vl9vvXbq56m1VCvQ6DoUqCo4k62o13n9PLTOhEzV61n7hq/6+nQMQdVHr4HaVtb2ow6M6ntb7+G6Tq+1ouurUZp6Pehz9Nr6NbJtPWzfLPv46nPQseq6fo1u/X+gRuOHSwDbkgAAAABJRU5ErkJggg==";const ol=({value:e,onChange:t,ariaLabel:n,placeholder:o,endAdornment:r,size:s="lg",dark:a,styles:i,inputRef:l,autoFocus:c})=>{const{dark:u,dk:d}=sn(i,a),p=a??u,w=s==="lg",m=w?"15px":"14px",g=w?"7px":"10px",h=w?Ga.input:Ga.sm,y=i?.fontFamily||tt.ui,C=p?d.inputBg:"#FAFAFA",S=p?d.inputBorder:"#e5e7eb",b=p?d.textPrimary:"#374151",A=p?d.textSecondary:"#9ca3af";return R("div",{style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:C,borderRadius:h,boxShadow:p?"0 2px 4px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.1)",padding:`${g} 5px`,border:`1px solid ${S}`},children:[f(pm,{style:{color:A},size:24}),f("input",{ref:l,type:"text",role:"searchbox","aria-label":n,autoComplete:"off",spellCheck:!1,autoFocus:c,"data-spiceflow-focus":!0,placeholder:o,value:e,onChange:O=>t(O.target.value),style:{flex:1,backgroundColor:C,outline:"none",border:"none",color:b,fontSize:m,fontWeight:400,fontFamily:y}}),r]})},Jh=({size:e=20,active:t=!1,dark:n=!1})=>R("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f("rect",{x:"2",y:"4",width:"16",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":n?"#9ca3af":"#374151"}),f("rect",{x:"4",y:"9",width:"12",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"}),f("rect",{x:"6",y:"14",width:"8",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"})]}),ku=({checked:e,primaryColor:t="#ef4444",dark:n=!1})=>f("div",{style:{width:"18px",height:"18px",borderRadius:"4px",border:e?"none":`2px solid ${n?"#4b5563":"#d1d5db"}`,backgroundColor:e?t:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:po.interactive},children:e&&f("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),$h=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onTokenSelect:o,walletAddress:r,supportedChainIds:s,network:a,prefetchedAssets:i,styles:l,dark:c})=>{const[u,d]=L(""),[p,w]=L(null),[m,g]=L(null),[h,y]=L(!1),[C,S]=L(new Set),b=an(_t),A=a||b?.network||"testnet",O=b?.allowedTokens,v=(b?.mode||"7702")!=="7702",x=!!b?.isWhitelistGateActive,{dark:F,primaryColor:T,dk:B}=sn(l,c),M=F?B.cardBg:"white",k=F?`${T}55`:"#F4A5A5",E=F?"0 4px 12px rgba(0, 0, 0, 0.4)":"0 4px 12px rgba(0, 0, 0, 0.15)",I=F?B.hoverBg:"#E9E9E9",D=F?B.hoverBg:"#f9fafb",P=F?B.textPrimary:"#374151",H=F?B.textPrimary:"#111827",Q=F?B.textSecondary:"#9ca3af",G=F?`${T}22`:"#FBDBDB",oe=F?`${T}55`:"#F4A5A5",$=ge(()=>s||b?.supportedChainIds||Ys(A),[s,b?.supportedChainIds,A]),V=ge(()=>$.map(z=>{const q=bt(z);return q?{id:z,name:q.displayName,icon:Jo[z]||ds}:null}).filter(Boolean),[$]),re=i===void 0,{assets:X,loading:he}=fs({address:re?r:void 0,supportedChains:$,fetchBalances:Rr,enabled:e&&re&&!!r,refreshInterval:e?5e3:0}),be=i??(re?X:[]),fe=i===null||re&&he,xe=ge(()=>(be??[]).filter(z=>So(z,"deposit-source",{allowedTokens:O,rpcOverrides:b?.rpcOverrides,liquidityVenues:b?.liquidityVenues,isWhitelistGateActive:x},void 0,void 0,{requiresEscrow:v}).eligible),[be,O,b?.rpcOverrides,x,v]),te=ge(()=>{let z=xe.filter(q=>q.balance>0n);if(C.size>0&&(z=z.filter(q=>C.has(q.chainId))),u.trim()){const q=u.toLowerCase();z=z.filter(ne=>ne.name.toLowerCase().includes(q)||ne.symbol.toLowerCase().includes(q)||ne.address.toLowerCase().includes(q))}return z=[...new Map(z.map(q=>[ve(q),q])).values()],z.sort((q,ne)=>{const de=q.balanceFormatted>0?1:0,J=ne.balanceFormatted>0?1:0;return J!==de?J-de:ne.balanceUsd!==q.balanceUsd?ne.balanceUsd-q.balanceUsd:ne.balanceFormatted-q.balanceFormatted}),z},[xe,u,C]),K=ve;ue(()=>{const z=document.createElement("link");return z.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",z.rel="stylesheet",document.head.appendChild(z),()=>{document.head.removeChild(z)}},[]),ue(()=>{e||(d(""),w(null),y(!1),S(new Set))},[e]);const le=z=>{o(z)},N=z=>{S(q=>{const ne=new Set(q);return ne.has(z)?ne.delete(z):ne.add(z),ne})},Le=()=>{S(new Set)},Te=C.size===0;return R(bo,{isOpen:e,onClose:t,title:"Select a Token",bannerSrc:Xh,bannerAlt:"Select token banner",styles:l,dark:F,closeOnBackdropClick:n,children:[f("div",{style:{padding:"20px 20px"},children:f(ol,{value:u,onChange:d,ariaLabel:"Search tokens",placeholder:"Search token name, symbol or address",dark:F,styles:l,endAdornment:R("div",{style:{position:"relative",flexShrink:0},children:[f("button",{onClick:()=>y(z=>!z),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",borderRadius:"3px",backgroundColor:h||!Te?I:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},children:f(Jh,{size:20,active:!Te,dark:F})}),h&&R("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,backgroundColor:M,borderRadius:"8px",border:`1px solid ${k}`,boxShadow:E,padding:"8px",minWidth:"220px",zIndex:100},children:[R("button",{onClick:Le,style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:z=>z.currentTarget.style.backgroundColor=D,onMouseLeave:z=>z.currentTarget.style.backgroundColor="transparent",children:[f(ku,{checked:Te,primaryColor:T,dark:F}),f("img",{src:Zh,alt:"All Networks",loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"4px",objectFit:"cover"}}),f("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:P},children:"ALL NETWORKS"})]}),V.map(z=>R("button",{onClick:()=>N(z.id),style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:q=>q.currentTarget.style.backgroundColor=D,onMouseLeave:q=>q.currentTarget.style.backgroundColor="transparent",children:[f(ku,{checked:C.has(z.id),primaryColor:T,dark:F}),f("img",{src:z.icon,alt:z.name,loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"50%"}}),f("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:P},children:z.name.toUpperCase()})]},z.id))]})]})})}),R("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"8px",maxHeight:"400px",overflowY:"auto"},children:[fe&&f("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:tt.mono,fontSize:"13px",color:Q},children:"Loading balances..."}),!fe&&te.length===0&&f("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:tt.mono,fontSize:"13px",color:Q},children:"No tokens found"}),te.map(z=>{const q=K(z),ne=p===q,de=m===q,J=bt(z.chainId)?.displayName||`Chain ${z.chainId}`;return R("button",{onClick:()=>le(z),onMouseEnter:()=>g(q),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:ne?G:"transparent",border:ne||de?`1px solid ${oe}`:"1px solid transparent",cursor:"pointer",transition:po.interactive},children:[f("div",{style:{flexShrink:0},children:f(Aa,{symbol:z.symbol,logoURI:z.logoURI,chainId:z.chainId,address:z.address,size:40})}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"2px",flex:1,minWidth:0},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f("span",{style:{fontFamily:tt.mono,fontSize:"15px",fontWeight:500,letterSpacing:"0.4px",color:H,textAlign:"left"},children:z.name}),f("img",{src:vu,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px"}})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[Jo[z.chainId]&&f("img",{src:Jo[z.chainId],alt:"",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px",borderRadius:"50%"}}),R("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:400,color:Q,textAlign:"left"},children:[z.symbol," \xB7 ",J]})]})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",flexShrink:0},children:[z.balanceUsd>0&&f("span",{style:{fontFamily:tt.mono,fontSize:"16px",fontWeight:600,color:H},children:pr(z.balanceUsd)}),R("span",{style:{fontFamily:tt.mono,fontSize:"12px",fontWeight:400,color:Q},children:[Va(z.balanceFormatted)," ",z.symbol]})]})]},q)})]})]})},Cu=({dk:e,dark:t,message:n,buttonLabel:o,onAction:r,disabled:s=!1})=>R("div",{style:{padding:"12px",backgroundColor:e.warningBg,borderRadius:"8px",border:`1px solid ${e.warningBorder}`},children:[f("p",{style:{margin:"0 0 10px 0",color:e.warningText,fontSize:"14px"},children:n}),f("button",{onClick:r,disabled:s,style:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:`1px solid ${t?e.warningBorder:"#fbbf24"}`,backgroundColor:t?e.cardBg:"white",cursor:s?"not-allowed":"pointer",fontWeight:600,fontSize:"13px",color:e.warningText,opacity:s?.6:1},children:o})]}),Iu=({dk:e,dark:t,borderRadius:n,children:o})=>f("div",{style:{padding:"8px 12px",marginBottom:"8px",backgroundColor:t?e.warningBg:"#fffbeb",border:`1px solid ${e.warningBorder}`,borderRadius:n,fontSize:"12px",color:e.warningText,lineHeight:"1.4"},children:o});var _h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAEICAMAAACQzmAoAAAAzFBMVEWgoJ/d1tbcxsbcycndzc3a2trd0NDe3t7c29vc3Nzd09Pcw8Pd2dncv7/bubnctLTg4ODbr6+BkfGSgdnm5ubcvLzr6+vy8fDcqanZ1tbbpKTf3NtILRbZzc3bnZ3UxsbT09PRvb0FUfLPzs7TtLQKCQcHUu8YFxXQqanJs7PIxsbTlpbAvb28rK2qqKjGnp5zPxrogB83NTTXch/EjYxUU1GRj46Sn+ujmNaBfnwWXPDM0O6xtuRramhbQi23XxzdUlJ6XExXhOY2buq+my/AAAAAAXRSTlP9g+pWxwAAAAlwSFlzAAALEwAACxMBAJqcGAAAIABJREFUeNrsvWtz20iyLWo+ilXgS9AMqRaEgFtj2W1vH9s7whH2HPeMv3T///90q3KtzMoCKbfnnBs34kZsWiJBEHzJtZCvlStfvPify/9c/ufyP5frl0929X/43P+5/P/ub/OffrZPjz95eeJvvgzl96nu/k8uT8/escvw7HOGp78++Kfe+D+5DM++2pPdeWoekj9V/QPVwx6fnuzOkzzAv2relkfLbl4eceV2cnPiXbmd8uXp10nv523ZKHvkptz++qtcTeUfr9xlutye2h3Tj479/+4yPfu20w+fcflF3NfE5hMexh+p/A3LrvznK2D61Pcxlp8ulttyL0Zsl5/Y9djdxYT9ETu7shdPyXt7uZOP6vAsObKTf/nxvucBZUevr5DvpL68TNeX18P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AMP1glrgSs4KlSX9cUYfhLUfcq4Q6Xu7pNIlmBlLgcIV3iCY9WeoT3sfK4QcdXlbttUHE6suSqOj+dHSzpv9+YtIkhRpJZRkfhfgg++ZqpFxTkliRkKSPT9FArU83E2llXysDgFFKXo6sh/qMj1ulT1ulQIoWKN0Yin0LTuh+MfIOTnTeuDBsafuxt+LH9nevnKadS7YG4YefJ4oOfR3xG584hSuIDofIkctFklttdBJVCkWQmqSc3vRj3hwEkH93G7azPib3z2L+ZPmW3O/uC/luctSrT157dKc8/x9/om5y7+PRdeudukyYEu0TI2GW/9r90wJ+oWyefu58eSQjmp+qtFHCdGQKsYaF43Kom98ZVa/8bzD5QeBysZbWLV1r+2O+yOfo3w5BdRjnR993sEU/X0G7giiFGD9gIL7YdaShwhy54AltrSg8RqItvth3shLfriqK+G7Id1wUfMhCDOl+U3W0HSUu9g9JCZdHdkla1vu1oi3O7K3lGutdub/kv4DywtdWPjc47nBUq+O99JBB4lpHnlpc96wk/Wy2eCvO993hjGqJJIcYhft4f9GWHFFtgUbi/xZmN3wcjZ/Xnj7frv3h0f/HzTFSOAPn3+Pf49/j3+Pf49/hfjv8Po2R9gfj4veEAAAAASUVORK5CYII=";const rl=e=>{const t=(e.id||"").toLowerCase(),n=(e.name||"").toLowerCase();return t.startsWith("io.privy.wallet")||n.includes("privy wallet")};async function sl(e,t){let n;try{return await Promise.race([e,new Promise((o,r)=>{n=setTimeout(()=>{const s=new Error("Wallet network read timed out. Please try again.");s.name="WalletReadTimeout",r(s)},Math.max(0,t-Date.now()))})])}finally{n!==void 0&&clearTimeout(n)}}const eg=({dark:e,dk:t,primaryColor:n,disabled:o,hidden:r,onConnecting:s,onError:a})=>{const[i,l]=L(!1),c=Ka(),{embeddedAddress:u}=Tr(),d=j({account:c,embeddedAddress:u});d.current={account:c,embeddedAddress:u};const{ready:p,authenticated:w,user:m}=Yl(),g={ready:p,authenticated:w,userId:m?.id},h=j(g);h.current=g;const y=j(0),C=()=>{const O=h.current;return O.ready===g.ready&&O.authenticated===g.authenticated&&O.userId===g.userId};Co.useLayoutEffect(()=>(y.current++,l(!1),s(!1),()=>{y.current++}),[p,w,m?.id,s]);const{disconnectAsync:S}=Ya(),{setActiveWallet:b}=zp(),{connectWallet:A}=Kl({onSuccess:async({wallet:O})=>{if(!p||!C())return;const v=++y.current,x=()=>v===y.current&&C();l(!0),s(!0);try{if(O.type!=="ethereum"||O.connectorType==="embedded")throw new Error("Choose an external Ethereum wallet.");b(O);const F=d.current.account;F.address&&F.connector&&!rl(F.connector)&&!ee(F.address,d.current.embeddedAddress)&&!ee(F.address,O.address)&&await S({connector:F.connector})}catch(F){x()&&a(Un(F,"Failed to connect wallet."))}finally{x()&&(l(!1),s(!1))}},onError:O=>{C()&&(y.current++,l(!1),s(!1),a(Un(O,"Failed to connect wallet.")))}});return r?null:R("button",{onClick:()=>{o||i||(y.current++,l(!0),s(!0),A({walletChainType:"ethereum-only"}))},disabled:o||i,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:i?e?t.hoverBg:"#f3f4f6":"transparent",border:`2px solid ${e?`${n}33`:`${n}55`}`,cursor:o||i?"not-allowed":"pointer",opacity:o?.6:1,transition:po.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?t.cardBg:"#f3f4f6"},children:f("img",{src:us.metamask,alt:"Browser wallet",style:{width:"26px",height:"26px",objectFit:"contain"}})}),f("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:t.textPrimary,flex:1,textAlign:"left",fontFamily:tt.mono},children:i?"Opening wallet picker...":"MetaMask / Browser Wallet"})]})},tg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onWalletSelect:o,onContinue:r,requiredChainId:s,styles:a})=>{const{dark:i,primaryColor:l,dk:c,theme:u}=sn(a),d=Co.useContext(_t),[p,w]=L(null),[m,g]=L(!1),[h,y]=L(null),[C,S]=L(!1),[b,A]=L(null),[O,v]=L(!1);ue(()=>{e||(y(null),S(!1),g(!1),A(null))},[e]);const{address:x,chain:F,connector:T,isConnected:B}=Ka(),{externalWallet:M,externalAddress:k}=Tr(),E=!!M&&!!k,I=M?.wallet.connector||M?.wallet.meta,D=Number(String(M?.wallet.chainId??"").replace(/^eip155:/,"")),P=M?.wallet.connector===T&&B&&ee(k,x)?F:bt(D)?.viemChain,{connectors:H,connectAsync:Q}=Np(),{disconnectAsync:G}=Ya(),oe=Ys(d?.network||"testnet"),$=j(M);$.current=M;const V=j(0),re=M?.wallet.connector||M?.wallet;ue(()=>(V.current++,g(!1),y(null),()=>{V.current++}),[k,re,e]);const X=(s?bt(s):null)?.displayName||P?.name||`Chain ${P?.id||s}`,he=q=>q.type==="announced"||typeof q.ready=="boolean"&&q.ready?!0:q.type==="injected"?typeof window<"u"&&!!window.ethereum:!0,be=H.filter(q=>{const ne=q.name.toLowerCase(),de=(q.id||"").toLowerCase();return d?.provider==="privy"&&rl(q)||["safe"].includes(q.type)?!1:q.type==="walletConnect"?!!q?.options?.projectId:q.type==="announced"?!0:q.type==="injected"||["metamask","rabby","phantom","coinbase","trust","rainbow"].some(J=>ne.includes(J)||de.includes(J))?he(q):!1}),fe=async q=>{if(!(C||m))try{if(S(!0),A(q.uid),y(null),await Q({connector:q}),await wo(500),$.current?.wallet.connector!==q)throw new Error("Wallet changed. Please try again.");o&&o(q.id),s&&await K(s),await wo(800)}catch(ne){console.error("Connection error:",ne),Qa(ne)?y("Connection rejected. Please try again."):y(Un(ne,"Failed to connect wallet."))}finally{S(!1),A(null)}},xe=q=>{if(q.icon)return q.icon;const ne=(q.name||"").toLowerCase();for(const[de,J]of Object.entries(us))if(ne.includes(de.toLowerCase()))return J;if(!rl(q)&&(q.type==="injected"||q.type==="announced")&&typeof window<"u"&&window.ethereum){const de=window.ethereum;if(de.isMetaMask)return us.metamask;if(de.isRabby)return us.rabby;if(de.isPhantom)return us.phantom}return null},te=async(q,ne,de)=>{const J=ne.wallet.connector||ne.wallet,ie=Date.now()+2e3;for(;Date.now()<ie;){if(await wo(Math.min(100,ie-Date.now())),de!==V.current||!ee($.current?.address,ne.address)||($.current?.wallet.connector||$.current?.wallet)!==J)return!1;try{const ze=await sl((async()=>{const Se=await ne.getEthereumProvider();return parseInt(await Se.request({method:"eth_chainId"}),16)})(),ie);if(de!==V.current||!ee($.current?.address,ne.address)||($.current?.wallet.connector||$.current?.wallet)!==J)return!1;if(ze===q)return!0}catch{}}return!1},K=async q=>{const ne=++V.current,de=$.current,J=de?.wallet.connector||de?.wallet,ie=()=>ne===V.current&&ee($.current?.address,de?.address)&&($.current?.wallet.connector||$.current?.wallet)===J;g(!0),y(null);try{if(!de)throw new Error("Wallet not available");const ze=Date.now()+2e3,Se=await sl(de.getEthereumProvider(),ze);let Ce;const et=()=>{if(!ie())throw new Error("Wallet changed. Please try again.");if(Ce)throw Ce};et(),await eu({request:async Me=>{if(Me.method!=="eth_chainId")return Se.request(Me);try{return await sl(Se.request(Me),ze)}catch(Ne){throw Ne instanceof Error&&Ne.name==="WalletReadTimeout"&&(Ce=Ne),Ne}}},q,et),!await te(q,de,ne)&&ie()&&y("Unable to switch to the correct network. Please switch manually in your wallet to continue.")}catch(ze){ie()&&(console.error("Manual chain switch error:",ze),y(bp(ze)))}finally{ie()&&g(!1)}},le=async q=>{m||(v(!1),await K(q))},N=async()=>{if(!m){if(!s){v(q=>!q);return}await K(s)}},Le=async()=>{try{const q=M?.wallet;q&&typeof q.disconnect=="function"&&q.disconnect(),T&&ee(k,x)&&await G({connector:T})}finally{y(null),S(!1),g(!1),A(null),v(!1)}},Te=E&&!m&&!C&&(!s||P?.id===s),z=E&&!m&&!C&&s&&P?.id!==s;return R(bo,{isOpen:e,onClose:t,title:"Connect Wallet",styles:a,dark:i,bannerSrc:_h,bannerAlt:"Connect wallet banner",closeOnBackdropClick:n,children:[R("div",{style:{padding:"0 24px 20px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:[h&&f(Cu,{dk:c,dark:i,message:h,buttonLabel:m?"Switching...":"Try Switch Again",onAction:N,disabled:m}),m&&R("div",{style:{padding:"12px",backgroundColor:i?c.infoBg:"#dbeafe",borderRadius:"8px",display:"flex",alignItems:"center",gap:"10px",marginTop:"20px"},children:[f(Uo,{size:20,color:i?c.infoText:"#3b82f6"}),f("p",{style:{margin:0,color:i?c.infoText:"#1e40af",fontSize:"14px"},children:"Switching network..."})]}),d?.provider==="privy"&&f(eg,{dark:i,dk:c,primaryColor:l,disabled:C||m,hidden:E,onConnecting:S,onError:y}),E&&k?R("div",{style:{border:`1px solid ${i?c.successBorder:"#02974F"}`,borderRadius:"8px",overflow:"hidden",marginTop:"20px"},children:[R("div",{style:{backgroundColor:i?c.successBg:"#00FFA81C",padding:"14px 18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#02974F",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"14px",fontWeight:"bold"},children:"\u2713"}),f("span",{className:"ibm-plex-mono",style:{color:i?c.successText:"#02974F",fontWeight:600,fontSize:"14px",letterSpacing:"0.5px"},children:"WALLET CONNECTED"})]}),f("div",{style:{width:"38px",height:"38px",borderRadius:"50%",backgroundColor:i?c.cardBg:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:I&&xe(I)?f("img",{src:xe(I),alt:I.name,style:{width:"24px",height:"24px",objectFit:"contain"}}):f("span",{style:{fontSize:"16px",fontWeight:"bold",color:i?c.textPrimary:"inherit"},children:I?.name?.charAt(0)||"W"})})]}),R("div",{style:{padding:"18px",backgroundColor:i?c.cardBg:"white"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"14px"},children:[f("span",{className:"ibm-plex-mono",style:{color:i?c.textSecondary:"#939291",fontSize:"13px",fontWeight:500,letterSpacing:"0.3px"},children:"ADDRESS:"}),f("span",{className:"ibm-plex-mono",style:{color:i?c.textPrimary:"black",fontSize:"14px",fontWeight:600,fontFamily:tt.mono,letterSpacing:"0.3px"},children:ts(k)})]}),O&&f("div",{style:{marginBottom:"12px",border:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,borderRadius:"8px",overflow:"hidden",backgroundColor:c.cardBg},children:oe.map(q=>{const ne=bt(q);if(!ne)return null;const de=P?.id===q;return R("button",{onClick:()=>{de?v(!1):le(q)},style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",backgroundColor:de?i?`${l}15`:`${l}10`:"transparent",border:"none",borderBottom:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,cursor:de?"default":"pointer",transition:"background-color 0.15s"},onMouseEnter:J=>{de||(J.currentTarget.style.backgroundColor=i?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.03)")},onMouseLeave:J=>{J.currentTarget.style.backgroundColor=de?i?`${l}15`:`${l}10`:"transparent"},children:[f("img",{src:Jo[q]||ds,alt:ne.displayName,style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"contain"}}),f("span",{style:{fontSize:"13px",fontWeight:de?600:400,color:i?c.textPrimary:"#1f2937",fontFamily:tt.mono},children:ne.displayName}),de&&f("span",{style:{marginLeft:"auto",fontSize:"11px",color:l,fontWeight:500},children:"Connected"})]},q)})}),R("button",{className:"ibm-plex-mono",onClick:Le,style:{width:"100%",padding:"10px",backgroundColor:"transparent",border:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,borderRadius:"6px",cursor:"pointer",fontSize:"13px",fontWeight:500,color:i?c.textSecondary:"#9CA3AF",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[f("span",{style:{fontSize:"16px"},children:"\u27F2"}),"DISCONNECT"]})]})]}):f(wn,{children:be.map(q=>{const ne=he(q),de=b===q.uid,J=!ne||C||de;return R("button",{onClick:()=>{J||fe(q)},onMouseEnter:()=>!J&&w(q.uid),onMouseLeave:()=>w(null),disabled:J,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:de?i?c.hoverBg:"#f3f4f6":"transparent",border:p===q.uid&&!J?`2px solid ${i?`${l}44`:`${l}66`}`:"2px solid transparent",cursor:J?"not-allowed":"pointer",opacity:J?.6:1,transition:po.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i?c.cardBg:"#f3f4f6"},children:xe(q)?f("img",{src:xe(q),alt:q.name,style:{width:"26px",height:"26px",objectFit:"contain"}}):f("span",{style:{fontSize:"16px",fontWeight:"bold",color:i?c.textPrimary:"inherit"},children:q.name.charAt(0)})}),R("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:J?i?c.inputPlaceholder:"#9ca3af":i?c.textPrimary:"#111827",flex:1,textAlign:"left",fontFamily:tt.mono},children:[de?"Connecting...":q.name,!ne&&!de&&f("span",{style:{fontSize:"12px",marginLeft:"8px"},children:"(Not detected)"})]})]},q.uid)})})]}),z&&!h&&f("div",{style:{padding:"0 24px 20px"},children:f(Cu,{dk:c,dark:i,message:`Please switch to ${X} to continue.`,buttonLabel:m?"Switching...":"Switch Network",onAction:N,disabled:m})}),f("div",{style:{padding:"0 24px 25px"},children:f(Qt,{variant:"outline",fullWidth:!0,onClick:async()=>{Te&&(await wo(300),r?await r():t())},disabled:!Te,theme:u,dark:i,styles:a,children:C?"CONNECTING...":m?"SWITCHING NETWORK...":"CONTINUE"})})]})},ng=new Set(["USDC","SUSD","USD","NUSD","USDT","DAI","ENUSD","USDG"]),Su={ETH:"ethereum",WETH:"ethereum",BTC:"bitcoin",WBTC:"bitcoin",WCBTC:"bitcoin",CBTC:"bitcoin",ECBTC:"bitcoin",ARB:"arbitrum",MATIC:"matic-network",POL:"matic-network"};let Ea=null;const og=6e4;async function Au(e){const t={},n=new Set,o={};for(const s of e){const a=s.toUpperCase();if(ng.has(a))t[a]=1;else if(Su[a]){const i=Su[a];n.add(i),o[a]=i}else t[a]=0}if(n.size===0)return t;const r=Date.now();if(Ea&&r-Ea.timestamp<og){for(const[s,a]of Object.entries(o))t[s]=Ea.prices[a]??0;return t}try{const s=Array.from(n).join(","),a=await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${s}&vs_currencies=usd`);if(!a.ok)throw new Error(`CoinGecko ${a.status}`);const i=await a.json(),l={};for(const c of n)l[c]=i[c]?.usd??0;Ea={prices:l,timestamp:r};for(const[c,u]of Object.entries(o))t[c]=l[u]??0}catch(s){console.warn("[fetchTokenPrices] CoinGecko fetch failed:",s);for(const a of Object.keys(o))t[a]=t[a]??0}return t}const rg=new Set(["cbtc","btc","wbtc","wcbtc","tbtc"]),sg=new Set(["usdc","usdt","dai","usdc.e","usdbc","usdg"]);async function ag(){const e=(await Au(["BTC"])).BTC;if(!e||e<=0)throw new Error("Failed to fetch BTC/USD price");return e}function ig(e){return rg.has(e.toLowerCase())}function lg(e){return sg.has(e.toLowerCase())}function cg(e,t,n,o){const r=10n**12n,s=BigInt(Math.round(o*Number(r))),a=t-n,i=10n**BigInt(Math.abs(a));let l=e*s/r;return a>0?l=l/i:a<0&&(l=l*i),l}function Fa(e,t){if(e===0n)return"0";const n=10n**BigInt(t),o=e/n,r=(e%n).toString().padStart(t,"0").replace(/0+$/,"");return r?`${o.toString()}.${r}`:o.toString()}function al(e,t,n){const o=`${Fa(e,t)} ${n}`;return e===0n?o:`-${o}`}const dg=({fontFamily:e,textPrimary:t,textSecondary:n,cardBg:o,cardBorder:r,resolvedDark:s,darkCardBorder:a,primaryColor:i,feePreview:l,feeOnlyAction:c=!1,asset:u,isLoading:d,errorText:p,directExecutionFeeNote:w=!1})=>{const m=Fo(),g=u&&l&&[u.symbol,u.displaySymbol,u.receiptTokenName].includes(l.symbol)?m(u).symbol:l?.symbol,h=s?a??r:"#e5e7eb",y=s?"#111214":"#111827",C=s?"rgba(255,255,255,0.08)":"rgba(17,24,39,0.12)",S="#f87171",b=s?"#d1d5db":"#4b5563",A=s?"#f3f4f6":t,[O,v]=L(!1),x=!!p,F=x?null:l,T=F?[...c?[]:[{label:"Total Required",help:"Total amount required to fund this action.",value:`${Fa(F.grossAmount,F.decimals)} ${g}`,tone:"default"}],{label:"Spicenet Fee",help:"Fees paid to Spicenet for intent processing and execution.",value:al(F.spicenetFee,F.decimals,g),tone:"fee"},{label:"Network Fee",help:"Network fee shown in the same token you are using for this action.",value:al(F.gasFee,F.decimals,g),tone:"fee"},...F.bridgeFee&&F.bridgeFee>0n?[{label:"Bridge Fee",help:"Estimated cost to rebalance liquidity for this action.",value:al(F.bridgeFee,F.decimals,g),tone:"fee"}]:[],...c?[]:[{label:"Used in TX",help:"Resulting amount of funds used in the transaction.",value:`${Fa(F.netAmount,F.decimals)} ${g}`,tone:"default"}]]:[],B=F?`${Fa(c?F.totalFee??F.gasFee+F.spicenetFee+(F.bridgeFee??0n):F.grossAmount,F.decimals)} ${g}`:null;return x?f("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:s?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:s?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f("span",{style:{fontSize:"17px",fontWeight:500,color:b,fontFamily:e,lineHeight:"24px"},children:"Fee"}),f("div",{style:{color:S,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:p})]})}):R("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:s?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:s?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:[R("button",{type:"button",onClick:()=>v(M=>!M),style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"12px",marginBottom:O?"14px":0,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[f("span",{style:{fontSize:"17px",fontWeight:500,color:b,fontFamily:e,lineHeight:"24px"},children:"Fee"}),O&&f("span",{style:{fontSize:"12px",color:n,fontFamily:e,lineHeight:"1.45"},children:"What is funded, spent, and taken as fees"})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[B&&R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",minWidth:0},children:[f("span",{style:{fontSize:"10px",fontWeight:700,color:n,fontFamily:e,letterSpacing:"0.08em",textTransform:"uppercase"},children:c?"Total fees":"Total required"}),f("span",{style:{fontSize:"14px",fontWeight:700,color:A,fontFamily:e,whiteSpace:"nowrap"},children:B})]}),d&&!w&&f("span",{style:{fontSize:"11px",fontWeight:600,color:i,fontFamily:e,padding:"6px 9px",borderRadius:"999px",backgroundColor:s?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)",border:`1px solid ${s?h:"rgba(0,0,0,0.06)"}`,whiteSpace:"nowrap"},children:"Recalculating"}),f(Mr,{color:n,direction:O?"up":"down",style:{flexShrink:0}})]})]}),f("div",{style:{overflow:"hidden",maxHeight:O?"480px":"0px",opacity:O?1:0,transition:"max-height 0.24s ease, opacity 0.18s ease"},children:w?f("p",{style:{margin:0,color:n,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:"This path executes directly from the external wallet. Network gas is shown and paid in your wallet. No Spicenet fee is charged."}):T.length>0?R(wn,{children:[f("div",{style:{display:"grid",gap:"10px"},children:T.map((M,k)=>R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",alignItems:"center",gap:"12px",paddingTop:k===0?0:"10px",borderTop:k===0?"none":`1px solid ${h}`,opacity:d?.74:1,transition:"opacity 120ms ease"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[f("span",{style:{fontSize:"12px",color:n,fontFamily:e,fontWeight:500},children:M.label}),f(gu,{content:M.help,label:`${M.label} info`,textColor:"#f9fafb",backgroundColor:y,borderColor:C,accentColor:s?"#8f96a3":"#6b7280"})]}),f("span",{style:{fontSize:"12px",color:M.tone==="fee"?S:A,fontFamily:tt.mono,textAlign:"right",fontWeight:M.label==="Used in TX"?600:500,letterSpacing:"-0.01em"},children:M.value})]},M.label))}),f("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:`1px solid ${h}`,fontSize:"11px",color:n,fontFamily:e,lineHeight:"1.45"},children:F?.gasQuoteSource==="estimated"?"Gas quote uses a live estimate.":F?.gasQuoteSource==="configured_fallback"?"Gas quote uses a configured fallback.":"Gas quote is currently zero."})]}):f("div",{style:{fontSize:"12px",color:p?S:n,fontFamily:e,opacity:p?1:.8,lineHeight:"1.5"},children:p||"Waiting for fee estimate..."})})]})},il=mo(dg);function Go(e){const t=pt(e.address);if(e.isNative||Fe(t))return!1;const n=bt(e.chainId)?.supportedTokens?.some(r=>ee(r.address,t)),o=Xt(t,e.chainId);return!!n&&!!o&&ta(o)}const Eu="spiceflow:pendingDeposit",Ta="spiceflow:pendingDepositChanged";function Fu(e,t,n){return`${Eu}:${e.toLowerCase()}:${t}:${n.toLowerCase()}`}function ll(){try{const e="__spiceflow_storage_test__";return localStorage.setItem(e,"1"),localStorage.removeItem(e),!0}catch{return!1}}function ug(e){if(!ll())return;const t=Fu(e.embeddedWalletAddress,e.chainId,e.tokenAddress);try{localStorage.setItem(t,JSON.stringify(e)),window.dispatchEvent(new Event(Ta))}catch(n){console.error("[pendingDeposit] Failed to save:",n)}}function Tu(e){if(!ll())return[];const t=`${Eu}:${e.toLowerCase()}:`,n=[],o=Date.now();for(let r=0;r<localStorage.length;r++){const s=localStorage.key(r);if(!(!s||!s.startsWith(t)))try{const a=localStorage.getItem(s);if(!a)continue;const i=JSON.parse(a);if(o-i.timestamp>6048e5){localStorage.removeItem(s);continue}n.push(i)}catch{localStorage.removeItem(s)}}return n}function Ba(e,t,n){if(!ll())return;const o=Fu(e,t,n);localStorage.removeItem(o),window.dispatchEvent(new Event(Ta))}function cl({escrowAddress:e,tokenAddress:t,isNative:n,amount:o,gasFeeAmount:r}){const s=(a,i)=>n?{to:a,value:i,data:"0x"}:{to:t,value:0n,data:Et({abi:lt,functionName:"transfer",args:[a,i]})};return[s(e,o),...r>0n?[s(yn,r)]:[]]}function pg({sourceChainId:e,selectedAsset:t,destinationChainId:n,destinationTokenAddress:o,isCrossDenomination:r,convertedUsdAmount:s}){const a=pt(t.asset.address),i=o;let l,c;if(i&&n)if(l=zs[n]?.supportedTokens?.find(u=>ee(u.address,i))?.decimals??t.asset.decimals,r){if(!s)throw new Error("Destination amount is still being calculated. Please retry in a moment.");c=s}else{const u=Jn(t.amount,t.asset.decimals);c=ho(u,t.asset.decimals,l)}return{sourceChainId:e,depositTokenAddress:a,depositAmount:t.amount,depositTokenDecimals:t.asset.decimals,destinationChainId:n,destinationTokenAddress:i,destinationAmount:c,destinationTokenDecimals:l}}async function fg(e,t){if(!e)return[];if(Array.isArray(e))return e;const n=e;return e.length>=2?n(t.depositAmount,t.depositTokenAddress):n(t)}function Bu(e,t){return!!e&&e.quotedAmount===t.amount&&e.chainId===t.chainId&&ee(e.token,t.token)}async function Oa(e,t){let n;try{n=await Ki(e,{recipient:t.recipient,tokenAddr:t.tokenAddr,isNative:t.isNative,amount:t.amount})}catch(a){throw ji(a)||Qa(a)?a:new Be("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this deposit and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:a})}t.afterSend?.(n);const o=Ct(t.chainId),{receipt:r,hash:s}=await da({client:o,hash:n,call:ka(t.recipient,t.tokenAddr,t.isNative,t.amount),confirmations:2});if(r.status!=="success")throw r.status==="reverted"&&r.transactionHash?.toLowerCase()===s.toLowerCase()&&t.afterRevert?.(),new Error(t.failureMessage);return t.settle&&await o.getBlockNumber()-r.blockNumber<2n&&await wo(3e3),s}async function mg(e){const t=e.selectedDepositAssets.filter(s=>s.asset&&s.amount&&parseFloat(s.amount)>0);if(t.length===0){console.error("[DepositModal] No valid assets for deposit"),e.setError("Please select an asset and enter an amount");return}const n=t[0];if(!e.escrowOnly&&!e.sourceAddress){e.setError("External wallet not connected. Please connect your wallet in the previous step.");return}if(!e.isNon7702){if(!e.address||!e.embeddedWalletAddress){e.setError("Couldn't find your account wallet. Try reconnecting.");return}if(!e.isReady||!e.isAuthenticated){e.setError("Sign in to continue.");return}}if(e.zeroCreditError){e.setError(e.zeroCreditError);return}if(e.depositBalanceError){e.setError(e.depositBalanceError);return}if(e.isNon7702&&e.sponsorGas&&e.nativeChainId&&n.asset.chainId!==e.nativeChainId&&e.destinationTokenAddress){e.setError("Gas sponsorship is not supported for this deposit route. Disable sponsorGas to continue.");return}e.setIsExecuting(!0),e.setError(null);let o=!1,r=!1;try{const s=e.escrowOnly||t.some(({asset:p})=>Go(p));if(!e.isNon7702&&e.mode==="7702"&&s){const p=qe.getBaseUrl(),w=new Jr;w.setBaseUrl(p);const m=AbortSignal.timeout(1e4),g=()=>{if(e.validateCurrentSession?.(),qe.getBaseUrl()!==p)throw new Error("The service changed. Review the deposit again.")};g();const h=async C=>{try{return await C}catch(S){throw g(),new Be("RELAYER_STATUS_ERROR","Deposit status is unavailable. Try again before adding cash.",{...S instanceof Be?S.context:{},cause:S})}},y=await h(w.supportsAutomaticContinuation({signal:m}));if(g(),y){const C=await h(w.getWalletActions(e.address,{pendingOnly:!0,signal:m}));g();let S=0;for(const b of C)for(const[A]of b.intents.entries()){if(S++>=4)throw new Error("A previous transaction still needs verification. Check your activity before adding cash.");const O=await h(w.getIntentRecoveryStatus(b.actionId,A,{signal:m}));if(g(),O==="unresolved")throw new Error("A previous transaction is still pending. Check your activity before adding cash.")}}}e.validateCurrentSession?.();const a=n.asset.chainId,i=Bo(a),l=Jn(n.amount,n.asset.decimals),c=t.length===1&&Bu(e.effectiveDepositFee,{amount:l,token:pt(n.asset.address),chainId:a}),u=!e.isNon7702&&!e.escrowOnly&&!Go(n.asset);if(!e.isNon7702&&t.length===1&&!u&&!c)throw new Error("Fee quote is out of date. Please wait for it to refresh.");if(c&&e.escrowOnly){const{fee:p,net:w}=e.effectiveDepositFee;if(p>=l||w<=0n)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");if(w+p!==l)throw new Error("Fee quote is out of date. Please wait for it to refresh.")}let d=e.externalWalletClient;if(!e.escrowOnly){if(e.validateCurrentSession?.(),!d)throw new Error("External wallet not connected");if(e.externalProvider){const p=await Gi({provider:e.externalProvider,account:e.sourceAddress,chainId:a});p.viemChain&&(d=p.extWc),e.validateCurrentSession?.()}}if(e.isNon7702){if(!d)throw new Error("External wallet not connected");if(!e.sourceAddress)throw new Error("External wallet address not available");if(e.nativeChainId&&a===e.nativeChainId){const p=bt(a),w=t.map(g=>`${g.amount} ${g.asset.symbol}`).join(", ");e.setConfirmationData({network:p?.displayName||`Chain ${a}`,amount:w,symbol:"",chainId:a}),e.setShowConfirmation(!0);let m=null;e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(a);for(const g of t){const h=Jn(g.amount,g.asset.decimals),y=pt(g.asset.address),C=g.asset.isNative||Fe(y),S=await Oa(d,{chainId:a,recipient:i,tokenAddr:y,isNative:C,amount:h,failureMessage:`Escrow deposit failed for ${g.asset.symbol}`,afterSend:()=>{r=!0}});m=S,e.setDirectDepositTxHash(S)}if(t[0]?.amount){const g=t[0].amount;if(e.onDepositExecute){e.setPostDepositStatus("executing");try{await e.onDepositExecute(g),e.setPostDepositStatus("success")}catch(y){console.error("ctx.onDepositExecute failed:",y),e.setPostDepositStatus("error"),e.setPostDepositError(y?.message||"Post-deposit instruction failed")}}else e.setPostDepositStatus("success");e.setDirectDepositStatus("success"),e.setPostDepositAmount(g),e.setPostDepositSuccess(!0);const h={type:"deposit",status:"success",amount:g,asset:t[0].asset.symbol,sourceChain:p?.displayName||`Chain ${a}`,txHash:m??void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:h})),e.onDepositSuccess?.(h)}e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset)}else{const p=e.destinationChainId||e.nativeChainId;if(!p)throw new Error("Destination chain ID is required for non-7702 mode. Either pass ctx.destinationChainId to <SpiceDeposit> or set ctx.nativeChainId on <SpiceFlowProvider>.");const w=Rl(a),m=i,g=[];let h=null;for(const y of t){const C=Jn(y.amount,y.asset.decimals),S=pt(y.asset.address),b=y.asset.isNative||Fe(S),A=await Oa(d,{chainId:a,recipient:m,tokenAddr:S,isNative:b,amount:C,failureMessage:`Transfer failed for ${y.asset.symbol}`,afterSend:()=>{r=!0},settle:!0});h||(h=A),e.depositDataRef.current||(e.depositDataRef.current=[]),e.depositDataRef.current.push({txHash:A,sender:e.sourceAddress,tokenAddress:S,chainId:a,amount:C.toString(),user:e.spiceBalanceUser}),g.push({tokenAddress:S,tokenAmount:C.toString(),sender:e.sourceAddress,receiver:m})}if(!h)throw new Error("No transaction hash generated");if(!e.destinationTokenAddress){const y={type:"deposit",status:"success",amount:t[0]?.amount,asset:t[0]?.asset?.symbol,sourceChain:ro(a),txHash:h};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:y})),e.onDepositSuccess?.(y),e.depositDataRef.current=null,e.bridgedAmountRef.current=t[0]?.amount||null,e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1);return}if(e.mode==="ondemand"){const y={to:w,value:BigInt(0),data:"0x"},C=await Ls(p,e.destinationTokenAddress);let S=BigInt(0);for(const M of g){const k=BigInt(M.tokenAmount),E=pt(M.tokenAddress),I=t.find(P=>{const H=pt(P.asset.address);return ee(H,E)}),D=I?I.asset.decimals:await Ls(a,jt);S+=ho(k,D,C)}e.isCrossDenomination&&e.convertedUsdAmount&&(S=e.convertedUsdAmount);const b={chainId:a,tokenTransfers:g.map(M=>({from:M.sender,to:M.receiver,token:M.tokenAddress,amount:BigInt(M.tokenAmount)})),call:y},A=e.isCrossDenomination&&e.convertedUsdAmount?[{from:e.sourceAddress,to:i,token:pt(t[0].asset.address),amount:Jn(t[0].amount,t[0].asset.decimals)}]:[],O={chainId:p,tokenTransfers:[...A,{from:"escrow",to:e.sourceAddress,token:e.destinationTokenAddress,amount:S}],call:{to:e.destinationTokenAddress,value:BigInt(0),data:"0x"}},v={mode:"non-7702:on-demand",chainBatches:[b,O]},x={user:e.sourceAddress,intents:[v]},F=await qe.createAction(x),T=F.actionId,B=F.intentIds[0];if(!h)throw new Error("No transaction hash available");e.startStatusPolling(B,Nl([{chainId:a,calls:[y]},{chainId:p,calls:[O.call]}],M=>ro(M))),await qe.executeStep(T,0,0,{action:"execute",hash:h}),t[0]?.amount&&(e.bridgedAmountRef.current=t[0].amount),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1)}else throw new Error("Presign mode not yet fully supported for cross-chain deposits")}}else{const p=[],w=[];let m=0,g;const h=c&&e.effectiveDepositFee?De(e.effectiveDepositFee.net,n.asset.decimals):n?.amount;for(const k of t){const E=Jn(k.amount,k.asset.decimals),I=c&&k===n,D=I?e.effectiveDepositFee.fee:0n,P=I?e.effectiveDepositFee.net:E,H=e.escrowOnly?E:E+D,Q=pt(k.asset.address),G=k.asset.isNative||Fe(Q);if(e.escrowOnly&&w.push({chainId:a,token:Q,amount:P+D}),!e.escrowOnly&&!Go(k.asset)){e.validateCurrentSession?.(),e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(a);const oe=await Oa(d,{chainId:a,recipient:e.address,tokenAddr:Q,isNative:G,amount:E,failureMessage:`Transfer to embedded wallet failed for ${k.asset.symbol}`,afterSend:()=>{r=!0}});m+=1,k===n&&(g=oe);continue}if(!e.escrowOnly){e.validateCurrentSession?.();let oe;await Oa(d,{chainId:a,recipient:e.address,tokenAddr:Q,isNative:G,amount:H,failureMessage:`Transfer to embedded wallet failed for ${k.asset.symbol}`,afterSend:()=>{r=!0,oe={chainId:a,tokenAddress:pt(k.asset.address),tokenSymbol:k.asset.symbol,tokenDecimals:k.asset.decimals,amount:k.amount,rawAmount:E.toString(),embeddedWalletAddress:e.address,externalWalletAddress:e.sourceAddress,timestamp:Date.now(),isNative:G},ug(oe)},afterRevert:()=>{const $=oe;$&&Tu(e.address).some(V=>Object.entries($).every(([re,X])=>V[re]===X))&&Ba(e.address,a,Q)},settle:!0})}p.push(...cl({escrowAddress:i,tokenAddress:Q,isNative:G,amount:P,gasFeeAmount:D}))}if(p.length===0){e.setDirectDepositTxHash(g??null),e.setDirectDepositStatus("success");const k={type:"deposit",status:"success",amount:n.amount,asset:n.asset.symbol,sourceChain:ro(a),txHash:g};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:k})),e.onDepositSuccess?.(k),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(n.asset);return}m>0&&e.setDirectDepositStatus("idle");const y=t.find(k=>e.escrowOnly||Go(k.asset))??n,C=await Ct(a).getBlockNumber(),S=p.map(k=>({...k,to:un(k.to)})),b={chainId:a,recentBlock:C,calls:S,tokenTransfers:[]},A=pg({sourceChainId:a,selectedAsset:y===n&&h?{...n,amount:h}:y,destinationChainId:e.destinationChainId,destinationTokenAddress:e.destinationTokenAddress,isCrossDenomination:e.isCrossDenomination,convertedUsdAmount:e.convertedUsdAmount}),O=await fg(e.depositBatches,A),v=[b,...O];if(!e.address)throw new Error("Address not available");const x=[];if(e.isCrossDenomination&&e.convertedUsdAmount&&e.destinationTokenAddress){const k=e.selectedDepositAssets[0]?.asset;if(k){const E=Jn(e.selectedDepositAssets[0].amount,k.decimals);x.push({from:e.address,to:i,token:pt(k.address),amount:E}),x.push({from:"escrow",to:e.address,token:e.destinationTokenAddress,amount:e.convertedUsdAmount})}}x.length>0&&v[1]&&(v[1].tokenTransfers=x);const F=Nl(v,k=>ro(k));let T=!1;e.validateCurrentSession?.();const B=await e.execution.execute(v,jt,0n,k=>{if(k.intentId&&!T){T=!0;for(const E of t)Ba(e.address,a,pt(E.asset.address));e.startStatusPolling(k.intentId,F)}},void 0,{userOverride:e.address,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,skipUserFundingPreflight:!0,...e.escrowOnly?{walletFundingRequirements:w}:{},...e.validateCurrentSession?{validateBeforeSubmit:e.validateCurrentSession}:{}});if(e.refreshAssets(),e.onDepositExecute&&y.amount)try{e.setPostDepositStatus("executing"),await e.onDepositExecute(h||y.amount),e.setPostDepositStatus("success"),e.setPostDepositAmount(h||y.amount),e.setPostDepositSuccess(!0)}catch(k){console.error("ctx.onDepositExecute failed (7702):",k),e.setPostDepositStatus("error"),e.setPostDepositError(k?.message||"Post-deposit instruction failed");return}const M={type:"deposit",status:"success",amount:y===n&&h||y.amount,asset:y.asset.symbol,sourceChain:ro(a),txHash:/^0x[0-9a-f]{64}$/i.test(B??"")?B:void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:M})),e.onDepositSuccess?.(M),e.onDepositSelect&&e.onDepositSelect(y.asset)}}catch(s){if(e.isCurrent&&!e.isCurrent())return;o=!0,console.error("[DepositModal] executeDeposit CAUGHT ERROR:",s),console.error("[DepositModal] Error details:",{message:s?.message,code:s?.code,name:s?.name,stack:s?.stack?.slice(0,500)});const a=s instanceof Be&&s.context.submissionStatus==="unknown";(r||a)&&(e.setRetryBlocked?.(!0),e.refreshAssets());let i=s instanceof Be&&s.context.submissionStatus==="rejected"&&(s.context.httpStatus===401||s.context.httpStatus===403)?"This app's deposit configuration was rejected. Contact the app's support team.":Un(s,"Deposit failed");r&&(i+=" A wallet transfer was already submitted. Close this deposit and check your activity and balances before continuing."),e.setError(Un(s instanceof Be?new Be(s.code,i,s.context):new Error(i),"Deposit failed")),a||e.clearStatus()}finally{if(e.isCurrent&&!e.isCurrent())return;e.setIsExecuting(!1),o&&e.setDirectDepositStatus("idle"),o||!e.getCurrentIntentStatus()&&e.getCurrentPostDepositStatus()!=="idle"||e.setShowConfirmation(!1)}}async function hg(e){const{asset:t,assetIndex:n,selectedAssetCount:o,address:r,escrowOnly:s,isNon7702:a}=e;if(n!==0||a||o>1||!r||t.balance<=0n)return null;if(!s&&!Go(t))return es(t.balance,t.decimals);const i=await Ra({address:r,depositQuote:{asset:t,amount:t.balance,token:pt(t.address),chainId:t.chainId},escrowOnly:s}),l=s?t.balance:t.balance>i.fee?t.balance-i.fee:0n;return es(l,t.decimals)}async function Ra(e){const{address:t,depositQuote:n,escrowOnly:o}=e,{asset:r,amount:s,token:a,chainId:i}=n;let l=s>1n?1n:0n;const c=o&&e.requireSimulation;for(let u=0;u<5;u++){if(c&&l>=s)throw new Error("Cash amount does not cover the order funding fee");const d=cl({escrowAddress:Bo(i),tokenAddress:pt(a),amount:o?s-l:s,gasFeeAmount:l,isNative:r.isNative===!0}),p={chainId:i,tokenTransfers:[],calls:d},w=await qe.estimateBatchGas({user:t,outputToken:a,chainBatches:[{...p,hash:Io([p])[0].hash}],signal:e.signal,requireSimulation:e.requireSimulation});if(e.requireSimulation&&(w.gasQuoteSource!=="estimated"||w.simulationVerified!==!0||w.gasFee<0n))throw new Error("A verified deposit fee quote is unavailable");if(c&&w.gasFee>l){l=w.gasFee;continue}const m=c?l:w.gasFee;if(o&&m>=s)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");const g=o?s-m:s;return{fee:m,net:g,quotedAmount:s,token:a,chainId:i}}throw new Error("Order funding fees did not converge. Prepare the order again")}const gg=({selectedDepositAssets:e,depositAssets:t,secondAssetOptions:n,loadingAssets:o,allowSecondAsset:r,theme:s,styles:a,dark:i,dk:l,onSelect:c,onAmountChange:u,onAdd:d,onRemove:p,resolveMaxAmount:w,onViewAllAssets:m})=>{const g=ge(()=>Array.from({length:Math.max(1,e.length)},(h,y)=>w?C=>w(C,y):void 0),[w,e.length]);return R(wn,{children:[e.map((h,y)=>{const C=e.length===1?"Deposit":`Asset ${y+1}`;return R("div",{style:{marginBottom:s.spacing.md,position:"relative"},children:[f(zr,{assets:y===0?t:n,selectedAsset:h||void 0,onAssetSelect:S=>c(S,y),onAmountChange:S=>u(S,y),loading:o,label:C,showBalance:!0,theme:s,styles:a,allowSecondAsset:r&&y===0,onAddAsset:d,canAddAsset:e.length===1&&!!e[0]?.asset,resolveMaxAmount:g[y],onViewAllAssets:y===0?m:void 0}),y===1&&f("button",{onClick:()=>p(y),style:{position:"absolute",top:"-2px",right:"-2px",background:i?`${l.cardBg}ee`:"rgba(255, 255, 255, 0.9)",border:`1px solid ${l.cardBorder}`,borderRadius:"50%",cursor:"pointer",color:s.colors.textMuted,fontSize:"16px",padding:"2px",width:"22px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",transition:po.interactive,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},onMouseEnter:S=>{S.currentTarget.style.color=i?l.errorText:"#ef4444",S.currentTarget.style.background=i?l.cardBg:"#fff",S.currentTarget.style.borderColor=i?l.errorBorder:"#fecaca"},onMouseLeave:S=>{S.currentTarget.style.color=s.colors.textMuted,S.currentTarget.style.background=i?`${l.cardBg}ee`:"rgba(255, 255, 255, 0.9)",S.currentTarget.style.borderColor=i?l.cardBorder:"#e5e7eb"},title:"Remove asset",children:"\xD7"})]},`asset-${y}`)}),e.length===0&&f("div",{style:{marginBottom:s.spacing.md},children:f(zr,{assets:t,selectedAsset:void 0,onAssetSelect:h=>c(h,0),onAmountChange:h=>u(h,0),loading:o,label:"Deposit",showBalance:!0,theme:s,styles:a,allowSecondAsset:r,onAddAsset:d,canAddAsset:!1,resolveMaxAmount:g[0]},"initial-selector")})]})},wg=mo(gg),dl=({onClick:e,label:t="Add Funds",color:n,fontFamily:o,style:r})=>{const[s,a]=L(!1);return R("button",{type:"button",onClick:e,"data-spiceflow-focus":!0,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",gap:"4px",color:n,fontSize:"12px",fontWeight:500,fontFamily:o,textDecoration:"underline",textUnderlineOffset:"2px",whiteSpace:"nowrap",opacity:s?.75:1,transition:"opacity 150ms ease",...r},children:[t,R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[f("circle",{cx:"6",cy:"6",r:"5"}),f("path",{d:"M6 4v4M4 6h4",strokeLinecap:"round"})]})]})},yg="This deposit didn't confirm in time. It may still have gone through, so check the explorer and refresh your balance before retrying.";function bg(e){return e?.overallStatus!=="failed"?{isFailed:!1,failureMessage:null}:{isFailed:!0,failureMessage:e.steps?.find(t=>t.status==="failed"&&!!t.error)?.error||yg}}const Da=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),f("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),xg=({isOpen:e,onClose:t,onConfirm:n,data:o,isExecuting:r=!1,retryBlocked:s=!1,directDepositStatus:a="idle",error:i=null,theme:l,styles:c,intentStatus:u,postDepositStatus:d="idle",hasPostDepositInstruction:p=!1})=>{const{dark:w,dk:m,theme:g}=sn(c),[h,y]=L(!1),[C,S]=L(!0);ue(()=>{e||y(!1)},[e]);const b=()=>{y(!0),setTimeout(()=>{t()},300)},A=()=>{S(!C)};if(!e||!o)return null;const O=u?.overallStatus==="processing",v=u?.overallStatus==="success"||a==="success",x=!!u,{isFailed:F,failureMessage:T}=bg(u),B=!x&&p,M=B&&d==="executing",k=B&&d==="success",E=v&&p&&(d==="idle"||d==="executing")||M,I=v&&(!p||d==="success"||d==="error")||k||B&&d==="error",D=w?m.cardBg:"#ffffff",P=w?"0 -4px 20px rgba(0, 0, 0, 0.4)":"0 -4px 20px rgba(0, 0, 0, 0.15)",H=m.textSecondary,Q=w?m.textPrimary:"#1f2937",G=w?m.textPrimary:"#1f2937",oe=re=>f("div",{style:{marginBottom:l.spacing.md,padding:l.spacing.md,backgroundColor:c?.errorMessage?.backgroundColor||(l.mode==="light"?"#fef2f2":`${l.colors.error}20`),border:`1px solid ${c?.errorMessage?.borderColor||(l.mode==="light"?"#fecaca":l.colors.error)}`,borderRadius:c?.errorMessage?.borderRadius||l.borderRadius.md},children:f("p",{style:{color:c?.errorMessage?.color||l.colors.error,fontSize:c?.errorMessage?.fontSize||l.typography.fontSize.sm,margin:0,fontFamily:c?.errorMessage?.fontFamily||c?.fontFamily||l.typography.fontFamily},children:re})}),$={fontSize:l.typography.fontSize.sm,fontWeight:500,color:H,fontFamily:tt.mono,letterSpacing:"0.5px"},V=(re,X,he=Q)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:$,children:re}),f("span",{style:{fontSize:l.typography.fontSize.sm,fontWeight:500,color:he,fontFamily:tt.mono},children:X})]});return R("div",{style:{position:v||k?"relative":"absolute",bottom:0,left:0,right:0,zIndex:10,animation:h?"slideDown 0.3s ease-in":"slideUp 0.3s ease-out",pointerEvents:"auto"},children:[R("div",{style:{backgroundColor:D,borderRadius:"0",width:"100%",maxWidth:"522px",margin:"0 auto",padding:"18px 24px",boxShadow:P},children:[R(wn,{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:l.spacing.md},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},onClick:A,children:[f("span",{style:{fontSize:"13px",fontWeight:l.typography.fontWeight.medium,color:H,fontFamily:c?.fontFamily||l.typography.fontFamily},children:"Transaction Details"}),f(Mr,{color:H,direction:C?"up":"down"})]}),!v&&!k&&f("button",{onClick:re=>{re.stopPropagation(),t()},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:H,transition:"color 0.2s ease"},onMouseEnter:re=>{re.currentTarget.style.color=G},onMouseLeave:re=>{re.currentTarget.style.color=H},children:f(gs,{size:16})})]}),R("div",{style:{marginBottom:l.spacing.lg,display:"flex",flexDirection:"column",gap:l.spacing.md,overflow:"hidden",maxHeight:C?"200px":"0px",opacity:C?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease"},children:[V("NETWORK",o.network),V("DEPOSITED AMOUNT",o.amount,l.colors.success),o.creditedAmount&&V("CREDITED AMOUNT",o.creditedAmount),o.spicenetFee&&V("SPICENET FEE",o.spicenetFee),o.networkFee&&V("EST. NETWORK FEE",o.networkFee)]})]}),i&&!x&&oe(i),F&&T&&oe(T),f(Qt,{onClick:I||F||s?b:n,variant:"outline",fullWidth:!0,disabled:r||O||E||M,styles:c,theme:g,children:r||O||M||E?"PROCESSING...":I?"CONTINUE \u2192":F||s?"CLOSE":"CONFIRM DEPOSIT"}),I&&d!=="error"&&f("p",{style:{marginTop:l.spacing.md,marginBottom:0,fontSize:"14px",color:H,textAlign:"center",fontFamily:c?.fontFamily||l.typography.fontFamily},children:"Your funds are now available in your Account"}),f("div",{style:{marginTop:l.spacing.md,display:"flex",justifyContent:"center",alignItems:"center"},children:f("img",{src:hd,alt:"Powered by SpiceNet",style:{height:"auto",width:"130px",opacity:1,filter:w?"brightness(0) invert(1) opacity(0.7)":"none"}})})]}),f("style",{children:`
|
|
22
|
+
`})]}),document.body):null;return R(kn,{children:[ot,Qe,ke&&_l.createPortal(f(ol,{isOpen:!0,onClose:()=>He(null),styles:c,walletAssets:{initialAsset:ke},onWithdrawSuccess:()=>{ie(),He(null)}}),document.body)]})},Iu=({chainId:e,name:t,size:n=16})=>{const o=e&&(nr[e]||Vl(e)?.logo)||"";return o?f("img",{src:o,alt:t||`Chain ${e}`,loading:"lazy",decoding:"async",width:n,height:n,style:{width:`${n}px`,height:`${n}px`,borderRadius:"50%",objectFit:"cover",flexShrink:0}}):null},Fa=({symbol:e,label:t,logoURI:n,chainId:o,address:r,size:s=20,theme:a})=>{const{theme:i}=on(),l=a||i,[c,u]=L(),d={width:`${s}px`,height:`${s}px`,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${s*.4}px`,fontWeight:l.typography.fontWeight.bold,flexShrink:0,overflow:"hidden",backgroundColor:"#ffffff"},p=sl(n===null?null:n||xi[e.toUpperCase()],o,r);if(n===null)return null;if(p&&p!==c)return f("img",{src:p,alt:t??e,loading:"lazy",decoding:"async",style:{...d,objectFit:"cover"},onError:()=>u(p)});const w=Zh(e);return f("div",{style:{...d,...w.style},children:w.icon})},Zh=e=>{const t=e.toUpperCase(),n={ETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},BTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USDC:{bg:"#2775CA",text:"#FFFFFF"},USDT:{bg:"#26A17B",text:"#FFFFFF"},DAI:{bg:"#F5AC37",text:"#FFFFFF"},WETH:{bg:"#627EEA",text:"#FFFFFF",icon:"\u039E"},WBTC:{bg:"#F09242",text:"#FFFFFF",icon:"\u20BF"},CBTC:{bg:"#F7931A",text:"#FFFFFF",icon:"\u20BF"},USD:{bg:"#26A17B",text:"#FFFFFF",icon:"$"},MATIC:{bg:"#8247E5",text:"#FFFFFF"},AVAX:{bg:"#E84142",text:"#FFFFFF"},SOL:{bg:"#9945FF",text:"#FFFFFF"},DOT:{bg:"#E6007A",text:"#FFFFFF"},ADA:{bg:"#0033AD",text:"#FFFFFF"},LINK:{bg:"#375BD2",text:"#FFFFFF"},UNI:{bg:"#FF007A",text:"#FFFFFF"},AAVE:{bg:"#B6509E",text:"#FFFFFF"},CRV:{bg:"#40E0D0",text:"#000000"}}[t];if(n)return{style:{backgroundColor:n.bg,color:n.text},icon:n.icon||t.charAt(0)};const o=t.split("").reduce((i,l)=>l.charCodeAt(0)+((i<<5)-i),0),r=Math.abs(o)%360,s=`hsl(${r}, 60%, 50%)`,a=r>180?"#FFFFFF":"#000000";return{style:{backgroundColor:s,color:a},icon:t.charAt(0)}},Xh=({selectedAsset:e,assets:t,onAssetSelect:n,showDropdown:o,onToggleDropdown:r,disabled:s=!1,theme:a,onViewAllAssets:i,getAvailableBalance:l})=>{const c=To(),u=I=>{const D=l?l(I):I.balance;return D===void 0?"...":Ys({balance:D,decimals:I.decimals})},{theme:d}=on(),p=a||d,w=j(null),m=j(null),g=j(null),[h,y]=L(null);pe(()=>{if(o&&m.current){const I=()=>{if(m.current){const D=m.current.getBoundingClientRect();y({top:D.bottom+6,right:window.innerWidth-D.right})}};return I(),window.addEventListener("scroll",I,!0),window.addEventListener("resize",I),()=>{window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I)}}else y(null)},[o]),pe(()=>{const I=D=>{w.current&&!w.current.contains(D.target)&&g.current&&!g.current.contains(D.target)&&o&&r()};return o&&document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}},[o,r]);const[C,S]=L(!1),b=p.mode==="light",A={backgroundColor:"transparent",border:`1px solid ${b?"#aaaaaa":p.colors.border}`,borderRadius:"6px",color:p.colors.text,cursor:s?"not-allowed":"pointer",padding:"8px 14px 8px 10px",width:"100%",display:"flex",flexDirection:"column",gap:"4px",opacity:s?.6:1,transition:uo.interactive,transform:C?"scale(0.98)":"scale(1)"},O={display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px",minWidth:0},v={display:"flex",alignItems:"center",gap:"4px",paddingTop:"4px",borderTop:`1px solid ${p.colors.border}`},x=()=>h?{position:"fixed",top:`${h.top}px`,right:`${h.right}px`,backgroundColor:p.colors.secondary,border:`1px solid ${p.colors.border}`,borderRadius:p.borderRadius.md,boxShadow:p.shadows.lg,zIndex:lr.dropdown,width:"200px",maxHeight:"300px",overflow:"auto"}:{},F={backgroundColor:"transparent",border:"none",color:p.colors.text,cursor:"pointer",padding:p.spacing.sm,width:"100%",display:"flex",alignItems:"center",gap:p.spacing.sm,transition:`background-color ${p.animation.normal}`,":hover":{backgroundColor:p.colors.surfaceHover}},T={display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1},B={fontSize:p.typography.fontSize.sm,fontWeight:p.typography.fontWeight.medium},M={fontSize:p.typography.fontSize.xs,color:p.colors.textMuted},k={backgroundColor:"transparent",border:"none",borderTop:`1px solid ${p.colors.border}`,color:p.colors.primary,cursor:"pointer",padding:"10px 12px",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",fontFamily:p.typography.fontFamily,fontSize:p.typography.fontSize.xs,fontWeight:p.typography.fontWeight.medium,textDecoration:"underline",textUnderlineOffset:"2px"},E={transition:`transform ${p.animation.normal}`,transform:o?"rotate(180deg)":"rotate(0deg)",flexShrink:0};return R(kn,{children:[f("div",{style:{position:"relative"},ref:w,children:R("div",{ref:m,style:A,onClick:s?void 0:r,onMouseLeave:()=>{S(!1)},onMouseDown:()=>S(!0),onMouseUp:()=>S(!1),children:[R("div",{style:O,children:[f("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},children:e?.asset?R(kn,{children:[f(Fa,{symbol:e.asset.symbol,label:c(e.asset).symbol,logoURI:c(e.asset).logoURI,chainId:e.asset.chainId,address:e.asset.address,theme:p,size:24}),f("span",{style:{fontSize:"15px",fontWeight:500,color:p.colors.text,lineHeight:"1.5",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c(e.asset).symbol})]}):f("span",{style:{fontSize:"14px",color:p.colors.textMuted},children:"Select"})}),f("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:b?p.colors.textMuted:"#c7ccd4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:E,children:f("path",{d:"M6 9l6 6 6-6"})})]}),e?.asset&&R("div",{style:v,children:[!e.asset.displayChainName&&f(Iu,{chainId:e.asset.chainId,theme:p}),f("span",{style:{fontSize:"11px",color:p.colors.textMuted},children:Za(e.asset)})]})]})}),o&&h&&oi(R("div",{ref:g,style:x(),children:[t.length===0&&f("div",{style:{padding:"10px 12px",color:p.colors.textMuted,fontSize:p.typography.fontSize.xs},children:"No assets available"}),t.map(I=>R("button",{style:F,onClick:()=>{n(I),r()},children:[f(Fa,{symbol:I.symbol,label:c(I).symbol,logoURI:c(I).logoURI,chainId:I.chainId,address:I.address,theme:p},be(I)),R("div",{style:T,children:[R("div",{style:{display:"flex",alignItems:"center",gap:p.spacing.xs},children:[f("span",{style:B,children:c(I).symbol}),!I.displayChainName&&f(Iu,{chainId:I.chainId,theme:p})]}),R("span",{style:M,children:[u(I)," \u2022 ",Za(I)]})]})]},be(I))),i&&R("button",{type:"button",style:k,onClick:()=>{r(),i()},children:[f("span",{children:"View all assets"}),R("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[f("path",{d:"M5 12h14"}),f("path",{d:"M13 5l7 7-7 7"})]})]})]}),document.body)]})},Jh=({assets:e,selectedAsset:t,onAssetSelect:n,onAmountChange:o,disabled:r=!1,loading:s=!1,label:a="Select Asset",showBalance:i=!0,showMaxButton:l=!0,placeholder:c="0.0",theme:u,styles:d,maxAmount:p,resolveMaxAmount:w,getAvailableBalance:m,hideAmountInput:g=!1,displayAmount:h,dark:y,onViewAllAssets:C})=>{const S=To(),{theme:b,primaryColor:A,dark:O,dk:v}=on(d,y),x=u||b,F=y??O,[T,B]=L(!1),[M,k]=L(null),[E,I]=L(null),[D,P]=L(!1),[H,Q]=L(null),[G,ne]=L(t?.amount||""),X=j(0),V=t?.asset?be(t.asset):"",oe=t?.asset?m?m(t.asset):t.asset.balance:void 0,Y=H??p;Bo(()=>()=>{X.current++},[]),Bo(()=>{X.current++,ne(t?.amount||""),P(!1)},[V,t?.amount]),Bo(()=>{X.current++,Q(null),P(!1)},[V,t?.asset.owner,t?.asset.decimals,t?.asset.balance,oe,p,w,r,s]);const ge=()=>{X.current++,P(!1)},xe=()=>{const z=t?.asset;if(!z||oe===void 0)return;if(!Y)return oe;const q=Kn(Y,z.decimals);return q<oe?q:oe},he=z=>{ne(z),o?.(z)},ve=z=>{ge();const q=t?.asset,ee=Ks(z.startsWith(".")?`0${z}`:z,q?.decimals);if(!q||!ee)return he(ee);const ce=Kn(ee,q.decimals),Z=xe();he(Z!==void 0&&ce>Z?Re(Z,q.decimals):ee)},_=async()=>{const z=t?.asset;if(!z||r||s||oe===void 0)return;const q=++X.current,ee=()=>X.current===q,ce=w;if(H!==null){const ae=xe();ae!==void 0&&he(Re(ae,z.decimals));return}if(ce){P(!0);try{const ae=await ce(z);if(!ee())return;if(ae!==null){const ze=Ks(ae,z.decimals),Ie=xe();if(!ze||Ie===void 0)return;const Ce=Kn(ze,z.decimals)>Ie?Re(Ie,z.decimals):ze;Q(Ce),he(Ce);return}return}catch(ae){ee()&&console.warn("[AssetSelector] Failed to resolve max amount:",ae);return}finally{ee()&&P(!1)}}const Z=xe();ee()&&Z!==void 0&&he(Re(Z,z.decimals))},K=async z=>{if(!t||r||oe===void 0)return;if(z===100)return _();ge();const q=xe();q!==void 0&&he(Re(q*BigInt(z)/100n,t.asset.decimals))},ie=t&&oe!==void 0?Number(Re(oe,t.asset.decimals)):0,N=parseFloat(G)||0,Le=ie>0?N/ie*100:0,Te={backgroundColor:d?.assetSelector?.backgroundColor||d?.secondaryBackground||(F?v.cardBg:"#e9e9e9"),border:F?`0.5px solid ${v.cardBorder}`:"0.5px solid #A8A8A7",borderRadius:d?.assetSelector?.borderRadius||"6px",padding:d?.assetSelector?.padding||"16px",height:"auto",minHeight:g?void 0:"144px",display:"flex",flexDirection:"column",gap:"8px",position:"relative",opacity:r?.6:1};return s?f("div",{style:Te,children:R("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"16px",width:"60px"}}),f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"40px",width:"150px"}})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"8px"},children:[f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"4px",height:"12px",width:"80px"}}),f("div",{style:{backgroundColor:F?v.hoverBg:"#d1d5db",borderRadius:"6px",height:"46px",width:"128px"}})]})]})}):R("div",{style:Te,children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontFamily:d?.fontFamily||x.typography.fontFamily,fontSize:"16px",fontWeight:500,color:F?v.textSecondary:"#7d7c7b",lineHeight:"24px"},children:a}),i&&t?.asset&&R("span",{style:{fontFamily:d?.fontFamily||x.typography.fontFamily,fontSize:"12px",fontWeight:500,color:F?v.textSecondary:"#71757a",lineHeight:"16px"},children:["Balance:"," ",oe===void 0?"...":Ys({balance:oe,decimals:t.asset.decimals})]})]}),R("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 12px",justifyContent:g&&!h?"flex-start":"space-between",alignItems:"center",flex:1},children:[!g&&f(br,{element:"input",ariaLabel:t?.asset?`${S(t.asset).symbol} amount`:"Amount",dataSpiceflowFocus:!0,value:G,onChange:z=>ve(z.target.value),placeholder:c,disabled:r||!t?.asset,fontFamily:d?.fontFamily||x.typography.fontFamily,color:r?F?"rgba(255, 255, 255, 0.16)":"rgba(14, 13, 11, 0.16)":G?F?"#ffffff":"#0e0d0b":F?"#4a5568":"#d1d5db",lineHeight:"1.08",maxFontSize:40,minFontSize:22,style:{width:"100%",maxWidth:"200px",flex:"1 1 200px",minWidth:"min(200px, 100%)"}}),f("div",{style:{width:"176px",maxWidth:"100%",position:"relative",flexShrink:0,marginLeft:g&&!h?void 0:"auto"},children:f(Xh,{selectedAsset:t,assets:e,onAssetSelect:z=>{ge(),Q(null),n(z)},showDropdown:T,onToggleDropdown:()=>B(!T),disabled:r,theme:x,onViewAllAssets:C,getAvailableBalance:m})}),g&&h&&f(br,{element:"span",value:h,title:h,fontFamily:d?.fontFamily||x.typography.fontFamily,color:F?"#ffffff":"#0e0d0b",lineHeight:"1.08",textAlign:"right",maxFontSize:40,minFontSize:22,style:{flex:"1 1 200px",minWidth:"min(200px, 100%)"}})]}),!g&&f("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",height:"14px"},children:[0,25,50,75,100].filter(z=>l||z!==100).map((z,q)=>{const ee=Math.abs(Le-z)<1,ce=q===4,Z=M===z,ae=E===z;return f("button",{onClick:()=>K(z),onMouseEnter:()=>k(z),onMouseLeave:()=>{k(null),I(null)},onMouseDown:()=>I(z),onMouseUp:()=>I(null),disabled:r||!t?.asset||oe===void 0||z===100&&D,title:`${z}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:r||!t?.asset||oe===void 0||z===100&&D?"not-allowed":"pointer",opacity:ee?1:Z?.8:.5,transform:ae?"scale(0.85)":Z?"scale(1.15)":"scale(1)",transition:uo.interactive},children:f(tl,{pct:z,isMax:ce,primaryColor:A,dark:F,fillColor:F?v.textSecondary:"#3C3E42"})},z)})})]})},zr=fo(Jh);function $h({asset:e,showLogo:t=!0,showLabel:n=!0,denomination:o="token",className:r,style:s}){const a=To()(e),i=o==="token"?Ys(e):Number.isFinite(e.balanceUsd)&&(e.balanceUsd>0||e.balance===0n)?cr(e.balanceUsd):"\u2014";return R("span",{className:r,style:{display:"inline-flex",alignItems:"center",gap:6,...s},children:[t&&f(Fa,{symbol:e.symbol,label:a.symbol,logoURI:a.logoURI,chainId:e.chainId,address:e.address}),n&&f("span",{children:a.symbol}),f("span",{children:i})]})}var _h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAASrdJREFUeAHtfQeYHMd15quemc0LLhjBiAEDCAYQiUkgRQDMBNNClBlkSwdYsqQ7fz7Jd2f7fLYOgD/rbMmyLZ19n0VZMmDLFCWaFMAcRBILRjAgMElgxIAUAZAEiMXmndB19arqVVXPzkzPzM7ODqj+ycX09FSnqvfqxXoNECFChAgRIkSIECFChAgRIkRoCDCYACxe3N01mGhL5gDmQg6mi4skxZW6GGNdnPMkNxdnXQC8a8xNMQaiXdHz0+9uu2L7EO65ws4tWvRy4L30zQO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dYsZdbFJ82YMiMrdyTzf1gA3aoH/46zseWr1Hf1u7A0tAMi8UZaB1s5UQqBhOqOikelgmNFe2zAH08LLN+3ACDx3oAy/9YhfevpGBqqWGPmoIYO44F3CkzNH3HQS7RT8FDuT+sekaaUM/a5iZ5koxinEJM5vvUJK91I7rpbGyn1YiQS/i+2X1IKnxmKKYtjanezqSnTOycVZkuX8pKDSpNg9XUbiGZthTF3wu8R2V57WZNUavR2wBwrNero92SH0u5ELuB7cHdjAOcBRpeQ5e8Xmfm68WTwlfusVJ+gV7ogUi8VTsWz2pd7MUKpWTBEhQoQIESJEiBAhQoQIESJEaED8f8CLHLNBkXU/AAAAAElFTkSuQmCC",Su="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.51484 1.22476C5.04689 0.494255 5.87167 0 6.83333 0C7.79352 0 8.62302 0.493038 9.15721 1.22447C10.0512 1.08473 10.9879 1.32154 11.6665 2.00014C12.3456 2.67921 12.5823 3.61677 12.4419 4.51135C13.1714 5.04616 13.6667 5.87042 13.6667 6.83333C13.6667 7.79624 13.1714 8.62051 12.4419 9.15532C12.5823 10.0499 12.3456 10.9875 11.6665 11.6665C10.986 12.3471 10.049 12.5769 9.15858 12.4403C8.62445 13.1728 7.79434 13.6667 6.83333 13.6667C5.86959 13.6667 5.04474 13.1705 4.50996 12.44C3.619 12.5772 2.68116 12.3475 2.00014 11.6665C1.31939 10.9858 1.08903 10.0476 1.23037 9.15532C0.501138 8.62162 0 7.79824 0 6.83333C0 5.86843 0.501137 5.04504 1.23037 4.51135C1.08903 3.61904 1.31939 2.68089 2.00014 2.00014C2.67986 1.32042 3.61766 1.08457 4.51484 1.22476ZM9.20928 5.95387C9.51334 5.74624 9.59152 5.33144 9.38389 5.02737C9.17626 4.72331 8.76145 4.64514 8.45739 4.85277L8.3995 4.89229C7.48372 5.51764 6.69012 6.30153 6.05487 7.20477L5.30449 6.45518C5.044 6.19497 4.62189 6.1952 4.36168 6.45569C4.10147 6.71618 4.10169 7.13829 4.36218 7.3985L5.7 8.73489C5.84693 8.88167 6.05387 8.95158 6.25971 8.924C6.46555 8.89641 6.64677 8.77448 6.74987 8.5942C7.34322 7.55668 8.16436 6.6674 9.1514 5.9934L9.20928 5.95387Z' fill='%23EA4B4B'/%3e%3c/svg%3e",eg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAACLCAYAAAAqND1fAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwABSQ1JREFUeAFsvQm8LelZ1vtV1Rr23uecHtLpdJLuzAlJkClABCWMXrwCgSQkKiJ6ZcgACApcryIXyFUGFRARE0jCKDIE0Bs1SJwgAbwKBBAJZJ473enu9HzOHtZQdet56/l/9e4Nq3+n995rrar6xnd43ud9v+Zf/aufGna7Xdnv96Vt27JYLMowDPFPL37qpc/13a7r6vt935flcnnu+/qe7qdX0zT1Pf2u9/VT9zg7O4trdQ89d7PZxPd4fm4L99d1ugf3VHv0Pd1D7+lz/dP7ek+/5xfXqA36fbvd1u/QPr1Pe7kvbeZa2qPv5/6vVqvaL92be9Au/a5/tEMvtZ925DbwXL6fX3lcGff8LOZJ92UseQ7zxrVco+fqO7qPrs9jxTzl9un3PG688nzo9zxfev/iK49nXnN5fvM6YL3Qh4vt53nMGfdU3xlX/eSzvFa5D/Oa+8pzaENuRx5Tvsv40JbcX67Lz2IcuJ+epT3B7/meue20+eL36Ctt0L1ov55Pmxlf+sqYswbYV3kP8Tzaq8/ZT7l/9Dfvo4trRP/0LO0d/s77jTbQV8aJ7+V5p9+8xx77k+aQ7+X7sWdo55+0d7Mc0z/azV7Je0YvxpPf8xrUnKzX6/od3Zd1RDvzemJMWZt5r9AP3ZO2XVzX/M01eU/xvTwved6zjM177+L39Bz16fT0tM5XXiv0gzHhWcijWD+ahOc859Ojo/rg5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nQMQdVHr4HaVtb2ow6M6ntb7+G6Tq+1ouurUZp6Pehz9Nr6NbJtPWzfLPv46nPQseq6fo1u/X+gRuOHSwDbkgAAAABJRU5ErkJggg==";const il=({value:e,onChange:t,ariaLabel:n,placeholder:o,endAdornment:r,size:s="lg",dark:a,styles:i,inputRef:l,autoFocus:c})=>{const{dark:u,dk:d}=on(i,a),p=a??u,w=s==="lg",m=w?"15px":"14px",g=w?"7px":"10px",h=w?Xa.input:Xa.sm,y=i?.fontFamily||nt.ui,C=p?d.inputBg:"#FAFAFA",S=p?d.inputBorder:"#e5e7eb",b=p?d.textPrimary:"#374151",A=p?d.textSecondary:"#9ca3af";return R("div",{style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:C,borderRadius:h,boxShadow:p?"0 2px 4px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.1)",padding:`${g} 5px`,border:`1px solid ${S}`},children:[f(gm,{style:{color:A},size:24}),f("input",{ref:l,type:"text",role:"searchbox","aria-label":n,autoComplete:"off",spellCheck:!1,autoFocus:c,"data-spiceflow-focus":!0,placeholder:o,value:e,onChange:O=>t(O.target.value),style:{flex:1,backgroundColor:C,outline:"none",border:"none",color:b,fontSize:m,fontWeight:400,fontFamily:y}}),r]})},tg=({size:e=20,active:t=!1,dark:n=!1})=>R("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f("rect",{x:"2",y:"4",width:"16",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":n?"#9ca3af":"#374151"}),f("rect",{x:"4",y:"9",width:"12",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"}),f("rect",{x:"6",y:"14",width:"8",height:"2",rx:"1",fill:t?n?"#e5e7eb":"#111827":"#9ca3af"})]}),Au=({checked:e,primaryColor:t="#ef4444",dark:n=!1})=>f("div",{style:{width:"18px",height:"18px",borderRadius:"4px",border:e?"none":`2px solid ${n?"#4b5563":"#d1d5db"}`,backgroundColor:e?t:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:uo.interactive},children:e&&f("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),ng=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onTokenSelect:o,walletAddress:r,supportedChainIds:s,network:a,prefetchedAssets:i,styles:l,dark:c})=>{const[u,d]=L(""),[p,w]=L(null),[m,g]=L(null),[h,y]=L(!1),[C,S]=L(new Set),b=an($t),A=a||b?.network||"testnet",O=b?.allowedTokens,v=(b?.mode||"7702")!=="7702",x=!!b?.isWhitelistGateActive,{dark:F,primaryColor:T,dk:B}=on(l,c),M=F?B.cardBg:"white",k=F?`${T}55`:"#F4A5A5",E=F?"0 4px 12px rgba(0, 0, 0, 0.4)":"0 4px 12px rgba(0, 0, 0, 0.15)",I=F?B.hoverBg:"#E9E9E9",D=F?B.hoverBg:"#f9fafb",P=F?B.textPrimary:"#374151",H=F?B.textPrimary:"#111827",Q=F?B.textSecondary:"#9ca3af",G=F?`${T}22`:"#FBDBDB",ne=F?`${T}55`:"#F4A5A5",X=we(()=>s||b?.supportedChainIds||Xs(A),[s,b?.supportedChainIds,A]),V=we(()=>X.map(z=>{const q=xt(z);return q?{id:z,name:q.displayName,icon:nr[z]||us}:null}).filter(Boolean),[X]),oe=i===void 0,{assets:Y,loading:ge}=ms({address:oe?r:void 0,supportedChains:X,fetchBalances:Rr,enabled:e&&oe&&!!r,refreshInterval:e?5e3:0}),xe=i??(oe?Y:[]),he=i===null||oe&&ge,ve=we(()=>(xe??[]).filter(z=>Io(z,"deposit-source",{allowedTokens:O,rpcOverrides:b?.rpcOverrides,liquidityVenues:b?.liquidityVenues,isWhitelistGateActive:x},void 0,void 0,{requiresEscrow:v}).eligible),[xe,O,b?.rpcOverrides,x,v]),_=we(()=>{let z=ve.filter(q=>q.balance>0n);if(C.size>0&&(z=z.filter(q=>C.has(q.chainId))),u.trim()){const q=u.toLowerCase();z=z.filter(ee=>ee.name.toLowerCase().includes(q)||ee.symbol.toLowerCase().includes(q)||ee.address.toLowerCase().includes(q))}return z=[...new Map(z.map(q=>[be(q),q])).values()],z.sort((q,ee)=>{const ce=q.balanceFormatted>0?1:0,Z=ee.balanceFormatted>0?1:0;return Z!==ce?Z-ce:ee.balanceUsd!==q.balanceUsd?ee.balanceUsd-q.balanceUsd:ee.balanceFormatted-q.balanceFormatted}),z},[ve,u,C]),K=be;pe(()=>{const z=document.createElement("link");return z.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&display=swap",z.rel="stylesheet",document.head.appendChild(z),()=>{document.head.removeChild(z)}},[]),pe(()=>{e||(d(""),w(null),y(!1),S(new Set))},[e]);const ie=z=>{o(z)},N=z=>{S(q=>{const ee=new Set(q);return ee.has(z)?ee.delete(z):ee.add(z),ee})},Le=()=>{S(new Set)},Te=C.size===0;return R(yo,{isOpen:e,onClose:t,title:"Select a Token",bannerSrc:eg,bannerAlt:"Select token banner",styles:l,dark:F,closeOnBackdropClick:n,children:[f("div",{style:{padding:"20px 20px"},children:f(il,{value:u,onChange:d,ariaLabel:"Search tokens",placeholder:"Search token name, symbol or address",dark:F,styles:l,endAdornment:R("div",{style:{position:"relative",flexShrink:0},children:[f("button",{onClick:()=>y(z=>!z),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",borderRadius:"3px",backgroundColor:h||!Te?I:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},children:f(tg,{size:20,active:!Te,dark:F})}),h&&R("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,backgroundColor:M,borderRadius:"8px",border:`1px solid ${k}`,boxShadow:E,padding:"8px",minWidth:"220px",zIndex:100},children:[R("button",{onClick:Le,style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:z=>z.currentTarget.style.backgroundColor=D,onMouseLeave:z=>z.currentTarget.style.backgroundColor="transparent",children:[f(Au,{checked:Te,primaryColor:T,dark:F}),f("img",{src:_h,alt:"All Networks",loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"4px",objectFit:"cover"}}),f("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:P},children:"ALL NETWORKS"})]}),V.map(z=>R("button",{onClick:()=>N(z.id),style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"8px",borderRadius:"6px",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.15s"},onMouseEnter:q=>q.currentTarget.style.backgroundColor=D,onMouseLeave:q=>q.currentTarget.style.backgroundColor="transparent",children:[f(Au,{checked:C.has(z.id),primaryColor:T,dark:F}),f("img",{src:z.icon,alt:z.name,loading:"lazy",decoding:"async",width:20,height:20,style:{width:"20px",height:"20px",borderRadius:"50%"}}),f("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:600,letterSpacing:"0.5px",color:P},children:z.name.toUpperCase()})]},z.id))]})]})})}),R("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"8px",maxHeight:"400px",overflowY:"auto"},children:[he&&f("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:nt.mono,fontSize:"13px",color:Q},children:"Loading balances..."}),!he&&_.length===0&&f("div",{style:{padding:"24px 8px",textAlign:"center",fontFamily:nt.mono,fontSize:"13px",color:Q},children:"No tokens found"}),_.map(z=>{const q=K(z),ee=p===q,ce=m===q,Z=xt(z.chainId)?.displayName||`Chain ${z.chainId}`;return R("button",{onClick:()=>ie(z),onMouseEnter:()=>g(q),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:ee?G:"transparent",border:ee||ce?`1px solid ${ne}`:"1px solid transparent",cursor:"pointer",transition:uo.interactive},children:[f("div",{style:{flexShrink:0},children:f(Fa,{symbol:z.symbol,logoURI:z.logoURI,chainId:z.chainId,address:z.address,size:40})}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"2px",flex:1,minWidth:0},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f("span",{style:{fontFamily:nt.mono,fontSize:"15px",fontWeight:500,letterSpacing:"0.4px",color:H,textAlign:"left"},children:z.name}),f("img",{src:Su,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px"}})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[nr[z.chainId]&&f("img",{src:nr[z.chainId],alt:"",loading:"lazy",decoding:"async",width:14,height:14,style:{width:"14px",height:"14px",borderRadius:"50%"}}),R("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:400,color:Q,textAlign:"left"},children:[z.symbol," \xB7 ",Z]})]})]}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",flexShrink:0},children:[z.balanceUsd>0&&f("span",{style:{fontFamily:nt.mono,fontSize:"16px",fontWeight:600,color:H},children:cr(z.balanceUsd)}),R("span",{style:{fontFamily:nt.mono,fontSize:"12px",fontWeight:400,color:Q},children:[Ya(z.balanceFormatted)," ",z.symbol]})]})]},q)})]})]})},Eu=({dk:e,dark:t,message:n,buttonLabel:o,onAction:r,disabled:s=!1})=>R("div",{style:{padding:"12px",backgroundColor:e.warningBg,borderRadius:"8px",border:`1px solid ${e.warningBorder}`},children:[f("p",{style:{margin:"0 0 10px 0",color:e.warningText,fontSize:"14px"},children:n}),f("button",{onClick:r,disabled:s,style:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:`1px solid ${t?e.warningBorder:"#fbbf24"}`,backgroundColor:t?e.cardBg:"white",cursor:s?"not-allowed":"pointer",fontWeight:600,fontSize:"13px",color:e.warningText,opacity:s?.6:1},children:o})]}),Fu=({dk:e,dark:t,borderRadius:n,children:o})=>f("div",{style:{padding:"8px 12px",marginBottom:"8px",backgroundColor:t?e.warningBg:"#fffbeb",border:`1px solid ${e.warningBorder}`,borderRadius:n,fontSize:"12px",color:e.warningText,lineHeight:"1.4"},children:o});var og="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAEICAMAAACQzmAoAAAAzFBMVEWgoJ/d1tbcxsbcycndzc3a2trd0NDe3t7c29vc3Nzd09Pcw8Pd2dncv7/bubnctLTg4ODbr6+BkfGSgdnm5ubcvLzr6+vy8fDcqanZ1tbbpKTf3NtILRbZzc3bnZ3UxsbT09PRvb0FUfLPzs7TtLQKCQcHUu8YFxXQqanJs7PIxsbTlpbAvb28rK2qqKjGnp5zPxrogB83NTTXch/EjYxUU1GRj46Sn+ujmNaBfnwWXPDM0O6xtuRramhbQi23XxzdUlJ6XExXhOY2buq+my/AAAAAAXRSTlP9g+pWxwAAAAlwSFlzAAALEwAACxMBAJqcGAAAIABJREFUeNrsvWtz20iyLWo+ilXgS9AMqRaEgFtj2W1vH9s7whH2HPeMv3T///90q3KtzMoCKbfnnBs34kZsWiJBEHzJtZCvlStfvPify/9c/ufyP5frl0929X/43P+5/P/ub/OffrZPjz95eeJvvgzl96nu/k8uT8/escvw7HOGp78++Kfe+D+5DM++2pPdeWoekj9V/QPVwx6fnuzOkzzAv2relkfLbl4eceV2cnPiXbmd8uXp10nv523ZKHvkptz++qtcTeUfr9xlutye2h3Tj479/+4yPfu20w+fcflF3NfE5hMexh+p/A3LrvznK2D61Pcxlp8ulttyL0Zsl5/Y9djdxYT9ETu7shdPyXt7uZOP6vAsObKTf/nxvucBZUevr5DvpL68TNeX18PzcUzX49V7/SR5V97Z69OxF9s93ibf5aMdvxDfs+yVD8qje3zhfBXwPH1BfB3sSfyi/JJ2pxzY8V3lU419N8YxH57GET/5TkqxH8uuGPd5x1geHPd5cz/25ar8yP1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T9FArU83E2llXysDgFFKXo6sh/qMj1ulT1ulQIoWKN0Yin0LTuh+MfIOTnTeuDBsafuxt+LH9nevnKadS7YG4YefJ4oOfR3xG584hSuIDofIkctFklttdBJVCkWQmqSc3vRj3hwEkH93G7azPib3z2L+ZPmW3O/uC/luctSrT157dKc8/x9/om5y7+PRdeudukyYEu0TI2GW/9r90wJ+oWyefu58eSQjmp+qtFHCdGQKsYaF43Kom98ZVa/8bzD5QeBysZbWLV1r+2O+yOfo3w5BdRjnR993sEU/X0G7giiFGD9gIL7YdaShwhy54AltrSg8RqItvth3shLfriqK+G7Id1wUfMhCDOl+U3W0HSUu9g9JCZdHdkla1vu1oi3O7K3lGutdub/kv4DywtdWPjc47nBUq+O99JBB4lpHnlpc96wk/Wy2eCvO993hjGqJJIcYhft4f9GWHFFtgUbi/xZmN3wcjZ/Xnj7frv3h0f/HzTFSOAPn3+Pf49/j3+Pf49/hfjv8Po2R9gfj4veEAAAAASUVORK5CYII=";const ll=e=>{const t=(e.id||"").toLowerCase(),n=(e.name||"").toLowerCase();return t.startsWith("io.privy.wallet")||n.includes("privy wallet")};async function cl(e,t){let n;try{return await Promise.race([e,new Promise((o,r)=>{n=setTimeout(()=>{const s=new Error("Wallet network read timed out. Please try again.");s.name="WalletReadTimeout",r(s)},Math.max(0,t-Date.now()))})])}finally{n!==void 0&&clearTimeout(n)}}const rg=({dark:e,dk:t,primaryColor:n,disabled:o,hidden:r,onConnecting:s,onError:a})=>{const[i,l]=L(!1),c=Ja(),{embeddedAddress:u}=Tr(),d=j({account:c,embeddedAddress:u});d.current={account:c,embeddedAddress:u};const{ready:p,authenticated:w,user:m}=$l(),g={ready:p,authenticated:w,userId:m?.id},h=j(g);h.current=g;const y=j(0),C=()=>{const O=h.current;return O.ready===g.ready&&O.authenticated===g.authenticated&&O.userId===g.userId};ko.useLayoutEffect(()=>(y.current++,l(!1),s(!1),()=>{y.current++}),[p,w,m?.id,s]);const{disconnectAsync:S}=$a(),{setActiveWallet:b}=jp(),{connectWallet:A}=Jl({onSuccess:async({wallet:O})=>{if(!p||!C())return;const v=++y.current,x=()=>v===y.current&&C();l(!0),s(!0);try{if(O.type!=="ethereum"||O.connectorType==="embedded")throw new Error("Choose an external Ethereum wallet.");b(O);const F=d.current.account;F.address&&F.connector&&!ll(F.connector)&&!J(F.address,d.current.embeddedAddress)&&!J(F.address,O.address)&&await S({connector:F.connector})}catch(F){x()&&a(Wn(F,"Failed to connect wallet."))}finally{x()&&(l(!1),s(!1))}},onError:O=>{C()&&(y.current++,l(!1),s(!1),a(Wn(O,"Failed to connect wallet.")))}});return r?null:R("button",{onClick:()=>{o||i||(y.current++,l(!0),s(!0),A({walletChainType:"ethereum-only"}))},disabled:o||i,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:i?e?t.hoverBg:"#f3f4f6":"transparent",border:`2px solid ${e?`${n}33`:`${n}55`}`,cursor:o||i?"not-allowed":"pointer",opacity:o?.6:1,transition:uo.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?t.cardBg:"#f3f4f6"},children:f("img",{src:ps.metamask,alt:"Browser wallet",style:{width:"26px",height:"26px",objectFit:"contain"}})}),f("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:t.textPrimary,flex:1,textAlign:"left",fontFamily:nt.mono},children:i?"Opening wallet picker...":"MetaMask / Browser Wallet"})]})},sg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onWalletSelect:o,onContinue:r,requiredChainId:s,styles:a})=>{const{dark:i,primaryColor:l,dk:c,theme:u}=on(a),d=ko.useContext($t),[p,w]=L(null),[m,g]=L(!1),[h,y]=L(null),[C,S]=L(!1),[b,A]=L(null),[O,v]=L(!1);pe(()=>{e||(y(null),S(!1),g(!1),A(null))},[e]);const{address:x,chain:F,connector:T,isConnected:B}=Ja(),{externalWallet:M,externalAddress:k}=Tr(),E=!!M&&!!k,I=M?.wallet.connector||M?.wallet.meta,D=Number(String(M?.wallet.chainId??"").replace(/^eip155:/,"")),P=M?.wallet.connector===T&&B&&J(k,x)?F:xt(D)?.viemChain,{connectors:H,connectAsync:Q}=Lp(),{disconnectAsync:G}=$a(),ne=Xs(d?.network||"testnet"),X=j(M);X.current=M;const V=j(0),oe=M?.wallet.connector||M?.wallet;pe(()=>(V.current++,g(!1),y(null),()=>{V.current++}),[k,oe,e]);const Y=(s?xt(s):null)?.displayName||P?.name||`Chain ${P?.id||s}`,ge=q=>q.type==="announced"||typeof q.ready=="boolean"&&q.ready?!0:q.type==="injected"?typeof window<"u"&&!!window.ethereum:!0,xe=H.filter(q=>{const ee=q.name.toLowerCase(),ce=(q.id||"").toLowerCase();return d?.provider==="privy"&&ll(q)||["safe"].includes(q.type)?!1:q.type==="walletConnect"?!!q?.options?.projectId:q.type==="announced"?!0:q.type==="injected"||["metamask","rabby","phantom","coinbase","trust","rainbow"].some(Z=>ee.includes(Z)||ce.includes(Z))?ge(q):!1}),he=async q=>{if(!(C||m))try{if(S(!0),A(q.uid),y(null),await Q({connector:q}),await go(500),X.current?.wallet.connector!==q)throw new Error("Wallet changed. Please try again.");o&&o(q.id),s&&await K(s),await go(800)}catch(ee){console.error("Connection error:",ee),Ka(ee)?y("Connection rejected. Please try again."):y(Wn(ee,"Failed to connect wallet."))}finally{S(!1),A(null)}},ve=q=>{if(q.icon)return q.icon;const ee=(q.name||"").toLowerCase();for(const[ce,Z]of Object.entries(ps))if(ee.includes(ce.toLowerCase()))return Z;if(!ll(q)&&(q.type==="injected"||q.type==="announced")&&typeof window<"u"&&window.ethereum){const ce=window.ethereum;if(ce.isMetaMask)return ps.metamask;if(ce.isRabby)return ps.rabby;if(ce.isPhantom)return ps.phantom}return null},_=async(q,ee,ce)=>{const Z=ee.wallet.connector||ee.wallet,ae=Date.now()+2e3;for(;Date.now()<ae;){if(await go(Math.min(100,ae-Date.now())),ce!==V.current||!J(X.current?.address,ee.address)||(X.current?.wallet.connector||X.current?.wallet)!==Z)return!1;try{const ze=await cl((async()=>{const Ie=await ee.getEthereumProvider();return parseInt(await Ie.request({method:"eth_chainId"}),16)})(),ae);if(ce!==V.current||!J(X.current?.address,ee.address)||(X.current?.wallet.connector||X.current?.wallet)!==Z)return!1;if(ze===q)return!0}catch{}}return!1},K=async q=>{const ee=++V.current,ce=X.current,Z=ce?.wallet.connector||ce?.wallet,ae=()=>ee===V.current&&J(X.current?.address,ce?.address)&&(X.current?.wallet.connector||X.current?.wallet)===Z;g(!0),y(null);try{if(!ce)throw new Error("Wallet not available");const ze=Date.now()+2e3,Ie=await cl(ce.getEthereumProvider(),ze);let Ce;const tt=()=>{if(!ae())throw new Error("Wallet changed. Please try again.");if(Ce)throw Ce};tt(),await ru({request:async De=>{if(De.method!=="eth_chainId")return Ie.request(De);try{return await cl(Ie.request(De),ze)}catch(Me){throw Me instanceof Error&&Me.name==="WalletReadTimeout"&&(Ce=Me),Me}}},q,tt),!await _(q,ce,ee)&&ae()&&y("Unable to switch to the correct network. Please switch manually in your wallet to continue.")}catch(ze){ae()&&(console.error("Manual chain switch error:",ze),y(Cp(ze)))}finally{ae()&&g(!1)}},ie=async q=>{m||(v(!1),await K(q))},N=async()=>{if(!m){if(!s){v(q=>!q);return}await K(s)}},Le=async()=>{try{const q=M?.wallet;q&&typeof q.disconnect=="function"&&q.disconnect(),T&&J(k,x)&&await G({connector:T})}finally{y(null),S(!1),g(!1),A(null),v(!1)}},Te=E&&!m&&!C&&(!s||P?.id===s),z=E&&!m&&!C&&s&&P?.id!==s;return R(yo,{isOpen:e,onClose:t,title:"Connect Wallet",styles:a,dark:i,bannerSrc:og,bannerAlt:"Connect wallet banner",closeOnBackdropClick:n,children:[R("div",{style:{padding:"0 24px 20px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:[h&&f(Eu,{dk:c,dark:i,message:h,buttonLabel:m?"Switching...":"Try Switch Again",onAction:N,disabled:m}),m&&R("div",{style:{padding:"12px",backgroundColor:i?c.infoBg:"#dbeafe",borderRadius:"8px",display:"flex",alignItems:"center",gap:"10px",marginTop:"20px"},children:[f(zo,{size:20,color:i?c.infoText:"#3b82f6"}),f("p",{style:{margin:0,color:i?c.infoText:"#1e40af",fontSize:"14px"},children:"Switching network..."})]}),d?.provider==="privy"&&f(rg,{dark:i,dk:c,primaryColor:l,disabled:C||m,hidden:E,onConnecting:S,onError:y}),E&&k?R("div",{style:{border:`1px solid ${i?c.successBorder:"#02974F"}`,borderRadius:"8px",overflow:"hidden",marginTop:"20px"},children:[R("div",{style:{backgroundColor:i?c.successBg:"#00FFA81C",padding:"14px 18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f("div",{style:{width:"22px",height:"22px",borderRadius:"50%",backgroundColor:"#02974F",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"14px",fontWeight:"bold"},children:"\u2713"}),f("span",{className:"ibm-plex-mono",style:{color:i?c.successText:"#02974F",fontWeight:600,fontSize:"14px",letterSpacing:"0.5px"},children:"WALLET CONNECTED"})]}),f("div",{style:{width:"38px",height:"38px",borderRadius:"50%",backgroundColor:i?c.cardBg:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:I&&ve(I)?f("img",{src:ve(I),alt:I.name,style:{width:"24px",height:"24px",objectFit:"contain"}}):f("span",{style:{fontSize:"16px",fontWeight:"bold",color:i?c.textPrimary:"inherit"},children:I?.name?.charAt(0)||"W"})})]}),R("div",{style:{padding:"18px",backgroundColor:i?c.cardBg:"white"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"14px"},children:[f("span",{className:"ibm-plex-mono",style:{color:i?c.textSecondary:"#939291",fontSize:"13px",fontWeight:500,letterSpacing:"0.3px"},children:"ADDRESS:"}),f("span",{className:"ibm-plex-mono",style:{color:i?c.textPrimary:"black",fontSize:"14px",fontWeight:600,fontFamily:nt.mono,letterSpacing:"0.3px"},children:ns(k)})]}),O&&f("div",{style:{marginBottom:"12px",border:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,borderRadius:"8px",overflow:"hidden",backgroundColor:c.cardBg},children:ne.map(q=>{const ee=xt(q);if(!ee)return null;const ce=P?.id===q;return R("button",{onClick:()=>{ce?v(!1):ie(q)},style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",backgroundColor:ce?i?`${l}15`:`${l}10`:"transparent",border:"none",borderBottom:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,cursor:ce?"default":"pointer",transition:"background-color 0.15s"},onMouseEnter:Z=>{ce||(Z.currentTarget.style.backgroundColor=i?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.03)")},onMouseLeave:Z=>{Z.currentTarget.style.backgroundColor=ce?i?`${l}15`:`${l}10`:"transparent"},children:[f("img",{src:nr[q]||us,alt:ee.displayName,style:{width:"20px",height:"20px",borderRadius:"50%",objectFit:"contain"}}),f("span",{style:{fontSize:"13px",fontWeight:ce?600:400,color:i?c.textPrimary:"#1f2937",fontFamily:nt.mono},children:ee.displayName}),ce&&f("span",{style:{marginLeft:"auto",fontSize:"11px",color:l,fontWeight:500},children:"Connected"})]},q)})}),R("button",{className:"ibm-plex-mono",onClick:Le,style:{width:"100%",padding:"10px",backgroundColor:"transparent",border:`1px solid ${i?c.inputBorder:"#E5E7EB"}`,borderRadius:"6px",cursor:"pointer",fontSize:"13px",fontWeight:500,color:i?c.textSecondary:"#9CA3AF",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[f("span",{style:{fontSize:"16px"},children:"\u27F2"}),"DISCONNECT"]})]})]}):f(kn,{children:xe.map(q=>{const ee=ge(q),ce=b===q.uid,Z=!ee||C||ce;return R("button",{onClick:()=>{Z||he(q)},onMouseEnter:()=>!Z&&w(q.uid),onMouseLeave:()=>w(null),disabled:Z,style:{width:"100%",display:"flex",alignItems:"center",gap:"14px",padding:"10px",borderRadius:"8px",backgroundColor:ce?i?c.hoverBg:"#f3f4f6":"transparent",border:p===q.uid&&!Z?`2px solid ${i?`${l}44`:`${l}66`}`:"2px solid transparent",cursor:Z?"not-allowed":"pointer",opacity:Z?.6:1,transition:uo.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i?c.cardBg:"#f3f4f6"},children:ve(q)?f("img",{src:ve(q),alt:q.name,style:{width:"26px",height:"26px",objectFit:"contain"}}):f("span",{style:{fontSize:"16px",fontWeight:"bold",color:i?c.textPrimary:"inherit"},children:q.name.charAt(0)})}),R("span",{className:"ibm-plex-mono",style:{fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:Z?i?c.inputPlaceholder:"#9ca3af":i?c.textPrimary:"#111827",flex:1,textAlign:"left",fontFamily:nt.mono},children:[ce?"Connecting...":q.name,!ee&&!ce&&f("span",{style:{fontSize:"12px",marginLeft:"8px"},children:"(Not detected)"})]})]},q.uid)})})]}),z&&!h&&f("div",{style:{padding:"0 24px 20px"},children:f(Eu,{dk:c,dark:i,message:`Please switch to ${Y} to continue.`,buttonLabel:m?"Switching...":"Switch Network",onAction:N,disabled:m})}),f("div",{style:{padding:"0 24px 25px"},children:f(Vt,{variant:"outline",fullWidth:!0,onClick:async()=>{Te&&(await go(300),r?await r():t())},disabled:!Te,theme:u,dark:i,styles:a,children:C?"CONNECTING...":m?"SWITCHING NETWORK...":"CONTINUE"})})]})},ag=new Set(["USDC","SUSD","USD","NUSD","USDT","DAI","ENUSD","USDG"]),Tu={ETH:"ethereum",WETH:"ethereum",BTC:"bitcoin",WBTC:"bitcoin",WCBTC:"bitcoin",CBTC:"bitcoin",ECBTC:"bitcoin",ARB:"arbitrum",MATIC:"matic-network",POL:"matic-network"};let Ta=null;const ig=6e4;async function Bu(e){const t={},n=new Set,o={};for(const s of e){const a=s.toUpperCase();if(ag.has(a))t[a]=1;else if(Tu[a]){const i=Tu[a];n.add(i),o[a]=i}else t[a]=0}if(n.size===0)return t;const r=Date.now();if(Ta&&r-Ta.timestamp<ig){for(const[s,a]of Object.entries(o))t[s]=Ta.prices[a]??0;return t}try{const s=Array.from(n).join(","),a=await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${s}&vs_currencies=usd`);if(!a.ok)throw new Error(`CoinGecko ${a.status}`);const i=await a.json(),l={};for(const c of n)l[c]=i[c]?.usd??0;Ta={prices:l,timestamp:r};for(const[c,u]of Object.entries(o))t[c]=l[u]??0}catch(s){console.warn("[fetchTokenPrices] CoinGecko fetch failed:",s);for(const a of Object.keys(o))t[a]=t[a]??0}return t}const lg=new Set(["cbtc","btc","wbtc","wcbtc","tbtc"]),cg=new Set(["usdc","usdt","dai","usdc.e","usdbc","usdg"]);async function dg(){const e=(await Bu(["BTC"])).BTC;if(!e||e<=0)throw new Error("Failed to fetch BTC/USD price");return e}function ug(e){return lg.has(e.toLowerCase())}function pg(e){return cg.has(e.toLowerCase())}function fg(e,t,n,o){const r=10n**12n,s=BigInt(Math.round(o*Number(r))),a=t-n,i=10n**BigInt(Math.abs(a));let l=e*s/r;return a>0?l=l/i:a<0&&(l=l*i),l}function Ba(e,t){if(e===0n)return"0";const n=10n**BigInt(t),o=e/n,r=(e%n).toString().padStart(t,"0").replace(/0+$/,"");return r?`${o.toString()}.${r}`:o.toString()}function dl(e,t,n){const o=`${Ba(e,t)} ${n}`;return e===0n?o:`-${o}`}const mg=({fontFamily:e,textPrimary:t,textSecondary:n,cardBg:o,cardBorder:r,resolvedDark:s,darkCardBorder:a,primaryColor:i,feePreview:l,feeOnlyAction:c=!1,asset:u,isLoading:d,errorText:p,directExecutionFeeNote:w=!1})=>{const m=To(),g=u&&l&&[u.symbol,u.displaySymbol,u.receiptTokenName].includes(l.symbol)?m(u).symbol:l?.symbol,h=s?a??r:"#e5e7eb",y=s?"#111214":"#111827",C=s?"rgba(255,255,255,0.08)":"rgba(17,24,39,0.12)",S="#f87171",b=s?"#d1d5db":"#4b5563",A=s?"#f3f4f6":t,[O,v]=L(!1),x=!!p,F=x?null:l,T=F?[...c?[]:[{label:"Total Required",help:"Total amount required to fund this action.",value:`${Ba(F.grossAmount,F.decimals)} ${g}`,tone:"default"}],{label:"Spicenet Fee",help:"Fees paid to Spicenet for intent processing and execution.",value:dl(F.spicenetFee,F.decimals,g),tone:"fee"},{label:"Network Fee",help:"Network fee shown in the same token you are using for this action.",value:dl(F.gasFee,F.decimals,g),tone:"fee"},...F.bridgeFee&&F.bridgeFee>0n?[{label:"Bridge Fee",help:"Estimated cost to rebalance liquidity for this action.",value:dl(F.bridgeFee,F.decimals,g),tone:"fee"}]:[],...c?[]:[{label:"Used in TX",help:"Resulting amount of funds used in the transaction.",value:`${Ba(F.netAmount,F.decimals)} ${g}`,tone:"default"}]]:[],B=F?`${Ba(c?F.totalFee??F.gasFee+F.spicenetFee+(F.bridgeFee??0n):F.grossAmount,F.decimals)} ${g}`:null;return x?f("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:s?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:s?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f("span",{style:{fontSize:"17px",fontWeight:500,color:b,fontFamily:e,lineHeight:"24px"},children:"Fee"}),f("div",{style:{color:S,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:p})]})}):R("div",{style:{backgroundColor:o,border:`1px solid ${r}`,borderRadius:s?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",boxShadow:s?"inset 0 1px 0 rgba(255,255,255,0.03)":"none"},children:[R("button",{type:"button",onClick:()=>v(M=>!M),style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"12px",marginBottom:O?"14px":0,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[f("span",{style:{fontSize:"17px",fontWeight:500,color:b,fontFamily:e,lineHeight:"24px"},children:"Fee"}),O&&f("span",{style:{fontSize:"12px",color:n,fontFamily:e,lineHeight:"1.45"},children:"What is funded, spent, and taken as fees"})]}),R("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[B&&R("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"2px",minWidth:0},children:[f("span",{style:{fontSize:"10px",fontWeight:700,color:n,fontFamily:e,letterSpacing:"0.08em",textTransform:"uppercase"},children:c?"Total fees":"Total required"}),f("span",{style:{fontSize:"14px",fontWeight:700,color:A,fontFamily:e,whiteSpace:"nowrap"},children:B})]}),d&&!w&&f("span",{style:{fontSize:"11px",fontWeight:600,color:i,fontFamily:e,padding:"6px 9px",borderRadius:"999px",backgroundColor:s?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)",border:`1px solid ${s?h:"rgba(0,0,0,0.06)"}`,whiteSpace:"nowrap"},children:"Recalculating"}),f(Mr,{color:n,direction:O?"up":"down",style:{flexShrink:0}})]})]}),f("div",{style:{overflow:"hidden",maxHeight:O?"480px":"0px",opacity:O?1:0,transition:"max-height 0.24s ease, opacity 0.18s ease"},children:w?f("p",{style:{margin:0,color:n,fontSize:"12px",lineHeight:"1.55",fontFamily:e},children:"This path executes directly from the external wallet. Network gas is shown and paid in your wallet. No Spicenet fee is charged."}):T.length>0?R(kn,{children:[f("div",{style:{display:"grid",gap:"10px"},children:T.map((M,k)=>R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",alignItems:"center",gap:"12px",paddingTop:k===0?0:"10px",borderTop:k===0?"none":`1px solid ${h}`,opacity:d?.74:1,transition:"opacity 120ms ease"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[f("span",{style:{fontSize:"12px",color:n,fontFamily:e,fontWeight:500},children:M.label}),f(xu,{content:M.help,label:`${M.label} info`,textColor:"#f9fafb",backgroundColor:y,borderColor:C,accentColor:s?"#8f96a3":"#6b7280"})]}),f("span",{style:{fontSize:"12px",color:M.tone==="fee"?S:A,fontFamily:nt.mono,textAlign:"right",fontWeight:M.label==="Used in TX"?600:500,letterSpacing:"-0.01em"},children:M.value})]},M.label))}),f("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:`1px solid ${h}`,fontSize:"11px",color:n,fontFamily:e,lineHeight:"1.45"},children:F?.gasQuoteSource==="estimated"?"Gas quote uses a live estimate.":F?.gasQuoteSource==="configured_fallback"?"Gas quote uses a configured fallback.":"Gas quote is currently zero."})]}):f("div",{style:{fontSize:"12px",color:p?S:n,fontFamily:e,opacity:p?1:.8,lineHeight:"1.5"},children:p||"Waiting for fee estimate..."})})]})},ul=fo(mg);function Zo(e){const t=ht(e.address);if(e.isNative||Fe(t))return!1;const n=xt(e.chainId)?.supportedTokens?.some(r=>J(r.address,t)),o=Yt(t,e.chainId);return!!n&&!!o&&oa(o)}const Ou="spiceflow:pendingDeposit",Oa="spiceflow:pendingDepositChanged";function Ru(e,t,n){return`${Ou}:${e.toLowerCase()}:${t}:${n.toLowerCase()}`}function pl(){try{const e="__spiceflow_storage_test__";return localStorage.setItem(e,"1"),localStorage.removeItem(e),!0}catch{return!1}}function hg(e){if(!pl())return;const t=Ru(e.embeddedWalletAddress,e.chainId,e.tokenAddress);try{localStorage.setItem(t,JSON.stringify(e)),window.dispatchEvent(new Event(Oa))}catch(n){console.error("[pendingDeposit] Failed to save:",n)}}function Du(e){if(!pl())return[];const t=`${Ou}:${e.toLowerCase()}:`,n=[],o=Date.now();for(let r=0;r<localStorage.length;r++){const s=localStorage.key(r);if(!(!s||!s.startsWith(t)))try{const a=localStorage.getItem(s);if(!a)continue;const i=JSON.parse(a);if(o-i.timestamp>6048e5){localStorage.removeItem(s);continue}n.push(i)}catch{localStorage.removeItem(s)}}return n}function Ra(e,t,n){if(!pl())return;const o=Ru(e,t,n);localStorage.removeItem(o),window.dispatchEvent(new Event(Oa))}function fl({escrowAddress:e,tokenAddress:t,isNative:n,amount:o,gasFeeAmount:r}){const s=(a,i)=>n?{to:a,value:i,data:"0x"}:{to:t,value:0n,data:Tt({abi:ft,functionName:"transfer",args:[a,i]})};return[s(e,o),...r>0n?[s(Cn,r)]:[]]}function gg({sourceChainId:e,selectedAsset:t,destinationChainId:n,destinationTokenAddress:o,isCrossDenomination:r,convertedUsdAmount:s}){const a=ht(t.asset.address),i=o;let l,c;if(i&&n)if(l=Qs[n]?.supportedTokens?.find(u=>J(u.address,i))?.decimals??t.asset.decimals,r){if(!s)throw new Error("Destination amount is still being calculated. Please retry in a moment.");c=s}else{const u=Kn(t.amount,t.asset.decimals);c=mo(u,t.asset.decimals,l)}return{sourceChainId:e,depositTokenAddress:a,depositAmount:t.amount,depositTokenDecimals:t.asset.decimals,destinationChainId:n,destinationTokenAddress:i,destinationAmount:c,destinationTokenDecimals:l}}async function wg(e,t){if(!e)return[];if(Array.isArray(e))return e;const n=e;return e.length>=2?n(t.depositAmount,t.depositTokenAddress):n(t)}function Mu(e,t){return!!e&&e.quotedAmount===t.amount&&e.chainId===t.chainId&&J(e.token,t.token)}async function Da(e,t){let n;try{n=await Ji(e,{recipient:t.recipient,tokenAddr:t.tokenAddr,isNative:t.isNative,amount:t.amount})}catch(a){throw Zi(a)||Ka(a)?a:new Be("SUBMISSION_UNKNOWN","The wallet transfer outcome is unknown. Close this deposit and check your activity and balances before continuing.",{submissionStatus:"unknown",cause:a})}t.afterSend?.(n);const o=At(t.chainId),{receipt:r,hash:s}=await pa({client:o,hash:n,call:Ia(t.recipient,t.tokenAddr,t.isNative,t.amount),confirmations:2});if(r.status!=="success")throw r.status==="reverted"&&r.transactionHash?.toLowerCase()===s.toLowerCase()&&t.afterRevert?.(),new Error(t.failureMessage);return t.settle&&await o.getBlockNumber()-r.blockNumber<2n&&await go(3e3),s}async function yg(e){const t=e.selectedDepositAssets.filter(s=>s.asset&&s.amount&&parseFloat(s.amount)>0);if(t.length===0){console.error("[DepositModal] No valid assets for deposit"),e.setError("Please select an asset and enter an amount");return}const n=t[0];if(!e.escrowOnly&&!e.sourceAddress){e.setError("External wallet not connected. Please connect your wallet in the previous step.");return}if(!e.isNon7702){if(!e.address||!e.embeddedWalletAddress){e.setError("Couldn't find your account wallet. Try reconnecting.");return}if(!e.isReady||!e.isAuthenticated){e.setError("Sign in to continue.");return}}if(e.zeroCreditError){e.setError(e.zeroCreditError);return}if(e.depositBalanceError){e.setError(e.depositBalanceError);return}if(e.isNon7702&&e.sponsorGas&&e.nativeChainId&&n.asset.chainId!==e.nativeChainId&&e.destinationTokenAddress){e.setError("Gas sponsorship is not supported for this deposit route. Disable sponsorGas to continue.");return}e.setIsExecuting(!0),e.setError(null);let o=!1,r=!1;try{const s=e.escrowOnly||t.some(({asset:p})=>Zo(p));if(!e.isNon7702&&e.mode==="7702"&&s){const p=qe.getBaseUrl(),w=new $r;w.setBaseUrl(p);const m=AbortSignal.timeout(1e4),g=()=>{if(e.validateCurrentSession?.(),qe.getBaseUrl()!==p)throw new Error("The service changed. Review the deposit again.")};g();const h=async C=>{try{return await C}catch(S){throw g(),new Be("RELAYER_STATUS_ERROR","Deposit status is unavailable. Try again before adding cash.",{...S instanceof Be?S.context:{},cause:S})}},y=await h(w.supportsAutomaticContinuation({signal:m}));if(g(),y){const C=await h(w.getWalletActions(e.address,{pendingOnly:!0,signal:m}));g();let S=0;for(const b of C)for(const[A]of b.intents.entries()){if(S++>=4)throw new Error("A previous transaction still needs verification. Check your activity before adding cash.");const O=await h(w.getIntentRecoveryStatus(b.actionId,A,{signal:m}));if(g(),O==="unresolved")throw new Error("A previous transaction is still pending. Check your activity before adding cash.")}}}e.validateCurrentSession?.();const a=n.asset.chainId,i=Oo(a),l=Kn(n.amount,n.asset.decimals),c=t.length===1&&Mu(e.effectiveDepositFee,{amount:l,token:ht(n.asset.address),chainId:a}),u=!e.isNon7702&&!e.escrowOnly&&!Zo(n.asset);if(!e.isNon7702&&t.length===1&&!u&&!c)throw new Error("Fee quote is out of date. Please wait for it to refresh.");if(c&&e.escrowOnly){const{fee:p,net:w}=e.effectiveDepositFee;if(p>=l||w<=0n)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");if(w+p!==l)throw new Error("Fee quote is out of date. Please wait for it to refresh.")}let d=e.externalWalletClient;if(!e.escrowOnly){if(e.validateCurrentSession?.(),!d)throw new Error("External wallet not connected");if(e.externalProvider){const p=await Xi({provider:e.externalProvider,account:e.sourceAddress,chainId:a});p.viemChain&&(d=p.extWc),e.validateCurrentSession?.()}}if(e.isNon7702){if(!d)throw new Error("External wallet not connected");if(!e.sourceAddress)throw new Error("External wallet address not available");if(e.nativeChainId&&a===e.nativeChainId){const p=xt(a),w=t.map(g=>`${g.amount} ${g.asset.symbol}`).join(", ");e.setConfirmationData({network:p?.displayName||`Chain ${a}`,amount:w,symbol:"",chainId:a}),e.setShowConfirmation(!0);let m=null;e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(a);for(const g of t){const h=Kn(g.amount,g.asset.decimals),y=ht(g.asset.address),C=g.asset.isNative||Fe(y),S=await Da(d,{chainId:a,recipient:i,tokenAddr:y,isNative:C,amount:h,failureMessage:`Escrow deposit failed for ${g.asset.symbol}`,afterSend:()=>{r=!0}});m=S,e.setDirectDepositTxHash(S)}if(t[0]?.amount){const g=t[0].amount;if(e.onDepositExecute){e.setPostDepositStatus("executing");try{await e.onDepositExecute(g),e.setPostDepositStatus("success")}catch(y){console.error("ctx.onDepositExecute failed:",y),e.setPostDepositStatus("error"),e.setPostDepositError(y?.message||"Post-deposit instruction failed")}}else e.setPostDepositStatus("success");e.setDirectDepositStatus("success"),e.setPostDepositAmount(g),e.setPostDepositSuccess(!0);const h={type:"deposit",status:"success",amount:g,asset:t[0].asset.symbol,sourceChain:p?.displayName||`Chain ${a}`,txHash:m??void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:h})),e.onDepositSuccess?.(h)}e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset)}else{const p=e.destinationChainId||e.nativeChainId;if(!p)throw new Error("Destination chain ID is required for non-7702 mode. Either pass ctx.destinationChainId to <SpiceDeposit> or set ctx.nativeChainId on <SpiceFlowProvider>.");const w=Pl(a),m=i,g=[];let h=null;for(const y of t){const C=Kn(y.amount,y.asset.decimals),S=ht(y.asset.address),b=y.asset.isNative||Fe(S),A=await Da(d,{chainId:a,recipient:m,tokenAddr:S,isNative:b,amount:C,failureMessage:`Transfer failed for ${y.asset.symbol}`,afterSend:()=>{r=!0},settle:!0});h||(h=A),e.depositDataRef.current||(e.depositDataRef.current=[]),e.depositDataRef.current.push({txHash:A,sender:e.sourceAddress,tokenAddress:S,chainId:a,amount:C.toString(),user:e.spiceBalanceUser}),g.push({tokenAddress:S,tokenAmount:C.toString(),sender:e.sourceAddress,receiver:m})}if(!h)throw new Error("No transaction hash generated");if(!e.destinationTokenAddress){const y={type:"deposit",status:"success",amount:t[0]?.amount,asset:t[0]?.asset?.symbol,sourceChain:ro(a),txHash:h};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:y})),e.onDepositSuccess?.(y),e.depositDataRef.current=null,e.bridgedAmountRef.current=t[0]?.amount||null,e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1);return}if(e.mode==="ondemand"){const y={to:w,value:BigInt(0),data:"0x"},C=await zs(p,e.destinationTokenAddress);let S=BigInt(0);for(const M of g){const k=BigInt(M.tokenAmount),E=ht(M.tokenAddress),I=t.find(P=>{const H=ht(P.asset.address);return J(H,E)}),D=I?I.asset.decimals:await zs(a,Kt);S+=mo(k,D,C)}e.isCrossDenomination&&e.convertedUsdAmount&&(S=e.convertedUsdAmount);const b={chainId:a,tokenTransfers:g.map(M=>({from:M.sender,to:M.receiver,token:M.tokenAddress,amount:BigInt(M.tokenAmount)})),call:y},A=e.isCrossDenomination&&e.convertedUsdAmount?[{from:e.sourceAddress,to:i,token:ht(t[0].asset.address),amount:Kn(t[0].amount,t[0].asset.decimals)}]:[],O={chainId:p,tokenTransfers:[...A,{from:"escrow",to:e.sourceAddress,token:e.destinationTokenAddress,amount:S}],call:{to:e.destinationTokenAddress,value:BigInt(0),data:"0x"}},v={mode:"non-7702:on-demand",chainBatches:[b,O]},x={user:e.sourceAddress,intents:[v]},F=await qe.createAction(x),T=F.actionId,B=F.intentIds[0];if(!h)throw new Error("No transaction hash available");e.startStatusPolling(B,Ll([{chainId:a,calls:[y]},{chainId:p,calls:[O.call]}],M=>ro(M))),await qe.executeStep(T,0,0,{action:"execute",hash:h}),t[0]?.amount&&(e.bridgedAmountRef.current=t[0].amount),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(t[0].asset),e.setShowConfirmation(!1)}else throw new Error("Presign mode not yet fully supported for cross-chain deposits")}}else{const p=[],w=[];let m=0,g;const h=c&&e.effectiveDepositFee?Re(e.effectiveDepositFee.net,n.asset.decimals):n?.amount;for(const k of t){const E=Kn(k.amount,k.asset.decimals),I=c&&k===n,D=I?e.effectiveDepositFee.fee:0n,P=I?e.effectiveDepositFee.net:E,H=e.escrowOnly?E:E+D,Q=ht(k.asset.address),G=k.asset.isNative||Fe(Q);if(e.escrowOnly&&w.push({chainId:a,token:Q,amount:P+D}),!e.escrowOnly&&!Zo(k.asset)){e.validateCurrentSession?.(),e.setDirectDepositStatus("processing"),e.setDirectDepositChainId(a);const ne=await Da(d,{chainId:a,recipient:e.address,tokenAddr:Q,isNative:G,amount:E,failureMessage:`Transfer to embedded wallet failed for ${k.asset.symbol}`,afterSend:()=>{r=!0}});m+=1,k===n&&(g=ne);continue}if(!e.escrowOnly){e.validateCurrentSession?.();let ne;await Da(d,{chainId:a,recipient:e.address,tokenAddr:Q,isNative:G,amount:H,failureMessage:`Transfer to embedded wallet failed for ${k.asset.symbol}`,afterSend:()=>{r=!0,ne={chainId:a,tokenAddress:ht(k.asset.address),tokenSymbol:k.asset.symbol,tokenDecimals:k.asset.decimals,amount:k.amount,rawAmount:E.toString(),embeddedWalletAddress:e.address,externalWalletAddress:e.sourceAddress,timestamp:Date.now(),isNative:G},hg(ne)},afterRevert:()=>{const X=ne;X&&Du(e.address).some(V=>Object.entries(X).every(([oe,Y])=>V[oe]===Y))&&Ra(e.address,a,Q)},settle:!0})}p.push(...fl({escrowAddress:i,tokenAddress:Q,isNative:G,amount:P,gasFeeAmount:D}))}if(p.length===0){e.setDirectDepositTxHash(g??null),e.setDirectDepositStatus("success");const k={type:"deposit",status:"success",amount:n.amount,asset:n.asset.symbol,sourceChain:ro(a),txHash:g};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:k})),e.onDepositSuccess?.(k),e.refreshAssets(),e.onDepositSelect&&e.onDepositSelect(n.asset);return}m>0&&e.setDirectDepositStatus("idle");const y=t.find(k=>e.escrowOnly||Zo(k.asset))??n,C=await At(a).getBlockNumber(),S=p.map(k=>({...k,to:dn(k.to)})),b={chainId:a,recentBlock:C,calls:S,tokenTransfers:[]},A=gg({sourceChainId:a,selectedAsset:y===n&&h?{...n,amount:h}:y,destinationChainId:e.destinationChainId,destinationTokenAddress:e.destinationTokenAddress,isCrossDenomination:e.isCrossDenomination,convertedUsdAmount:e.convertedUsdAmount}),O=await wg(e.depositBatches,A),v=[b,...O];if(!e.address)throw new Error("Address not available");const x=[];if(e.isCrossDenomination&&e.convertedUsdAmount&&e.destinationTokenAddress){const k=e.selectedDepositAssets[0]?.asset;if(k){const E=Kn(e.selectedDepositAssets[0].amount,k.decimals);x.push({from:e.address,to:i,token:ht(k.address),amount:E}),x.push({from:"escrow",to:e.address,token:e.destinationTokenAddress,amount:e.convertedUsdAmount})}}x.length>0&&v[1]&&(v[1].tokenTransfers=x);const F=Ll(v,k=>ro(k));let T=!1;e.validateCurrentSession?.();const B=await e.execution.execute(v,Kt,0n,k=>{if(k.intentId&&!T){T=!0;for(const E of t)Ra(e.address,a,ht(E.asset.address));e.startStatusPolling(k.intentId,F)}},void 0,{userOverride:e.address,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,skipUserFundingPreflight:!0,...e.escrowOnly?{walletFundingRequirements:w}:{},...e.validateCurrentSession?{validateBeforeSubmit:e.validateCurrentSession}:{}});if(e.refreshAssets(),e.onDepositExecute&&y.amount)try{e.setPostDepositStatus("executing"),await e.onDepositExecute(h||y.amount),e.setPostDepositStatus("success"),e.setPostDepositAmount(h||y.amount),e.setPostDepositSuccess(!0)}catch(k){console.error("ctx.onDepositExecute failed (7702):",k),e.setPostDepositStatus("error"),e.setPostDepositError(k?.message||"Post-deposit instruction failed");return}const M={type:"deposit",status:"success",amount:y===n&&h||y.amount,asset:y.asset.symbol,sourceChain:ro(a),txHash:/^0x[0-9a-f]{64}$/i.test(B??"")?B:void 0};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:M})),e.onDepositSuccess?.(M),e.onDepositSelect&&e.onDepositSelect(y.asset)}}catch(s){if(e.isCurrent&&!e.isCurrent())return;o=!0,console.error("[DepositModal] executeDeposit CAUGHT ERROR:",s),console.error("[DepositModal] Error details:",{message:s?.message,code:s?.code,name:s?.name,stack:s?.stack?.slice(0,500)});const a=s instanceof Be&&s.context.submissionStatus==="unknown";(r||a)&&(e.setRetryBlocked?.(!0),e.refreshAssets());let i=s instanceof Be&&s.context.submissionStatus==="rejected"&&(s.context.httpStatus===401||s.context.httpStatus===403)?"This app's deposit configuration was rejected. Contact the app's support team.":Wn(s,"Deposit failed");r&&(i+=" A wallet transfer was already submitted. Close this deposit and check your activity and balances before continuing."),e.setError(Wn(s instanceof Be?new Be(s.code,i,s.context):new Error(i),"Deposit failed")),a||e.clearStatus()}finally{if(e.isCurrent&&!e.isCurrent())return;e.setIsExecuting(!1),o&&e.setDirectDepositStatus("idle"),o||!e.getCurrentIntentStatus()&&e.getCurrentPostDepositStatus()!=="idle"||e.setShowConfirmation(!1)}}async function bg(e){const{asset:t,assetIndex:n,selectedAssetCount:o,address:r,escrowOnly:s,isNon7702:a}=e;if(n!==0||a||o>1||!r||t.balance<=0n)return null;if(!s&&!Zo(t))return ts(t.balance,t.decimals);const i=await Ma({address:r,depositQuote:{asset:t,amount:t.balance,token:ht(t.address),chainId:t.chainId},escrowOnly:s}),l=s?t.balance:t.balance>i.fee?t.balance-i.fee:0n;return ts(l,t.decimals)}async function Ma(e){const{address:t,depositQuote:n,escrowOnly:o}=e,{asset:r,amount:s,token:a,chainId:i}=n;let l=s>1n?1n:0n;const c=o&&e.requireSimulation;for(let u=0;u<5;u++){if(c&&l>=s)throw new Error("Cash amount does not cover the order funding fee");const d=fl({escrowAddress:Oo(i),tokenAddress:ht(a),amount:o?s-l:s,gasFeeAmount:l,isNative:r.isNative===!0}),p={chainId:i,tokenTransfers:[],calls:d},w=await qe.estimateBatchGas({user:t,outputToken:a,chainBatches:[{...p,hash:Co([p])[0].hash}],signal:e.signal,requireSimulation:e.requireSimulation});if(e.requireSimulation&&(w.gasQuoteSource!=="estimated"||w.simulationVerified!==!0||w.gasFee<0n))throw new Error("A verified deposit fee quote is unavailable");if(c&&w.gasFee>l){l=w.gasFee;continue}const m=c?l:w.gasFee;if(o&&m>=s)throw new Error("This deposit amount is too small to cover the network fee. Your funds remain in your wallet.");const g=o?s-m:s;return{fee:m,net:g,quotedAmount:s,token:a,chainId:i}}throw new Error("Order funding fees did not converge. Prepare the order again")}const xg=({selectedDepositAssets:e,depositAssets:t,secondAssetOptions:n,loadingAssets:o,allowSecondAsset:r,theme:s,styles:a,dark:i,dk:l,onSelect:c,onAmountChange:u,onAdd:d,onRemove:p,resolveMaxAmount:w,onViewAllAssets:m})=>{const g=we(()=>Array.from({length:Math.max(1,e.length)},(h,y)=>w?C=>w(C,y):void 0),[w,e.length]);return R(kn,{children:[e.map((h,y)=>{const C=e.length===1?"Deposit":`Asset ${y+1}`;return R("div",{style:{marginBottom:s.spacing.md,position:"relative"},children:[f(zr,{assets:y===0?t:n,selectedAsset:h||void 0,onAssetSelect:S=>c(S,y),onAmountChange:S=>u(S,y),loading:o,label:C,showBalance:!0,theme:s,styles:a,allowSecondAsset:r&&y===0,onAddAsset:d,canAddAsset:e.length===1&&!!e[0]?.asset,resolveMaxAmount:g[y],onViewAllAssets:y===0?m:void 0}),y===1&&f("button",{onClick:()=>p(y),style:{position:"absolute",top:"-2px",right:"-2px",background:i?`${l.cardBg}ee`:"rgba(255, 255, 255, 0.9)",border:`1px solid ${l.cardBorder}`,borderRadius:"50%",cursor:"pointer",color:s.colors.textMuted,fontSize:"16px",padding:"2px",width:"22px",height:"22px",display:"flex",alignItems:"center",justifyContent:"center",transition:uo.interactive,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},onMouseEnter:S=>{S.currentTarget.style.color=i?l.errorText:"#ef4444",S.currentTarget.style.background=i?l.cardBg:"#fff",S.currentTarget.style.borderColor=i?l.errorBorder:"#fecaca"},onMouseLeave:S=>{S.currentTarget.style.color=s.colors.textMuted,S.currentTarget.style.background=i?`${l.cardBg}ee`:"rgba(255, 255, 255, 0.9)",S.currentTarget.style.borderColor=i?l.cardBorder:"#e5e7eb"},title:"Remove asset",children:"\xD7"})]},`asset-${y}`)}),e.length===0&&f("div",{style:{marginBottom:s.spacing.md},children:f(zr,{assets:t,selectedAsset:void 0,onAssetSelect:h=>c(h,0),onAmountChange:h=>u(h,0),loading:o,label:"Deposit",showBalance:!0,theme:s,styles:a,allowSecondAsset:r,onAddAsset:d,canAddAsset:!1,resolveMaxAmount:g[0]},"initial-selector")})]})},vg=fo(xg),ml=({onClick:e,label:t="Add Funds",color:n,fontFamily:o,style:r})=>{const[s,a]=L(!1);return R("button",{type:"button",onClick:e,"data-spiceflow-focus":!0,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",gap:"4px",color:n,fontSize:"12px",fontWeight:500,fontFamily:o,textDecoration:"underline",textUnderlineOffset:"2px",whiteSpace:"nowrap",opacity:s?.75:1,transition:"opacity 150ms ease",...r},children:[t,R("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[f("circle",{cx:"6",cy:"6",r:"5"}),f("path",{d:"M6 4v4M4 6h4",strokeLinecap:"round"})]})]})},kg="This deposit didn't confirm in time. It may still have gone through, so check the explorer and refresh your balance before retrying.";function Cg(e){return e?.overallStatus!=="failed"?{isFailed:!1,failureMessage:null}:{isFailed:!0,failureMessage:e.steps?.find(t=>t.status==="failed"&&!!t.error)?.error||kg}}const Na=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),f("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ig=({isOpen:e,onClose:t,onConfirm:n,data:o,isExecuting:r=!1,retryBlocked:s=!1,directDepositStatus:a="idle",error:i=null,theme:l,styles:c,intentStatus:u,postDepositStatus:d="idle",hasPostDepositInstruction:p=!1})=>{const{dark:w,dk:m,theme:g}=on(c),[h,y]=L(!1),[C,S]=L(!0);pe(()=>{e||y(!1)},[e]);const b=()=>{y(!0),setTimeout(()=>{t()},300)},A=()=>{S(!C)};if(!e||!o)return null;const O=u?.overallStatus==="processing",v=u?.overallStatus==="success"||a==="success",x=!!u,{isFailed:F,failureMessage:T}=Cg(u),B=!x&&p,M=B&&d==="executing",k=B&&d==="success",E=v&&p&&(d==="idle"||d==="executing")||M,I=v&&(!p||d==="success"||d==="error")||k||B&&d==="error",D=w?m.cardBg:"#ffffff",P=w?"0 -4px 20px rgba(0, 0, 0, 0.4)":"0 -4px 20px rgba(0, 0, 0, 0.15)",H=m.textSecondary,Q=w?m.textPrimary:"#1f2937",G=w?m.textPrimary:"#1f2937",ne=oe=>f("div",{style:{marginBottom:l.spacing.md,padding:l.spacing.md,backgroundColor:c?.errorMessage?.backgroundColor||(l.mode==="light"?"#fef2f2":`${l.colors.error}20`),border:`1px solid ${c?.errorMessage?.borderColor||(l.mode==="light"?"#fecaca":l.colors.error)}`,borderRadius:c?.errorMessage?.borderRadius||l.borderRadius.md},children:f("p",{style:{color:c?.errorMessage?.color||l.colors.error,fontSize:c?.errorMessage?.fontSize||l.typography.fontSize.sm,margin:0,fontFamily:c?.errorMessage?.fontFamily||c?.fontFamily||l.typography.fontFamily},children:oe})}),X={fontSize:l.typography.fontSize.sm,fontWeight:500,color:H,fontFamily:nt.mono,letterSpacing:"0.5px"},V=(oe,Y,ge=Q)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:X,children:oe}),f("span",{style:{fontSize:l.typography.fontSize.sm,fontWeight:500,color:ge,fontFamily:nt.mono},children:Y})]});return R("div",{style:{position:v||k?"relative":"absolute",bottom:0,left:0,right:0,zIndex:10,animation:h?"slideDown 0.3s ease-in":"slideUp 0.3s ease-out",pointerEvents:"auto"},children:[R("div",{style:{backgroundColor:D,borderRadius:"0",width:"100%",maxWidth:"522px",margin:"0 auto",padding:"18px 24px",boxShadow:P},children:[R(kn,{children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:l.spacing.md},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},onClick:A,children:[f("span",{style:{fontSize:"13px",fontWeight:l.typography.fontWeight.medium,color:H,fontFamily:c?.fontFamily||l.typography.fontFamily},children:"Transaction Details"}),f(Mr,{color:H,direction:C?"up":"down"})]}),!v&&!k&&f("button",{onClick:oe=>{oe.stopPropagation(),t()},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:H,transition:"color 0.2s ease"},onMouseEnter:oe=>{oe.currentTarget.style.color=G},onMouseLeave:oe=>{oe.currentTarget.style.color=H},children:f(ws,{size:16})})]}),R("div",{style:{marginBottom:l.spacing.lg,display:"flex",flexDirection:"column",gap:l.spacing.md,overflow:"hidden",maxHeight:C?"200px":"0px",opacity:C?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease"},children:[V("NETWORK",o.network),V("DEPOSITED AMOUNT",o.amount,l.colors.success),o.creditedAmount&&V("CREDITED AMOUNT",o.creditedAmount),o.spicenetFee&&V("SPICENET FEE",o.spicenetFee),o.networkFee&&V("EST. NETWORK FEE",o.networkFee)]})]}),i&&!x&&ne(i),F&&T&&ne(T),f(Vt,{onClick:I||F||s?b:n,variant:"outline",fullWidth:!0,disabled:r||O||E||M,styles:c,theme:g,children:r||O||M||E?"PROCESSING...":I?"CONTINUE \u2192":F||s?"CLOSE":"CONFIRM DEPOSIT"}),I&&d!=="error"&&f("p",{style:{marginTop:l.spacing.md,marginBottom:0,fontSize:"14px",color:H,textAlign:"center",fontFamily:c?.fontFamily||l.typography.fontFamily},children:"Your funds are now available in your Account"}),f("div",{style:{marginTop:l.spacing.md,display:"flex",justifyContent:"center",alignItems:"center"},children:f("img",{src:bd,alt:"Powered by SpiceNet",style:{height:"auto",width:"130px",opacity:1,filter:w?"brightness(0) invert(1) opacity(0.7)":"none"}})})]}),f("style",{children:`
|
|
23
23
|
@keyframes slideUp {
|
|
24
24
|
from {
|
|
25
25
|
transform: translateY(100%);
|
|
@@ -36,7 +36,7 @@ Order: ${e}`}function Mi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
|
|
|
36
36
|
transform: translateY(100%);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`})]})},
|
|
39
|
+
`})]})},Sg=({intentStatus:e,postDepositSuccess:t=!1,postDepositAmount:n=null,postDepositStatus:o="idle",depositActionLabel:r="Post-Deposit Instruction",sourceChainName:s="Source Chain",directDepositStatus:a="idle",directDepositTxHash:i=null,directDepositChainId:l=null,styles:c})=>{const{dark:u,dk:d}=on(c),[p,w]=L([]),m=j(null),g=u?d.cardBg:"#ffffff",h=u?d.textPrimary:"#374151",y=u?`${d.cardBorder}`:"rgba(255, 255, 255, 0.2)",C=d.textSecondary,S=u?d.successBg||"#064e3b":"#d1fae5",b=u?d.successText||"#6ee7b7":"#065f46",A=u?d.successBorder||"#065f4633":"#75FFD036",O=u?d.errorBg||"#7f1d1d":"#fecaca",v=u?d.errorText||"#fca5a5":"#991b1b",x=u?d.errorBorder||"#991b1b33":"#FCA5A536",F=e?.overallStatus==="processing",T=e?.overallStatus==="success",B=(T||a!=="idle")&&o!=="idle",M=r;return pe(()=>(o!=="error"&&(a==="success"&&!F&&!T||t&&!F)&&(m.current=setTimeout(()=>{w([])},6e3)),()=>{m.current&&clearTimeout(m.current)}),[a,t,o,F,T]),pe(()=>{const k=[];if(a==="processing"&&k.push({id:"direct-processing",type:"direct-processing",content:"PROCESSING DEPOSIT...",borderColor:y,backgroundColor:g,textColor:h,icon:f(zo,{size:20,borderWidth:3,color:C})}),a==="success"){const E=i&&l?Gs(l,i):void 0;k.push({id:"direct-success",type:"direct-success",content:"DEPOSIT CONFIRMED",borderColor:A,backgroundColor:S,textColor:b,explorerUrl:E!=="#"?E:void 0,icon:Na})}if(F&&k.push({id:"processing",type:"processing",content:"VERIFYING TRANSACTION SIGNATURE",borderColor:y,backgroundColor:g,textColor:h,icon:f(zo,{size:20,borderWidth:3,color:C})}),T&&(k.push({id:"submitted",type:"submitted",content:"SUBMITTED TRANSACTION TO BLOCKCHAIN",borderColor:A,backgroundColor:S,textColor:b,icon:Na}),k.push({id:"deposit-success",type:"deposit-success",content:`DEPOSIT TO ${s.toUpperCase()} SUCCESSFUL`,borderColor:A,backgroundColor:S,textColor:b,icon:Na})),B){const E=o==="success"?A:o==="error"?x:y,I=o==="success"?S:o==="error"?O:g,D=o==="success"?b:o==="error"?v:h;let P="";o==="executing"?P=`EXECUTING ${M.toUpperCase()}...`:o==="success"?P=`${M.toUpperCase()} CONFIRMED`:o==="error"&&(P=`${M.toUpperCase()} FAILED`);let H;o==="executing"?H=f(zo,{size:20,borderWidth:3,color:C}):o==="success"?H=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"10",cy:"10",r:"10",fill:"#10b981"}),f("path",{d:"M6 10l3 3 5-6",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}):o==="error"&&(H=R("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"10",cy:"10",r:"10",fill:"#ef4444"}),f("path",{d:"M6 6l8 8M14 6l-8 8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})]})),k.push({id:"post-deposit",type:"post-deposit",content:P,status:o,borderColor:E,backgroundColor:I,textColor:D,icon:H})}t&&n&&o!=="error"&&k.push({id:"post-deposit-success",type:"post-deposit-success",content:`SUCCESSFULLY DEPOSITED ${n}`,borderColor:A,backgroundColor:S,textColor:b,icon:Na}),w(E=>{const I=new Set(k.map(H=>H.id)),D=[],P=new Set;for(const H of E)if(I.has(H.id)){const Q=k.find(G=>G.id===H.id);D.push(Q),P.add(H.id)}for(const H of k)P.has(H.id)||D.push(H);if(D.length>3){const H=[],Q=[];for(const X of D)X.type==="processing"||X.type==="post-deposit"&&X.status==="executing"?H.push(X):Q.push(X);const G=[...H],ne=3-G.length;return ne>0&&Q.length>0&&G.push(...Q.slice(-ne)),G}return D})},[F,T,B,o,t,n,M,s,a,i,l,u]),p.length===0?null:R("div",{style:{position:T||a==="success"?"relative":"absolute",top:T||a==="success"?0:"56px",left:T||a==="success"?0:"24px",right:T||a==="success"?0:"24px",zIndex:100,display:"flex",flexDirection:"column",gap:"8px",pointerEvents:"none"},children:[p.map(k=>f("div",{style:{borderRadius:"12px",border:`4px solid ${k.borderColor}`,background:"transparent",animation:"fadeInSlide 0.4s ease-out"},children:R("div",{style:{backgroundColor:k.backgroundColor,borderRadius:"8px",padding:"14px 16px",display:"flex",alignItems:"center",gap:"12px"},children:[k.icon,f("span",{style:{fontSize:"13px",fontWeight:"600",color:k.textColor,letterSpacing:"0.3px",fontFamily:nt.ui,flex:1},children:k.content}),k.explorerUrl&&f("a",{href:k.explorerUrl,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",fontWeight:"600",color:k.textColor,textDecoration:"underline",whiteSpace:"nowrap",pointerEvents:"auto",opacity:.8},children:"View tx"})]})},k.id)),f("style",{children:`
|
|
40
40
|
@keyframes fadeInSlide {
|
|
41
41
|
from {
|
|
42
42
|
opacity: 0;
|
|
@@ -47,7 +47,7 @@ Order: ${e}`}function Mi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
|
|
|
47
47
|
transform: translateY(0);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`})]})},kg=Co.memo(({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onDepositSelect:o,depositBatches:r,supportedChains:s,title:a,styles:i,onDepositAssetChange:l,assetInputHook:c,externalWalletAddress:u,onDepositAmountChange:d,allowSecondAsset:p=!1,destinationChainId:w,destinationTokenAddress:m,onDepositExecute:g,depositActionLabel:h,nativeChainId:y,sponsorGas:C=!1,preSelectedAsset:S,escrowOnly:b=!1,escrowTokenAddress:A,escrowAmount:O,escrowTokenDecimals:v,escrowTokenSymbol:x,onSubmit:F,directSubmit:T=!1,onDepositSuccess:B,onDepositError:M,embeddedWalletAddress:k,onViewAllAssets:E})=>{const I=an(_t),D=I?.mode||"7702",P=I?.allowedTokens,H=!!I?.isWhitelistGateActive,Q=!b&&!!I?.isWhitelistConfigured&&I?.isUserWhitelisted!==!0,G=c?.assetAmount||"",{theme:oe,dark:$,appName:V,primaryColor:re,dk:X}=sn(i),he=Eo(),{isReady:be,isAuthenticated:fe}=he,{externalWallet:xe}=Tr(),te=I?.embeddedWalletAddress||k,K=D!="7702",le=K?!!u:be&&fe&&!!te,N=te,Le=u,Te=N??Le,z=Fo(),{data:q}=Pp(),[ne,de]=Co.useState(q),J=Co.useRef(null),ie=Co.useRef(xe);ie.current=xe;const ze=xe?.address;Co.useEffect(()=>{const _=ie.current;if(!_||!Le){J.current=null,de(q);return}if(_.address?.toLowerCase()!==Le?.toLowerCase()){J.current=null,de(q);return}_.getEthereumProvider().then(async ye=>{J.current=ye;const vt=await ye.request({method:"eth_chainId"}),Ue=parseInt(vt,16),Ve=bt(Ue),_e=await _.getWalletClient(Ue);de(Ve?Xa({account:Le,chain:Ve.viemChain,transport:Ja(ye)}):_e)}).catch(()=>{J.current=null,de(q)})},[ze,Le,q]);const Se=Co.useRef(null),[Ce,et]=L([]),{assets:Me,loading:Ne,error:We,refreshAssets:we}=fs({address:b?N:Le||N,supportedChains:s,fetchBalances:Rr,enabled:e,refreshInterval:e?5e3:0}),Ye=ge(()=>Me.filter(_=>_.balance>0n&&So(_,"deposit-source",{allowedTokens:P,rpcOverrides:I?.rpcOverrides,liquidityVenues:I?.liquidityVenues,isWhitelistGateActive:H},void 0,void 0,{requiresEscrow:K||b}).eligible).sort((_,ye)=>ye.balanceUsd-_.balanceUsd),[Me,P,I?.rpcOverrides,H,K,b]),ke=ge(()=>{if(!Ce[0]?.asset)return[];const _=Ce[0].asset.chainId;return Ye.filter(ye=>ye.chainId===_)},[Ye,Ce]),[He,ft]=L(!1),[Ze,nt]=L(!1),Qe=JSON.stringify([e,N,Le,I?.apiUrl,I?.network]),pe=j({key:Qe,version:0});pe.current.key!==Qe&&(pe.current={key:Qe,version:pe.current.version+1}),ue(()=>{nt(!1),ft(!1)},[Qe]);const[Oe,at]=L(null),Ke=j(M);Ke.current=M;const Ae=se(_=>{at(_),typeof _=="string"&&_&&Ke.current?.(_,ns(_))},[]),[Xe,kt]=L("idle"),Ge=se(_=>{typeof _=="string"&&_&&Ke.current?.(_,ns(_))},[]),[Bt,rt]=L(!1),[ct,dt]=L(null),[mt,fn]=L("idle"),[wt,ht]=L(null),[Wt,Ft]=L(null),[Z,Ut]=L(null),[it,Tt]=L(null),[en,bn]=L(null),{intentStatus:Re,startStatusPolling:Gt,clearStatus:Ot,execute:Ln}=Dr(),Rt=Re?.overallStatus==="success"||mt==="success",Cn=se((_,ye)=>{const vt=zs[ye];return vt?vt.supportedTokens?.find(Ue=>ee(Ue.address,_))?.symbol??null:null},[]),jn=ge(()=>{const _=Ce[0]?.asset;if(!_||!m||!w)return!1;const ye=Cn(m,w);return ig(_.symbol)&&!!ye&&lg(ye)},[Ce,m,w,Cn]);ue(()=>{Ce.length>0&&G!==Ce[0]?.amount&&et(_=>{if(_.length===0)return _;const ye=[..._];return ye[0]={...ye[0],amount:G||""},ye})},[G]),ue(()=>{Ce.length!==0&&et(_=>{let ye=!1;const vt=_.map(Ue=>{if(!Ue.asset)return Ue;const Ve=Ye.find(_e=>_e.chainId===Ue.asset.chainId&&ee(_e.address,Ue.asset.address));return Ve?Ve===Ue.asset||Ve.balance===Ue.asset.balance?Ue:(ye=!0,{...Ue,asset:Ve,amount:Ue.amount}):Ue});return ye?vt:_})},[Ye,Ce.length]),ue(()=>{if(!S||Ce.length>0||Ye.length===0)return;const _=Ye.find(ye=>ye.chainId===S.chainId&&ee(ye.address,S.address));_&&(et([{asset:_,amount:""}]),l?.(_))},[S,Ye,Ce.length]);const Gn=Co.useRef(null);ue(()=>{if(K&&Re?.overallStatus==="success"&&g&&Xe==="idle"){const _=Gn.current,ye=Se.current;if(_){const vt=pe.current.version,Ue=()=>pe.current.version===vt;(async()=>{try{kt("executing"),await g(_),Ue()&&(kt("success"),dt(_),rt(!0));const Ve=Array.isArray(ye)?ye[0]:void 0,_e={type:"deposit",status:"success",amount:_,asset:Ve?.tokenAddress,sourceChain:Ve?String(Ve.chainId):void 0,txHash:Ve?.txHash};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:_e})),B?.(_e)}catch(Ve){console.error("onDepositExecute failed:",Ve),Ue()&&(kt("error"),Ge(Un(Ve,"Post-deposit instruction failed")))}finally{Gn.current===_&&Se.current===ye&&(Gn.current=null,Se.current=null)}})()}}},[Re?.overallStatus,K,Xe]);const Bn=se(()=>{Ze||Ae(null)},[Ze]);ue(()=>{Ot(),qt(!1),St(null),kt("idle"),rt(!1),dt(null),fn("idle"),ht(null),Ft(null)},[Qe]);const In=se((_,ye)=>{et(vt=>{const Ue=[...vt];return Ue[ye]={asset:_,amount:Ue[ye]?.amount||""},Ue}),ye===0&&l?.(_),Bn()},[l,Bn]),xn=se(async(_,ye)=>{if(et(vt=>{const Ue=[...vt];return Ue[ye]&&(Ue[ye]={...Ue[ye],amount:_}),Ue}),Bn(),ye===0)if(c?.setAssetAmount(_),jn&&_&&parseFloat(_)>0)try{const vt=Z??await ag();Z||Ut(vt);const Ue=Ce[0]?.asset;if(!Ue)return;const Ve=Jn(_,Ue.decimals),_e=m?Cn(m,w):null,co=zs[w]?.supportedTokens?.find(ir=>ee(ir.address,m))?.decimals??6,sr=cg(Ve,Ue.decimals,co,vt);Tt(sr);const Ir=De(sr,co),ar=vt.toLocaleString("en-US",{maximumFractionDigits:0});bn(`${_} ${Ue.symbol} \u2248 $${parseFloat(Ir).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})} ${_e??"USD"} (rate: $${ar}/BTC)`),d?.(Ir)}catch(vt){console.error("Failed to fetch BTC/USD price:",vt),bn(null),Tt(null),d?.(_)}else bn(null),Tt(null),d?.(_)},[Bn,c,d,jn,Z,Ce,m,w,Cn]),On=se(()=>{Ce.length<2&&et(_=>[..._,{asset:null,amount:""}])},[Ce.length]),Dt=se(_=>{et(ye=>ye.filter((vt,Ue)=>Ue!==_)),Bn()},[Bn]),Rn=j(!1),Sn=j(!1);ue(()=>{e||(Rn.current=!1,Sn.current=!1,ln(null),mn(null))},[e]);const[Yt,qt]=L(!1),[Je,St]=L(null),[ao,ln]=L(null),[io,mn]=L(null),[_n,Jt]=L(!1),[Mn,An]=L(null),ut=ge(()=>{const _=Ce[0];if(Ce.length!==1||!_?.asset||!_.amount||parseFloat(_.amount)<=0)return null;try{return{asset:_.asset,amount:Jn(_.amount,_.asset.decimals),token:pt(_.asset.address),chainId:_.asset.chainId}}catch{return null}},[Ce]),Kn=!K&&!b&&!!ut&&!Go(ut.asset),Nn=ge(()=>ut?[ut.chainId,ut.token.toLowerCase(),ut.amount.toString(),b?"escrow":"normal"].join("|"):null,[ut,b]),Mt=se(async(_,ye)=>N?Ra({address:N,depositQuote:_,escrowOnly:b,signal:ye}):null,[N,b]),Pn=se(async _=>ut?Mt(ut,_):null,[ut,Mt]),xo=j(Pn);xo.current=Pn,vi({shouldRun:e&&!K&&!Kn&&!!Nn&&!Yt&&!He&&!Re&&!Rt,deps:[e,K,Kn,Nn,Yt,He,Re,Rt],delayMs:500,backgroundIntervalMs:3e4,onSkip:()=>{ln(null),An(null),Jt(!1)},onCleanup:()=>Jt(!1),run:async({isBackground:_,isCurrent:ye,signal:vt})=>{_||(An(null),Jt(!0));try{const Ue=await xo.current(vt);ye()&&ln(Ue)}catch(Ue){if(!ye())return;ln(null),An(Ue instanceof Error?Ue.message:"Failed to estimate gas fee")}finally{ye()&&Jt(!1)}}}),ue(()=>{Yt||He||mn(null)},[Yt,He,Nn]);const Y=j(!1),Ie=()=>{if(Ce.length===0||!Ce[0]?.asset)return;const _=Ce.filter(_e=>_e.asset&&_e.amount&&parseFloat(_e.amount)>0);if(_.length===0)return;const ye=_[0],vt=bt(ye.asset.chainId),Ue=_.map(_e=>{const co=parseFloat(_e.amount);return`${isNaN(co)?_e.amount:co.toPrecision(6).replace(/\.?0+$/,"")} ${_e.asset.symbol}`}).join(", "),Ve={network:vt?.displayName||`Chain ${ye.asset.chainId}`,amount:Ue,symbol:"",chainId:ye.asset.chainId};if(qn&&Vt&&Dn){mn(Vt);const _e=_[0];Ve.creditedAmount=`${De(Vt.net,_e.asset.decimals)} ${Go(_e.asset)?z({..._e.asset,location:"rollup",_source:"spice",receiptTokenName:"spiceUSDC"}).symbol:_e.asset.symbol}`,Ve.networkFee=`${De(Vt.fee,_e.asset.decimals)} ${_e.asset.symbol}`}return St(Ve),Ve},$e=async()=>{!Hn||!Ie()||(T?await En():qt(!0))},It=j(Re);It.current=Re;const tn=j(Xe);tn.current=Xe;const Lt=JSON.stringify([e,N,te,Le,be,fe,D,qe.getBaseUrl(),H,b,w,m,Q,Ce.map(({asset:_,amount:ye})=>[_.chainId,_.address,ye])]),nn=j({key:Lt});nn.current.key!==Lt&&(nn.current={key:Lt});const $t=j(!0),cn=j(!1);To(()=>($t.current=!0,()=>{$t.current=!1}),[]);const Zt=async()=>{if(cn.current)return;cn.current=!0;const _=nn.current,ye=qe.getBaseUrl();try{Ie();const vt=pe.current.version,Ue=()=>pe.current.version===vt,Ve=_e=>(...co)=>{Ue()&&_e(...co)};await mg({isCurrent:Ue,validateCurrentSession:()=>{if(!e||!$t.current||nn.current!==_||qe.getBaseUrl()!==ye)throw new Error("The wallet or deposit changed. Review it again before funding.")},selectedDepositAssets:Ce,escrowOnly:b,sourceAddress:Le,isNon7702:K,address:N,embeddedWalletAddress:te,isReady:be,isAuthenticated:fe,zeroCreditError:dn,depositBalanceError:zn,externalWalletClient:ne,externalProvider:J.current,effectiveDepositFee:Vt,depositBatches:r,destinationChainId:w,destinationTokenAddress:m,isCrossDenomination:jn,convertedUsdAmount:it,mode:D,sponsorGas:C,nativeChainId:y,spiceBalanceUser:Te,depositDataRef:Se,bridgedAmountRef:Gn,setIsExecuting:Ve(ft),setError:Ve(Ae),setRetryBlocked:Ve(nt),setConfirmationData:Ve(St),setShowConfirmation:Ve(qt),setDirectDepositStatus:Ve(fn),setDirectDepositChainId:Ve(Ft),setDirectDepositTxHash:Ve(ht),setPostDepositStatus:Ve(kt),setPostDepositError:Ve(Ge),setPostDepositAmount:Ve(dt),setPostDepositSuccess:Ve(rt),startStatusPolling:Ve(Gt),clearStatus:Ve(Ot),refreshAssets:we,onDepositExecute:g,onDepositSelect:o,onDepositSuccess:B,execution:{execute:Ln},getCurrentIntentStatus:()=>It.current,getCurrentPostDepositStatus:()=>tn.current})}finally{cn.current=!1}},En=async()=>{if(!(Y.current||He||Ze||Rt)){Y.current=!0;try{F?.(),await Zt()}finally{Y.current=!1}}},dn=ge(()=>{for(const _ of Ce)if(!(!_?.asset||!_.amount||parseFloat(_.amount)<=0))try{const ye=_.asset.decimals,vt=Jn(_.amount,ye);if(vt<=0n)continue;const Ue=pt(_.asset.address),Ve=Fe(Ue)?Xt(Ue,_.asset.chainId)?.equivalenceGroup:Bp(Ue),_e=_.asset.receiptTokenDecimals??(Ve==="ETH"||Ve==="ARB"?18:Ve==="USDC"||Ve==="SUSD"||Ve==="WBTC"||Ve==="CBTC"?6:void 0);if(_e===void 0||ye<=_e||ho(vt,ye,_e)>0n)continue;return`Amount too small. Minimum deposit for this asset is ${De(10n**BigInt(ye-_e),ye)} ${_.asset.symbol}.`}catch{continue}return null},[Ce]),qn=!K&&!!ut&&!Kn,Vt=io??ao,Dn=!!ut&&Bu(Vt,ut),zn=ge(()=>{if(!ut)return null;if(Kn)return ut.asset.balance>=ut.amount?null:`Insufficient ${ut.asset.symbol}. Need ${De(ut.amount,ut.asset.decimals)} ${ut.asset.symbol}.`;if(!qn||!Dn)return null;if(b&&(Vt.fee>=ut.amount||Vt.net<=0n))return"This deposit amount is too small to cover the network fee. Your funds remain in your wallet.";const _=b?ut.amount:ut.amount+Vt.fee;return ut.asset.balance>=_?null:`Insufficient ${ut.asset.symbol}. Need ${De(_,ut.asset.decimals)} ${ut.asset.symbol} including gas.`},[qn,Kn,ut,Dn,Vt,b]),[Ko,gt]=L(!1),Kt=Ce[0]?.asset?.chainId,tr=Me.find(_=>_.isNative&&_.chainId===Kt)?.balance??0n;ue(()=>{if(!e||!Kt||b){gt(!1);return}let _=!1;return(async()=>{try{const ye=await Ct(Kt).getGasPrice()*150000n;_||gt(tr<ye)}catch{_||gt(!1)}})(),()=>{_=!0}},[e,Kt,tr,b]);const nr=!qn||Dn&&!_n&&!Mn&&!zn,or=se((_,ye)=>hg({asset:_,assetIndex:ye,selectedAssetCount:Ce.length,address:N,escrowOnly:b,isNon7702:K}),[K,Ce.length,N,b]),Qr=ge(()=>{if(!ut||!Vt||!Dn)return null;const _=b?ut.amount:ut.amount+Vt.fee;return{symbol:ut.asset.symbol,decimals:ut.asset.decimals,grossAmount:_,netAmount:Vt.net,totalFee:Vt.fee,gasFee:Vt.fee,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"estimated"}},[ut,Vt,Dn,b]),Vr=parseFloat(Ce[0]?.amount||"")||0,Hn=Ce.length>0&&Ce[0]?.asset&&Ce[0]?.amount&&Vr>0&&le&&!He&&!Rt&&!Ze&&!dn&&!zn&&nr&&!Q;ue(()=>{if(!b||!A||!O||Rn.current||!le)return;const _=s[0];if(!_)return;const ye=xp(_,[]).find(Ue=>ee(Ue.address,A));let vt;if(ye)vt=ye;else if(v!==void 0&&x)vt={address:A,symbol:x,name:x,decimals:v,chainId:_,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,isNative:Fe(A)};else{console.warn("[DepositModal] escrowOnly: no matching asset and missing escrowTokenDecimals/escrowTokenSymbol for",A);return}Rn.current=!0,et([{asset:vt,amount:O}])},[b,A,O,v,x,le,s]),ue(()=>{!b||!Hn||Sn.current||He||(Sn.current=!0,Zt())},[b,Hn,He]);const lo=We||Oe||dn||zn,rr=()=>{if(He)return"Executing Deposit...";if(!le)return"Wallet Not Connected";if(D==="7702"){if(!be)return"Loading...";if(!fe)return"Authentication Required"}return Ce[0]?.asset?Ce[0]?.amount?dn?"AMOUNT TOO SMALL":zn?"INSUFFICIENT BALANCE":qn&&!nr?Mn?"GAS UNAVAILABLE":"ESTIMATING GAS":"DEPOSIT":"ENTER AMOUNT":"SELECT TOKEN"};return e?f(bo,{isOpen:e,onClose:t,closeOnBackdropClick:n,title:a||`Deposit to your ${V} account`,subtitle:R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[f("img",{src:$i,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...$?{filter:"invert(0.6)"}:{}}}),f("p",{style:{fontSize:"12px",color:X.textSecondary,margin:"0",lineHeight:"1.4",fontFamily:tt.ui},children:`Deposit collateral to your ${V} Account from any supported network.`})]}),dark:$,overlayContent:!Rt&&(Yt||Re||Xe!=="idle"&&g)?f("div",{}):void 0,styles:i,theme:oe,children:R("div",{style:{padding:"24px 24px 5px 24px"},children:[!Rt&&f(wg,{selectedDepositAssets:Ce,depositAssets:Ye,secondAssetOptions:ke,loadingAssets:Ne,allowSecondAsset:p,theme:oe,styles:i,dark:$,dk:X,onSelect:In,onAmountChange:xn,onAdd:On,onRemove:Dt,resolveMaxAmount:or,onViewAllAssets:E}),!Rt&&qn&&ut&&f(il,{fontFamily:i?.fontFamily||oe.typography.fontFamily,textPrimary:X.textPrimary,textSecondary:X.textSecondary,cardBg:$?X.inputBg:"#ffffff",cardBorder:X.cardBorder,resolvedDark:$,darkCardBorder:X.cardBorder,primaryColor:re,feePreview:Qr,isLoading:_n||qn&&!Dn,errorText:Mn}),f(vg,{intentStatus:Re,postDepositSuccess:Bt,postDepositAmount:ct,postDepositStatus:Xe,depositActionLabel:h,sourceChainName:Ce[0]?.asset?.chainId?ro(Ce[0].asset.chainId):"Destination Chain",directDepositStatus:mt,directDepositTxHash:wt,directDepositChainId:Wt,styles:i}),f(xg,{isOpen:Yt||!!Re||mt==="success"||Xe!=="idle"&&!!g,onClose:()=>{qt(!1),Re&&Ot();const _=Xe==="success"&&!Re,ye=Re?.overallStatus==="success"&&(g?Xe==="success"||Xe==="error":!0);(_||ye||mt==="success"&&(!g||Xe==="success"||Xe==="error")||Ze)&&t()},onConfirm:En,data:Je,isExecuting:He,retryBlocked:Ze,error:Oe,theme:oe,styles:i,intentStatus:Re,directDepositStatus:mt,postDepositStatus:Xe,hasPostDepositInstruction:!!g}),!Rt&&en&&R(Iu,{dk:X,dark:$,borderRadius:oe.borderRadius.md,children:["\u26A1 ",en]}),!Rt&&Ko&&f(Iu,{dk:X,dark:$,borderRadius:oe.borderRadius.md,children:"Low native balance in the external wallet. The deposit to spicenet account might fail."}),!Rt&&R("div",{style:{display:"flex",flexDirection:"column",gap:0,marginBottom:0,margin:0,padding:0},children:[lo?f("div",{style:{marginBottom:"10px",fontSize:"12px",lineHeight:"1.45",color:X.errorText,fontFamily:i?.fontFamily||oe.typography.fontFamily},children:lo}):null,f(Qt,{variant:"outline",fullWidth:!0,onClick:$e,disabled:!Hn||!le||He,theme:oe,dark:$,styles:i,children:rr()})]})]})}):null}),Cg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,deposits:o,onComplete:r,onCancel:s,onSkip:a,onChangeWallet:i,isProcessing:l,isVerifying:c=!1,onRefresh:u,error:d,styles:p})=>{const{dark:w,dk:m,theme:g}=sn(p);if(!e)return null;if(o.length===0)return f(bo,{isOpen:e,onClose:t,title:"Your wallet",styles:p,closeOnBackdropClick:n,children:f("p",{role:"status",style:{padding:"18px 24px",color:m.textSecondary},children:l?"Returning funds\u2026":"Checking your wallet\u2026"})});const h=o[0],y=h.timestamp===0,C=h.verifiedBalance<=0n,S=l||c||C,b=p?.fontFamily||tt.ui,A=tt.mono,O=ro(h.chainId),v=parseFloat(h.amount).toPrecision(6).replace(/\.?0+$/,""),x=De(h.verifiedBalance,h.tokenDecimals);return f(bo,{isOpen:e,onClose:t,title:y?"Funds in your wallet":"Incomplete Deposit",styles:p,closeOnBackdropClick:n,children:R("div",{style:{padding:"18px 24px 24px",fontFamily:b},children:[f("p",{style:{fontSize:"14px",color:m.textSecondary,lineHeight:"1.6",margin:"0 0 18px 0"},children:y?"These funds remain in your wallet. Network fees apply when depositing.":"Your funds reached your wallet, but the deposit didn't finish."}),R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",gap:"14px 18px",marginBottom:"24px",padding:"16px 18px",backgroundColor:w?m.cardBg:"#f8fafc",border:`1px solid ${m.cardBorder}`,borderRadius:w?"14px":"10px",boxShadow:w?"inset 0 1px 0 rgba(255,255,255,0.03)":"0 1px 2px rgba(16,24,40,0.04)"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[f("span",{style:{fontSize:"12px",fontWeight:600,color:m.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:"NETWORK"}),f("span",{style:{fontSize:"18px",fontWeight:600,color:m.textPrimary,fontFamily:b,lineHeight:1.2},children:O})]}),R("div",{style:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end",textAlign:"right"},children:[f("span",{style:{fontSize:"12px",fontWeight:600,color:m.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:y?"AVAILABLE BALANCE":"DEPOSITED AMOUNT"}),R("span",{style:{fontSize:"24px",fontWeight:700,color:m.successText,fontFamily:A,lineHeight:1.1},children:[v," ",h.tokenSymbol]}),f("span",{style:{fontSize:"12px",color:m.textSecondary,fontWeight:500,fontFamily:b},children:y?"In your wallet":"Sent to embedded wallet"})]})]}),!h.hasFullBalance&&h.verifiedBalance>0n&&R("div",{style:{marginBottom:"16px",padding:"8px 12px",backgroundColor:m.warningBg,border:`1px solid ${w?m.warningBorder:"#fcd34d"}`,borderRadius:"8px",fontSize:"13px",color:m.warningText,lineHeight:"1.4"},children:["Partial balance \u2014 only ",parseFloat(x).toFixed(4)," ",h.tokenSymbol," available."]}),(c||C)&&R("div",{style:{marginBottom:"16px",color:m.textSecondary},children:[f("p",{role:"status",children:c?"Checking your wallet\u2026":"Balance unavailable. Try again."}),C&&u&&f(Qt,{variant:"ghost",fullWidth:!0,disabled:l||c,onClick:u,theme:g,dark:w,children:"TRY AGAIN"})]}),d&&f("div",{style:{marginBottom:"16px",padding:"10px 12px",backgroundColor:m.errorBg,border:`1px solid ${w?m.errorBorder:"#fca5a5"}`,borderRadius:"8px",fontSize:"13px",color:w?m.errorText:"#991b1b",lineHeight:"1.4"},children:d}),R("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[f(Qt,{variant:"outline",fullWidth:!0,disabled:S,onClick:()=>r(h),theme:g,dark:w,styles:p,children:"CONFIRM DEPOSIT"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f(Qt,{variant:"ghost",fullWidth:!0,disabled:S,onClick:()=>s(h),theme:g,dark:w,style:{height:"48px",fontSize:"13px",letterSpacing:"0.4px",color:w?m.textPrimary:"#374151",border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:w?"rgba(255,255,255,0.02)":"#ffffff"},children:l?"RETURNING...":"RETURN FUNDS"}),R("div",{style:{display:"grid",gridTemplateColumns:i?"1fr 1fr":"1fr",gap:"10px"},children:[f(Qt,{variant:"ghost",fullWidth:!0,disabled:l,onClick:a,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:m.textSecondary,border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"START OVER"}),i&&f(Qt,{variant:"ghost",fullWidth:!0,disabled:l,onClick:i,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:m.textSecondary,border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"CHANGE WALLET"})]})]})]}),o.length>1&&f("p",{style:{fontSize:"12px",color:m.textSecondary,textAlign:"center",marginTop:"14px",marginBottom:0,lineHeight:"1.5"},children:o.some(F=>F.timestamp===0)?`${o.length} balances available. Review one at a time.`:`${o.length} incomplete deposits found. Review one at a time.`})]})})},Ig=[{source:"wallet",title:"From Wallet",description:"Deposit crypto you already hold in a connected wallet"},{source:"card",title:"With Card",description:"Buy and deposit using a debit or credit card"},{source:"exchange",title:"From Exchange",description:"Transfer from Coinbase, Binance, or any exchange"}],Sg=({isOpen:e,onClose:t,closeOnBackdropClick:n,onSelect:o,styles:r})=>{const{dark:s,dk:a}=sn(r),[i,l]=L(null);return f(bo,{isOpen:e,onClose:t,title:"Deposit",subtitle:"Choose how you want to add funds",styles:r,dark:s,closeOnBackdropClick:n,children:f("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:Ig.map(({source:c,title:u,description:d})=>R("button",{onClick:()=>o(c),onMouseEnter:()=>l(c),onMouseLeave:()=>l(null),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",padding:"14px 16px",borderRadius:"8px",border:`1px solid ${s?a.cardBorder:"#e5e7eb"}`,backgroundColor:i===c?s?a.hoverBg:"#f9fafb":s?a.cardBg:"white",cursor:"pointer",textAlign:"left",transition:po.color},children:[f("span",{style:{fontSize:"15px",fontWeight:600,fontFamily:tt.ui,color:s?a.textPrimary:"#111827"},children:u}),f("span",{style:{fontSize:"13px",fontFamily:tt.ui,color:s?a.textSecondary:"#6b7280"},children:d})]},c))})})},Ag=({isOpen:e,onClose:t,onBack:n,closeOnBackdropClick:o,source:r,destinationChainId:s,onShowWidget:a,onHideWidget:i,verifying:l,verifyError:c,onRetryVerify:u,funded:d,styles:p})=>{const{dark:w,dk:m,primaryColor:g,theme:h}=sn(p),y=ro(s),C=j(null),S=j(a);S.current=a;const b=j(i);b.current=i;const A=l||!!c||!!d;return ue(()=>{if(!e)return;const O=C.current;if(O){if(A){b.current();return}return S.current(O,r),()=>b.current()}},[e,r,A]),f(bo,{isOpen:e,onClose:t,title:r==="card"?"Deposit with Card":"Deposit from Exchange",styles:p,dark:w,closeOnBackdropClick:o,children:R("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"12px"},children:[f("button",{onClick:n,disabled:l,style:{alignSelf:"flex-start",padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:tt.ui,color:w?m.textSecondary:"#6b7280",cursor:l?"default":"pointer",opacity:l?.5:1},children:"\u2190 Back"}),R("div",{style:{position:"relative",width:"100%"},children:[f("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:f(Uo,{size:28,color:g})}),f("div",{ref:C,style:{position:"relative",width:"100%",height:"560px"}}),A&&f("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"16px",padding:"24px",borderRadius:"9px",backgroundColor:w?"rgba(0, 0, 0, 0.82)":"rgba(255, 255, 255, 0.94)"},children:l?R(wn,{children:[f(Uo,{size:28,color:g}),R("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:["Confirming your deposit arrived on ",y,"\u2026"]})]}):d?R(wn,{children:[R("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:[d.amount," ",d.symbol," is in your wallet on"," ",y,"."]}),f(Qt,{variant:"outline",onClick:t,theme:h,dark:w,styles:p,children:"DONE"})]}):R(wn,{children:[f("p",{style:{margin:0,fontSize:"14px",fontFamily:tt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:c}),f(Qt,{variant:"outline",onClick:u,theme:h,dark:w,styles:p,children:"RETRY"}),f("button",{onClick:t,style:{padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:tt.ui,color:w?m.textSecondary:"#6b7280",cursor:"pointer",textDecoration:"underline"},children:"Close \u2014 we'll detect your funds later"})]})})]})]})})},Eg="692fb8af264069ca12a9",Hr=42161,Fg=[8453,Hr];function Tg(e){const{targetKind:t,appChainId:n}=e;return t!=="external"||n===void 0||!Fg.includes(n)?Hr:Vl("USDC",n)?n:Hr}function Ma(e=Hr){return Vl("USDC",e)}function Bg(e){const t=e?.integratorId??Eg;return{integratorId:t,enabled:e?.enabled===!0&&t!=="",embedFactory:e?.embedFactory}}const Og=e=>import("@swapper-finance/deposit-sdk").then(t=>new t.SwapperEmbed(e));function Rg(e,t,n){return{themeMode:t?"dark":"light",componentStyles:{width:"100%",primaryColor:n,accentColor:n,borderRadius:"9px",...t?{backgroundColor:e.shell,surfaceColor:e.cardBg,surfaceAltColor:e.inputBg,textColor:e.textPrimary,border:`1px solid ${e.cardBorder}`}:{}}}}function Ou(e){return e==="card"?["depositWithCash"]:e==="exchange"?["transferCrypto"]:["depositWithCash","transferCrypto"]}function Dg(e){const t=e.destinationChainId??Hr,n=Ma(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return{iframeUrl:"https://swapper-deposit-sdk.web.app/",integratorId:e.integratorId,dstChainId:String(t),dstTokenAddr:n.address,depositWalletAddress:e.depositWalletAddress,supportedDepositOptions:Ou(e.source),styles:e.styles,actionLabel:"deposit",flexibleHeight:!0,iframeAttributes:{borderRadius:"9px"}}}async function Ru(e,t=Hr){const n=Ma(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return Ct(t).readContract({address:n.address,abi:lt,functionName:"balanceOf",args:[e]})}async function Mg(e,t,n){const o=n?.timeoutMs??12e4,r=n?.intervalMs??3e3,s=Date.now()+o;for(;Date.now()<s;){if(n?.signal?.aborted)return null;try{const a=await Ru(e,n?.chainId);if(a>t)return a}catch{}await new Promise(a=>setTimeout(a,r))}return null}const Ng=.01,Pg=5*60*1e3;function Wg(e){const t=Number(De(e.verifiedBalance,e.tokenDecimals));return Number.isFinite(t)?t:0}async function Ug(e){const t=Du(e);let n;try{n=await Au(t.map(o=>o.tokenSymbol))}catch{return t}return t.filter(o=>{const r=Wg(o);if(r<=0)return!0;const s=n[o.tokenSymbol.toUpperCase()]??0;return!Number.isFinite(s)||s<=0?!0:r*s>=Ng})}function Du(e){const t=new Map;for(const n of e){const o=`${n.chainId}:${n.tokenAddress.toLowerCase()}`;if(!t.get(o)){const r=n.timestamp===0&&n.verifiedBalance>0n;t.set(o,{...n,amount:r?De(n.verifiedBalance,n.tokenDecimals):n.amount,rawAmount:r?n.verifiedBalance.toString():n.rawAmount,hasFullBalance:r?!0:n.hasFullBalance})}}return Array.from(t.values())}function Mu(e,t){const[n,o]=L([]),[r,s]=L(!1),a=j(t);a.current=t;const i=!!t?.enabled,l=j(0),c=j([]),u=t?.chainIds?.join(","),d=t?.discoverWalletBalances??!0,p=j(0),w=se(async({forceDiscovery:m=!1}={})=>{if(!e||a.current?.enabled===!1){o([]),s(!1);return}const g=++p.current,h=()=>g!==p.current;s(!0);try{const y=[],C=Tu(e),S=new Set(C.map(x=>`${x.chainId}:${x.tokenAddress.toLowerCase()}`)),b=[...C,...c.current.filter(x=>x.timestamp===0&&!S.has(`${x.chainId}:${x.tokenAddress.toLowerCase()}`))];for(const x of b){if(h())return;if(Go({address:x.tokenAddress,chainId:x.chainId,isNative:x.isNative}))try{const F=Ct(x.chainId);let T;if(x.isNative||Fe(x.tokenAddress)?T=await $a(F,{address:e}):T=await Xo(F,{address:un(x.tokenAddress),abi:lt,functionName:"balanceOf",args:[e]}),h())return;if(T>0n)y.push({...x,verifiedBalance:T,hasFullBalance:T>=BigInt(x.rawAmount)});else{const B=Date.now()-x.timestamp;x.timestamp!==0&&B>15*60*1e3&&Ba(e,x.chainId,x.tokenAddress)}}catch(F){if(h())return;console.warn(`[usePendingDeposit] Failed to verify balance for ${x.tokenSymbol} on chain ${x.chainId}:`,F),y.push({...x,verifiedBalance:0n,hasFullBalance:!1})}}if(h())return;const A=a.current,O=Date.now(),v=(A?.discoverWalletBalances??!0)&&(m||O-l.current>=Pg);if(A?.network&&v){l.current=O;const x=A.chainIds??Ys(A.network),F=new Set(y.map(B=>`${B.chainId}:${B.tokenAddress.toLowerCase()}`)),T=[];for(const B of x){const M=bt(B);if(M?.supportedTokens)for(const k of M.supportedTokens){if(!Go({address:k.address,chainId:B,isNative:!1}))continue;const E=`${B}:${k.address.toLowerCase()}`;F.has(E)||T.push((async()=>{try{const I=Ct(B),D=await Xo(I,{address:un(k.address),abi:lt,functionName:"balanceOf",args:[e]});return D>0n?{chainId:B,tokenAddress:k.address,tokenSymbol:k.symbol,tokenDecimals:k.decimals,amount:De(D,k.decimals),rawAmount:D.toString(),embeddedWalletAddress:e,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:D,hasFullBalance:!0}:null}catch{return null}})())}}if(T.length>0){const B=await Promise.allSettled(T);if(h())return;for(const M of B)M.status==="fulfilled"&&M.value&&y.push(M.value)}}if(!h()){const x=await Ug(y);if(h())return;c.current=Du(y),o(x)}}catch(y){if(console.error("[usePendingDeposit] Verification error:",y),!h()){const C=c.current.map(S=>({...S,verifiedBalance:0n,hasFullBalance:!1}));c.current=C,o(C)}}finally{h()||s(!1)}},[e]);return ue(()=>{if(c.current=[],l.current=0,o([]),!i){p.current++,s(!1);return}w({forceDiscovery:!0});const m=a.current?.pollIntervalMs??3e4;if(m<=0||!e)return()=>{p.current++};const g=setInterval(()=>{w({forceDiscovery:!1})},m),h=()=>w({forceDiscovery:!0});return window.addEventListener(Ta,h),()=>{p.current++,window.removeEventListener(Ta,h),clearInterval(g)}},[w,e,i,t?.network,u,d]),{pendingDeposits:n,loading:r,refresh:()=>w({forceDiscovery:!0})}}function Lg({enabled:e,integratorId:t,depositWalletAddress:n,destinationChainId:o,brand:r,embedFactory:s,onTransactionSuccess:a,onCloseRequest:i}){const l=j(null),c=j(null),u=j(a);u.current=a;const d=j(i);d.current=i;const p=j(r);p.current=r;const w=j(s);w.current=s;const m=se((y,C,S)=>{if(!C.isConnected)return;const b=y.getIframe();b.updateConfig({supportedDepositOptions:Ou(S)}),b.sendConfig(),y.showIn(C)},[]);ue(()=>{if(!e||!n)return;let y=!1;return Promise.resolve().then(()=>{const{dk:C,dark:S,primaryColor:b}=p.current;return(w.current??Og)(Dg({integratorId:t,depositWalletAddress:n,destinationChainId:o,source:null,styles:Rg(C,S,b)}))}).then(C=>{if(y){C.destroy();return}const S=C.getIframe();S.on("transaction_success",A=>u.current(A)),S.on("close_request",()=>d.current()),l.current=C;const b=c.current;b&&m(C,b.placeholder,b.source)}).catch(C=>{console.error("[useSwapperEmbed] Failed to preload Swapper widget:",C)}),()=>{y=!0,c.current=null,l.current?.destroy(),l.current=null}},[e,t,n,o,m]);const g=se((y,C)=>{c.current={placeholder:y,source:C};const S=l.current;S&&m(S,y,C)},[m]),h=se(()=>{c.current=null,l.current?.hide()},[]);return{showWidget:g,hideWidget:h}}function qg(e,t,n,o,r){return{address:t,symbol:n||"UNKNOWN",name:n||"Unknown Token",decimals:o||18,chainId:e,balance:0n,balanceFormatted:r?parseFloat(r):0,balanceUsd:0,isNative:Fe(t)}}const zg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,depositBatches:r,onDepositAmountChange:s,destinationChainId:a,destinationTokenAddress:i,onDepositExecute:l,depositActionLabel:c,sponsorGas:u=!1,escrowRecovery:d,skipTokenSelection:p=!1,directSubmit:w=!1,onSubmit:m,onDepositSuccess:g,onDepositError:h,skipRecovery:y=!0})=>{const C=an(_t);if(!C)return f("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"});const S=(C.mode||"7702")!="7702",b=S,A=C.nativeChainId,O=C.network||"testnet",{dark:v,dk:x,primaryColor:F}=sn(o),T=!!d,B=Eo(),{isReady:M,isAuthenticated:k,actions:E}=B,I=C?.embeddedWalletAddress,D=C.externalWalletAddress,P=!!D,H=Bg(C.swapper),Q=b?{address:D,kind:"external"}:{address:I,kind:"embedded"},G=Tg({targetKind:Q.kind,appChainId:a||A}),oe=H.enabled&&!T&&O==="mainnet"&&!!Ma(G),$=()=>p?"deposit":"select-token",V=()=>oe?"select-source":b?P?$():"connect-wallet":"provider-login",[re,X]=L(V()),[he,be]=L(null),[fe,xe]=L(!1),[te,K]=L(null),[le,N]=L(!1),[Le,Te]=L(null),[z,q]=L(null),[ne,de]=L(null),J=j(null),ie=j(null),{pendingDeposits:ze,loading:Se,refresh:Ce}=Mu(I,{enabled:e&&!y,network:O,chainIds:C.supportedChainIds}),et=ge(()=>ze.filter(Z=>Z.embeddedWalletAddress.toLowerCase()===I?.toLowerCase()),[ze,I]),[Me,Ne]=L(null),[We,we]=L(!1),[Ye,ke]=L(null),[He,ft]=L(!1),[Ze,nt]=L("idle");ue(()=>{if(e&&re==="recovery"&&!We&&!Se&&et.length===0){X(V());return}e&&!y&&!T&&!Me&&!He&&Ze==="idle"&&k&&I&&P&&D&&!Se&&et.length>0&&re!=="recovery"&&re!=="deposit"&&re!=="swapper"&&X("recovery")},[e,y,T,k,I,P,D,Se,et,re,Me,He,Ze,We,oe,b,p]);const Qe=se(Z=>{const Ut={address:Z.tokenAddress,symbol:Z.tokenSymbol,name:Z.tokenSymbol,decimals:Z.tokenDecimals,chainId:Z.chainId,balance:Z.verifiedBalance,balanceFormatted:parseFloat(Z.amount),balanceUsd:0,isNative:Z.isNative};be(Ut),Ne(Z),X("deposit")},[]),pe=se(Z=>{if(K(Z),b){X(P?Z==="wallet"?$():"swapper":"connect-wallet");return}const Ut=k&&!!I;X(Z==="wallet"?Ut?P?$():"connect-wallet":"provider-login":Ut?"swapper":"provider-login")},[b,k,I,P,p]),Oe=se(()=>{ie.current?.abort(),N(!1),Te(null),q(null),K(null),J.current=null,de(null),X("select-source")},[]);ue(()=>{re==="swapper"&&(ne||!Q.address||de({address:Q.address,kind:Q.kind}))},[re,ne,Q.address,Q.kind]);const at=ne??Q,Ke=at.address,Ae=at.kind,Xe=se(async Z=>{if(!e||re!=="swapper"||!Ke)return;ie.current?.abort();const Ut=new AbortController;ie.current=Ut,Te(null),N(!0);const it=Ma(G);if(!it){N(!1);return}const Tt=Gt=>{N(!1);const Ot=De(Gt,it.decimals);if(Ae==="external"){q({amount:Ot,symbol:it.symbol});const Ln={type:"wallet-funding",status:"success",amount:Ot,asset:it.address,sourceChain:String(G)};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:Ln})),g?.(Ln);return}Qe({chainId:G,tokenAddress:it.address,tokenSymbol:it.symbol,tokenDecimals:it.decimals,amount:Ot,rawAmount:Gt.toString(),embeddedWalletAddress:Ke,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:Gt,hasFullBalance:!0})},en=J.current,bn=await en;if(Ut.signal.aborted||J.current!==en)return;if(bn===null){N(!1),Te("Unable to confirm your starting balance. Go back and reopen the deposit to try again.");return}const Re=await Mg(Ke,bn,{signal:Ut.signal,chainId:G});if(!Ut.signal.aborted){if(Re===null){N(!1);const Gt=bt(G)?.viemChain?.name??`chain ${G}`;Te(`We haven't seen your funds arrive on ${Gt} yet \u2014 they may still be in transit.`);return}Tt(Re)}},[e,re,Ke,Ae,G,Qe,g]);ue(()=>{if(!e||re!=="swapper"||!Ke)return;const Z=Ru(Ke,G).catch(()=>null);return J.current=Z,()=>{J.current===Z&&(J.current=null),ie.current?.abort()}},[e,re,Ke,G]);const{showWidget:kt,hideWidget:Ge}=Lg({enabled:e&&oe,integratorId:H.integratorId,depositWalletAddress:Ke,destinationChainId:G,brand:{dk:x,dark:v,primaryColor:F},embedFactory:H.embedFactory,onTransactionSuccess:Xe,onCloseRequest:()=>{le||Oe()}}),Bt=se(()=>{ft(!0),X(k&&I&&P&&D?p?"deposit":"select-token":k&&I?"connect-wallet":"provider-login")},[k,I,P,D,p]),rt=se(()=>{ke(null),nt("awaiting-disconnect"),X("connect-wallet")},[]),ct=se(async Z=>{we(!0),ke(null);try{if(!I)throw new Error("Embedded wallet not available");const Ut=await E.getEthereumProvider(),it=bt(Z.chainId);await Ml(Ut,Z.chainId);const Tt=Ct(Z.chainId),en=await $a(Tt,{address:I}),bn=it?.viemChain?.name||`chain ${Z.chainId}`;if(en===0n)throw new Error(`Your embedded wallet has no ETH on ${bn} to pay for gas. We recommend completing the deposit instead \u2014 it doesn't require gas.`);const Re=Xa({account:I,transport:Ja(Ut),chain:it?.viemChain}),Gt=Z.externalWalletAddress&&Xn(Z.externalWalletAddress)?Z.externalWalletAddress:D;if(!Gt||!Xn(Gt))throw new Error("Connect the external wallet that should receive these funds, then try again.");const Ot={recipient:Gt,tokenAddr:Z.tokenAddress,isNative:Z.isNative||Fe(Z.tokenAddress),amount:Z.verifiedBalance,viemChain:it?.viemChain},Ln=await Ki(Re,Ot),{receipt:Rt}=await da({client:Tt,hash:Ln,call:ka(Ot.recipient,Ot.tokenAddr,Ot.isNative,Ot.amount),confirmations:1});if(Rt.status!=="success")throw new Error("The return transaction failed. Please try again.");Ba(Z.embeddedWalletAddress,Z.chainId,Z.tokenAddress),Ce(),ze.length<=1&&X(V())}catch(Ut){const it=Ut?.message||"Couldn't return your funds. Please try again.",Tt=/insufficient funds for gas/i.test(it);ke(Tt?"Not enough ETH in your embedded wallet to cover gas fees. Complete the deposit instead \u2014 it doesn't require gas.":it)}finally{we(!1)}},[E,I,D,ze,Ce]);ue(()=>{e||(Ne(null),ke(null),we(!1),ft(!1),nt("idle"),ie.current?.abort(),K(null),N(!1),Te(null),q(null),J.current=null,de(null))},[e]),ue(()=>{if(!(y||Ze==="idle")){if(Ze==="awaiting-disconnect"){(!P||!D)&&nt("awaiting-reconnect");return}e&&!Se&&ze.length>0&&k&&I&&(nt("idle"),X("recovery"))}},[y,Ze,P,D,e,Se,ze,k,I]),ue(()=>{!T||!e||(k&&I?(xe(!0),!he&&d?.chainId&&d?.tokenAddress&&be(qg(d.chainId,d.tokenAddress,d.tokenSymbol,d.tokenDecimals,d.amount)),X("deposit")):X("provider-login"))},[T,e,re,k,I]);const{assets:dt,loading:mt}=fs({address:D,supportedChains:C.supportedChainIds,fetchBalances:Rr,enabled:e&&!!D,refreshInterval:e?5e3:0}),fn=se(()=>{xe(!0),X(T?"deposit":te==="card"||te==="exchange"?"swapper":P?p?"deposit":"select-token":"connect-wallet")},[T,te,P,p]),wt=se(async()=>{if((!P||!D)&&(await wo(500),!P||!D)){alert("Please connect your wallet first");return}X(p?"deposit":"select-token")},[P,D,p]),ht=se(Z=>{be(Z),X("deposit")},[]),Wt=se(()=>{if(be(null),s?.(""),!D){X("connect-wallet");return}X("select-token")},[D,s]),Ft=se(()=>{t()},[t]);if(ue(()=>{if(!e){const Z=setTimeout(()=>{T||(X(V()),be(null)),xe(!1)},300);return()=>clearTimeout(Z)}},[e,T,d?.chainId]),ue(()=>{e&&re==="deposit"&&!he&&!T&&!Me&&!p&&X("select-token")},[e,re,he,T,Me,p]),ue(()=>{if(e&&re==="connect-wallet"&&P&&D&&Ze==="idle"){if(oe&&!te){X("select-source");return}if(oe&&te&&te!=="wallet"){X("swapper");return}X(p?"deposit":"select-token")}},[e,re,P,D,Ze,p,oe,te]),ue(()=>{if(!b&&e&&re==="provider-login"&&M&&k&&I&&!fe){const Z=setTimeout(()=>{xe(!0),X(te==="card"||te==="exchange"?"swapper":P?p?"deposit":"select-token":"connect-wallet")},100);return()=>clearTimeout(Z)}},[b,e,re,M,k,I,te,P,p,fe]),!e)return null;if(re==="recovery")return f(Cg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,deposits:et,onComplete:Qe,onCancel:ct,onSkip:Bt,onChangeWallet:rt,isProcessing:We,isVerifying:Se,onRefresh:Ce,error:Ye,styles:o});if(re==="select-source")return oe?f(Sg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onSelect:pe,styles:o}):(X("provider-login"),null);if(re==="swapper")return te!=="card"&&te!=="exchange"?(X(V()),null):Ke?f(Ag,{isOpen:e,onClose:Ft,onBack:Oe,closeOnBackdropClick:n,source:te,destinationChainId:G,onShowWidget:kt,onHideWidget:Ge,verifying:le,verifyError:Le,onRetryVerify:Xe,funded:z,styles:o}):f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:f("div",{style:{backgroundColor:v?x.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%",textAlign:"center",fontFamily:'"Helvetica Neue", sans-serif',fontSize:"14px",color:v?x.textPrimary:"#111827"},children:"Preparing your account..."})});if(re==="provider-login"&&!b)return f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:f("div",{style:{backgroundColor:v?x.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%"},children:f(Bi,{onAuthSuccess:fn,autoTrigger:!0})})});if(re==="connect-wallet")return f(tg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onContinue:wt,requiredChainId:S?A:void 0,styles:o});if(re==="select-token")return D?f($h,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,onTokenSelect:ht,walletAddress:D,supportedChainIds:C.supportedChainIds,network:O,prefetchedAssets:mt?null:dt??null,styles:o,dark:v}):(X("connect-wallet"),null);if(re==="deposit"){if(!he&&!p)return null;const Z=!!Me;return f(kg,{isOpen:e,onClose:Ft,closeOnBackdropClick:n,supportedChains:he?[he.chainId]:C.supportedChainIds??[],styles:o,externalWalletAddress:D,depositBatches:Z?void 0:r,onDepositAmountChange:s,destinationChainId:a,destinationTokenAddress:i,onDepositExecute:l,depositActionLabel:c,nativeChainId:A,sponsorGas:u,preSelectedAsset:he??void 0,escrowOnly:T||Z,escrowTokenAddress:Z?Me.tokenAddress:d?.tokenAddress,escrowAmount:Z?Me.amount:d?.amount,escrowTokenDecimals:Z?Me.tokenDecimals:d?.tokenDecimals,escrowTokenSymbol:Z?Me.tokenSymbol:d?.tokenSymbol,onSubmit:m,directSubmit:w,onDepositSuccess:g,onDepositError:h,embeddedWalletAddress:I,onViewAllAssets:p?void 0:Wt})}return null},Nu=e=>an(_t)?f(zg,{...e}):f("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"}),Hg=({depositProps:e,withdrawProps:t,...n})=>{const[o,r]=L(!1),[s,a]=L(null);return R(wn,{children:[f(bu,{...n,onDepositClick:()=>r(!0),onWithdrawClick:i=>a({assetId:i})}),f(Nu,{styles:n.styles,onDepositSuccess:n.onDepositSuccess,...e,isOpen:o,onClose:()=>r(!1)}),f(_i,{styles:n.styles,...t,isOpen:!!s,onClose:()=>a(null),initialSourceAssetId:s?.assetId})]})},Qg=({isOpen:e,onClose:t,onChainSelect:n,supportedChains:o,closeOnSelect:r=!0,styles:s})=>{const{theme:a,dark:i,primaryColor:l,dk:c}=sn(s),[u,d]=L(""),[p,w]=L(null),[m,g]=L(null),[h,y]=L(!1),[C,S]=L(null),{switchChainAsync:b}=Wp(),A=ge(()=>new Set(o||[]),[o]),O=ge(()=>{if(!o||o.length===0)return[];const T=[];return o.forEach((B,M)=>{if(typeof B!="number")return;const k=bt(B);k&&T.push({id:B.toString(),name:k.displayName,icon:Jo[B]||ds,chainId:B,verified:!0,order:M})}),T},[o]);ue(()=>{p&&!A.has(parseInt(p,10))&&w(null)},[p,A]);const v=ge(()=>O.filter(T=>T.name.toLowerCase().includes(u.toLowerCase())).sort((T,B)=>T.order-B.order),[O,u]),x=async()=>{if(!p)return;const T=parseInt(p,10);y(!0),S(null);try{await b({chainId:T}),n&&n(p),r&&t()}catch(B){console.error("Failed to switch chain:",B),S(Un(B,"Failed to switch chain."))}finally{y(!1)}},F=!p||h;return R(bo,{isOpen:e,onClose:t,title:"Select Chain",styles:s,theme:a,dark:i,children:[f("div",{style:{padding:"24px 20px"},children:f(ol,{value:u,onChange:d,ariaLabel:"Search chains",placeholder:"Search chain name, symbol or address",size:"md",dark:i,styles:s,endAdornment:f("div",{style:{padding:"5px 5px",borderRadius:"3px",fontSize:"13px",backgroundColor:i?c.cardBg:"#E9E9E9",color:i?c.textSecondary:"#485066",fontWeight:500,flexShrink:0},"aria-hidden":"true",children:"\u2318F"})})}),f("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"12px"},children:v.map(T=>{const B=p===T.id,M=m===T.id;return R("button",{onClick:()=>w(T.id),onMouseEnter:()=>g(T.id),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:B?i?`${l}15`:`${l}12`:"transparent",border:B?i?`1px solid ${l}66`:`1px solid ${l}88`:M?i?`1px solid ${l}44`:`1px solid ${l}66`:"1px solid transparent",cursor:"pointer",transition:po.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"30px"},children:f("img",{src:T.icon,alt:T.name,loading:"lazy",decoding:"async",style:{width:"100%",height:"100%",borderRadius:"50%"}})}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",flex:1},children:[f("span",{style:{fontFamily:tt.mono,fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:c.textPrimary,textAlign:"left"},children:T.name}),T.verified&&f("img",{src:vu,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:16,height:16,style:{width:"16px",height:"16px",filter:i?"brightness(0) invert(1)":"none"}})]})]},T.id)})}),C&&f("div",{style:{padding:"0 25px 12px"},children:f(Vn,{variant:"error",size:"compact",palette:c,children:C})}),f("div",{style:{padding:"0 25px 25px"},children:R(Qt,{variant:"outline",onClick:x,disabled:F,fullWidth:!0,theme:a,styles:s,dark:i,children:["SELECT",f(mm,{size:20})]})})]})};function Pu(e){const t=iu({enabled:e.enabled,chainId:e.lockChainId,address:e.destinationTokenAddress,decimals:e.destinationTokenDecimals,symbol:e.lockTokenSymbol,logoURI:e.lockTokenLogoURI}),n=t.token,o=se((a,i)=>{if(!t.ready)throw new Error("Lock token metadata is unavailable.");const l={...n,name:n.symbol,isNative:Fe(n.address),balance:0n,balanceFormatted:0,balanceUsd:0},c=typeof e.lockBatches=="function"?e.lockBatches({asset:l,amount:De(a,l.decimals),amountWei:a,feeAdjusted:!0,beneficiary:i.beneficiary??i.userAddress,executorAddress:i.executorAddress}):e.lockBatches;if(c.some(u=>u.chainId!==e.lockChainId||u.domain==="spicenet"||u.tokenTransfers?.some(d=>d.from!=="escrow"||!ee(d.token,n.address))))throw new Error("Lock action definitions must contain destination contract calls; the SDK supplies conversion and delivery.");return c.flatMap(u=>u.calls)},[t.ready,n,e.lockBatches,e.lockChainId]),r=Ss({enabled:t.ready,destinationToken:t.ready?n:void 0,selectedAsset:e.selectedAsset,amountDirection:"input-inclusive",feeFunding:e.feeFunding,combineSourceBalances:e.combineSourceBalances,recipient:e.beneficiary,buildActionCalls:o,buildSpicenetBatch:e.buildSpicenetBatch,onSubmit:e.onSubmit,onSuccess:e.onLockSuccess,onError:(a,i)=>e.onLockError?.(a.message,i)}),s=se(()=>{t.refresh(),r.quote.refreshQuote()},[t.refresh,r.quote.refreshQuote]);return{...r,quote:{...r.quote,refreshQuote:s},destination:n,metadataError:t.error,canExecute:t.ready&&r.canExecute}}function Vg(e){const t=new Date;t.setDate(t.getDate()+Math.floor(e*30));const n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=t.getDate(),r=o===1||o===21||o===31?"st":o===2||o===22?"nd":o===3||o===23?"rd":"th";return`${n[t.getMonth()]} ${o}${r} ${t.getFullYear()}`}const jg=({label:e,value:t,fontFamily:n,dark:o=!1,textPrimary:r="#111827",textSecondary:s="#6b7280"})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[R("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"7",cy:"7",r:"6.5",stroke:s,strokeWidth:"1.2"}),f("path",{d:"M7 6v4",stroke:s,strokeWidth:"1.2",strokeLinecap:"round"}),f("circle",{cx:"7",cy:"4.5",r:"0.7",fill:s})]}),f("span",{style:{fontSize:"13px",color:s,fontFamily:n},children:e})]}),f("span",{style:{fontSize:o?"17px":"13px",fontWeight:700,color:r,fontFamily:tt.mono,letterSpacing:"0.3px"},children:t})]}),Wu=mo(jg),Gg=({options:e,selectedIndex:t,onSelect:n,primaryColor:o,dark:r=!1,textPrimary:s="#111827",textSecondary:a="#6b7280",trackColor:i})=>{const l=e.length-1,c=i||(r?"#3a3a3a":"#d1d5db"),u=r?"4px":"50%",d=r?"none":"2px solid white",p=r?"none":`0 0 0 1px ${o}`;return R("div",{style:{width:"100%",userSelect:"none"},children:[R("div",{style:{position:"relative",paddingBottom:"4px"},children:[f("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:"4px",background:c,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none"}}),f("div",{style:{position:"absolute",top:"50%",left:0,width:`${t/l*100}%`,height:"4px",background:o,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none",transition:"width 0.15s ease"}}),f("input",{type:"range","aria-label":"Lock duration","aria-valuetext":e[t]?.label,"data-spiceflow-focus":!0,min:0,max:l,step:1,value:t,onChange:w=>n(Number(w.target.value)),style:{WebkitAppearance:"none",appearance:"none",width:"100%",height:"20px",background:"transparent",cursor:"pointer",outline:"none",border:"none",position:"relative",zIndex:1,margin:0,padding:0}})]}),f("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"6px"},children:e.map((w,m)=>R("div",{onClick:()=>n(m),style:{display:"flex",flexDirection:"column",alignItems:m===0?"flex-start":m===l?"flex-end":"center",cursor:"pointer",flex:1},children:[f("span",{style:{fontSize:"12px",fontWeight:m===t?700:400,color:m===t?s:a,whiteSpace:"nowrap",transition:"color 0.15s, font-weight 0.15s"},children:w.label}),w.highlight&&f("span",{style:{fontSize:"10px",color:a,whiteSpace:"nowrap"},children:"(most common)"})]},m))}),f("style",{children:`
|
|
50
|
+
`})]})},Ag=ko.memo(({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,onDepositSelect:o,depositBatches:r,supportedChains:s,title:a,styles:i,onDepositAssetChange:l,assetInputHook:c,externalWalletAddress:u,onDepositAmountChange:d,allowSecondAsset:p=!1,destinationChainId:w,destinationTokenAddress:m,onDepositExecute:g,depositActionLabel:h,nativeChainId:y,sponsorGas:C=!1,preSelectedAsset:S,escrowOnly:b=!1,escrowTokenAddress:A,escrowAmount:O,escrowTokenDecimals:v,escrowTokenSymbol:x,onSubmit:F,directSubmit:T=!1,onDepositSuccess:B,onDepositError:M,embeddedWalletAddress:k,onViewAllAssets:E})=>{const I=an($t),D=I?.mode||"7702",P=I?.allowedTokens,H=!!I?.isWhitelistGateActive,Q=!b&&!!I?.isWhitelistConfigured&&I?.isUserWhitelisted!==!0,G=c?.assetAmount||"",{theme:ne,dark:X,appName:V,primaryColor:oe,dk:Y}=on(i),ge=Fo(),{isReady:xe,isAuthenticated:he}=ge,{externalWallet:ve}=Tr(),_=I?.embeddedWalletAddress||k,K=D!="7702",ie=K?!!u:xe&&he&&!!_,N=_,Le=u,Te=N??Le,z=To(),{data:q}=qp(),[ee,ce]=ko.useState(q),Z=ko.useRef(null),ae=ko.useRef(ve);ae.current=ve;const ze=ve?.address;ko.useEffect(()=>{const te=ae.current;if(!te||!Le){Z.current=null,ce(q);return}if(te.address?.toLowerCase()!==Le?.toLowerCase()){Z.current=null,ce(q);return}te.getEthereumProvider().then(async Ae=>{Z.current=Ae;const yt=await Ae.request({method:"eth_chainId"}),Ve=parseInt(yt,16),je=xt(Ve),it=await te.getWalletClient(Ve);ce(je?ei({account:Le,chain:je.viemChain,transport:ti(Ae)}):it)}).catch(()=>{Z.current=null,ce(q)})},[ze,Le,q]);const Ie=ko.useRef(null),[Ce,tt]=L([]),{assets:De,loading:Me,error:Pe,refreshAssets:ye}=ms({address:b?N:Le||N,supportedChains:s,fetchBalances:Rr,enabled:e,refreshInterval:e?5e3:0}),Ze=we(()=>De.filter(te=>te.balance>0n&&Io(te,"deposit-source",{allowedTokens:P,rpcOverrides:I?.rpcOverrides,liquidityVenues:I?.liquidityVenues,isWhitelistGateActive:H},void 0,void 0,{requiresEscrow:K||b}).eligible).sort((te,Ae)=>Ae.balanceUsd-te.balanceUsd),[De,P,I?.rpcOverrides,H,K,b]),ke=we(()=>{if(!Ce[0]?.asset)return[];const te=Ce[0].asset.chainId;return Ze.filter(Ae=>Ae.chainId===te)},[Ze,Ce]),[He,gt]=L(!1),[Xe,ot]=L(!1),Qe=JSON.stringify([e,N,Le,I?.apiUrl,I?.network]),fe=j({key:Qe,version:0});fe.current.key!==Qe&&(fe.current={key:Qe,version:fe.current.version+1}),pe(()=>{ot(!1),gt(!1)},[Qe]);const[Oe,dt]=L(null),Ye=j(M);Ye.current=M;const Se=re(te=>{dt(te),typeof te=="string"&&te&&Ye.current?.(te,os(te))},[]),[Je,It]=L("idle"),Ke=re(te=>{typeof te=="string"&&te&&Ye.current?.(te,os(te))},[]),[Rt,lt]=L(!1),[ut,pt]=L(null),[Et,_t]=L("idle"),[Ct,at]=L(null),[Wt,Ut]=L(null),[$,Lt]=L(null),[$e,wt]=L(null),[In,pn]=L(null),{intentStatus:Ue,startStatusPolling:Pt,clearStatus:qt,execute:jt}=Dr(),Bt=Ue?.overallStatus==="success"||Et==="success",Rn=re((te,Ae)=>{const yt=Qs[Ae];return yt?yt.supportedTokens?.find(Ve=>J(Ve.address,te))?.symbol??null:null},[]),So=we(()=>{const te=Ce[0]?.asset;if(!te||!m||!w)return!1;const Ae=Rn(m,w);return ug(te.symbol)&&!!Ae&&pg(Ae)},[Ce,m,w,Rn]);pe(()=>{Ce.length>0&&G!==Ce[0]?.amount&&tt(te=>{if(te.length===0)return te;const Ae=[...te];return Ae[0]={...Ae[0],amount:G||""},Ae})},[G]),pe(()=>{Ce.length!==0&&tt(te=>{let Ae=!1;const yt=te.map(Ve=>{if(!Ve.asset)return Ve;const je=Ze.find(it=>it.chainId===Ve.asset.chainId&&J(it.address,Ve.asset.address));return je?je===Ve.asset||je.balance===Ve.asset.balance?Ve:(Ae=!0,{...Ve,asset:je,amount:Ve.amount}):Ve});return Ae?yt:te})},[Ze,Ce.length]),pe(()=>{if(!S||Ce.length>0||Ze.length===0)return;const te=Ze.find(Ae=>Ae.chainId===S.chainId&&J(Ae.address,S.address));te&&(tt([{asset:te,amount:""}]),l?.(te))},[S,Ze,Ce.length]);const Zn=ko.useRef(null);pe(()=>{if(K&&Ue?.overallStatus==="success"&&g&&Je==="idle"){const te=Zn.current,Ae=Ie.current;if(te){const yt=fe.current.version,Ve=()=>fe.current.version===yt;(async()=>{try{It("executing"),await g(te),Ve()&&(It("success"),pt(te),lt(!0));const je=Array.isArray(Ae)?Ae[0]:void 0,it={type:"deposit",status:"success",amount:te,asset:je?.tokenAddress,sourceChain:je?String(je.chainId):void 0,txHash:je?.txHash};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:it})),B?.(it)}catch(je){console.error("onDepositExecute failed:",je),Ve()&&(It("error"),Ke(Wn(je,"Post-deposit instruction failed")))}finally{Zn.current===te&&Ie.current===Ae&&(Zn.current=null,Ie.current=null)}})()}}},[Ue?.overallStatus,K,Je]);const fn=re(()=>{Xe||Se(null)},[Xe]);pe(()=>{qt(),Zt(!1),zt(null),It("idle"),lt(!1),pt(null),_t("idle"),at(null),Ut(null)},[Qe]);const ao=re((te,Ae)=>{tt(yt=>{const Ve=[...yt];return Ve[Ae]={asset:te,amount:Ve[Ae]?.amount||""},Ve}),Ae===0&&l?.(te),fn()},[l,fn]),Qn=re(async(te,Ae)=>{if(tt(yt=>{const Ve=[...yt];return Ve[Ae]&&(Ve[Ae]={...Ve[Ae],amount:te}),Ve}),fn(),Ae===0)if(c?.setAssetAmount(te),So&&te&&parseFloat(te)>0)try{const yt=$??await dg();$||Lt(yt);const Ve=Ce[0]?.asset;if(!Ve)return;const je=Kn(te,Ve.decimals),it=m?Rn(m,w):null,_n=Qs[w]?.supportedTokens?.find(Ir=>J(Ir.address,m))?.decimals??6,io=fg(je,Ve.decimals,_n,yt);wt(io);const lo=Re(io,_n),bn=yt.toLocaleString("en-US",{maximumFractionDigits:0});pn(`${te} ${Ve.symbol} \u2248 $${parseFloat(lo).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})} ${it??"USD"} (rate: $${bn}/BTC)`),d?.(lo)}catch(yt){console.error("Failed to fetch BTC/USD price:",yt),pn(null),wt(null),d?.(te)}else pn(null),wt(null),d?.(te)},[fn,c,d,So,$,Ce,m,w,Rn]),mn=re(()=>{Ce.length<2&&tt(te=>[...te,{asset:null,amount:""}])},[Ce.length]),St=re(te=>{tt(Ae=>Ae.filter((yt,Ve)=>Ve!==te)),fn()},[fn]),en=j(!1),Xn=j(!1);pe(()=>{e||(en.current=!1,Xn.current=!1,ln(null),Ln(null))},[e]);const[Dt,Zt]=L(!1),[_e,zt]=L(null),[Un,ln]=L(null),[Bn,Ln]=L(null),[Dn,On]=L(!1),[hn,qn]=L(null),et=we(()=>{const te=Ce[0];if(Ce.length!==1||!te?.asset||!te.amount||parseFloat(te.amount)<=0)return null;try{return{asset:te.asset,amount:Kn(te.amount,te.asset.decimals),token:ht(te.asset.address),chainId:te.asset.chainId}}catch{return null}},[Ce]),Jn=!K&&!b&&!!et&&!Zo(et.asset),$n=we(()=>et?[et.chainId,et.token.toLowerCase(),et.amount.toString(),b?"escrow":"normal"].join("|"):null,[et,b]),Mn=re(async(te,Ae)=>N?Ma({address:N,depositQuote:te,escrowOnly:b,signal:Ae}):null,[N,b]),Xo=re(async te=>et?Mn(et,te):null,[et,Mn]),bo=j(Xo);bo.current=Xo,Si({shouldRun:e&&!K&&!Jn&&!!$n&&!Dt&&!He&&!Ue&&!Bt,deps:[e,K,Jn,$n,Dt,He,Ue,Bt],delayMs:500,backgroundIntervalMs:3e4,onSkip:()=>{ln(null),qn(null),On(!1)},onCleanup:()=>On(!1),run:async({isBackground:te,isCurrent:Ae,signal:yt})=>{te||(qn(null),On(!0));try{const Ve=await bo.current(yt);Ae()&&ln(Ve)}catch(Ve){if(!Ae())return;ln(null),qn(Ve instanceof Error?Ve.message:"Failed to estimate gas fee")}finally{Ae()&&On(!1)}}}),pe(()=>{Dt||He||Ln(null)},[Dt,He,$n]);const ue=j(!1),de=()=>{if(Ce.length===0||!Ce[0]?.asset)return;const te=Ce.filter(it=>it.asset&&it.amount&&parseFloat(it.amount)>0);if(te.length===0)return;const Ae=te[0],yt=xt(Ae.asset.chainId),Ve=te.map(it=>{const _n=parseFloat(it.amount);return`${isNaN(_n)?it.amount:_n.toPrecision(6).replace(/\.?0+$/,"")} ${it.asset.symbol}`}).join(", "),je={network:yt?.displayName||`Chain ${Ae.asset.chainId}`,amount:Ve,symbol:"",chainId:Ae.asset.chainId};if(Nn&&kt&&Sn){Ln(kt);const it=te[0];je.creditedAmount=`${Re(kt.net,it.asset.decimals)} ${Zo(it.asset)?z({...it.asset,location:"rollup",_source:"spice",receiptTokenName:"spiceUSDC"}).symbol:it.asset.symbol}`,je.networkFee=`${Re(kt.fee,it.asset.decimals)} ${it.asset.symbol}`}return zt(je),je},rt=async()=>{!Wo||!de()||(T?await gn():Zt(!0))},Ot=j(Ue);Ot.current=Ue;const We=j(Je);We.current=Je;const Xt=JSON.stringify([e,N,_,Le,xe,he,D,qe.getBaseUrl(),H,b,w,m,Q,Ce.map(({asset:te,amount:Ae})=>[te.chainId,te.address,Ae])]),Gt=j({key:Xt});Gt.current.key!==Xt&&(Gt.current={key:Xt});const rn=j(!0),cn=j(!1);Bo(()=>(rn.current=!0,()=>{rn.current=!1}),[]);const sn=async()=>{if(cn.current)return;cn.current=!0;const te=Gt.current,Ae=qe.getBaseUrl();try{de();const yt=fe.current.version,Ve=()=>fe.current.version===yt,je=it=>(..._n)=>{Ve()&&it(..._n)};await yg({isCurrent:Ve,validateCurrentSession:()=>{if(!e||!rn.current||Gt.current!==te||qe.getBaseUrl()!==Ae)throw new Error("The wallet or deposit changed. Review it again before funding.")},selectedDepositAssets:Ce,escrowOnly:b,sourceAddress:Le,isNon7702:K,address:N,embeddedWalletAddress:_,isReady:xe,isAuthenticated:he,zeroCreditError:wn,depositBalanceError:yn,externalWalletClient:ee,externalProvider:Z.current,effectiveDepositFee:kt,depositBatches:r,destinationChainId:w,destinationTokenAddress:m,isCrossDenomination:So,convertedUsdAmount:$e,mode:D,sponsorGas:C,nativeChainId:y,spiceBalanceUser:Te,depositDataRef:Ie,bridgedAmountRef:Zn,setIsExecuting:je(gt),setError:je(Se),setRetryBlocked:je(ot),setConfirmationData:je(zt),setShowConfirmation:je(Zt),setDirectDepositStatus:je(_t),setDirectDepositChainId:je(Ut),setDirectDepositTxHash:je(at),setPostDepositStatus:je(It),setPostDepositError:je(Ke),setPostDepositAmount:je(pt),setPostDepositSuccess:je(lt),startStatusPolling:je(Pt),clearStatus:je(qt),refreshAssets:ye,onDepositExecute:g,onDepositSelect:o,onDepositSuccess:B,execution:{execute:jt},getCurrentIntentStatus:()=>Ot.current,getCurrentPostDepositStatus:()=>We.current})}finally{cn.current=!1}},gn=async()=>{if(!(ue.current||He||Xe||Bt)){ue.current=!0;try{F?.(),await sn()}finally{ue.current=!1}}},wn=we(()=>{for(const te of Ce)if(!(!te?.asset||!te.amount||parseFloat(te.amount)<=0))try{const Ae=te.asset.decimals,yt=Kn(te.amount,Ae);if(yt<=0n)continue;const Ve=ht(te.asset.address),je=Fe(Ve)?Yt(Ve,te.asset.chainId)?.equivalenceGroup:Mp(Ve),it=te.asset.receiptTokenDecimals??(je==="ETH"||je==="ARB"?18:je==="USDC"||je==="SUSD"||je==="WBTC"||je==="CBTC"?6:void 0);if(it===void 0||Ae<=it||mo(yt,Ae,it)>0n)continue;return`Amount too small. Minimum deposit for this asset is ${Re(10n**BigInt(Ae-it),Ae)} ${te.asset.symbol}.`}catch{continue}return null},[Ce]),Nn=!K&&!!et&&!Jn,kt=Bn??Un,Sn=!!et&&Mu(kt,et),yn=we(()=>{if(!et)return null;if(Jn)return et.asset.balance>=et.amount?null:`Insufficient ${et.asset.symbol}. Need ${Re(et.amount,et.asset.decimals)} ${et.asset.symbol}.`;if(!Nn||!Sn)return null;if(b&&(kt.fee>=et.amount||kt.net<=0n))return"This deposit amount is too small to cover the network fee. Your funds remain in your wallet.";const te=b?et.amount:et.amount+kt.fee;return et.asset.balance>=te?null:`Insufficient ${et.asset.symbol}. Need ${Re(te,et.asset.decimals)} ${et.asset.symbol} including gas.`},[Nn,Jn,et,Sn,kt,b]),[Ao,mt]=L(!1),Jt=Ce[0]?.asset?.chainId,Jo=De.find(te=>te.isNative&&te.chainId===Jt)?.balance??0n;pe(()=>{if(!e||!Jt||b){mt(!1);return}let te=!1;return(async()=>{try{const Ae=await At(Jt).getGasPrice()*150000n;te||mt(Jo<Ae)}catch{te||mt(!1)}})(),()=>{te=!0}},[e,Jt,Jo,b]);const vr=!Nn||Sn&&!Dn&&!hn&&!yn,kr=re((te,Ae)=>bg({asset:te,assetIndex:Ae,selectedAssetCount:Ce.length,address:N,escrowOnly:b,isNon7702:K}),[K,Ce.length,N,b]),Po=we(()=>{if(!et||!kt||!Sn)return null;const te=b?et.amount:et.amount+kt.fee;return{symbol:et.asset.symbol,decimals:et.asset.decimals,grossAmount:te,netAmount:kt.net,totalFee:kt.fee,gasFee:kt.fee,spicenetFee:0n,bridgeFee:0n,gasQuoteSource:"estimated"}},[et,kt,Sn,b]),Cr=parseFloat(Ce[0]?.amount||"")||0,Wo=Ce.length>0&&Ce[0]?.asset&&Ce[0]?.amount&&Cr>0&&ie&&!He&&!Bt&&!Xe&&!wn&&!yn&&vr&&!Q;pe(()=>{if(!b||!A||!O||en.current||!ie)return;const te=s[0];if(!te)return;const Ae=Ip(te,[]).find(Ve=>J(Ve.address,A));let yt;if(Ae)yt=Ae;else if(v!==void 0&&x)yt={address:A,symbol:x,name:x,decimals:v,chainId:te,balance:BigInt(0),balanceFormatted:0,balanceUsd:0,isNative:Fe(A)};else{console.warn("[DepositModal] escrowOnly: no matching asset and missing escrowTokenDecimals/escrowTokenSymbol for",A);return}en.current=!0,tt([{asset:yt,amount:O}])},[b,A,O,v,x,ie,s]),pe(()=>{!b||!Wo||Xn.current||He||(Xn.current=!0,sn())},[b,Wo,He]);const Qr=Pe||Oe||wn||yn,Wa=()=>{if(He)return"Executing Deposit...";if(!ie)return"Wallet Not Connected";if(D==="7702"){if(!xe)return"Loading...";if(!he)return"Authentication Required"}return Ce[0]?.asset?Ce[0]?.amount?wn?"AMOUNT TOO SMALL":yn?"INSUFFICIENT BALANCE":Nn&&!vr?hn?"GAS UNAVAILABLE":"ESTIMATING GAS":"DEPOSIT":"ENTER AMOUNT":"SELECT TOKEN"};return e?f(yo,{isOpen:e,onClose:t,closeOnBackdropClick:n,title:a||`Deposit to your ${V} account`,subtitle:R("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[f("img",{src:nl,alt:"","aria-hidden":"true",style:{width:"13px",height:"13px",flexShrink:0,...X?{filter:"invert(0.6)"}:{}}}),f("p",{style:{fontSize:"12px",color:Y.textSecondary,margin:"0",lineHeight:"1.4",fontFamily:nt.ui},children:`Deposit collateral to your ${V} Account from any supported network.`})]}),dark:X,overlayContent:!Bt&&(Dt||Ue||Je!=="idle"&&g)?f("div",{}):void 0,styles:i,theme:ne,children:R("div",{style:{padding:"24px 24px 5px 24px"},children:[!Bt&&f(vg,{selectedDepositAssets:Ce,depositAssets:Ze,secondAssetOptions:ke,loadingAssets:Me,allowSecondAsset:p,theme:ne,styles:i,dark:X,dk:Y,onSelect:ao,onAmountChange:Qn,onAdd:mn,onRemove:St,resolveMaxAmount:kr,onViewAllAssets:E}),!Bt&&Nn&&et&&f(ul,{fontFamily:i?.fontFamily||ne.typography.fontFamily,textPrimary:Y.textPrimary,textSecondary:Y.textSecondary,cardBg:X?Y.inputBg:"#ffffff",cardBorder:Y.cardBorder,resolvedDark:X,darkCardBorder:Y.cardBorder,primaryColor:oe,feePreview:Po,isLoading:Dn||Nn&&!Sn,errorText:hn}),f(Sg,{intentStatus:Ue,postDepositSuccess:Rt,postDepositAmount:ut,postDepositStatus:Je,depositActionLabel:h,sourceChainName:Ce[0]?.asset?.chainId?ro(Ce[0].asset.chainId):"Destination Chain",directDepositStatus:Et,directDepositTxHash:Ct,directDepositChainId:Wt,styles:i}),f(Ig,{isOpen:Dt||!!Ue||Et==="success"||Je!=="idle"&&!!g,onClose:()=>{Zt(!1),Ue&&qt();const te=Je==="success"&&!Ue,Ae=Ue?.overallStatus==="success"&&(g?Je==="success"||Je==="error":!0);(te||Ae||Et==="success"&&(!g||Je==="success"||Je==="error")||Xe)&&t()},onConfirm:gn,data:_e,isExecuting:He,retryBlocked:Xe,error:Oe,theme:ne,styles:i,intentStatus:Ue,directDepositStatus:Et,postDepositStatus:Je,hasPostDepositInstruction:!!g}),!Bt&&In&&R(Fu,{dk:Y,dark:X,borderRadius:ne.borderRadius.md,children:["\u26A1 ",In]}),!Bt&&Ao&&f(Fu,{dk:Y,dark:X,borderRadius:ne.borderRadius.md,children:"Low native balance in the external wallet. The deposit to spicenet account might fail."}),!Bt&&R("div",{style:{display:"flex",flexDirection:"column",gap:0,marginBottom:0,margin:0,padding:0},children:[Qr?f("div",{style:{marginBottom:"10px",fontSize:"12px",lineHeight:"1.45",color:Y.errorText,fontFamily:i?.fontFamily||ne.typography.fontFamily},children:Qr}):null,f(Vt,{variant:"outline",fullWidth:!0,onClick:rt,disabled:!Wo||!ie||He,theme:ne,dark:X,styles:i,children:Wa()})]})]})}):null}),Eg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,deposits:o,onComplete:r,onCancel:s,onSkip:a,onChangeWallet:i,isProcessing:l,isVerifying:c=!1,onRefresh:u,error:d,styles:p})=>{const{dark:w,dk:m,theme:g}=on(p);if(!e)return null;if(o.length===0)return f(yo,{isOpen:e,onClose:t,title:"Your wallet",styles:p,closeOnBackdropClick:n,children:f("p",{role:"status",style:{padding:"18px 24px",color:m.textSecondary},children:l?"Returning funds\u2026":"Checking your wallet\u2026"})});const h=o[0],y=h.timestamp===0,C=h.verifiedBalance<=0n,S=l||c||C,b=p?.fontFamily||nt.ui,A=nt.mono,O=ro(h.chainId),v=parseFloat(h.amount).toPrecision(6).replace(/\.?0+$/,""),x=Re(h.verifiedBalance,h.tokenDecimals);return f(yo,{isOpen:e,onClose:t,title:y?"Funds in your wallet":"Incomplete Deposit",styles:p,closeOnBackdropClick:n,children:R("div",{style:{padding:"18px 24px 24px",fontFamily:b},children:[f("p",{style:{fontSize:"14px",color:m.textSecondary,lineHeight:"1.6",margin:"0 0 18px 0"},children:y?"These funds remain in your wallet. Network fees apply when depositing.":"Your funds reached your wallet, but the deposit didn't finish."}),R("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) auto",gap:"14px 18px",marginBottom:"24px",padding:"16px 18px",backgroundColor:w?m.cardBg:"#f8fafc",border:`1px solid ${m.cardBorder}`,borderRadius:w?"14px":"10px",boxShadow:w?"inset 0 1px 0 rgba(255,255,255,0.03)":"0 1px 2px rgba(16,24,40,0.04)"},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[f("span",{style:{fontSize:"12px",fontWeight:600,color:m.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:"NETWORK"}),f("span",{style:{fontSize:"18px",fontWeight:600,color:m.textPrimary,fontFamily:b,lineHeight:1.2},children:O})]}),R("div",{style:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end",textAlign:"right"},children:[f("span",{style:{fontSize:"12px",fontWeight:600,color:m.textSecondary,fontFamily:A,letterSpacing:"0.8px"},children:y?"AVAILABLE BALANCE":"DEPOSITED AMOUNT"}),R("span",{style:{fontSize:"24px",fontWeight:700,color:m.successText,fontFamily:A,lineHeight:1.1},children:[v," ",h.tokenSymbol]}),f("span",{style:{fontSize:"12px",color:m.textSecondary,fontWeight:500,fontFamily:b},children:y?"In your wallet":"Sent to embedded wallet"})]})]}),!h.hasFullBalance&&h.verifiedBalance>0n&&R("div",{style:{marginBottom:"16px",padding:"8px 12px",backgroundColor:m.warningBg,border:`1px solid ${w?m.warningBorder:"#fcd34d"}`,borderRadius:"8px",fontSize:"13px",color:m.warningText,lineHeight:"1.4"},children:["Partial balance \u2014 only ",parseFloat(x).toFixed(4)," ",h.tokenSymbol," available."]}),(c||C)&&R("div",{style:{marginBottom:"16px",color:m.textSecondary},children:[f("p",{role:"status",children:c?"Checking your wallet\u2026":"Balance unavailable. Try again."}),C&&u&&f(Vt,{variant:"ghost",fullWidth:!0,disabled:l||c,onClick:u,theme:g,dark:w,children:"TRY AGAIN"})]}),d&&f("div",{style:{marginBottom:"16px",padding:"10px 12px",backgroundColor:m.errorBg,border:`1px solid ${w?m.errorBorder:"#fca5a5"}`,borderRadius:"8px",fontSize:"13px",color:w?m.errorText:"#991b1b",lineHeight:"1.4"},children:d}),R("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[f(Vt,{variant:"outline",fullWidth:!0,disabled:S,onClick:()=>r(h),theme:g,dark:w,styles:p,children:"CONFIRM DEPOSIT"}),R("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f(Vt,{variant:"ghost",fullWidth:!0,disabled:S,onClick:()=>s(h),theme:g,dark:w,style:{height:"48px",fontSize:"13px",letterSpacing:"0.4px",color:w?m.textPrimary:"#374151",border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:w?"rgba(255,255,255,0.02)":"#ffffff"},children:l?"RETURNING...":"RETURN FUNDS"}),R("div",{style:{display:"grid",gridTemplateColumns:i?"1fr 1fr":"1fr",gap:"10px"},children:[f(Vt,{variant:"ghost",fullWidth:!0,disabled:l,onClick:a,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:m.textSecondary,border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"START OVER"}),i&&f(Vt,{variant:"ghost",fullWidth:!0,disabled:l,onClick:i,theme:g,dark:w,style:{height:"44px",fontSize:"12px",letterSpacing:"0.4px",color:m.textSecondary,border:`1px solid ${w?m.cardBorder:"#d1d5db"}`,borderRadius:"12px",backgroundColor:"transparent"},children:"CHANGE WALLET"})]})]})]}),o.length>1&&f("p",{style:{fontSize:"12px",color:m.textSecondary,textAlign:"center",marginTop:"14px",marginBottom:0,lineHeight:"1.5"},children:o.some(F=>F.timestamp===0)?`${o.length} balances available. Review one at a time.`:`${o.length} incomplete deposits found. Review one at a time.`})]})})},Fg=[{source:"wallet",title:"From Wallet",description:"Deposit crypto you already hold in a connected wallet"},{source:"card",title:"With Card",description:"Buy and deposit using a debit or credit card"},{source:"exchange",title:"From Exchange",description:"Transfer from Coinbase, Binance, or any exchange"}],Tg=({isOpen:e,onClose:t,closeOnBackdropClick:n,onSelect:o,styles:r})=>{const{dark:s,dk:a}=on(r),[i,l]=L(null);return f(yo,{isOpen:e,onClose:t,title:"Deposit",subtitle:"Choose how you want to add funds",styles:r,dark:s,closeOnBackdropClick:n,children:f("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"20px"},children:Fg.map(({source:c,title:u,description:d})=>R("button",{onClick:()=>o(c),onMouseEnter:()=>l(c),onMouseLeave:()=>l(null),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",padding:"14px 16px",borderRadius:"8px",border:`1px solid ${s?a.cardBorder:"#e5e7eb"}`,backgroundColor:i===c?s?a.hoverBg:"#f9fafb":s?a.cardBg:"white",cursor:"pointer",textAlign:"left",transition:uo.color},children:[f("span",{style:{fontSize:"15px",fontWeight:600,fontFamily:nt.ui,color:s?a.textPrimary:"#111827"},children:u}),f("span",{style:{fontSize:"13px",fontFamily:nt.ui,color:s?a.textSecondary:"#6b7280"},children:d})]},c))})})},Bg=({isOpen:e,onClose:t,onBack:n,closeOnBackdropClick:o,source:r,destinationChainId:s,onShowWidget:a,onHideWidget:i,verifying:l,verifyError:c,onRetryVerify:u,funded:d,styles:p})=>{const{dark:w,dk:m,primaryColor:g,theme:h}=on(p),y=ro(s),C=j(null),S=j(a);S.current=a;const b=j(i);b.current=i;const A=l||!!c||!!d;return pe(()=>{if(!e)return;const O=C.current;if(O){if(A){b.current();return}return S.current(O,r),()=>b.current()}},[e,r,A]),f(yo,{isOpen:e,onClose:t,title:r==="card"?"Deposit with Card":"Deposit from Exchange",styles:p,dark:w,closeOnBackdropClick:o,children:R("div",{style:{padding:"0 24px 25px",display:"flex",flexDirection:"column",gap:"12px",marginTop:"12px"},children:[f("button",{onClick:n,disabled:l,style:{alignSelf:"flex-start",padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:nt.ui,color:w?m.textSecondary:"#6b7280",cursor:l?"default":"pointer",opacity:l?.5:1},children:"\u2190 Back"}),R("div",{style:{position:"relative",width:"100%"},children:[f("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:f(zo,{size:28,color:g})}),f("div",{ref:C,style:{position:"relative",width:"100%",height:"560px"}}),A&&f("div",{style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"16px",padding:"24px",borderRadius:"9px",backgroundColor:w?"rgba(0, 0, 0, 0.82)":"rgba(255, 255, 255, 0.94)"},children:l?R(kn,{children:[f(zo,{size:28,color:g}),R("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:["Confirming your deposit arrived on ",y,"\u2026"]})]}):d?R(kn,{children:[R("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:[d.amount," ",d.symbol," is in your wallet on"," ",y,"."]}),f(Vt,{variant:"outline",onClick:t,theme:h,dark:w,styles:p,children:"DONE"})]}):R(kn,{children:[f("p",{style:{margin:0,fontSize:"14px",fontFamily:nt.ui,color:w?m.textPrimary:"#111827",textAlign:"center"},children:c}),f(Vt,{variant:"outline",onClick:u,theme:h,dark:w,styles:p,children:"RETRY"}),f("button",{onClick:t,style:{padding:0,border:"none",background:"none",fontSize:"13px",fontFamily:nt.ui,color:w?m.textSecondary:"#6b7280",cursor:"pointer",textDecoration:"underline"},children:"Close \u2014 we'll detect your funds later"})]})})]})]})})},Og="692fb8af264069ca12a9",Hr=42161,Rg=[8453,Hr];function Dg(e){const{targetKind:t,appChainId:n}=e;return t!=="external"||n===void 0||!Rg.includes(n)?Hr:Yl("USDC",n)?n:Hr}function Pa(e=Hr){return Yl("USDC",e)}function Mg(e){const t=e?.integratorId??Og;return{integratorId:t,enabled:e?.enabled===!0&&t!=="",embedFactory:e?.embedFactory}}const Ng=e=>import("@swapper-finance/deposit-sdk").then(t=>new t.SwapperEmbed(e));function Pg(e,t,n){return{themeMode:t?"dark":"light",componentStyles:{width:"100%",primaryColor:n,accentColor:n,borderRadius:"9px",...t?{backgroundColor:e.shell,surfaceColor:e.cardBg,surfaceAltColor:e.inputBg,textColor:e.textPrimary,border:`1px solid ${e.cardBorder}`}:{}}}}function Nu(e){return e==="card"?["depositWithCash"]:e==="exchange"?["transferCrypto"]:["depositWithCash","transferCrypto"]}function Wg(e){const t=e.destinationChainId??Hr,n=Pa(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return{iframeUrl:"https://swapper-deposit-sdk.web.app/",integratorId:e.integratorId,dstChainId:String(t),dstTokenAddr:n.address,depositWalletAddress:e.depositWalletAddress,supportedDepositOptions:Nu(e.source),styles:e.styles,actionLabel:"deposit",flexibleHeight:!0,iframeAttributes:{borderRadius:"9px"}}}async function Pu(e,t=Hr){const n=Pa(t);if(!n)throw new Error("USDC is not configured for the Swapper destination chain");return At(t).readContract({address:n.address,abi:ft,functionName:"balanceOf",args:[e]})}async function Ug(e,t,n){const o=n?.timeoutMs??12e4,r=n?.intervalMs??3e3,s=Date.now()+o;for(;Date.now()<s;){if(n?.signal?.aborted)return null;try{const a=await Pu(e,n?.chainId);if(a>t)return a}catch{}await new Promise(a=>setTimeout(a,r))}return null}const Lg=.01,qg=5*60*1e3;function zg(e){const t=Number(Re(e.verifiedBalance,e.tokenDecimals));return Number.isFinite(t)?t:0}async function Hg(e){const t=Wu(e);let n;try{n=await Bu(t.map(o=>o.tokenSymbol))}catch{return t}return t.filter(o=>{const r=zg(o);if(r<=0)return!0;const s=n[o.tokenSymbol.toUpperCase()]??0;return!Number.isFinite(s)||s<=0?!0:r*s>=Lg})}function Wu(e){const t=new Map;for(const n of e){const o=`${n.chainId}:${n.tokenAddress.toLowerCase()}`;if(!t.get(o)){const r=n.timestamp===0&&n.verifiedBalance>0n;t.set(o,{...n,amount:r?Re(n.verifiedBalance,n.tokenDecimals):n.amount,rawAmount:r?n.verifiedBalance.toString():n.rawAmount,hasFullBalance:r?!0:n.hasFullBalance})}}return Array.from(t.values())}function Uu(e,t){const[n,o]=L([]),[r,s]=L(!1),a=j(t);a.current=t;const i=!!t?.enabled,l=j(0),c=j([]),u=t?.chainIds?.join(","),d=t?.discoverWalletBalances??!0,p=j(0),w=re(async({forceDiscovery:m=!1}={})=>{if(!e||a.current?.enabled===!1){o([]),s(!1);return}const g=++p.current,h=()=>g!==p.current;s(!0);try{const y=[],C=Du(e),S=new Set(C.map(x=>`${x.chainId}:${x.tokenAddress.toLowerCase()}`)),b=[...C,...c.current.filter(x=>x.timestamp===0&&!S.has(`${x.chainId}:${x.tokenAddress.toLowerCase()}`))];for(const x of b){if(h())return;if(Zo({address:x.tokenAddress,chainId:x.chainId,isNative:x.isNative}))try{const F=At(x.chainId);let T;if(x.isNative||Fe(x.tokenAddress)?T=await ni(F,{address:e}):T=await tr(F,{address:dn(x.tokenAddress),abi:ft,functionName:"balanceOf",args:[e]}),h())return;if(T>0n)y.push({...x,verifiedBalance:T,hasFullBalance:T>=BigInt(x.rawAmount)});else{const B=Date.now()-x.timestamp;x.timestamp!==0&&B>15*60*1e3&&Ra(e,x.chainId,x.tokenAddress)}}catch(F){if(h())return;console.warn(`[usePendingDeposit] Failed to verify balance for ${x.tokenSymbol} on chain ${x.chainId}:`,F),y.push({...x,verifiedBalance:0n,hasFullBalance:!1})}}if(h())return;const A=a.current,O=Date.now(),v=(A?.discoverWalletBalances??!0)&&(m||O-l.current>=qg);if(A?.network&&v){l.current=O;const x=A.chainIds??Xs(A.network),F=new Set(y.map(B=>`${B.chainId}:${B.tokenAddress.toLowerCase()}`)),T=[];for(const B of x){const M=xt(B);if(M?.supportedTokens)for(const k of M.supportedTokens){if(!Zo({address:k.address,chainId:B,isNative:!1}))continue;const E=`${B}:${k.address.toLowerCase()}`;F.has(E)||T.push((async()=>{try{const I=At(B),D=await tr(I,{address:dn(k.address),abi:ft,functionName:"balanceOf",args:[e]});return D>0n?{chainId:B,tokenAddress:k.address,tokenSymbol:k.symbol,tokenDecimals:k.decimals,amount:Re(D,k.decimals),rawAmount:D.toString(),embeddedWalletAddress:e,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:D,hasFullBalance:!0}:null}catch{return null}})())}}if(T.length>0){const B=await Promise.allSettled(T);if(h())return;for(const M of B)M.status==="fulfilled"&&M.value&&y.push(M.value)}}if(!h()){const x=await Hg(y);if(h())return;c.current=Wu(y),o(x)}}catch(y){if(console.error("[usePendingDeposit] Verification error:",y),!h()){const C=c.current.map(S=>({...S,verifiedBalance:0n,hasFullBalance:!1}));c.current=C,o(C)}}finally{h()||s(!1)}},[e]);return pe(()=>{if(c.current=[],l.current=0,o([]),!i){p.current++,s(!1);return}w({forceDiscovery:!0});const m=a.current?.pollIntervalMs??3e4;if(m<=0||!e)return()=>{p.current++};const g=setInterval(()=>{w({forceDiscovery:!1})},m),h=()=>w({forceDiscovery:!0});return window.addEventListener(Oa,h),()=>{p.current++,window.removeEventListener(Oa,h),clearInterval(g)}},[w,e,i,t?.network,u,d]),{pendingDeposits:n,loading:r,refresh:()=>w({forceDiscovery:!0})}}function Qg({enabled:e,integratorId:t,depositWalletAddress:n,destinationChainId:o,brand:r,embedFactory:s,onTransactionSuccess:a,onCloseRequest:i}){const l=j(null),c=j(null),u=j(a);u.current=a;const d=j(i);d.current=i;const p=j(r);p.current=r;const w=j(s);w.current=s;const m=re((y,C,S)=>{if(!C.isConnected)return;const b=y.getIframe();b.updateConfig({supportedDepositOptions:Nu(S)}),b.sendConfig(),y.showIn(C)},[]);pe(()=>{if(!e||!n)return;let y=!1;return Promise.resolve().then(()=>{const{dk:C,dark:S,primaryColor:b}=p.current;return(w.current??Ng)(Wg({integratorId:t,depositWalletAddress:n,destinationChainId:o,source:null,styles:Pg(C,S,b)}))}).then(C=>{if(y){C.destroy();return}const S=C.getIframe();S.on("transaction_success",A=>u.current(A)),S.on("close_request",()=>d.current()),l.current=C;const b=c.current;b&&m(C,b.placeholder,b.source)}).catch(C=>{console.error("[useSwapperEmbed] Failed to preload Swapper widget:",C)}),()=>{y=!0,c.current=null,l.current?.destroy(),l.current=null}},[e,t,n,o,m]);const g=re((y,C)=>{c.current={placeholder:y,source:C};const S=l.current;S&&m(S,y,C)},[m]),h=re(()=>{c.current=null,l.current?.hide()},[]);return{showWidget:g,hideWidget:h}}function Vg(e,t,n,o,r){return{address:t,symbol:n||"UNKNOWN",name:n||"Unknown Token",decimals:o||18,chainId:e,balance:0n,balanceFormatted:r?parseFloat(r):0,balanceUsd:0,isNative:Fe(t)}}const jg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,styles:o,depositBatches:r,onDepositAmountChange:s,destinationChainId:a,destinationTokenAddress:i,onDepositExecute:l,depositActionLabel:c,sponsorGas:u=!1,escrowRecovery:d,skipTokenSelection:p=!1,directSubmit:w=!1,onSubmit:m,onDepositSuccess:g,onDepositError:h,skipRecovery:y=!0})=>{const C=an($t);if(!C)return f("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"});const S=(C.mode||"7702")!="7702",b=S,A=C.nativeChainId,O=C.network||"testnet",{dark:v,dk:x,primaryColor:F}=on(o),T=!!d,B=Fo(),{isReady:M,isAuthenticated:k,actions:E}=B,I=C?.embeddedWalletAddress,D=C.externalWalletAddress,P=!!D,H=Mg(C.swapper),Q=b?{address:D,kind:"external"}:{address:I,kind:"embedded"},G=Dg({targetKind:Q.kind,appChainId:a||A}),ne=H.enabled&&!T&&O==="mainnet"&&!!Pa(G),X=()=>p?"deposit":"select-token",V=()=>ne?"select-source":b?P?X():"connect-wallet":"provider-login",[oe,Y]=L(V()),[ge,xe]=L(null),[he,ve]=L(!1),[_,K]=L(null),[ie,N]=L(!1),[Le,Te]=L(null),[z,q]=L(null),[ee,ce]=L(null),Z=j(null),ae=j(null),{pendingDeposits:ze,loading:Ie,refresh:Ce}=Uu(I,{enabled:e&&!y,network:O,chainIds:C.supportedChainIds}),tt=we(()=>ze.filter($=>$.embeddedWalletAddress.toLowerCase()===I?.toLowerCase()),[ze,I]),[De,Me]=L(null),[Pe,ye]=L(!1),[Ze,ke]=L(null),[He,gt]=L(!1),[Xe,ot]=L("idle");pe(()=>{if(e&&oe==="recovery"&&!Pe&&!Ie&&tt.length===0){Y(V());return}e&&!y&&!T&&!De&&!He&&Xe==="idle"&&k&&I&&P&&D&&!Ie&&tt.length>0&&oe!=="recovery"&&oe!=="deposit"&&oe!=="swapper"&&Y("recovery")},[e,y,T,k,I,P,D,Ie,tt,oe,De,He,Xe,Pe,ne,b,p]);const Qe=re($=>{const Lt={address:$.tokenAddress,symbol:$.tokenSymbol,name:$.tokenSymbol,decimals:$.tokenDecimals,chainId:$.chainId,balance:$.verifiedBalance,balanceFormatted:parseFloat($.amount),balanceUsd:0,isNative:$.isNative};xe(Lt),Me($),Y("deposit")},[]),fe=re($=>{if(K($),b){Y(P?$==="wallet"?X():"swapper":"connect-wallet");return}const Lt=k&&!!I;Y($==="wallet"?Lt?P?X():"connect-wallet":"provider-login":Lt?"swapper":"provider-login")},[b,k,I,P,p]),Oe=re(()=>{ae.current?.abort(),N(!1),Te(null),q(null),K(null),Z.current=null,ce(null),Y("select-source")},[]);pe(()=>{oe==="swapper"&&(ee||!Q.address||ce({address:Q.address,kind:Q.kind}))},[oe,ee,Q.address,Q.kind]);const dt=ee??Q,Ye=dt.address,Se=dt.kind,Je=re(async $=>{if(!e||oe!=="swapper"||!Ye)return;ae.current?.abort();const Lt=new AbortController;ae.current=Lt,Te(null),N(!0);const $e=Pa(G);if(!$e){N(!1);return}const wt=Pt=>{N(!1);const qt=Re(Pt,$e.decimals);if(Se==="external"){q({amount:qt,symbol:$e.symbol});const jt={type:"wallet-funding",status:"success",amount:qt,asset:$e.address,sourceChain:String(G)};window.dispatchEvent(new CustomEvent("spiceflow:action",{detail:jt})),g?.(jt);return}Qe({chainId:G,tokenAddress:$e.address,tokenSymbol:$e.symbol,tokenDecimals:$e.decimals,amount:qt,rawAmount:Pt.toString(),embeddedWalletAddress:Ye,externalWalletAddress:"",timestamp:0,isNative:!1,verifiedBalance:Pt,hasFullBalance:!0})},In=Z.current,pn=await In;if(Lt.signal.aborted||Z.current!==In)return;if(pn===null){N(!1),Te("Unable to confirm your starting balance. Go back and reopen the deposit to try again.");return}const Ue=await Ug(Ye,pn,{signal:Lt.signal,chainId:G});if(!Lt.signal.aborted){if(Ue===null){N(!1);const Pt=xt(G)?.viemChain?.name??`chain ${G}`;Te(`We haven't seen your funds arrive on ${Pt} yet \u2014 they may still be in transit.`);return}wt(Ue)}},[e,oe,Ye,Se,G,Qe,g]);pe(()=>{if(!e||oe!=="swapper"||!Ye)return;const $=Pu(Ye,G).catch(()=>null);return Z.current=$,()=>{Z.current===$&&(Z.current=null),ae.current?.abort()}},[e,oe,Ye,G]);const{showWidget:It,hideWidget:Ke}=Qg({enabled:e&&ne,integratorId:H.integratorId,depositWalletAddress:Ye,destinationChainId:G,brand:{dk:x,dark:v,primaryColor:F},embedFactory:H.embedFactory,onTransactionSuccess:Je,onCloseRequest:()=>{ie||Oe()}}),Rt=re(()=>{gt(!0),Y(k&&I&&P&&D?p?"deposit":"select-token":k&&I?"connect-wallet":"provider-login")},[k,I,P,D,p]),lt=re(()=>{ke(null),ot("awaiting-disconnect"),Y("connect-wallet")},[]),ut=re(async $=>{ye(!0),ke(null);try{if(!I)throw new Error("Embedded wallet not available");const Lt=await E.getEthereumProvider(),$e=xt($.chainId);await Ul(Lt,$.chainId);const wt=At($.chainId),In=await ni(wt,{address:I}),pn=$e?.viemChain?.name||`chain ${$.chainId}`;if(In===0n)throw new Error(`Your embedded wallet has no ETH on ${pn} to pay for gas. We recommend completing the deposit instead \u2014 it doesn't require gas.`);const Ue=ei({account:I,transport:ti(Lt),chain:$e?.viemChain}),Pt=$.externalWalletAddress&&Gn($.externalWalletAddress)?$.externalWalletAddress:D;if(!Pt||!Gn(Pt))throw new Error("Connect the external wallet that should receive these funds, then try again.");const qt={recipient:Pt,tokenAddr:$.tokenAddress,isNative:$.isNative||Fe($.tokenAddress),amount:$.verifiedBalance,viemChain:$e?.viemChain},jt=await Ji(Ue,qt),{receipt:Bt}=await pa({client:wt,hash:jt,call:Ia(qt.recipient,qt.tokenAddr,qt.isNative,qt.amount),confirmations:1});if(Bt.status!=="success")throw new Error("The return transaction failed. Please try again.");Ra($.embeddedWalletAddress,$.chainId,$.tokenAddress),Ce(),ze.length<=1&&Y(V())}catch(Lt){const $e=Lt?.message||"Couldn't return your funds. Please try again.",wt=/insufficient funds for gas/i.test($e);ke(wt?"Not enough ETH in your embedded wallet to cover gas fees. Complete the deposit instead \u2014 it doesn't require gas.":$e)}finally{ye(!1)}},[E,I,D,ze,Ce]);pe(()=>{e||(Me(null),ke(null),ye(!1),gt(!1),ot("idle"),ae.current?.abort(),K(null),N(!1),Te(null),q(null),Z.current=null,ce(null))},[e]),pe(()=>{if(!(y||Xe==="idle")){if(Xe==="awaiting-disconnect"){(!P||!D)&&ot("awaiting-reconnect");return}e&&!Ie&&ze.length>0&&k&&I&&(ot("idle"),Y("recovery"))}},[y,Xe,P,D,e,Ie,ze,k,I]),pe(()=>{!T||!e||(k&&I?(ve(!0),!ge&&d?.chainId&&d?.tokenAddress&&xe(Vg(d.chainId,d.tokenAddress,d.tokenSymbol,d.tokenDecimals,d.amount)),Y("deposit")):Y("provider-login"))},[T,e,oe,k,I]);const{assets:pt,loading:Et}=ms({address:D,supportedChains:C.supportedChainIds,fetchBalances:Rr,enabled:e&&!!D,refreshInterval:e?5e3:0}),_t=re(()=>{ve(!0),Y(T?"deposit":_==="card"||_==="exchange"?"swapper":P?p?"deposit":"select-token":"connect-wallet")},[T,_,P,p]),Ct=re(async()=>{if((!P||!D)&&(await go(500),!P||!D)){alert("Please connect your wallet first");return}Y(p?"deposit":"select-token")},[P,D,p]),at=re($=>{xe($),Y("deposit")},[]),Wt=re(()=>{if(xe(null),s?.(""),!D){Y("connect-wallet");return}Y("select-token")},[D,s]),Ut=re(()=>{t()},[t]);if(pe(()=>{if(!e){const $=setTimeout(()=>{T||(Y(V()),xe(null)),ve(!1)},300);return()=>clearTimeout($)}},[e,T,d?.chainId]),pe(()=>{e&&oe==="deposit"&&!ge&&!T&&!De&&!p&&Y("select-token")},[e,oe,ge,T,De,p]),pe(()=>{if(e&&oe==="connect-wallet"&&P&&D&&Xe==="idle"){if(ne&&!_){Y("select-source");return}if(ne&&_&&_!=="wallet"){Y("swapper");return}Y(p?"deposit":"select-token")}},[e,oe,P,D,Xe,p,ne,_]),pe(()=>{if(!b&&e&&oe==="provider-login"&&M&&k&&I&&!he){const $=setTimeout(()=>{ve(!0),Y(_==="card"||_==="exchange"?"swapper":P?p?"deposit":"select-token":"connect-wallet")},100);return()=>clearTimeout($)}},[b,e,oe,M,k,I,_,P,p,he]),!e)return null;if(oe==="recovery")return f(Eg,{isOpen:e,onClose:Ut,closeOnBackdropClick:n,deposits:tt,onComplete:Qe,onCancel:ut,onSkip:Rt,onChangeWallet:lt,isProcessing:Pe,isVerifying:Ie,onRefresh:Ce,error:Ze,styles:o});if(oe==="select-source")return ne?f(Tg,{isOpen:e,onClose:Ut,closeOnBackdropClick:n,onSelect:fe,styles:o}):(Y("provider-login"),null);if(oe==="swapper")return _!=="card"&&_!=="exchange"?(Y(V()),null):Ye?f(Bg,{isOpen:e,onClose:Ut,onBack:Oe,closeOnBackdropClick:n,source:_,destinationChainId:G,onShowWidget:It,onHideWidget:Ke,verifying:ie,verifyError:Le,onRetryVerify:Je,funded:z,styles:o}):f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:f("div",{style:{backgroundColor:v?x.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%",textAlign:"center",fontFamily:'"Helvetica Neue", sans-serif',fontSize:"14px",color:v?x.textPrimary:"#111827"},children:"Preparing your account..."})});if(oe==="provider-login"&&!b)return f("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",zIndex:50},children:f("div",{style:{backgroundColor:v?x.cardBg:"white",borderRadius:"9px",padding:"32px 24px",maxWidth:"400px",width:"100%"},children:f(Mi,{onAuthSuccess:_t,autoTrigger:!0})})});if(oe==="connect-wallet")return f(sg,{isOpen:e,onClose:Ut,closeOnBackdropClick:n,onContinue:Ct,requiredChainId:S?A:void 0,styles:o});if(oe==="select-token")return D?f(ng,{isOpen:e,onClose:Ut,closeOnBackdropClick:n,onTokenSelect:at,walletAddress:D,supportedChainIds:C.supportedChainIds,network:O,prefetchedAssets:Et?null:pt??null,styles:o,dark:v}):(Y("connect-wallet"),null);if(oe==="deposit"){if(!ge&&!p)return null;const $=!!De;return f(Ag,{isOpen:e,onClose:Ut,closeOnBackdropClick:n,supportedChains:ge?[ge.chainId]:C.supportedChainIds??[],styles:o,externalWalletAddress:D,depositBatches:$?void 0:r,onDepositAmountChange:s,destinationChainId:a,destinationTokenAddress:i,onDepositExecute:l,depositActionLabel:c,nativeChainId:A,sponsorGas:u,preSelectedAsset:ge??void 0,escrowOnly:T||$,escrowTokenAddress:$?De.tokenAddress:d?.tokenAddress,escrowAmount:$?De.amount:d?.amount,escrowTokenDecimals:$?De.tokenDecimals:d?.tokenDecimals,escrowTokenSymbol:$?De.tokenSymbol:d?.tokenSymbol,onSubmit:m,directSubmit:w,onDepositSuccess:g,onDepositError:h,embeddedWalletAddress:I,onViewAllAssets:p?void 0:Wt})}return null},Lu=e=>an($t)?f(jg,{...e}):f("div",{children:"Error: SpiceDeposit must be used within SpiceFlowProvider"}),Gg=({depositProps:e,withdrawProps:t,...n})=>{const[o,r]=L(!1),[s,a]=L(null);return R(kn,{children:[f(Cu,{...n,onDepositClick:()=>r(!0),onWithdrawClick:i=>a({assetId:i})}),f(Lu,{styles:n.styles,onDepositSuccess:n.onDepositSuccess,...e,isOpen:o,onClose:()=>r(!1)}),f(ol,{styles:n.styles,...t,isOpen:!!s,onClose:()=>a(null),initialSourceAssetId:s?.assetId})]})},Kg=({isOpen:e,onClose:t,onChainSelect:n,supportedChains:o,closeOnSelect:r=!0,styles:s})=>{const{theme:a,dark:i,primaryColor:l,dk:c}=on(s),[u,d]=L(""),[p,w]=L(null),[m,g]=L(null),[h,y]=L(!1),[C,S]=L(null),{switchChainAsync:b}=zp(),A=we(()=>new Set(o||[]),[o]),O=we(()=>{if(!o||o.length===0)return[];const T=[];return o.forEach((B,M)=>{if(typeof B!="number")return;const k=xt(B);k&&T.push({id:B.toString(),name:k.displayName,icon:nr[B]||us,chainId:B,verified:!0,order:M})}),T},[o]);pe(()=>{p&&!A.has(parseInt(p,10))&&w(null)},[p,A]);const v=we(()=>O.filter(T=>T.name.toLowerCase().includes(u.toLowerCase())).sort((T,B)=>T.order-B.order),[O,u]),x=async()=>{if(!p)return;const T=parseInt(p,10);y(!0),S(null);try{await b({chainId:T}),n&&n(p),r&&t()}catch(B){console.error("Failed to switch chain:",B),S(Wn(B,"Failed to switch chain."))}finally{y(!1)}},F=!p||h;return R(yo,{isOpen:e,onClose:t,title:"Select Chain",styles:s,theme:a,dark:i,children:[f("div",{style:{padding:"24px 20px"},children:f(il,{value:u,onChange:d,ariaLabel:"Search chains",placeholder:"Search chain name, symbol or address",size:"md",dark:i,styles:s,endAdornment:f("div",{style:{padding:"5px 5px",borderRadius:"3px",fontSize:"13px",backgroundColor:i?c.cardBg:"#E9E9E9",color:i?c.textSecondary:"#485066",fontWeight:500,flexShrink:0},"aria-hidden":"true",children:"\u2318F"})})}),f("div",{style:{padding:"0 32px 20px",display:"flex",flexDirection:"column",gap:"12px"},children:v.map(T=>{const B=p===T.id,M=m===T.id;return R("button",{onClick:()=>w(T.id),onMouseEnter:()=>g(T.id),onMouseLeave:()=>g(null),style:{width:"100%",display:"flex",alignItems:"center",gap:"16px",padding:"8px",borderRadius:"8px",backgroundColor:B?i?`${l}15`:`${l}12`:"transparent",border:B?i?`1px solid ${l}66`:`1px solid ${l}88`:M?i?`1px solid ${l}44`:`1px solid ${l}66`:"1px solid transparent",cursor:"pointer",transition:uo.interactive},children:[f("div",{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"30px"},children:f("img",{src:T.icon,alt:T.name,loading:"lazy",decoding:"async",style:{width:"100%",height:"100%",borderRadius:"50%"}})}),R("div",{style:{display:"flex",alignItems:"center",gap:"6px",flex:1},children:[f("span",{style:{fontFamily:nt.mono,fontSize:"17px",fontWeight:500,letterSpacing:"0.4px",color:c.textPrimary,textAlign:"left"},children:T.name}),T.verified&&f("img",{src:Su,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:16,height:16,style:{width:"16px",height:"16px",filter:i?"brightness(0) invert(1)":"none"}})]})]},T.id)})}),C&&f("div",{style:{padding:"0 25px 12px"},children:f(Hn,{variant:"error",size:"compact",palette:c,children:C})}),f("div",{style:{padding:"0 25px 25px"},children:R(Vt,{variant:"outline",onClick:x,disabled:F,fullWidth:!0,theme:a,styles:s,dark:i,children:["SELECT",f(ym,{size:20})]})})]})};function qu(e){const t=uu({enabled:e.enabled,chainId:e.lockChainId,address:e.destinationTokenAddress,decimals:e.destinationTokenDecimals,symbol:e.lockTokenSymbol,logoURI:e.lockTokenLogoURI}),n=t.token,o=re((a,i)=>{if(!t.ready)throw new Error("Lock token metadata is unavailable.");const l={...n,name:n.symbol,isNative:Fe(n.address),balance:0n,balanceFormatted:0,balanceUsd:0},c=typeof e.lockBatches=="function"?e.lockBatches({asset:l,amount:Re(a,l.decimals),amountWei:a,feeAdjusted:!0,beneficiary:i.beneficiary??i.userAddress,executorAddress:i.executorAddress}):e.lockBatches;if(c.some(u=>u.chainId!==e.lockChainId||u.domain==="spicenet"||u.tokenTransfers?.some(d=>d.from!=="escrow"||!J(d.token,n.address))))throw new Error("Lock action definitions must contain destination contract calls; the SDK supplies conversion and delivery.");return c.flatMap(u=>u.calls)},[t.ready,n,e.lockBatches,e.lockChainId]),r=As({enabled:t.ready,destinationToken:t.ready?n:void 0,selectedAsset:e.selectedAsset,amountDirection:"input-inclusive",feeFunding:e.feeFunding,combineSourceBalances:e.combineSourceBalances,recipient:e.beneficiary,buildActionCalls:o,buildSpicenetBatch:e.buildSpicenetBatch,onSubmit:e.onSubmit,onSuccess:e.onLockSuccess,onError:(a,i)=>e.onLockError?.(a.message,i)}),s=re(()=>{t.refresh(),r.quote.refreshQuote()},[t.refresh,r.quote.refreshQuote]);return{...r,quote:{...r.quote,refreshQuote:s},destination:n,metadataError:t.error,canExecute:t.ready&&r.canExecute}}function Yg(e){const t=new Date;t.setDate(t.getDate()+Math.floor(e*30));const n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=t.getDate(),r=o===1||o===21||o===31?"st":o===2||o===22?"nd":o===3||o===23?"rd":"th";return`${n[t.getMonth()]} ${o}${r} ${t.getFullYear()}`}const Zg=({label:e,value:t,fontFamily:n,dark:o=!1,textPrimary:r="#111827",textSecondary:s="#6b7280"})=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[R("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none",style:{flexShrink:0},children:[f("circle",{cx:"7",cy:"7",r:"6.5",stroke:s,strokeWidth:"1.2"}),f("path",{d:"M7 6v4",stroke:s,strokeWidth:"1.2",strokeLinecap:"round"}),f("circle",{cx:"7",cy:"4.5",r:"0.7",fill:s})]}),f("span",{style:{fontSize:"13px",color:s,fontFamily:n},children:e})]}),f("span",{style:{fontSize:o?"17px":"13px",fontWeight:700,color:r,fontFamily:nt.mono,letterSpacing:"0.3px"},children:t})]}),zu=fo(Zg),Xg=({options:e,selectedIndex:t,onSelect:n,primaryColor:o,dark:r=!1,textPrimary:s="#111827",textSecondary:a="#6b7280",trackColor:i})=>{const l=e.length-1,c=i||(r?"#3a3a3a":"#d1d5db"),u=r?"4px":"50%",d=r?"none":"2px solid white",p=r?"none":`0 0 0 1px ${o}`;return R("div",{style:{width:"100%",userSelect:"none"},children:[R("div",{style:{position:"relative",paddingBottom:"4px"},children:[f("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:"4px",background:c,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none"}}),f("div",{style:{position:"absolute",top:"50%",left:0,width:`${t/l*100}%`,height:"4px",background:o,borderRadius:"2px",transform:"translateY(-50%)",pointerEvents:"none",transition:"width 0.15s ease"}}),f("input",{type:"range","aria-label":"Lock duration","aria-valuetext":e[t]?.label,"data-spiceflow-focus":!0,min:0,max:l,step:1,value:t,onChange:w=>n(Number(w.target.value)),style:{WebkitAppearance:"none",appearance:"none",width:"100%",height:"20px",background:"transparent",cursor:"pointer",outline:"none",border:"none",position:"relative",zIndex:1,margin:0,padding:0}})]}),f("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"6px"},children:e.map((w,m)=>R("div",{onClick:()=>n(m),style:{display:"flex",flexDirection:"column",alignItems:m===0?"flex-start":m===l?"flex-end":"center",cursor:"pointer",flex:1},children:[f("span",{style:{fontSize:"12px",fontWeight:m===t?700:400,color:m===t?s:a,whiteSpace:"nowrap",transition:"color 0.15s, font-weight 0.15s"},children:w.label}),w.highlight&&f("span",{style:{fontSize:"10px",color:a,whiteSpace:"nowrap"},children:"(most common)"})]},m))}),f("style",{children:`
|
|
51
51
|
input[type='range']::-webkit-slider-thumb {
|
|
52
52
|
-webkit-appearance: none;
|
|
53
53
|
width: 20px;
|
|
@@ -71,4 +71,4 @@ Order: ${e}`}function Mi(e){const t=e.intents[0];if(e.intents.length!==1||t.mode
|
|
|
71
71
|
input[type='range']::-webkit-slider-thumb:hover {
|
|
72
72
|
transform: scale(1.12);
|
|
73
73
|
}
|
|
74
|
-
`})]})},Kg=mo(Gg),Yg=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,lockBatches:o,lockTokenSymbol:r,lockTokenLogoURI:s,destinationInputHook:a,sourceAssetInputHook:i,lockDurationHook:l,lockChainId:c,durationOptions:u,votingPowerEstimate:d,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:m,onSubmit:g,onLockSuccess:h,onLockError:y,onLockExecute:C,sourceToDestinationConversionRate:S,onAddFunds:b,buildSpicenetBatch:A,feeFunding:O,combineSourceBalances:v,styles:x,dark:F})=>{const{theme:T,dark:B,primaryColor:M,dk:k}=sn(x,F),E=T.typography.fontFamily,I=B?k.cardBg:x?.assetSelector?.backgroundColor||x?.secondaryBackground||"#e9e9e9",D=B?`1px solid ${k.cardBorder}`:"0.5px solid #A8A8A7",P=B?"12px":"6px",H=B?k.textPrimary:"#111827",Q=B?k.textSecondary:"#6b7280",G=ge(()=>({...x,assetSelector:{...x?.assetSelector,backgroundColor:B?k.cardBg:x?.assetSelector?.backgroundColor,borderRadius:B?"12px":x?.assetSelector?.borderRadius},secondaryBackground:B?k.cardBg:x?.secondaryBackground}),[x,B]),oe=ge(()=>B?{...T,colors:{...T.colors,secondary:k.cardBg,surfaceHover:k.hoverBg,border:k.cardBorder,borderHover:k.inputBorder}}:T,[B,T]),[$,V]=L(null),re=j(!1);ue(()=>{e||(re.current=!1)},[e]);const[X,he]=L(0),be=l?.selectedDurationIdx??X,fe=l?.setSelectedDurationIdx??he,xe=l?.selectedDuration??u[be]??u[0],te=Pu({enabled:e&&!C,selectedAsset:$,lockBatches:o,lockChainId:c,lockTokenSymbol:r,lockTokenLogoURI:s,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:m,onSubmit:g,onLockSuccess:h,onLockError:y,buildSpicenetBatch:A,feeFunding:O,combineSourceBalances:v}),K=te.assets.selectable,{isExecuting:le,step:N,txHash:Le}=te.status,[Te,z]=L(!1),q=Number($?.amount||"0"),ne=te.quote.isDirect,de=!ne,J=te.fees.error,ie=te.fees.isLoading,ze=te.fees.preview,Se=q>0,Ce={error:te.quote.quoteError,isQuoting:te.quote.isQuoting},et=C?"Move onLockExecute protocol calls to lockBatches and application updates to onLockSuccess before continuing.":te.metadataError||te.status.error||J||Ce.error,Me=te.canExecute,Ne=te.fees.destinationAmount,We=Ne===void 0?"0":De(Ne,te.destination.decimals),we=Number(We),Ye=we>0?we.toLocaleString(void 0,{maximumSignificantDigits:6}):null,ke=K.find(Ge=>Ge.chainId===c&&Ge.address.toLowerCase()===te.destination.address.toLowerCase()),He=ke&&ke.balanceFormatted>0&&ke.balanceUsd>0?ke.balanceUsd/ke.balanceFormatted:S&&S>0?S:null,ft=He===null?null:(we*He).toFixed(2),Ze=$&&$.asset.balanceFormatted>0&&$.asset.balanceUsd>0?$.asset.balanceUsd/$.asset.balanceFormatted:ne?He:null,nt=Ze===null?void 0:`$${(q*Ze).toFixed(2)}`,Qe=d&&we>0&&xe?d(we,xe.months):void 0,pe=se(Ge=>{V(Bt=>({asset:Ge,amount:Bt&&ve(Bt.asset)===ve(Ge)?Bt.amount:""})),te.retrySupply(),i?.setSelectedAsset({address:Ge.address,symbol:Ge.symbol,decimals:Ge.decimals,chainId:Ge.chainId})},[i?.setSelectedAsset,te.retrySupply]),Oe=se(Ge=>{V(Bt=>Bt&&{...Bt,amount:Ge}),i?.setAssetAmount(Ge),te.retrySupply()},[i?.setAssetAmount,te.retrySupply]);ue(()=>{if(te.capability?.policyExcluded){V(null);return}le||te.assets.loading||te.assets.refreshing||te.assets.error||V(Ge=>{if(!Ge)return re.current||!K[0]?null:(re.current=!0,{asset:K[0],amount:i?.assetAmount??""});const Bt=K.find(rt=>ve(rt)===ve(Ge.asset));return Bt?Bt===Ge.asset?Ge:{...Ge,asset:Bt}:Ge.asset.balance===0n?Ge:{...Ge,asset:{...Ge.asset,balance:0n,balanceFormatted:0,balanceUsd:0}}})},[K,le,te.assets.loading,te.assets.refreshing,te.assets.error,te.capability?.policyExcluded]),ue(()=>{a&&(a.setSelectedAsset(te.destination),a.setAssetAmount(We))},[te.destination,We,a?.setSelectedAsset,a?.setAssetAmount]);const at=async()=>{z(!0),await te.submitSupply()},Ke=()=>{z(!1),te.retrySupply()},Ae=()=>{z(!1),V(null),te.resetAfterSuccess()},Xe=R("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[f(el,{color:Q}),R("p",{style:{fontSize:"13px",color:Q,margin:0,lineHeight:"1.5"},children:["Add ",r," by converting assets from your account"]})]});if(!e)return null;const kt={backgroundColor:I,border:D,borderRadius:P,padding:"16px",marginBottom:"16px"};return f(bo,{isOpen:e,onClose:t,title:`Add ${r} to your account`,subtitle:Xe,styles:x,dark:B,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"0 24px 8px 24px",position:"relative"},children:[f(fa,{activity:te.status.activity,palette:k,onRefresh:()=>{te.assets.refreshSpiceAssets(),te.assets.refreshWalletAssets()}}),R("div",{style:{marginBottom:"12px"},children:[b&&f("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:f(dl,{onClick:b,color:M,fontFamily:E})}),f("div",{style:{marginTop:"10px",fontSize:"13px",color:Q,fontFamily:E},children:f(zr,{assets:K,selectedAsset:$??void 0,onAssetSelect:pe,onAmountChange:Oe,label:"Amount",showBalance:!0,getAvailableBalance:te.assets.getAvailableBalance,showMaxButton:!0,disabled:le||te.status.finalizing,maxAmount:$&&te.amount.availableBalance!==void 0?De(te.amount.availableBalance,$.asset.decimals):void 0,resolveMaxAmount:te.resolveMaxAmount,theme:oe,styles:G})}),f("div",{style:{marginTop:"6px",paddingLeft:"4px",fontSize:"13px",color:Q,fontFamily:E},children:nt})]}),R("div",{style:kt,children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px",borderBottom:B?`1px solid ${k.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[s?f("img",{src:s,alt:r,style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"}}):f("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:B?k.inputBg:"#d1d5db",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:700,color:H},children:r.slice(0,2)}),f("span",{style:{fontSize:"16px",fontWeight:600,color:H,fontFamily:E},children:r})]}),R("div",{style:{textAlign:"right"},children:[f("div",{style:{fontSize:"22px",fontWeight:700,color:H,fontFamily:E,lineHeight:1.1},children:Ye??"0.00"}),(!de||ft!==null)&&R("div",{style:{fontSize:"12px",color:Q,fontFamily:E,marginTop:"2px"},children:["~$",ft??"0.00"]})]})]}),R("div",{style:{paddingTop:"16px",paddingBottom:"16px",borderBottom:B?`1px solid ${k.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[f("span",{style:{fontSize:"15px",fontWeight:500,color:Q,fontFamily:E},children:"Lock Duration"}),f(Mr,{color:Q})]}),f(Kg,{options:u,selectedIndex:be,onSelect:Ge=>{!le&&!te.status.finalizing&&fe(Ge)},primaryColor:M,dark:B,textPrimary:H,textSecondary:Q})]}),R("div",{style:{paddingTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:[f(Wu,{label:"Estimated Lock Expiry",value:xe?.months!==void 0?Vg(xe.months):"\u2014",fontFamily:E,dark:B,textPrimary:H,textSecondary:Q}),d&&f(Wu,{label:"Estimated voting power",value:Qe!==void 0?`${Qe} votes/epoch`:"\u2014",fontFamily:E,dark:B,textPrimary:H,textSecondary:Q})]})]}),Se&&f(il,{fontFamily:E,textPrimary:H,textSecondary:Q,cardBg:I,cardBorder:D,resolvedDark:B,darkCardBorder:k.cardBorder,primaryColor:M,feePreview:ze,asset:$?.asset,directExecutionFeeNote:te.flags.directExecutionFeeNote,isLoading:ie||Ce.isQuoting,errorText:J}),te.status.finalizationError&&f(Qt,{onClick:te.retryFinalization,disabled:te.status.finalizing,children:"Retry application update"}),et&&f(Vn,{variant:"error",palette:k,fontFamily:E,style:{marginBottom:"12px"},children:et}),f(Qt,{variant:"outline",fullWidth:!0,onClick:()=>{Ce.error?te.retrySupply():at()},disabled:le||!Me&&!Ce.error,loading:le,dark:B,styles:{...x,button:{...x?.button,backgroundColor:M}},children:le?ne?"LOCKING...":"CONVERTING...":Ce.error?"RETRY QUOTE":Ce.isQuoting?"GETTING SWAP QUOTE...":ie&&Se?"CALCULATING FEES...":ne?`LOCK ${r}`:`CONVERT TO ${r}`}),Te&&!te.status.finalizationError&&(N==="success"||N==="error"||le)&&f(Oi,{type:"lock",isOpen:!le,isProcessing:le,closeOnComplete:!1,chainId:c,showStepBreakdown:!1,onRetryTx:Ke,onNewTx:Ae,onClose:()=>z(!1),onComplete:Ae,results:N==="success"||N==="error"?[{asset:{symbol:r,address:te.destination.address},txHash:Le??"",success:N==="success",error:et??void 0,amount:$?.amount}]:void 0,theme:T,styles:x,dark:B})]})})},Zg=({variant:e,destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:s,textPrimary:a,textSecondary:i,cardBg:l,cardBorder:c,dk:u,dark:d,isQuoting:p,quoteError:w,estimatedOutput:m,paymentAmount:g,needsSwap:h,exactOutputSwap:y,adjustable:C=!1,maxAmount:S,onAmountChange:b})=>e==="supply"?R("div",{style:{backgroundColor:l,border:`1px solid ${c}`,borderRadius:d?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",minHeight:"112px",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[R("div",{style:{minWidth:0},children:[f("span",{style:{fontFamily:s,fontSize:"17px",fontWeight:500,color:d?"#a7abb2":"#7D7C7B",lineHeight:"24px"},children:"Used in TX"}),f("div",{style:{fontSize:"12px",fontWeight:500,color:i,fontFamily:s,marginTop:"10px"},children:"Net amount after swap and fees"})]}),R("div",{style:{textAlign:"right",minWidth:0,display:"inline-flex",alignItems:"center",gap:"8px",border:`1px solid ${c}`,borderRadius:"8px",padding:"8px 10px",minHeight:"42px"},children:[f(Lu,{symbol:t,logoURI:n,primaryColor:r,size:24}),f("span",{style:{fontSize:"16px",fontWeight:500,color:d?"#f3f4f6":"#3C3E42",lineHeight:"1.3",fontFamily:s,letterSpacing:0},children:t})]})]}),f("div",{style:{textAlign:"right",minWidth:0},children:p?f("span",{style:{fontSize:"18px",color:i,fontFamily:s},children:"Quoting..."}):w?f("span",{style:{fontSize:"13px",color:d?"#f87171":"#dc2626",fontFamily:s},children:"Quote failed"}):m?f(kr,{value:m,title:m,fontFamily:s,color:a,lineHeight:"0.95",textAlign:"right",maxFontSize:32,minFontSize:18}):f("span",{style:{fontSize:"20px",color:i,fontFamily:s},children:"\u2014"})})]}):f(Xg,{destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:s,textPrimary:a,textSecondary:i,cardBg:l,cardBorder:c,dk:u,dark:d,paymentAmount:g||"0",needsSwap:h,exactOutputSwap:y,isQuoting:p,adjustable:C,maxAmount:S,onAmountChange:b}),Uu=mo(Zg),Lu=({symbol:e,logoURI:t,primaryColor:n,size:o})=>t?f("img",{src:t,alt:e,style:{width:o,height:o,borderRadius:"50%",objectFit:"cover"}}):f("div",{style:{width:o,height:o,borderRadius:"50%",backgroundColor:`${n}22`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:o<30?"11px":"12px",fontWeight:700,color:n},children:e.slice(0,2)}),Xg=({destinationSymbol:e,destinationLogoURI:t,destinationDecimals:n,primaryColor:o,fontFamily:r,textPrimary:s,textSecondary:a,cardBg:i,cardBorder:l,dk:c,dark:u,paymentAmount:d,needsSwap:p,exactOutputSwap:w,isQuoting:m,adjustable:g,maxAmount:h,onAmountChange:y})=>{const C=tt.mono,S=parseFloat(d||"0"),b=h?parseFloat(h):0,[A,O]=L(d||""),v=j(null),[x,F]=L(null),[T,B]=L(null);ue(()=>{g||O(d||"")},[d,g]);const M=I=>{let D=I;D.startsWith(".")&&(D="0"+D);const P=js(D);let H=P;h&&parseFloat(P)>parseFloat(h)&&(H=h),O(H),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>y?.(H),300)},k=I=>{if(!b)return;if(I===100){O(h||b.toString()),v.current&&clearTimeout(v.current),y?.(h||b.toString());return}const D=10**n,P=Math.floor(b*I/100*D)/D,H=vp(P,n);O(H),v.current&&clearTimeout(v.current),y?.(H)},E=b>0?parseFloat(A||"0")/b*100:0;return ue(()=>()=>{v.current&&clearTimeout(v.current)},[]),R("div",{style:{backgroundColor:i,border:`1px solid ${l}`,borderRadius:u?"12px":"6px",padding:"16px",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[f(Lu,{symbol:e,logoURI:t,primaryColor:o,size:32}),R("div",{children:[f("span",{style:{fontSize:"14px",fontWeight:600,color:s,fontFamily:r},children:"Payment"}),f("div",{style:{fontSize:"12px",color:a,fontFamily:r,marginTop:"2px"},children:e})]})]}),R("div",{style:{textAlign:"right"},children:[g?f(kr,{element:"input",ariaLabel:`${e} amount`,dataSpiceflowFocus:!0,value:A,onChange:I=>M(I.target.value),placeholder:"0.0",fontFamily:C,color:s,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12,style:{width:"120px"}}):f(kr,{element:"div",value:S>0?d:"0.00",title:S>0?d:"0.00",fontFamily:C,color:s,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12}),f("div",{style:{fontSize:"12px",color:a,fontFamily:C,marginTop:"2px"},children:e}),g&&b>0&&f("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",marginTop:"6px"},children:[0,25,50,75,100].map((I,D)=>{const P=Math.abs(E-I)<1,H=D===4,Q=x===I,G=T===I;return f("button",{onClick:()=>k(I),onMouseEnter:()=>F(I),onMouseLeave:()=>{F(null),B(null)},onMouseDown:()=>B(I),onMouseUp:()=>B(null),title:`${I}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:"pointer",opacity:P?1:Q?.8:.5,transform:G?"scale(0.85)":Q?"scale(1.15)":"scale(1)",transition:po.interactive},children:f(Ji,{pct:I,isMax:H,primaryColor:o,dark:u,fillColor:u?c?.textSecondary||"#9ca3af":"#3C3E42"})},I)})})]})]}),p&&w&&!m&&f("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:u?`1px solid ${c?.cardBorder||l}`:"1px solid #e5e7eb",display:"flex",justifyContent:"flex-end"},children:R("span",{style:{fontSize:"11px",color:a,fontFamily:r,opacity:.7},children:["via ",w.venue]})})]})},qu={idle:"",building:"Preparing transaction...","signing-delegation":"Signing delegation...","signing-intent":"Signing intent...",submitting:"Submitting transaction...",executing:"Executing on-chain...",success:"Deposit confirmed",error:"Transaction failed"},zu=["building","signing-delegation","signing-intent","submitting","executing"],Jg=({step:e,statusMsg:t,txHash:n,explorerUrl:o,currentStepIdx:r,palette:s,cardBg:a,cardBorder:i,textPrimary:l,textSecondary:c,fontFamily:u,primaryColor:d,onRetry:p})=>R("div",{style:{padding:"10px 14px",borderRadius:"7px",marginBottom:"16px",backgroundColor:e==="success"?a:e==="error"?s.errorBg:a,border:`1px solid ${e==="success"?i:e==="error"?s.errorBorder:i}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e==="success"?f("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:f("path",{d:"M5 13l4 4L19 7",stroke:s.successText,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="error"?f("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:f("path",{d:"M18 6L6 18M6 6l12 12",stroke:s.errorText,strokeWidth:"2.5",strokeLinecap:"round"})}):f(Uo,{size:14,color:d}),f("span",{style:{fontSize:"13px",fontWeight:500,color:e==="success"?l:e==="error"?s.errorText:l,fontFamily:u,flex:1},children:e==="success"?"Deposit confirmed":e==="error"?t||"Transaction failed":t||qu[e]}),e==="success"&&n&&f("a",{href:`${o}/tx/${n}`,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",color:d,fontFamily:u,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:"View tx \u2192"}),e==="error"&&f("button",{onClick:p,style:{background:"none",border:"none",fontSize:"12px",color:d,fontFamily:u,cursor:"pointer",padding:0,whiteSpace:"nowrap",flexShrink:0},children:"Retry \u2192"})]}),r>=0&&e!=="success"&&e!=="error"&&f("div",{style:{marginTop:"8px",height:"3px",borderRadius:"2px",backgroundColor:`${c}22`,overflow:"hidden"},children:f("div",{style:{height:"100%",width:"100%",borderRadius:"2px",backgroundColor:d,transformOrigin:"left center",transform:`scaleX(${(r+1)/zu.length})`,transition:"transform 400ms ease"}})})]}),$g=()=>{},_g=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,destinationToken:o,sourceChains:r,supportedSourceAssets:s,additionalSourceTokens:a,includeExternalWalletAssets:i,includeCrossChainEmbeddedAssets:l,combineSourceBalances:c,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:m,feeFunding:g,feeFundingReserve:h,maxSlippage:y,resolveInputSwap:C,buildActionCalls:S,feeExecutionMode:b="user-transfer",buildSpicenetBatch:A,onPayExecute:O,resolveExactOutputSwap:v,actionLabel:x,amountDirection:F=p?"output":u?"input-inclusive":"input",swapDescription:T,directDescription:B,paymentAmount:M,amountInputMode:k="fixed",maxPaymentAmount:E,onAmountChange:I,styles:D,dark:P,title:H,subtitle:Q,onAddFunds:G,onSubmit:oe,beforeSubmit:$,submitDisabled:V,onStateChange:re,onSuccess:X,onError:he})=>{const be=F==="output",fe=Fo(),xe=F==="input-inclusive",{theme:te,dark:K,primaryColor:le,dk:N,palette:Le,fontFamily:Te,monoFont:z,inputDark:q,cardBg:ne,cardBorder:de,textPrimary:J,textSecondary:ie,subtitleText:ze}=sn(D,P),Se=ge(()=>q?{...te,colors:{...te.colors,secondary:N.cardBg,surfaceHover:N.hoverBg,border:"#2d2d2d",borderHover:"#3a3a3a"}}:te,[q,te,N.cardBg,N.hoverBg]),Ce=Ca(o,e),et=Ce.token??Ia,Me=ge(()=>et.logoURI?et:{...et,logoURI:gi[et.symbol.toUpperCase()]},[et]),Ne=Me.chainId,We=Ca(u?.token,e&&!!u).token,[we,Ye]=L(null),[ke,He]=L(M||""),ft=k==="adjustable"?ke:M||"0",Ze=M?.trim(),nt=be&&k==="fixed"&&Ze!==void 0&&Ze!==""&&parseFloat(ft||"0")===0,{operationKey:Qe,feeQuote:pe,selectedAsset:Oe,capability:at,retryFinalization:Ke,refreshStatus:Ae,assets:{selectable:Xe,loading:kt,refreshing:Ge,error:Bt,getAvailableBalance:rt},quote:{isQuoting:ct,quoteError:dt,estimatedOutput:mt,exactOutputSwap:fn,isDirect:wt,needsSwap:ht,pivot:Wt},fees:{preview:Ft,isLoading:Z,error:Ut},amount:{sourceRequiredAmount:it,parsed:Tt,isInsufficientBalance:en,availableBalance:bn},status:{activity:Re,pending:Gt,recoveryChecking:Ot,recoveryError:Ln,actionId:Rt,intentId:Cn,autoContinue:jn,submissionStatus:Gn,idempotencyKey:Bn,user:In,finalizationError:xn,finalizing:On,step:Dt,statusMsg:Rn,txHash:Sn,isExecuting:Yt,error:qt,showStatusPanel:Je,paymentResult:St},flags:{directExecutionFeeNote:ao},canExecute:ln,submitSupply:io,retrySupply:mn,dismissPaymentStatus:_n,submitPay:Jt,resolveMaxAmount:Mn,max:An,resetAfterSuccess:ut,resetPaymentState:Kn}=Ss({enabled:e,destinationToken:Ce.token&&Me,selectedAsset:u?null:we,paymentAmount:ft,amountDirection:F,sourceChains:r,supportedSourceAssets:s,additionalSourceTokens:a,includeExternalWalletAssets:i,includeCrossChainEmbeddedAssets:l,combineSourceBalances:c,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:m,feeFunding:g,feeFundingReserve:h,maxSlippage:y,resolveInputSwap:C,buildActionCalls:S,feeExecutionMode:b,buildSpicenetBatch:A,onPayExecute:O,resolveExactOutputSwap:v,isZeroAmountPay:nt,onSubmit:oe,beforeSubmit:$,submitDisabled:V,onSuccess:X,onError:he}),Nn=ge(()=>({operationKey:Qe,feeQuote:pe,selectedAsset:Oe,canExecute:ln&&!V,isExecuting:Yt,finalizing:On,finalizationError:xn,feePreview:Ft,txHash:Sn,error:qt,statusStep:Dt,statusMsg:Rn,pending:Gt,recoveryChecking:Ot,recoveryError:Ln,actionId:Rt,intentId:Cn,autoContinue:jn,submissionStatus:Gn,idempotencyKey:Bn,user:In,refreshStatus:Ae}),[Qe,pe,Oe,ln,V,Yt,On,xn,Ft,Sn,qt,Dt,Rn,Gt,Ot,Ln,Rt,Cn,jn,Gn,Bn,In,Ae]),Mt=Co.useRef(re);Mt.current=re,ue(()=>{Mt.current?.(Nn)},[Nn]);const Pn=!!p||(!!u||!!we?.asset)&&Tt>0,xo=Ce.error||qt,Y=xn?f(Qt,{onClick:Ke,disabled:On,children:"Retry application update"}):null,Ie=Gt||Ot||Ln?R(Vn,{variant:"info",palette:Le,fontFamily:Te,children:[Ot?"Checking transaction status...":Ln?"Transaction status is unavailable.":"Your transaction is pending.",f(Qt,{onClick:()=>{Ae()},disabled:Ot,children:"Check status"})]}):null;ue(()=>{e||(Ye(null),k==="adjustable"&&He(M||""))},[e]),ue(()=>{if(at?.policyExcluded){Ye(null);return}if(Yt||kt||Ge||Bt||!we)return;const gt=Xe.find(Kt=>ve(Kt)===ve(we.asset));gt&>!==we.asset?Ye({...we,asset:gt}):!gt&&we.asset.balance>0n&&Ye({...we,asset:{...we.asset,balance:0n,balanceFormatted:0,balanceUsd:0}})},[Xe,kt,Ge,Bt,Yt,at?.policyExcluded]);const $e=se(gt=>{Ye(Kt=>({asset:gt,amount:Kt?.asset&&ve(Kt.asset)===ve(gt)&&Kt.amount||""}))},[]),It=se(gt=>{Ye(Kt=>Kt&&{...Kt,amount:gt})},[]),tn=se(gt=>{let Kt=gt;E&&parseFloat(Kt)>parseFloat(E)&&(Kt=E),He(Kt),I?.(Kt)},[E,I]),Lt=se(()=>{Kn(),Ye(null)},[Kn]),nn=wt?B||`Your ${Me.symbol} will be used directly.`:T||"Your assets will be swapped and used in a single atomic transaction.",$t=(Ne?bt(Ne):void 0)?.viemChain?.blockExplorers?.default?.url??"",cn=zu.indexOf(Dt),Zt=Ot?"CHECKING STATUS...":Gt?"TRANSACTION PENDING":Yt?(qu[Dt]||"EXECUTING...").toUpperCase():Dt==="success"?"DONE":en?"INSUFFICIENT BALANCE":(ht||Wt)&&dt&&!ct?"QUOTE ERROR":x.toUpperCase(),En=ge(()=>{if(Ot)return"CHECKING STATUS...";if(Gt)return"TRANSACTION PENDING";if(St?.status==="success")return"DONE";if(Yt)return"PAYING...";if(en&&we?.asset)return`INSUFFICIENT ${fe(we.asset).symbol}`;if((ht||Wt)&&dt&&!ct)return"QUOTE ERROR";if(x)return x.toUpperCase();const gt=Tt>0?` ${ft} ${Me.symbol}`:"";return ht?`SWAP & PAY${gt}`:`PAY${gt}`},[Yt,en,we,x,fe,Tt,ft,Me.symbol,ht,dt,ct,St?.status,Gt,Ot]),dn=Dt==="success"?()=>{ut(),Ye(null)}:io,qn=Dt==="success"?!1:!!V||!ln;if(!e)return null;const Vt=be?H||`Pay ${Me.symbol}`:x,Dn=be?Q:R("div",{style:{display:"flex",alignItems:"flex-start",gap:"3px"},children:[f("span",{style:{marginTop:"3px",flexShrink:0},children:f(el,{color:ze})}),f("p",{style:{fontSize:"12px",color:ze,margin:0,lineHeight:"1.4",fontFamily:Te},children:nn})]}),zn={...D,button:{...D?.button,backgroundColor:le}},Ko=Pn&&f(il,{fontFamily:Te,textPrimary:J,textSecondary:ie,cardBg:ne,cardBorder:de,resolvedDark:K,darkCardBorder:N.cardBorder,primaryColor:le,feePreview:Ft,feeOnlyAction:p,asset:we?.asset,isLoading:Z,errorText:Ut,directExecutionFeeNote:ao});if(be){const gt=St&&(St.status==="success"||St.status==="failed")?[{asset:{symbol:we?.asset?fe(we.asset).symbol:Me.symbol,address:we?.asset?.address||""},amount:ft,txHash:St.txHash||"",success:St.status==="success",error:St.status==="failed"?St.error:void 0}]:void 0;return f(bo,{isOpen:e,onClose:t,title:Vt,subtitle:Dn,styles:D,dark:K,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"16px 24px 8px 24px",position:"relative"},children:[f(fa,{activity:Re,palette:N}),G&&f("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:f(dl,{onClick:G,color:le,fontFamily:Te})}),!nt&&f("div",{style:{marginBottom:"12px"},children:f(zr,{assets:Xe,selectedAsset:we??void 0,disabled:Yt,onAssetSelect:$e,onAmountChange:$g,label:"Pay with",showBalance:!0,getAvailableBalance:rt,showMaxButton:!1,hideAmountInput:!0,displayAmount:we&&it!==null?De(it,we.asset.decimals):we?"...":void 0,dark:K,theme:Se,styles:D})}),!p&&f(Uu,{variant:"pay",destinationSymbol:Me.symbol,destinationLogoURI:Me.logoURI,destinationDecimals:Me.decimals,primaryColor:le,fontFamily:Te,textPrimary:J,textSecondary:ie,cardBg:ne,cardBorder:de,dk:N,dark:K,isQuoting:ct,quoteError:dt,estimatedOutput:mt,paymentAmount:ft,needsSwap:ht,exactOutputSwap:fn,adjustable:k==="adjustable",maxAmount:E,onAmountChange:tn}),Ko,Y,Ie,xo&&f(Vn,{variant:"error",palette:Le,fontFamily:Te,style:{marginBottom:"12px"},children:xo}),f(Qt,{variant:"outline",fullWidth:!0,onClick:St?.status==="success"?t:Jt,disabled:St?.status==="success"?!1:!!V||!ln,loading:Yt,dark:K,styles:zn,children:En}),St&&Je&&!xn&&f("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:10,backgroundColor:K?N.shell:"white",borderRadius:K?"12px":"6px",padding:"16px 0"},children:f(Oi,{type:"payment",isOpen:St.status!=="processing",isProcessing:Yt||St.status==="processing",closeOnComplete:!1,chainId:Ne,onRetryTx:()=>{_n(),Jt()},onNewTx:Lt,onClose:()=>{_n()},onComplete:Lt,results:gt,styles:D,dark:K})})]})})}return f(bo,{isOpen:e,onClose:t,title:Vt,subtitle:Dn,dark:K,styles:D,theme:te,closeOnBackdropClick:n,children:R("div",{style:{padding:"24px 24px 5px 24px",position:"relative"},children:[f(fa,{activity:Re,palette:N}),u?R("div",{style:{marginBottom:"16px",padding:"16px",backgroundColor:ne,border:`1px solid ${de}`,borderRadius:"8px",color:J,fontFamily:Te},children:[R("label",{style:{display:"block",marginBottom:"8px"},children:["Purchase amount (",We?.symbol??"...",")",f("input",{"aria-label":"Purchase amount",inputMode:"decimal",value:ft,disabled:Yt||k!=="adjustable"||Dt==="success",onChange:gt=>tn(gt.target.value),style:{display:"block",width:"100%",boxSizing:"border-box",padding:"10px",marginTop:"8px",fontSize:"24px",color:J,background:"transparent",border:`1px solid ${de}`,borderRadius:"6px"}})]}),We&&bn!==void 0&&R("div",{style:{fontSize:"12px",color:ie},children:["Estimated available:"," ",De(bn,We.decimals)," ",We.symbol]}),k==="adjustable"&&f(Qt,{disabled:Yt||Dt==="success",onClick:()=>{An().then(gt=>{gt!==null&&tn(gt)})},children:"Max"}),pe?.fundingPlan?.sources.map(gt=>R("div",{style:{marginTop:"10px",fontSize:"12px",color:ie},children:["Up to ",De(gt.sourceSpendCap,gt.decimals)," ",gt.asset.symbol,gt.swap&&R(wn,{children:[" ","\u2192 at least"," ",De(gt.amountOutMinimum,gt.pivotToken.decimals)," ",gt.pivotToken.symbol]}),gt.gasFeeAmount>0n&&R(wn,{children:[" ","(funding fee"," ",De(gt.gasFeeAmount,gt.pivotToken.decimals)," ",gt.pivotToken.symbol,")"]})]},gt.positionId))]}):f("div",{style:{marginBottom:"16px"},children:f(zr,{assets:Xe,selectedAsset:we||void 0,onAssetSelect:$e,onAmountChange:It,disabled:Yt||Dt==="success",showBalance:!0,getAvailableBalance:rt,showMaxButton:!0,label:c?"From":"From Wallet",placeholder:"0.00",theme:Se,styles:D,dark:q,resolveMaxAmount:xe?void 0:Mn,maxAmount:we?.asset&&bn!==void 0?De(bn,we.asset.decimals):void 0})}),(u||we?.asset)&&(u||!wt||!!Wt)&&!(xe&&Wt)&&f(Uu,{variant:"supply",destinationSymbol:Me.symbol,destinationLogoURI:Me.logoURI,destinationDecimals:Me.decimals,primaryColor:le,fontFamily:Te,textPrimary:J,textSecondary:ie,cardBg:ne,cardBorder:de,dark:K,isQuoting:ct,quoteError:dt,estimatedOutput:mt}),Ko,Dt!=="idle"&&f(Jg,{step:Dt,statusMsg:Rn,txHash:Sn,explorerUrl:$t,currentStepIdx:cn,palette:Le,cardBg:ne,cardBorder:de,textPrimary:J,textSecondary:ie,fontFamily:Te,primaryColor:le,onRetry:()=>{mn()}}),Y,Ie,qt&&(Dt==="idle"||!!xn)&&f(Vn,{variant:"error",palette:Le,fontFamily:Te,style:{marginBottom:"16px"},children:qt}),f(Qt,{variant:"outline",fullWidth:!0,disabled:qn,onClick:dn,theme:te,dark:K,styles:zn,style:{fontSize:"20px",fontWeight:600,letterSpacing:"1.5px",fontFamily:z},children:Zt})]})})},e0=()=>{const[e,t]=L("0"),[n,o]=L(null);return{assetAmount:e,setAssetAmount:t,selectedAsset:n,setSelectedAsset:o}};async function t0(e,t,n,o){if(e.amountIn<=0n||e.minimumOutput<0n||!(e.venue.chainIds??[8453]).includes(e.chainId))throw new Error("Choose a positive fixed input, nonnegative minimum output and supported venue chain");const r=fr(e.chainId).find(b=>b.equivalenceGroup==="USDC");if(!r)throw new Error("Configure the execution fee token for this chain");const s={...r,address:r.address,chainId:e.chainId},a=as({...e.venue,deadline:e.expiresAt}),i=await a.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn},e.chainId,t);if(!i)throw new Error("No supported fixed route for this conditional swap");let l=e.amountIn,c="";const u=async b=>{if(b<=0n)throw new xr(e.amountIn+1n,e.amountIn);const A=(b===e.amountIn?i:await a.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:b},e.chainId,t))?.calls.find(x=>x.to.toLowerCase()===e.venue.swapRouter.toLowerCase());if(!A)throw new Error("No supported fixed route for this conditional swap");const{path:O}=Zn({abi:br,data:A.data}).args[0];if(O.slice(0,42).toLowerCase()!==e.tokenIn.toLowerCase()||`0x${O.slice(-40)}`.toLowerCase()!==e.tokenOut.toLowerCase())throw new Error("The quoted route does not match the requested tokens");l=b;const v=[{to:e.tokenIn,value:0n,data:Et({abi:lt,functionName:"approve",args:[e.venue.swapRouter,b]})},{to:e.venue.swapRouter,value:0n,data:Et({abi:br,functionName:"exactInput",args:[{path:O,recipient:t,deadline:e.expiresAt,amountIn:b,amountOutMinimum:0n}]})}];return c=v[1].data,v},d=n.filter(b=>!b.balanceError&&b.balanceStatus!=="stale"&&b.owner?.toLowerCase()===t.toLowerCase()&&b.location!=="external"),p=d.find(b=>b._source==="wallet"&&b.chainId===e.chainId&&b.address.toLowerCase()===e.tokenIn.toLowerCase()),w=p&&bs(p,d,t,e.chainId),m={requestTimestampMs:Date.now(),currentPaymentAmount:"0",feeOnlyAction:!0,isPayMode:!0,destinationToken:s,embeddedWalletAddress:t,providerEmbeddedAddress:t,externalWalletAddress:void 0,address:t,isNon7702:!1,resolvedChainId:e.chainId,feeExecutionMode:"backend-transfer",buildSpicenetBatch:void 0,selectedAsset:null,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,resolvedTokenIn:s.address,buildActionCalls:b=>u(b)},g={...m,expiresAt:Number(e.expiresAt),parsedAmount:0,isSourceDestToken:!0,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isQuoting:!1,executionTokenAddress:s.address,actionInput:e.amountMode==="input-inclusive"?[{token:e.tokenIn,amount:e.amountIn}]:void 0,actionProceeds:{token:e.tokenOut,resolve:async()=>i.amountOut},feeFundingBalances:d,feeFundingReserve:p?{asset:p,amount:e.amountIn}:void 0,liquidityVenues:{includeDefaults:!1,venues:[{...e.venue,deadline:e.expiresAt,protocol:"aerodrome-slipstream",chainId:e.chainId}]},buildPayChainBatches:b=>qr(m,{...b,actionAmountOverride:b?.actionAmountOverride??e.amountIn}),buildSupplyChainBatches:b=>qr(m,{...b,actionAmountOverride:b?.actionAmountOverride??e.amountIn}),estimate:o},h=w?await Pd({...g,feeOnlyAction:!1,isPayMode:!1,isFeeInclusiveInput:e.amountMode==="input-inclusive",selectedAsset:{asset:p,amount:De(e.amountIn,p.decimals)},combinedSourceGroup:w},m,jo):await Hi(g,jo),y=h?.fundingBatches??h?.batches;if(!h||!y?.length||h.preview.totalFee===void 0)throw new Error("Conditional swap fee plan is unavailable");const C=y.flatMap(b=>b.calls).find(b=>b.to.toLowerCase()===e.venue.swapRouter.toLowerCase()&&b.data===c);if(!C)throw new Error("The conditional swap is missing from its fee plan");const S=Zn({abi:br,data:C.data}).args[0];return C.data=Et({abi:br,functionName:"exactInput",args:[{...S,amountOutMinimum:e.minimumOutput}]}),{batches:y,sourceAllocation:h.sourceAllocation,swapAmountIn:l,feeFundingSource:h.fundingSource,feeSourceAmount:h.fundingConversion?.amountInMax??h.proceedsUsed??h.sourceSpendCap,fees:{token:s.address,symbol:s.symbol,decimals:s.decimals,amount:h.preview.totalFee}}}const Hu=`0x${"00".repeat(32)}`;function ul(){return BigInt(`0x${Array.from(crypto.getRandomValues(new Uint8Array(32)),e=>e.toString(16).padStart(2,"0")).join("")}`)}function n0(e,t){const n={chainId:e,to:t.to,value:t.value,selector:t.data.length>=10?t.data.slice(0,10):"0x"};try{const o=Zn({abi:br,data:t.data});if(o.functionName==="exactInput"){const r=o.args[0];n.fixedInput=r.amountIn,n.minimumOutput=r.amountOutMinimum,r.amountOutMinimum===0n&&(n.disclosure="This fixed-input swap has zero minimum output. The router can execute it for any output amount, including a very poor fill.")}}catch{}return n}function o0(){const e=Eo(),t=an(_t),n=yr({owner:e.address,role:"spend-source",enabled:e.isReady}),o=Dr(),r=j({wallet:e,provider:t,inventory:n,execution:o});r.current={wallet:e,provider:t,inventory:n,execution:o};const s=j(!0),a=j(0),i=JSON.stringify([e.address,qe.getBaseUrl(),t?.rpcOverrides,t?.provider,t?.network,t?.mode]),l=j(i);l.current!==i&&(l.current=i,a.current++);const c=j(!1),u=j(new WeakMap),d=j(new WeakMap),p=j();ue(()=>(s.current=!0,()=>{s.current=!1,a.current++}),[]);const w=se(()=>JSON.stringify([a.current,r.current.wallet.address,qe.getBaseUrl(),r.current.provider?.rpcOverrides,r.current.provider?.provider,r.current.provider?.network,r.current.provider?.mode]),[]),m=v=>{if(!s.current||w()!==v)throw new Error("Wallet, provider or relayer changed during conditional intent processing")},g=se(async v=>{const x=r.current.wallet.address;if(!x||!r.current.wallet.isReady)throw new Error("Connect a ready wallet before preparing a conditional intent");if(r.current.provider?.mode!=="7702")throw new Error("Conditional intents require a fully pre-signed 7702 action");if(!v.clientId||!v.serviceId||!v.triggerSpecification||!v.chainBatches.length)throw new Error("Conditional intent requires a client, service, exact trigger bytes and fixed action batches");if(v.semantics!=="state"&&v.semantics!=="event")throw new Error("Choose state or event trigger semantics");const F=BigInt(Math.floor(Date.now()/1e3));if(v.maxSignalAgeSeconds<1n||v.maxSignalAgeSeconds>86400n||v.validAfter>v.expiresAt||v.expiresAt<=F||v.expiresAt-F>30n*86400n)throw new Error("Conditional intent validity or signal freshness is outside the supported window");const T=w(),B=structuredClone(v.chainBatches).map(D=>({...D,tokenTransfers:D.tokenTransfers??[]}));if(B.some(D=>!Number.isSafeInteger(D.chainId)||D.chainId<=0||!D.calls.length))throw new Error("Every action batch needs a supported chain and at least one fixed call");const M={owner:x,clientId:v.clientId,serviceId:v.serviceId,authorizationNonce:ul(),executionDigest:ki(B,v.expiresAt),executionPlanHash:Hu,triggerSpecificationHash:mr(v.triggerSpecification),evaluator:v.evaluator,semantics:v.semantics,maxSignalAgeSeconds:v.maxSignalAgeSeconds,validAfter:v.validAfter,expiresAt:v.expiresAt,maxExecutions:1},k=B.flatMap(D=>D.calls.map(P=>n0(D.chainId,P)));m(T);const E={triggerSpecification:v.triggerSpecification,chainBatches:structuredClone(B),actionSummary:k,additionalSignatureCount:2,delegationAuthorizationCount:new Set(B.filter(D=>!Oo(D.chainId)).map(D=>D.chainId)).size,triggerEnforcedBy:"SpiceFlow conditional-intent service"},I={scope:T,input:{...structuredClone(v),chainBatches:B},prepared:E,baseAuthorization:M};return u.current.set(E,I),E},[w]),h=se(async v=>{v=structuredClone(v);const x=w(),F=r.current.wallet.address;if(!F||!r.current.wallet.isReady||r.current.provider?.mode!=="7702")throw new Error("Connect a ready 7702 wallet before preparing a conditional swap");const T=await Ct(v.chainId,r.current.provider?.rpcOverrides).readContract({address:v.tokenIn,abi:lt,functionName:"balanceOf",args:[F]});m(x);const B=r.current.inventory.assets,M=B.find(P=>P._source==="wallet"&&P.location==="embedded"&&P.chainId===v.chainId&&ee(P.address,v.tokenIn)&&ee(P.owner,F))??fr(v.chainId).find(P=>ee(P.address,v.tokenIn)),k=M?{...M,address:v.tokenIn,chainId:v.chainId,owner:F,location:"embedded",_source:"wallet",balance:T,balanceFormatted:Number(De(T,M.decimals)),balanceUsd:0,isNative:!1,balanceError:void 0,balanceStatus:void 0}:void 0,E=k?[...B.filter(P=>!(P._source==="wallet"&&P.location==="embedded"&&P.chainId===v.chainId&&ee(P.address,v.tokenIn)&&ee(P.owner,F))),k]:B;if(((k&&bs(k,E,F,v.chainId))?.availableBalance??T)<v.amountIn)throw new Error("The available wallet and escrow balance does not cover the order input");const I=await t0(v,F,E,r.current.execution.estimate);m(x);const D=await g({...v,chainBatches:I.batches});if(I.sourceAllocation){const P=I.sourceAllocation;u.current.get(D).validateFunding=()=>Fi(I.batches,F,{walletFundingRequirement:{chainId:P.chainId,token:P.token,amount:P.walletInPlace}})}return D.fees=I.fees,D.feeFundingSource=I.feeFundingSource,D.feeSourceAmount=I.feeSourceAmount,D.swapAmountIn=I.swapAmountIn,D},[g,w]),y=se(async v=>{const x=u.current.get(v);if(!x)throw new Error("Prepare this conditional intent in the current hook before signing");m(x.scope);const F=r.current.wallet.address;if(!F||!r.current.wallet.actions.signMessage)throw new Error("Wallet is not ready to sign this conditional intent");if(x.request)return x.prepared;if(c.current)throw new Error("A conditional authorization is already being signed");c.current=!0;try{await x.validateFunding?.(),m(x.scope);const T=await Ii({chainBatches:x.input.chainBatches,signingAddress:F,actions:r.current.wallet.actions});m(x.scope),await x.validateFunding?.(),m(x.scope);const B=await Ci(r.current.wallet.actions,x.input.chainBatches,x.input.expiresAt);m(x.scope);const M=T.map(({yParity:G,...oe})=>({...oe,...G===void 0?{}:{yParity:G}})),k=Hl(x.input.chainBatches.map(G=>({...G,tokenTransfers:G.tokenTransfers??[]})),M),E={...x.baseAuthorization,executionPlanHash:k},I=Op(E),D=await r.current.wallet.actions.signMessage({raw:I});m(x.scope);const P=typeof D=="string"?D:D.signature,H=Io(x.input.chainBatches),Q={authorization:E,authorizationSignature:P,triggerSpecification:x.input.triggerSpecification,action:{user:F,chainAuthorizations:M,intents:[{mode:"7702",signatureType:"ecdsa",signature:B,nbf:0,exp:Number(x.input.expiresAt),chainBatches:x.input.chainBatches.map((G,oe)=>({hash:H[oe].hash,chainId:G.chainId,tokenTransfers:G.tokenTransfers??[],calls:G.calls}))}]}};return x.request=structuredClone(Q),x.authorizationSignature=P,x.chainAuthorizations=T,x.prepared={...structuredClone(x.prepared),authorization:structuredClone(E),id:Rp(I)},u.current.set(x.prepared,x),d.current.set(x.prepared,x),x.prepared}finally{c.current=!1}},[]),C=se(async v=>{const x=d.current.get(v);if(!x?.request)throw new Error("Sign the prepared conditional intent before registration");m(x.scope);const F=await qe.registerConditionalIntent(x.request);return m(x.scope),F},[]),S=se(async v=>{const x=w(),F=p.current;if(F&&F.scope===x&&F.serviceId===v&&F.expiresAt>Date.now()/1e3+30)return F.token;const T=r.current.wallet.address;if(!T||!r.current.wallet.isReady)throw new Error("Connect a wallet before reading conditional intent status");const B={owner:T,reader:T,serviceId:v,intentId:Hu,expiresAt:BigInt(Math.floor(Date.now()/1e3)+3600),nonce:ul()},M=Dp(B),k=await r.current.wallet.actions.signMessage({raw:M});m(x);const E=typeof k=="string"?k:k.signature,I=await qe.createConditionalReadToken({...B,signature:E});return m(x),p.current={scope:x,serviceId:v,token:I.readToken,expiresAt:I.expiresAt},I.readToken},[w]),b=se(async(v,x)=>{const F=w(),T=await S(x);m(F);const B=await qe.getConditionalIntent(v,T);return m(F),B},[S,w]),A=se(async(v,x)=>{const F=w(),T=await S(v);m(F);const B=await qe.listConditionalIntents(T,x);return m(F),B},[S,w]),O=se(async(v,x)=>{const F=w(),T=r.current.wallet.address;if(!T)throw new Error("Connect a wallet before cancelling a conditional intent");const B={owner:T,serviceId:x,intentId:v,cancellationNonce:ul(),expiresAt:BigInt(Math.floor(Date.now()/1e3)+300)},M=Mp(B),k=await r.current.wallet.actions.signMessage({raw:M});m(F);const E=typeof k=="string"?k:k.signature,I={...B,signature:E},D=await qe.cancelConditionalIntent(v,I);return m(F),D},[w]);return{prepare:g,prepareSwap:h,sign:y,register:C,authorizeRead:S,get:b,list:A,cancel:O}}function r0(e,t=0){const[n,o]=L(t),r=e[n]??e[0],s=ge(()=>r?BigInt(Math.round(r.months*30*24*3600)):0n,[r?.months]);return{selectedDurationIdx:n,setSelectedDurationIdx:o,selectedDuration:r,durationSeconds:s}}function s0(e){const t=an(_t),n=t?.embeddedWalletAddress,o=e?.enabled===!1?void 0:n,r=t?.network?{network:t.network,pollIntervalMs:e?.pollIntervalMs,chainIds:e?.chainIds??t.supportedChainIds,discoverWalletBalances:e?.discoverWalletBalances}:void 0;return{...Mu(o,r),embeddedWalletAddress:n}}function a0(){const{actions:e,isReady:t,isAuthenticated:n}=Eo(),o=an(_t)?.embeddedWalletAddress,r=j(!1),s=j(0),a=j(null),i=j(e),[l,c]=L(0);i.current=e,ue(()=>{r.current=!1,s.current=0,a.current&&(clearTimeout(a.current),a.current=null)},[o]),ue(()=>{if(!o||!t||!n||r.current)return;r.current=!0;let u=!1;return(async()=>{await wo(2e3);try{await kp(o,i.current.signMessage),s.current=0}catch(d){console.warn("[SmartWallet] Registration failed:",d),r.current=!1,!u&&s.current<3&&(s.current+=1,a.current=setTimeout(()=>{c(p=>p+1)},5e3))}})(),()=>{u=!0,a.current&&(clearTimeout(a.current),a.current=null)}},[o,t,n,l])}function i0(){const e=an(_t),t=(e?.mode??"7702")==="7702"?"embedded":"external",n=e?.setMode,o=se(r=>n?.(r==="embedded"?"7702":"ondemand"),[n]);return{mode:t,setMode:o,ownerAddress:t==="embedded"?e?.embeddedWalletAddress:e?.externalWalletAddress,embeddedAddress:e?.embeddedWalletAddress,externalAddress:e?.externalWalletAddress,isUserWhitelisted:e?.isUserWhitelisted??null,isWhitelistChecking:e?.isWhitelistChecking??!1,isWhitelistGateActive:e?.isWhitelistGateActive??!1,whitelistCheck:e?.whitelistCheck}}function l0({amount:e,enabled:t=!0,...n}){const o=an(_t),[r,s]=L(null);ue(()=>{s(c=>c&&c.amount!==e?{...c,amount:e}:c)},[e]);const a=ge(()=>{if(!r)return null;const c=r.asset,u=c.location??(c._source==="spice"?"rollup":c._fundingWallet??((o?.mode??"7702")==="7702"?"embedded":"external"));return{...r,asset:{...c,location:u,owner:c.owner??(u==="external"?o?.externalWalletAddress:o?.embeddedWalletAddress),...c._wrapFromNative?{address:jt,isNative:!0,positionId:void 0}:{}}}},[r,o?.mode,o?.embeddedWalletAddress,o?.externalWalletAddress]),i=Ss({...n,enabled:t,selectedAsset:a,paymentAmount:n.amountDirection==="output"?e:void 0}),l=se(c=>s({asset:c,amount:e}),[e]);return{sources:i.assets.selectable,getAvailableBalance:i.assets.getAvailableBalance,availableBalance:i.amount.availableBalance,selectedAsset:i.selectedAsset,setSelectedAsset:s,selectAsset:l,quote:{isQuoting:i.quote.isQuoting,error:i.quote.quoteError,estimatedInput:i.quote.estimatedInput,estimatedOutput:i.quote.estimatedOutput,estimatedMinOutput:i.fees.destinationAmount===void 0||!n.destinationToken?null:De(i.fees.destinationAmount,n.destinationToken.decimals),isDirect:i.quote.isDirect,needsSwap:i.quote.needsSwap},feePreview:i.fees.preview,isFeePreviewLoading:i.fees.isLoading,feePreviewError:i.fees.error||i.status.error,canSubmit:i.canExecute,execute:i.submit,isExecuting:i.status.isExecuting,step:i.status.step,statusMsg:i.status.statusMsg,status:i.status,txHash:i.status.txHash,refreshAssets:i.assets.refreshSpiceAssets,resolveMaxAmount:i.resolveMaxAmount,retryFinalization:i.retryFinalization,refreshStatus:i.refreshStatus}}function c0(e){const t=Eo(),n=an(_t),o=Dr(),r=j(o);r.current=o;const[s,a]=L({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),[i,l]=L(!1),c=j(void 0),u=j(e?.combineSourceBalances);u.current=e?.combineSourceBalances;const d=j({wallet:t,provider:n});d.current={wallet:t,provider:n};const p=j(!1),w=j(!1),m=j(null),g=j(!0),h=j(0),y=JSON.stringify([t.address,t.isReady,t.isAuthenticated,t.isConnected,qe.getBaseUrl(),n?.rpcOverrides,n?.provider,n?.network,n?.mode,n?.allowedTokens,n?.isWhitelistGateActive]),C=j(y);C.current!==y&&(C.current=y,h.current++),To(()=>(g.current=!0,()=>{g.current=!1,h.current++,m.current?.abort()}),[]),To(()=>(l(!1),c.current=void 0,a({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),()=>{m.current?.abort()}),[y]);const S=j(new WeakMap),b=j(new WeakMap),A=()=>{if(!g.current)throw new Error("Order hook is no longer mounted");if(!d.current.wallet.isReady||!d.current.wallet.isAuthenticated||!d.current.wallet.isConnected||d.current.provider?.isWhitelistGateActive)throw new Error("Connect the current wallet before continuing the order");return JSON.stringify([h.current,d.current.wallet.address,d.current.wallet.isReady,d.current.wallet.isAuthenticated,d.current.wallet.isConnected,qe.getBaseUrl(),d.current.provider?.rpcOverrides,d.current.provider?.provider,d.current.provider?.network,d.current.provider?.mode,d.current.provider?.allowedTokens,d.current.provider?.isWhitelistGateActive])},O=se(async k=>{const E=A(),I=c.current;l(!1);const D=await qe.supportsAutomaticContinuation();if(A()!==E||c.current!==I||w.current)return!1;if(I?.outcomePending==="registration"){const Q=await qe.getLimitOrder(Mi(I.request));if(A()!==E)return!1;if(Q.id!==Mi(I.request)||!ee(Q.user,I.request.user)||Q.chainId!==I.input.chainId||!ee(Q.tokenIn,I.input.tokenIn)||!ee(Q.tokenOut,I.input.tokenOut)||Q.minimumOutput!==I.input.minimumOutput.toString())throw new Error("The original order registration could not be verified");return I.resolvedOrder=Q,I.placement=void 0,I.outcomePending=void 0,a({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),l(!0),!0}if(I?.outcomePending==="funding"){if(!I.fundingActionId&&I.fundingSubmissionKey){const G=await qe.getActionBySubmission(I.request.user,I.fundingSubmissionKey);if(A()!==E)return!1;I.fundingActionId=G?.actionId}if(!I.fundingActionId)return a(G=>({...G,pending:!0})),!1;const Q=await qe.getIntentRecoveryStatus(I.fundingActionId,0);if(A()!==E)return!1;if(Q==="unresolved")return a(G=>({...G,pending:!0})),!1;if(Q==="completed"){I.fundingCompleted=!0;const G=await Vo(I.request.user,I.input.chainId,I.input.tokenIn);if(A()!==E)return!1;if(G.available<I.input.grossAmount)return a(oe=>({...oe,pending:!0})),!1;I.placement=void 0}I.outcomePending=void 0}const P=D?k??await qe.getWalletActions(d.current.wallet.address,{pendingOnly:!0}):[];if(A()!==E||w.current||c.current!==I)return!1;let H=!1;for(const Q of P){if(Q.intents.length!==1){H=!0;break}const G=await qe.getIntentRecoveryStatus(Q.actionId,0);if(A()!==E)return!1;if(G==="unresolved"){H=!0;break}}return a(Q=>({...Q,pending:H,message:H?"A previous transaction is still pending":Q.message})),l(!H),!H},[]),v=se(()=>O(),[O]),x=ia(t.address,s.pending&&t.isReady&&t.isAuthenticated&&t.isConnected,{pendingOnly:!0});ue(()=>{if(!s.pending||x.loading||x.error||!x.updatedAt)return;const k=h.current;O(x.actions).catch(()=>{g.current&&h.current===k&&l(!1)})},[x.revision,x.loading,x.error,s.pending,O]),ue(()=>{if(!t.address||!t.isReady||!t.isAuthenticated||!t.isConnected||n?.isWhitelistGateActive)return;const k=h.current;v().catch(()=>{g.current&&h.current===k&&(l(!1),a(E=>({...E,pending:!0,message:"Previous transaction status is unavailable"})))})},[y,v]);const F=se(async k=>{if(w.current||c.current?.outcomePending)throw new Error("Resolve the previous order before preparing another");const E=A(),I=u.current===!0;if(k=structuredClone(k),!await v())throw new Error("Resolve the previous transaction before preparing another order");if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");const D=Gl(crypto.getRandomValues(new Uint8Array(32))),P=d.current.wallet.address;if(!P)throw new Error("Connect a wallet before preparing an order");if(d.current.provider?.mode!=="7702")throw new Error("Limit orders require the 7702 wallet mode");if(!qa(k.chainId,d.current.provider?.rpcOverrides))throw new Error(`No RPC is available for order chain ${k.chainId}`);const H=Date.now();if(!Number.isSafeInteger(k.expiresAt)||k.expiresAt<=Math.floor(H/1e3)||k.expiresAt>Math.floor(H/1e3)+30*86400||k.grossAmount<=0n||k.minimumOutput<=0n)throw new Error("Enter a positive amount, minimum output and expiry within 30 days");const Q=await Vo(P,k.chainId,k.tokenIn);if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");let G;const oe=k.grossAmount;if(I&&Q.available<oe){if(!await qe.supportsAutomaticContinuation())throw new Error("Automatic order funding requires backend recovery support");const be=Xt(k.tokenIn,k.chainId);if(!be)throw new Error("Automatic order funding requires a supported escrow token");const fe=Ct(k.chainId,d.current.provider?.rpcOverrides),xe=Fe(k.tokenIn)?await fe.getBalance({address:P}):await fe.readContract({address:k.tokenIn,abi:lt,functionName:"balanceOf",args:[P]}),te={address:k.tokenIn,chainId:k.chainId,owner:P,location:"embedded",_source:"wallet",_fundingWallet:"embedded",decimals:be.decimals,symbol:be.symbol,name:be.name,balance:xe,balanceFormatted:Number(De(xe,be.decimals)),balanceUsd:0,isNative:Fe(k.tokenIn)},K=So(te,"spend-source",d.current.provider??{},{address:k.tokenIn,chainId:k.chainId},void 0,{requiresEscrow:!0});if(!K.eligible)throw new Error(K.reason??"Order funding is unavailable");const le=oe-Q.available;if(xe<le)throw new Error("Cash does not cover the limit order budget");const N=await Ra({address:P,escrowOnly:!0,requireSimulation:!0,depositQuote:{asset:te,amount:le,token:k.tokenIn,chainId:k.chainId}});if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");if(N.fee<0n||N.fee>=le||N.net!==le-N.fee)throw new Error("Cash amount does not cover the order funding fee");G={source:te,sourceSpendCap:le,depositAmount:N.net,feeAmount:N.fee},k.grossAmount=oe-N.fee}const $=k.venue??Xs;if(!($.chainIds??[8453]).includes(k.chainId))throw new Error("Venue does not support the destination chain");const V=as($);let re=k.grossAmount,X=0n,he=0n;for(let be=0;be<5;be++){const fe=await V.resolve({type:"swap",tokenIn:k.tokenIn,tokenOut:k.tokenOut,amountIn:re},k.chainId,P);if(!fe)throw new Error("No supported route for this order");const xe=fe.calls.find(de=>ee(de.to,$.swapRouter));if(!xe)throw new Error("Order route is missing its swap");const{path:te}=Zn({abi:br,data:xe.data}).args[0],K=Bm({user:P,chainId:k.chainId,tokenIn:k.tokenIn,router:$.swapRouter,path:te,grossAmount:k.grossAmount,amountIn:re,minimumOutput:k.minimumOutput,expiresAt:k.expiresAt,platformFee:X,gasBridgeFee:he,requestTimestampMs:H,requestNonce:D});if(K.intents[0].mode!=="7702")throw new Error("Unsupported order mode");const le=structuredClone(K),N=le.intents[0];if(N.mode!=="7702")throw new Error("Unsupported order mode");const Le=ca(N.chainBatches,P);Le[1].calls=fe.calls;const Te=Io(Le);N.chainBatches=Le.map((de,J)=>({...N.chainBatches[J],calls:de.calls,hash:Te[J].hash}));const z=(await qe.estimateActionFees(le)).intents[0]?.batches.find(de=>de.chainId===k.chainId);if(!z)throw new Error("Order fee quote is unavailable");const q=Lo(z),ne=k.grossAmount-q.totalFee;if(ne<=0n)throw new Error("Cash amount does not cover order fees");if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");if(ne===re&&X===q.spicenetFee&&he===q.gasFee+q.bridgeFee){const de={user:P,request:K,amountIn:re,minimumOutput:k.minimumOutput,feeAmount:q.totalFee,grossAmount:k.grossAmount,funding:G,path:te};return S.current.set(de,{scope:E,request:structuredClone(K),input:structuredClone(k),cashAmount:Q.available,combineSourceBalances:I,funding:G&&structuredClone(G)}),de}re=ne,X=q.spicenetFee,he=q.gasFee+q.bridgeFee}throw new Error("Order fees did not converge; prepare the order again")},[]),T=se(async k=>{if(p.current)throw new Error("An order signature is already in progress");const E=S.current.get(k),I=E?.scope,D=()=>{if(!I||A()!==I||!ee(d.current.wallet.address,E?.request.user))throw new Error("Prepare the order again for the current wallet and provider")};D();const P=structuredClone(E.request),H=P.intents[0];if(H.mode!=="7702"||H.exp<=Date.now()/1e3)throw new Error("Order expired before signing");p.current=!0;try{const Q=d.current.wallet.actions;if(P.chainAuthorizations=await Ii({chainBatches:H.chainBatches,signingAddress:P.user,actions:Q,beforeSign:async()=>D()}),D(),H.signature=await Ci(Q,H.chainBatches,BigInt(H.exp)),D(),H.exp<=Date.now()/1e3)throw new Error("Order expired during signing");return b.current.set(P,{scope:I,request:structuredClone(P),input:E.input,cashAmount:E.cashAmount,combineSourceBalances:E.combineSourceBalances,funding:E.funding}),P}finally{p.current=!1}},[]),B=se(async k=>{const E=A(),{signature:I}=await d.current.wallet.actions.signMessage(Tm(k));if(A()!==E)throw new Error("Wallet or provider changed during cancellation");return qe.cancelLimitOrder(k,I)},[]),M=se(k=>{const E=b.current.get(k);if(!E||A()!==E.scope)throw new Error("Sign the order for the current wallet and provider before placing it");if(E.placement)return E.placement;if(E.resolvedOrder)return Promise.resolve(E.resolvedOrder);if(E.outcomePending)throw new Error("The original order outcome is still pending");if(w.current)throw new Error("An order placement is already in progress");const I=E.request.intents[0],D=()=>{if(A()!==E.scope)throw new Error("Wallet or provider changed during order placement");if(I.mode!=="7702"||I.exp<=Date.now()/1e3)throw new Error("Order expired before placement")};D(),w.current=!0,c.current=E;const P=new AbortController;m.current=P;let H=!1;E.placement=(async()=>{a({step:"placing",isExecuting:!0,message:"Preparing the limit order\u2026",error:null,pending:!1});let G=!1,oe=E.fundingCompleted===!0,$=!1;try{const V=await Vo(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),E.funding&&!oe){const he=E.funding;if(V.available!==E.cashAmount)throw new Error("Order cash or reservations changed. Review the full order again");const be=async()=>{D();const K=await Vo(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),K.available!==E.cashAmount)throw new Error("Order cash or reservations changed. Review again")},fe=await Ra({address:E.request.user,escrowOnly:!0,requireSimulation:!0,depositQuote:{asset:he.source,amount:he.sourceSpendCap,token:E.input.tokenIn,chainId:E.input.chainId}});if(D(),fe.fee>he.feeAmount)throw new Error("Order funding fees changed. Review again");const xe=[{chainId:E.input.chainId,tokenTransfers:[],calls:cl({escrowAddress:Bo(E.input.chainId),tokenAddress:E.input.tokenIn,isNative:Fe(E.input.tokenIn),amount:he.depositAmount,gasFeeAmount:he.feeAmount})}];a({step:"funding",isExecuting:!0,message:"Funding the limit order\u2026",error:null,pending:!1}),E.fundingSubmissionKey??(E.fundingSubmissionKey=Gl(crypto.getRandomValues(new Uint8Array(32)))),await r.current.execute(xe,E.input.tokenIn,0n,K=>{K.actionId&&(G=!0,E.fundingActionId=K.actionId)},P.signal,{userOverride:E.request.user,idempotencyKey:E.fundingSubmissionKey,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,requireDestinationReceipt:!0,walletFundingRequirement:{chainId:E.input.chainId,token:E.input.tokenIn,amount:he.sourceSpendCap},validateBeforeSubmit:be}),oe=!0,E.fundingCompleted=!0,D(),a({step:"waiting-credit",isExecuting:!0,message:"Waiting for cash credit\u2026",error:null,pending:!1});const te=await $c({deposits:[{chainId:E.input.chainId,token:E.input.tokenIn,amount:he.depositAmount}],baseline:V.entries,fetchEntries:async()=>(D(),Qs(E.request.user)),signal:P.signal});if(D(),!te)throw new Error("Funding was submitted; the order is not placed while cash credit is pending. Check wallet activity before trying again")}const re=await Vo(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),E.combineSourceBalances&&re.available<E.input.grossAmount)throw new Error("Cash is not available for this order. No order was placed");a({step:"placing",isExecuting:!0,message:"Placing the limit order\u2026",error:null,pending:!1}),$=!0;const X=await qe.createLimitOrder(structuredClone(E.request));return D(),E.resolvedOrder=X,a({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),X}catch(V){const re=$&&V instanceof Be&&V.context.httpStatus===400&&V.context.submissionStatus==="rejected";G||(G=V?.context?.submissionStatus==="unknown");const X=V instanceof Error?V:new Error("The order outcome could not be verified"),he=$&&!re?"Order placement could not be verified. Check the order list before placing another order.":G?oe?"Cash funding completed, but the order is not placed. Check available cash and wallet activity before trying again.":"Cash funding could not be verified and no order was placed. Check wallet activity before trying again.":X.message;E.outcomePending=$&&!re?"registration":G||oe?"funding":void 0,H=!$&&!G&&!oe;try{g.current&&A()===E.scope&&a({step:"error",isExecuting:!1,message:he,error:X,pending:!!E.outcomePending})}catch{}throw X}finally{w.current=!1,m.current===P&&(m.current=null)}})();const Q=E.placement;return Q.catch(()=>{H&&E.placement===Q&&(E.placement=void 0)}),Q},[]);return{status:s,canPrepare:i&&!s.pending&&!s.isExecuting&&t.isReady&&t.isAuthenticated&&t.isConnected&&!n?.isWhitelistGateActive,canPlace:k=>{const E=b.current.get(k);try{return!!E&&i&&!s.pending&&A()===E.scope&&E.request.intents[0].mode==="7702"&&E.request.intents[0].exp>Date.now()/1e3&&!E.outcomePending&&!w.current}catch{return!1}},refreshStatus:v,prepareOrder:F,signOrder:T,placeOrder:M,getOrder:k=>qe.getLimitOrder(k),listOrders:k=>{if(!t.address)throw new Error("Connect a wallet to list orders");return qe.listLimitOrders(t.address,k)},cancelOrder:B}}Gp();export{Xs as AERODROME_BASE_CONFIG,bu as AccountDisplay,dl as AddFundsLink,Yh as AssetBalance,zr as AssetSelector,ld as CheckIcon,Mr as ChevronIcon,gs as CloseIcon,di as DEFAULT_LIQUIDITY_VENUES,yo as DetailRow,T0 as NATIVE_TOKEN_ADDRESS,Bi as ProviderLogin,ai as SATSUMA_CITREA_CONFIG,B0 as SPICENET_NATIVE_CHAIN_ID,O0 as SPICE_COMBINED_FEE_RECIPIENT,R0 as SPICE_GAS_FEE_RECIPIENT,Si as SPICE_PLATFORM_FEE_BPS,D0 as SPICE_PLATFORM_FEE_RECIPIENT,M0 as SPICE_SOLVER_ADDRESS,ol as SearchInput,Qg as SelectChainModal,Hg as SpiceAccount,Nu as SpiceDeposit,k0 as SpiceFlowProvider,_t as SpiceFlowProviderContext,Yg as SpiceLock,_g as SpiceSupply,_i as SpiceWithdraw,Be as SpiceflowError,Uo as Spinner,Vn as StatusBanner,ac as UNIV3_ARBITRUM_CONFIG,rc as UNIV3_BASE_CONFIG,sc as UNIV3_ETHEREUM_CONFIG,ic as UNIV3_ROBINHOOD_CONFIG,lc as UNIV3_ROBINHOOD_SUSHI_CONFIG,gc as UNIV4_BASE_CONFIG,wc as UNIV4_ROBINHOOD_CONFIG,Ro as V4_NATIVE_CURRENCY,N0 as applySlippage,ls as areEquivalentOnChains,So as assetCapability,ve as assetPositionId,C0 as buildDarkPalette,I0 as buildLightPalette,hr as buildLiquidityVenues,qr as buildPayChainBatches,ym as buildRoutedBatches,hs as buildSpicenetWithdrawalBatch,wa as buildSupplyChainBatches,P0 as buildUniV3SwapCalls,Hs as calculateBpsFee,pc as createAerodromeExactOutputVenue,as as createAerodromeVenue,vs as createExactOutputRegistry,fc as createLiquidityRegistry,li as createSatsumaExactOutputVenue,is as createSatsumaVenue,li as createUniV3ExactOutputVenue,is as createUniV3Venue,Ac as createUniV4ExactOutputVenue,Sc as createUniV4Venue,za as duration,Fr as easing,ec as encodeUniV3ExactOutputCall,jo as estimateFeePreview,Qm as estimateRequiredGrossFunding,Xm as estimateSupplyMaxAmount,Jd as executePay,Xd as executeSupply,Rr as fetchBalances,Qo as findEquivalentOnChain,tt as font,Br as getAssetChainTokenCandidates,nc as getBestUniV3ExactOutputQuote,tc as getBestUniV3Quote,bt as getChainConfig,W0 as getChainIdsByNetwork,ro as getChainName,U0 as getEscrowContractAddress,oa as isExternalSource,Cs as isMultiSourceFundingAsset,L0 as isNativeToken,S0 as isSpiceflowError,q0 as isSpicenetChainId,ch as isSupportedSupplyAsset,Mi as limitOrderId,z0 as normalizeNativeTokenAddress,Ga as radius,qe as relayerService,so as resolveAssetTokenAddressOnChain,Bc as resolveFundedToken,Is as resolveInputSupplySwapQuote,wm as resolveRoute,A0 as resolveTheme,_l as reverseUniV3Path,Lr as scaleTokenAmount,H0 as spicenetAbi,Q0 as spicenetWithdrawalAbi,po as transition,Fo as useAssetDisplay,e0 as useAssetInput,E0 as useIsUserWhitelisted,r0 as useLockDuration,a0 as useSmartWallet,i0 as useSpiceAccount,l0 as useSpiceAction,ia as useSpiceActionActivity,Vc as useSpiceAssets,sn as useSpiceBrand,o0 as useSpiceConditionalIntents,Dr as useSpiceExecution,yr as useSpiceInventory,c0 as useSpiceLimitOrders,Pu as useSpiceLock,s0 as useSpicePendingDeposits,Ss as useSpiceSupply,cu as useSupplyAssets,fu as useSupplyQuote,tl as useTokenLogo,Eo as useWallet,fs as useWalletBalances,ur as z};
|
|
74
|
+
`})]})},Jg=fo(Xg),$g=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,lockBatches:o,lockTokenSymbol:r,lockTokenLogoURI:s,destinationInputHook:a,sourceAssetInputHook:i,lockDurationHook:l,lockChainId:c,durationOptions:u,votingPowerEstimate:d,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:m,onSubmit:g,onLockSuccess:h,onLockError:y,onLockExecute:C,sourceToDestinationConversionRate:S,onAddFunds:b,buildSpicenetBatch:A,feeFunding:O,combineSourceBalances:v,styles:x,dark:F})=>{const{theme:T,dark:B,primaryColor:M,dk:k}=on(x,F),E=T.typography.fontFamily,I=B?k.cardBg:x?.assetSelector?.backgroundColor||x?.secondaryBackground||"#e9e9e9",D=B?`1px solid ${k.cardBorder}`:"0.5px solid #A8A8A7",P=B?"12px":"6px",H=B?k.textPrimary:"#111827",Q=B?k.textSecondary:"#6b7280",G=we(()=>({...x,assetSelector:{...x?.assetSelector,backgroundColor:B?k.cardBg:x?.assetSelector?.backgroundColor,borderRadius:B?"12px":x?.assetSelector?.borderRadius},secondaryBackground:B?k.cardBg:x?.secondaryBackground}),[x,B]),ne=we(()=>B?{...T,colors:{...T.colors,secondary:k.cardBg,surfaceHover:k.hoverBg,border:k.cardBorder,borderHover:k.inputBorder}}:T,[B,T]),[X,V]=L(null),oe=j(!1);pe(()=>{e||(oe.current=!1)},[e]);const[Y,ge]=L(0),xe=l?.selectedDurationIdx??Y,he=l?.setSelectedDurationIdx??ge,ve=l?.selectedDuration??u[xe]??u[0],_=qu({enabled:e&&!C,selectedAsset:X,lockBatches:o,lockChainId:c,lockTokenSymbol:r,lockTokenLogoURI:s,destinationTokenAddress:p,destinationTokenDecimals:w,beneficiary:m,onSubmit:g,onLockSuccess:h,onLockError:y,buildSpicenetBatch:A,feeFunding:O,combineSourceBalances:v}),K=_.assets.selectable,{isExecuting:ie,step:N,txHash:Le}=_.status,[Te,z]=L(!1),q=Number(X?.amount||"0"),ee=_.quote.isDirect,ce=!ee,Z=_.fees.error,ae=_.fees.isLoading,ze=_.fees.preview,Ie=q>0,Ce={error:_.quote.quoteError,isQuoting:_.quote.isQuoting},tt=C?"Move onLockExecute protocol calls to lockBatches and application updates to onLockSuccess before continuing.":_.metadataError||_.status.error||Z||Ce.error,De=_.canExecute,Me=_.fees.destinationAmount,Pe=Me===void 0?"0":Re(Me,_.destination.decimals),ye=Number(Pe),Ze=ye>0?ye.toLocaleString(void 0,{maximumSignificantDigits:6}):null,ke=K.find(Ke=>Ke.chainId===c&&Ke.address.toLowerCase()===_.destination.address.toLowerCase()),He=ke&&ke.balanceFormatted>0&&ke.balanceUsd>0?ke.balanceUsd/ke.balanceFormatted:S&&S>0?S:null,gt=He===null?null:(ye*He).toFixed(2),Xe=X&&X.asset.balanceFormatted>0&&X.asset.balanceUsd>0?X.asset.balanceUsd/X.asset.balanceFormatted:ee?He:null,ot=Xe===null?void 0:`$${(q*Xe).toFixed(2)}`,Qe=d&&ye>0&&ve?d(ye,ve.months):void 0,fe=re(Ke=>{V(Rt=>({asset:Ke,amount:Rt&&be(Rt.asset)===be(Ke)?Rt.amount:""})),_.retrySupply(),i?.setSelectedAsset({address:Ke.address,symbol:Ke.symbol,decimals:Ke.decimals,chainId:Ke.chainId})},[i?.setSelectedAsset,_.retrySupply]),Oe=re(Ke=>{V(Rt=>Rt&&{...Rt,amount:Ke}),i?.setAssetAmount(Ke),_.retrySupply()},[i?.setAssetAmount,_.retrySupply]);pe(()=>{if(_.capability?.policyExcluded){V(null);return}ie||_.assets.loading||_.assets.refreshing||_.assets.error||V(Ke=>{if(!Ke)return oe.current||!K[0]?null:(oe.current=!0,{asset:K[0],amount:i?.assetAmount??""});const Rt=K.find(lt=>be(lt)===be(Ke.asset));return Rt?Rt===Ke.asset?Ke:{...Ke,asset:Rt}:Ke.asset.balance===0n?Ke:{...Ke,asset:{...Ke.asset,balance:0n,balanceFormatted:0,balanceUsd:0}}})},[K,ie,_.assets.loading,_.assets.refreshing,_.assets.error,_.capability?.policyExcluded]),pe(()=>{a&&(a.setSelectedAsset(_.destination),a.setAssetAmount(Pe))},[_.destination,Pe,a?.setSelectedAsset,a?.setAssetAmount]);const dt=async()=>{z(!0),await _.submitSupply()},Ye=()=>{z(!1),_.retrySupply()},Se=()=>{z(!1),V(null),_.resetAfterSuccess()},Je=R("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[f(rl,{color:Q}),R("p",{style:{fontSize:"13px",color:Q,margin:0,lineHeight:"1.5"},children:["Add ",r," by converting assets from your account"]})]});if(!e)return null;const It={backgroundColor:I,border:D,borderRadius:P,padding:"16px",marginBottom:"16px"};return f(yo,{isOpen:e,onClose:t,title:`Add ${r} to your account`,subtitle:Je,styles:x,dark:B,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"0 24px 8px 24px",position:"relative"},children:[f(ha,{activity:_.status.activity,palette:k,onRefresh:()=>{_.assets.refreshSpiceAssets(),_.assets.refreshWalletAssets()}}),R("div",{style:{marginBottom:"12px"},children:[b&&f("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:f(ml,{onClick:b,color:M,fontFamily:E})}),f("div",{style:{marginTop:"10px",fontSize:"13px",color:Q,fontFamily:E},children:f(zr,{assets:K,selectedAsset:X??void 0,onAssetSelect:fe,onAmountChange:Oe,label:"Amount",showBalance:!0,getAvailableBalance:_.assets.getAvailableBalance,showMaxButton:!0,disabled:ie||_.status.finalizing,maxAmount:X&&_.amount.availableBalance!==void 0?Re(_.amount.availableBalance,X.asset.decimals):void 0,resolveMaxAmount:_.resolveMaxAmount,theme:ne,styles:G})}),f("div",{style:{marginTop:"6px",paddingLeft:"4px",fontSize:"13px",color:Q,fontFamily:E},children:ot})]}),R("div",{style:It,children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"16px",borderBottom:B?`1px solid ${k.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[s?f("img",{src:s,alt:r,style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover"}}):f("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:B?k.inputBg:"#d1d5db",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:700,color:H},children:r.slice(0,2)}),f("span",{style:{fontSize:"16px",fontWeight:600,color:H,fontFamily:E},children:r})]}),R("div",{style:{textAlign:"right"},children:[f("div",{style:{fontSize:"22px",fontWeight:700,color:H,fontFamily:E,lineHeight:1.1},children:Ze??"0.00"}),(!ce||gt!==null)&&R("div",{style:{fontSize:"12px",color:Q,fontFamily:E,marginTop:"2px"},children:["~$",gt??"0.00"]})]})]}),R("div",{style:{paddingTop:"16px",paddingBottom:"16px",borderBottom:B?`1px solid ${k.cardBorder}`:"1px solid #e5e7eb"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[f("span",{style:{fontSize:"15px",fontWeight:500,color:Q,fontFamily:E},children:"Lock Duration"}),f(Mr,{color:Q})]}),f(Jg,{options:u,selectedIndex:xe,onSelect:Ke=>{!ie&&!_.status.finalizing&&he(Ke)},primaryColor:M,dark:B,textPrimary:H,textSecondary:Q})]}),R("div",{style:{paddingTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:[f(zu,{label:"Estimated Lock Expiry",value:ve?.months!==void 0?Yg(ve.months):"\u2014",fontFamily:E,dark:B,textPrimary:H,textSecondary:Q}),d&&f(zu,{label:"Estimated voting power",value:Qe!==void 0?`${Qe} votes/epoch`:"\u2014",fontFamily:E,dark:B,textPrimary:H,textSecondary:Q})]})]}),Ie&&f(ul,{fontFamily:E,textPrimary:H,textSecondary:Q,cardBg:I,cardBorder:D,resolvedDark:B,darkCardBorder:k.cardBorder,primaryColor:M,feePreview:ze,asset:X?.asset,directExecutionFeeNote:_.flags.directExecutionFeeNote,isLoading:ae||Ce.isQuoting,errorText:Z}),_.status.finalizationError&&f(Vt,{onClick:_.retryFinalization,disabled:_.status.finalizing,children:"Retry application update"}),tt&&f(Hn,{variant:"error",palette:k,fontFamily:E,style:{marginBottom:"12px"},children:tt}),f(Vt,{variant:"outline",fullWidth:!0,onClick:()=>{Ce.error?_.retrySupply():dt()},disabled:ie||!De&&!Ce.error,loading:ie,dark:B,styles:{...x,button:{...x?.button,backgroundColor:M}},children:ie?ee?"LOCKING...":"CONVERTING...":Ce.error?"RETRY QUOTE":Ce.isQuoting?"GETTING SWAP QUOTE...":ae&&Ie?"CALCULATING FEES...":ee?`LOCK ${r}`:`CONVERT TO ${r}`}),Te&&!_.status.finalizationError&&(N==="success"||N==="error"||ie)&&f(Ni,{type:"lock",isOpen:!ie,isProcessing:ie,closeOnComplete:!1,chainId:c,showStepBreakdown:!1,onRetryTx:Ye,onNewTx:Se,onClose:()=>z(!1),onComplete:Se,results:N==="success"||N==="error"?[{asset:{symbol:r,address:_.destination.address},txHash:Le??"",success:N==="success",error:tt??void 0,amount:X?.amount}]:void 0,theme:T,styles:x,dark:B})]})})},_g=({variant:e,destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:s,textPrimary:a,textSecondary:i,cardBg:l,cardBorder:c,dk:u,dark:d,isQuoting:p,quoteError:w,estimatedOutput:m,paymentAmount:g,needsSwap:h,exactOutputSwap:y,adjustable:C=!1,maxAmount:S,onAmountChange:b})=>e==="supply"?R("div",{style:{backgroundColor:l,border:`1px solid ${c}`,borderRadius:d?"8px":"7px",padding:"14px 16px 12px 16px",marginBottom:"16px",minHeight:"112px",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"12px"},children:[R("div",{style:{minWidth:0},children:[f("span",{style:{fontFamily:s,fontSize:"17px",fontWeight:500,color:d?"#a7abb2":"#7D7C7B",lineHeight:"24px"},children:"Used in TX"}),f("div",{style:{fontSize:"12px",fontWeight:500,color:i,fontFamily:s,marginTop:"10px"},children:"Net amount after swap and fees"})]}),R("div",{style:{textAlign:"right",minWidth:0,display:"inline-flex",alignItems:"center",gap:"8px",border:`1px solid ${c}`,borderRadius:"8px",padding:"8px 10px",minHeight:"42px"},children:[f(Qu,{symbol:t,logoURI:n,primaryColor:r,size:24}),f("span",{style:{fontSize:"16px",fontWeight:500,color:d?"#f3f4f6":"#3C3E42",lineHeight:"1.3",fontFamily:s,letterSpacing:0},children:t})]})]}),f("div",{style:{textAlign:"right",minWidth:0},children:p?f("span",{style:{fontSize:"18px",color:i,fontFamily:s},children:"Quoting..."}):w?f("span",{style:{fontSize:"13px",color:d?"#f87171":"#dc2626",fontFamily:s},children:"Quote failed"}):m?f(br,{value:m,title:m,fontFamily:s,color:a,lineHeight:"0.95",textAlign:"right",maxFontSize:32,minFontSize:18}):f("span",{style:{fontSize:"20px",color:i,fontFamily:s},children:"\u2014"})})]}):f(e0,{destinationSymbol:t,destinationLogoURI:n,destinationDecimals:o,primaryColor:r,fontFamily:s,textPrimary:a,textSecondary:i,cardBg:l,cardBorder:c,dk:u,dark:d,paymentAmount:g||"0",needsSwap:h,exactOutputSwap:y,isQuoting:p,adjustable:C,maxAmount:S,onAmountChange:b}),Hu=fo(_g),Qu=({symbol:e,logoURI:t,primaryColor:n,size:o})=>t?f("img",{src:t,alt:e,style:{width:o,height:o,borderRadius:"50%",objectFit:"cover"}}):f("div",{style:{width:o,height:o,borderRadius:"50%",backgroundColor:`${n}22`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:o<30?"11px":"12px",fontWeight:700,color:n},children:e.slice(0,2)}),e0=({destinationSymbol:e,destinationLogoURI:t,destinationDecimals:n,primaryColor:o,fontFamily:r,textPrimary:s,textSecondary:a,cardBg:i,cardBorder:l,dk:c,dark:u,paymentAmount:d,needsSwap:p,exactOutputSwap:w,isQuoting:m,adjustable:g,maxAmount:h,onAmountChange:y})=>{const C=nt.mono,S=parseFloat(d||"0"),b=h?parseFloat(h):0,[A,O]=L(d||""),v=j(null),[x,F]=L(null),[T,B]=L(null);pe(()=>{g||O(d||"")},[d,g]);const M=I=>{let D=I;D.startsWith(".")&&(D="0"+D);const P=Ks(D);let H=P;h&&parseFloat(P)>parseFloat(h)&&(H=h),O(H),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>y?.(H),300)},k=I=>{if(!b)return;if(I===100){O(h||b.toString()),v.current&&clearTimeout(v.current),y?.(h||b.toString());return}const D=10**n,P=Math.floor(b*I/100*D)/D,H=Sp(P,n);O(H),v.current&&clearTimeout(v.current),y?.(H)},E=b>0?parseFloat(A||"0")/b*100:0;return pe(()=>()=>{v.current&&clearTimeout(v.current)},[]),R("div",{style:{backgroundColor:i,border:`1px solid ${l}`,borderRadius:u?"12px":"6px",padding:"16px",marginBottom:"16px"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[f(Qu,{symbol:e,logoURI:t,primaryColor:o,size:32}),R("div",{children:[f("span",{style:{fontSize:"14px",fontWeight:600,color:s,fontFamily:r},children:"Payment"}),f("div",{style:{fontSize:"12px",color:a,fontFamily:r,marginTop:"2px"},children:e})]})]}),R("div",{style:{textAlign:"right"},children:[g?f(br,{element:"input",ariaLabel:`${e} amount`,dataSpiceflowFocus:!0,value:A,onChange:I=>M(I.target.value),placeholder:"0.0",fontFamily:C,color:s,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12,style:{width:"120px"}}):f(br,{element:"div",value:S>0?d:"0.00",title:S>0?d:"0.00",fontFamily:C,color:s,lineHeight:1.1,textAlign:"right",maxFontSize:20,minFontSize:12}),f("div",{style:{fontSize:"12px",color:a,fontFamily:C,marginTop:"2px"},children:e}),g&&b>0&&f("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"10px",marginTop:"6px"},children:[0,25,50,75,100].map((I,D)=>{const P=Math.abs(E-I)<1,H=D===4,Q=x===I,G=T===I;return f("button",{onClick:()=>k(I),onMouseEnter:()=>F(I),onMouseLeave:()=>{F(null),B(null)},onMouseDown:()=>B(I),onMouseUp:()=>B(null),title:`${I}%`,style:{width:"14px",height:"14px",padding:0,border:"none",backgroundColor:"transparent",cursor:"pointer",opacity:P?1:Q?.8:.5,transform:G?"scale(0.85)":Q?"scale(1.15)":"scale(1)",transition:uo.interactive},children:f(tl,{pct:I,isMax:H,primaryColor:o,dark:u,fillColor:u?c?.textSecondary||"#9ca3af":"#3C3E42"})},I)})})]})]}),p&&w&&!m&&f("div",{style:{marginTop:"12px",paddingTop:"12px",borderTop:u?`1px solid ${c?.cardBorder||l}`:"1px solid #e5e7eb",display:"flex",justifyContent:"flex-end"},children:R("span",{style:{fontSize:"11px",color:a,fontFamily:r,opacity:.7},children:["via ",w.venue]})})]})},Vu={idle:"",building:"Preparing transaction...","signing-delegation":"Signing delegation...","signing-intent":"Signing intent...",submitting:"Submitting transaction...",executing:"Executing on-chain...",success:"Deposit confirmed",error:"Transaction failed"},ju=["building","signing-delegation","signing-intent","submitting","executing"],t0=({step:e,statusMsg:t,txHash:n,explorerUrl:o,currentStepIdx:r,palette:s,cardBg:a,cardBorder:i,textPrimary:l,textSecondary:c,fontFamily:u,primaryColor:d,onRetry:p})=>R("div",{style:{padding:"10px 14px",borderRadius:"7px",marginBottom:"16px",backgroundColor:e==="success"?a:e==="error"?s.errorBg:a,border:`1px solid ${e==="success"?i:e==="error"?s.errorBorder:i}`},children:[R("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e==="success"?f("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:f("path",{d:"M5 13l4 4L19 7",stroke:s.successText,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="error"?f("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0},children:f("path",{d:"M18 6L6 18M6 6l12 12",stroke:s.errorText,strokeWidth:"2.5",strokeLinecap:"round"})}):f(zo,{size:14,color:d}),f("span",{style:{fontSize:"13px",fontWeight:500,color:e==="success"?l:e==="error"?s.errorText:l,fontFamily:u,flex:1},children:e==="success"?"Deposit confirmed":e==="error"?t||"Transaction failed":t||Vu[e]}),e==="success"&&n&&f("a",{href:`${o}/tx/${n}`,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"12px",color:d,fontFamily:u,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:"View tx \u2192"}),e==="error"&&f("button",{onClick:p,style:{background:"none",border:"none",fontSize:"12px",color:d,fontFamily:u,cursor:"pointer",padding:0,whiteSpace:"nowrap",flexShrink:0},children:"Retry \u2192"})]}),r>=0&&e!=="success"&&e!=="error"&&f("div",{style:{marginTop:"8px",height:"3px",borderRadius:"2px",backgroundColor:`${c}22`,overflow:"hidden"},children:f("div",{style:{height:"100%",width:"100%",borderRadius:"2px",backgroundColor:d,transformOrigin:"left center",transform:`scaleX(${(r+1)/ju.length})`,transition:"transform 400ms ease"}})})]}),n0=()=>{},o0=({isOpen:e,onClose:t,closeOnBackdropClick:n=!1,destinationToken:o,sourceChains:r,supportedSourceAssets:s,additionalSourceTokens:a,includeExternalWalletAssets:i,includeCrossChainEmbeddedAssets:l,combineSourceBalances:c,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:m,feeFunding:g,feeFundingReserve:h,maxSlippage:y,resolveInputSwap:C,buildActionCalls:S,feeExecutionMode:b="user-transfer",buildSpicenetBatch:A,onPayExecute:O,resolveExactOutputSwap:v,actionLabel:x,amountDirection:F=p?"output":u?"input-inclusive":"input",swapDescription:T,directDescription:B,paymentAmount:M,amountInputMode:k="fixed",maxPaymentAmount:E,onAmountChange:I,styles:D,dark:P,title:H,subtitle:Q,onAddFunds:G,onSubmit:ne,beforeSubmit:X,submitDisabled:V,onStateChange:oe,onSuccess:Y,onError:ge})=>{const xe=F==="output",he=To(),ve=F==="input-inclusive",{theme:_,dark:K,primaryColor:ie,dk:N,palette:Le,fontFamily:Te,monoFont:z,inputDark:q,cardBg:ee,cardBorder:ce,textPrimary:Z,textSecondary:ae,subtitleText:ze}=on(D,P),Ie=we(()=>q?{..._,colors:{..._.colors,secondary:N.cardBg,surfaceHover:N.hoverBg,border:"#2d2d2d",borderHover:"#3a3a3a"}}:_,[q,_,N.cardBg,N.hoverBg]),Ce=Sa(o,e),tt=Ce.token??Aa,De=we(()=>tt.logoURI?tt:{...tt,logoURI:xi[tt.symbol.toUpperCase()]},[tt]),Me=De.chainId,Pe=Sa(u?.token,e&&!!u).token,[ye,Ze]=L(null),[ke,He]=L(M||""),gt=k==="adjustable"?ke:M||"0",Xe=M?.trim(),ot=xe&&k==="fixed"&&Xe!==void 0&&Xe!==""&&parseFloat(gt||"0")===0,{operationKey:Qe,feeQuote:fe,selectedAsset:Oe,capability:dt,retryFinalization:Ye,refreshStatus:Se,assets:{selectable:Je,loading:It,refreshing:Ke,error:Rt,getAvailableBalance:lt},quote:{isQuoting:ut,quoteError:pt,estimatedOutput:Et,exactOutputSwap:_t,isDirect:Ct,needsSwap:at,pivot:Wt},fees:{preview:Ut,isLoading:$,error:Lt},amount:{sourceRequiredAmount:$e,parsed:wt,isInsufficientBalance:In,availableBalance:pn},status:{activity:Ue,pending:Pt,recoveryChecking:qt,recoveryError:jt,actionId:Bt,intentId:Rn,autoContinue:So,submissionStatus:Zn,idempotencyKey:fn,user:ao,finalizationError:Qn,finalizing:mn,step:St,statusMsg:en,txHash:Xn,isExecuting:Dt,error:Zt,showStatusPanel:_e,paymentResult:zt},flags:{directExecutionFeeNote:Un},canExecute:ln,submitSupply:Bn,retrySupply:Ln,dismissPaymentStatus:Dn,submitPay:On,resolveMaxAmount:hn,max:qn,resetAfterSuccess:et,resetPaymentState:Jn}=As({enabled:e,destinationToken:Ce.token&&De,selectedAsset:u?null:ye,paymentAmount:gt,amountDirection:F,sourceChains:r,supportedSourceAssets:s,additionalSourceTokens:a,includeExternalWalletAssets:i,includeCrossChainEmbeddedAssets:l,combineSourceBalances:c,fundingSources:u,recipient:d,feeOnlyAction:p,actionInput:w,actionProceeds:m,feeFunding:g,feeFundingReserve:h,maxSlippage:y,resolveInputSwap:C,buildActionCalls:S,feeExecutionMode:b,buildSpicenetBatch:A,onPayExecute:O,resolveExactOutputSwap:v,isZeroAmountPay:ot,onSubmit:ne,beforeSubmit:X,submitDisabled:V,onSuccess:Y,onError:ge}),$n=we(()=>({operationKey:Qe,feeQuote:fe,selectedAsset:Oe,canExecute:ln&&!V,isExecuting:Dt,finalizing:mn,finalizationError:Qn,feePreview:Ut,txHash:Xn,error:Zt,statusStep:St,statusMsg:en,pending:Pt,recoveryChecking:qt,recoveryError:jt,actionId:Bt,intentId:Rn,autoContinue:So,submissionStatus:Zn,idempotencyKey:fn,user:ao,refreshStatus:Se}),[Qe,fe,Oe,ln,V,Dt,mn,Qn,Ut,Xn,Zt,St,en,Pt,qt,jt,Bt,Rn,So,Zn,fn,ao,Se]),Mn=ko.useRef(oe);Mn.current=oe,pe(()=>{Mn.current?.($n)},[$n]);const Xo=!!p||(!!u||!!ye?.asset)&&wt>0,bo=Ce.error||Zt,ue=Qn?f(Vt,{onClick:Ye,disabled:mn,children:"Retry application update"}):null,de=Pt||qt||jt?R(Hn,{variant:"info",palette:Le,fontFamily:Te,children:[qt?"Checking transaction status...":jt?"Transaction status is unavailable.":"Your transaction is pending.",f(Vt,{onClick:()=>{Se()},disabled:qt,children:"Check status"})]}):null;pe(()=>{e||(Ze(null),k==="adjustable"&&He(M||""))},[e]),pe(()=>{if(dt?.policyExcluded){Ze(null);return}if(Dt||It||Ke||Rt||!ye)return;const mt=Je.find(Jt=>be(Jt)===be(ye.asset));mt&&mt!==ye.asset?Ze({...ye,asset:mt}):!mt&&ye.asset.balance>0n&&Ze({...ye,asset:{...ye.asset,balance:0n,balanceFormatted:0,balanceUsd:0}})},[Je,It,Ke,Rt,Dt,dt?.policyExcluded]);const rt=re(mt=>{Ze(Jt=>({asset:mt,amount:Jt?.asset&&be(Jt.asset)===be(mt)&&Jt.amount||""}))},[]),Ot=re(mt=>{Ze(Jt=>Jt&&{...Jt,amount:mt})},[]),We=re(mt=>{let Jt=mt;E&&parseFloat(Jt)>parseFloat(E)&&(Jt=E),He(Jt),I?.(Jt)},[E,I]),Xt=re(()=>{Jn(),Ze(null)},[Jn]),Gt=Ct?B||`Your ${De.symbol} will be used directly.`:T||"Your assets will be swapped and used in a single atomic transaction.",rn=(Me?xt(Me):void 0)?.viemChain?.blockExplorers?.default?.url??"",cn=ju.indexOf(St),sn=qt?"CHECKING STATUS...":Pt?"TRANSACTION PENDING":Dt?(Vu[St]||"EXECUTING...").toUpperCase():St==="success"?"DONE":In?"INSUFFICIENT BALANCE":(at||Wt)&&pt&&!ut?"QUOTE ERROR":x.toUpperCase(),gn=we(()=>{if(qt)return"CHECKING STATUS...";if(Pt)return"TRANSACTION PENDING";if(zt?.status==="success")return"DONE";if(Dt)return"PAYING...";if(In&&ye?.asset)return`INSUFFICIENT ${he(ye.asset).symbol}`;if((at||Wt)&&pt&&!ut)return"QUOTE ERROR";if(x)return x.toUpperCase();const mt=wt>0?` ${gt} ${De.symbol}`:"";return at?`SWAP & PAY${mt}`:`PAY${mt}`},[Dt,In,ye,x,he,wt,gt,De.symbol,at,pt,ut,zt?.status,Pt,qt]),wn=St==="success"?()=>{et(),Ze(null)}:Bn,Nn=St==="success"?!1:!!V||!ln;if(!e)return null;const kt=xe?H||`Pay ${De.symbol}`:x,Sn=xe?Q:R("div",{style:{display:"flex",alignItems:"flex-start",gap:"3px"},children:[f("span",{style:{marginTop:"3px",flexShrink:0},children:f(rl,{color:ze})}),f("p",{style:{fontSize:"12px",color:ze,margin:0,lineHeight:"1.4",fontFamily:Te},children:Gt})]}),yn={...D,button:{...D?.button,backgroundColor:ie}},Ao=Xo&&f(ul,{fontFamily:Te,textPrimary:Z,textSecondary:ae,cardBg:ee,cardBorder:ce,resolvedDark:K,darkCardBorder:N.cardBorder,primaryColor:ie,feePreview:Ut,feeOnlyAction:p,asset:ye?.asset,isLoading:$,errorText:Lt,directExecutionFeeNote:Un});if(xe){const mt=zt&&(zt.status==="success"||zt.status==="failed")?[{asset:{symbol:ye?.asset?he(ye.asset).symbol:De.symbol,address:ye?.asset?.address||""},amount:gt,txHash:zt.txHash||"",success:zt.status==="success",error:zt.status==="failed"?zt.error:void 0}]:void 0;return f(yo,{isOpen:e,onClose:t,title:kt,subtitle:Sn,styles:D,dark:K,footerLinkText:"Spicenet accounts \u2192",closeOnBackdropClick:n,children:R("div",{style:{padding:"16px 24px 8px 24px",position:"relative"},children:[f(ha,{activity:Ue,palette:N}),G&&f("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"6px"},children:f(ml,{onClick:G,color:ie,fontFamily:Te})}),!ot&&f("div",{style:{marginBottom:"12px"},children:f(zr,{assets:Je,selectedAsset:ye??void 0,disabled:Dt,onAssetSelect:rt,onAmountChange:n0,label:"Pay with",showBalance:!0,getAvailableBalance:lt,showMaxButton:!1,hideAmountInput:!0,displayAmount:ye&&$e!==null?Re($e,ye.asset.decimals):ye?"...":void 0,dark:K,theme:Ie,styles:D})}),!p&&f(Hu,{variant:"pay",destinationSymbol:De.symbol,destinationLogoURI:De.logoURI,destinationDecimals:De.decimals,primaryColor:ie,fontFamily:Te,textPrimary:Z,textSecondary:ae,cardBg:ee,cardBorder:ce,dk:N,dark:K,isQuoting:ut,quoteError:pt,estimatedOutput:Et,paymentAmount:gt,needsSwap:at,exactOutputSwap:_t,adjustable:k==="adjustable",maxAmount:E,onAmountChange:We}),Ao,ue,de,bo&&f(Hn,{variant:"error",palette:Le,fontFamily:Te,style:{marginBottom:"12px"},children:bo}),f(Vt,{variant:"outline",fullWidth:!0,onClick:zt?.status==="success"?t:On,disabled:zt?.status==="success"?!1:!!V||!ln,loading:Dt,dark:K,styles:yn,children:gn}),zt&&_e&&!Qn&&f("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:10,backgroundColor:K?N.shell:"white",borderRadius:K?"12px":"6px",padding:"16px 0"},children:f(Ni,{type:"payment",isOpen:zt.status!=="processing",isProcessing:Dt||zt.status==="processing",closeOnComplete:!1,chainId:Me,onRetryTx:()=>{Dn(),On()},onNewTx:Xt,onClose:()=>{Dn()},onComplete:Xt,results:mt,styles:D,dark:K})})]})})}return f(yo,{isOpen:e,onClose:t,title:kt,subtitle:Sn,dark:K,styles:D,theme:_,closeOnBackdropClick:n,children:R("div",{style:{padding:"24px 24px 5px 24px",position:"relative"},children:[f(ha,{activity:Ue,palette:N}),u?R("div",{style:{marginBottom:"16px",padding:"16px",backgroundColor:ee,border:`1px solid ${ce}`,borderRadius:"8px",color:Z,fontFamily:Te},children:[R("label",{style:{display:"block",marginBottom:"8px"},children:["Purchase amount (",Pe?.symbol??"...",")",f("input",{"aria-label":"Purchase amount",inputMode:"decimal",value:gt,disabled:Dt||k!=="adjustable"||St==="success",onChange:mt=>We(mt.target.value),style:{display:"block",width:"100%",boxSizing:"border-box",padding:"10px",marginTop:"8px",fontSize:"24px",color:Z,background:"transparent",border:`1px solid ${ce}`,borderRadius:"6px"}})]}),Pe&&pn!==void 0&&R("div",{style:{fontSize:"12px",color:ae},children:["Estimated available:"," ",Re(pn,Pe.decimals)," ",Pe.symbol]}),k==="adjustable"&&f(Vt,{disabled:Dt||St==="success",onClick:()=>{qn().then(mt=>{mt!==null&&We(mt)})},children:"Max"}),fe?.fundingPlan?.sources.map(mt=>R("div",{style:{marginTop:"10px",fontSize:"12px",color:ae},children:["Up to ",Re(mt.sourceSpendCap,mt.decimals)," ",mt.asset.symbol,mt.swap&&R(kn,{children:[" ","\u2192 at least"," ",Re(mt.amountOutMinimum,mt.pivotToken.decimals)," ",mt.pivotToken.symbol]}),mt.gasFeeAmount>0n&&R(kn,{children:[" ","(funding fee"," ",Re(mt.gasFeeAmount,mt.pivotToken.decimals)," ",mt.pivotToken.symbol,")"]})]},mt.positionId))]}):f("div",{style:{marginBottom:"16px"},children:f(zr,{assets:Je,selectedAsset:ye||void 0,onAssetSelect:rt,onAmountChange:Ot,disabled:Dt||St==="success",showBalance:!0,getAvailableBalance:lt,showMaxButton:!0,label:c?"From":"From Wallet",placeholder:"0.00",theme:Ie,styles:D,dark:q,resolveMaxAmount:ve?void 0:hn,maxAmount:ye?.asset&&pn!==void 0?Re(pn,ye.asset.decimals):void 0})}),(u||ye?.asset)&&(u||!Ct||!!Wt)&&!(ve&&Wt)&&f(Hu,{variant:"supply",destinationSymbol:De.symbol,destinationLogoURI:De.logoURI,destinationDecimals:De.decimals,primaryColor:ie,fontFamily:Te,textPrimary:Z,textSecondary:ae,cardBg:ee,cardBorder:ce,dark:K,isQuoting:ut,quoteError:pt,estimatedOutput:Et}),Ao,St!=="idle"&&f(t0,{step:St,statusMsg:en,txHash:Xn,explorerUrl:rn,currentStepIdx:cn,palette:Le,cardBg:ee,cardBorder:ce,textPrimary:Z,textSecondary:ae,fontFamily:Te,primaryColor:ie,onRetry:()=>{Ln()}}),ue,de,Zt&&(St==="idle"||!!Qn)&&f(Hn,{variant:"error",palette:Le,fontFamily:Te,style:{marginBottom:"16px"},children:Zt}),f(Vt,{variant:"outline",fullWidth:!0,disabled:Nn,onClick:wn,theme:_,dark:K,styles:yn,style:{fontSize:"20px",fontWeight:600,letterSpacing:"1.5px",fontFamily:z},children:sn})]})})},r0=()=>{const[e,t]=L("0"),[n,o]=L(null);return{assetAmount:e,setAssetAmount:t,selectedAsset:n,setSelectedAsset:o}};async function s0(e,t,n,o){if(e.amountIn<=0n||e.minimumOutput<0n||!(e.venue.chainIds??[8453]).includes(e.chainId))throw new Error("Choose a positive fixed input, nonnegative minimum output and supported venue chain");const r=dr(e.chainId).find(b=>b.equivalenceGroup==="USDC");if(!r)throw new Error("Configure the execution fee token for this chain");const s={...r,address:r.address,chainId:e.chainId},a=is({...e.venue,deadline:e.expiresAt}),i=await a.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:e.amountIn},e.chainId,t);if(!i)throw new Error("No supported fixed route for this conditional swap");let l=e.amountIn,c="";const u=async b=>{if(b<=0n)throw new wr(e.amountIn+1n,e.amountIn);const A=(b===e.amountIn?i:await a.resolve({type:"swap",tokenIn:e.tokenIn,tokenOut:e.tokenOut,amountIn:b},e.chainId,t))?.calls.find(x=>x.to.toLowerCase()===e.venue.swapRouter.toLowerCase());if(!A)throw new Error("No supported fixed route for this conditional swap");const{path:O}=jn({abi:gr,data:A.data}).args[0];if(O.slice(0,42).toLowerCase()!==e.tokenIn.toLowerCase()||`0x${O.slice(-40)}`.toLowerCase()!==e.tokenOut.toLowerCase())throw new Error("The quoted route does not match the requested tokens");l=b;const v=[{to:e.tokenIn,value:0n,data:Tt({abi:ft,functionName:"approve",args:[e.venue.swapRouter,b]})},{to:e.venue.swapRouter,value:0n,data:Tt({abi:gr,functionName:"exactInput",args:[{path:O,recipient:t,deadline:e.expiresAt,amountIn:b,amountOutMinimum:0n}]})}];return c=v[1].data,v},d=n.filter(b=>!b.balanceError&&b.balanceStatus!=="stale"&&b.owner?.toLowerCase()===t.toLowerCase()&&b.location!=="external"),p=d.find(b=>b._source==="wallet"&&b.chainId===e.chainId&&b.address.toLowerCase()===e.tokenIn.toLowerCase()),w=p&&xs(p,d,t,e.chainId),m={requestTimestampMs:Date.now(),currentPaymentAmount:"0",feeOnlyAction:!0,isPayMode:!0,destinationToken:s,embeddedWalletAddress:t,providerEmbeddedAddress:t,externalWalletAddress:void 0,address:t,isNon7702:!1,resolvedChainId:e.chainId,feeExecutionMode:"backend-transfer",buildSpicenetBatch:void 0,selectedAsset:null,needsSwap:!1,resolvedSwap:null,exactOutputSwap:null,quoteAmountOut:null,resolvedTokenIn:s.address,buildActionCalls:b=>u(b)},g={...m,expiresAt:Number(e.expiresAt),parsedAmount:0,isSourceDestToken:!0,isConnected:!0,ready:!0,authenticated:!0,isDirect:!0,isQuoting:!1,executionTokenAddress:s.address,actionInput:e.amountMode==="input-inclusive"?[{token:e.tokenIn,amount:e.amountIn}]:void 0,actionProceeds:{token:e.tokenOut,resolve:async()=>i.amountOut},feeFundingBalances:d,feeFundingReserve:p?{asset:p,amount:e.amountIn}:void 0,liquidityVenues:{includeDefaults:!1,venues:[{...e.venue,deadline:e.expiresAt,protocol:"aerodrome-slipstream",chainId:e.chainId}]},buildPayChainBatches:b=>qr(m,{...b,actionAmountOverride:b?.actionAmountOverride??e.amountIn}),buildSupplyChainBatches:b=>qr(m,{...b,actionAmountOverride:b?.actionAmountOverride??e.amountIn}),estimate:o},h=w?await qd({...g,feeOnlyAction:!1,isPayMode:!1,isFeeInclusiveInput:e.amountMode==="input-inclusive",selectedAsset:{asset:p,amount:Re(e.amountIn,p.decimals)},combinedSourceGroup:w},m,Yo):await Gi(g,Yo),y=h?.fundingBatches??h?.batches;if(!h||!y?.length||h.preview.totalFee===void 0)throw new Error("Conditional swap fee plan is unavailable");const C=y.flatMap(b=>b.calls).find(b=>b.to.toLowerCase()===e.venue.swapRouter.toLowerCase()&&b.data===c);if(!C)throw new Error("The conditional swap is missing from its fee plan");const S=jn({abi:gr,data:C.data}).args[0];return C.data=Tt({abi:gr,functionName:"exactInput",args:[{...S,amountOutMinimum:e.minimumOutput}]}),{batches:y,sourceAllocation:h.sourceAllocation,swapAmountIn:l,feeFundingSource:h.fundingSource,feeSourceAmount:h.fundingConversion?.amountInMax??h.proceedsUsed??h.sourceSpendCap,fees:{token:s.address,symbol:s.symbol,decimals:s.decimals,amount:h.preview.totalFee}}}const Gu=`0x${"00".repeat(32)}`;function hl(){return BigInt(`0x${Array.from(crypto.getRandomValues(new Uint8Array(32)),e=>e.toString(16).padStart(2,"0")).join("")}`)}function a0(e,t){const n={chainId:e,to:t.to,value:t.value,selector:t.data.length>=10?t.data.slice(0,10):"0x"};try{const o=jn({abi:gr,data:t.data});if(o.functionName==="exactInput"){const r=o.args[0];n.fixedInput=r.amountIn,n.minimumOutput=r.amountOutMinimum,r.amountOutMinimum===0n&&(n.disclosure="This fixed-input swap has zero minimum output. The router can execute it for any output amount, including a very poor fill.")}}catch{}return n}function i0(){const e=Fo(),t=an($t),n=hr({owner:e.address,role:"spend-source",enabled:e.isReady}),o=Dr(),r=j({wallet:e,provider:t,inventory:n,execution:o});r.current={wallet:e,provider:t,inventory:n,execution:o};const s=j(!0),a=j(0),i=JSON.stringify([e.address,qe.getBaseUrl(),t?.rpcOverrides,t?.provider,t?.network,t?.mode]),l=j(i);l.current!==i&&(l.current=i,a.current++);const c=j(!1),u=j(new WeakMap),d=j(new WeakMap),p=j();pe(()=>(s.current=!0,()=>{s.current=!1,a.current++}),[]);const w=re(()=>JSON.stringify([a.current,r.current.wallet.address,qe.getBaseUrl(),r.current.provider?.rpcOverrides,r.current.provider?.provider,r.current.provider?.network,r.current.provider?.mode]),[]),m=v=>{if(!s.current||w()!==v)throw new Error("Wallet, provider or relayer changed during conditional intent processing")},g=re(async v=>{const x=r.current.wallet.address;if(!x||!r.current.wallet.isReady)throw new Error("Connect a ready wallet before preparing a conditional intent");if(r.current.provider?.mode!=="7702")throw new Error("Conditional intents require a fully pre-signed 7702 action");if(!v.clientId||!v.serviceId||!v.triggerSpecification||!v.chainBatches.length)throw new Error("Conditional intent requires a client, service, exact trigger bytes and fixed action batches");if(v.semantics!=="state"&&v.semantics!=="event")throw new Error("Choose state or event trigger semantics");const F=BigInt(Math.floor(Date.now()/1e3));if(v.maxSignalAgeSeconds<1n||v.maxSignalAgeSeconds>86400n||v.validAfter>v.expiresAt||v.expiresAt<=F||v.expiresAt-F>30n*86400n)throw new Error("Conditional intent validity or signal freshness is outside the supported window");const T=w(),B=structuredClone(v.chainBatches).map(D=>({...D,tokenTransfers:D.tokenTransfers??[]}));if(B.some(D=>!Number.isSafeInteger(D.chainId)||D.chainId<=0||!D.calls.length))throw new Error("Every action batch needs a supported chain and at least one fixed call");const M={owner:x,clientId:v.clientId,serviceId:v.serviceId,authorizationNonce:hl(),executionDigest:Ai(B,v.expiresAt),executionPlanHash:Gu,triggerSpecificationHash:ur(v.triggerSpecification),evaluator:v.evaluator,semantics:v.semantics,maxSignalAgeSeconds:v.maxSignalAgeSeconds,validAfter:v.validAfter,expiresAt:v.expiresAt,maxExecutions:1},k=B.flatMap(D=>D.calls.map(P=>a0(D.chainId,P)));m(T);const E={triggerSpecification:v.triggerSpecification,chainBatches:structuredClone(B),actionSummary:k,additionalSignatureCount:2,delegationAuthorizationCount:new Set(B.filter(D=>!Ro(D.chainId)).map(D=>D.chainId)).size,triggerEnforcedBy:"SpiceFlow conditional-intent service"},I={scope:T,input:{...structuredClone(v),chainBatches:B},prepared:E,baseAuthorization:M};return u.current.set(E,I),E},[w]),h=re(async v=>{v=structuredClone(v);const x=w(),F=r.current.wallet.address;if(!F||!r.current.wallet.isReady||r.current.provider?.mode!=="7702")throw new Error("Connect a ready 7702 wallet before preparing a conditional swap");const T=await At(v.chainId,r.current.provider?.rpcOverrides).readContract({address:v.tokenIn,abi:ft,functionName:"balanceOf",args:[F]});m(x);const B=r.current.inventory.assets,M=B.find(P=>P._source==="wallet"&&P.location==="embedded"&&P.chainId===v.chainId&&J(P.address,v.tokenIn)&&J(P.owner,F))??dr(v.chainId).find(P=>J(P.address,v.tokenIn)),k=M?{...M,address:v.tokenIn,chainId:v.chainId,owner:F,location:"embedded",_source:"wallet",balance:T,balanceFormatted:Number(Re(T,M.decimals)),balanceUsd:0,isNative:!1,balanceError:void 0,balanceStatus:void 0}:void 0,E=k?[...B.filter(P=>!(P._source==="wallet"&&P.location==="embedded"&&P.chainId===v.chainId&&J(P.address,v.tokenIn)&&J(P.owner,F))),k]:B;if(((k&&xs(k,E,F,v.chainId))?.availableBalance??T)<v.amountIn)throw new Error("The available wallet and escrow balance does not cover the order input");const I=await s0(v,F,E,r.current.execution.estimate);m(x);const D=await g({...v,chainBatches:I.batches});if(I.sourceAllocation){const P=I.sourceAllocation;u.current.get(D).validateFunding=()=>Ri(I.batches,F,{walletFundingRequirement:{chainId:P.chainId,token:P.token,amount:P.walletInPlace}})}return D.fees=I.fees,D.feeFundingSource=I.feeFundingSource,D.feeSourceAmount=I.feeSourceAmount,D.swapAmountIn=I.swapAmountIn,D},[g,w]),y=re(async v=>{const x=u.current.get(v);if(!x)throw new Error("Prepare this conditional intent in the current hook before signing");m(x.scope);const F=r.current.wallet.address;if(!F||!r.current.wallet.actions.signMessage)throw new Error("Wallet is not ready to sign this conditional intent");if(x.request)return x.prepared;if(c.current)throw new Error("A conditional authorization is already being signed");c.current=!0;try{await x.validateFunding?.(),m(x.scope);const T=await Fi({chainBatches:x.input.chainBatches,signingAddress:F,actions:r.current.wallet.actions});m(x.scope),await x.validateFunding?.(),m(x.scope);const B=await Ei(r.current.wallet.actions,x.input.chainBatches,x.input.expiresAt);m(x.scope);const M=T.map(({yParity:G,...ne})=>({...ne,...G===void 0?{}:{yParity:G}})),k=Gl(x.input.chainBatches.map(G=>({...G,tokenTransfers:G.tokenTransfers??[]})),M),E={...x.baseAuthorization,executionPlanHash:k},I=Np(E),D=await r.current.wallet.actions.signMessage({raw:I});m(x.scope);const P=typeof D=="string"?D:D.signature,H=Co(x.input.chainBatches),Q={authorization:E,authorizationSignature:P,triggerSpecification:x.input.triggerSpecification,action:{user:F,chainAuthorizations:M,intents:[{mode:"7702",signatureType:"ecdsa",signature:B,nbf:0,exp:Number(x.input.expiresAt),chainBatches:x.input.chainBatches.map((G,ne)=>({hash:H[ne].hash,chainId:G.chainId,tokenTransfers:G.tokenTransfers??[],calls:G.calls}))}]}};return x.request=structuredClone(Q),x.authorizationSignature=P,x.chainAuthorizations=T,x.prepared={...structuredClone(x.prepared),authorization:structuredClone(E),id:Pp(I)},u.current.set(x.prepared,x),d.current.set(x.prepared,x),x.prepared}finally{c.current=!1}},[]),C=re(async v=>{const x=d.current.get(v);if(!x?.request)throw new Error("Sign the prepared conditional intent before registration");m(x.scope);const F=await qe.registerConditionalIntent(x.request);return m(x.scope),F},[]),S=re(async v=>{const x=w(),F=p.current;if(F&&F.scope===x&&F.serviceId===v&&F.expiresAt>Date.now()/1e3+30)return F.token;const T=r.current.wallet.address;if(!T||!r.current.wallet.isReady)throw new Error("Connect a wallet before reading conditional intent status");const B={owner:T,reader:T,serviceId:v,intentId:Gu,expiresAt:BigInt(Math.floor(Date.now()/1e3)+3600),nonce:hl()},M=Wp(B),k=await r.current.wallet.actions.signMessage({raw:M});m(x);const E=typeof k=="string"?k:k.signature,I=await qe.createConditionalReadToken({...B,signature:E});return m(x),p.current={scope:x,serviceId:v,token:I.readToken,expiresAt:I.expiresAt},I.readToken},[w]),b=re(async(v,x)=>{const F=w(),T=await S(x);m(F);const B=await qe.getConditionalIntent(v,T);return m(F),B},[S,w]),A=re(async(v,x)=>{const F=w(),T=await S(v);m(F);const B=await qe.listConditionalIntents(T,x);return m(F),B},[S,w]),O=re(async(v,x)=>{const F=w(),T=r.current.wallet.address;if(!T)throw new Error("Connect a wallet before cancelling a conditional intent");const B={owner:T,serviceId:x,intentId:v,cancellationNonce:hl(),expiresAt:BigInt(Math.floor(Date.now()/1e3)+300)},M=Up(B),k=await r.current.wallet.actions.signMessage({raw:M});m(F);const E=typeof k=="string"?k:k.signature,I={...B,signature:E},D=await qe.cancelConditionalIntent(v,I);return m(F),D},[w]);return{prepare:g,prepareSwap:h,sign:y,register:C,authorizeRead:S,get:b,list:A,cancel:O}}function l0(e,t=0){const[n,o]=L(t),r=e[n]??e[0],s=we(()=>r?BigInt(Math.round(r.months*30*24*3600)):0n,[r?.months]);return{selectedDurationIdx:n,setSelectedDurationIdx:o,selectedDuration:r,durationSeconds:s}}function c0(e){const t=an($t),n=t?.embeddedWalletAddress,o=e?.enabled===!1?void 0:n,r=t?.network?{network:t.network,pollIntervalMs:e?.pollIntervalMs,chainIds:e?.chainIds??t.supportedChainIds,discoverWalletBalances:e?.discoverWalletBalances}:void 0;return{...Uu(o,r),embeddedWalletAddress:n}}function d0(){const{actions:e,isReady:t,isAuthenticated:n}=Fo(),o=an($t)?.embeddedWalletAddress,r=j(!1),s=j(0),a=j(null),i=j(e),[l,c]=L(0);i.current=e,pe(()=>{r.current=!1,s.current=0,a.current&&(clearTimeout(a.current),a.current=null)},[o]),pe(()=>{if(!o||!t||!n||r.current)return;r.current=!0;let u=!1;return(async()=>{await go(2e3);try{await Ap(o,i.current.signMessage),s.current=0}catch(d){console.warn("[SmartWallet] Registration failed:",d),r.current=!1,!u&&s.current<3&&(s.current+=1,a.current=setTimeout(()=>{c(p=>p+1)},5e3))}})(),()=>{u=!0,a.current&&(clearTimeout(a.current),a.current=null)}},[o,t,n,l])}function u0(){const e=an($t),t=(e?.mode??"7702")==="7702"?"embedded":"external",n=e?.setMode,o=re(r=>n?.(r==="embedded"?"7702":"ondemand"),[n]);return{mode:t,setMode:o,ownerAddress:t==="embedded"?e?.embeddedWalletAddress:e?.externalWalletAddress,embeddedAddress:e?.embeddedWalletAddress,externalAddress:e?.externalWalletAddress,isUserWhitelisted:e?.isUserWhitelisted??null,isWhitelistChecking:e?.isWhitelistChecking??!1,isWhitelistGateActive:e?.isWhitelistGateActive??!1,whitelistCheck:e?.whitelistCheck}}function p0({amount:e,enabled:t=!0,...n}){const o=an($t),[r,s]=L(null);pe(()=>{s(c=>c&&c.amount!==e?{...c,amount:e}:c)},[e]);const a=we(()=>{if(!r)return null;const c=r.asset,u=c.location??(c._source==="spice"?"rollup":c._fundingWallet??((o?.mode??"7702")==="7702"?"embedded":"external"));return{...r,asset:{...c,location:u,owner:c.owner??(u==="external"?o?.externalWalletAddress:o?.embeddedWalletAddress),...c._wrapFromNative?{address:Kt,isNative:!0,positionId:void 0}:{}}}},[r,o?.mode,o?.embeddedWalletAddress,o?.externalWalletAddress]),i=As({...n,enabled:t,selectedAsset:a,paymentAmount:n.amountDirection==="output"?e:void 0}),l=re(c=>s({asset:c,amount:e}),[e]);return{sources:i.assets.selectable,getAvailableBalance:i.assets.getAvailableBalance,availableBalance:i.amount.availableBalance,selectedAsset:i.selectedAsset,setSelectedAsset:s,selectAsset:l,quote:{isQuoting:i.quote.isQuoting,error:i.quote.quoteError,estimatedInput:i.quote.estimatedInput,estimatedOutput:i.quote.estimatedOutput,estimatedMinOutput:i.fees.destinationAmount===void 0||!n.destinationToken?null:Re(i.fees.destinationAmount,n.destinationToken.decimals),isDirect:i.quote.isDirect,needsSwap:i.quote.needsSwap},feePreview:i.fees.preview,isFeePreviewLoading:i.fees.isLoading,feePreviewError:i.fees.error||i.status.error,canSubmit:i.canExecute,execute:i.submit,isExecuting:i.status.isExecuting,step:i.status.step,statusMsg:i.status.statusMsg,status:i.status,txHash:i.status.txHash,refreshAssets:i.assets.refreshSpiceAssets,resolveMaxAmount:i.resolveMaxAmount,retryFinalization:i.retryFinalization,refreshStatus:i.refreshStatus}}function f0(e){const t=Fo(),n=an($t),o=Dr(),r=j(o);r.current=o;const[s,a]=L({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),[i,l]=L(!1),c=j(void 0),u=j(e?.combineSourceBalances);u.current=e?.combineSourceBalances;const d=j({wallet:t,provider:n});d.current={wallet:t,provider:n};const p=j(!1),w=j(!1),m=j(null),g=j(!0),h=j(0),y=JSON.stringify([t.address,t.isReady,t.isAuthenticated,t.isConnected,qe.getBaseUrl(),n?.rpcOverrides,n?.provider,n?.network,n?.mode,n?.allowedTokens,n?.isWhitelistGateActive]),C=j(y);C.current!==y&&(C.current=y,h.current++),Bo(()=>(g.current=!0,()=>{g.current=!1,h.current++,m.current?.abort()}),[]),Bo(()=>(l(!1),c.current=void 0,a({step:"idle",isExecuting:!1,message:"",error:null,pending:!1}),()=>{m.current?.abort()}),[y]);const S=j(new WeakMap),b=j(new WeakMap),A=()=>{if(!g.current)throw new Error("Order hook is no longer mounted");if(!d.current.wallet.isReady||!d.current.wallet.isAuthenticated||!d.current.wallet.isConnected||d.current.provider?.isWhitelistGateActive)throw new Error("Connect the current wallet before continuing the order");return JSON.stringify([h.current,d.current.wallet.address,d.current.wallet.isReady,d.current.wallet.isAuthenticated,d.current.wallet.isConnected,qe.getBaseUrl(),d.current.provider?.rpcOverrides,d.current.provider?.provider,d.current.provider?.network,d.current.provider?.mode,d.current.provider?.allowedTokens,d.current.provider?.isWhitelistGateActive])},O=re(async k=>{const E=A(),I=c.current;l(!1);const D=await qe.supportsAutomaticContinuation();if(A()!==E||c.current!==I||w.current)return!1;if(I?.outcomePending==="registration"){const Q=await qe.getLimitOrder(Ui(I.request));if(A()!==E)return!1;if(Q.id!==Ui(I.request)||!J(Q.user,I.request.user)||Q.chainId!==I.input.chainId||!J(Q.tokenIn,I.input.tokenIn)||!J(Q.tokenOut,I.input.tokenOut)||Q.minimumOutput!==I.input.minimumOutput.toString())throw new Error("The original order registration could not be verified");return I.resolvedOrder=Q,I.placement=void 0,I.outcomePending=void 0,a({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),l(!0),!0}if(I?.outcomePending==="funding"){if(!I.fundingActionId&&I.fundingSubmissionKey){const G=await qe.getActionBySubmission(I.request.user,I.fundingSubmissionKey);if(A()!==E)return!1;I.fundingActionId=G?.actionId}if(!I.fundingActionId)return a(G=>({...G,pending:!0})),!1;const Q=await qe.getIntentRecoveryStatus(I.fundingActionId,0);if(A()!==E)return!1;if(Q==="unresolved")return a(G=>({...G,pending:!0})),!1;if(Q==="completed"){I.fundingCompleted=!0;const G=await Ko(I.request.user,I.input.chainId,I.input.tokenIn);if(A()!==E)return!1;if(G.available<I.input.grossAmount)return a(ne=>({...ne,pending:!0})),!1;I.placement=void 0}I.outcomePending=void 0}const P=D?k??await qe.getWalletActions(d.current.wallet.address,{pendingOnly:!0}):[];if(A()!==E||w.current||c.current!==I)return!1;let H=!1;for(const Q of P){if(Q.intents.length!==1){H=!0;break}const G=await qe.getIntentRecoveryStatus(Q.actionId,0);if(A()!==E)return!1;if(G==="unresolved"){H=!0;break}}return a(Q=>({...Q,pending:H,message:H?"A previous transaction is still pending":Q.message})),l(!H),!H},[]),v=re(()=>O(),[O]),x=ca(t.address,s.pending&&t.isReady&&t.isAuthenticated&&t.isConnected,{pendingOnly:!0});pe(()=>{if(!s.pending||x.loading||x.error||!x.updatedAt)return;const k=h.current;O(x.actions).catch(()=>{g.current&&h.current===k&&l(!1)})},[x.revision,x.loading,x.error,s.pending,O]),pe(()=>{if(!t.address||!t.isReady||!t.isAuthenticated||!t.isConnected||n?.isWhitelistGateActive)return;const k=h.current;v().catch(()=>{g.current&&h.current===k&&(l(!1),a(E=>({...E,pending:!0,message:"Previous transaction status is unavailable"})))})},[y,v]);const F=re(async k=>{if(w.current||c.current?.outcomePending)throw new Error("Resolve the previous order before preparing another");const E=A(),I=u.current===!0;if(k=structuredClone(k),!await v())throw new Error("Resolve the previous transaction before preparing another order");if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");const D=Xl(crypto.getRandomValues(new Uint8Array(32))),P=d.current.wallet.address;if(!P)throw new Error("Connect a wallet before preparing an order");if(d.current.provider?.mode!=="7702")throw new Error("Limit orders require the 7702 wallet mode");if(!Va(k.chainId,d.current.provider?.rpcOverrides))throw new Error(`No RPC is available for order chain ${k.chainId}`);const H=Date.now();if(!Number.isSafeInteger(k.expiresAt)||k.expiresAt<=Math.floor(H/1e3)||k.expiresAt>Math.floor(H/1e3)+30*86400||k.grossAmount<=0n||k.minimumOutput<=0n)throw new Error("Enter a positive amount, minimum output and expiry within 30 days");const Q=await Ko(P,k.chainId,k.tokenIn);if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");let G;const ne=k.grossAmount;if(I&&Q.available<ne){if(!await qe.supportsAutomaticContinuation())throw new Error("Automatic order funding requires backend recovery support");const xe=Yt(k.tokenIn,k.chainId);if(!xe)throw new Error("Automatic order funding requires a supported escrow token");const he=At(k.chainId,d.current.provider?.rpcOverrides),ve=Fe(k.tokenIn)?await he.getBalance({address:P}):await he.readContract({address:k.tokenIn,abi:ft,functionName:"balanceOf",args:[P]}),_={address:k.tokenIn,chainId:k.chainId,owner:P,location:"embedded",_source:"wallet",_fundingWallet:"embedded",decimals:xe.decimals,symbol:xe.symbol,name:xe.name,balance:ve,balanceFormatted:Number(Re(ve,xe.decimals)),balanceUsd:0,isNative:Fe(k.tokenIn)},K=Io(_,"spend-source",d.current.provider??{},{address:k.tokenIn,chainId:k.chainId},void 0,{requiresEscrow:!0});if(!K.eligible)throw new Error(K.reason??"Order funding is unavailable");const ie=ne-Q.available;if(ve<ie)throw new Error("Cash does not cover the limit order budget");const N=await Ma({address:P,escrowOnly:!0,requireSimulation:!0,depositQuote:{asset:_,amount:ie,token:k.tokenIn,chainId:k.chainId}});if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");if(N.fee<0n||N.fee>=ie||N.net!==ie-N.fee)throw new Error("Cash amount does not cover the order funding fee");G={source:_,sourceSpendCap:ie,depositAmount:N.net,feeAmount:N.fee},k.grossAmount=ne-N.fee}const X=k.venue??$s;if(!(X.chainIds??[8453]).includes(k.chainId))throw new Error("Venue does not support the destination chain");const V=is(X);let oe=k.grossAmount,Y=0n,ge=0n;for(let xe=0;xe<5;xe++){const he=await V.resolve({type:"swap",tokenIn:k.tokenIn,tokenOut:k.tokenOut,amountIn:oe},k.chainId,P);if(!he)throw new Error("No supported route for this order");const ve=he.calls.find(ce=>J(ce.to,X.swapRouter));if(!ve)throw new Error("Order route is missing its swap");const{path:_}=jn({abi:gr,data:ve.data}).args[0],K=Mm({user:P,chainId:k.chainId,tokenIn:k.tokenIn,router:X.swapRouter,path:_,grossAmount:k.grossAmount,amountIn:oe,minimumOutput:k.minimumOutput,expiresAt:k.expiresAt,platformFee:Y,gasBridgeFee:ge,requestTimestampMs:H,requestNonce:D});if(K.intents[0].mode!=="7702")throw new Error("Unsupported order mode");const ie=structuredClone(K),N=ie.intents[0];if(N.mode!=="7702")throw new Error("Unsupported order mode");const Le=ua(N.chainBatches,P);Le[1].calls=he.calls;const Te=Co(Le);N.chainBatches=Le.map((ce,Z)=>({...N.chainBatches[Z],calls:ce.calls,hash:Te[Z].hash}));const z=(await qe.estimateActionFees(ie)).intents[0]?.batches.find(ce=>ce.chainId===k.chainId);if(!z)throw new Error("Order fee quote is unavailable");const q=Ho(z),ee=k.grossAmount-q.totalFee;if(ee<=0n)throw new Error("Cash amount does not cover order fees");if(A()!==E)throw new Error("Wallet or provider changed while preparing the order");if(ee===oe&&Y===q.spicenetFee&&ge===q.gasFee+q.bridgeFee){const ce={user:P,request:K,amountIn:oe,minimumOutput:k.minimumOutput,feeAmount:q.totalFee,grossAmount:k.grossAmount,funding:G,path:_};return S.current.set(ce,{scope:E,request:structuredClone(K),input:structuredClone(k),cashAmount:Q.available,combineSourceBalances:I,funding:G&&structuredClone(G)}),ce}oe=ee,Y=q.spicenetFee,ge=q.gasFee+q.bridgeFee}throw new Error("Order fees did not converge; prepare the order again")},[]),T=re(async k=>{if(p.current)throw new Error("An order signature is already in progress");const E=S.current.get(k),I=E?.scope,D=()=>{if(!I||A()!==I||!J(d.current.wallet.address,E?.request.user))throw new Error("Prepare the order again for the current wallet and provider")};D();const P=structuredClone(E.request),H=P.intents[0];if(H.mode!=="7702"||H.exp<=Date.now()/1e3)throw new Error("Order expired before signing");p.current=!0;try{const Q=d.current.wallet.actions;if(P.chainAuthorizations=await Fi({chainBatches:H.chainBatches,signingAddress:P.user,actions:Q,beforeSign:async()=>D()}),D(),H.signature=await Ei(Q,H.chainBatches,BigInt(H.exp)),D(),H.exp<=Date.now()/1e3)throw new Error("Order expired during signing");return b.current.set(P,{scope:I,request:structuredClone(P),input:E.input,cashAmount:E.cashAmount,combineSourceBalances:E.combineSourceBalances,funding:E.funding}),P}finally{p.current=!1}},[]),B=re(async k=>{const E=A(),{signature:I}=await d.current.wallet.actions.signMessage(Dm(k));if(A()!==E)throw new Error("Wallet or provider changed during cancellation");return qe.cancelLimitOrder(k,I)},[]),M=re(k=>{const E=b.current.get(k);if(!E||A()!==E.scope)throw new Error("Sign the order for the current wallet and provider before placing it");if(E.placement)return E.placement;if(E.resolvedOrder)return Promise.resolve(E.resolvedOrder);if(E.outcomePending)throw new Error("The original order outcome is still pending");if(w.current)throw new Error("An order placement is already in progress");const I=E.request.intents[0],D=()=>{if(A()!==E.scope)throw new Error("Wallet or provider changed during order placement");if(I.mode!=="7702"||I.exp<=Date.now()/1e3)throw new Error("Order expired before placement")};D(),w.current=!0,c.current=E;const P=new AbortController;m.current=P;let H=!1;E.placement=(async()=>{a({step:"placing",isExecuting:!0,message:"Preparing the limit order\u2026",error:null,pending:!1});let G=!1,ne=E.fundingCompleted===!0,X=!1;try{const V=await Ko(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),E.funding&&!ne){const ge=E.funding;if(V.available!==E.cashAmount)throw new Error("Order cash or reservations changed. Review the full order again");const xe=async()=>{D();const K=await Ko(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),K.available!==E.cashAmount)throw new Error("Order cash or reservations changed. Review again")},he=await Ma({address:E.request.user,escrowOnly:!0,requireSimulation:!0,depositQuote:{asset:ge.source,amount:ge.sourceSpendCap,token:E.input.tokenIn,chainId:E.input.chainId}});if(D(),he.fee>ge.feeAmount)throw new Error("Order funding fees changed. Review again");const ve=[{chainId:E.input.chainId,tokenTransfers:[],calls:fl({escrowAddress:Oo(E.input.chainId),tokenAddress:E.input.tokenIn,isNative:Fe(E.input.tokenIn),amount:ge.depositAmount,gasFeeAmount:ge.feeAmount})}];a({step:"funding",isExecuting:!0,message:"Funding the limit order\u2026",error:null,pending:!1}),E.fundingSubmissionKey??(E.fundingSubmissionKey=Xl(crypto.getRandomValues(new Uint8Array(32)))),await r.current.execute(ve,E.input.tokenIn,0n,K=>{K.actionId&&(G=!0,E.fundingActionId=K.actionId)},P.signal,{userOverride:E.request.user,idempotencyKey:E.fundingSubmissionKey,useCustomTransfers:!0,skipPreSubmitFeeEstimate:!0,requireDestinationReceipt:!0,walletFundingRequirement:{chainId:E.input.chainId,token:E.input.tokenIn,amount:ge.sourceSpendCap},validateBeforeSubmit:xe}),ne=!0,E.fundingCompleted=!0,D(),a({step:"waiting-credit",isExecuting:!0,message:"Waiting for cash credit\u2026",error:null,pending:!1});const _=await nd({deposits:[{chainId:E.input.chainId,token:E.input.tokenIn,amount:ge.depositAmount}],baseline:V.entries,fetchEntries:async()=>(D(),js(E.request.user)),signal:P.signal});if(D(),!_)throw new Error("Funding was submitted; the order is not placed while cash credit is pending. Check wallet activity before trying again")}const oe=await Ko(E.request.user,E.input.chainId,E.input.tokenIn);if(D(),E.combineSourceBalances&&oe.available<E.input.grossAmount)throw new Error("Cash is not available for this order. No order was placed");a({step:"placing",isExecuting:!0,message:"Placing the limit order\u2026",error:null,pending:!1}),X=!0;const Y=await qe.createLimitOrder(structuredClone(E.request));return D(),E.resolvedOrder=Y,a({step:"success",isExecuting:!1,message:"Limit order placed",error:null,pending:!1}),Y}catch(V){const oe=X&&V instanceof Be&&V.context.httpStatus===400&&V.context.submissionStatus==="rejected";G||(G=V?.context?.submissionStatus==="unknown");const Y=V instanceof Error?V:new Error("The order outcome could not be verified"),ge=X&&!oe?"Order placement could not be verified. Check the order list before placing another order.":G?ne?"Cash funding completed, but the order is not placed. Check available cash and wallet activity before trying again.":"Cash funding could not be verified and no order was placed. Check wallet activity before trying again.":Y.message;E.outcomePending=X&&!oe?"registration":G||ne?"funding":void 0,H=!X&&!G&&!ne;try{g.current&&A()===E.scope&&a({step:"error",isExecuting:!1,message:ge,error:Y,pending:!!E.outcomePending})}catch{}throw Y}finally{w.current=!1,m.current===P&&(m.current=null)}})();const Q=E.placement;return Q.catch(()=>{H&&E.placement===Q&&(E.placement=void 0)}),Q},[]);return{status:s,canPrepare:i&&!s.pending&&!s.isExecuting&&t.isReady&&t.isAuthenticated&&t.isConnected&&!n?.isWhitelistGateActive,canPlace:k=>{const E=b.current.get(k);try{return!!E&&i&&!s.pending&&A()===E.scope&&E.request.intents[0].mode==="7702"&&E.request.intents[0].exp>Date.now()/1e3&&!E.outcomePending&&!w.current}catch{return!1}},refreshStatus:v,prepareOrder:F,signOrder:T,placeOrder:M,getOrder:k=>qe.getLimitOrder(k),listOrders:k=>{if(!t.address)throw new Error("Connect a wallet to list orders");return qe.listLimitOrders(t.address,k)},cancelOrder:B}}Xp();export{$s as AERODROME_BASE_CONFIG,Cu as AccountDisplay,ml as AddFundsLink,$h as AssetBalance,zr as AssetSelector,pd as CheckIcon,Mr as ChevronIcon,ws as CloseIcon,mi as DEFAULT_LIQUIDITY_VENUES,wo as DetailRow,D0 as NATIVE_TOKEN_ADDRESS,Mi as ProviderLogin,di as SATSUMA_CITREA_CONFIG,M0 as SPICENET_NATIVE_CHAIN_ID,N0 as SPICE_COMBINED_FEE_RECIPIENT,P0 as SPICE_GAS_FEE_RECIPIENT,Ti as SPICE_PLATFORM_FEE_BPS,W0 as SPICE_PLATFORM_FEE_RECIPIENT,U0 as SPICE_SOLVER_ADDRESS,il as SearchInput,Kg as SelectChainModal,Gg as SpiceAccount,Lu as SpiceDeposit,A0 as SpiceFlowProvider,$t as SpiceFlowProviderContext,$g as SpiceLock,o0 as SpiceSupply,ol as SpiceWithdraw,Be as SpiceflowError,zo as Spinner,Hn as StatusBanner,dc as UNIV3_ARBITRUM_CONFIG,lc as UNIV3_BASE_CONFIG,cc as UNIV3_ETHEREUM_CONFIG,uc as UNIV3_ROBINHOOD_CONFIG,pc as UNIV3_ROBINHOOD_SUSHI_CONFIG,xc as UNIV4_BASE_CONFIG,vc as UNIV4_ROBINHOOD_CONFIG,Do as V4_NATIVE_CURRENCY,L0 as applySlippage,cs as areEquivalentOnChains,Io as assetCapability,be as assetPositionId,E0 as buildDarkPalette,F0 as buildLightPalette,pr as buildLiquidityVenues,qr as buildPayChainBatches,km as buildRoutedBatches,gs as buildSpicenetWithdrawalBatch,ba as buildSupplyChainBatches,q0 as buildUniV3SwapCalls,Vs as calculateBpsFee,gc as createAerodromeExactOutputVenue,is as createAerodromeVenue,ks as createExactOutputRegistry,wc as createLiquidityRegistry,pi as createSatsumaExactOutputVenue,ls as createSatsumaVenue,pi as createUniV3ExactOutputVenue,ls as createUniV3Venue,Bc as createUniV4ExactOutputVenue,Tc as createUniV4Venue,ja as duration,Fr as easing,rc as encodeUniV3ExactOutputCall,Yo as estimateFeePreview,Km as estimateRequiredGrossFunding,eh as estimateSupplyMaxAmount,tu as executePay,eu as executeSupply,Rr as fetchBalances,Go as findEquivalentOnChain,nt as font,Br as getAssetChainTokenCandidates,ac as getBestUniV3ExactOutputQuote,sc as getBestUniV3Quote,xt as getChainConfig,z0 as getChainIdsByNetwork,ro as getChainName,H0 as getEscrowContractAddress,sa as isExternalSource,Is as isMultiSourceFundingAsset,Q0 as isNativeToken,T0 as isSpiceflowError,V0 as isSpicenetChainId,fh as isSupportedSupplyAsset,Ui as limitOrderId,j0 as normalizeNativeTokenAddress,Xa as radius,qe as relayerService,so as resolveAssetTokenAddressOnChain,Mc as resolveFundedToken,Ss as resolveInputSupplySwapQuote,vm as resolveRoute,B0 as resolveTheme,oc as reverseUniV3Path,Lr as scaleTokenAmount,G0 as spicenetAbi,K0 as spicenetWithdrawalAbi,uo as transition,To as useAssetDisplay,r0 as useAssetInput,O0 as useIsUserWhitelisted,l0 as useLockDuration,d0 as useSmartWallet,u0 as useSpiceAccount,p0 as useSpiceAction,ca as useSpiceActionActivity,Yc as useSpiceAssets,on as useSpiceBrand,i0 as useSpiceConditionalIntents,Dr as useSpiceExecution,hr as useSpiceInventory,f0 as useSpiceLimitOrders,qu as useSpiceLock,c0 as useSpicePendingDeposits,As as useSpiceSupply,fu as useSupplyAssets,wu as useSupplyQuote,sl as useTokenLogo,Fo as useWallet,ms as useWalletBalances,lr as z};
|