PageSourceSearch

https://trade.zipmex.com/_next/static/chunks/app/layout-fd9770d1f60362d8.js

js zipmex.com collected 2026-09-28 06:41:41 UTC 147,564 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9558],{475:(e,t,r)=>{"use strict";r.d(t,{VisitTracker:()=>l});var n=r(13741),a=r(95562),s=r(91386),o=r(88701);let i="zx_visit_started";function l(){let e=(0,a.usePathname)(),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!e||e===t.current||(t.current=e,(0,o.iJ)(navigator.userAgent,navigator.webdriver)))return;let r=!1;try{sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),r=!0)}catch(e){}if(r){let t=(0,o.Gi)(document.referrer,window.location.host);(0,s.reportVisit)("session_start",{entry:e,...t?{ref_host:t}:{},...(0,o.zE)(window.location.search)})}(0,s.reportVisit)("page_view")},[e]),null}},1737:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>o});var n=r(42073),a=r(71140),s=r(36387);function o(){let{toasts:e}=(0,s.dj)();return(0,n.jsxs)(a.tE,{children:[e.map(function(e){let{id:t,title:r,description:s,action:o,...i}=e;return(0,n.jsxs)(a.y8,{...i,children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)(a.Sb,{className:"break-words",children:r}),s&&(0,n.jsx)(a.aD,{className:"text-xs break-words",children:s})]}),o,(0,n.jsx)(a.eC,{})]},t)}),(0,n.jsx)(a.US,{})]})}},2135:(e,t,r)=>{"use strict";r.d(t,{yy:()=>o});let n="https://solana-rpc.publicnode.com",a=[/(^|\.)api\.mainnet-beta\.solana\.com$/i],s=["trade.zipmex.com","app.zexo.io"],o=function(){let{endpoint:e,hostileEnvHost:t}=function(e){var t;let r=e.heliusKey&&e.hostname&&s.includes(e.hostname)?"".concat("https://mainnet.helius-rpc.com","/?api-key=").concat(encodeURIComponent(e.heliusKey)):null,o=null==(t=e.envValue)?void 0:t.trim();if(o&&/^https:\/\/[^\s"']+$/.test(o)){let e="";try{e=new URL(o).hostname}catch(e){return{endpoint:null!=r?r:n,hostileEnvHost:null}}return a.some(t=>t.test(e))?{endpoint:null!=r?r:n,hostileEnvHost:e}:{endpoint:o,hostileEnvHost:null}}return{endpoint:null!=r?r:n,hostileEnvHost:null}}({envValue:"https://api.mainnet-beta.solana.com",heliusKey:"54473e55-e979-49d7-bb6d-27c96190b00a",hostname:window.location.hostname});return t&&console.warn("[rpc-config] NEXT_PUBLIC_MAINNET_RPC points at ".concat(t,", which refuses browser requests from our origin (403). Falling back to ").concat(e.includes("helius")?"Helius":n,". Set a provider key instead.")),e}();["https://solana-rpc.publicnode.com",o].filter((e,t,r)=>e&&r.indexOf(e)===t)},15420:(e,t,r)=>{"use strict";r.d(t,{MainContentArea:()=>l});var n=r(42073),a=r(95562),s=r(59472),o=r(35013),i=r(18933);function l(e){let{children:t}=e,r=(0,a.usePathname)(),l=r&&"/"!==r?r.replace(/\/+$/,""):r||"/",c="/"===l?o._Q:"max-w-full",d=(0,i.DR)(l);return(0,n.jsx)("div",{className:"zipmex-page-shell flex w-full min-w-0 shrink-0 grow basis-auto flex-row justify-center pt-[calc(56px+env(safe-area-inset-top,0px))] pb-0 lg:pb-[calc(32px+env(safe-area-inset-bottom,0px))]",children:(0,n.jsx)("div",{className:(0,s.cn)("flex min-h-0 w-full min-w-0 flex-1 flex-col",d&&"pb-[calc(4rem+env(safe-area-inset-bottom))] lg:pb-0",c),children:t})})}},16226:(e,t,r)=>{"use strict";r.d(t,{M:()=>l,TourProvider:()=>i});var n=r(42073),a=r(13741);let s=(0,a.createContext)(void 0),o="zipmex_tour_completed",i=e=>{let{children:t}=e,[r,i]=(0,a.useState)(!1),[l,c]=(0,a.useState)(0),[d,u]=(0,a.useState)([]),[m,h]=(0,a.useState)(!0);(0,a.useEffect)(()=>{try{let e=localStorage.getItem(o);h("true"===e)}catch(e){h(!0)}},[]),(0,a.useEffect)(()=>{if(!r)return;let e=e=>e instanceof Element&&!!e.closest("[data-tour-scrollable]"),t=t=>{e(t.target)||t.preventDefault()},n=new Set([" ","PageUp","PageDown","Home","End","ArrowUp","ArrowDown"]),a=t=>{let r=t.target;!(r&&(r.isContentEditable||["INPUT","TEXTAREA","SELECT","BUTTON","A"].includes(r.tagName)||e(r)))&&n.has(t.key)&&t.preventDefault()};return window.addEventListener("wheel",t,{passive:!1}),window.addEventListener("touchmove",t,{passive:!1}),window.addEventListener("keydown",a),()=>{window.removeEventListener("wheel",t),window.removeEventListener("touchmove",t),window.removeEventListener("keydown",a)}},[r]);let p=(0,a.useCallback)(e=>{u(e),c(0),i(!0)},[]),x=(0,a.useCallback)(()=>{l<d.length-1?c(e=>e+1):v()},[l,d.length]),f=(0,a.useCallback)(()=>{l>
10&&c(e=>e-1)},[l]),g=(0,a.useCallback)(()=>{i(!1),c(0),u([]),b()},[]),v=(0,a.useCallback)(()=>{i(!1),c(0),u([]),b()},[]),b=(0,a.useCallback)(()=>{try{localStorage.setItem(o,"true")}catch(e){}h(!0)},[]);return(0,n.jsx)(s.Provider,{value:{isActive:r,currentStep:l,steps:d,startTour:p,nextStep:x,prevStep:f,skipTour:g,endTour:v,hasSeenTour:m,markTourAsSeen:b},children:t})},l=()=>{let e=(0,a.useContext)(s);if(!e)throw Error("useTour must be used within a TourProvider");return e}},18933:(e,t,r)=>{"use strict";r.d(t,{AppBottomNav:()=>g,Zm:()=>m,mi:()=>h,ng:()=>x,wB:()=>p,DR:()=>f}),r(42073);var n=r(60217),a=r(95562),s=r(52777),o=r(98479),i=r(64425),l=r(67726),c=r(7576),d=r(11537),u=r(59472);s.A,o.A,i.A,l.A,c.A,d.A,e=>e.startsWith("/perps/portfolio")||e.startsWith("/wallet");let m="zpx-app-bottom-nav fixed bottom-0 left-0 right-0 z-[55] border-t border-[var(--border-default)] bg-[var(--surface-page)] pb-[env(safe-area-inset-bottom)] [transform:translateZ(0)] lg:hidden",h="relative flex flex-1 flex-col items-center justify-center gap-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] focus-visible:ring-inset",p=e=>(0,u.cn)("flex h-7 w-12 items-center justify-center rounded-full transition-colors duration-200",e&&"bg-[rgb(var(--c-accent-blue-rgb)/0.14)]"),x=e=>"text-micro leading-none transition-colors ".concat(e?"font-medium text-[var(--state-info)]":"text-[var(--text-tertiary)]");function f(e){return!1}function g(){return(0,a.usePathname)(),null}},19827:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>s,m5:()=>o});var n=r(13741);let a="zpx:open-wallet-panel";function s(){window.dispatchEvent(new Event(a))}function o(e,t){let r=(0,n.useRef)(t);r.current=t,(0,n.useEffect)(()=>{let t=()=>{let t=e.current;t&&t.getClientRects().length>0&&r.current()};return window.addEventListener(a,t),()=>window.removeEventListener(a,t)},[e])}},23548:(e,t,r)=>{"use strict";r.d(t,{u:()=>s,y:()=>o});var n=r(91386);let a=["wallet_connect","rewards_login","deposit_open","first_trade","trade","predict_claim","referral_visit","session_start","page_view","wallet_modal_open","email_login_start","email_login_done","trade_press","sign_request","tx_sent","perps_enable_press","perps_enable_done","rewards_activate_press"];function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r=window.gtag;r&&r("event",e,t),function(e,t){if(!a.includes(e))return;let r=t.vertical,s="swap"===r||"perp"===r||"predict"===r||"gamba"===r||"terminal"===r?r:void 0;(0,n.reportFunnel)(e,{vertical:s})}(e,t)}catch(e){}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let r="zx_first_trade_done";localStorage.getItem(r)||(localStorage.setItem(r,"1"),s("first_trade",{vertical:e,...t}))}catch(e){}s("trade",{vertical:e,...t})}},23933:(e,t,r)=>{"use strict";r.d(t,{q:()=>function e(t){return null==t||"boolean"==typeof t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):n.isValidElement(t)?e(t.props.children):""}});var n=r(13741)},25563:(e,t,r)=>{"use strict";r.d(t,{ErrorBoundary:()=>i});var n=r(42073),a=r(13741),s=r(98672),o=r(91386);class i extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){var r,n;console.error("ErrorBoundary caught an error:",e,t),(0,o.reportReactError)(e,t.componentStack),null==(r=(n=this.props).onError)||r.call(n,e,t)}render(){if(this.state.hasError){if(this.props.fallback)return this.props.fallback;let e=this.props.fullScreen?"min-h-screen flex items-center justify-center bg-[var(--c-surface-1)] p-6":"rounded-md border border-[var(--c-border)] bg-[var(--c-surface-1)] p-6 text-center";return(0,n.jsx)("div",{className:e,children:(0,n.jsxs)("div",{className:"text-center max-w-md",children:[(0,n.jsx)(s.A,{className:"mx-auto mb-4 w-12 h-12 text-[var(--c-red)]","aria-hidden":!0}),(0,n.jsx)("h3",{className:"text-lg font-semibold text-text mb-2",children:"Oops! Something went wrong"}),(0,n.jsx)("p",{className:"text-sm text-[var(--c-text-3)] mb-6",children:"We hit a snag loading the app. This might be a temporary issue."}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("button",{onClick:this.handleRetry,className:"px-6 py-3 rounded-md bg-primary text-black font-medium hover:bg-primary/90 transition-colors",children:this.state.retryCount<2?"Try Again":"Reload App"}),this.state.retryCount>0&&(0,n.jsxs)("p",{className:"text-xs text-[var(--c-text-4)]",children:["Retry attempt ",this.state.retryCount,"/2"]})]}),!1]})})}return this.props.children}constructor(e){super(e),this.handleRetry=()=>{let{retryCount:e}=this.state;e<2?this.setState({hasError:!1,error:null,retryCount:e+1}):window.location.reload()},this.state={hasError:!1,error:null,retryCount:0}}}},28170:(e,t,r)=>{"use strict";r.d(t,{ConditionalFooter:()=>h});
1var n=r(42073),a=r(29334),s=r(59472),o=r(13741);let i=[{symbol:"SOL",mint:"So11111111111111111111111111111111111111112"},{symbol:"BTC",mint:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh"},{symbol:"ETH",mint:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs"}],l="/api/jupiter/price/v3?ids=".concat(i.map(e=>e.mint).join(",")),c={fontFamily:"var(--font-zpx-mono), 'Roboto Mono', ui-monospace, monospace"};function d(e){let{className:t}=e,[r,a]=(0,o.useState)([]);return((0,o.useEffect)(()=>{let e=!0,t=async()=>{if("undefined"==typeof document||!document.hidden)try{let t=await fetch(l);if(!t.ok)return;let r=await t.json();if(!e||!r)return;let n=i.flatMap(e=>{var t;let n=r[e.mint];return n&&"number"==typeof n.usdPrice?[{symbol:e.symbol,price:n.usdPrice,change24h:null!=(t=n.priceChange24h)?t:0}]:[]});n.length&&a(n)}catch(e){}};t();let r=setInterval(t,6e4),n=()=>{"undefined"==typeof document||document.hidden||t()};return"undefined"!=typeof document&&document.addEventListener("visibilitychange",n),()=>{e=!1,clearInterval(r),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",n)}},[]),r.length)?(0,n.jsx)("span",{className:(0,s.cn)("items-center gap-3 text-caption",t),children:r.map(e=>{var t;return(0,n.jsxs)("span",{className:"flex items-center gap-1 whitespace-nowrap",children:[(0,n.jsx)("span",{className:"text-[var(--c-text-3)]",children:e.symbol}),(0,n.jsx)("span",{style:c,className:(0,s.cn)("tabular-nums",e.change24h>=0?"text-[var(--c-green)]":"text-[var(--c-red)]"),children:(t=e.price)>=1e3?t.toLocaleString("en-US",{maximumFractionDigits:0}):t>=10?t.toFixed(2):t.toFixed(3)})]},e.symbol)})}):null}function u(e){let{className:t}=e,[r,a]=(0,o.useState)(null);return((0,o.useEffect)(()=>{let e=()=>a(new Date().toLocaleTimeString("en-GB",{timeZone:"UTC",hour12:!1}));e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[]),r)?(0,n.jsxs)("span",{style:c,className:(0,s.cn)("tabular-nums whitespace-nowrap",t),children:[r," UTC"]}):null}let m=()=>{let{publicKey:e,connected:t,connecting:r}=(0,a.v)(),o=t&&e?e.toBase58():null,i=o?(e=>"".concat(e.slice(0,4),"..").concat(e.slice(-4)))(o):r?"Connecting...":"Connect wallet";return(0,n.jsxs)("footer",{className:(0,s.cn)("hidden lg:flex","fixed bottom-0 left-0 right-0 z-50 h-8 items-center justify-between border-t border-[var(--c-border)]","bg-[rgba(6,6,12,0.55)] px-2 backdrop-blur-xl backdrop-saturate-[180%] sm:px-6"),children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-4 font-mono text-caption text-[var(--c-text-3)]",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",title:o?"Wallet: ".concat(o):"Wallet: not connected",children:[(0,n.jsx)("span",{className:(0,s.cn)("h-1.5 w-1.5 shrink-0 rounded-full",o?"bg-[var(--c-green)]":r?"bg-[var(--c-warn)]":"bg-[var(--c-text-3)]"),"aria-hidden":!0}),i]}),(0,n.jsx)(d,{className:"hidden sm:flex"}),(0,n.jsxs)("div",{className:"hidden items-center gap-4 xl:flex",children:[(0,n.jsx)("a",{href:"https://zipmex.com/blog/",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--c-text-3)] transition-colors hover:text-[var(--c-text-1)]",children:"Blog"}),(0,n.jsx)("a",{href:"https://zipmex.com/about/",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--c-text-3)] transition-colors hover:text-[var(--c-text-1)]",children:"About"}),(0,n.jsx)("a",{href:"https://zipmex.com/help/",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--c-text-3)] transition-colors hover:text-[var(--c-text-1)]",children:"Help Center"}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-[var(--c-text-3)]",title:"$ZIPMEX token launches with the relaunch",children:["$ZIPMEX",(0,n.jsx)("span",{className:"rounded border border-[var(--c-accent-2)] px-1.5 py-px text-micro font-medium text-[var(--c-accent-blue)]",children:"TGE soon"})]}),(0,n.jsx)("a",{href:"https://zipmex.com/legal/",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--c-text-3)] transition-colors hover:text-[var(--c-text-1)]",children:"Legal"})]})]}),(0,n.jsxs)("div",{className:"hidden shrink-0 items-center gap-3 font-mono text-micro text-[var(--c-text-3)] md:flex",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1",children:[(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,
1children:[(0,n.jsx)("path",{d:"M8 2L4 6H1v4h3l4 4V2Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.4 4.6a4.5 4.5 0 0 1 0 6.8M13.5 2.5a8 8 0 0 1 0 11",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),"Sound"]}),(0,n.jsxs)("span",{className:"flex items-center gap-1",children:[(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"6.5",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("path",{d:"M6 6a2 2 0 1 1 2.5 1.9c-.3.1-.5.4-.5.7V9.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:"8",cy:"11.5",r:".7",fill:"currentColor"})]}),"Tour"]}),(0,n.jsx)(u,{className:"text-[var(--c-text-3)]"}),(0,n.jsx)("span",{className:"flex items-center gap-1 text-[var(--c-green)]",children:"● Solana"})]})]})};function h(){return(0,n.jsx)(m,{})}},28681:(e,t,r)=>{"use strict";function n(){return null}r.d(t,{default:()=>n})},29025:(e,t,r)=>{"use strict";r.d(t,{ReferralCapture:()=>o});var n=r(13741),a=r(16146),s=r(23548);function o(){let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current||(e.current=!0,(async()=>{await (0,a.FD)();let e=(0,a.nl)();(null==e?void 0:e.code)&&(0,s.u)("referral_visit",{code:e.code})})())},[]),null}},35013:(e,t,r)=>{"use strict";r.d(t,{$y:()=>d,Bz:()=>i,Lt:()=>s,Ne:()=>n,QR:()=>o,_Q:()=>a,cB:()=>h,fQ:()=>p,gB:()=>l,k$:()=>m,pB:()=>u});let n="max-w-[1850px]",a="max-w-[1200px]",s="max-w-[68ch]",o="text-[clamp(22px,3.2vw,30px)] font-semibold leading-tight tracking-[-0.01em]",i="min-h-[calc(100dvh-56px-env(safe-area-inset-top,0px)-32px-env(safe-area-inset-bottom,0px))]",l="px-2 md:px-4 lg:px-6",c="gap-6 sm:gap-8 lg:gap-12",d="gap-3",u="gap-3",m=["relative z-10 w-full min-w-0",["flex flex-col w-full mx-auto overflow-x-hidden",n].join(" "),l,c].join(" "),h=["flex flex-col items-center min-h-screen w-full mx-auto overflow-x-hidden",n,l].join(" "),p=["flex flex-col w-full mx-auto overflow-x-hidden",c].join(" ")},36387:(e,t,r)=>{"use strict";r.d(t,{dj:()=>p,oR:()=>h});var n=r(13741),a=r(91386),s=r(23933),o=r(78191);let i=0,l=new Map,c=(e,t)=>{if(l.has(e))return;let r=setTimeout(()=>{l.delete(e),m({type:"REMOVE_TOAST",toastId:e})},t||3e3);l.set(e,r)},d=[],u={toasts:[]};function m(e){u=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,3)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;if(r){let t=e.toasts.find(e=>e.id===r);c(r,null==t?void 0:t.duration)}else e.toasts.forEach(e=>{c(e.id,e.duration)});return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(u,e),d.forEach(e=>{e(u)})}function h(e){let{...t}=e,r=(i=(i+1)%Number.MAX_VALUE).toString();if("warning"===t.variant)try{let e="string"==typeof t.title?t.title:"warn_toast";(0,a.reportFriction)("warn_toast",e,{severity:"warn",meta:{desc:(0,s.q)(t.description).slice(0,300)}})}catch(e){}if("destructive"===t.variant)try{let e="string"==typeof t.title?t.title:"error_toast",r=(0,s.q)(t.description).slice(0,300),n=(0,o.Lj)("".concat(e," ").concat(r))?"info":"error";(0,a.reportFriction)("error_toast",e,{severity:n,meta:{desc:r}})}catch(e){}let n=()=>m({type:"DISMISS_TOAST",toastId:r});return m({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>m({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function p(){let[e,t]=n.useState(u);return n.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:h,dismiss:e=>m({type:"DISMISS_TOAST",toastId:e})}}},37067:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var n=r(42073),a=r(70537),s=r(97240),o=r(59472);let i={xs:16,sm:24,md:32,lg:40,xl:48},l=e=>{let{size:t="md",className:r}=e,l=i[t];return(0,n.jsx)(a.default,{src:s.q.logoMini,alt:s.q.tokenName,width:l,height:l,className:(0,o.cn)("object-contain",r)})}},39335:(e,t,r)=>{"use strict";r.d(t,{default:()=>v});var n=r(42073),a=r(13741),s=r(95562),o=r(16226),i=r(48386),l=r(97151),c=r(32865),d=r(92152),u=r(37067);let m=[{target:'[data-tour="logo"]',title:"Welcome to ZIPMEX!",content:"Click the logo anytime to access our products, ecosystem links, and community channels.",placement:"bottom"},{target:'[data-tour="home-perps"]',title:"Perpetual Futures",content:"Every live market on the venue — crypto, stocks, gold, FX — with up to 100x leverage. Sort any column, page through, and click a row to trade.",placement:"top"},{target:'[data-tour="home-tokens"]',title:"Solana Token Screener",content:"Stocks, gainers, trending and most-held — live from Jupiter. Click any row to open the token page with charts and one-click swaps.",placement:"top"},{target:'[data-tour="home-predictions"]',title:"Prediction Markets",content:"Trade on real-world event outcomes. Buy YES or NO shares and profit when you are right!",placement:"top"},{target:'[data-tour="pts-chip"]',title:"Earn PTS",content:"Every swap, prediction and perp trade earns points. Inside: daily check-in streaks, your referral code, and a one-time \xd72 boost.",placement:"bottom"},{target:'[data-tour="wallet-button"]',title:"Connect Your Wallet",content:"Connect your Solana wallet to start trading and earning. We support Phantom, Solflare, MetaMask and many more!",placement:"bottom"}],h=[{target:'[data-tour="logo"]',title:"Welcome to ZIPMEX!",content:"Tap the logo anytime for products, ecosystem links, and community channels.",placement:"bottom"},{target:'[data-tour="home-perps"]',title:"Perpetual Futures",content:"Every live market, up to 100x. Tap a row to trade.",placement:"top"},{target:'[data-tour="home-tokens"]',title:"Token Screener",content:"Live Solana tokens — tap a row for charts and one-tap swaps.",placement:"top"},{target:'[data-tour="home-predictions"]',title:"Prediction Markets",content:"Trade on real-world event outcomes.",placement:"top"},{target:'[data-tour="pts-chip"]',title:"Earn PTS",content:"Points for every trade, daily check-ins, and a one-time \xd72 boost.",placement:"bottom"},{target:'[data-tour="wallet-button"]',title:"Connect Your Wallet",content:"Connect to start trading and earning.",placement:"bottom"}],p=[{target:'[data-tour="token-header"]',title:"Token Info & Watchlist",content:"See the token symbol and address. Tap the star to add to your watchlist, or tap the address to copy it.",placement:"bottom"},{target:'[data-tour="token-price"]',title:"Price & Quick Trade",content:"Real-time price with 24h change. Use the Buy and Sell buttons for quick trades with preset amounts.",placement:"bottom"},{target:'[data-tour="token-audit"]',title:"Organic Score & Safety",content:"Check the organic score to spot bot activity. Review mint/freeze status and holder concentration for safety.",placement:"bottom"},{target:'[data-tour="token-timeframe"]',title:"Timeframe Selector",content:"Switch between 5m, 1h, 6h, and 24h to view trading activity for different time periods.",placement:"bottom"},{target:'[data-tour="token-volume"]',title:"Buy/Sell Activity",content:"The green/orange bar shows the buy vs sell ratio. Track volume, traders, buys, and sells for your selected timeframe.",placement:"bottom"},{target:'[data-tour="token-links"]',title:"Research Tools",content:"Search this token on X, Google, Jupiter, DexScreener, Birdeye, or RugCheck. View on Solscan for on-chain details.",placement:"top"},{target:'[data-tour="mobile-nav"]',title:"Switch Views",content:"Tap to switch between Token Info, Chart, and Swap. Use the green button for quick buys!",placement:"top"}],x=[{target:'[data-tour="token-header"]',title:"Token Info & Watchlist",content:"See the token symbol and address. Click the star to add to your watchlist, or click the address to copy it.",placement:"bottom"},{target:'[data-tour="token-price"]',title:"Price & Quick Trade",content:"Real-time price with 24h change. Use the Buy and Sell buttons for quick trades with preset amounts.",placement:"bottom"},{target:'[data-tour="token-audit"]',title:"Organic Score & Safety",content:"Check the organic score to spot bot activity. Review mint/freeze status and holder concentration for safety.",placement:"bottom"},{target:'[data-tour="token-timeframe"]',title:"Timeframe Selector",content:"Switch between 5m, 1h, 6h, and 24h to view trading activity for different time periods.",placement:"bottom"},{target:'[data-tour="token-volume"]',title:"Buy/Sell Activity",content:"The green/orange bar shows the buy vs sell ratio. Track volume, traders, buys, and sells for your selected timeframe.",placement:"bottom"},{target:'[data-tour="token-links"]',title:"Research Tools",content:"Search this token on X, Google, Jupiter, DexScreener, Birdeye, or RugCheck. View on Solscan for on-chain details.",placement:"top"},{target:'[data-tour="token-chart"]',title:"Price Chart",content:"Analyze price action with the integrated chart. Switch between Chart, Transactions, and Holders views.",placement:"left"},{target:'[data-tour="token-transactions"]',title:"Live Transactions",content:"Watch real-time buys and sells. Green = buys, Red = sells. Track whale activity and market flow.",placement:"top"},{target:'[data-tour="token-swap"]',title:"Trade This Token",content:"Use Swap for instant trades, Limit to set target prices, or DCA to invest over time.",placement:"left"}],f=[{target:'[data-tour="logo"]',title:"Welcome to Trading!",content:"Acce
1ss all ZIPMEX features from the logo menu anytime.",placement:"bottom"},{target:'[data-tour="trade-tabs"]',title:"Trading Options",content:"Choose your trading style: Swap for instant trades, Limit to set target prices, or DCA to invest over time.",placement:"bottom"},{target:'[data-tour="swap-form"]',title:"Swap Interface",content:"Select tokens and enter amounts to swap. Click any token to search from thousands of Solana tokens. Use the arrow button to switch directions.",placement:"bottom"},{target:'[data-tour="wallet-button"]',title:"Connect to Trade",content:"Connect your Solana wallet to start trading. Your funds stay in your control - we never hold your assets.",placement:"bottom"}],g=[{target:'[data-tour="logo"]',title:"Token Terminal",content:"Your command center for discovering trending tokens, tracking watchlists, and executing quick trades.",placement:"bottom"},{target:'[data-tour="terminal-tabs"]',title:"Token Discovery",content:"Browse Trending tokens, Recently listed tokens, high Organic score tokens, or your personal Watchlist.",placement:"bottom"},{target:'[data-tour="quick-buy"]',title:"Quick Buy Settings",content:"Set your default quick buy amount. Click the lightning bolt on any token to instantly swap this amount of SOL.",placement:"bottom"},{target:'[data-tour="timeframe-selector"]',title:"Timeframe Filter",content:"Switch between 5m, 1h, 6h, and 24h views to see price changes and volume across different time periods.",placement:"bottom"},{target:'[data-tour="token-table"]',title:"Token Data",content:"View real-time token data including price, market cap, volume, liquidity, and trading activity. Click any column to sort.",placement:"top"},{target:'[data-tour="wallet-button"]',title:"Connect for Quick Buys",content:"Connect your wallet to enable quick buy functionality and star tokens to your watchlist.",placement:"bottom"}],v=e=>{let t,{autoStart:r=!0,showButton:v=!0,welcomeDelay:b=1500,buttonPosition:A="bottom-right"}=e,w=(0,s.usePathname)(),{startTour:y,isActive:j}=(0,o.M)(),k=(0,l.iR)(),[N,C]=(0,a.useState)(!1),[L,M]=(0,a.useState)(!1),[S,E]=(0,a.useState)(!0),[I,T]=(0,a.useState)(!0),[z,D]=(0,a.useState)(!1);(0,a.useEffect)(()=>{try{let e=localStorage.getItem("isDisclaimerAccepted");D("true"===e)}catch(e){D(!1)}let e=()=>{try{let e=localStorage.getItem("isDisclaimerAccepted");D("true"===e)}catch(e){}};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[]),(0,a.useEffect)(()=>{let e=()=>T(window.innerWidth>=1024);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let B=(0,a.useMemo)(()=>((e,t)=>e.startsWith("/tokens/")?{steps:t?x:p,pageKey:"token",welcomeTitle:"Exploring a Token?",welcomeDescription:"Let us show you all the tools available for analyzing and trading this token!",hasBottomNav:!t}:"/trade/terminal"===e?{steps:g,pageKey:"terminal",welcomeTitle:"Token Terminal",welcomeDescription:"Discover trending tokens, manage your watchlist, and execute quick trades!"}:"/trade"===e||e.startsWith("/trade/")?{steps:f,pageKey:"trade",welcomeTitle:"Ready to Trade?",welcomeDescription:"Learn about all the trading options available to you!"}:"/"===e?{steps:t?m:h,pageKey:"home",welcomeTitle:"New to ZIPMEX?",welcomeDescription:"Take a quick tour to discover all the features!"}:null)(w,I),[w,I]),R=B?(t=B.pageKey,"zipmex_tour_".concat(t,"_completed")):null;(0,a.useEffect)(()=>{M(!0)},[]),(0,a.useEffect)(()=>{if(!R)return void E(!0);E("true"===localStorage.getItem(R))},[R]),(0,a.useEffect)(()=>{C(!1)},[w]),(0,a.useEffect)(()=>{if(L&&B&&!S&&!j&&z&&!k&&"/"===w&&r){let e=setTimeout(()=>{C(!0)},b);return()=>clearTimeout(e)}},[L,B,S,r,j,b,z,w,k]);let Z=()=>{R&&(C(!1),localStorage.setItem(R,"true"),E(!0))};if(!L||!B)return null;let P="bottom-left"===A?"left-6":"right-6",W=I?"bottom-6":"bottom-[calc(72px+env(safe-area-inset-bottom))]";return(0,n.jsxs)(n.Fragment,{children:[N&&!k&&(0,n.jsx)("div",{className:"fixed ".concat(W," ").concat(P," z-[45] animate-in slide-in-from-bottom-4 fade-in duration-200"),children:(0,n.jsxs)("div",{className:"bg-card border border-borderStrong rounded-xl p-5 max-w-[340px] shadow-2xl",children:[(0,n.jsx)("button",{onClick:Z,className:"absolute top-3 right-3 p-1 rounded-full hover:bg-white/10 transition-colors text-[var(--c-text-3)] hover:text-[var(--c-text-1)]","aria-label":"Dismiss",children:(0,n.jsx)(c.A,{className:"w-4 h-4"})}),(0,n.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,n.jsx)(u.r,{size:"md"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"text-text font-semibold text-base",children:B.welcomeTitle}),(0,n.jsx)("p",{className:"text-text/60 text-sm mt-1",children:B.welcomeDescription})]})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.$,{variant:"secondary",onClick:Z,className:"flex-1 h-10",children:"Maybe Later"}),(0,n.jsx)(i.$,{variant:"default",onClick:()=>{B&&R&&(C(!1),y(B.steps),localStorage.setItem(R,"true"),E(!0))},className:"flex-1 h-10 font-medium",children:"Start Tour"})]})]})}),v&&!j&&!N&&!k&&(0,n.jsx)("button",{onClick:()=>{B&&y(B.steps)},className:"fixed ".concat(W," ").concat(P," z-40 w-12 h-12 bg-card border border-borderStrong rounded-full flex items-center justify-center shadow-lg hover:bg-inner hover:border-primary/30 transition-all group"),"aria-label":"Start guided tour",children:(0,n.jsx)(d.A,{className:"w-5 h-5 text-text/60 group-hover:text-primary transition-colors"})})]})}},39876:(e,t,r)=>{"use strict";r.d(t,{ServiceWorkerRegister:()=>a});var n=r(13741);function a(){return(0,n.useEffect)(()=>
1{if("undefined"==typeof navigator||!("serviceWorker"in navigator))return;let e=()=>{navigator.serviceWorker.register("/sw.js",{scope:"/"}).then(e=>{e.addEventListener("updatefound",()=>{let t=e.installing;t&&t.addEventListener("statechange",()=>{if("installed"===t.state&&navigator.serviceWorker.controller){var r;null==(r=e.waiting)||r.postMessage("SKIP_WAITING")}})})}).catch(()=>{})};"complete"===document.readyState?e():window.addEventListener("load",e,{once:!0})},[]),null}},43632:()=>{},44466:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(13741),a=r(91386),s=r(87207);async function o(e,t){let r="/api/jupiter/ultra/v1/holdings/".concat(e),n=await (0,s.i)(async()=>{let e=await fetch(r);if(!e.ok)throw Error("Failed to fetch holdings: ".concat(e.status," ").concat(e.statusText));return e.json()},t),a={amount:n.amount,decimals:9,uiAmount:n.uiAmount},o=new Map;return n.tokens&&"object"==typeof n.tokens&&Object.entries(n.tokens).forEach(e=>{let[t,r]=e;if(!r||0===r.length)return;let n=r[0].decimals,a=BigInt(0),s=0;for(let e of r){try{var i;a+=BigInt(null!=(i=e.amount)?i:"0")}catch(e){}s+=Number(e.uiAmount)||0}o.set(t,{mint:t,amount:a.toString(),decimals:n,uiAmount:s})}),{holdings:o,nativeBalance:a}}let i=e=>{let[t,r]=(0,n.useState)(new Map),[s,i]=(0,n.useState)(null),[l,c]=(0,n.useState)(!1),[d,u]=(0,n.use
1State)(null),m=(0,n.useRef)(0),h=(0,n.useCallback)(async()=>{let t=++m.current;if(!e){r(new Map),i(null);return}c(!0),u(null);try{let n=await o(e.toBase58());if(t!==m.current)return;r(n.holdings),i(n.nativeBalance)}catch(e){if(t!==m.current)return;console.error("Error fetching Jupiter holdings:",e),(0,a.reportApiFailure)("/api/jupiter/ultra/v1/holdings",0,{meta:{error:e instanceof Error?e.message.slice(0,160):String(e).slice(0,160)}}),u(e instanceof Error?e.message:"Failed to fetch holdings"),r(new Map),i(null)}finally{t===m.current&&c(!1)}},[e]);return(0,n.useEffect)(()=>{h()},[h]),{holdings:t,nativeBalance:s,loading:l,error:d,refresh:h}}},44904:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(13741),a=r(91386);function s(e,t,r){(0,n.useEffect)(()=>{t&&(0,a.reportDeadEnd)(e,t,r?{meta:r}:void 0)},[e,t])}},48386:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(42073),a=r(13741),s=r(78828),o=r(59472);let i=a.forwardRef((e,t)=>{let{children:r,...s}=e;return a.isValidElement(r)?a.cloneElement(r,{...s,...r.props,ref:t}):(0,n.jsx)("span",{...s,ref:t,children:r})});i.displayName="Slot";let l=(0,s.F)("inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium leading-5 ring-offset-background transition-all duration-200 ease-in-out cursor-pointer border-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] focus-visible:ring-offset-2 active:scale-[0.98] hover:brightness-110 active:brightness-95 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"rounded-md bg-primary text-[var(--c-bg)] font-medium text-read active:brightness-95 transition-all",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20",outline:"bg-background hover:bg-accent/10",secondary:"bg-card text-secondary-foreground hover:bg-surfaceElevated hover:text-text",ghost:"rounded-md bg-transparent text-[var(--c-accent-blue)] font-medium text-read hover:bg-[var(--accent-dim)]",link:"text-primary underline-offset-4 hover:underline",success:"bg-profit/10 text-profit hover:bg-profit/20",buy:"rounded-md bg-[var(--c-green)] text-[var(--c-bg)] font-semibold text-read hover:opacity-90 active:opacity-80",sell:"rounded-md bg-[var(--c-red-bg)] text-[var(--c-red)] font-semibold text-read border border-[var(--c-red-2)] hover:bg-[var(--c-red-4)]",primaryBlur:"rounded-md bg-primary text-[var(--c-bg)] font-medium text-read active:brightness-95 disabled:opacity-40 disabled:cursor-not-allowed",surface:"bg-[var(--surface-overlay)] text-[var(--text-primary)] hover:bg-[var(--surface-inset)]"},size:{default:"h-10 rounded-md px-4 py-2",sm:"h-8 rounded-md px-3",lg:"h-12 rounded-md px-8",icon:"h-10 w-10",xs:"h-8 rounded-md px-2.5 text-body",touch:"h-touch rounded-md px-4"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:a,size:s,asChild:c=!1,...d}=e,u=c?i:"button";return(0,n.jsx)(u,{className:(0,o.cn)(l({variant:a,size:s,className:r})),ref:t,...d})});c.displayName="Button"},51424:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={home:"/",trade:{root:"/trade",terminal:"/trade/terminal",bridge:"/trade/bridge",perpetuals:"/trade/perpetuals",buysell:"/trade/buyandsell",swap:"/trade",dca:"/trade/dca",limit:"/trade/limit",liquidity:"/trade/liquidity",ripeRotten:"/trade/riperotten"},earn:{root:"/earn",dynamicVault:"/earn/dynamic-vault",liquidityStaking:"/earn/liquidity-staking",stakingFarms:"/earn/tokenized-nft-farm"},perps:{root:"/perps/PERP_SOL_USDC",markets:"/perps/markets",portfolio:"/perps/portfolio",leaderboard:"/perps/leaderboard",vaults:"/perps/vaults"},predict:{root:"/predict",event:e=>"/predict/".concat(e)},tools:{root:"/tools",explore:"/tools/explore",burnNftToken:"/tools/burn-nft-token",burnSplToken:"/tools/burn-spl-token",tokenMultiSender:"/tools/token-multi-sender",emergencySend:"/tools/emergency-send",closeTokenAccounts:"/tools/close-token-accounts"},ecosystem:{root:"/ecosystem",explore:"/ecosystem/explore",createSplToken:"/ecosystem/create-spl-token"},info:{root:"/info"},inPageLinks:{tokenMultiSender:{root:"/tools/token-multi-sender",csv:"/tools/token-multi-sender-csv",tokenToManyWallets:"/tools/token-to-many-wallets",emergencySend:"/tools/emergency-send"}},shop:{root:"/shop"},explore:{root:"/explore"},others:{discord:"https://discord.gg/Sk36TszFx",docs:"https://docs.zipmex.com/"}}},52181:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,43632,23)),Promise.resolve().then(r.bind(r,28681)),Promise.resolve().then(r.bind(r,18933)),Promise.resolve().then(r.bind(r,53304)),Promise.resolve().then(r.bind(r,25563)),Promise.resolve().then(r.bind(r,54618)),Promise.resolve().then(r.bind(r,77862)),Promise.resolve().then(r.bind(r,29025)),Promise.resolve().then(r.bind(r,39876)),Promise.resolve().then(r.bind(r,39335)),Promise.resolve().then(r.bind(r,475)),Promise.resolve().then(r.bind(r,28170)),Promise.resolve().then(r.bind(r,15420)),Promise.resolve().then(r.bind(r,61675)),Promise.resolve().then(r.bind(r,1737)),Promise.resolve().then(r.bind(r,52854)),Promise.resolve().then(r.bind(r,64937)),Promise.resolve().then(r.bind(r,16226)),Promise.resolve().then(r.bind(r,73012)),Promise.resolve().then(r.bind(r,84039)),Promise.resolve().then(r.bind(r,46236)),Promise.resolve().then(r.t.bind(r,98004,23)),Promise.resolve().then(r.t.bind(r,44380,23)),Promise.resolve().then(r.t.bind(r,38706,23))},52854:(e,t,r)=>{"use strict";r.d(t,{PriorityFeeProvider:()=>o});var n=r(42073),a=r(13741);let s=(0,a.createContext)(void 0),o=e=>{let{children:t}=e,[r,o]=(0,a.useState)("turbo"),i={priorityLevel:r,setPriorityLevel:o,priorityFee:(e=>{switch(e){case"fast":default:return 5e3;case"turbo":return 1e4;case"ultra":return 2e4}})(r)};return(0,n.jsx)(s.Provider,{value:i,children:t})}},53304:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(42073),a=r(13741),s=r(97151),o=r(70547),i=r(48386),l=r(59472);let c=e=>{let{open:t,onOpenChange:r}=e;return(0,n.jsx)(s.lG,{open:t,modal:!0,children:(0,n.jsxs)(s.ZJ,{children:[(0,n.jsx)(s.LC,{className:"bg-black/90 backdrop-blur-sm"}),(0,n.jsx)(o.UC,{onPointerDownOutside:e=>e.preventDefault(),onEscapeKeyDown:e=>e.preventDefault(),className:(0,l.cn)("fixed left-[50%] top-[50%] z-[110] grid w-[calc(100%-32px)] sm:w-full max-w-lg translate-x-[-50%] translate-y-[-50%]","rounded-xl bg-card border-2 border-border p-6 sm:p-10 shadow-2xl","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"),children:(0,n.jsxs)("div",{className:"flex flex-col w-full text-center space-y-6",children:[(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)(s.L3,{className:"text-primary text-center font-urbanist text-display font-bold leading-tight tracking-normal",children:"Ready to Swap, Trade, & Stack?"}),(0,n.jsx)("div",{className:"w-16 h-1 bg-primary/20 mx-auto rounded-full"})]}),(0,n.jsx)("p",{className:"text-center font-urbanist text-sm font-normal leading-relaxed text-text/90 mx-auto max-w-md",children:"This website is an open-source interface built by the ZIPMEX community and contributors to connect with blockchain smart contracts and tools. All transactions happen directly on permissionless smart contracts, which anyone can access through different apps or interfaces."}),(0,n.jsx)("div",{className:"bg-inner border border-border rounded-xl p-4",children:(0,n.jsx)("p",{className:"text-center font-urbanist text-xs font-medium leading-relaxed text-muted-foreground",children:"By using this site, you accept the risks and confirm that nothing here is illegal in your jurisdiction."})}),(0,n.jsx)(i.$,{variant:"primaryBlur",className:"w-full py-4 px-6 rounded-xl font-semibold text-base transition-all duration-200 shadow-lg hover:shadow-
1primary/20",onClick:()=>{try{localStorage.setItem("isDisclaimerAccepted","true"),window.dispatchEvent(new StorageEvent("storage",{key:"isDisclaimerAccepted",newValue:"true"}))}catch(e){}r(!1)},children:"Accept And Continue"}),(0,n.jsx)("p",{className:"text-center font-urbanist text-xs text-[rgba(237,225,206,0.40)] mt-2",children:"You must accept to continue using this application"})]})})]})})},d=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{try{localStorage.getItem("isDisclaimerAccepted")||t(!0)}catch(e){t(!0)}},[]),(0,n.jsx)("div",{children:(0,n.jsx)(c,{open:e,onOpenChange:t})})}},54618:(e,t,r)=>{"use strict";r.d(t,{GlobalErrorHandler:()=>c});var n=r(13741),a=r(91386);let s=/Loading chunk [\w.-]+ failed|Loading CSS chunk [\w.-]+ failed|ChunkLoadError|Failed to fetch dynamically imported module|Importing a module script failed|error loading dynamically imported module|on <link> [^ ]*\/_next\/static\/css\//i,o="zpx-chunk-reload",i="6bd0215";function l(e,t){if(!("ChunkLoadError"===t||s.test(e||"")))return!1;let r=null;try{r=sessionStorage.getItem(o)}catch(e){}if(!function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!r&&e!==t}(r,i,function(){try{let e=performance.getEntriesByType("navigation")[0];return(null==e?void 0:e.type)==="reload"}catch(e){return!1}}()))return!1;try{sessionStorage.setItem(o,i)}catch(e){}return(0,a.reportFriction)("stale_chunk_reload",e.slice(0,120)),window.location.reload(),!0}function c(){return(0,n.useEffect)(()=>{let e=e=>{var t,r;let n=e.message||"";if(n.includes("ws error")||n.includes("WebSocket")||n.includes("WebSocket is not open")){e.preventDefault(),console.warn("[GlobalErrorHandler] Suppressed WebSocket error:",n);return}if(l(n,null==(t=e.error)?void 0:t.name))return void e.preventDefault();(0,a.reportError)(null!=(r=e.error)?r:n)},t=e=>{var t;let r=e.reason,n="string"==typeof r?r:(0,a.describeEventLike)(r)||(null==r?void 0:r.message)||(null==r||null==(t=r.toString)?void 0:t.call(r))||"";if(n.includes("ws error")||n.includes("WebSocket")||n.includes("WebSocket is not open")||n.includes("failed to fetch")){e.preventDefault(),console.warn("[GlobalErrorHandler] Suppressed async error:",n);return}if(l(n,null==r?void 0:r.name))return void e.preventDefault();(0,a.reportUnhandledRejection)(r)};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[]),null}},58374:(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:96,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e)return!/^https?:\/\//i.test(e)||e.startsWith("/api/img")?e:"/api/img?u=".concat(encodeURIComponent(e),"&s=").concat(t).concat(r?"&nofb=1":"")}r.d(t,{g:()=>n})},59472:(e,t,r)=>{"use strict";r.d(t,{av:()=>l,cn:()=>i}),r(78028);var n=r(95431);r(38024);var a=r(41823),s=r(4233);new n.PublicKey("So11111111111111111111111111111111111111112");let o=(0,s.z)({classGroups:{"font-size":[{text:["micro","caption","body","read","lead","title","display"]}]}});function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return o((0,a.$)(t))}let l=(e,t)=>{let r=Math.abs(e),n="",a=1;r>=1e9?(n="B",a=1e9):r>=1e6?(n="M",a=1e6):r>=1e3&&(n="K",a=1e3);let s=(e/a).toFixed(t);return"".concat(s).concat(n)}},61675:(e,t,r)=>{"use strict";r.d(t,{default:()=>es});var n=r(42073),a=r(51424),s=r(59472),o=r(96236);let i=0,l="",c="";var d=r(60217),u=r.n(d),m=r(13741),h=r(93088),p=r(97240),x=r(70537);let f=()=>(0,n.jsx)(x.default,{src:p.q.logoBig,alt:"ZIPMEX Logo",width:88,height:28,className:"object-contain",style:{height:"28px",width:"auto"}});var g=r(95562),v=r(99462),b=r(4323);let A=()=>(0,n.jsxs)("div",{className:"flex h-9 shrink-0 items-center gap-1.5 rounded-md bg-[rgba(255,255,255,0.06)] px-[10px] py-[6px]",title:"$ZIPMEX token launches with the relaunch",children:[(0,n.jsx)(x.default,{src:p.q.logoMini,alt:p.q.tokenName,width:14,height:14,className:"flex-shrink-0 object-contain"}),(0,n.jsx)("span",{className:"whitespace-nowrap font-mono text-body font-medium text-[var(--c-text-2)]",children:"$ZIPMEX"}),(0,n.jsx)("span",{className:"zpx-label shrink-0 whitespace-nowrap rounded border border-[var(--c-accent-2)] px-1.5 py-px font-mono text-caption font-medium text-[var(--c-accent-blue)]",children:"TGE soon"})]});var w=r(10613),y=r(95753),j=r(91877);let k=e=>{let{results:t,onResultClick:r,className:a}=e;return 0===t.length?(0,n.jsx)("div",{className:(0,s.cn)("p-3 text-center text-text/50 text-sm",a),children:(0,n.jsx)("p",{children:"No results found"})}):(0,n.jsx)("div",{className:(0,s.cn)("max-h-80 overflow-y-auto py-1",a),children:t.map(e=>{var t;return(0,n.jsxs)("button",{onClick:()=>r(e),className:"w-full flex items-center gap-2.5 px-3 py-2 hover:bg-[#252525] transition-colors text-left",children:[(0,n.jsx)("div",{className:"w-7 h-7 rounded-full overflow-hidden flex-shrink-0 bg-[#2a2a2a]",children:e.logoURI?(0,n.jsx)(j.A,{src:e.logoURI,alt:e.title,width:28,height:28,className:"w-full h-full object-cover"}):(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center text-text/30 text-xs font-medium",children:(null==(t=e.symbol)?void 0:t.charAt(0))||e.title.charAt(0)})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"font-semibold text-text text-sm truncate",children:e.title}),e.symbol&&(0,n.jsx)("span",{className:"text-micro text-text/50 bg-[#2a2a2a] px-1.5 py-0.5 rounded font-medium flex-shrink-0",children:e.symbol})]}),e.description&&(0,n.jsx)("p",{className:"text-xs text-text/40 truncate mt-0.5",children:e.description})]}),(0,n.jsx)("div",{className:"text-micro text-text/40 capitalize flex-shrink-0",children:e.type})]},e.id)})})};var N=r(84492);let C=e=>"number"==typeof e&&Number.isFinite(e)&&e>0?e:0,L=e=>100/(1+e/64),M=(e,t,r)=>t===e?5:r===e?4:t&&t.startsWith(e)?3:r.startsWith(e)?2:t&&t.includes(e)?1:0,S=function(){let{tokenMap:e,userTokens:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[r,n]=(0,m.useState)(""),[a,s]=(0,m.useState)(!1),o=(0,g.useRouter)(),{tokenMap:i}=(0,N.Ew)(),l=e||i,c=(0,m.useMemo)(()=>
1{if(!r.trim()||r.length<2)return[];let e=r.toLowerCase().trim(),t=[];return l&&Array.from(l.values()).forEach((r,n)=>{if(!r||!r.symbol||!r.name)return;let a=r.symbol.toLowerCase(),s=r.name.toLowerCase();(a.includes(e)||s.includes(e))&&t.push({id:"token-".concat(r.address),type:"token",title:r.name,description:r.symbol,symbol:r.symbol,logoURI:r.logoURI,href:"/tokens/".concat(r.address),relevance:1e3*M(e,a,s)+(e=>{let t=Math.max(C(e.mcap)||C(e.fdv),C(e.liquidity));if(t>0)return 120*Math.min(Math.log10(t)/12,1);let r=C(e.holderCount);return r>0?120*Math.min(Math.log10(r)/6,1):60})(r)+L(n)})}),[{title:"Home",href:"/",description:"Main dashboard"},{title:"Trade",href:"/trade",description:"Token trading"},{title:"Predict",href:"/predict",description:"Prediction markets"}].forEach(r=>{(r.title.toLowerCase().includes(e)||r.description.toLowerCase().includes(e))&&t.push({id:"page-".concat(r.href),type:"page",title:r.title,description:r.description,href:r.href,relevance:1e3*(t=>{let r=t.toLowerCase();return r===e?6:M(e,"",r)})(r.title)+60+L(0)})}),t.sort((e,t)=>t.relevance-e.relevance||e.title.localeCompare(t.title)).slice(0,10)},[r,l]),d=(0,m.useCallback)(e=>{n(e),s(e.length>0)},[]);return{searchQuery:r,searchResults:c,isSearching:a,handleSearch:d,handleResultClick:(0,m.useCallback)(e=>{o.push(e.href),n(""),s(!1)},[o]),clearSearch:(0,m.useCallback)(()=>{n(""),s(!1)},[])}};var E=r(24535),I=r(70547),T=r(39868),z=r(47007),D=r(14913),B=r(32865),R=r(29334),Z=r(44127),P=r(36582),W=r(44466),U=r(87207),G=r(97151);let O="So11111111111111111111111111111111111111112",F=[O,"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"],Q=E.e8,Y=e=>{let{trust:t}=e;return"community"===t?null:"unknown"===t?(0,n.jsxs)("span",{className:"inline-flex flex-shrink-0 items-center gap-0.5 text-caption font-semibold text-[var(--c-warn)]",children:[(0,n.jsx)(T.A,{"aria-hidden":!0,className:"h-3 w-3"}),(0,n.jsx)("span",{children:E.iF.unknown}),(0,n.jsx)("span",{className:"sr-only",children:E.mR.unknown})]}):(0,n.jsxs)("span",{className:"inline-flex flex-shrink-0 items-center gap-0.5 text-caption font-semibold text-[var(--c-accent-blue)]",children:[(0,n.jsx)(z.A,{"aria-hidden":!0,className:"h-3 w-3"}),(0,n.jsx)("span",{children:E.iF.curated}),(0,n.jsx)("span",{className:"sr-only",children:E.mR.curated})]})},V=async e=>{let t=await fetch("/api/jupiter/tokens/v2/search?query=".concat(encodeURIComponent(e)));if(!t.ok)throw Error(429===t.status?"Rate limit exceeded (429)":"Token search failed: HTTP ".concat(t.status));try{let e=await t.json();if(!Array.isArray(e))return[];return e.filter(e=>e.icon&&!e.icon.includes("file:/")).map(e=>{var t;return{chainId:Z.K.MainnetBeta,address:e.id,name:e.name,symbol:e.symbol,logoURI:e.icon,decimals:e.decimals,tags:e.tags||[],usdPrice:e.usdPrice,priceChange24h:null==(t=e.stats24h)?void 0:t.priceChange,isVerified:!0===e.isVerified||Array.isArray(e.tags)&&e.tags.includes("verified"),mcap:e.mcap,liquidity:e.liquidity}})}catch(e){return console.error("Failed to search tokens:",e),[]}},H=async e=>{if(0===e.length)return{};try{let t=await fetch("/api/jupiter/tokens/v2/search?query=".concat(encodeURIComponent(e.join(",")))),r=await t.json();if(!Array.isArray(r))return{};let n={};for(let e of r)"string"==typeof(null==e?void 0:e.id)&&(n[e.id]={mcap:e.mcap,liquidity:e.liquidity});return n}catch(e){return console.error("Failed to load token metrics:",e),{}}},J=e=>{var t;let{info:r,onClick:a,index:o}=e;if(!r||!r.address||!r.symbol||!r.name)return null;let i="number"==typeof r.mcap&&Number.isFinite(r.mcap)&&r.mcap>0?"$".concat((0,s.av)(r.mcap,1)):null,l="number"==typeof r.liquidity&&Number.isFinite(r.liquidity)&&r.liquidity>0?"$".concat((0,s.av)(r.liquidity,1)):null,c="number"==typeof r.balanceUi&&Number.isFinite(r.balanceUi)&&r.balanceUi>0?r.balanceUi>=1e3?(0,s.av)(r.balanceUi,2):r.balanceUi>=1e-4?String(Number(r.balanceUi.toFixed(4))):"<0.0001":null;return(0,n.jsxs)("button",{onClick:a,className:"flex items-center gap-3 w-full py-2.5 px-3 transition-colors hover:bg-white/5 border-b border-border last:border-b-0",children:[(0,n.jsx)("div",{className:"w-7 h-7 rounded-full overflow-hidden bg-foreground flex-shrink-0",children:(0,n.jsx)(j.A,{src:null==(t=r.logoURI)?void 0:t.trim(),alt:r.name,height:28,width:28,className:"w-full h-full object-cover"})}),(0,n.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1 max-w-full",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-primary truncate",children:r.symbol}),(0,n.jsx)(Y,{trust:Q(r)})]}),(0,n.jsxs)("span",{className:"flex w-full items-center gap-1.5 text-micro text-[var(--c-text-3)]",children:[i&&(0,n.jsxs)("span",{className:"flex-shrink-0 whitespace-nowrap",children:["MC ",(0,n.jsx)("span",{className:"text-[var(--c-text-2)]",children:i})]}),l&&(0,n.jsxs)("span",{className:"flex-shrink-0 whitespace-nowrap",children:["LIQ ",(0,n.jsx)("span",{className:"text-[var(--c-text-2)]",children:l})]}),(0,n.jsxs)("span",{className:"min-w-0 truncate font-mono",children:[r.address.slice(0,4),"...",r.address.slice(-4)]})]})]}),(0,n.jsxs)("div",{className:"flex flex-col items-end flex-shrink-0",children:[void 0!==r.usdPrice&&r.usdPrice>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-xs text-text whitespace-nowrap",children:(0,P.b0)(r.usdPrice)}),void 0!==r.priceChange24h&&(0,n.jsxs)("span",{className:"text-micro flex items-center gap-0.5 whitespace-nowrap ".concat(r.priceChange24h>=0?"text-profit":"text-loss"),children:[r.priceChange24h>=0?"+":"",r.priceChange24h.toFixed(2),"%"]})]}):null,c&&(0,n.jsxs)("span",{className:"max-w-[104px] truncate text-micro text-[var(--c-text-3)]",children:[c," ",r.symbol]})]})]})},_=e=>{let{tokens:t,onTokenClick:r}=e;return(0,n.jsx)("div",{className:"flex flex-col",children:t.map((e,t)=>(0,n.jsx)(J,{info:e,onClick:()=>r(e),index:t},e.address))})},q=e=>{let{open:t,onOpenChange:r}=e,a=(0,g.useRouter)(),{tokenMap:o}=(0,N.Ew)(),{publicKey:i}=(0,R.v)(),[l,c]=(0,m.useState)(""),[d,u]=(0,m.useState)([]),[h,p]=(0,m.useState)(!1),x=(0,m.useRef)(null),f=(0,m.useRef)(0),[v,b]=(0,m.useState)(!1),A=(0,m.useRef)(null);(0,m.useEffect)(()=>()=>{A.current&&clearTimeout(A.current)},[]);let w=(0,m.useCallback)(e=>{c(e);let t=++f.current;if(A.current&&clearTimeout(A.current),b(!1),!e.trim()){u([]),p(!1);return}p(!0),A.current=setTimeout(async()=>{let r=[],n=!1;try{r=await (0,U.i)(()=>V(e))}catch(e){console.error("Failed to search tokens:",e),n=!0}t===f.current&&(u(r),b(n),p(!1))},250)},[]),y=(0,m.useCallback)(async()=>{try{var e,t;let r=await (null==(e=navigator.clipboard)?void 0:e.readText());(null==r?void 0:r.trim())&&(w(r.trim()),null==(t=x.current)||t.focu
1s())}catch(e){}},[w]),[k,C]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=window.matchMedia("(max-width: 639px)"),t=()=>C(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let[L,M]=(0,m.useState)(0),[S,E]=(0,m.useState)(0);(0,m.useEffect)(()=>{let e=window.visualViewport;if(!t||!k||!e){M(0),E(0);return}let r=()=>{M(Math.max(0,Math.round(window.innerHeight-e.height-e.offsetTop))),E(Math.round(e.height))};return r(),e.addEventListener("resize",r),e.addEventListener("scroll",r),()=>{e.removeEventListener("resize",r),e.removeEventListener("scroll",r)}},[t,k]);let[z,Z]=(0,m.useState)(0),P=(0,m.useRef)(null);(0,m.useEffect)(()=>{t||(P.current=null,Z(0))},[t]);let Y=()=>{P.current=null,z>80&&r(!1),Z(0)},J=(0,m.useMemo)(()=>Array.from(o.values()).filter(e=>e&&e.address&&e.symbol&&e.name).slice(0,50),[o]),[q,X]=(0,m.useState)({}),K=(0,m.useRef)("");(0,m.useEffect)(()=>{let e=J.map(e=>e.address),r=e.join(",");if(!t||!r||K.current===r)return;K.current=r;let n=!1;return H(e).then(e=>{if(n||0===Object.keys(e).length){K.current===r&&(K.current="");return}X(e)}),()=>{n=!0}},[t,J]);let $=(0,m.useMemo)(()=>F.map(e=>o.get(e)).filter(e=>!!(e&&e.address&&e.symbol)),[o]),{holdings:ee,nativeBalance:et}=(0,W.H)(t&&null!=i?i:null),er=(0,m.useMemo)(()=>{if(!i)return[];let e=new Map;if(ee.forEach((t,r)=>{t.uiAmount>0&&e.set(r,t.uiAmount)}),et&&et.uiAmount>0){var t;e.set(O,(null!=(t=e.get(O))?t:0)+et.uiAmount)}return Array.from(e.entries()).map(e=>{var t;let[r,n]=e,a=o.get(r);return a&&a.address&&a.symbol&&a.name?{...a,...null!=(t=q[r])?t:{},balanceUi:n}:null}).filter(e=>null!==e).sort((e,t)=>{var r,n,a,s,o,i;let l=(null!=(r=t.balanceUi)?r:0)*(null!=(n=t.usdPrice)?n:0)-(null!=(a=e.balanceUi)?a:0)*(null!=(s=e.usdPrice)?s:0);return 0!==l?l:(null!=(o=t.balanceUi)?o:0)-(null!=(i=e.balanceUi)?i:0)}).slice(0,8)},[i,ee,et,o,q]),en=(0,m.useMemo)(()=>{if(l.trim())return d;let e=new Set(er.map(e=>e.address));return J.filter(t=>!e.has(t.address)).map(e=>{let t=q[e.address];return t?{...e,...t}:e})},[l,d,J,q,er]),ea=!l.trim()&&er.length>0,[es,eo]=(0,m.useState)(null);(0,m.useEffect)(()=>{t||eo(null)},[t]);let ei=(0,m.useCallback)(e=>{a.push("/trade?outputMint=".concat(e.address)),r(!1),c(""),u([]),eo(null)},[a,r]),el=e=>{if("unknown"===Q(e))return void eo(e);ei(e)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(G.lG,{open:t,onOpenChange:r,children:(0,n.jsxs)(G.ZJ,{children:[(0,n.jsx)(G.LC,{}),(0,n.jsxs)(I.UC,{"aria-describedby":void 0,style:k?{bottom:L||void 0,maxHeight:S?Math.round(.92*S):void 0,transform:z?"translateY(".concat(z,"px)"):void 0,transition:z?"none":void 0}:void 0,className:(0,s.cn)("fixed inset-x-0 bottom-0 z-[110] flex w-full flex-col overflow-hidden rounded-t-xl border border-border bg-foreground pb-[env(safe-area-inset-bottom)] shadow-lg duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","max-sm:data-[state=open]:slide-in-from-bottom max-sm:data-[state=closed]:slide-out-to-bottom","sm:inset-x-auto sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:w-[calc(100vw-32px)] sm:max-w-[420px] sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-xl sm:pb-0","sm:data-[state=open]:zoom-in-95 sm:data-[state=closed]:zoom-out-95","sm:data-[state=open]:slide-in-from-left-1/2 sm:data-[state=open]:slide-in-from-top-[48%]","sm:data-[state=closed]:slide-out-to-left-1/2 sm:data-[state=closed]:slide-out-to-top-[48%]"),children:[(0,n.jsx)(G.c7,{className:"sr-only",children:(0,n.jsx)(G.L3,{children:"Search Tokens"})}),(0,n.jsx)("div",{onTouchStart:e=>{P.current=e.touches[0].clientY},onTouchMove:e=>{if(null===P.current)return;let t=e.touches[0].clientY-P.current;Z(t>0?t:0)},onTouchEnd:Y,onTouchCancel:Y,className:"flex touch-none justify-center pt-3 pb-1 sm:hidden",children:(0,n.jsx)("div",{className:"h-1 w-10 rounded-full bg-[var(--c-text-4)]"})}),(0,n.jsx)("div",{className:"px-2 pt-1 pb-2 sm:pt-3",children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{ref:x,value:l,onChange:e=>w(e.target.value),type:"text",id:"search-token-dialog",placeholder:"Search name or paste address...",className:"w-full rounded-xl bg-black/20 text-lead text-text placeholder:text-[var(--c-text-3)] max-sm:placeholder:text-read sm:text-xs outline-none pl-4 pr-[100px] sm:pr-[116px] py-2.5 border border-border focus:border-primary/50 transition-all",spellCheck:!1,autoFocus:!0}),(0,n.jsxs)("div",{className:"absolute right-2 top-1/2 flex -translate-y-1/2 items-center gap-1",children:[(0,n.jsxs)("button",{type:"button",onClick:y,"aria-label":"Paste from clipboard",className:"flex items-center gap-1 rounded-md bg-inner px-2 py-1 text-micro font-medium text-muted-foreground transition-colors hover:bg-[var(--c-surface-3)] hover:text-text",children:[(0,n.jsx)(D.A,{className:"h-3 w-3"}),"Paste"]}),(0,n.jsxs)("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close search",className:"rounded-md bg-inner px-1.5 py-1 text-micro font-medium text-muted-foreground transition-colors hover:bg-[var(--c-surface-3)] hover:text-text sm:px-2",children:[(0,n.jsx)(B.A,{className:"h-3 w-3 sm:hidden"}),(0,n.jsx)("span",{className:"hidden sm:inline",children:"Esc"})]})]})]})}),$.length>0&&(0,n.jsx)("div",{className:"-mt-2 flex items-center gap-2 overflow-x-auto px-2 pt-2 pb-2 scrollbar-none",children:$.map(e=>{var t;return(0,n.jsxs)("button",{type:"button",onClick:()=>el(e),className:"zpx-tap-44 flex h-9 shrink-0 items-center gap-1.5 rounded-md border border-border bg-inner px-2.5 text-xs font-medium text-text transition-colors hover:bg-[var(--c-surface-3)]",children:[(0,n.jsx)(j.A,{src:null==(t=e.logoURI)?void 0:t.trim(),alt:e.symbol,width:18,height:18,className:"h-[18px] w-[18px] rounded-full"}),e.symbol]},e.address)})}),(0,n.jsx)("div",{className:"h-[55vh] min-h-0 sm:h-[60vh] sm:max-h-[60vh] overflow-y-auto overflow-x-hidden overscroll-contain scrollbar-thin scrollbar-thumb-gray-600 hover:scrollbar-thumb-gray-500 scrollbar-track-transparent",children:h?(0,n.jsx)("div",{className:"flex items-center justify-center h-32 text-[var(--c-text-3)] text-xs",children:(0,n.jsx)("span",{children:"Searching..."})}):en.length>0||ea?(0,n.jsxs)(n.Fragment,{children:[ea&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"zpx-label px-3 py-1.5 text-caption font-medium text-[var(--c-text-3)]",children:"Your tokens"}),(0,n.jsx)(_,{tokens:er,onTokenClick:el}),en.length>0&&(0,n.jsx)("div",{className:"zpx-label px-3 py-1.5 text-caption font-medium text-[var(--c-text-3)]",children:"Popular"})]}),(0,n.jsx)(_,{tokens:en,onTokenClick:el})]}):l.trim()?(0,n.jsx)("div",{className:"flex items-center justify-center h-32 text-[var(--c-text-3)] text-xs",children:(0,n.jsx)("span",{children:v?"Search is busy right now. Try again in a moment.":"No tokens found"})}):null})]})]})}),(0,n.jsx)(G.lG,{open:null!==es,onOpenChange:e=>{e||eo(null)},children:(0,n.jsxs)(G.Cf,{"aria-describedby":void 0,className:"max-w-sm gap-0 rounded-xl border border-[var(--c-warn-2)] p-4 [&>button]:hidden",children:[(0,n.jsxs)(G.c7,{className:"mb-3 flex-row items-center gap-2 space-y-0 text-left",children:[(0,n.jsx)(T.A,{className:"h-5 w-5 flex-shrink-0 text-[var(--c-warn)]"}),(0,n.jsxs)(G.L3,{className:"flex-1 text-sm font-semibold text-[var(--c-text-1)]",children:["Unverified token — ",null==es?void 0:es.symbol]})]}),(0,n.jsx)("p",{className:"mb-2.5 text-caption text-[var(--c-text-3)]",children:"This token is not on the router’s verified list. Review before trading:"}),(0,n.jsxs)("ul",{className:"mb-3 space-y-1.5",children:[(0,n.jsxs)("li",{className:"flex items-start gap-2 text-body leading-snug",children:[(0,n.jsx)("span",{className:"mt-1.5 h-1.5 w-1.5 flex-shrink-0 rounded-full bg-[var(--c-warn)]"}),(0,n.jsx)("span",{className:"text-[var(--c-text-2)]",children:"Anyone can mint a token with this name and symbol — check the mint address against a source you trust."})]}),(0,n.jsxs)("li",{className:"flex items-start gap-2 text-body leading-snug",children:[(0,n.jsx)("span",{className:"mt-1.5 h-1.5 w-1.5 flex-shrink-0 rounded-full bg-[var(--c-warn)]"}),(0,n.jsx)("span",{className:"text-[var(--c-text-2)]",children:"Unlisted tokens can be thinly traded, and some cannot be sold again after they are bought."})]})]}),es&&(0,n.jsx)("p",{className:"mb-4 break-all font-mono text-micro text-[var(--c-text-3)]",children:es.address}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>eo(null),className:"flex-1 rounded-lg border border-[var(--c-border)] bg-[var(--c-surface-2)] py-2.5 text-read font-medium text-[var(--c-text-2)] transition-colors hover:bg-[var(--c-surface-3)] hover:text-[var(--c-text-1)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--c-surface-1)]",children:"Cancel"}),(0,n.jsx)("button",{type:"button",onClick:()=>{es&&ei(es)},className:"flex-1 rounded-lg bg-[var(--c-warn-6)] py-2.5 text-read font-semibold text-[var(--c-warn)] transition-colors hover:bg-[var(--c-warn-4)] focu
1s-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--c-surface-1)]",children:"Continue anyway"})]})]})})]})};var X=r(48175),K=r(63519);let $=(e,t)=>{let[r,n]=(0,m.useState)([]);return(0,m.useEffect)(()=>{let r=e.trim();if(!t||r.length<2)return void n([]);let a=new AbortController,s=setTimeout(async()=>{try{var e,t;let s=await fetch("/api/predict/all-events?start=0&end=20&query=".concat(encodeURIComponent(r)),{signal:a.signal});if(!s.ok)return;let o=await s.json(),i=null!=(t=null!=(e=null==o?void 0:o.events)?e:null==o?void 0:o.data)?t:Array.isArray(o)?o:[];n(i.filter(e=>(null==e?void 0:e.eventId)&&(null==e?void 0:e.title)&&!(0,K.J)(e.title)).slice(0,14).map(e=>{var t;return{eventId:e.eventId,title:e.title,category:e.category,subcategory:e.subcategory,imageUrl:e.imageUrl,isLive:!0===e.isLive,volume:Number(null!=(t=e.volume24h)?t:0)||void 0}}))}catch(e){}},250);return()=>{clearTimeout(s),a.abort()}},[e,t]),r};var ee=r(78811);let et=e=>{let{hit:t,onPick:r}=e,[a,s]=(0,m.useState)(!1),o=(0,ee.u2)(t.subcategory);return(0,n.jsxs)("button",{onClick:()=>r(t.eventId),className:"flex min-h-touch w-full items-center gap-3 px-3 py-1.5 text-left transition-colors hover:bg-[var(--c-surface-2)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--c-text-1)]",children:[t.imageUrl&&!a?(0,n.jsx)("img",{src:t.imageUrl,alt:"",width:32,height:32,onError:()=>s(!0),className:"h-8 w-8 flex-shrink-0 rounded-md bg-[var(--c-surface-3)] object-cover"}):(0,n.jsx)("span",{"aria-hidden":!0,className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md bg-[var(--c-surface-3)] text-caption font-semibold text-[var(--c-text-3)]",children:t.title.charAt(0).toUpperCase()}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-read text-[var(--c-text-1)]",children:t.title}),t.isLive&&(0,n.jsxs)("span",{className:"flex flex-shrink-0 items-center gap-1 rounded-full bg-[rgb(var(--c-red-rgb)/0.12)] px-2 py-0.5 text-micro font-medium text-[var(--c-red)]",children:[(0,n.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-[var(--c-red)]"}),"Live"]}),(0,n.jsx)("span",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center",children:o&&(0,n.jsx)(ee.$C,{mark:o,size:16})})]})},er=e=>{let{open:t,onOpenChange:r}=e,[s,o]=(0,m.useState)(""),i=(0,m.useRef)(null),l=(0,g.useRouter)(),c=$(s,t);(0,m.useEffect)(()=>{if(t){let e=setTimeout(()=>{var e;return null==(e=i.current)?void 0:e.focus()},80);return()=>clearTimeout(e)}o("")},[t]);let d=e=>{r(!1),l.push(a.A.predict.event(e))},u=s.trim().length>=2;return(0,n.jsx)(G.lG,{open:t,onOpenChange:r,children:(0,n.jsxs)(G.Cf,{className:"max-w-[560px] gap-0 overflow-hidden p-0",children:[(0,n.jsx)(G.L3,{className:"sr-only",children:"Search prediction events"}),(0,n.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-[var(--c-border)] px-4 py-3",children:[(0,n.jsx)(X.A,{className:"h-4 w-4 flex-shrink-0 text-[var(--c-text-3)]","aria-hidden":!0}),(0,n.jsx)("input",{ref:i,value:s,onChange:e=>o(e.target.value),className:"min-w-0 flex-1 bg-transparent text-lead outline-none placeholder:text-[var(--c-text-3)] sm:text-read",placeholder:"Search for any event","aria-label":"Search for any event"}),s?(0,n.jsx)("button",{onClick:()=>o(""),"aria-label":"Clear",className:"zpx-tap-44 flex-shrink-0 text-[var(--c-text-3)] transition-colors hover:text-[var(--c-text-1)]",children:(0,n.jsx)(B.A,{className:"h-4 w-4"})}):(0,n.jsx)("span",{"aria-hidden":!0,className:"hidden flex-shrink-0 rounded border border-[var(--c-border)] px-1.5 py-0.5 font-mono text-micro leading-none text-[var(--c-text-4)] sm:block",children:"Esc"})]}),(0,n.jsx)("div",{className:"max-h-[60vh] overflow-y-auto py-1",children:u?0===c.length?(0,n.jsxs)("p",{className:"px-4 py-6 text-center text-body text-[var(--c-text-3)]",children:["Nothing matches “",s.trim(),"”."]}):c.map(e=>(0,n.jsx)(et,{hit:e,onPick:d},e.eventId)):(0,n.jsx)("p",{className:"px-4 py-6 text-center text-body text-[var(--c-text-3)]",children:"Type at least two letters — a team, a candidate, a ticker."})})]})})},en=e=>(0,s.cn)("relative rounded-md px-2.5 py-2 text-[13px] font-normal leading-4 transition-all duration-200",e?"text-[var(--c-text-1)]":"text-[var(--c-text-3)] hover:text-[var(--c-text-1)]"),ea=[{href:"".concat(a.A.perps.portfolio,"/positions"),label:"Positions"},{href:"".concat(a.A.perps.portfolio,"/orders"),label:"Orders"},{href:"".concat(a.A.perps.portfolio,"/assets"),label:"Assets"},{href:"".concat(a.A.perps.portfolio,"/history"),label:"History"},{href:"".concat(a.A.perps.portfolio,"/fee"),label:"Fee tier"},{href:"".concat(a.A.perps.portfolio,"/setting"),label:"Settings"},{href:"".concat(a.A.perps.portfolio,"/api-key"),label:"API keys"}],es=()=>{var e;
1let t=(0,g.usePathname)(),[r,d]=(0,m.useState)(!1),[p,x]=(0,m.useState)(!1),[j,N]=(0,m.useState)(!1),[C,L]=(0,m.useState)(!1),[M,E]=(0,m.useState)(!1),[I,T]=(0,m.useState)(null),[z,D]=(0,m.useState)(!1),[B,R]=(0,m.useState)(!1),[Z,P]=(0,m.useState)(!1),[W,U]=(0,m.useState)(!1),[O,F]=(0,m.useState)(!1),[Q,Y]=(0,m.useState)(!1),[V,H]=(0,m.useState)(!1),[J,_]=(0,m.useState)(!1),X=(0,m.useRef)(null),K=(0,m.useRef)(null),ee=(0,m.useRef)(null),et=(0,m.useRef)(null),es=(0,m.useRef)(null),eo=(0,m.useRef)(null),[ei,el]=(0,m.useState)(!1),{searchQuery:ec,searchResults:ed,isSearching:eu,handleSearch:em,handleResultClick:eh}=S(),ep=null!=(e=null==t?void 0:t.startsWith("/predict"))&&e,ex=$(ec,ep),ef=ep?[...ex.map(e=>({id:"event-".concat(e.eventId),type:"event",title:e.title,description:e.category,logoURI:e.imageUrl,symbol:e.isLive?"LIVE":void 0,href:"/predict/".concat(e.eventId)})),...ed].slice(0,10):ed,eg=eu&&ef.length>0&&!ei&&!j,ev=()=>el(!1);(0,m.useEffect)(()=>{let e=e=>{let t=document.activeElement,n=t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"true"===t.getAttribute("contenteditable"));("f"===e.key||"F"===e.key)&&(e.ctrlKey||e.metaKey)&&!n&&!j&&(e.preventDefault(),d(!0),setTimeout(()=>{var e;return null==(e=es.current)?void 0:e.focus()},150)),"Escape"===e.key&&r&&d(!1),"Escape"===e.key&&el(!0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,j]),(0,m.useEffect)(()=>{let e=e=>{let t=e.target;!p||t.closest(".mobile-menu")||t.closest("[data-mobile-nav-burger]")||x(!1)};if(p)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[p]),(0,m.useEffect)(()=>{if(!eg)return;let e=e=>{var t;let r=e.target;r&&(null==(t=eo.current)?void 0:t.contains(r))||el(!0)};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[eg]),(0,m.useEffect)(()=>{j&&el(!0)},[j]),(0,m.useEffect)(()=>{if(p)return function(){if("undefined"==typeof document)return()=>{};let e=document.body;if(!e)return()=>{};if(0===i){l=e.style.overflow,c=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;e.style.overflow="hidden",t>2&&(e.style.paddingRight="".concat(t,"px"))}i+=1;let t=!1;return()=>{if(t||(t=!0,(i=Math.max(0,i-1))>0))return;let e=document.body;e&&(l?e.style.overflow=l:e.style.removeProperty("overflow"),c?e.style.paddingRight=c:e.style.removeProperty("padding-right"))}}()},[p]);let[eb,eA]=(0,m.useState)(!1),[ew,ey]=(0,m.useState)(!1);(0,m.useEffect)(()=>{if(p){eA(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>ey(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}ey(!1);let e=window.setTimeout(()=>eA(!1),260);return()=>window.clearTimeout(e)},[p]),(0,m.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=()=>{e.matches&&x(!1)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,m.useEffect)(()=>{L(window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone||document.referrer.includes("android-app://"));let e=e=>{e.preventDefault(),T(e)},t=()=>{L(!0),T(null),N(!1)},r=window.matchMedia("(display-mode: standalone)"),n=e=>L(e.matches);r.addEventListener("change",n);let a=()=>E(window.innerWidth<=768);return a(),window.addEventListener("resize",a),window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",t),()=>{r.removeEventListener("change",n),window.removeEventListener("resize",a),window.removeEventListener("beforeinstallprompt",e),window.removeEventListener("appinstalled",t)}},[]);let ej=async()=>{if(I&&"function"==typeof I.prompt){var e;I.prompt(),await (null==(e=I.userChoice)?void 0:e.catch(()=>null)),T(null);return}N(!0)},ek=async()=>{if(I&&"function"==typeof I.prompt){var e;I.prompt(),await (null==(e=I.userChoice)?void 0:e.catch(()=>null)),T(null),N(!1);return}window.open(o.W,"_blank","noopener,noreferrer")},eN=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";return(0,s.cn)("absolute top-full z-[150] mt-2 min-w-[180px] rounded-md border border-[var(--c-border)] bg-[var(--c-surface-1)] p-1.5 shadow-xl transition-all duration-200","right"===t?"right-0":"left-0",e?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none -translate-y-1 opacity-0")},eC="flex w-full items-center justify-between border-b border-[var(--c-border)] bg-transparent px-0 py-3.5 text-left font-normal text-base text-[var(--c-text-2)] transition-colors hover:text-[var(--c-text-1)]",eL="block border-b border-[var(--c-border)] px-0 py-2.5 text-sm text-[var(--c-text-3)] no-underline transition-colors hover:text-[var(--c-text-1)]";return(0,n.jsxs)("header",{className:(0,s.cn)("fixed left-0 right-0 top-0 z-[100] flex h-[calc(56px+env(safe-area-inset-top,0px))] min-h-[56px] items-center overflow-visible border-b-0 bg-[rgba(6,6,12,0.55)] pt-[env(safe-area-inset-top,0px)] backdrop-blur-xl backdrop-saturate-[180%] sm:px-6","px-2 md:px-6"),children:[(0,n.jsxs)("div",{className:"mx-auto flex w-full max-w-none items-center gap-0 overflow-visible",children:[(0,n.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2 sm:gap-3 lg:gap-8",children:[(0,n.jsx)("button",{type:"button","data-mobile-nav-burger":!0,className:(0,s.cn)("zpx-tap-44 flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-md border-none bg-[rgba(255,255,255,0.06)] transition-colors hover:bg-[rgba(255,255,255,0.08)] xl:hidden","flex"),onClick:()=>{x(!p),p&&(D(!1),U(!1))},"aria-label":"Menu",children:(0,n.jsxs)("span",{className:"relative block h-0.5 w-[18px] bg-transparent",children:[(0,n.jsx)("span",{className:(0,s.cn)("absolute left-0 top-[-4px] h-0.5 w-[18px] rounded-md bg-white/50 transition-all duration-200 [transition-timing-function:cubic-bezier(0.4,0,0.2,1)]",p&&"top-0 rotate-45")}),(0,n.jsx)("span",{className:(0,s.cn)("absolute left-0 top-[4px] h-0.5 w-[18px] rounded-md bg-white/50 transition-all duration-200 [transition-timing-function:cubic-bezier(0.4,0,0.2,1)]",p&&"top-0 -rotate-45")})]})}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.home,className:"flex flex-shrink-0 cursor-pointer items-center gap-2 no-underline transition-opacity hover:opacity-80","data-tour":"logo",children:(0,n.jsx)(f,{})}),(0,n.jsxs)("nav",{className:"ml-3 mr-2 hidden shrink-0 items-center gap-1 xl:flex",children:[(0,n.jsxs)("div",{className:"relative",onMouseEnter:()=>{X.current&&clearTimeout(X.current),F(!0)},onMouseLeave:()=>{X.current=setTimeout(()=>F(!1),300)},children:[(0,n.jsxs)("button",{type:"button",className:(0,s.cn)("relative flex items-center gap-1 rounded-md px-3 xl:px-4 py-2 text-[13px] leading-4 font-normal transition-all duration-200",t.startsWith("/perps")?"text-[var(--c-text-1)]":"text-[var(--c-text-3)] hover:text-[var(--c-text-1)]"),children:["Perps",(0,n.jsx)(y.Jy,{className:(0,s.cn)("h-2.5 w-2.5 o
1pacity-40 transition-transform",O&&"rotate-180")})]}),(0,n.jsxs)("div",{className:eN(O),children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.root,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Trading"}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.markets,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Markets"}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.portfolio,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Portfolio"}),ea.map(e=>(0,n.jsx)(u(),{prefetch:!1,href:e.href,className:"block cursor-pointer rounded-md py-2 pl-7 pr-4 text-[13px] leading-4 text-[var(--c-text-3)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:e.label},e.href)),(0,n.jsxs)(u(),{prefetch:!1,href:a.A.perps.vaults,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:["Vaults",(0,n.jsx)("span",{className:"ml-2 rounded-full bg-[rgba(76,215,244,0.14)] px-1.5 py-0.5 text-micro font-semibold text-[var(--c-accent-blue)]",children:"NEW"})]}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.leaderboard,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Leaderboard"})]})]}),(0,n.jsxs)("div",{className:"relative",onMouseEnter:()=>{ee.current&&clearTimeout(ee.current),H(!0)},onMouseLeave:()=>{ee.current=setTimeout(()=>H(!1),300)},children:[(0,n.jsxs)("button",{type:"button",className:(0,s.cn)("relative flex items-center gap-1 rounded-md px-3 xl:px-4 py-2 text-[13px] leading-4 font-normal transition-all duration-200",t.startsWith("/predict")?"text-[var(--c-text-1)]":"text-[var(--c-text-3)] hover:text-[var(--c-text-1)]"),children:["Predict",(0,n.jsx)(y.Jy,{className:(0,s.cn)("h-2.5 w-2.5 opacity-40 transition-transform",V&&"rotate-180")})]}),(0,n.jsxs)("div",{className:eN(V),children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.predict.root,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Markets"}),(0,n.jsx)(u(),{prefetch:!1,href:"/predict/leaderboard",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Leaderboard"})]})]}),(0,n.jsxs)("div",{className:"relative",onMouseEnter:()=>{K.current&&clearTimeout(K.current),Y(!0)},onMouseLeave:()=>{K.current=setTimeout(()=>Y(!1),300)},children:[(0,n.jsxs)("button",{type:"button",className:(0,s.cn)("relative flex items-center gap-1 rounded-md px-3 xl:px-4 py-2 text-[13px] leading-4 font-normal transition-all duration-200",t===a.A.trade.terminal||t.startsWith("/leaderboard")||t.startsWith("/callouts")?"text-[var(--c-text-1)]":"text-[var(--c-text-3)] hover:text-[var(--c-text-1)]"),children:["Terminal",(0,n.jsx)(y.Jy,{className:(0,s.cn)("h-2.5 w-2.5 opacity-40 transition-transform",Q&&"rotate-180")})]}),(0,n.jsxs)("div",{className:eN(Q),children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.trade.terminal,className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Tokens"}),(0,n.jsx)(u(),{prefetch:!1,href:"/leaderboard",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Leaderboard"}),(0,n.jsx)(u(),{prefetch:!1,href:"/callouts",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Callouts"})]})]}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.trade.root,className:en(t===a.A.trade.root),children:"Swap"}),(0,n.jsx)(u(),{prefetch:!1,href:"/season",className:en(t.startsWith("/season")),children:"Season"}),(0,n.jsxs)("div",{className:"relative",onMouseEnter:()=>{et.current&&clearTimeout(et.current),_(!0)},onMouseLeave:()=>{et.current=setTimeout(()=>_(!1),300)},children:[(0,n.jsxs)("button",{type:"button",className:"flex items-center gap-1 rounded-md px-3 xl:px-4 py-2 text-[13px] leading-4 font-normal text-[var(--c-text-3)] transition-all duration-200 hover:text-[var(--c-text-1)]",children:["More",(0,n.jsx)(y.Jy,{className:(0,s.cn)("h-2.5 w-2.5 o
1pacity-40 transition-transform",J&&"rotate-180")})]}),(0,n.jsxs)("div",{className:eN(J,"right"),children:[(0,n.jsx)(u(),{prefetch:!1,href:"/bridge",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Bridge"}),(0,n.jsx)("a",{href:"https://zipmex.com/blog/",target:"_blank",rel:"noopener noreferrer",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Blog"}),(0,n.jsx)("a",{href:"https://zipmex.com/help/",target:"_blank",rel:"noopener noreferrer",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Help Centre"}),(0,n.jsx)("a",{href:"https://zipmex.com/about/",target:"_blank",rel:"noopener noreferrer",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"About"}),(0,n.jsx)("a",{href:"https://zipmex.com/token/",target:"_blank",rel:"noopener noreferrer",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"$ZIPMEX — TGE soon"}),(0,n.jsx)("a",{href:"https://zipmex.com/legal/",target:"_blank",rel:"noopener noreferrer",className:"block cursor-pointer rounded-md px-4 py-2 text-[13px] leading-4 text-[var(--c-text-2)] no-underline transition-colors hover:bg-white/[0.04] hover:text-[var(--c-text-1)]",children:"Legal"})]})]})]})]}),(0,n.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-end gap-1 sm:gap-2 md:gap-3",children:[(0,n.jsxs)("div",{ref:eo,className:"relative hidden min-w-0 max-w-[340px] flex-1 min-[1600px]:block",children:[(0,n.jsxs)("div",{className:"flex h-9 w-full items-center gap-[6px] rounded-md border border-[var(--c-border)] bg-[rgba(255,255,255,0.06)] px-3 transition-[border-color] duration-200 focus-within:border-[rgba(76,215,244,0.2)]",children:[(0,n.jsx)(y.kL,{className:"h-3.5 w-3.5 flex-shrink-0 text-white/30"}),(0,n.jsx)("input",{ref:es,type:"text",value:ec,onChange:e=>{ev(),em(e.target.value)},onFocus:ev,placeholder:ep?"Search for any event":"Search...",className:"min-w-0 flex-1 border-none bg-transparent py-0 text-xs text-[var(--c-text-1)] outline-none placeholder:text-[var(--c-text-3)]"}),(0,n.jsx)("span",{className:"flex-shrink-0 rounded-md border border-[var(--c-border)] bg-white/[0.04] px-[5px] py-[2px] font-mono text-micro leading-none text-[var(--c-text-4)]",children:"/"})]}),eg&&(0,n.jsx)("div",{className:"absolute left-0 right-0 top-full z-[151] mt-1 max-h-80 overflow-y-auto rounded-md border border-white/[0.06] bg-[var(--c-surface-2)] shadow-xl",children:(0,n.jsx)(k,{results:ef,onResultClick:eh})})]}),(0,n.jsxs)("button",{type:"button",className:"zpx-tap-44 flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-md border-none bg-[rgba(255,255,255,0.06)] px-0 transition-colors hover:bg-[rgba(255,255,255,0.08)] min-[436px]:w-auto min-[436px]:min-w-[36px] min-[436px]:max-w-[420px] min-[436px]:flex-auto min-[436px]:justify-start min-[436px]:px-2.5 min-[1600px]:hidden",onClick:()=>d(!0),"aria-label":"Search",children:[(0,n.jsx)(y.kL,{className:"h-3.5 w-3.5 flex-shrink-0 text-white/70"}),(0,n.jsx)("span",{className:"hidden truncate text-xs text-[var(--c-text-3)] min-[436px]:inline sm:hidden",children:"Search"}),(0,n.jsx)("span",{className:"hidden truncate text-xs text-[var(--c-text-3)] sm:inline",children:ep?"Search events":"Search"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"hidden min-[1600px]:block",children:(0,n.jsx)(A,{})}),(0,n.jsx)(w.OC,{})]}),(0,n.jsxs)("div",{className:"flex items-center","data-tour":"wallet-button",children:[(0,n.jsx)("div",{className:"block sm:hidden",children:(0,n.jsx)(v.R,{})}),(0,n.jsx)("div",{className:"hidden sm:block",children:(0,n.jsx)(b.z,{})})]}),!C&&(0,n.jsx)("button",{type:"button",onClick:ej,className:"zpx-tap-44 hidden sm:flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-md border-none bg-[rgba(255,255,255,0.06)] p-0 transition-colors hover:bg-[rgba(255,255,255,0.08)]",title:"Install App","aria-label":"Install App",children:(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"text-white/75",children:[(0,n.jsx)("rect",{x:"4",y:"1.5",width:"8",he
1ight:"13",rx:"1.5",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("line",{x1:"6",y1:"12",x2:"10",y2:"12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",opacity:"0.5"}),(0,n.jsx)("circle",{cx:"8",cy:"12",r:"0.6",fill:"currentColor"})]})})]})]}),ep?(0,n.jsx)(er,{open:r,onOpenChange:d}):(0,n.jsx)(q,{open:r,onOpenChange:d}),eb&&"undefined"!=typeof document&&(0,h.createPortal)((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,s.cn)("fixed left-0 right-0 bottom-0 z-[95] bg-black/55 xl:hidden","transition-opacity ease-out [transition-duration:var(--c-duration-fast)]",ew?"opacity-100":"opacity-0 pointer-events-none"),style:{top:"calc(56px + env(safe-area-inset-top, 0px))"},"aria-hidden":!0,onClick:()=>x(!1)}),(0,n.jsx)("div",{className:(0,s.cn)("mobile-menu fixed bottom-0 left-0 right-0 z-[96] flex flex-col overflow-y-auto bg-[rgba(6,6,12,0.97)] px-6 py-4 backdrop-blur-2xl xl:hidden","top-[calc(56px+env(safe-area-inset-top,0px))] pb-[calc(16px+env(safe-area-inset-bottom,0px))]","transition-[transform,opacity] [transition-duration:var(--c-duration-base)] [transition-timing-function:cubic-bezier(0.32,0.72,0,1)]",ew?"translate-y-0 opacity-100":"-translate-y-4 opacity-0 pointer-events-none"),"aria-hidden":!ew,children:(0,n.jsxs)("nav",{className:"flex flex-col gap-0.5",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>D(!z),className:eC,children:["Perps",(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",style:{transform:z?"rotate(180deg)":"none",transition:"transform .2s"},children:(0,n.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),z&&(0,n.jsxs)("div",{className:"pl-4",children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.root,onClick:()=>x(!1),className:eL,children:"Trading"}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.markets,onClick:()=>x(!1),className:eL,children:"Markets"}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.portfolio,onClick:()=>x(!1),className:eL,children:"Portfolio"}),ea.map(e=>(0,n.jsx)(u(),{prefetch:!1,href:e.href,onClick:()=>x(!1),className:"".concat(eL," pl-4"),children:e.label},e.href)),(0,n.jsxs)(u(),{prefetch:!1,href:a.A.perps.vaults,onClick:()=>x(!1),className:eL,children:["Vaults",(0,n.jsx)("span",{className:"ml-2 rounded-full bg-[rgba(76,215,244,0.14)] px-1.5 py-0.5 text-micro font-semibold text-[var(--c-accent-blue)]",children:"NEW"})]}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.perps.leaderboard,onClick:()=>x(!1),className:eL,children:"Leaderboard"})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>P(!Z),className:eC,children:["Predict",(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",style:{transform:Z?"rotate(180deg)":"none",transition:"transform .2s"},children:(0,n.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),Z&&(0,n.jsxs)("div",{className:"pl-4",children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.predict.root,onClick:()=>x(!1),className:eL,children:"Markets"}),(0,n.jsx)(u(),{prefetch:!1,href:"/predict/leaderboard",onClick:()=>x(!1),className:eL,children:"Leaderboard"})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>R(!B),className:eC,children:["Terminal",(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",style:{transform:B?"rotate(180deg)":"none",transition:"transform .2s"},children:(0,n.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B&&(0,n.jsxs)("div",{className:"pl-4",children:[(0,n.jsx)(u(),{prefetch:!1,href:a.A.trade.terminal,onClick:()=>x(!1),className:eL,children:"Tokens"}),(0,n.jsx)(u(),{prefetch:!1,href:"/leaderboard",onClick:()=>x(!1),className:eL,children:"Leaderboard"}),(0,n.jsx)(u(),{prefetch:!1,href:"/callouts",onClick:()=>x(!1),className:eL,children:"Callouts"})]}),(0,n.jsx)(u(),{prefetch:!1,href:a.A.trade.root,onClick:()=>x(!1),className:eC,children:"Swap"}),(0,n.jsx)(u(),{prefetch:!1,href:"/season",onClick:()=>x(!1),className:eC,children:"Season"}),(0,n.jsxs)("button",{type:"button",onClick:()=>U(!W),className:eC,children:["More",(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",style:{transform:W?"rotate(180deg)":"none",transition:"transform .2s"},children:(0,n.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),W&&(0,n.jsxs)("div",{className:"pl-4",children:[(0,n.jsx)(u(),{prefetch:!1,href:"/bridge",onClick:()=>x(!1),className:eL,children:"Bridge"}),(0,n.jsx)("a",{href:"https://zipmex.com/blog/",target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),className:eL,children:"Blog"}),(0,n.jsx)("a",{href:"https://zipmex.com/help/",target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),className:eL,children:"Help Centre"}),(0,n.jsx)("a",{href:"https://zipmex.com/about/",target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),className:eL,children:"About"}),(0,n.jsx)("a",{href:"https://zipmex.com/token/",target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),className:eL,children:"$ZIPMEX — TGE soon"}),(0,n.jsx)("a",{href:"https://zipmex.com/legal/",target:"_blank",rel:"noopener noreferrer",onClick:()=>x(!1),className:eL,children:"Legal"})]}),!C&&(0,n.jsxs)("button",{type:"button",onClick:async()=>{x(!1),await ej()},className:(0,s.cn)(eC,"flex items-center gap-2"),children:[(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",className:"text-white/75",children:[(0,n.jsx)("rect",{x:"4",y:"1.5",width:"8",he
1ight:"13",rx:"1.5",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("line",{x1:"6",y1:"12",x2:"10",y2:"12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",opacity:".5"}),(0,n.jsx)("circle",{cx:"8",cy:"12",r:".6",fill:"currentColor"})]}),"Download PWA"]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 py-4",children:[(0,n.jsx)("a",{href:"https://x.com/zipmex",target:"_blank",rel:"noopener noreferrer",className:"zpx-tap-44 flex h-10 w-10 cursor-pointer items-center justify-center rounded-xl border border-[var(--c-border)] bg-white/[0.04] transition-all hover:bg-white/[0.08] hover:border-white/[0.12]",title:"X",children:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:"rgba(255,255,255,.45)"})})}),(0,n.jsx)("a",{href:"https://t.me/zipmexdex",target:"_blank",rel:"noopener noreferrer",className:"zpx-tap-44 flex h-10 w-10 cursor-pointer items-center justify-center rounded-xl border border-[var(--c-border)] bg-white/[0.04] transition-all hover:bg-white/[0.08] hover:border-white/[0.12]",title:"Telegram",children:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:(0,n.jsx)("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0h-.056zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z",fill:"rgba(255,255,255,.45)"})})})]})]})})]}),document.body),(0,n.jsx)(G.lG,{open:j,onOpenChange:N,children:(0,n.jsxs)(G.Cf,{className:"max-w-[440px] w-[calc(100vw-32px)] max-h-[calc(100vh-64px)] overflow-y-auto rounded-xl border border-[var(--c-border)] bg-[var(--c-surface-1)] p-0 [&>button]:hidden",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-6 pt-5 pb-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"zpx-tap-44 flex h-9 w-9 items-center justify-center rounded-md bg-[var(--c-surface-2)] text-[var(--c-text-2)]",children:(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("rect",{x:"4",y:"1.5",width:"8",height:"13",rx:"1.5",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("line",{x1:"6",y1:"12",x2:"10",y2:"12",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",opacity:".5"}),(0,n.jsx)("circle",{cx:"8",cy:"12",r:"0.6",fill:"currentColor"})]})}),(0,n.jsx)("span",{className:"text-base font-medium text-[var(--c-text-1)]",children:M?"Download PWA":"ZIPMEX PWA"})]}),(0,n.jsx)("button",{type:"button",onClick:()=>N(!1),className:"zpx-tap-44 flex h-8 w-8 items-center justify-center rounded-md border-none bg-transparent text-base text-[var(--c-text-3)] transition-colors hover:bg-[var(--c-surface-2)] hover:text-[var(--c-text-1)]",children:"✕"})]}),(0,n.jsx)("div",{className:"px-6 pt-5 pb-6",children:M?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"mb-5 text-sm leading-relaxed text-[var(--c-text-3)]",children:"Looks like you're using a mobile browser. Follow these instructions to download your ZIPMEX PWA:"}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2.5",children:[(0,n.jsx)("div",{className:"zpx-tap-44 flex h-9 w-9 items-center justify-center rounded-full border border-[var(--c-text-3)] text-sm text-[var(--c-text-1)]",children:"1"}),(0,n.jsx)("p",{className:"text-sm text-[var(--c-text-3)]",children:"Tap the share button in your browser"}),(0,n.jsx)("div",{className:"flex h-[52px] w-[52px] items-center justify-center rounded-md bg-[rgba(76,215,244,0.08)]",children:(0,n.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("path",{d:"M12 3v12",stroke:"var(--c-accent-blue)",strokeWidth:"1.8",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M8 7l4-4 4 4",stroke:"var(--c-accent-blue)",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4 14v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",stroke:"var(--c-accent-blue)",strokeWidth:"1.8",strokeLinecap:"round"})]})})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1.5 py-3",children:[(0,n.jsx)("span",{className:"h-1 w-1 rounded-full bg-[var(--c-text-3)] opacity-40"}),(0,n.jsx)("span",{className:"h-1 w-1 rounded-full bg-[var(--c-text-3)] opacity-40"}),(0,n.jsx)("span",{className:"h-1 w-1 rounded-full bg-[var(--c-text-3)] opacity-40"}),(0,n.jsx)("span",{className:"h-1 w-1 rounded-full bg-[var(--c-text-3)] opacity-40"})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2.5",children:[(0,n.jsx)("div",{className:"zpx-tap-44 flex h-9 w-9 items-center justify-center rounded-full border border-[var(--c-text-3)] text-sm text-[var(--c-text-1)]",children:"2"}),(0,n.jsx)("p",{className:"text-sm text-[var(--c-text-3)]",children:'Tap the "Add to Home Screen" button'}),(0,n.jsx)("div",{className:"flex h-[52px] w-[52px] items-center justify-center rounded-md bg-[rgba(76,215,244,0.08)]",children:(0,n.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3",stroke:"var(--c-accent-blue)",strokeWidth:"1.8"}),(0,n.jsx)("path",{d:"M12 8v8M8 12h8",stroke:"var(--c-accent-blue)",strokeWidth:"1.8",strokeLinecap:"round"})]})})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"mb-5 text-sm leading-relaxed text-[var(--c-text-3)]",children:["Download the ZIPMEX ",(0,n.jsx)("strong",{className:"font-semibold text-[var(--c-text-1)]",children:"Progressive Web App"})," for an optimised trading experience on your mobile device."]}),(0,n.jsxs)("div",{className:"mb-4 flex flex-col items-center gap-2 py-4",children:[(0,n.jsx)("span",{className:"font-mono text-caption text-[var(--c-text-3)] tracking-wide",children:"Scan to install on mobile"}),(0,n.jsx)("div",{className:"rounded-xl border border-[rgba(255,255,255,0.06)] bg-[var(--c-surface-2)] p-3",children:(0,n.jsx)("img",{src:"https://api.qrserver.com/v1/create-qr-code/?size=140x140&data=".concat(encodeURIComponent(o.W),"&bgcolor=1a1a22&color=ffffff&format=svg"),alt:"QR Code",width:"140",height:"140",className:"rounded-lg"})}),(0,n.jsx)("span",{className:"font-mono text-xs tracking-wide text-[var(--c-accent-blue)]",children:o.d})]}),(0,n.jsx)("button",{type:"button",onClick:ek,className:"mb-2.5 w-full rounded-md border-none bg-[#3b2daa] py-3.5 text-sm font-medium text-white transition-colors hover:bg-[#4a38c4]",children:"Download PWA"}),(0,n.jsx)("button",{type:"button",onClick:()=>N(!1),className:"w-full rounded-md border border-[var(--c-border)] bg-transparent py-3.5 text-sm font-medium text-[var(--c-text-1)] transition-colors hover:border-[var(--c-text-3)] hover:bg-[var(--c-surface-2)]",children:"Sync With PWA"})]})})]})})]})}},63514:()=>{},63519:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});let n=/_{2,}|\{\{[\s\S]*?\}\}/,a=e=>!!e&&n.test(e)},64775:(e,t,r)=>{"use strict";r.d(t,{B:()=>i,x:()=>o});var n=r(42073),a=r(13741);let s=(0,a.createContext)({visible:!1,setVisible:()=>{}}),o=()=>(0,a.useContext)(s),i=e=>{let{children:t}=e,[r,o]=(0,a.useState)(!1),i=(0,a.useMemo)(()=>({visible:r,setVisible:o}),[r]);return(0,n.jsx)(s.Provider,{value:i,children:t})}},64937:(e,t,r)=>{"use strict";r.d(t,{Themes:()=>l});
1var n=r(42073),a=r(51424),s=r(78304),o=r(95562),i=r(13741);function l(e){let{children:t}=e;return(0,n.jsx)(s.N,{children:(0,n.jsx)(c,{children:t})})}let c=e=>{let{children:t}=e,{setTheme:r}=(0,s.D)(),l=(0,o.usePathname)();return(0,i.useLayoutEffect)(()=>{l.includes(a.A.trade.root)?r("violet"):l.includes(a.A.earn.root)?r("orange"):l.includes(a.A.tools.root)?r("white"):l.includes("/info")?r("white-tools"):r("system")},[l,r]),(0,n.jsx)(n.Fragment,{children:t})}},71140:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>v,Sb:()=>A,US:()=>x,aD:()=>w,eC:()=>b,tE:()=>p,y8:()=>g});var n=r(42073),a=r(13741),s=r(88826),o=r(78828),i=r(70665),l=r(98672),c=r(39868),d=r(11267),u=r(12711),m=r(32865),h=r(59472);let p=s.Kq,x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.LM,{ref:t,className:(0,h.cn)("fixed z-[120] flex flex-col gap-2","inset-x-0 items-center px-4 bottom-[calc(4rem+env(safe-area-inset-bottom,0px)+1rem)]","lg:inset-x-auto lg:right-4 lg:max-w-[400px] lg:items-end lg:px-0 lg:bottom-[calc(2rem+1rem)]",r),...a})});x.displayName=s.LM.displayName;let f=(0,o.F)("group pointer-events-auto relative flex max-w-full items-start gap-2.5 overflow-visible rounded-2xl border border-borderStrong px-3 py-2 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"bg-card text-text",destructive:"bg-card text-text",success:"bg-card text-text",info:"bg-card text-text",warning:"bg-card text-text",reward:"bg-card text-text"}},defaultVariants:{variant:"default"}}),g=a.forwardRef((e,t)=>{let{className:r,variant:a,...o}=e;return(0,n.jsxs)(s.bL,{ref:t,className:(0,h.cn)(f({variant:a}),r),...o,children:[(e=>{let t="w-4 h-4 flex-shrink-0 mt-0.5";switch(e){case"success":default:return(0,n.jsx)(i.A,{className:(0,h.cn)(t,"text-primary")});case"destructive":return(0,n.jsx)(l.A,{className:(0,h.cn)(t,"text-loss")});case"warning":return(0,n.jsx)(c.A,{className:(0,h.cn)(t,"text-warning")});case"info":return(0,n.jsx)(d.A,{className:(0,h.cn)(t,"text-trade")});case"reward":return(0,n.jsx)(u.A,{className:(0,h.cn)(t,"text-reward"),fill:"currentColor"})}})(a),o.children]})});g.displayName=s.bL.displayName;let v=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.rc,{ref:t,className:(0,h.cn)("inline-flex h-6 shrink-0 items-center justify-center rounded-full bg-surfaceHover px-3 text-xs font-medium text-text transition-colors hover:bg-surfaceActive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)] disabled:pointer-events-none disabled:opacity-50",r),...a})});v.displayName=s.rc.displayName;let b=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.bm,{ref:t,className:(0,h.cn)("zpx-tap-44 inline-flex shrink-0 items-center justify-center rounded-full p-0.5 text-muted-foreground transition-colors hover:text-text hover:bg-surfaceHover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--c-text-1)]",r),"toast-close":"",...a,children:(0,n.jsx)(m.A,{className:"h-3.5 w-3.5"})})});b.displayName=s.bm.displayName;let A=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.hE,{ref:t,className:(0,h.cn)("text-sm font-medium",r),...a})});A.displayName=s.hE.displayName;let w=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.VY,{ref:t,className:(0,h.cn)("text-sm text-muted-foreground",r),...a})});w.displayName=s.VY.displayName},73012:(e,t,r)=>{"use strict";r.d(t,{I:()=>i,TransitionContextProvider:()=>o});var n=r(42073),a=r(13741);let s=(0,a.createContext)({openTransition:!1,setOpenTransition:()=>{},runPreloader:()=>{},openPreloader:!0}),o=e=>{let{children:t}=e,[r,o]=(0,a.useState)(!1),[i,l]=(0,a.useState)(!0),c=(0,a.useCallback)(()=>l(!1),[]),d=(0,a.useMemo)(()=>({openTransition:r,setOpenTransition:o,runPreloader:c,openPreloader:i}),[r,i,c]);return(0,n.jsx)(s.Provider,{value:d,children:t})},i=()=>{let e=(0,a.useContext)(s);if(void 0===e)throw Error("useTransition must be used within a TransitionContextProvider");return e}},73874:(e,t,r)=>{"use strict";r.d(t,{AM:()=>i,Wv:()=>l,hl:()=>c});var n=r(42073),a=r(13741),s=r(51103),o=r(59472);let i=s.bL,l=s.l9,c=a.forwardRef((e,t)=>
1{let{className:r,align:a="center",sideOffset:i=4,...l}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsx)(s.UC,{ref:t,align:a,sideOffset:i,className:(0,o.cn)("z-[115] w-72 rounded-md border border-[var(--c-border)] bg-[var(--c-surface-1)] p-4 text-[var(--c-text-1)] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.UC.displayName},77862:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var n=r(42073),a=r(13741),s=r(16226),o=r(48386),i=r(32865),l=r(83876),c=r(10029),d=r(93088);let u=()=>{let e=document.createElement("div");e.style.cssText="position:fixed;left:0;bottom:0;width:0;height:env(safe-area-inset-bottom,0px);visibility:hidden;pointer-events:none;",document.body.appendChild(e);let t=e.getBoundingClientRect().height;return e.remove(),(window.innerWidth>=1024?32:64)+t},m=()=>{let{isActive:e,currentStep:t,steps:r,nextStep:m,prevStep:h,skipTour:p}=(0,s.M)(),[x,f]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),[b,A]=(0,a.useState)(!1),w=(0,a.useRef)(null),y=(0,a.useRef)(!1);(0,a.useEffect)(()=>{A(!0)},[]);let j=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:190,n=e.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight,o=Math.min(320,a-32),i=0,l=0,c=t;switch(t){case"top":i=n.top-r-12,l=n.left+n.width/2-o/2;break;case"bottom":i=n.bottom+12,l=n.left+n.width/2-o/2;break;case"left":i=n.top+n.height/2-r/2,l=n.left-o-12;break;case"right":i=n.top+n.height/2-r/2,l=n.right+12}l=Math.min(Math.max(l,16),Math.max(16,a-o-16));let d=u(),m=s-d-r-16;return i<16&&"top"===t?(c="bottom",i=n.bottom+12):i>m&&"bottom"===t&&(c="top",i=n.top-r-12),{top:i=Math.min(Math.max(i,16),Math.max(16,m)),left:l,width:o,maxHeight:Math.max(120,s-d-32),placement:c}},[]),k=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:190,t=window.innerWidth,r=window.innerHeight,n=Math.min(320,t-32),a=u();return{top:Math.max(16,(r-a-e)/2),left:Math.max(16,(t-n)/2),width:n,maxHeight:Math.max(120,r-a-32),placement:"bottom"}},[]);(0,a.useEffect)(()=>{if(!e||0===r.length){y.current=!1,f(null),v(null);return}let n=r[t],a=n?document.querySelector(n.target):null;if(!a){y.current=!1,v(null),f(k());return}v(a.getBoundingClientRect()),a.scrollIntoView({behavior:"smooth",block:"center"}),y.current=!0;let s=((e,t)=>{let r=performance.now(),n=!1,a=0,s=!1,o=0,i=e.getBoundingClientRect(),l=()=>{s=!0};document.addEventListener("scrollend",l,!0);let c=()=>{n=!0,cancelAnimationFrame(a),document.removeEventListener("scrollend",l,!0)},d=()=>{if(n)return;let l=e.getBoundingClientRect(),u=Math.abs(l.top-i.top)>.5||Math.abs(l.left-i.left)>.5||Math.abs(l.width-i.width)>.5||Math.abs(l.height-i.height)>.5;i=l,o=u?0:o+1;let m=performance.now()-r;if((s?o>=1:o>=3&&m>=100)||m>=1e3){c(),t();return}a=requestAnimationFrame(d)};return a=requestAnimationFrame(d),c})(a,()=>{y.current=!1;let e=a.isConnected?a:document.querySelector(n.target);if(!e){v(null),f(k());return}v(e.getBoundingClientRect()),f(j(e,n.placement))});return()=>{y.current=!1,s()}},[e,t,r,j,k]),(0,a.useEffect)(()=>{if(!e)return;let n=()=>{let e=r[t],n=e?document.querySelector(e.target):null;if(!n){v(null),f(k());return}v(n.getBoundingClientRect()),f(j(n,e.placement))};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e,t,r,j,k]),(0,a.useEffect)(()=>{if(!e||!x||!w.current||y.current)return;let n=r[t],a=n?document.querySelector(n.target):null,s=w.current.getBoundingClientRect().height,o=n&&a?j(a,n.placement,s):k(s);(Math.abs(o.top-x.top)>1||Math.abs(o.left-x.left)>1)&&f(o)},[e,t,r,x,j,k]);let N=r[t];if(!b||!e||0===r.length||!x||!N)return null;let C=0===t,L=t===r.length-1,M=(0,n.jsxs)("div",{className:"fixed inset-0 z-[110]","aria-modal":"true",role:"dialog",children:[(0,n.jsxs)("svg",{className:"fixed inset-0 w-full h-full",style:{pointerEvents:"none"},children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("mask",{id:"spotlight-mask",children:[(0,n.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),g&&(0,n.jsx)("rect",{x:g.left-8,y:g.top-8,width:g.width+16,height:g.height+16,rx:"8",fill:"black"})]})}),(0,n.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0, 0, 0, 0.75)",mask:"url(#spotlight-mask)",style:{pointerEvents:"auto"},onClick:p})]}),g&&(0,n.jsx)("div",{className:"fixed border-2 border-primary rounded-lg pointer-events-none transition-all duration-200",style:{to
1p:g.top-8,left:g.left-8,width:g.width+16,height:g.height+16,boxShadow:"0 0 0 4px rgba(173, 217, 81, 0.2)"}}),(0,n.jsxs)("div",{ref:w,"data-tour-scrollable":!0,className:"fixed z-[111] bg-card border border-borderStrong rounded-xl p-4 overflow-y-auto shadow-2xl transition-all duration-200",style:{top:x.top,left:x.left,width:x.width,maxHeight:x.maxHeight},children:[(0,n.jsx)("button",{onClick:p,className:"absolute top-3 right-3 p-1 rounded-full hover:bg-surfaceHover transition-colors text-[var(--c-text-3)] hover:text-text","aria-label":"Skip tour",children:(0,n.jsx)(i.A,{className:"w-4 h-4"})}),(0,n.jsxs)("div",{className:"pr-6",children:[(0,n.jsx)("h3",{className:"text-primary font-semibold text-base mb-2",children:N.title}),(0,n.jsx)("p",{className:"text-[var(--c-text-2)] text-sm leading-relaxed",children:N.content})]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-y-2 mt-4 pt-3 border-t border-borderStrong",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2","aria-label":"Step ".concat(t+1," of ").concat(r.length),children:[(0,n.jsx)("div",{className:"flex items-center gap-1.5","aria-hidden":!0,children:r.map((e,r)=>(0,n.jsx)("div",{className:"w-1.5 h-1.5 rounded-full transition-colors ".concat(r===t?"bg-primary":"bg-[var(--c-text-4)]")},r))}),(0,n.jsxs)("span",{className:"font-mono text-caption tabular-nums text-[var(--c-text-3)]",children:[t+1," / ",r.length]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[!C&&(0,n.jsxs)(o.$,{variant:"ghost",size:"sm",onClick:h,className:"h-8 px-3 text-[var(--c-text-2)] hover:text-text hover:bg-surfaceHover",children:[(0,n.jsx)(l.A,{className:"w-4 h-4 mr-1"}),"Back"]}),(0,n.jsxs)(o.$,{size:"sm",onClick:m,className:"h-8 px-4 bg-primary text-black hover:bg-primary/90 font-medium",children:[L?"Finish":"Next",!L&&(0,n.jsx)(c.A,{className:"w-4 h-4 ml-1"})]})]})]})]})]});return(0,d.createPortal)(M,document.body)}},78191:(e,t,r)=>{"use strict";function n(e){return/user rejected|rejected the request|rejected by (the )?user|user denied|denied by (the )?user|declined by (the )?user|user (cancell?ed|declined)/i.test(e)}r.d(t,{Lj:()=>n,d0:()=>s,hW:()=>l,mk:()=>i,nS:()=>c,qd:()=>o});let a=new Set(["WalletSignMessageError","WalletSignTransactionError","WalletSendTransactionError"]);function s(e){let t=e&&"object"==typeof e?e.name:void 0;return"string"==typeof t&&a.has(t)}function o(e){let t=e instanceof Error?e.message:String(null!=e?e:"");return!t.trim()||!/reject|denied|declin|cancel|user.*(refus|abort)/i.test(t)&&(!!/session|pairing|topic|no matching key|relay/i.test(t)||!/insufficient|balance|blockhash|expired|simulat|slippage|not enough|invalid (transaction|instruction|account)|unsupported|versioned|legacy|too large|signature verification/i.test(t)&&/an error (has )?occurred|unknown error|something went wrong|request failed/i.test(t))}let i="Your wallet session has expired. Reconnect your wallet and try again — nothing was sent and nothing was charged.";function l(){let e;try{e=window.localStorage}catch(e){return null}let t=null,r=(e,n)=>{if(!(n>6)&&null!==e&&"object"==typeof e){if(Array.isArray(e)){for(let t of e)r(t,n+1);return}if("string"==typeof e.topic&&"number"==typeof e.expiry){let r=e.expiry;r>1e9&&r<1e11&&(t=null===t?r:Math.max(t,r))}for(let t of Object.values(e))r(t,n+1)}};try{for(let t=0;t<e.length;t+=1){let n=e.key(t);if(!n||!/^wc@/i.test(n))continue;let a=e.getItem(n);if(a&&!(a.length>2e6))try{r(JSON.parse(a),0)}catch(e){}}}catch(e){return null}return t}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=l();return null!==t&&1e3*t<=e}},78811:(e,t,r)=>{"use strict";r.d(t,{$C:()=>i,u2:()=>o});var n=r(42073);let a={cs2:{title:"Counter-Strike",color:"#f5a623",path:"M21.7101 3.2348a.0218.0218 0 0 1-.0216-.0215c.001-.0815.003-.3698.004-.424 0-.1292-.1428-.1831-.2117-.0829-.0113.016-.1457.212-.2287.3323a.0244.0244 0 0 1-.0198.0103h-6.5508a.0473.0473 0 0 1-.0473-.0463l-.0131-.177a.0477.0477 0 0 1 .056-.0477l.335.0319a.059.059 0 0 0 .0624-.0445l.2441-.989a.0475.0475 0 0 0-.0295-.0542l-.2268-.0848a.0427.0427 0 0 1-.0263-.0295c-.0412-.1722-.3766-1.3235-1.9935-1.581-.7867-.125-1.302.2107-1.577.4784a1.594 1.594 0 0 0-.3018.4095l-.0965.2125c-.008.0164-.046.2157-.046.234l.0513.9815a.109.109 0 0 0 .0422.0856l.3546.153-.1958.3244a.055.055 0 0 1-.053.0402s-.417.0108-.6227.0192c-.3856.0155-1.2444.4858-1.8773 1.8385-.6219 1.3282-.724 1.5496-.724 1.5496a.0736.0736 0 0 1-.0684.0398l-.5776.0019c-.0356 0-.0736.0285-.0886.0608l-.8982 2.5428c-.0149.0323-.006.081.0173.1081l.627.3918a.059.059 0 0 1 .0195.059l-.3274.9664a.1916.1916 0 0 1-.0235.0618l-.4343.3824a.1056.1056 0 0 0-.0356.059l-.5978 1.5308a.0632.0632 0 0 1-.0608.0455l
1-.3355.0018a.1633.1633 0 0 0-.162.1488l-.2007 2.2883a1.7194 1.7194 0 0 1-.0159.1207l-.1583.908a.128.128 0 0 1-.0333.0553l-.5584.4263c-.2559.2443-.5988.6903-.7665 1.0015l-1.86 3.9235c-.045.0833-.0811.227-.0788.3221l.1321.2354c.002.0842-.0319.4559-.0707.5307L.817 23.6545a.0985.0985 0 0 0-.003.0856l.0309.0706.0932.1859 1.8913.0029c.1173.0106.247-.1396.2507-.3005l.1027-1.2965-.0268-.1952 3.6063-4.232c.0942-.1146.222-.3168.2861-.4506l1.7186-3.7892a.1712.1712 0 0 1 .1004-.088l.1086-.035a.1694.1694 0 0 1 .1827.0528c.1505.1807.5042.781.6765 1.0315.1425.2079.8495 1.2304 1.1582 1.5675.0853.0926.3481.198.4658.2696a.083.083 0 0 1 .029.1119l-1.0298 1.8083-.4549 2.1357a.9542.9542 0 0 0-.0356.1526l-.4118 1.4831c.003.1873-.141.2856-.1527.5064l-.15 1.084a.0581.0581 0 0 0 .0582.0614l2.5445.014c.0951-.0003.1902-.0045.2854-.0067a1.1049 1.1049 0 0 0 .0755-.0069c.1242-.0158.5629-.0754.75-.1503.1097-.0388.1809-.0819.2268-.1295.1855-.1935.2002-.278.2034-.3975.001-.0212-.011-.0726-.0283-.1049-.0053-.0117-.0316-.0382-.059-.0477l-1.1815-.3562a.3693.3693 0 0 1-.1889-.1338l-.3172-.469a.0865.0865 0 0 1 .0173-.0973l.618-.609a.2017.2017 0 0 0 .0483-.072l1.9036-4.488c.089-.285.0595-.6056 0-.9445-.044-.2504-.6854-1.3264-.8532-1.6236-.1476-.262-1.0677-1.8707-1.286-2.2517-.0793-.1376-.1894-.1328-.2287-.276l-.0726-1.1173a.0398.0398 0 0 1 .0356-.0505l.3312-.0276a.093.093 0 0 0 .0741-.0487l1.147-2.1544a.0958.0958 0 0 0-.002-.094l-.2349-.2907a.0874.0874 0 0 1-.001-.0875l.3515-.3796a.054.054 0 0 1 .0736-.0206l.9343.5266a.3819.3819 0 0 0 .186.0505c.259-.0019.6858-.1549.908-.2906a.3833.3833 0 0 0 .1386-.148l.4583-1.0703c.006-.0136.0262-.0117.029.0028l.1278.5953a.0635.0635 0 0 0 .0788.0501l1.3494-.3a.0662.0662 0 0 0 .05-.0786l-.318-1.3437a.0716.0716 0 0 1 .009-.0534l.1313-.2036a.281.281 0 0 0 .036-.0814l.1589-.725a.0408.0408 0 0 1 .0397-.0323l3.7327.0047a.0916.0916 0 0 0 .0932-.0931v-.6336a.022.022 0 0 1 .0216-.0216h1.4393a.0465.0465 0 0 0 .0464-.0463v-.2855a.0465.0465 0 0 0-.0464-.0463h-1.4398z"},dota2:{title:"Dota 2",color:"#BF2E1A",path:"M 9.817 23.607 L 9.471 23.313 L 9.003 23.273 C 8.419 23.225 8.147 23.172 7.817 23.041 L 7.559 22.938 L 7.281 23.048 C 7.045 23.143 6.467 23.229 6.028 23.236 C 6.004 23.236 5.964 23.18 5.939 23.111 C 5.911 23.041 5.862 22.974 5.824 22.961 C 5.789 22.949 5.527 23.007 5.237 23.094 L 4.712 23.252 L 4.523 23.161 C 4.285 23.045 4.185 23.047 3.787 23.168 C 3.484 23.262 3.446 23.264 3.203 23.212 C 2.84 23.136 2.537 23.141 1.854 23.238 C 1.11 23.344 1.094 23.344 0.875 23.194 C 0.728 23.094 0.648 23.069 0.469 23.069 C 0.266 23.069 0.244 23.06 0.221 22.965 C 0.206 22.906 0.225 22.787 0.264 22.688 C 0.376 22.41 0.42 21.736 0.432 20.125 L 0.444 18.62 L 0.655 18.635 L 0.863 18.65 L 0.895 17.78 C 0.911 17.302 0.927 16.611 0.93 16.246 L 0.935 15.586 L 0.823 15.506 C 0.518 15.283 0.532 15.315 0.405 14.588 C 0.339 14.211 0.274 13.658 0.259 13.358 C 0.234 12.826 0.236 12.811 0.334 12.7 L 0.434 12.586 L 0.682 12.799 C 0.82 12.916 0.937 12.993 0.948 12.969 C 0.984 12.856 0.871 11.508 0.813 11.338 C 0.775 11.238 0.747 11.101 0.747 11.03 C 0.747 10.962 0.679 10.778 0.594 10.618 L 0.443 10.329 L 0.494 9.816 C 0.561 9.136 0.475 8.636 0.19 8.034 L 0.065 7.763 L 0.144 7.09 L 0.228 6.416 L 0.14 6.067 L 0.049 5.717 L 0.154 5.326 L 0.255 4.933 L 0.14 4.553 L 0.021 4.174 L 0.164 3.774 C 0.305 3.385 0.308 3.364 0.305 2.73 C 0.303 2.016 0.228 1.551 0.08 1.365 C -0.047 1.203 -0.026 1.092 0.163 0.919 C 0.253 0.834 0.328 0.726 0.328 0.681 C 0.328 0.612 0.359 0.599 0.549 0.595 C 0.669 0.595 1.039 0.563 1.372 0.525 L 1.979 0.452 L 2.773 0.569 C 3.565 0.684 3.566 0.684 4.652 0.638 L 5.74 0.591 L 5.997 0.746 L 6.257 0.899 L 7.312 0.884 L 8.368 0.869 L 8.724 0.74 C 8.918 0.669 9.229 0.545 9.414 0.461 C 9.596 0.377 9.927 0.264 10.144 0.204 L 10.542 0.099 L 11.056 0.261 L 11.57 0.425 L 12.014 0.276 L 12.456 0.127 L 12.933 0.285 C 13.196 0.371 13.684 0.583 14.022 0.757 L 14.633 1.069 L 15.273 1.051 C 15.758 1.036 15.924 1.018 15.95 0.973 C 15.97 0.942 16.031 0.758 16.083 0.566 L 16.178 0.215 L 16.783 0.235 C 17.236 0.251 17.642 0.299 18.384 0.429 L 19.379 0.605 L 19.638 0.501 C 19.778 0.444 20.046 0.375 20.233 0.351 C 20.546 0.309 20.6 0.314 21.027 0.422 C 21.425 0.522 21.562 0.537 22.109 0.537 C 22.454 0.537 22.812 0.522 22.907 0.506 C 23.07 0.478 23.097 0.489 23.428 0.728 C 23.621 0.866 23.792 1.001 23.807 1.03 C 23.824 1.057 23.86 1.203 23.884 1.354 L 23.93 1.632 L 23.721 2.028 C 23.604 2.246 23.507 2.443 23.507 2.466 C 23.507 2.489 23.555 2.527 23.611 2.554 C 23.668 2.579 23.764 2.677 23.826 2.771 L 23.937 2.941 L 23.912 5.226 C 23.897 6.483 23.872 7.604 23.858 7.715 L 23.831 7.919 L 23.486 7.897 L 23.142 7.87 L 23.113 8.061 C 23.097 8.164 23.084 8.353 23.084 8.485 C 23.084 8.677 23.054 8.778 22.924 9.031 L 22.761 9.342 L 22.851 9.471 C 22.901 9.543 23.072 9.736 23.231 9.901 L 23.523 10.206 L 23.434 10.529 L 23.344 10.854 L 23.451 11.542 C 23.575 12.369 23.566 12.577 23.363 13.293 C 23.282 13.58 23.217 13.846 23.217 13.886 C 23.217 13.961 23.272 13.98 23.644 14.031 C 23.809 14.052 23.844 14.072 23.844 14.147 C 23.844 14.196 23.87 15.251 23.904 16.492 C 24.011 20.567 24.021 21.456 23.971 22.38 C 23.944 22.862 23.913 23.262 23.904 23.271 C 23.894 23.28 23.563 23.147 23.166 22.976 L 22.443 22.668 L 22.131 22.803 C 21.809 22.942 21.777 22.978 21.735 23.245 C 21.706 23.422 21.728 23.414 20.935 23.576 L 20.468 23.672 L 20.014 23.52 C 19.594 23.379 19.537 23.369 19.206 23.391 C 18.959 23.406 18.789 23.394 18.644 23.351 C 18.436 23.292 18.436 23.292 18.087 23.453 L 17.735 23.612 L 16.435 23.612 C 15.066 23.61 14.784 23.632 13.841 23.807 C 13.189 23.927 12.96 23.922 11.819 23.785 L 11.217 23.711 L 10.796 23.807 C 10.562 23.861 10.326 23.903 10.27 23.901 C 10.202 23.901 10.046 23.8 9.819 23.607 L 9.817 23.607 Z M 7.284 19.918 C 8.289 19.539 9.118 19.223 9.123 19.216 C 9.136 19.202 5.206 15.39 4.684 
114.909 C 4.539 14.775 4.409 14.672 4.399 14.682 C 4.39 14.693 4.07 15.547 3.69 16.577 C 3.27 17.715 3.011 18.476 3.032 18.508 C 3.057 18.55 5.424 20.599 5.451 20.605 C 5.454 20.605 6.279 20.296 7.284 19.918 Z M 20.796 17.829 C 21.319 16.564 21.732 15.519 21.718 15.504 C 21.699 15.483 11.888 8.858 5.02 4.226 L 4.469 3.855 L 3.569 4.262 C 3.072 4.484 2.673 4.687 2.68 4.709 C 2.69 4.737 6.011 8.219 10.064 12.449 L 17.432 20.141 L 18.638 20.133 L 19.847 20.125 L 20.796 17.829 Z M 19.434 6.972 C 19.607 6.01 19.75 5.191 19.75 5.151 C 19.75 5.108 19.497 4.902 19.074 4.605 C 18.702 4.343 18.373 4.115 18.344 4.096 C 18.291 4.063 14.442 5.104 14.447 5.149 C 14.451 5.179 19.091 8.748 19.107 8.731 C 19.115 8.725 19.261 7.932 19.434 6.972 Z"},lol:{title:"League of Legends",color:"#f5a623",path:"m1.912 0 1.212 2.474v19.053L1.912 24h14.73l1.337-4.682H8.33V0ZM12 1.516c-.913 0-1.798.112-2.648.312v1.74a9.738 9.738 0 0 1 2.648-.368c5.267 0 9.536 4.184 9.536 9.348a9.203 9.203 0 0 1-2.3 6.086l-.273.954-.602 2.112c2.952-1.993 4.89-5.335 4.89-9.122C23.25 6.468 18.213 1.516 12 1.516Zm0 2.673c-.924 0-1.814.148-2.648.414v13.713h8.817a8.246 8.246 0 0 0 2.36-5.768c0-4.617-3.818-8.359-8.529-8.359zM2.104 7.312A10.858 10.858 0 0 0 .75 12.576c0 1.906.492 3.7 1.355 5.266z"},valorant:{title:"Valorant",color:"#FA4454",path:"M23.792 2.152a.252.252 0 0 0-.098.083c-3.384 4.23-6.769 8.46-10.15 12.69-.107.093-.025.288.119.265 2.439.003 4.877 0 7.316.001a.66.66 0 0 0 .552-.25c.774-.967 1.55-1.934 2.324-2.903a.72.72 0 0 0 .144-.49c-.002-3.077 0-6.153-.003-9.23.016-.11-.1-.206-.204-.167zM.077 2.166c-.077.038-.074.132-.076.205.002 3.074.001 6.15.001 9.225a.679.679 0 0 0 .158.463l7.64 9.55c.12.152.308.25.505.247 2.455 0 4.91.003 7.365 0 .142.02.222-.174.116-.265C10.661 15.176 5.526 8.766.4 2.35c-.08-.094-.174-.272-.322-.184z"}},s={csgo:"cs2","counter-strike":"cs2","dota-2":"dota2",dota:"dota2",val:"valorant","league-of-legends":"lol"},o=e=>{var t,r;if(!e)return null;let n=e.trim().toLowerCase();return null!=(r=a[null!=(t=s[n])?t:n])?r:null},i=e=>{let{mark:t,size:r}=e;return(0,n.jsx)("svg",{role:"img","aria-label":t.title,viewBox:"0 0 24 24",width:r,height:r,className:"flex-shrink-0",style:{color:t.color},children:(0,n.jsx)("path",{d:t.path,fill:"currentColor"})})}},84039:(e,t,r)=>{"use strict";r.d(t,{ContextProvider:()=>Q});var n=r(42073),a=r(37260),s=r(41831),o=r(78180),i=r(90466),l=r(1984),c=r(60500),d=r(20064),u=r(87920),m=r(8302),h=r(49338),p=r(13741),x=r(84492),f=r(82841),g=r(69376),v=r(95431);class b extends f.DE{get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async connect(){try{let e,t;if(this.connected||this.connecting)return;if(this._readyState!==h.Ok.Installed)throw new g.AE;this._connecting=!0;let r=window.bitkeep.solana;try{e=await r.getAccount()}catch(e){throw new g.fk(null==e?void 0:e.message,e)}try{t=new v.PublicKey(e)}catch(e){throw new g.Kd(null==e?void 0:e.message,e)}this._wallet=r,this._publicKey=t,this.emit("connect",t)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new g.Y8(null==e?void 0:e.message,e))}}this.emit("disconnect")}async signTransaction(e){try{let t=this._wallet;if(!t)throw new g.kW;try{return await t.signTransaction(e)||e}catch(e){throw new g.z4(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new g.kW;try{return await t.signAllTransactions(e)||e}catch(e){throw new g.z4(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new g.kW;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new g.z4(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}constructor(e={}){super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oiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=",this.supportedTransactionVersions=null,this._readyState="undefined"==typeof window||"undefined"==typeof document?h.Ok.Unsupported:h.Ok.NotDetected,this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==h.Ok.Unsupported&&(0,h.qG)(()=>{var e,t;return null!=(t=window.bitkeep)&&null!=(e=t.solana)&&!!e.isBitKeep&&(this._readyState=h.Ok.Installed,this.emit("readyStateChange",this._readyState),!0)})}}var A=r(24329);class w extends f.DE{get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){var e;return!!(null==(e=this._wallet)?void 0:e.isConnected)}get readyState(){return this._readyState}async autoConnect(){this.readyState===h.Ok.Installed&&await this.connect()}async connect(){try{let e;if(this.connected||this.connecting)return;if(this.readyState!==h.Ok.Installed)throw new g.AE;this._connecting=!0;let t=window.braveSolana;if(!t.isConnected)try{await t.connect()}catch(e){throw new g.Y6(null==e?void 0:e.message,e)}if(!t.publicKey)throw new g.fk;try{e=new v.PublicKey(t.publicKey.toBytes())}catch(e){throw new g.Kd(null==e?void 0:e.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new g.Y8(null==e?void 0:e.message,e))}}this.emit("disconnect")}async sendTransaction(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let n=this._wallet;if(!n)throw new g.kW;try{let{signers:a,...s}=r;(0,A.Y)(e)?(null==a?void 0:a.length)&&e.sign(a):(e=await this.prepareTransaction(e,t,s),(null==a?void 0:a.length)&&e.partialSign(...a)),s.preflightCommitment=s.preflightCommitment||t.commitment;let{signature:o}=await n.signAndSendTransaction(e,s);return o}catch(e){if(e instanceof g.m7)throw e;throw new g.UF(null==e?void 0:e.message,e)}}
1catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new g.kW;try{return await t.signTransaction(e)||e}catch(e){throw new g.z4(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new g.kW;try{return await t.signAllTransactions(e)||e}catch(e){throw new g.z4(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new g.kW;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new g.K3(null==e?void 0:e.message,e)}}catch(e){throw this.emit("error",e),e}}constructor(e={}){super(),this.name="Brave Wallet",this.url="https://brave.com/",this.icon="data:image/webp;base64,UklGRmYSAABXRUJQVlA4WAoAAAAgAAAAYwAAYwAASUNDUEgMAAAAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQ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HTJmW7l/SFLe0brGZthIT1Qa3fCQQTT4TqxTppI40/0iY3O2OBBD2RUZepmDPLR3Bw2pw/qzCza22Ap/2yqHOhbQw+4miRLN3t60REC+yrbdwwQ8u7Vw4M1QAC4G/FEsxIGLzsHNDr1bC37OF83qCOeAfOXpLxRu3KkrJNcIZJYAgRvAADM7W7vj3iRZlHTlaWjE3QPbjLk/KA1M6Lm8wA+xMAB3JCty7HOenScdp2dE9xzE7sB6lvQ/NJs0jAdAzkJHyiBbWnED+kA4ayk/EPJz+v7teldw8zE+HKpm1EY8EHIAAA=",this.supportedTransactionVersions=null,this._readyState="undefined"==typeof window||"undefined"==typeof document?h.Ok.Unsupported:h.Ok.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null,this.emit("error",new g.PQ),this.emit("disconnect"))},this._accountChanged=e=>{let t=this._publicKey;if(t){try{e=new v.PublicKey(e.toBytes())}catch(e){this.emit("error",new g.Kd(null==e?void 0:e.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==h.Ok.Unsupported&&(0,h.qG)(()=>{var e;return null!=(e=window.braveSolana)&&!!e.isBraveWallet&&(this._readyState=h.Ok.Installed,this.emit("readyStateChange",this._readyState),!0)})}}var y=r(21302),j=r(2135);let k={getTokenAccountsByOwner:1e4,getParsedTokenAccountsByOwner:1e4,getBalance:1e4,getRecentPerformanceSamples:6e4},N=new Set(["sendRawTransaction","sendTransaction","sendEncodedTransaction"]);class C{get(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();if(n<this.bypassUntil)return r();let a=this.map.get(e);if(a&&n-a.at<t)return a.p;let s=r().catch(t=>{throw this.map.delete(e),t});return this.map.set(e,{at:n,p:s}),s}clear(){this.map.clear()}bypass(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();this.bypassUntil=t+e,this.clear()}get size(){return this.map.size}constructor(){this.map=new Map,this.bypassUntil=0}}var L=r(26886);let M=new(r(33658)).E({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}});var S=r(64775),E=r(66678),I=r(29334),T=r(36387),z=r(78191);function D(){let{connected:e,disconnect:t,wallet:r}=(0,I.v)(),n=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{var a,s;if(!e){n.current=!1;return}let o=null!=(s=null==r||null==(a=r.adapter)?void 0:a.name)?s:"";if(!/walletconnect|trust/i.test(o))return;let i=()=>{!n.current&&"visible"===document.visibilityState&&(0,z.nS)()&&(n.current=!0,Promise.resolve(t()).catch(()=>{}),(0,T.oR)({title:"Wallet session expired",description:"Your wallet disconnected itself after a period of inactivity. Reconnect to trade — nothing was sent and nothing was charged."}))};
1i(),document.addEventListener("visibilitychange",i),window.addEventListener("focus",i);let l=window.setInterval(i,6e4);return()=>{document.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i),window.clearInterval(l)}},[e,t,r]),null}var B=r(23548);function R(){let{connected:e,wallet:t,connecting:r}=(0,I.v)(),n=(0,p.useRef)(!1),a=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{r&&(a.current=!0)},[r]),(0,p.useEffect)(()=>{var r;let s=null==t||null==(r=t.adapter)?void 0:r.name;if(e&&!n.current){n.current=!0,(0,B.u)("wallet_connect",{wallet:s?String(s):"unknown",auto:!a.current});return}!e&&n.current&&(n.current=!1,a.current=!1,(0,B.u)("wallet_disconnect",{wallet:s?String(s):"unknown"}))},[e,t]),null}var Z=r(34723),P=r(15508),W=r(2605),U=r(91386),G=r(71140),O=r(93695);let F=e=>{let{children:t}=e,{visible:x}=(0,S.x)(),[f,g]=(0,p.useState)(null),[A,I]=(0,p.useState)(()=>"WalletConnect"===(()=>{try{let e=window.localStorage.getItem("walletName");return e?JSON.parse(e):null}catch(e){return null}})());x&&!A&&I(!0),(0,p.useEffect)(()=>{if(!A||f)return;let e=!0;return Promise.all([r.e(8679),r.e(592),r.e(7515)]).then(r.bind(r,20592)).then(t=>{let{WalletConnectWalletAdapter:r}=t;e&&g(new r({network:a.B.Mainnet,options:{projectId:"97919eb0bc417312888e8a3fd819cc1e"}}))}).catch(e=>{var t;console.warn("WalletConnect adapter failed to load:",e),(0,U.reportFriction)("wallet_setup_failed","walletconnect_load",{severity:"warn",meta:{error:String(null!=(t=null==e?void 0:e.message)?t:e).slice(0,160)}})}),()=>{e=!1}},[A,f]);let W=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(!W.current){W.current=!0;try{(0,P.zW)({appIdentity:{name:"ZIPMEX",uri:"https://zipmex.com",icon:"/zipmex/favicon.ico"},authorizationCache:(0,P.J9)(),chains:["solana:mainnet"],chainSelector:(0,P.Y_)(),onWalletNotFound:(0,P.O0)()})}catch(t){var e;console.warn("MWA registration failed:",t),(0,U.reportFriction)("wallet_setup_failed","mwa_register",{severity:"warn",meta:{error:String(null!=(e=null==t?void 0:t.message)?e:t).slice(0,160)}})}}},[]),(0,p.useEffect)(()=>{let e=e=>{var t;let r=e.reason;if(!String("string"==typeof r?r:(null==r?void 0:r.message)||(null==r||null==(t=r.toString)?void 0:t.call(r))||"").toLowerCase().includes("403"))return};return window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("unhandledrejection",e)}},[]);let[F,Q]=(0,p.useState)(!1);(0,p.useEffect)(()=>{Q((0,h.Br)())},[]);let Y=(0,p.useMemo)(()=>[new i.d,...F?[new l.c]:[],new c.d,new w,new d.n,new u.G,new m.Z,new b,...f?[f]:[]],[f,F]),V=(0,p.useCallback)((e,t)=>{console.error("Wallet error:",e);let r=(0,z.d0)(e),a=(null==t?void 0:t.name)||"",s=(null==e?void 0:e.name)||"",o=(null==e?void 0:e.message)||String(e||""),i="undefined"!=typeof navigator?navigator.userAgent:"",l=(0,L.tQ)(i),c=(0,L.ht)({name:s,message:o,code:null==e?void 0:e.code,walletName:a});if(!r)try{let e=(0,L.Cm)(c,{walletName:a,phone:"desktop"!==l.os,android:"android"===l.os&&!/walletconnect/i.test(a),rawMessage:o});(0,T.oR)({variant:e.variant,title:e.title,description:(0,n.jsx)("p",{className:"text-xs",children:e.description}),..."get-phantom"===e.action?{action:(0,n.jsx)(G.Qg,{altText:"Get Phantom",onClick:()=>window.open(O.t2,"_blank","noopener"),children:"Get Phantom"})}:"open-in-phantom"===e.action?{action:(0,n.jsx)(G.Qg,{altText:"Open this page in Phantom",onClick:()=>{window.location.href=(0,O.bJ)(window.location.href,window.location.origin)},children:"Open in Phantom"})}:{}}),(0,B.u)("rejected"===c?"wallet_rejected":"wallet_connect_failed",{reason:"rejected"===c?"adapter_rejected":"adapter_".concat(c),wallet:a||"unknown"})}catch(e){}try{let e={wallet:a.slice(0,60),reason:c,error:String(o).slice(0,160),os:l.os,in_app:l.inApp},t="rejected"===c;r?(0,U.reportFriction)(t?"wallet_request_rejected":"wallet_request_failed",s,{vertical:"terminal",meta:e,...t?{}:{severity:"warn"}}):t?(0,U.reportFriction)("wallet_rejected",s||"adapter_rejected",{vertical:"terminal",meta:e}):(0,U.reportFriction)("wallet_connect_failed",s||"adapter_error",{vertical:"terminal",severity:"warn",meta:e})}catch(e){}},[]),H=(0,p.useMemo)(()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new C;return new Proxy(e,{get(e,r,n){let a=Reflect.get(e,r,n);if("function"!=typeof a)return a;let s="string"==typeof r?r:"",o=k[s];return o?function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.get("".concat(s,":").concat(function(e){try{return JSON.stringify(e)}catch(t){return String(e.length)+":"+e.map(e=>String(e)).join(",")}}(n)),o,()=>a.apply(e,n))}:N.has(s)?function(){for(var r=arguments.length,n=Array(r),s=0;s<r;s++)n[s]=arguments[s];return t.bypass(15e3),a.apply(e,n)}:a.bind(e)}})})(new v.Connection(j.yy,{commitment:"confirmed",wsEndpoint:j.yy.replace("https://","wss://"),confirmTransactionInitialTimeout:6e4})),[]);return(0,n.jsx)(y.Ht,{client:M,children:(0,n.jsx)(s.E.Provider,{value:{connection:H},children:(0,n.jsx)(o.r,{wallets:Y,onError:V,autoConnect:!0,children:(0,n.jsxs)(Z.qM,{children:[(0,n.jsx)(D,{}),(0,n.jsx)(R,{}),(0,n.jsx)(E.Ny,{}),t]})})})})},Q=e=>{let{children:t}=e;return(0,n.jsx)(W.x9,{children:(0,n.jsx)(S.B,{children:(0,n.jsx)(F,{children:(0,n.jsx)(x.vu,{children:t})})})})}},84652:(e,t,r)=>{"use strict";r.d(t,{q1:()=>c,um:()=>m});var n=r(42073),a=r(13741),s=r(90991),o=r(36387),i=r(71140);function l(e){let t=e instanceof Error?e.message:String(null!=e?e:""),r=t.toLowerCase();return r.includes("user rejected")||r.includes("user denied")||r.includes("rejected the request")?"User rejected transaction":r.includes("slippage")?"Slippage exceeded — try again or raise your slippage":r.includes("blockhash")?"Blockhash expired — the quote went stale, try again":r.includes("insufficient")?"Insufficient balance for this transaction":r.includes("simulation")?"Transaction simulation failed":r.includes("not confirmed")?"Transaction was not confirmed in time":t||"Transaction failed"}function c(e){let t=e instanceof Error?e.message:String(null!=e?e:""),r=t.toLowerCase();return r.includes("user rejected")||r.includes("user denied")||r.includes("rejected the request")||r.includes("declined")?"You declined the signature request":r.includes("wallet not connected")?"Connect a wallet first":r.includes("challenge expired")||r.includes("expired")?"The request expired before it was signed — try again":r.includes("did n
1ot respond")||r.includes("network is not responding")?t:t||"Could not complete the request"}function d(e){return(0,n.jsx)(i.Qg,{altText:"View on Solscan",onClick:()=>{window.open("https://solscan.io/tx/".concat(e),"_blank","noopener,noreferrer")},children:"View on Solscan ↗"})}function u(e){return(0,n.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[(0,n.jsx)(s.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),e]})}function m(e){let[t,r]=a.useState("idle"),s=a.useRef(e);s.current=e;let i=a.useRef(null),c=a.useRef(null),m=a.useCallback(()=>{let e=i.current;e&&(e.update({id:e.id,duration:250}),e.dismiss(),i.current=null)},[]);a.useEffect(()=>()=>m(),[m]);let h=a.useCallback(function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Approve transaction in your wallet";if(r("signing"),null==(e=c.current)||e.dismiss(),c.current=null,i.current)return void i.current.update({id:i.current.id,title:"Pending Wallet Signature",description:u(t),duration:18e4});i.current=(0,o.oR)({title:"Pending Wallet Signature",description:u(t),duration:18e4})},[]),p=a.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Submitting Transaction";if(r("submitting"),i.current)return void i.current.update({id:i.current.id,title:t,description:u(e),duration:18e4});i.current=(0,o.oR)({title:t,description:u(e),duration:18e4})},[]),x=a.useCallback((e,t,a)=>{var s;m(),null==(s=c.current)||s.dismiss(),r("idle"),c.current=(0,o.oR)({variant:"success",title:e,description:(0,n.jsx)("p",{className:"text-xs",children:t}),...a?{action:d(a)}:{}})},[m]),f=a.useCallback((e,t,a)=>{var i,u,h,p,x;let f=null!=(p=null==(i=s.current)?void 0:i.errorText)?p:l,g=null!=(x=null!=a?a:null==(u=s.current)?void 0:u.failureTitle)?x:"Transaction Failed";m(),null==(h=c.current)||h.dismiss(),r("idle"),c.current=(0,o.oR)({variant:"destructive",title:g,description:(0,n.jsx)("p",{className:"text-xs",children:f(e)}),...t?{action:d(t)}:{}})},[m]),g=a.useCallback(()=>{var e;m(),null==(e=c.current)||e.dismiss(),c.current=null,r("idle")},[m]);return a.useMemo(()=>({phase:t,signing:h,submitting:p,success:x,failure:f,reset:g}),[t,h,p,x,f,g])}},87207:(e,t,r)=>{"use strict";async function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>new Promise(t=>setTimeout(t,e));for(let n=0;n<3;n++)try{return await e()}catch(e){if(t=e,!/rate limit|429/i.test(e instanceof Error?e.message:String(e))||2===n)throw e;await r(1500*(n+1))}throw t}r.d(t,{i:()=>n})},88701:(e,t,r)=>{"use strict";function n(e,t){if(!e)return null;try{let r=new URL(e).hostname.toLowerCase().replace(/^www\./,""),n=String(t||"").toLowerCase().replace(/^www\./,"").replace(/:\d+$/,"");if(!r||r===n)return null;return r.slice(0,80)}catch(e){return null}}r.d(t,{Gi:()=>n,fb:()=>i,iJ:()=>o,zE:()=>s});let a=["utm_source","utm_medium","utm_campaign"];function s(e){let t={};try{let r=new URLSearchParams(e||"");for(let e of a){let n=(r.get(e)||"").toLowerCase().replace(/[^a-z0-9._-]/g,"").slice(0,60);n&&(t[e]=n)}}catch(e){}return t}function o(e,t){return!!t||/bot|crawl|spider|slurp|headless|lighthouse|pagespeed|preview|monitor|curl|wget|python|axios|node-fetch|playwright|puppeteer/i.test(e||"")}let i=40},91877:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(42073),a=r(13741),s=r(70537);let o=e=>{var t;let{src:r,...o}=e,[i,l]=(0,a.useState)(null==r?void 0:r.trim()),c="/assets/Zipmex_Fallback.png";return(0,a.useEffect)(()=>
1{l(null==r?void 0:r.trim())},[r]),(0,n.jsx)(s.default,{alt:"zipmex",unoptimized:!0,loading:"lazy",...o,src:null==(t=i||c)?void 0:t.trim(),onError:()=>l(c)})}},95753:(e,t,r)=>{"use strict";r.d(t,{H6:()=>l,Jy:()=>s,_L:()=>u,aR:()=>i,d6:()=>d,ig:()=>c,kL:()=>o});var n=r(42073),a=r(59472);let s=e=>{let{className:t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 10 10",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-3 w-3",t),children:(0,n.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})},o=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"4.5",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("path",{d:"M9.5 9.5L13 13",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]})},i=e=>{let{className:t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:(0,n.jsx)("polyline",{points:"2,10 5,5 8,7 12,3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})},l=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:[(0,n.jsx)("path",{d:"M3 4.5h7",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M8.5 2.5 10.5 4.5 8.5 6.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M11 9.5H4",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M5.5 7.5 3.5 9.5 5.5 11.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})},c=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:[(0,n.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeWidth:"1.2"}
1),(0,n.jsx)("circle",{cx:"7",cy:"4.4",r:"0.8",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7 6.4v3.2",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})},d=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:[(0,n.jsx)("path",{d:"M2 10l3-4 2.5 2L11 3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M8 3h3v3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})},u=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:(0,a.cn)("h-4 w-4",t),children:[(0,n.jsx)("path",{d:"M7 11V3",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M4.5 5.5 7 3l2.5 2.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})}},96236:(e,t,r)=>{"use strict";r.d(t,{W:()=>n,d:()=>a});let n="https://trade.zipmex.com",a="trade.zipmex.com"},97240:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n={tokenMint:new(r(95431)).PublicKey("AHqeZDqRkLtno7SspZQEQZmWPZDunkHuZx2jm3kFpump"),tokenSymbol:"ZIPMEX",tokenName:"ZIPMEX",siteUrl:"https://zipmex.com",docsUrl:"https://docs.zipmex.com",rewardsUrl:"https://zipmex.com/earn",solanaGuideUrl:"https://zipmex.com/introduction-to-solana",twitterHandle:"zipmex",twitterUrl:"https://x.com/zipmex",telegramHandle:"zipmexdex",telegramUrl:"https://t.me/zipmexdex",discordUrl:"https://discord.gg/Sk36TszFx",logoMini:"/assets/ZIPMEX-small.svg",logoBig:"/assets/ZIPMEX-big.svg"}}},e=>{e.O(0,[7224,1017,9591,390,7996,1469,6246,6999,9893,2361,4233,7754,217,4021,3484,8802,1089,15,537,5762,213,7386,5472,1386,7104,613,5454,2930,991,7358],()=>e(e.s=52181)),_N_E=e.O()}]);

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.