PageSourceSearch

https://www.sushi.com/_next/static/chunks/30yo903jrpe7f.js

js sushi.com collected 2026-09-24 18:45:15 UTC 42,090 bytes, 36 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,467069,e=>{"use strict";var a=e.i(166065),t=e.i(170168);let s={[a.EvmChainId.APE]:"0xa2235d059f80e176d931ef76b6c51953eb3fbef4"},n=(0,t.addressMapToTokenMap)({symbol:"ApeUSD",name:"Ape USD",decimals:18},s);e.s(["APE_USD",0,n])},60681,e=>{"use strict";var a=e.i(166065),t=e.i(170168);let s={[a.EvmChainId.TATARA]:"0xa9012a055bd4e0edff8ce09f960291c09d5322dc",[a.EvmChainId.KATANA]:"0x00000000efe302beaa2b3e6e1b18d08d69a9012a",[a.EvmChainId.MONAD]:"0x00000000efe302beaa2b3e6e1b18d08d69a9012a"},n=(0,t.addressMapToTokenMap)({decimals:6,symbol:"AUSD",name:"AgoraDollar"},s);e.s(["AUSD",0,n])},971118,475290,e=>{"use strict";var a=e.i(166065),t=e.i(170168);let s={[a.EvmChainId.BLAST]:"0x4300000000000000000000000000000000000003"},n=(0,t.addressMapToTokenMap)({decimals:18,symbol:"USDB",name:"USD Blast"},s);e.s(["USDB",0,n],971118);let i={[a.EvmChainId.ROBINHOOD]:"0x5fc5360d0400a0fd4f2af552add042d716f1d168"},r=(0,t.addressMapToTokenMap)({decimals:6,symbol:"USDG",name:"Global Dollar"},i);e.s(["USDG",0,r],475290)},722589,e=>{"use strict";var a=e.i(166065),t=e.i(170168);let s={[a.EvmChainId.ARBITRUM]:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",[a.EvmChainId.OPTIMISM]:"0x01bff41798a0bcf287b996046ca68b395dbc1071",[a.EvmChainId.ROOTSTOCK]:"0x779ded0c9e1022225f8e0630b35a9b54be713736",[a.EvmChainId.MONAD]:"0xe7cd86e13ac4309349f30b3435a9d337750fc82d",[a.EvmChainId.MEGAETH]:"0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",[a.EvmChainId.XLAYER]:"0x779ded0c9e1022225f8e0630b35a9b54be713736"},n={...(0,t.addressMapToTokenMap)({decimals:6,symbol:"USD₮0",name:"USD₮0"},s)};e.s(["USDT0",0,n])},196665,734460,851285,30369,391133,978194,813945,e=>{"use strict";var a=e.i(166065),t=e.i(170168);let s={[a.EvmChainId.ARC]:"0xbef5f6d51cb62b58e6a8f77868681825c6fe21c1"},n=(0,t.addressMapToTokenMap)({decimals:6,symbol:"EURC",name:"EURC"},s);e.s(["EURC",0,n],196665);let i={[a.EvmChainId.ETHEREUM]:"0x853d955acef822db058eb8505911ed77f175b99e",[a.EvmChainId.FANTOM]:"0xdc301622e621166bd8e82f2ca0a26c13ad0be355",[a.EvmChainId.BSC]:"0x90c97f71e18723b0cf0dfa30ee176ab653e89f40",[a.EvmChainId.ARBITRUM]:"0x17fc002b466eec40dae837fc4be5c67993ddbd6f",[a.EvmChainId.AVALANCHE]:"0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64",[a.EvmChainId.POLYGON]:"0x45c32fa6df82ead1e2ef74d17b76547eddfaff89",[a.EvmChainId.HARMONY]:"0xfa7191d292d5633f702b0bd7e3e3bccc0e633200",[a.EvmChainId.BOBA]:"0xab2af3a98d229b7daed7305bb88ad0ba2c42f9ca",[a.EvmChainId.OPTIMISM]:"0x2e3d870790dc77a83dd1d18184acc7439a53f475",[a.EvmChainId.POLYGON_ZKEVM]:"0xff8544fed5379d9ffa8d47a74ce6b91e632ac44d"},r=(0,t.addressMapToTokenMap)({decimals:18,symbol:"FRAX",name:"Frax"},i);e.s(["FRAX",0,r],734460);let l={[a.EvmChainId.ETHEREUM]:"0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3",[a.EvmChainId.FANTOM]:"0x82f0b8b456c1a451378467398982d4834b6829c1",[a.EvmChainId.BSC]:"0xfe19f0b51438fd612f6fd59c1dbb3ea319f433ba",[a.EvmChainId.ARBITRUM]:"0xfea7a6a0b346362bf88a9e4a88416b77a57d6c2a",[a.EvmChainId.AVALANCHE]:"0x130966628846bfd36ff31a822705796e8cb8c18d",[a.EvmChainId.POLYGON]:"0x49a0400587a7f65072c87c4910449fdcc5c47242"},o=(0,t.addressMapToTokenMap)({decimals:18,symbol:"MIM",name:"Magic Internet Money"},l);e.s(["MIM",0,o],851285);let c={[a.EvmChainId.ZETACHAIN]:"0x0cbe0df132a6c6b4a2974fa1b7fb953cf0cc798a"},d=(0,t.addressMapToTokenMap)({decimals:6,symbol:"USDC.ETH",name:"ZetaChain ZRC20 USDC on ETH"},c);e.s(["ZETA_USDC_ETH",0,d],30369);let u={[a.EvmChainId.ZETACHAIN]:"0x7c8dda80bbbe1254a7aacf3219ebe1481c6e01d7"},h=(0,t.addressMapToTokenMap)({decimals:6,symbol:"USDT.ETH",name:"ZetaChain ZRC20 USDT on ETH"},u);e.s(["ZETA_USDT_ETH",0,h],391133);let m={[a.EvmChainId.BERACHAIN]:"0xfcbd14dc51f0a4d49d5e53c2e0950e0bc26d0dce"},f=(0,t.addressMapToTokenMap)({decimals:18,symbol:"HONEY",name:"Honey"},m);e.s(["BERACHAIN_HONEY",0,f],978194);let b={[a.EvmChainId.MEGAETH]:"0xfafddbb3fc7688494971a79cc65dca3ef82079e7"},v=(0,t.addressMapToTokenMap)({decimals:18,symbol:"USDm",name:"MegaUSD"},b);e.s(["MEGAETH_USDm",0,v],813945)},510013,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M4.25 5.5a.75.75 0 00-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0112.75 17h-8.5A2.25 2.25 0 012 14.75v-8.5A2.25 2.25 0 014.25 4h
15a.75.75 0 010 1.5h-5z",clipRule:"evenodd"}),a.createElement("path",{fillRule:"evenodd",d:"M6.194 12.753a.75.75 0 001.06.053L16.5 4.44v2.81a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.553l-9.056 8.194a.75.75 0 00-.053 1.06z",clipRule:"evenodd"}))});e.s(["ArrowTopRightOnSquareIcon",0,t],510013)},641432,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M11.03 3.97a.75.75 0 010 1.06l-6.22 6.22H21a.75.75 0 010 1.5H4.81l6.22 6.22a.75.75 0 11-1.06 1.06l-7.5-7.5a.75.75 0 010-1.06l7.5-7.5a.75.75 0 011.06 0z",clipRule:"evenodd"}))});e.s(["ArrowLeftIcon",0,t],641432)},673079,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))});e.s(["ArrowLeftIcon",0,t],673079)},981392,e=>{"use strict";var a=e.i(237625),t=e.i(475391),s=e.i(798843),n=e.i(412672);e.s(["Explainer",0,({icon:e,iconProps:i,children:r})=>(0,a.jsx)(n.TooltipProvider,{children:(0,a.jsxs)(n.Tooltip,{delayDuration:0,children:[(0,a.jsx)(n.TooltipTrigger,{asChild:!0,children:e?(0,a.jsx)(e,{className:(0,s.default)(i?.className,"self-center"),...i}):(0,a.jsx)(t.InformationCircleIcon,{width:16,height:16,className:(0,s.default)(i?.className,"self-center text-muted-foreground")})}),(0,a.jsx)(n.TooltipContent,{className:"bg-background !p-4 shadow-xl max-w-[20rem]",children:r})]})})])},104339,83060,e=>{"use strict";var a,t=e.i(360783);let s=(0,e.i(4673).initGraphQLTada)(),n=s(`
2  fragment IssueFields on ScannerProjectScanDeclaration @_unmask {
3    scwId
4    scwTitle
5    scwDescription
6    issues {
7      id
8      confidence
9      impact
10      description
11      additionalData {
12        title
13        description
14      }
15    }
16  }
17`);s(`query TokenScanner($address: String!, $chainId: Int!) {
18    scannerProject(where: {address: $address, chainId: $chainId}) {
19      aiScore
20      coreIssues {
21        ...IssueFields
22      }
23      generalIssues {
24        ...IssueFields
25      }
26      stats {
27        low
28        medium
29        high
30        critical
31        total
32        percentage
33        scammed
34      }
35    }
36  }`,[n]);let i=[1,56,137,250,42161,43114,25,10,8453,59144];var r=e.i(355847),l=e.i(166065);let o=[l.EvmChainId.AVALANCHE,l.EvmChainId.BSC,l.EvmChainId.FANTOM,l.EvmChainId.GNOSIS,l.EvmChainId.HARMONY,l.EvmChainId.ETHEREUM,l.EvmChainId.ARBITRUM,l.EvmChainId.OPTIMISM,l.EvmChainId.ZKSYNC_ERA,l.EvmChainId.LINEA,l.EvmChainId.BASE,l.EvmChainId.POLYGON,l.EvmChainId.SCROLL,l.EvmChainId.BLAST,l.EvmChainId.CRONOS,l.EvmChainId.MANTLE,l.EvmChainId.MANTA,l.EvmChainId.ZKLINK,l.EvmChainId.BERACHAIN,l.EvmChainId.SONIC,l.EvmChainId.UNICHAIN,l.EvmChainId.WORLDCHAIN,l.EvmChainId.MONAD,l.EvmChainId.PLASMA,l.EvmChainId.ROBINHOOD],c=e=>o.includes(e);e.s(["isTokenSecurityChainId",0,c],83060);var d=e.i(420590),u=e.i(887754);let h=u.union([u.enum(["0","1"]),u.literal(0),u.literal(1),u.boolean(),u.undefined()]).transform(e=>"0"!==e&&0!==e&&!1!==e&&("1"===e||1===e||!0===e||void 0)).optional(),m=u.preprocess(e=>e&&"object"==typeof e?"status"in e?e.status:void 0:e,h),f=u.object({is_open_source:h,is_proxy:h,is_mintable:h,can_take_back_ownership:h,owner_change_balance:h,hidden_owner:h,selfdestruct:h,external_call:h,gas_abuse:h,buy_tax:u.optional(u.preprocess(e=>""===e?void 0:"0"!==e,u.optional(u.boolean()))).prefault(void 0),sell_tax:u.optional(u.preprocess(e=>""===e?void 0:"0"!==e,u.optional(u.boolean()))).prefault(void 0),cannot_buy:h,cannot_sell_all:h,slippage_modifiable:h,is_honeypot:h,transfer_pausable:h,is_blacklisted:h,is_whitelisted:h,is_anti_whale:h,trading_cooldown:h,is_true_token:h,is_airdrop_scam:h,trust_list:h}).transform(({cannot_buy:e,is_true_token:a,cannot_sell_all:t,...s})=>({...s,is_buyable:void 0!==e?!e:void 0,is_fake_token:void 0!==a?!a:void 0,is_sell_limit:t})),b=u.object({mintable:m,freezable:m,metadata_mutable:m,is_mintable:m,is_freezable:m,is_mutable_metadata:m,is_metadata_mutable:m,is_verified:m,is_trust_list:m,is_trusted:m,is_scam:m,trusted_token:m}).partial().transform(e=>({is_open_source:e.is_verified,is_proxy:void 0,is_mintable:e.is_mintable??e.mintable,can_take_back_ownership:void 0,owner_
36change_balance:void 0,hidden_owner:void 0,selfdestruct:void 0,external_call:void 0,gas_abuse:void 0,buy_tax:void 0,sell_tax:void 0,is_buyable:void 0,is_sell_limit:void 0,slippage_modifiable:void 0,is_honeypot:void 0,transfer_pausable:e.is_freezable??e.freezable,is_blacklisted:void 0,is_whitelisted:void 0,is_anti_whale:void 0,trading_cooldown:void 0,is_fake_token:e.is_scam,is_airdrop_scam:void 0,trust_list:e.is_trust_list??e.is_trusted??e.is_verified??e.trusted_token})),v={is_open_source:e=>!1===e,is_proxy:e=>!0===e,is_mintable:e=>!0===e,can_take_back_ownership:e=>!0===e,owner_change_balance:e=>!0===e,gas_abuse:e=>!0===e,hidden_owner:e=>!0===e,selfdestruct:e=>!0===e,external_call:e=>!0===e,trust_list:e=>!1===e,buy_tax:e=>!0===e,sell_tax:e=>!0===e,is_buyable:e=>!1===e,is_sell_limit:e=>!0===e,slippage_modifiable:e=>!0===e,is_honeypot:e=>!0===e,transfer_pausable:e=>!0===e,is_blacklisted:e=>!0===e,is_whitelisted:e=>!0===e,is_anti_whale:e=>!0===e,trading_cooldown:e=>!0===e,is_fake_token:e=>!0===e,is_airdrop_scam:e=>!0===e};function p(e){return Object.hasOwn(v,e)}let E=async e=>{let a=new URL(`https://api.gopluslabs.io/api/v1/token_security/${e.chainId}`);a.searchParams.set("contract_addresses",e.address);let t=await fetch(a);if(!t.ok)throw Error(`Error: ${t.statusText}`);let s=await t.json();return f.parse(s.result[e.address.toLowerCase()])},C=async e=>{let a=new URL("https://api.gopluslabs.io/api/v1/solana/token_security");a.searchParams.set("contract_addresses",e.address);let t=await fetch(a);if(!t.ok)throw Error(`Error: ${t.statusText}`);let s=await t.json();return b.parse(s.result?.[e.address])};var w=((a=w||{}).VERIFIED_CONTRACT="185",a.UPGRADABLE_CONTRACT="193",a.IS_MINTABLE="186",a.VULNERABLE_OWNERSHIP="230",a.HAS_BALANCE_CONTROLS="220",a.HIDDEN_OWNERSHIP="231",a.SELF_DESTRUCT="106",a.HAS_EXTERNAL_CALLS="210-b",a.GAS_ABUSE="179",a.TRANSFER_FEES="209",a.TRANSFER_LIMITS="211",a.TRANSFER_PAUSABLE="189",a.HAS_BLACKLIST="208",a.HAS_WHITELIST="237",a.TRANSFER_COOLDOWN="219",a.AIRDROP="10004",a);let I=async e=>{let a=new URL("/api/token-scanner",window.location.origin);a.searchParams.set("chainId",`${e.chainId}`),a.searchParams.set("address",`${e.address}`);let t=await fetch(a);if(!t.ok)throw Error(`Error: ${t.statusText}`);let s=await t.json(),n=[...s.coreIssues??[],...s.generalIssues??[]].reduce((e,a)=>(a?.scwId&&(e[a.scwId]=a),e),{});function i(e){let a=n[e]?.issues;return a?a.length>0:void 0}let r=i("185"),l=i("211");return{is_open_source:void 0===r?void 0:!r,is_proxy:i("193"),is_mintable:i("186"),can_take_back_ownership:i("230"),owner_change_balance:i("220"),hidden_owner:i("231"),selfdestruct:i("106"),external_call:i("210-b"),gas_abuse:i("179"),buy_tax:i("209")??!1,sell_tax:i("209")??!1,transfer_pausable:i("189"),is_blacklisted:i("208"),is_whitelisted:i("237"),trading_cooldown:i("219"),is_airdrop_scam:i("10004"),is_buyable:void 0===l?void 0:!l,is_sell_limit:l,is_fake_token:void 0,slippage_modifiable:void 0,is_honeypot:void 0,is_anti_whale:void 0,trust_list:void 0}},A=async e=>{var a;if(!e)throw Error();let t=(0,d.isSvmChainId)(e.chainId)?C(e):c(e.chainId)?E(e):Promise.resolve(void 0),s=(a=e.chainId,i.includes(a))?I(e):Promise.resolve(void 0),[n,r]=await Promise.allSettled([t,s]),l="fulfilled"===n.status?n.value:void 0,o="fulfilled"===r.status?r.value:void 0,u=Array.from(new Set([...Object.keys(l??{}).filter(p),...Object.keys(o??{}).filter(p)])).reduce((e,a)=>(e[a]={goPlus:l?.[a],deFi:o?.[a]},e),{});return{data:u,isAvailable:!!(l||o),isHoneypot:u?.is_honeypot?.goPlus||u?.is_honeypot?.deFi,isFoT:u?.buy_tax?.goPlus||u?.buy_tax?.deFi||u?.sell_tax?.goPlus||u?.buy_tax?.deFi,isRisky:Object.entries(u||{}).some(([e,a])=>{if(p(e)&&(v[e](a.deFi)||v[e](a.goPlus)))return!0})}};e.s(["TokenSecurityLabel",0,{is_open_source:"Contract Verified",is_proxy:"Proxy Contract",is_mintable:"Mintable",can_take_back_ownership:"Reclaimable Ownership",owner_change_balance:"Balance Modifiable",hidden_owner:"Hidden Owner",selfdestruct:"Includes selfdestruct()",external_call:"Includes External Call",gas_abuse:"Abuses Gas",buy_tax:"Buy Tax",sell_tax:"Sell Tax",is_buyable:"Buyable",is_sell_limit:"Sell Limit",slippage_modifiable:"Slippage Modifiable",is_honeypot:"Honeypot",transfer_pausable:"Transfer Pausable",is_blacklisted:"Includes Blacklist",is_whitelisted:"Includes Whitelist",is_anti_whale:"Anti-whale Mechanism",trading_cooldown:"Trading Cooldown",is_fake_token:"Fake Token",is_airdrop_scam:"Airdrop Scam",trust_list:"Trusted"},"TokenSecurityMessage",0,{is_open_source:"Whether or not this token contract is open source. You can check the contract code for details. Unsourced token contracts are likely to have malicious functions to defraud their users of their assets.",is_proxy:"Whether or not there is a proxy in the contract. The proxy contract means contract owner can modifiy the function of the token and possibly effect the price.",is_mintable:"Whether or not this contract contains a visible mint function. Hidden mint functions may increase the amount of tokens in circulation and effect the price of the token.",can_take_back_ownership:"Whether or not this contract contains a function that allows the project owner to regain ownership even after relinquishing it.",owner_change_balance:"Whether or not the contract owner is found to have the authority to modify the balance of tokens at other addresses.",hidden_owner:"Whether or not a hidden owner address was found for the token. For contract with a hidden owner, developer can still manipulate the contract even if the ownership has been abandoned.",selfdestruct:"If a self-destruct function exists and is triggered, the contract will be destroyed, all functions will be unavailable, and all related assets will be erased.",external_call:"External calls would cause this token contract to be highly depen
36dent on other contracts, which may be a potential risk.",gas_abuse:"Indicates whether any gas abuse activity has been detected in this contract.",buy_tax:"Whether or not this token contract includes a buy tax. A buy tax will cause the actual token value received to be less than the amount paid. An excessive buy tax may lead to heavy losses.",sell_tax:"Whether or not this token contract includes a sell tax. A sell tax will cause the actual value received when selling a token to be less than expected, and too much sell tax may lead to large losses.",is_buyable:"Whether or not this token can be purchased directly by users. Generally, these unbuyable tokens would be found in Reward Tokens. Such tokens are issued as rewards for some on-chain applications.",is_sell_limit:"Whether or not a user can sell all of their tokens in a single sale.",slippage_modifiable:"Whether or not the contract owner can modify the buy tax or sell tax of the token. This may cause some losses, especially since some contracts have unlimited modifiable tax rates, which would make the token untradeable.",is_honeypot:"Whether or not the token is a honeypot, meaning that the token maybe cannot be sold because of the token contract's function, or the token contains malicious code.",transfer_pausable:"Indicating the contract owner's ability to suspend trading, preventing users from selling, except for those with special authority.",is_blacklisted:"Whether or not a blacklist function is included. If there is a blacklist, some addresses may not be able to trade normally (honeypot risk).",is_whitelisted:"Whether or not a whitelist function is included. If there is a whitelist, some addresses may not be able to trade normally (honeypot risk).",is_anti_whale:"Whether the contract has the function to limit the maximum amount of transactions or the maximum token position for a single address.",trading_cooldown:"Whether the contract has a trading-cool-down mechanism that can limit the minimum time between two transactions.",is_fake_token:"Whether or not this token is fake or real.",is_airdrop_scam:"Whether or not this token is an airdrop scam",trust_list:"Whether or not this token is a famous and trustworthy one."},"isTokenSecurityIssue",0,v,"useTokenSecurity",0,e=>{let a,s,n,i=(0,t.c)(8),{currency:l,enabled:o}=e,c=l?.id;i[0]!==c?(a=["useTokenSecurity",c],i[0]=c,i[1]=a):a=i[1],i[2]!==l?(s=()=>A(l),i[2]=l,i[3]=s):s=i[3];let d=!!((void 0===o||o)&&l);return i[4]!==a||i[5]!==s||i[6]!==d?(n={queryKey:a,queryFn:s,enabled:d,staleTime:9e5,gcTime:864e5},i[4]=a,i[5]=s,i[6]=d,i[7]=n):n=i[7],(0,r.useQuery)(n)}],104339)},215523,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))});e.s(["ExclamationTriangleIcon",0,t],215523)},989703,e=>{"use strict";var a=e.i(237625),t=e.i(360783),s=e.i(215523),n=e.i(577920);let i=n.forwardRef(function({title:e,titleId:a,...t},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":a},t),e?n.createElement("title",{id:a},e):null,n.createElement("path",{d:"M7.493 18.75c-.425 0-.82-.236-.975-.632A7.48 7.48 0 016 15.375c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75 2.25 2.25 0 012.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23h-.777zM2.331 10.977a11.969 11.969 0 00-.831 4.398 12 12 0 00.52 3.507c.26.85 1.084 1.368 1.973 1.368H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 01-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227z"}))});var r=e.i(981392),l=e.i(346796),o=e.i(211394),c=e.i(259911);let d=e=>(0,a.jsxs)("svg",{viewBox:"0 0 197 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m118.81 5.257 57.88 32.276C189.258 44.542 197 57.495 197 71.512v64.553c0 14.018-7.742 26.97-20.31 33.979l-57.88 32.277c-12.568 7.008-28.052 7.008-40.62 0l-57.88-32.277C7.742 163.035 0 150.083 0 136.065V71.512c0-14.017 7.742-26.97 20.31-33.979L78.19 5.257c12.568-7.01 28.052-7.01 40.62 0",fill:"#1452F0"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M152.046 97.589q0 1.451-.074 2.863h-23.528q.145-1.414.145-2.864c0-13.717-8.264-24.372-24.525-24.372H89.537v27.236H66.61V53.239h37.32c27.989 0 48.115 16.78 48.115 44.35M44.953 153.722v-43.583H67.88v23.468h14.397c15.122 0 24.103-10.715 24.636-23.468h23.473c-.575 27.045-20.522 43.583-47.976 43.583z",fill:"#F5F8FF"})]});var u=e.i(194032);let h=e=>(0,a.jsx)(u.default,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAA8CAYAAADbl8wjAAAAAXNSR0IArs4c6QAADi1JREFUeF7tWgl0lMd9n5nv2m/vS7s6OCSEBFgcRhY3xujZcQK84KOuXMcOdmjt9LklTh5183Ddlry0TmnquEkcx+YZ26EOroWp8bOKI3AlruBQg+1wUzAIVRKSdrWXvj2+a6Zv9pA+WQKxEgq8WvPevv12do7//L7//P7HDATjZUgE4DguQyMwDswVNGMcmHFg8iONcY0Z15hxjelDwNf1nt/MMbWIBWadAVDXtVCbTdkDQF0cQECuBtX/661kv/Dv65Jy/HlVUTkKAifwSWKzrNaK65oAhPhLC4zj/La/TijJ51RVZdLA8JwsmM2PSJP+5D++1MDYzm97Oqkkf6QZgGF5/uHklEfe/XIB07PL7m6TFutmzk5UGRFGX5nQkg/rmoaoxrAsq4pm0wssJMcwghpmSHJ98SMNG4fYVmPPMaSZBduByVIArG6F92pJ1QUZTkSsxmpQhyCt5JmiAT3zQOvYzKOe/l/P/E4/a331LIJ6iAWfgapVnbTS8fnOu9Rk/DUVql4ACCAEsxrRWYBxep0QIcIwSIUQYAAhQQjKiyrKivbC2tQX+WbsgNmzx1EIhRKY0qZDjGYSTqlQOKVS43QvRqqVMIQhgEAASd
36o8QEiXQh/StdlCAKDP9IOyRiTbntZBQDQB2DZE5qx+nS7UfWrnn8Vx9OcylgVAMmAMV26bXWM5CmsSYw/MoXqxLOCuSLFgFWaV5YqQqkqICb8iJBlCNeQ6FhaYNIvuWRet/vrLdNiC0w2P9mqhl2Qii2kw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Udy6W+cEH99aECfu7XZIv4Pi9NS42aCL8z+bH553KG6DXm00VVuHp9gkX/zZhkVjKczkQnGF/myVW/Gj76gVNNw0wVJBZr++ZBSypzaendi4w+jY5IRFGQJR5Yo+aVXuvJWRJmP7XpPBnoM60EITS+Vrq2aTTDjQMYDLfaSKGhGgcFjVWq47ao8uDvi4XHnCNBAJ/Z2kTk7I82XHP0rM3FTCUb2pebqpJeZIvnC3vXGSMvI2CUsPD6ghwKgt4mcOIILpGkr4tlIsic5Yoqw+Zs2sMNEZnZJOMvnidRJDNmrer5J/aGcuPwcqFg49qRolU3lZpsBmuZ6pf9VeyQvLZSyXhB4IuiR8QGw3qQI+Msqf2w8yeuWuVaW4sCLPEGyj6jJXs3+m4b+mhsYibRg9MVuJF/3CoxORRvn3ZH/3TjsJIYcxCSfn6F3o654h6umxR5w8vKeBXoK522HPokUhx3YChk0/bdNDmLpBnpURlbciRWNHj7C2ULPKoQ4DcwlidI86Qu9OUtL4QYdQ3pBUrgnmT+TWidF2ByRAGQZWb97ptZnkBgKA2Iaq3R63JGT0uySoLI71lBYktZk85Ys6PoM6/GgmT3b1r7gyNFSjZ/XuNEObbjDSzk37J2rzWVCGvcFMxq05NCto9Ibc0J+SU7LKgQjzURSPDPPQ83Bw3q46w8xQnm36KCPvbC5hr+0Pcnrj+GjOYneHy5YCZOxdw5kjIqzOyDwDRhhnM0cP83A0g+q2xAPTVMfSYn4YFMKEQ1Cn7HG271gGFXnPJ9x2NpP0fAJiRiHXj+4wDc4V3MA7MODD5bc9xjRnXmHGNyQ+BK7T+P5TcIJeu9k/GAAAAAElFTkSuQmCC",alt:"GoPlus",...e});var m=e.i(104339);function f(e){return void 0===e||"boolean"==typeof e}function b(e,t){return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("span",{className:"w-full max-w-[120px]",children:(0,a.jsx)(o.SkeletonText,{fontSize:"sm"})})}),(0,a.jsx)("td",{children:(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("span",{className:"w-full max-w-[40px]",children:(0,a.jsx)(o.SkeletonText,{fontSize:"sm"})})})}),(0,a.jsx)("td",{children:(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("span",{className:"w-full max-w-[40px]",children:(0,a.jsx)(o.SkeletonText,{fontSize:"sm"})})})})]},`loading-${t}`)}e.s(["TokenSecurityView",0,e=>{let n,o,u,v,p,E,C,w,I,A,x,g,T,_,S,y=(0,t.c)(33),{token:k,tokenSecurity:M,isTokenSecurityLoading:N}=e,R=M?.data;y[0]!==R?(n=function(e,a){let t=[],s=[];for(let[n,i]of Object.entries(e||{}))Object.hasOwn(a,n)&&i&&"object"==typeof i&&f(Reflect.get(i,"deFi"))&&f(Reflect.get(i,"goPlus"))&&(a[n](i.deFi)||a[n](i.goPlus)?t.push(n):s.push(n));return{rows:[...t.map(e=>({key:e,isIssue:!0})),...s.map(e=>({key:e,isIssue:!1}
36))],issueCount:t.length}}(R,m.isTokenSecurityIssue),y[0]=R,y[1]=n):n=y[1];let{rows:L,issueCount:D}=n,U=N?"bg-muted":D>0?"bg-red/20 text-red":"bg-green/20 text-green";y[2]!==U?(o=(0,c.classNames)("inline-flex items-center px-2 py-1.5 gap-1 rounded-full",U),y[2]=U,y[3]=o):o=y[3],y[4]!==N||y[5]!==D?(u=N?(0,a.jsx)(l.Loader,{width:16,height:16}):D>0?(0,a.jsx)(s.ExclamationTriangleIcon,{width:16,height:16}):(0,a.jsx)(i,{width:16,height:16}),v=N?(0,a.jsx)("span",{className:"text-sm",children:"Pending"}):(0,a.jsxs)("span",{className:"text-sm",children:[D," issue",1!==D?"s":""," found"]}),y[4]=N,y[5]=D,y[6]=u,y[7]=v):(u=y[6],v=y[7]),y[8]!==o||y[9]!==u||y[10]!==v?(p=(0,a.jsx)("th",{className:"text-left !font-normal",children:(0,a.jsxs)("div",{className:o,children:[u,v]})}),y[8]=o,y[9]=u,y[10]=v,y[11]=p):p=y[11];let O=`https://gopluslabs.io/token-security/${k?.chainId}/${k?.address}`;y[12]===Symbol.for("react.memo_cache_sentinel")?(C=(0,a.jsx)(h,{width:28,height:24}),E=(0,a.jsx)("span",{className:"font-semibold text-sm",children:"GoPlus"}),y[12]=E,y[13]=C):(E=y[12],C=y[13]),y[14]!==O?(w=(0,a.jsx)("th",{className:"text-center",children:(0,a.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:O,className:"inline-flex flex-col items-center",children:[C,E]})}),y[14]=O,y[15]=w):w=y[15];let j=`https://de.fi/scanner/contract/${k?.address}`;return y[16]===Symbol.for("react.memo_cache_sentinel")?(I=(0,a.jsx)(d,{width:24,height:24}),A=(0,a.jsx)("span",{className:"font-semibold text-sm",children:"De.Fi"}),y[16]=I,y[17]=A):(I=y[16],A=y[17]),y[18]!==j?(x=(0,a.jsx)("th",{className:"text-center",children:(0,a.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:j,className:"inline-flex flex-col items-center",children:[I,A]})}),y[18]=j,y[19]=x):x=y[19],y[20]!==w||y[21]!==x||y[22]!==p?(g=(0,a.jsx)("thead",{className:"[&>tr:last-child]:border-b-[12px] [&>tr:last-child]:border-b-transparent",children:(0,a.jsxs)("tr",{className:"whitespace-nowrap",children:[p,w,x]})}),y[20]=w,y[21]=x,y[22]=p,y[23]=g):g=y[23],y[24]!==N||y[25]!==L||y[26]!==M?.data?(T=N?Array.from({length:8}).map(b):L.map(e=>{let{key:t,isIssue:n}=e,l=M?.data?.[t]?.goPlus,o=M?.data?.[t]?.deFi,d=void 0!==l&&m.isTokenSecurityIssue[t](l),u=void 0!==o&&m.isTokenSecurityIssue[t](o);return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(r.Explainer,{iconProps:{className:"text-muted-foreground"},children:m.TokenSecurityMessage[t]}),(0,a.jsx)("span",{className:(0,c.classNames)("text-sm",!n&&"font-medium"),children:m.TokenSecurityLabel[t]})]})}),(0,a.jsx)("td",{className:"text-center",children:void 0===l?"-":(0,a.jsxs)("div",{className:"inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:l?"Yes":"No"}),d?(0,a.jsx)(s.ExclamationTriangleIcon,{width:14,height:14,className:"fill-red"}):(0,a.jsx)(i,{width:14,height:14,className:"fill-green"})]})}),(0,a.jsx)("td",{className:"text-center",children:void 0===o?"-":(0,a.jsxs)("div",{className:"inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:o?"Yes":"No"}),u?(0,a.jsx)(s.ExclamationTriangleIcon,{width:14,height:14,className:"fill-red"}):(0,a.jsx)(i,{width:14,height:14,className:"fill-green"})]})})]},t)}),y[24]=N,y[25]=L,y[26]=M?.data,y[27]=T):T=y[27],y[28]!==T?(_=(0,a.jsx)("tbody",{className:"[&>tr:not(:last-child)]:border-b-[12px] [&>tr:not(:last-child)]:border-b-transparent",children:T}),y[28]=T,y[29]=_):_=y[29],y[30]!==g||y[31]!==_?(S=(0,a.jsx)("div",{className:"w-full overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full table-auto border-collapse ",children:[g,_]})}),y[30]=g,y[31]=_,y[32]=S):S=y[32],S}],989703)},128038,e=>{"use strict";e.s(["erc20Abi_balanceOf",0,[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}]])},574770,497945,329835,224829,e=>{"use strict";var a=e.i(237625),t=e.i(577920),s=e.i(695018),n=e.i(903511);class i extends Map{get(e){return super.get(e.toLowerCase())}has(e){return super.has(e.toLowerCase())}set(e,a){return super.set(e.toLowerCase(),a)}delete(e){return super.delete(e.toLowerCase())}}e.s(["LowercaseMap",0,i],497945);var r=e.i(128038),l=e.i(166065);let o=[{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"getEthBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"}];var c=e.i(691482),d=e.i(963670),u=e.i(163616);function h(e,a){return e.account===a.account&&e.generation===a.generation}let m=(0,s.default)("30s");var f=e.i(907982);let b=(0,s.default)("5m"),v=b-(0,s.default)("15s");function p(e){return(Array.isArray(e)?e:[e]).map(E)}function E(e){return"string"==typeof e?(0,f.getChainIdAddressFromId)(e):e}function C(e){return e.lastUpdated+v<Date.now()}function w(e,a){let t=e.chains.get(a);if(!t){let s={chainId:a,isFetching:!1,failureCount:0,lastError:null,activeTokens:new i,balanceMap:new i};e.chains.set(a,s),t=e.chains.get(a)}return t}function I(e,a){switch(a.type){case"INCREMENT_TOKEN":{let t=p(a.payload);if(0===t.length)return e;return t.forEach(a=>{let{chainId:t,address:s}=a,n=w(e,t),i=n.activeTokens.get(s)||0;n.activeTokens.set(s,i+1)}),{...e}}case"DECREMENT_TOKEN":{let t=p(a.payload);if(0===t.length)return e;return t.forEach(a=>{let{chainId:t,address:s}=a,n=w(e,t),i=n.activeTokens.get(s)||0;0!==i&&(1===i?(n.activeTokens.delete(s),n.balanceMap.delete(s)):n.activeTokens.set(s,i-1))}),{...e}}
36case"UPDATE_ACCOUNT":return e.chains.forEach(e=>{e.balanceMap.clear()}),{...e,account:a.payload};case"REFRESH":return{...e}}}e.s(["STALE_TIME",0,v,"STALE_WHILE_REVALIDATE",0,b],329835),e.s(["getTokenIds",0,p,"isBalanceStale",0,C,"isBalanceStaleWhileRevalidate",0,function(e){return e.lastUpdated+b<Date.now()}],224829);let A=(0,t.createContext)({});e.s(["BalanceProvider",0,function({children:e}){let{address:i}=(0,u.useConnection)(),f=(0,t.useRef)({account:i,generation:0});f.current.account!==i&&(f.current={account:i,generation:f.current.generation+1});let[b,v]=(0,t.useReducer)(I,{account:i,chains:new Map}),p=(0,d.useConfig)(),E=(0,t.useCallback)(e=>{v({type:"INCREMENT_TOKEN",payload:e})},[]),x=(0,t.useCallback)(e=>{v({type:"DECREMENT_TOKEN",payload:e})},[]),g=(0,t.useCallback)(async(e,a)=>{let t=w(b,e);if(t.isFetching||!b.account||!function({failureCount:e,force:a,lastErrorAt:t,now:n}){return!!a||!t||n>=t+(e<=0?0:Math.min(2**(e-1)*(0,s.default)("1s"),m))}({failureCount:t.failureCount,force:a?.force??!1,lastErrorAt:t.lastError?.timestamp,now:Date.now()}))return;t.isFetching=!0;let i={account:b.account,generation:f.current.generation};try{let a=Array.from(t.activeTokens.keys()).filter(e=>e!==n.NativeAddress),s=p.getClient({chainId:e}),d=a.map(e=>({address:e,functionName:"balanceOf",args:[b.account],abi:r.erc20Abi_balanceOf})),u=(0,l.getEvmChainById)(e).viemChain.contracts.multicall3.address;u&&d.push({address:u,functionName:"getEthBalance",args:[b.account],abi:o});let m=await (0,c.multicall)(s,{contracts:d,allowFailure:!0});if(!h(i,f.current))return;m.forEach((s,i)=>{let r=a[i];if(r||(r=n.NativeAddress),"failure"===s.status){console.warn(`Failed to fetch balance for ${r} on chain ${e}`);let a=t.balanceMap.get(r);(!a||C(a))&&t.balanceMap.set(r,{amount:BigInt(-1),lastUpdated:Date.now()});return}t.balanceMap.set(r,{amount:s.result,lastUpdated:Date.now()})}),t.failureCount=0,t.lastError=null}catch(a){if(!h(i,f.current))return;t.failureCount+=1,t.lastError={message:a instanceof Error?a.message:String(a),timestamp:Date.now()},console.warn(`Failed to fetch balances on chain ${e}`,a)}finally{t.isFetching=!1,v({type:"REFRESH"})}},[b,p]);(0,t.useEffect)(()=>{v({type:"UPDATE_ACCOUNT",payload:i})},[i]);let T=(0,t.useCallback)(()=>{b.chains.forEach((e,a)=>g(a))},[b,g]);(0,t.useEffect)(()=>(document.addEventListener("focus",T),()=>document.removeEventListener("focus",T)),[T]);let _=(0,t.useCallback)(e=>{let a=b.chains.get(e);if(a)for(let t of Array.from(a.activeTokens.keys())){let s=a.balanceMap.get(t);if(!s||C(s)){g(e);break}}},[b,g]),S=(0,t.useCallback)(()=>{b.chains.forEach((e,a)=>_(a))},[b,_]);(0,t.useEffect)(()=>{let e=setInterval(S,(0,s.default)("1s"));return S(),()=>clearInterval(e)},[S]);let y=(0,t.useMemo)(()=>({incrementToken:E,decrementToken:x,refetchChain:g}),[E,x,g]);return(0,a.jsx)(A.Provider,{value:{state:b,mutate:y},children:e})},"BalanceProviderContext",0,A,"balanceReducer",0,I,"useBalanceProvider",0,function(){let e=(0,t.useContext)(A);if(!e)throw Error("useBalanceProvider must be used within a BalanceProvider");return e}],574770)},920703,e=>{"use strict";e.s(["contractAddresses",0,{FACTORY:"CD3KRKGDRVWPXVB3VXLUMQKMX6XZ6Q2H334IVZD4XXNAMKSRVQL5GLYF",LEGACY_FACTORY:"CCRSMJDITH3VK5QOGYCVZDAKIY5GL3RCG4TCVLIAVB662IW2V5KJGZGF",ROUTER:"CDMIM23WOUL5CZBKX3GOA3V5R5AMVIMTCP52KCDQORWELAPLJ27WZCHL",POOL_LENS:"CASKWJSINHFW7BF7RUOA4E2FP6B2TYRKFX2UOPWLCPOOPUR6UU3G2RWC",POSITION_MANAGER:"CARTUL5AWDZYBSN7HUUJZSKCAKCIAKM7M54Z76G6KRYCK4XPR3OHUQZ4",LEGACY_POSITION_MANAGER:"CC5CQHSGZEVKPDLMYTJYGUBDL5UW4NBMTRQ5Y43YDBJTJZKMZMKCEEDU",ZAP_ROUTER:"CAS3HJ4GNGJBRI2C4YY3JB6J7Q6RIIA56XHRAI2TWYV4GAROB6SZMLNG",TOKENS:{XLM:"CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA"}}])},790525,e=>{"use strict";var a=e.i(654520),t=e.i(166065),s=e.i(20929),n=e.i(633156),i=e.i(102771),r=e.i(94970),l=e.i(356354),o=e.i(39523),c=e.i(420590),d=e.i(139070),u=e.i(186702),h=e.i(187427);function m(e,a){if((0,t.isEvmChainId)(e)||(0,c.isSvmChainId)(e)){var s;return s={...a,metadata:{approved:a.approved,...a.approvalStatus?{approvalStatus:a.approvalStatus}:{}}},(0,t.isEvmChainId)(e)?new n.EvmToken({...s,chainId:e}):(0,i.isMvmChainId)(e)?new r.MvmToken({...s,chainId:e}):(0,c.isSvmChainId)(e)?new u.SvmToken({...s,chainId:e}):(0,l.isStellarChainId)(e)?new o.StellarToken({...s,chainId:e}):void(0,h.assertNever)(e,`getTokenFor, unsupported chainId: ${e}`)}if((0,l.isStellarChainId)(e))return new o.StellarToken({...a,address:a.address,issuer:a.stellarMetadata?.issuer??void 0,metadata:{approved:a.approved,...a.approvalStatus?{approvalStatus:a.approvalStatus}:{},domain:a.stellarMetadata?.domain??void 0}});throw Error(`Unsupported token list chainId: ${e}`)}e.s(["createTokenListCurrency",0,function(e,n){if(((0,t.isEvmChainId)(e)||(0,c.isSvmChainId)(e))&&n.address===(0,a.getNativeAddress)(e)){var i={approved:!0};if((0,t.isEvmChainId)(e)){let a=(0,t.getEvmChainById)(e);
36return new s.EvmNative({chainId:e,symbol:a.viemChain.nativeCurrency.symbol,name:a.viemChain.nativeCurrency.name,decimals:a.viemChain.nativeCurrency.decimals,metadata:i})}if((0,c.isSvmChainId)(e)){let a=(0,c.getSvmChainById)(e);return new d.SvmNative({chainId:e,symbol:a.nativeCurrency.symbol,name:a.nativeCurrency.name,decimals:a.nativeCurrency.decimals,metadata:i})}return void(0,h.assertNever)(e,`getNativeFor, unsupported chainId: ${e}`)}return m(e,n)},"createTokenListToken",0,m],790525)},810526,e=>{"use strict";e.i(202300),e.s([])},659860,855197,e=>{"use strict";var a=e.i(360783),t=e.i(356354),s=e.i(420590);function n(e){return(0,t.isStellarChainId)(e)?"stellar":(0,s.isSvmChainId)(e)?"svm":"evm"}e.s(["getNamespaceForChainId",0,n],855197),e.i(810526);var i=e.i(202300);e.s(["useAccount",0,function(e){let t,s,r=(0,a.c)(6),{connections:l}=(0,i.useWalletContext)(),o="number"==typeof e?e:void 0;r[0]!==o||r[1]!==e?(t="string"==typeof e?e:o?n(o):void 0,r[0]=o,r[1]=e,r[2]=t):t=r[2];let c=t;e:{let e;r[3]!==l||r[4]!==c?(e="string"==typeof c?l.find(e=>
36e.namespace===c):l[0],r[3]=l,r[4]=c,r[5]=e):e=r[5];let a=e;if(!a){s=void 0;break e}s=a.account}return s}],659860)},14386,e=>{"use strict";var a=e.i(360783);e.i(810526);var t=e.i(202300);e.s(["useWallets",0,function(){let e,s,n,i,r,l=(0,a.c)(12),{connections:o}=(0,t.useWalletContext)();l[0]!==o?(e=e=>{for(let a of o)if(a.namespace===e)return a},l[0]=o,l[1]=e):e=l[1];let c=e;return l[2]!==c?(s=c("evm"),l[2]=c,l[3]=s):s=l[3],l[4]!==c?(n=c("svm"),l[4]=c,l[5]=n):n=l[5],l[6]!==c?(i=c("stellar"),l[6]=c,l[7]=i):i=l[7],l[8]!==s||l[9]!==n||l[10]!==i?(r={evm:s,svm:n,stellar:i},l[8]=s,l[9]=n,l[10]=i,l[11]=r):r=l[11],r}])},600804,e=>{"use strict";var a=e.i(360783),t=e.i(14386);function s(e){return void 0!==e}e.s(["useChainIds",0,()=>{let e,n,i=(0,a.c)(6),{evm:r,svm:l,stellar:o}=(0,t.useWallets)();r?.chainId,l?.chainId,o?.chainId;let c=r?.chainId,d=l?.chainId,u=o?.chainId;return i[0]!==c||i[1]!==d||i[2]!==u?(e=new Set([c,d,u].filter(s)),i[0]=c,i[1]=d,i[2]=u,i[3]=e):e=i[3],i[4]!==e?(n=[...e],i[4]=e,i[5]=n):n=i[5],n}])},425063,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"}))});e.s(["CheckCircleIcon",0,t],425063)},749681,e=>{"use strict";var a=e.i(237625);e.s(["WalletIcon",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18",...e,children:(0,a.jsx)("path",{fill:"currentColor",d:"M15.6 4.6H1.85v-.55l12.1-.968v.968h1.65V2.4c0-1.21-.98-2.059-2.177-1.888L2.378 2.089C1.18 2.26.2 3.39.2 4.6v11a2.2 2.2 0 002.2 2.2h13.2a2.2 2.2 0 002.2-2.2V6.8a2.2 2.2 0 00-2.2-2.2zm-1.65 7.707a1.65 1.65 0 01-.63-3.176 1.65 1.65 0 11.63 3.176z"})})])},490692,e=>{"use strict";var a=e.i(865085),t=e.i(794811);class s extends t.Fraction{add(e){return new s(super.add(e))}sub(e){return new s(super.sub(e))}mul(e){return new s(super.mul(e))}div(e){return new s(super.div(e))}toString(e={fixed:2}){let t=100*this.toNumber();return(0,a.numberToFixed)(t,e)}toPercentString(e={fixed:2}){return`${this.toString(e)}%`}}e.s(["Percent",0,s])},133243,e=>{"use strict";var a=e.i(577920);let t=a.forwardRef(function({title:e,titleId:t,...s},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))});e.s(["ExclamationCircleIcon",0,t],133243)},466540,e=>{"use strict";var a=e.i(356354),t=e.i(39523);let s={[a.StellarChainId.STELLAR]:"CBSJZEIO5C7KC2SF3MKSNXXJSW5G3VTNBX4ATMKUI3B2MR4JKM4R26YF"},n={[a.StellarChainId.STELLAR]:new t.StellarToken({chainId:a.StellarChainId.STELLAR,address:s[a.StellarChainId.STELLAR],issuer:"GATISXX6BZ6NC7IKQBY37CJD4SOZL3CYZJWXEDG6JVIY4WBS6KXJHN6Q",decimals:7,symbol:"USDT0",name:"USDT0",origin:"usdt0.to"})};e.s(["STELLAR_USDT0",0,n,"STELLAR_USDT0_ADDRESS",0,s])},947385,e=>{"use strict";var a=e.i(356354),t=e.i(39523);let s={[a.StellarChainId.STELLAR]:"CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA"},n={[a.StellarChainId.STELLAR]:new t.StellarToken({chainId:a.StellarChainId.STELLAR,address:s[a.StellarChainId.STELLAR],issuer:"GDMTVHLWJTHSUDMZVVMXXH6VJHA2ZV3HNG5LYNAZ6RTWB7GISM6PGTUV",decimals:7,symbol:"XLM",name:"XLM",origin:"stellar.org",metadata:{icon:"https://assets.coingecko.com/coins/images/100/large/Stellar_symbol_black_RGB.png"}})};e.s(["STELLAR_XLM",0,n,"STELLAR_XLM_ADDRESS",0,s])}]);

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