import{useEffect as Gn,useState as yt}from"react";import{Box as Wn,Flex as Ot,Text as Rt}from"@chakra-ui/layout";import{useEffect as se,useState as Zt}from"react";import ce from"@emotion/styled";import{AddIcon as zt,MinusIcon as $t}from"@chakra-ui/icons";import{Box as Kt,Button as Yt,Flex as Xt,Text as jt}from"@chakra-ui/react";import vt from"react";import{createMultiStyleConfigHelpers as kt,defineStyle as Bt,FormControl as Ut,Input as Pt,InputGroup as Ht,Text as ie}from"@chakra-ui/react";import{inputAnatomy as Gt}from"@chakra-ui/anatomy";import{jsx as X,jsxs as Ae}from"react/jsx-runtime";var Ne=vt.forwardRef(({label:t,error:o,placeholder:r,helperText:a,isInvalid:s,as:c=Pt,InputLeftAddon:i,InputRightAddon:E,...m},f)=>{let{disabled:h}=m;return Ae(Ut,{isInvalid:s,opacity:h?.4:1,children:[t&&X(ie,{color:s?"destructive":"foreground",fontWeight:"medium",fontSize:"sm",lineHeight:1,children:t}),Ae(Ht,{mt:"2",children:[i,X(c,{variant:"",placeholder:r,...m,ref:f}),E]}),a&&X(ie,{fontSize:"xs",mt:2,color:"mutedForeground",children:a}),s&&o&&X(ie,{fontSize:"xs",mt:2,color:"destructive",children:o})]})}),{definePartsStyle:ge,defineMultiStyleConfig:Wt}=kt(Gt.keys),Ft=ge({field:{color:"foreground",background:"background",boxShadow:"base",borderWidth:"1px",borderStyle:"solid",borderColor:"input",borderRadius:"lg",_focusVisible:{borderColor:"ring"},_hover:{},_disabled:{opacity:1},_placeholder:{color:"mutedForeground"}}}),Dt=Bt({borderRadius:"md"}),Vt={sm:ge({field:Dt})},Xn=Wt({baseStyle:Ft,sizes:Vt});import{jsx as G,jsxs as le}from"react/jsx-runtime";var qt=ce(Kt)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  height: 40px;
  border-radius: 12px;
`,Se=ce(Yt)`
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 32px;
  width: 32px;
  //border-radius: 12px;
  //border: none;
  //border: 1px solid ${t=>t.theme.colors.border};
  pointer-events: ${t=>t.disabled?"none":"unset"};
  opacity: ${t=>t.disabled?"0.5":"1"};

  &:active {
    border: 1px solid ${t=>t.theme.colors.foreground};
  }

  svg {
    path {
      fill: ${t=>t.theme.colors.foreground};
    }
  }
`,Jt=ce(Ne)`
  justify-content: center;
  font-size: 18px;
  min-width: 60px;
  user-select: none;
  border: none;
  box-shadow: none;
  max-width: 80px;
  text-align: center;
`,Qt=({initialState:t=1,maxState:o,onChange:r,value:a,onError:s})=>{let[c,i]=Zt(t);return se(()=>{r(c)},[c]),se(()=>{i(t)},[t]),se(()=>{o>0&&a>o||c<1?s(!0):s(!1)},[o,a,c]),le(Xt,{flexDirection:"column",alignItems:"flex-end",children:[le(qt,{children:[G(Se,{variant:"outline",onClick:()=>{a>t&&i(h=>a-1)},disabled:a===1,children:G($t,{})}),G(Jt,{value:a,onChange:h=>{let C=Number(h.target.value);i(C)}}),G(Se,{variant:"outline",onClick:()=>{o?a<o&&i(h=>a+1):i(h=>a+1)},disabled:o===a||!o,children:G(zt,{})})]}),(o>0&&a>o||c<1)&&le(jt,{fontSize:12,mt:10,color:"#E11900",children:["Enter quantity between 1 to ",o]})]})},Ie=Qt;import W from"dayjs";import{Box as oo,Flex as Me,Text as pe}from"@chakra-ui/layout";var e={MAINNET:1,GOERLI:5,SHARDEUM20:8081,SHARDEUM_SPHINX:8082,BINANCE:56,BINANCE_TESTNET:97,SOLANA:9090,SOLANA_DEVNET:9091,POLYGON_MAINNET:137,POLYGON_MUMBAI:80001,STACKS_TESTNET:6061,STACKS_MAINNET:6060,BASE_MAINNET:8453,BASE_TESTNET:84531,CORE_MAINNET:1116,CORE_TESTNET:1115,TELOS_MAINNET:40,TELOS_TESTNET:41,OPTIMISM_MAINNET:10,OPTIMISM_GOERLI:420,ARBITRUM:42161,ARBITRUM_GOERLI:421613,AVALANCHE:43114,AVALANCHE_TESTNET:43113,ZORA_MAINNET:7777777,ZORA_GOERLI:999,MANTA:169,MANTA_TESTNET:3441005,ZETA:7e3,ZETA_TESTNET:7001,OMNI_TESTNET:165},ir={[e.MAINNET]:"mainnet",[e.GOERLI]:"goerli",[e.BINANCE]:"binance smart chain",[e.BINANCE_TESTNET]:"binance smart chain - testnet",[e.SHARDEUM20]:"Shardeum Liberty 2.0",[e.SHARDEUM_SPHINX]:"Shardeum Sphinx",[e.BASE_MAINNET]:"base mainnet",[e.BASE_TESTNET]:"base goerli",[e.CORE_MAINNET]:"core mainnet",[e.CORE_TESTNET]:"core testnet",[e.TELOS_MAINNET]:"telos mainnet",[e.TELOS_TESTNET]:"telos testnet",[e.OPTIMISM_MAINNET]:"optimism mainnet",[e.OPTIMISM_GOERLI]:"optimism goerli",[e.ARBITRUM]:"arbitrum",[e.ARBITRUM_GOERLI]:"arbitrum goerli",[e.AVALANCHE]:"avalanche",[e.AVALANCHE_TESTNET]:"avalanche testnet",[e.ZORA_MAINNET]:"zora mainnet",[e.ZORA_GOERLI]:"zora goerli",[e.MANTA]:"manta",[e.MANTA_TESTNET]:"manta testnet",[e.ZETA]:"zeta",[e.ZETA_TESTNET]:"zeta testnet",[e.OMNI_TESTNET]:"omni testnet"},sr={[e.MAINNET]:"eth",[e.GOERLI]:"goerli",[e.BINANCE]:"bsc",[e.BINANCE_TESTNET]:"bsc-testnet",[e.SOLANA]:"solana",[e.SOLANA_DEVNET]:"solana-devnet",[e.SHARDEUM20]:"Shardeum-Liberty-2.0",[e.POLYGON_MAINNET]:"polygon-mainnet",[e.POLYGON_MUMBAI]:"polygon-mumbai",[e.BASE_MAINNET]:"base-mainnet",[e.BASE_TESTNET]:"base-goerli",[e.CORE_MAINNET]:"core",[e.CORE_TESTNET]:"core-testnet",[e.TELOS_MAINNET]:"telos-mainnet",[e.TELOS_TESTNET]:"telos-testnet",[e.OPTIMISM_MAINNET]:"optimism-mainnet",[e.OPTIMISM_GOERLI]:"optimism-goerli",[e.ARBITRUM]:"arbitrum",[e.ARBITRUM_GOERLI]:"arbitrum-goerli",[e.AVALANCHE]:"avalanche",[e.AVALANCHE_TESTNET]:"avalanche-testnet",[e.ZORA_MAINNET]:"zora-mainnet",[e.ZORA_GOERLI]:"zora-goerli",[e.MANTA]:"manta",[e.MANTA_TESTNET]:"manta-testnet",[e.ZETA]:"zeta",[e.ZETA_TESTNET]:"zeta-testnet",[e.OMNI_TESTNET]:"omni-testnet"},l={[e.MAINNET]:"https://etherscan.io/",[e.GOERLI]:"https://goerli.etherscan.io/",[e.BINANCE]:"https://bscscan.com/",[e.BINANCE_TESTNET]:"https://testnet.bscscan.com/",[e.SOLANA]:"https://solscan.io/",[e.SOLANA_DEVNET]:"https://solscan.io/",[e.SHARDEUM20]:"https://explorer-dapps.shardeum.org/",[e.SHARDEUM_SPHINX]:"https://explorer-sphinx.shardeum.org/",[e.POLYGON_MAINNET]:"https://polygonscan.com/",[e.POLYGON_MUMBAI]:"https://mumbai.polygonscan.com/",[e.STACKS_TESTNET]:"https://explorer.stacks.co/",[e.STACKS_MAINNET]:"https://explorer.stacks.co/",[e.BASE_MAINNET]:"https://basescan.org/",[e.BASE_TESTNET]:"https://goerli.basescan.org/",[e.CORE_MAINNET]:"https://scan.coredao.org/",[e.CORE_TESTNET]:"https://scan.test.btcs.network/",[e.TELOS_MAINNET]:"https://teloscan.io/",[e.TELOS_TESTNET]:"https://testnet.teloscan.io/",[e.OPTIMISM_MAINNET]:"https://optimistic.etherscan.io/",[e.OPTIMISM_GOERLI]:"https://optimism-goerli.blockscout.com/",[e.ARBITRUM]:"https://arbiscan.io/",[e.ARBITRUM_GOERLI]:"https://goerli-rollup-explorer.arbitrum.io/",[e.AVALANCHE]:"https://snowtrace.io/",[e.AVALANCHE_TESTNET]:"https://testnet.snowtrace.io/",[e.ZORA_MAINNET]:"https://explorer.zora.energy/",[e.ZORA_GOERLI]:"https://testnet.explorer.zora.energy/",[e.MANTA]:"https://pacific-explorer.manta.network/",[e.MANTA_TESTNET]:"https://pacific-explorer.testnet.manta.network/",[e.ZETA]:"https://explorer.mainnet.zetachain.com/",[e.ZETA_TESTNET]:"https://athens3.explorer.zetachain.com/",[e.OMNI_TESTNET]:"https://testnet.explorer.omni.network/"},_e={[e.MAINNET]:{explorer:l[e.MAINNET],label:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18}},[e.GOERLI]:{explorer:l[e.GOERLI],label:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"gETH",decimals:18}},[e.BINANCE]:{explorer:l[e.BINANCE],label:"BNB Smart Chain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18}},[e.BINANCE_TESTNET]:{explorer:l[e.BINANCE_TESTNET],label:"BNB Smart Chain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18}},[e.SHARDEUM20]:{explorer:l[e.SHARDEUM20],label:"Shardeum Sphinx DApp",nativeCurrency:{name:"SHM",symbol:"SHM",decimals:18}},[e.SHARDEUM_SPHINX]:{explorer:l[e.SHARDEUM_SPHINX],label:"Shardeum Sphinx",nativeCurrency:{name:"SHM",symbol:"SHM",decimals:18}},[e.POLYGON_MUMBAI]:{explorer:l[e.POLYGON_MUMBAI],label:"Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18}},[e.POLYGON_MAINNET]:{explorer:l[e.POLYGON_MAINNET],label:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18}},[e.SOLANA_DEVNET]:{explorer:l[e.SOLANA_DEVNET],label:"Solana Devnet",nativeCurrency:{name:"SOL",symbol:"SOL",decimals:9}},[e.SOLANA]:{explorer:l[e.SOLANA],label:"Solana",nativeCurrency:{name:"SOL",symbol:"SOL",decimals:9}},[e.BASE_MAINNET]:{explorer:l[e.BASE_MAINNET],label:"Base",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.BASE_TESTNET]:{explorer:l[e.BASE_TESTNET],label:"Base Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.CORE_MAINNET]:{explorer:l[e.CORE_MAINNET],label:"Core",nativeCurrency:{name:"CORE",symbol:"CORE",decimals:18}},[e.CORE_TESTNET]:{explorer:l[e.CORE_TESTNET],label:"Core Testnet",nativeCurrency:{name:"CORE",symbol:"CORE",decimals:18}},[e.STACKS_MAINNET]:{explorer:l[e.STACKS_MAINNET],label:"Stacks",nativeCurrency:{name:"STACKS",symbol:"STACKS",decimals:18}},[e.STACKS_TESTNET]:{explorer:l[e.STACKS_MAINNET],label:"Stacks Testnet",nativeCurrency:{name:"STACKS",symbol:"STACKS",decimals:18}},[e.TELOS_MAINNET]:{explorer:l[e.TELOS_MAINNET],label:"Telos",nativeCurrency:{name:"TLOS",symbol:"TLOS",decimals:18}},[e.TELOS_TESTNET]:{explorer:l[e.TELOS_TESTNET],label:"Telos Testnet",nativeCurrency:{name:"TLOS",symbol:"TLOS",decimals:18}},[e.OPTIMISM_MAINNET]:{explorer:l[e.OPTIMISM_MAINNET],label:"Optimism",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.OPTIMISM_GOERLI]:{explorer:l[e.OPTIMISM_GOERLI],label:"Optimism Goerli",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ARBITRUM]:{explorer:l[e.ARBITRUM],label:"Arbitrum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ARBITRUM_GOERLI]:{explorer:l[e.ARBITRUM_GOERLI],label:"Arbitrum Goerli",nativeCurrency:{name:"AGOR",symbol:"AGOR",decimals:18}},[e.AVALANCHE]:{explorer:l[e.AVALANCHE],label:"Avalanche",nativeCurrency:{name:"AVAX",symbol:"AVAX",decimals:18}},[e.AVALANCHE_TESTNET]:{explorer:l[e.AVALANCHE_TESTNET],label:"Avalanche Testnet",nativeCurrency:{name:"AVAX",symbol:"AVAX",decimals:18}},[e.ZORA_MAINNET]:{explorer:l[e.ZORA_MAINNET],label:"Zora",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ZORA_GOERLI]:{explorer:l[e.ZORA_GOERLI],label:"Zora Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.MANTA]:{explorer:l[e.MANTA],label:"Manta",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.MANTA_TESTNET]:{explorer:l[e.MANTA_TESTNET],label:"Manta Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ZETA]:{explorer:l[e.ZETA],label:"Zeta",nativeCurrency:{name:"ZETA",symbol:"ZETA",decimals:18}},[e.ZETA_TESTNET]:{explorer:l[e.ZETA_TESTNET],label:"Zeta Testnet",nativeCurrency:{name:"ZETA",symbol:"ZETA",decimals:18}},[e.OMNI_TESTNET]:{explorer:l[e.OMNI_TESTNET],label:"Omni Testnet",nativeCurrency:{name:"OMNI",symbol:"OMNI",decimals:18}}},lr=Object.values(e).filter(t=>typeof t=="number"),eo=[1,5,56,4,97,8081,8082,137,80001,8453,84531,1116,1115,40,41,10,420,42161,421613,43114,43113,7777777,999,3441005,7001,169,7e3,165],we=eo;import"react";import{jsx as n,jsxs as p}from"react/jsx-runtime";var to=t=>{let{chainId:o,...r}=t;return[e.BINANCE,e.BINANCE_TESTNET].includes(o)?p("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",...r,children:[p("g",{clipPath:"url(#clip0_217_1165)",children:[n("path",{d:"M30.5799 42.022L50.0029 22.6009L69.4318 42.0298L80.7332 30.7303L50.0029 0L19.2804 30.7205L30.5799 42.02V42.022ZM0 50.0029L11.3014 38.6995L22.6009 50.0029L11.2995 61.2985L0 50.0029ZM30.5799 57.9819L50.0029 77.401L69.4318 57.9721L80.7391 69.2658L50.0029 100.006L19.2804 69.2814L19.2648 69.2638L30.5799 57.98V57.9819ZM77.401 50.0029L88.7005 38.7034L100.006 50.0029L88.7064 61.3024L77.401 50.0029Z",fill:r.grey?r.grey:"#F3BA2F"}),n("path",{d:"M61.4608 50.0031L50.0031 38.5278L41.5261 47.001L40.5494 47.9776L38.5435 49.9836L38.5278 49.9992L38.5435 50.0148L50.0031 61.4725L61.4686 50.007H61.4589",fill:r.grey?r.grey:"#F3BA2F"})]}),n("defs",{children:n("clipPath",{id:"clip0_217_1165",children:n("rect",{width:"100",height:"100",fill:"white"})})})]}):[e.POLYGON_MUMBAI,e.POLYGON_MAINNET].includes(o)?n("svg",{width:"200",height:"200",viewBox:"0 0 38.4 33.5",xmlns:"http://www.w3.org/2000/svg",...r,children:n("g",{children:n("path",{fill:r.grey?r.grey:"#8247E5",d:`M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3
        c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7
        c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7
        c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1
        L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7
        c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z`})})}):[e.STACKS_MAINNET,e.STACKS_TESTNET].includes(o)?p("svg",{width:"200",height:"200",viewBox:"0 0 159.8 159.8",xmlns:"http://www.w3.org/2000/svg",...r,children:[n("circle",{fill:r.grey?r.grey:"#5546FF",cx:"79.9",cy:"79.9",r:"79.9"}),n("path",{fill:"#FFFFFF",className:"st1",d:`M112.5,122L95.3,95H120V84.8H39v10.2h24.7L46.5,122h12.8l20.2-31.7L99.7,122H112.5z M120,74.9V64.7H95.8
	l17-26.7H99.9L79.5,70.2L59.1,38H46.2l17,26.7H39V75L120,74.9L120,74.9z`})]}):[e.SOLANA,e.SOLANA_DEVNET].includes(o)?p("svg",{fill:"none",viewBox:"0 0 28 25",id:"solana",xmlns:"http://www.w3.org/2000/svg",...r,children:[n("path",{d:"m27.856 19.235-4.622 4.829a1.075 1.075 0 0 1-.786.332H.537a.547.547 0 0 1-.295-.086.51.51 0 0 1-.098-.794l4.626-4.829a1.073 1.073 0 0 1 .783-.332h21.91c.105 0 .207.03.295.086a.51.51 0 0 1 .098.794ZM23.234 9.51a1.074 1.074 0 0 0-.786-.332H.537a.547.547 0 0 0-.295.085.51.51 0 0 0-.098.794l4.626 4.83a1.073 1.073 0 0 0 .783.332h21.91c.105 0 .207-.03.295-.086a.51.51 0 0 0 .098-.794l-4.622-4.83ZM.537 6.04h21.911a1.098 1.098 0 0 0 .786-.331l4.622-4.83a.518.518 0 0 0 .1-.565.528.528 0 0 0-.198-.228.547.547 0 0 0-.295-.086H5.553a1.098 1.098 0 0 0-.783.332L.145 5.162a.518.518 0 0 0-.1.564.545.545 0 0 0 .492.315Z",fill:"url(#ata)"}),n("defs",{children:p("linearGradient",{id:"ata",x1:"2.364",y1:"24.977",x2:"24.671",y2:"-.836",gradientUnits:"userSpaceOnUse",children:[n("stop",{offset:".08",stopColor:"#9945FF"}),n("stop",{offset:".3",stopColor:"#8752F3"}),n("stop",{offset:".5",stopColor:"#5497D5"}),n("stop",{offset:".6",stopColor:"#43B4CA"}),n("stop",{offset:".72",stopColor:"#28E0B9"}),n("stop",{offset:".97",stopColor:"#19FB9B"})]})})]}):[e.BASE_MAINNET,e.BASE_TESTNET].includes(o)?p("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("g",{"clip-path":"url(#clip0_211_2)",children:n("path",{d:"M8.90611 17.8434C13.842 17.8434 17.8434 13.849 17.8434 8.92168C17.8434 3.99436 13.842 0 8.90611 0C4.22322 0 0.381537 3.59536 0 8.17172H11.813V9.67161H6.41595e-08C0.381537 14.248 4.22322 17.8434 8.90611 17.8434Z",fill:"#0052FF"})}),n("defs",{children:n("clipPath",{id:"clip0_211_2",children:n("rect",{width:"18",height:"18",fill:"white"})})})]}):[e.CORE_MAINNET,e.CORE_TESTNET].includes(o)?p("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("g",{clipPath:"url(#clip0_215_29)",children:n("path",{d:"M9.04502 1.635C9.22502 1.635 9.40502 1.68 9.57002 1.77L15.045 4.935C15.36 5.115 15.57 5.46 15.57 5.835V12.165C15.57 12.54 15.375 12.885 15.045 13.065L9.55502 16.23C9.40502 16.32 9.22502 16.365 9.03002 16.365C8.85002 16.365 8.67002 16.32 8.50502 16.23L3.04502 13.065C2.73002 12.885 2.52002 12.54 2.52002 12.165V5.835C2.52002 5.46 2.71502 5.115 3.04502 4.935L8.53502 1.77C8.68502 1.68 8.86502 1.635 9.04502 1.635ZM9.04502 0C8.58002 0 8.13002 0.12 7.71002 0.36L2.23502 3.525C1.41002 4.005 0.900024 4.875 0.900024 5.835V12.165C0.900024 13.125 1.41002 13.995 2.23502 14.475L7.72502 17.64C8.14502 17.88 8.59502 18 9.06002 18C9.52502 18 9.97502 17.88 10.395 17.64L15.885 14.475C16.71 13.995 17.22 13.125 17.22 12.165V5.835C17.22 4.875 16.71 4.005 15.885 3.525L10.38 0.36C9.97502 0.12 9.51002 0 9.04502 0Z",fill:"#FD9500"})}),n("defs",{children:n("clipPath",{id:"clip0_215_29",children:n("rect",{width:"18",height:"18",fill:"white"})})})]}):[e.TELOS_MAINNET,e.TELOS_TESTNET].includes(o)?n("svg",{version:"1.0",width:"16",height:"16",viewBox:"0 0 128.000000 128.000000",preserveAspectRatio:"xMidYMid meet",children:p("g",{transform:"translate(0.000000,128.000000) scale(0.100000,-0.100000)",fill:"#571AFF",stroke:"none",children:[n("path",{d:`M472 1260 c-115 -31 -187 -74 -282 -170 -97 -96 -138 -164 -170 -284
-28 -102 -24 -266 8 -366 61 -186 206 -334 400 -408 60 -23 82 -26 202 -26
113 -1 147 3 205 21 190 60 339 205 413 401 23 60 26 82 26 202 1 113 -3 147
-21 205 -60 190 -206 340 -401 413 -94 35 -274 41 -380 12z m517 -159 c11 -7
5 -25 -28 -88 -22 -43 -41 -82 -41 -87 0 -4 43 -71 96 -148 l96 -140 -19 -106
-18 -107 -50 -7 c-113 -18 -114 -18 -117 -40 -2 -15 -35 -45 -100 -90 l-97
-68 -157 -35 c-86 -20 -166 -35 -177 -33 -15 2 -30 34 -73 153 l-54 150 0 126
c0 111 2 128 19 143 19 17 19 19 -10 79 -16 34 -29 71 -29 82 0 13 28 43 76
83 l75 62 169 0 170 0 17 28 c9 15 23 33 32 40 17 14 198 17 220 3z`}),n("path",{d:`M770 1025 l-22 -35 -175 0 -176 0 -63 -56 -64 -55 30 -59 c35 -70 37
-91 10 -115 -18 -16 -20 -31 -20 -124 0 -103 1 -111 51 -248 30 -84 56 -140
63 -138 6 2 73 18 150 35 134 30 142 33 227 93 75 51 89 65 89 88 0 30 6 33
111 45 l56 6 12 68 c6 38 11 77 11 87 0 11 -43 81 -95 157 -52 75 -95 143 -95
150 0 7 13 37 30 67 16 30 30 57 30 62 0 4 -31 7 -69 7 -68 0 -70 0 -91 -35z`})]})}):[e.OPTIMISM_GOERLI,e.OPTIMISM_MAINNET].includes(o)?p("svg",{width:"16",height:"16",viewBox:"0 0 500 500",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("circle",{cx:"250",cy:"250",r:"250",fill:"#FF0420"}),n("path",{d:"M177.133 316.446C162.247 316.446 150.051 312.943 140.544 305.938C131.162 298.808 126.471 288.676 126.471 275.541C126.471 272.789 126.784 269.411 127.409 265.408C129.036 256.402 131.35 245.581 134.352 232.947C142.858 198.547 164.812 181.347 200.213 181.347C209.845 181.347 218.476 182.973 226.107 186.225C233.738 189.352 239.742 194.106 244.12 200.486C248.498 206.74 250.688 214.246 250.688 223.002C250.688 225.629 250.375 228.944 249.749 232.947C247.873 244.08 245.621 254.901 242.994 265.408C238.616 282.546 231.048 295.368 220.29 303.874C209.532 312.255 195.147 316.446 177.133 316.446ZM179.76 289.426C186.766 289.426 192.707 287.362 197.586 283.234C202.59 279.106 206.155 272.789 208.281 264.283C211.158 252.524 213.348 242.266 214.849 233.51C215.349 230.883 215.599 228.194 215.599 225.441C215.599 214.058 209.657 208.366 197.774 208.366C190.768 208.366 184.764 210.43 179.76 214.558C174.882 218.687 171.379 225.004 169.253 233.51C167.001 241.891 164.749 252.149 162.498 264.283C161.997 266.784 161.747 269.411 161.747 272.163C161.747 283.672 167.752 289.426 179.76 289.426Z",fill:"white"}),n("path",{d:"M259.303 314.57C257.927 314.57 256.863 314.132 256.113 313.256C255.487 312.255 255.3 311.13 255.55 309.879L281.444 187.914C281.694 186.538 282.382 185.412 283.508 184.536C284.634 183.661 285.822 183.223 287.073 183.223H336.985C350.87 183.223 362.003 186.1 370.384 191.854C378.891 197.609 383.144 205.927 383.144 216.81C383.144 219.937 382.769 223.19 382.018 226.567C378.891 240.953 372.574 251.586 363.067 258.466C353.685 265.346 340.8 268.786 324.413 268.786H299.082L290.451 309.879C290.2 311.255 289.512 312.38 288.387 313.256C287.261 314.132 286.072 314.57 284.822 314.57H259.303ZM325.727 242.892C330.98 242.892 335.546 241.453 339.424 238.576C343.427 235.699 346.054 231.571 347.305 226.192C347.68 224.065 347.868 222.189 347.868 220.563C347.868 216.935 346.805 214.183 344.678 212.307C342.551 210.305 338.924 209.305 333.795 209.305H311.278L304.148 242.892H325.727Z",fill:"white"})]}):[e.ARBITRUM,e.ARBITRUM_GOERLI].includes(o)?p("svg",{width:"16",height:"16",viewBox:"0 0 265 297",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M166.068 136.099L187.862 99.119L246.605 190.613L246.633 208.171L246.441 87.345C246.302 84.392 244.734 81.689 242.231 80.096L136.472 19.263C133.998 18.047 130.861 18.06 128.392 19.301C128.059 19.469 127.745 19.65 127.445 19.848L127.077 20.08L24.421 79.569L24.022 79.749C23.51 79.985 22.992 80.284 22.506 80.632C20.56 82.028 19.267 84.092 18.849 86.407C18.786 86.758 18.74 87.115 18.718 87.475L18.879 185.936L73.595 101.129C80.484 89.883 95.493 86.261 109.426 86.458L125.779 86.89L29.426 241.413L40.784 247.953L138.292 87.047L181.391 86.89L84.134 251.857L124.663 275.168L129.505 277.953C131.553 278.786 133.968 278.827 136.034 278.082L243.279 215.932L222.775 227.813L166.068 136.099ZM174.383 255.858L133.448 191.611L158.436 149.209L212.196 233.944L174.383 255.858Z",fill:"#2D374B"}),n("path",{d:"M133.448 191.611L174.383 255.858L212.197 233.945L158.437 149.209L133.448 191.611Z",fill:"#28A0F0"}),n("path",{d:"M246.632 208.172L246.604 190.614L187.861 99.12L166.067 136.1L222.775 227.814L243.279 215.933C245.29 214.3 246.507 211.903 246.635 209.316L246.632 208.172Z",fill:"#28A0F0"}),n("path",{d:"M0.470978 224.73L29.426 241.414L125.779 86.891L109.426 86.459C95.493 86.262 80.484 89.884 73.595 101.13L18.879 185.937L0.470978 214.22V224.73Z",fill:"white"}),n("path",{d:"M181.391 86.891L138.293 87.048L40.785 247.954L74.866 267.578L84.135 251.858L181.391 86.891Z",fill:"white"}),n("path",{d:"M264.794 86.669C264.434 77.656 259.554 69.404 251.909 64.6L144.764 2.98499C137.202 -0.823009 127.755 -0.828011 120.181 2.98199C119.286 3.43299 15.984 63.345 15.984 63.345C14.555 64.03 13.178 64.847 11.882 65.774C5.05799 70.665 0.897978 78.265 0.470978 86.615V214.222L18.879 185.939L18.718 87.478C18.74 87.118 18.785 86.764 18.849 86.414C19.264 84.097 20.558 82.03 22.506 80.634C22.992 80.286 128.058 19.47 128.392 19.303C130.862 18.062 134 18.05 136.472 19.265L242.231 80.099C244.733 81.692 246.302 84.394 246.441 87.348V209.317C246.313 211.904 245.291 214.3 243.279 215.934L222.775 227.815L212.196 233.946L174.382 255.86L136.034 278.084C133.968 278.83 131.554 278.789 129.505 277.955L84.134 251.859L74.866 267.578L115.64 291.054C116.988 291.82 118.19 292.5 119.176 293.054C120.703 293.91 121.743 294.482 122.11 294.66C125.008 296.067 129.177 296.887 132.935 296.887C136.38 296.887 139.739 296.254 142.918 295.009L254.302 230.503C260.695 225.55 264.456 218.08 264.795 209.988V86.669H264.794Z",fill:"#96BEDC"})]}):[e.AVALANCHE,e.AVALANCHE_TESTNET].includes(o)?p("svg",{width:"16",height:"16",viewBox:"0 0 500 500",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M250 500C388.071 500 500 388.071 500 250C500 111.929 388.071 0 250 0C111.929 0 0 111.929 0 250C0 388.071 111.929 500 250 500Z",fill:"#E84142"}),n("path",{d:"M338.189 256.496C346.85 241.535 360.827 241.535 369.488 256.496L423.425 351.181C432.086 366.142 425 378.346 407.677 378.346H299.016C281.89 378.346 274.803 366.141 283.268 351.181L338.189 256.496ZM233.858 74.213C242.519 59.252 256.299 59.252 264.96 74.213L276.968 95.867L305.314 145.67C312.204 159.843 312.204 176.576 305.314 190.749L210.235 355.513C201.574 368.899 187.204 377.363 171.259 378.348H92.322C74.999 378.348 67.913 366.34 76.574 351.183L233.858 74.213Z",fill:"white"})]}):[e.MANTA,e.MANTA_TESTNET].includes(o)?p("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[n("g",{"clip-path":"url(#clip0_302_22)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.18451 15.4541C2.22065 13.9867 0.946468 11.6413 0.946468 9C0.946468 4.5538 4.5538 0.946468 9 0.946468C12.6709 0.946468 16.6794 3.14022 17.6478 6.50053C16.5644 2.74647 13.1038 0 9 0C4.03044 0 0 4.03044 0 9C0 13.9696 4.03044 18 9 18C13.9696 18 18 13.9696 18 9V8.52553H17.506C17.4913 8.52553 17.4693 8.52553 17.4399 8.52553C17.3813 8.52553 17.2981 8.52311 17.1905 8.51822C16.9777 8.51085 16.6843 8.49617 16.3541 8.46686C15.6791 8.40814 14.9087 8.29322 14.3853 8.0829C13.5416 7.7454 13.0647 7.30029 12.5218 6.77689L12.4899 6.74758C11.9446 6.22417 11.3331 5.63479 10.2693 5.13587C9.22258 4.64429 8.06574 4.72255 7.2171 4.89864C6.78668 4.98669 6.41492 5.10407 6.15324 5.19946C6.02117 5.24593 5.91604 5.28995 5.84269 5.31929C5.41468 5.50027 4.99892 5.71303 4.58071 5.91114C4.58071 5.91114 5.40489 6.13614 5.81085 6.26332C5.82553 6.26822 5.84758 6.27553 5.87936 6.28532C5.94051 6.30489 6.02854 6.33668 6.13367 6.38072C6.34894 6.46875 6.63019 6.59835 6.90896 6.77936C7.34918 7.06061 7.71356 7.41769 7.86279 7.85301C6.93096 7.97529 6.05543 8.38614 5.4 8.77011C5.0038 9.00242 4.67364 9.23721 4.4413 9.41085C4.32636 9.49894 4.23343 9.57229 4.16984 9.62364C4.11603 9.66769 3.27473 10.4087 3.27473 10.4087C3.27473 10.4087 4.3606 10.5236 4.8962 10.6312C5.25326 10.7022 5.73261 10.8196 6.23644 10.9932C6.74021 11.1693 7.24894 11.3992 7.67199 11.6951C8.09511 11.991 8.40572 12.331 8.55731 12.7223C9.00242 13.862 8.56468 14.9698 7.68668 15.5935C6.81846 16.2098 5.50027 16.3565 4.18206 15.4517L4.18451 15.4541ZM7.25625 16.8628C7.61085 16.7478 7.94104 16.5791 8.23939 16.3687C9.4329 15.5201 10.0614 13.9647 9.44269 12.3799C9.19811 11.7562 8.73343 11.2818 8.21739 10.9198C7.69894 10.5579 7.1046 10.2937 6.55189 10.1005C6.18992 9.97335 5.83779 9.87553 5.53206 9.80218C5.6421 9.73125 5.75707 9.6579 5.88178 9.58449C6.61061 9.15654 7.53019 8.76279 8.41061 8.76279C9.73856 8.76279 10.7267 9.17117 11.6706 9.60654C11.7563 9.64564 11.8419 9.68721 11.9299 9.72636C12.7736 10.1226 13.659 10.5383 14.6886 10.5383C15.7182 10.5383 16.4641 10.2571 16.9997 9.96356C16.5228 13.9549 13.1258 17.0511 9.00489 17.0511C8.40572 17.0511 7.82117 16.9851 7.26114 16.8628H7.25625ZM15.9726 9.38396C15.6179 9.50383 15.1875 9.59186 14.6861 9.59186C13.8791 9.59186 13.1845 9.26904 12.3041 8.85814C12.2258 8.82146 12.1476 8.78479 12.0669 8.74811C11.184 8.33968 10.1642 7.90678 8.83614 7.82854C8.65761 6.95053 7.99239 6.34894 7.42011 5.98207C7.35654 5.94051 7.29292 5.90136 7.22936 5.86468C7.28561 5.85242 7.34428 5.83779 7.40543 5.82553C8.17335 5.66657 9.08803 5.62742 9.86333 5.99428C10.7829 6.42718 11.3038 6.92606 11.8443 7.44458L11.8639 7.46167C12.419 7.99481 13.0084 8.55489 14.0331 8.96574C14.603 9.19322 15.3416 9.31551 15.9726 9.38396Z",fill:"url(#paint0_linear_302_22)"})}),p("defs",{children:[p("linearGradient",{id:"paint0_linear_302_22",x1:"-0.161413",y1:"9.16633",x2:"18.1614",y2:"8.83125",gradientUnits:"userSpaceOnUse",children:[n("stop",{"stop-color":"#29CCB9"}),n("stop",{offset:"0.49","stop-color":"#0091FF"}),n("stop",{offset:"1","stop-color":"#FF66B7"})]}),n("clipPath",{id:"clip0_302_22",children:n("rect",{width:"18",height:"18",fill:"white"})})]})]}):[e.ZETA,e.ZETA_TESTNET].includes(o)?p("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[p("g",{"clip-path":"url(#clip0_304_2)",children:[n("path",{d:"M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z",fill:"#005741"}),n("path",{d:"M11.3369 10.9894V12.2049H6.32261C6.39178 11.4049 6.64991 10.8421 7.54261 10.0506L11.3369 6.81361V9.65412H12.7028V4.42822H4.93619V7.03315H6.30206V5.7941H10.4282L6.65242 9.01654L6.64339 9.02506C5.06099 10.4261 4.93518 11.5568 4.93518 12.8891V13.5718H12.7033V10.9904H11.3374L11.3369 10.9894Z",fill:"white"})]}),n("defs",{children:n("clipPath",{id:"clip0_304_2",children:n("rect",{width:"18",height:"18",fill:"white"})})})]}):[e.SHARDEUM20,e.SHARDEUM_SPHINX].includes(o)?p("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[n("path",{d:"M43.59 82.5344L7.97437 144.211L28.8329 144.282C47.4921 144.33 49.7151 144.306 49.9516 143.975C50.1171 143.762 61.445 124.18 75.1379 100.46C88.8307 76.7167 100.111 57.3008 100.182 57.3008C100.253 57.3008 111.51 76.7167 125.203 100.437C138.896 124.157 150.224 143.738 150.389 143.951C150.65 144.306 152.4 144.33 171.532 144.282L192.367 144.211L156.846 82.6526C137.288 48.8107 121.254 21.0467 121.183 20.9994C121.135 20.9521 116.406 28.9691 110.706 38.8545C104.983 48.7398 100.253 56.8278 100.182 56.8278C100.111 56.8278 95.4525 48.8817 89.824 39.1383C84.1955 29.4185 79.513 21.3305 79.3947 21.1649C79.2765 20.9521 67.2627 41.5268 43.59 82.5344Z",fill:r.dark?"white":"black"}),n("path",{d:"M95.453 93.2239C84.598 95.5179 76.7938 105.805 77.5742 116.802C77.929 121.768 79.7736 126.262 83.1318 130.329C85.4258 133.096 90.2738 136.1 94.3888 137.282C96.0206 137.755 96.8246 137.826 100.183 137.826C104.771 137.826 106.379 137.471 110.234 135.58C122.035 129.833 126.386 115.17 119.67 103.819C118.085 101.17 114.443 97.4808 111.889 95.9909C106.852 93.0584 100.987 92.0651 95.453 93.2239Z",fill:r.dark?"white":"black"}),n("path",{d:"M49.6686 144.614C49.5504 144.779 44.8678 152.891 39.2393 162.658L28.9993 180.395L64.5912 180.466C84.1727 180.489 116.194 180.489 135.775 180.466L171.367 180.395L160.985 162.421L150.627 144.448L100.23 144.377C60.429 144.33 49.8105 144.401 49.6686 144.614Z",fill:r.dark?"white":"black"})]}):[e.OMNI_TESTNET].includes(o)?p("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",...r,children:[n("circle",{cx:"100",cy:"100",r:"100",fill:"url(#paint0_linear_462_5422)"}),n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.9996 166.65C136.809 166.65 166.65 136.81 166.65 100C166.65 63.1903 136.809 33.3501 99.9996 33.3501C63.1898 33.3501 33.3496 63.1903 33.3496 100C33.3496 110.505 35.78 120.443 40.1092 129.281L56.8469 112.543C55.6918 108.562 55.0726 104.354 55.0726 100C55.0726 75.1876 75.1871 55.0731 99.9996 55.0731C124.812 55.0731 144.927 75.1876 144.927 100C144.927 124.813 124.812 144.927 99.9996 144.927C95.7091 144.927 91.5591 144.326 87.6293 143.203L70.8684 159.964C79.6691 164.247 89.5537 166.65 99.9996 166.65Z",fill:"white"}),n("path",{d:"M70.7802 146.186C66.0951 150.871 58.499 150.871 53.8139 146.186C49.1288 141.501 49.1288 133.905 53.8139 129.22C58.499 124.535 66.0951 124.535 70.7802 129.22C75.4653 133.905 75.4653 141.501 70.7802 146.186Z",fill:"white"}),n("path",{d:"M117.329 100C117.329 109.571 109.571 117.329 100 117.329C90.4296 117.329 82.6711 109.571 82.6711 100C82.6711 90.4295 90.4295 82.671 100 82.671C109.571 82.671 117.329 90.4295 117.329 100Z",fill:"white"}),n("defs",{children:p("linearGradient",{id:"paint0_linear_462_5422",x1:"200",y1:"-6.90447e-05",x2:"0.000109769",y2:"200",gradientUnits:"userSpaceOnUse",children:[n("stop",{stopColor:"#9250FF"}),n("stop",{offset:"0.26054",stopColor:"#7B78FE"}),n("stop",{offset:"0.505208",stopColor:"#1F48E1"}),n("stop",{offset:"1",stopColor:"#9250FF"})]})})]}):[e.ZORA_MAINNET,e.ZORA_GOERLI].includes(o)?p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"3234",height:"3234",viewBox:"0 0 3234 3234",fill:"none",...r,children:[n("mask",{id:"mask0_501_204",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"3234",height:"3234",children:n("circle",{cx:"1617",cy:"1617",r:"1617",fill:"#D9D9D9"})}),p("g",{mask:"url(#mask0_501_204)",children:[n("rect",{x:"-499",y:"-703",width:"4281",height:"4281",fill:"#A1723A"}),n("g",{filter:"url(#filter0_f_501_204)",children:n("ellipse",{cx:"1740.5",cy:"1441",rx:"1725.5",ry:"1725",fill:"#531002"})}),n("g",{filter:"url(#filter1_f_501_204)",children:n("ellipse",{cx:"1926.5",cy:"1220",rx:"1399.5",ry:"1400",fill:"#2B5DF0"})}),n("g",{filter:"url(#filter2_f_501_204)",children:n("ellipse",{cx:"1901",cy:"1240.5",rx:"1459",ry:"1459.5",fill:"url(#paint0_radial_501_204)"})}),n("g",{filter:"url(#filter3_f_501_204)",children:n("circle",{cx:"2143",cy:"873",r:"735",fill:"#FCB8D4"})}),n("g",{filter:"url(#filter4_f_501_204)",children:n("circle",{cx:"2142.5",cy:"872.5",r:"293.5",fill:"white"})}),n("g",{filter:"url(#filter5_f_501_204)",children:n("circle",{cx:"1947.5",cy:"1165.5",r:"2637.5",fill:"url(#paint1_radial_501_204)",fillOpacity:"0.9"})})]}),p("defs",{children:[p("filter",{id:"filter0_f_501_204",x:"-385",y:"-684",width:"4251",height:"4250",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"200",result:"effect1_foregroundBlur_501_204"})]}),p("filter",{id:"filter1_f_501_204",x:"-273",y:"-980",width:"4399",height:"4400",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"400",result:"effect1_foregroundBlur_501_204"})]}),p("filter",{id:"filter2_f_501_204",x:"142",y:"-519",width:"3518",height:"3519",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"150",result:"effect1_foregroundBlur_501_204"})]}),p("filter",{id:"filter3_f_501_204",x:"808",y:"-462",width:"2670",height:"2670",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"300",result:"effect1_foregroundBlur_501_204"})]}),p("filter",{id:"filter4_f_501_204",x:"1449",y:"179",width:"1387",height:"1387",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"200",result:"effect1_foregroundBlur_501_204"})]}),p("filter",{id:"filter5_f_501_204",x:"-990",y:"-1772",width:"5875",height:"5875",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[n("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n("feGaussianBlur",{stdDeviation:"150",result:"effect1_foregroundBlur_501_204"})]}),p("radialGradient",{id:"paint0_radial_501_204",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(2147.09 828.748) rotate(128.228) scale(2755.49 2755.27)",children:[n("stop",{offset:"0.286458",stopColor:"#387AFA"}),n("stop",{offset:"0.647782",stopColor:"#387AFA",stopOpacity:"0"})]}),p("radialGradient",{id:"paint1_radial_501_204",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(1947.5 1165.5) rotate(90) scale(2637.5)",children:[n("stop",{offset:"0.598958",stopOpacity:"0"}),n("stop",{offset:"0.671875"}),n("stop",{offset:"0.734375",stopOpacity:"0"})]})]})]}):p("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",...r,children:[p("g",{clipPath:"url(#clip0_226_1177)",children:[n("path",{d:"M49.6859 0L49.0156 2.27815V68.3847L49.6859 69.0537L80.3718 50.9154L49.6859 0Z",fill:r.grey?r.grey:"#343434"}),n("path",{d:"M49.6859 0L19 50.9154L49.6859 69.054V36.9679V0Z",fill:r.grey?r.grey:"#8C8C8C"}),n("path",{d:"M49.6853 74.8636L49.3076 75.3241V98.8727L49.6853 99.9758L80.3897 56.7344L49.6853 74.8636Z",fill:r.grey?r.grey:"#3C3C3B"}),n("path",{d:"M49.6859 99.976V74.8636L19 56.7344L49.6859 99.976Z",fill:r.grey?r.grey:"#8C8C8C"}),n("path",{d:"M49.6855 69.0539L80.371 50.9158L49.6855 36.9683V69.0539Z",fill:r.grey?r.grey:"#141414"}),n("path",{d:"M19 50.9158L49.6854 69.0542V36.9683L19 50.9158Z",fill:r.grey?r.grey:"#393939"})]}),n("defs",{children:n("clipPath",{id:"clip0_226_1177",children:n("rect",{width:"100",height:"100",fill:"white"})})})]})},xe=to;import no from"react-countdown";import"react";import{Tag as ro}from"@chakra-ui/react";import{jsx as x,jsxs as j}from"react/jsx-runtime";var ao=({isSelected:t,onClick:o,stageName:r,startDate:a,endDate:s,chainId:c,price:i,endless:E})=>{let m=W.unix(a).isBefore(W()),f=E?!1:W.unix(s).isBefore(W());return j(oo,{paddingX:4,paddingY:4,onClick:f?null:o,cursor:"pointer",borderRadius:"lg",border:"2px solid",borderColor:t?"primary":"muted",mb:4,pointerEvents:f?"none":"unset",children:[j(Me,{justify:"space-between",mb:2,children:[x(ro,{variant:"subtle",children:r.toUpperCase()}),x(pe,{children:m?E?"":f?"Ended":x(be,{name:"Ends in",date:s}):x(be,{name:"Starts in",date:a})})]}),j(Me,{align:"center",children:[x(pe,{children:"Price:"}),x(xe,{width:14,height:14,chainId:c}),x(pe,{children:i})]})]})},be=({date:t,name:o})=>{let r=({hours:a,minutes:s,seconds:c,completed:i})=>i?"Ended":j("span",{children:[o," ",a,"h:",s,"m:",c,"s"]});return x(no,{date:new Date(W.unix(t)),renderer:r})},Le=ao;import"react";import{Box as io,Button as so,Text as lo}from"@chakra-ui/react";import{jsx as ye,jsxs as po}from"react/jsx-runtime";var co=({validators:t,fullWidth:o=!1,...r})=>{let a=t.find(h=>!h.should),s={...r,...a?.fallbackProps},{children:c,onClick:i,disabled:E,helperText:m,isLoading:f=!1}=s;return po(io,{style:{textAlign:"center"},children:[ye(so,{w:o?"full":"",variant:"primary",onClick:i,isDisabled:E,isLoading:f,loadingText:c,children:c}),m&&ye(lo,{color:"foreground",fontSize:"12px",textAlign:"center",mb:"10px",lineHeight:1,mt:2,children:m})]})},Oe=co;import{useCallback as $e,useEffect as Ke,useState as L}from"react";import Ye from"dayjs";import{useWeb3React as ho}from"@web3-react/core";import{useMemo as Co}from"react";import{isAddress as mo}from"@ethersproject/address";import{AddressZero as uo}from"@ethersproject/constants";import{Contract as Eo}from"@ethersproject/contracts";function To(t,o){return t.getSigner(o).connectUnchecked()}function fo(t,o){return o?To(t,o):t}function Re(t,o,r,a){if(!mo(t)||t===uo)throw Error(`Invalid 'address' parameter '${t}'.`);return new Eo(t,o,fo(r,a))}function ve(t,o,r=!0){let{provider:a,account:s,chainId:c}=ho();return Co(()=>{if(!t||!o||!a||!c)return null;let i;if(typeof t=="string"?i=t:i=t[c],!i)return null;try{return Re(i,o,a,r&&s?s:void 0)}catch(E){return console.error("Failed to get contract",E),null}},[t,o,a,c,r,s])}import{useWeb3React as Uo}from"@web3-react/core";import{useToast as Po}from"@chakra-ui/react";import{createContext as Ao,useMemo as Wr}from"react";import{jsx as Vr}from"react/jsx-runtime";var Fr=Ao(void 0),ke="production";var y=ke==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";import Be from"axios";var Ue=async(t,o,r,a=!1)=>{try{return(await Be.post(`${y}/collection/mint/${t}`,r,{headers:{"X-API-KEY":o}})).data}catch(s){if(console.log(s),a)throw s}},Pe=async(t,o,r)=>{try{return(await Be.post(`${y}/collection/${t}/mints/error`,r,{headers:{"X-API-KEY":o}})).data}catch(a){console.log(a)}};import Ho from"bignumber.js";import No from"bignumber.js";var go=new No(10),He=go.pow(18);import{useContext as Io}from"react";import{createContext as So,useCallback as ua,useEffect as Ea,useState as Ta}from"react";import oa from"axios";import{jsx as ia,jsxs as sa}from"react/jsx-runtime";import{jsx as Aa}from"react/jsx-runtime";var Ge=So(void 0);var q=()=>Io(Ge);import{useEffect as me,useState as Ve}from"react";import{hexlify as _o}from"@ethersproject/bytes";import{toUtf8Bytes as wo}from"@ethersproject/strings";var We=async(t,o,r)=>{if(t.provider?.wc){let a=_o(wo(r));return await t.provider?.wc.signPersonalMessage([a,o])}return t.getSigner(o).signMessage(r)};var Fe="CONNECTOR_ID",O="SIGNATURE";import{decodeUTF8 as yo}from"tweetnacl-util";import{useWallet as Oo}from"@solana/wallet-adapter-react";import*as Ze from"bs58";import{useEffect as xo,useRef as Mo}from"react";var bo=t=>{let o=Mo();return xo(()=>{o.current=t},[t]),o.current},De=bo;import{useWeb3React as Ro}from"@web3-react/core";import{useToast as vo}from"@chakra-ui/react";import{useSelector as ko}from"react-redux";import Lo from"axios";var de=async(t,o)=>{try{return(await Lo.post(`${y}/users/getNonce`,{walletAddress:t},{headers:{"X-API-KEY":o}})).data}catch(r){throw new Error(r)}};var Bo=()=>{let t=Oo(),o=vo(),[r,a]=Ve(null),[s,c]=Ve(null),{account:i,provider:E}=Ro(),{accessKey:m}=q(),f=ko(T=>T.user.selectedWallet),h=De(i);return me(()=>{let T=localStorage.getItem(O);a(T),c(f)},[i,t.connected,f]),me(()=>{let T=localStorage.getItem(Fe);!i&&!T&&(localStorage.removeItem(O),a(null))},[i]),me(()=>{i&&i!==h&&(localStorage.removeItem(O),a(null))},[i]),[r,s==="Phantom"?async()=>{if(r)return r;try{let{data:T}=await de(t?.publicKey?.toBase58(),m),g=t&&`Verify your account: ${t?.publicKey?.toBase58()}
Nonce: ${T}`,$=yo(g),w=t&&await t?.signMessage($),b=Ze.encode(w);return localStorage.setItem(O,b),a(b),b}catch(T){throw T}}:async()=>{if(r)return r;try{let{data:T}=await de(i,m),g=await We(E,i,`Verify your account: ${i}
Nonce: ${T}`);return localStorage.setItem(O,g),a(g),g}catch(T){throw T}}]},ze=Bo;var Go=({dynamicConfig:t,contractAddress:o,mintPrice:r,chainId:a,collectionId:s,mintPriceUnit:c})=>{let[i,E]=L(1),[m,f]=L(null),[h,C]=L(!1),[Z,z]=L({counter:null}),[T,g]=L(!1),[$,w]=L("start"),[b,te]=L(null),{account:k}=Uo(),{accessKey:B}=q(),[oe,ne]=ze(),K=Po(),Y=ve(o,t&&t.abi?t.abi:[]);Ke(()=>{if(Object.keys(t).length){let u=t.mints.filter(A=>A.endless?!0:!Ye.unix(A.endDate).isBefore(Ye()));u.length?f(u[0]):C(!0)}},[t]),Ke(()=>{if(m){let u=m.inputs.find(A=>A.category.toLowerCase()==="counter");z({counter:u})}},[m]);let re=$e(u=>{f(t.mints[u])},[t]),ae=$e(async()=>{try{g(!0),w("pending");let u=oe;u||(u=await ne());let{method:A,inputs:U,payable:P}=m,N=U.map(S=>{if(S.category.toLowerCase()==="input"){if(S.type.toLowerCase()==="address"||S.type.toLowerCase()==="text")return S.defaultValue;if(S.type.toLowerCase()==="user_address")return k}else if(S.category.toLowerCase()==="counter")return i});P&&(N=[...N,{value:new Ho(r).multipliedBy(i).multipliedBy(He).toFixed()}]);let H=await Y[A](...N);te(H.hash);let Ce=(await H.wait()).events.filter(S=>S.topics[0]==="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef").map(S=>parseInt(Number(S.topics[3])));await Ue(s,B,{walletAddress:k,transactionHash:H.hash,chainId:a,counterValue:i,price:r,priceUnit:c,tokens:Ce.length>0?Ce:Array.from(Array(i).keys()),signature:u}),w("completed")}catch(u){console.log(u),u.reason?K({title:"Failed to mint",description:u.reason,status:"error",duration:5e3}):K({title:"Failed to mint",description:u.message,status:"error",duration:5e3});let A=u?.reason?u?.reason:u?.message,U={errorLog:JSON.stringify({account:k,error:A})};A.includes("user rejected transaction")?w("start"):(w("error"),Pe(s,B,U))}finally{g(!1)}},[Y,k,i,m,r,a,s,B]);return{selectedStage:m,changeSelectedStage:re,displayConfig:Z,counterValue:i,setCounterValue:E,initiateMint:ae,loading:T,mintStatus:$,mintedTx:b,stagesCompleted:h}},Xe=Go;import{useWeb3React as Fn}from"@web3-react/core";import{useContext as cn}from"react";import{createContext as ln,useCallback as cs,useEffect as ps,useMemo as ds,useState as ms}from"react";import{useWallet as Es}from"@solana/wallet-adapter-react";import{useWeb3React as fs}from"@web3-react/core";import{useEffect as si,useState as li}from"react";import{AppConfig as pi,UserSession as di}from"@stacks/connect";import{createSlice as Wo}from"@reduxjs/toolkit";var Fo={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},je=Wo({name:"user",initialState:Fo,reducers:{updateSelectedWallet(t,{payload:{wallet:o}}){t.selectedWallet=o},updateSolanaSelectedWallet(t,{payload:{wallet:o}}){t.selectedSolanaWallet=o},updateAccessKey(t,{payload:{accessKey:o}}){t.accessKey=o},updateUserDetails(t,{payload:{details:o}}){t.details=o}}}),{updateSelectedWallet:Do,updateSolanaSelectedWallet:Ti,updateAccessKey:fi,updateUserDetails:hi}=je.actions,Ci=je.reducer;import{useDispatch as gs}from"react-redux";import{useMemo as ji}from"react";import{initializeConnector as J}from"@web3-react/core";import{MetaMask as zo}from"@web3-react/metamask";import{WalletConnect as rt}from"@web3-react/walletconnect-v2";import{Network as $o}from"@web3-react/network";var qe={[e.MAINNET]:"Ethereum",[e.GOERLI]:"Goerli",[e.BINANCE]:"BNB Smart Chain",[e.BINANCE_TESTNET]:"BNB Smart Chain Testnet",[e.SOLANA]:"Solana Mainnet",[e.SOLANA_DEVNET]:"Solana Devnet",[e.SHARDEUM20]:"Shardeum Sphinx DApp 1.X",[e.SHARDEUM_SPHINX]:"Shardeum Sphinx",[e.POLYGON_MUMBAI]:"Polygon Mumbai",[e.POLYGON_MAINNET]:"Polygon",[e.BASE_MAINNET]:"Base Mainnet",[e.BASE_TESTNET]:"Base Goerli",[e.CORE_MAINNET]:"Core Mainnet",[e.CORE_TESTNET]:"Core Testnet",[e.TELOS_MAINNET]:"Telos",[e.TELOS_TESTNET]:"Telos Testnet",[e.OPTIMISM_MAINNET]:"Optimism",[e.OPTIMISM_GOERLI]:"Optimism Goerli",[e.ARBITRUM]:"Arbitrum",[e.ARBITRUM_GOERLI]:"Arbitrum Goerli",[e.AVALANCHE]:"Avalanche",[e.AVALANCHE_TESTNET]:"Avalanche Testnet",[e.ZORA_MAINNET]:"Zora Mainnet",[e.ZORA_GOERLI]:"Zora Goerli",[e.MANTA]:"Manta",[e.MANTA_TESTNET]:"Manta Testnet",[e.ZETA]:"Zeta",[e.ZETA_TESTNET]:"ZetaChain Testnet",[e.OMNI_TESTNET]:"Omni Testnet"},gi={[e.MAINNET]:{name:"Ethereum mainnet",api:"https://api.etherscan.io/api",key:"7GJC7W52P7BJ3ESQCBGG2YP3M597M69ZEC",explorer:"https://etherscan.io"},[e.GOERLI]:{name:"Goerli",api:"https://api-goerli.etherscan.io/api",key:"7GJC7W52P7BJ3ESQCBGG2YP3M597M69ZEC",explorer:"https://goerli.etherscan.io"},[e.BINANCE]:{name:"Binance smart chain mainnet",api:"https://api.bscscan.com/api",key:"3THBPRKH4RNSF4KF52JFAJZX92SHX2FUIV",explorer:"https://bscscan.com"},[e.BINANCE_TESTNET]:{name:"Binance smart chain testnet",api:"https://api-testnet.bscscan.com/api",key:"3THBPRKH4RNSF4KF52JFAJZX92SHX2FUIV",explorer:"https://testnet.bscscan.com"},[e.SHARDEUM20]:{name:"Shadreum liberty 2.0",api:"",key:"",explorer:"https://explorer-liberty20.shardeum.org/"},[e.SOLANA]:{name:"Solana",api:"",key:""},[e.SOLANA_DEVNET]:{name:"Solana devnet",api:"",key:""},[e.BASE_MAINNET]:{name:"Base mainnet",api:"",key:"",explorer:"https://basescan.org"},[e.BASE_TESTNET]:{name:"Base testnet",api:"",key:"",explorer:"https://goerli.basescan.org"},[e.CORE_MAINNET]:{name:"Core mainnet",api:"",key:"",explorer:"https://scan.coredao.org/"},[e.CORE_TESTNET]:{name:"Core testnet",api:"",key:"",explorer:"https://scan.test.btcs.network/"},[e.MANTA]:{name:"Manta",api:"",key:"",explorer:"https://pacific-explorer.manta.network"},[e.MANTA_TESTNET]:{name:"Manta testnet",api:"",key:"",explorer:"https://pacific-explorer.testnet.manta.network"},[e.ZETA]:{name:"ZetaChain mainnet",api:"",key:"",explorer:"https://explorer.mainnet.zetachain.com"},[e.MANTA_TESTNET]:{name:"ZetaChain testnet",api:"",key:"",explorer:"https://athens3.explorer.zetachain.com"}},F={[e.MAINNET]:"https://attentive-dark-slug.quiknode.pro/3b2478b2d351ebcec1f782076ece31b2a6c94ce8",[e.GOERLI]:"https://goerli.infura.io/v3/82e1f883cd2d45608ba6022fa9432ff0",[e.SHARDEUM20]:"https://dapps.shardeum.org/",[e.SHARDEUM_SPHINX]:"https://sphinx.shardeum.org/",[e.BINANCE]:"https://cold-green-snowflake.bsc.quiknode.pro/df79c99750fe774f3e16a8baddd8788dd627597a",[e.BINANCE_TESTNET]:"https://data-seed-prebsc-1-s1.binance.org:8545",[e.POLYGON_MUMBAI]:"https://polygon-mumbai.infura.io/v3/3e34307cdece46d9a15cce3d2a7525a2",[e.POLYGON_MAINNET]:"https://hardworking-sleek-shadow.matic.quiknode.pro/36b5bd8dec912863be0fe401fad61fce7634fdb8",[e.BASE_MAINNET]:"https://mainnet.base.org",[e.BASE_TESTNET]:"https://goerli.base.org",[e.CORE_MAINNET]:"https://rpc.coredao.org/",[e.CORE_TESTNET]:"https://rpc.test.btcs.network/",[e.TELOS_MAINNET]:"https://mainnet.telos.net/evm",[e.TELOS_TESTNET]:"https://testnet.telos.net/evm",[e.OPTIMISM_GOERLI]:"https://goerli.optimism.io",[e.OPTIMISM_MAINNET]:"https://optimism.meowrpc.com",[e.ARBITRUM]:"https://arb1.arbitrum.io/rpc",[e.ARBITRUM_GOERLI]:"https://endpoints.omniatech.io/v1/arbitrum/goerli/public",[e.AVALANCHE]:"https://api.avax.network/ext/bc/C/rpc",[e.AVALANCHE_TESTNET]:"https://api.avax-test.network/ext/bc/C/rpc",[e.ZORA_MAINNET]:"https://rpc.zora.energy",[e.ZORA_GOERLI]:"https://testnet.rpc.zora.energy",[e.MANTA]:"https://pacific-rpc.manta.network/http",[e.MANTA_TESTNET]:"https://manta-testnet.calderachain.xyz/http",[e.ZETA]:"https://api.mainnet.zetachain.com/evm",[e.ZETA_TESTNET]:"https://zetachain-athens-evm.blockpi.network/v1/rpc/public",[e.OMNI_TESTNET]:"https://testnet.omni.network"},Je={[e.MAINNET]:"https://mainnet.infura.io/v3/3e34307cdece46d9a15cce3d2a7525a2",[e.GOERLI]:"https://goerli.infura.io/v3/82e1f883cd2d45608ba6022fa9432ff0",[e.BINANCE]:"https://bsc-dataseed.binance.org",[e.SHARDEUM_SPHINX]:"https://sphinx.shardeum.org/",[e.SHARDEUM20]:"https://dapps.shardeum.org/",[e.BINANCE_TESTNET]:"https://data-seed-prebsc-1-s1.binance.org:8545",[e.POLYGON_MUMBAI]:"https://endpoints.omniatech.io/v1/matic/mumbai/public",[e.POLYGON_MAINNET]:"https://polygon.llamarpc.com",[e.BASE_MAINNET]:"https://mainnet.base.org",[e.BASE_TESTNET]:"https://goerli.base.org",[e.TELOS_MAINNET]:"https://mainnet.telos.net/evm",[e.TELOS_TESTNET]:"https://testnet.telos.net/evm",[e.OPTIMISM_GOERLI]:"https://goerli.optimism.io",[e.OPTIMISM_MAINNET]:"https://optimism.meowrpc.com",[e.ARBITRUM]:"https://arb1.arbitrum.io/rpc",[e.ARBITRUM_GOERLI]:"https://endpoints.omniatech.io/v1/arbitrum/goerli/public",[e.AVALANCHE]:"https://api.avax.network/ext/bc/C/rpc",[e.AVALANCHE_TESTNET]:"https://api.avax-test.network/ext/bc/C/rpc",[e.ZORA_MAINNET]:"https://rpc.zora.energy",[e.ZORA_GOERLI]:"https://testnet.rpc.zora.energy",[e.MANTA]:"https://pacific-rpc.manta.network/http",[e.MANTA_TESTNET]:"https://manta-testnet.calderachain.xyz/http",[e.ZETA]:"https://api.mainnet.zetachain.com/evm",[e.ZETA_TESTNET]:"https://zetachain-athens-evm.blockpi.network/v1/rpc/public",[e.OMNI_TESTNET]:"https://testnet.omni.network"},Qe={[e.MAINNET]:["https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://rpc.ankr.com/eth","https://eth-mainnet.public.blastapi.io"],[e.GOERLI]:["https://rpc.goerli.mudit.blog/","https://rpc.ankr.com/eth_goerli"]},Si={[e.MAINNET]:encodeURIComponent("ethereum"),[e.GOERLI]:encodeURIComponent("goerli"),[e.BINANCE]:encodeURIComponent("binance"),[e.BINANCE_TESTNET]:encodeURIComponent("binance testnet"),[e.SOLANA]:encodeURIComponent("solana"),[e.SOLANA_DEVNET]:encodeURIComponent("solana_devnet"),[e.SHARDEUM20]:encodeURIComponent("shardeum 2.0"),[e.POLYGON_MAINNET]:encodeURIComponent("polygon"),[e.POLYGON_MUMBAI]:encodeURIComponent("polygon-mumbai"),[e.STACKS_MAINNET]:encodeURIComponent("stacks"),[e.STACKS_TESTNET]:encodeURIComponent("stacks testnet"),[e.BASE_MAINNET]:encodeURIComponent("base mainnet"),[e.BASE_TESTNET]:encodeURIComponent("base testnet"),[e.CORE_MAINNET]:encodeURIComponent("core mainnet"),[e.CORE_TESTNET]:encodeURIComponent("core testnet"),[e.MANTA]:encodeURIComponent("manta"),[e.MANTA_TESTNET]:encodeURIComponent("manta testnet"),[e.ZETA]:encodeURIComponent("zeta"),[e.ZETA_TESTNET]:encodeURIComponent("zeta testnet")},Ii={[e.MAINNET]:"ETHEREUM",[e.GOERLI]:"GOERLI",[e.BINANCE]:"BSC",[e.BINANCE_TESTNET]:"BSC_TESTNET",[e.SOLANA]:"SOLANA",[e.SOLANA_DEVNET]:"SOLANA_DEVNET",[e.SHARDEUM20]:"SHARDEUM",[e.SHARDEUM_SPHINX]:"SHARDEUM_SPHINX_1.X",[e.POLYGON_MAINNET]:"POLYGON",[e.POLYGON_MUMBAI]:"POLYGON_MUMBAI",[e.STACKS_MAINNET]:"STACKS",[e.STACKS_TESTNET]:"STACKS_TESTNET",[e.BASE_MAINNET]:"BASE_MAINNET",[e.BASE_TESTNET]:"BASE_GOERLI",[e.CORE_MAINNET]:"CORE",[e.CORE_TESTNET]:"CORE_TESTNET",[e.TELOS_MAINNET]:"TELOS_MAINNET",[e.TELOS_TESTNET]:"TELOS_TESTNET",[e.OPTIMISM_MAINNET]:"OPTIMISM",[e.OPTIMISM_GOERLI]:"OPTIMISM_GOERLI",[e.ARBITRUM]:"ARBITRUM",[e.ARBITRUM_GOERLI]:"ARBITRUM_GOERLI",[e.AVALANCHE]:"AVALANCHE",[e.AVALANCHE_TESTNET]:"AVALANCHE_TESTNET",[e.ZORA_GOERLI]:"ZORA_GOERLI",[e.ZORA_MAINNET]:"ZORA",[e.MANTA]:"MANTA",[e.MANTA_TESTNET]:"MANTA_TESTNET",[e.ZETA]:"ZETA",[e.ZETA_TESTNET]:"ZETA_TESTNET",[e.OMNI_TESTNET]:"OMNI_TESTNET"};var Vo=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,Zo=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,et=t=>typeof window>"u"||typeof navigator>"u"?!1:Vo.test(navigator.userAgent)||Zo.test(navigator.userAgent.substring(0,4))||ot(t)||tt(),tt=()=>typeof window>"u"||typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent),ot=t=>{if(typeof window>"u"||typeof navigator>"u")return!1;let o=t||navigator.maxTouchPoints;return/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&o===5},ue=t=>typeof window>"u"||typeof navigator>"u"?!1:tt()||ot(t),nt=()=>typeof window>"u"||typeof navigator>"u"?!1:navigator.userAgent.includes("SamsungBrowser");var D={METAMASK:"Metamask",BRAVE:"braveEvm",WALLET_CONNECT:"WalletConnect",HAHA_WALLET:"Haha",NETWORK:"Network"},Ko=t=>{window?.ReactNativeWebView?.postMessage(JSON.stringify(t))},[at,it]=J(t=>new zo({actions:t})),st={connector:at,hooks:it,name:D.METAMASK,isInstalled:()=>window?.ethereum?.isMetaMask,handleMobile:(t,o)=>{ue()?window.open(`${o.native}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener"):window.open(`${o.universal}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener")}},Ri={connector:at,hooks:it,name:D.BRAVE,isInstalled:()=>window?.ethereum?.isBraveWallet,handleMobile:(t,o)=>{ue()?window.open(`${o.native}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener"):window.open(`${o.universal}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener")}},[Yo,Xo]=J(t=>new rt({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!1,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:o=>{console.log(o)}})),[jo,vi]=J(t=>new rt({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:o=>{console.log(o)}})),Ee={connector:Yo,mobileConnector:jo,hooks:Xo,name:D.WALLET_CONNECT,isInstalled:()=>!1},lt={...Ee,name:D.HAHA_WALLET,handleMobile(t){if(window.sendWalletConnectQR!==void 0)Ko({type:"walletconnect_haha",uri:t});else{let o=encodeURIComponent(window.location.toString()),r=encodeURIComponent(window.location.origin);window.location.assign(`haha://opensea?link=${o}`)}}},[qo,Jo]=J(t=>new $o({actions:t,urlMap:F})),ct={connector:qo,hooks:Jo,name:D.NETWORK,isInstalled:()=>!1};var V=t=>t?t.replace(/\W/g,"").toLowerCase():"";import{AppConfig as Qo,showConnect as en,UserSession as tn}from"@stacks/connect";var on=new Qo(["store_write","publish_data"]),Te=class{constructor(){this.id="stacks",this.name="Stacks",this.supportedChain="STACKS",this.userSession=new tn({appConfig:on})}activate(o,r){en({appDetails:{name:"Bandit",icon:window.location.origin+"/logo512.png"},redirectTo:"/",onFinish:o,onCancel:r,userSession:this.userSession})}setUserSession(o){this.userSession=o}getUserSession(){return this.userSession}},pt={connector:new Te,hooks:null,name:"Stacks",isInstalled:()=>!0,handleMobile(){}};import{PhantomWalletAdapter as nn}from"@solana/wallet-adapter-phantom";var dt={connector:new nn,hooks:null,name:"Phantom",isInstalled:()=>window?.solana?.isPhantom,handleMobile(){let t=encodeURIComponent(window.location.toString()),o=encodeURIComponent(window.location.origin);et()&&(nt()?window.location.assign(`phantom://browse/${t}?ref=${o}`):window.location.assign(`https://phantom.app/ul/browse/${t}?ref=${o}`))}};var rn=()=>[st,Ee,lt,ct],an=()=>[dt],sn=()=>[pt],mt=()=>[...rn().filter(t=>V(t.name)!==V("network")),...an(),...sn()];var es=mt();import{jsx as ws}from"react/jsx-runtime";var ut=ln(void 0);var pn=()=>{let t=cn(ut);if(!t)throw Error("Component is not wrapper under wallet context provider");return t},Et=pn;import Q from"@emotion/styled";import{Box as dn,Button as mn}from"@chakra-ui/react";import{CloseIcon as un}from"@chakra-ui/icons";var Tt=Q(dn)`
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--bad-colors-background);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
`,ks=Q.a`
  // color: ${({theme:t})=>t.colors.primary} !important;
  // border-bottom: 1px solid ${({theme:t})=>t.colors.primary} !important;
  margin-top: 10px;
  font-size: 14px;
`,ft=Q(un)`
  position: absolute;
  right: 5%;
  top: 20px;
  width: 16px;
  height: 16px;
  cursor: pointer;
`,Bs=Q(mn)`
  &:hover {
    background-color: ${({theme:t})=>t.colors.foreground} !important;
    color: ${({theme:t})=>t.colors.background};
  }
`;import"react";import{Box as Nt,Button as gt,Flex as v,Image as _t,Link as hn,Skeleton as St,Text as M}from"@chakra-ui/react";import{CalendarIcon as It,CheckCircleIcon as Cn,ExternalLinkIcon as An,WarningIcon as Nn}from"@chakra-ui/icons";import"react";import{Spinner as En}from"@chakra-ui/react";import{jsx as fn}from"react/jsx-runtime";var Tn=({...t})=>fn(En,{thickness:"4px",speed:"1.5s",emptyColor:"input",color:"black",size:"xl",...t}),ht=Tn;var Ct=(t,{height:o,quality:r})=>{if(t)return t.includes("imagedelivery.net")?t.includes("quality")?`${t},height=${o}`:`${t}/height=${o},quality=${r}`:t};var At="https://imagedelivery.net/6iczWBYEbx_1dYNU7ek_bA/1134e410-7b1b-4bc0-a07a-2162423d4500/medium";import{Fragment as R,jsx as d,jsxs as _}from"react/jsx-runtime";import{createElement as xn}from"react";var gn=({completed:t,title:o,link:r,hasLink:a,index:s,isTransaction:c=!0})=>_(v,{mb:"10px",children:[t==="pending"?d(ht,{size:"md",mr:"10px"}):t==="completed"?d(Cn,{width:"24px",height:"24px",color:"#01B652",mr:"10px"}):d(Nn,{width:"24px",height:"24px",color:"#ff3333",mr:"10px"}),_(M,{children:[c?`Transaction ${c?s-1:s}:`:""," ",o]}),a&&d(hn,{href:r,isExternal:!0,children:d(An,{ml:"10px",cursor:"pointer"})})]}),Sn=({completed:t})=>d(R,{children:t==="error"?_(R,{children:[d(M,{fontSize:15,mx:12,mt:2,textAlign:"center",children:"We apologise for the inconvenience. We would love to know what went wrong. Please provide us feedback by setting up a call with us."}),d(M,{fontSize:15,mt:4,textAlign:"center",fontWeight:"semibold",children:"Recieve 100 $BAD NFT wrapped tokens."}),d(gt,{mt:"20px",bg:"buttonBackground",color:"buttonColor",width:200,variant:"solid",_hover:{backgroundColor:"buttonBackground"},onClick:()=>{window.open("https://calendly.com/sandesh_bandit/customer-feedback","_blank")},leftIcon:d(It,{width:4,height:4,color:"#00000"}),children:"Get Help"})]}):t==="completed"?_(R,{children:[d(M,{fontSize:12,mx:"20%",mt:2,textAlign:"center",children:"We would love to know your experience of using our platform. Please provide us feedback by setting up a call with us."}),d(M,{fontSize:12,mt:2,textAlign:"center",fontWeight:"semibold",children:"Receive 100 $BAD NFT wrapped tokens."}),d(gt,{mt:2,bg:"buttonBackground",color:"buttonColor",variant:"outline",size:"xs",_hover:{backgroundColor:"buttonBackground"},onClick:()=>{window.open("https://calendly.com/sandesh_bandit/customer-feedback","_blank")},leftIcon:d(It,{width:3,height:3,color:"#00000"}),children:"Connect"})]}):d(R,{})}),In=({mintAddress:t,chainId:o})=>t?_(v,{alignItems:"center",mt:"4",children:[d(M,{fontSize:"12",children:"View NFT:"}),d(_t,{src:At,w:"4",h:"4",ml:"2",cursor:"pointer",onClick:()=>{window.open(`${l[o]}token/${t}${o===e.SOLANA_DEVNET?"?cluster=devnet":""}`)}})]}):null,_n=({list:t=[],completed:o,price:r,viewNFT:a,collectionState:s,sage:c})=>{let i=t.filter(E=>E.enable);return _(R,{children:[_(v,{flexDir:"column",w:"full",justifyContent:"center",alignItems:"center",children:[_(M,{fontSize:24,fontWeight:600,mb:2,children:["Minting ",o==="completed"?"Completed":o==="pending"?"In Progress":"Failed"]}),d(v,{flexDir:"column",alignItems:"flex-start",children:i.map((E,m)=>xn(gn,{...E,key:m,index:m+1}))})]}),a&&d(wn,{loading:!1,collectionState:s}),d(v,{flexDir:"column",w:"full",justifyContent:"center",alignItems:"center",mt:2,children:r>0?d(Sn,{completed:o}):d(R,{})}),c&&d(In,{mintAddress:c?.mintAddress,chainId:c?.chainId})]})},wn=({loading:t,collectionState:o})=>{let{profile:r}=o||{},{name:a,profileImage:s}=r;return d(Nt,{borderRadius:8,p:2,w:"100px",borderColor:"input",border:"1px solid",children:_(v,{direction:"column",align:"center",children:[d(St,{isLoaded:!t,startColor:"muted",endColor:"input",children:d(Nt,{h:20,w:20,bg:"gray.300",children:d(_t,{h:"full",w:"full",borderRadius:8,objectFit:"cover",src:`${Ct(s,{height:100})}`})})}),d(St,{isLoaded:!t,w:"full",mt:2,startColor:"muted",endColor:"input",children:d(M,{textAlign:"center",noOfLines:1,fontSize:10,w:"full",fontWeight:600,children:a})})]})})},wt=_n;import{Checkbox as Dn}from"@chakra-ui/react";import{initializeConnector as fe}from"@web3-react/core";import{MetaMask as Mn}from"@web3-react/metamask";import{Network as bn}from"@web3-react/network";import{WalletConnect as Ln}from"@web3-react/walletconnect-v2";var he={INJECTED:"INJECTED",WALLET_CONNECT:"WALLET_CONNECT",NETWORK:"NETWORK"};function xt(t){console.debug(`web3-react error: ${t}`)}function yn(t){xt(t)}var[On,Rn]=fe(t=>new bn({actions:t,urlMap:F,defaultChainId:1})),Mt={connector:On,hooks:Rn,type:he.NETWORK},[vn,kn]=fe(t=>new Mn({actions:t,onError:yn})),i1={connector:vn,hooks:kn,type:he.INJECTED},[Bn,Un]=fe(t=>{let o=Object.entries(F).reduce((r,[a,s])=>({...r,[a]:s[0]}),{});return new Ln({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:xt})}),bt={connector:Bn,hooks:Un,type:he.WALLET_CONNECT};function Pn(t){switch(t){case e.MAINNET:case e.GOERLI:case e.BINANCE:case e.BINANCE_TESTNET:case e.SHARDEUM_SPHINX:case e.SHARDEUM20:case e.POLYGON_MAINNET:case e.POLYGON_MUMBAI:case e.BASE_MAINNET:case e.BASE_TESTNET:case e.CORE_MAINNET:case e.CORE_TESTNET:case e.TELOS_MAINNET:case e.TELOS_TESTNET:case e.OPTIMISM_MAINNET:case e.OPTIMISM_GOERLI:case e.ARBITRUM:case e.ARBITRUM_GOERLI:case e.AVALANCHE:case e.AVALANCHE_TESTNET:case e.ZORA_MAINNET:case e.ZORA_GOERLI:case e.MANTA:case e.MANTA_TESTNET:case e.ZETA:case e.ZETA_TESTNET:case e.OMNI_TESTNET:return Je[t];default:return Qe[t][0]}}function Hn(t){return!!t&&we.includes(t)}var Lt=async(t,o)=>{if(Hn(o))if(t===bt.connector||t===Mt.connector)await t.activate(o);else{let r=_e[o],a={chainId:o,chainName:r.label,rpcUrls:[Pn(o)],nativeCurrency:r.nativeCurrency,blockExplorerUrls:[r.explorer]};await t.activate(a)}else throw new Error(`Chain ${o} not supported for connector (${typeof t})`)};import{jsx as I,jsxs as ee}from"react/jsx-runtime";var Vn=({config:t,collectionState:o,onClickClose:r})=>{let[a,s]=yt({}),[c,i]=yt(!1),{contract:E,mintPrice:m,mintPriceUnit:f,id:h}=o,{chainId:C,contractAddress:Z}=E,{connector:z,account:T,chainId:g}=Fn(),{showWallets:$,setShowWallets:w,setFilterChains:b}=Et(),te=Number(C)!==Number(g),{stagesCompleted:k,selectedStage:B,changeSelectedStage:oe,counterValue:ne,setCounterValue:K,displayConfig:Y,initiateMint:re,loading:ae,mintStatus:u,mintedTx:A}=Xe({collectionId:h,chainId:C,mintPrice:m,mintPriceUnit:f,dynamicConfig:a,contractAddress:Z});Gn(()=>{if(t)try{let N=JSON.parse(t);s(N)}catch{}},[t]);let U=async()=>{try{await Lt(z,Number(C))}catch(N){console.log(N)}};if(!Object.keys(a).length)return"Loading...";let{counter:P}=Y;return ee("div",{children:[(ae||u!=="start")&&ee(Tt,{children:[u&&I(ft,{onClick:r}),I(wt,{completed:u,price:m,viewNFT:C===e.SHARDEUM20&&u==="completed",collectionState:o,list:[{title:"Mint",completed:u,hasLink:!!A,enable:!0,link:`${l[C]}tx/${A}${C===e.SOLANA_DEVNET?"?cluster=devnet":""}`}]})]}),I(Rt,{marginY:4,fontSize:"md",fontWeight:"medium",children:"Mint Stages"}),a.mints.map((N,H)=>I(Le,{onClick:()=>oe(H),isSelected:B?.id===N.id,...N,chainId:C})),I(Ot,{marginY:4,justify:"center",children:I(Dn,{isChecked:c,onChange:()=>i(!c),children:ee(Rt,{fontSize:12,children:["I understand that I am interacting with a third party\u2019s Smart Contract and accept the"," ",I("a",{target:"_blank",href:"https://bandit.network/legal/termsOfUse.pdf",style:{fontWeight:600},rel:"noreferrer",children:"Terms of Use"})]})})}),ee(Ot,{align:"flex-start",justify:"space-between",children:[!!P&&P?.visibility&&I(Ie,{initialState:1,maxState:P.max,onChange:K,onError:()=>{},value:ne}),I(Wn,{width:"full",ml:2,children:I(Oe,{fullWidth:!0,validators:[{should:!!T,fallbackProps:{onClick:()=>{b("EVM"),w(!0)},children:"Connect Payable Wallet"}},{should:!te,fallbackProps:{onClick:U,children:"Change network",helperText:`Wrong Network! Please change the network to ${qe[C]} network`}},{should:c,fallbackProps:{disabled:!0}}],onClick:re,children:"Mint"})})]})]})},M1=Vn;export{M1 as default};
