1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,973700,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(397828),a=e.i(858404),l=e.i(844070),r=e.i(876686);function x(e){let a,l,x,p=(0,i.c)(7),{step:s}=e;p[0]!==s.media?(a=(0,r.resolveMediaUrl)(s.media),p[0]=s.media,p[1]=a):a=p[1];let c=a;return c?(p[2]!==s.media?(l=(0,r.resolveMediaAlt)(s.media)??"",p[2]=s.media,p[3]=l):l=p[3],p[4]!==c||p[5]!==l?(x=(0,t.jsx)("div",{className:"flex h-[44px] w-[44px] shrink-0 flex-row items-center justify-center rounded-[300px] bg-white",children:(0,t.jsx)(n.default,{src:c,alt:l,width:44,height:44,className:"h-auto w-full object-contain",unoptimized:!0})}),p[4]=c,p[5]=l,p[6]=x):x=p[6],x):null}function p(e){let n,a,r,p,s,c,o,d=(0,i.c)(17),{step:m}=e;return d[0]!==m?(n=(0,t.jsx)(x,{step:m}),d[0]=m,d[1]=n):n=d[1],d[2]!==m.title?(a=m.title?(0,t.jsx)("div",{className:(0,l.cn)("block text-[20px] leading-[26px] font-medium tracking-[-0.2px]","min-[740px]:hidden","min-[900px]:text-[32px] min-[900px]:leading-[38px] min-[900px]:tracking-[-0.48px]"),children:m.title}):null,d[2]=m.title,d[3]=a):a=d[3],d[4]!==n||d[5]!==a?(r=(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-x-[12px] min-[740px]:mb-12 min-[740px]:flex-col min-[740px]:items-start",children:[n,a]}),d[4]=n,d[5]=a,d[6]=r):r=d[6],d[7]!==m.title?(p=m.title?(0,t.jsx)("div",{className:(0,l.cn)("hidden text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-black","min-[740px]:mb-[20px] min-[740px]:block","min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:tracking-[-0.2px]"),children:m.title}):null,d[7]=m.title,d[8]=p):p=d[8],d[9]!==m.body?(s=m.body?(0,t.jsx)("p",{className:"text-[14px] leading-5 font-medium tracking-[-0.07px] text-[#737373] min-[900px]:text-[16px] min-[900px]:leading-[22px] min-[900px]:tracking-[-0.08px]",children:m.body}):null,d[9]=m.body,d[10]=s):s=d[10],d[11]!==p||d[12]!==s?(c=(0,t.jsxs)("div",{className:"flex flex-col",children:[p,s]}),d[11]=p,d[12]=s,d[13]=c):c=d[13],d[14]!==r||d[15]!==c?(o=(0,t.jsxs)("div",{className:"flex h-full min-h-[244px] w-full flex-col overflow-hidden rounded-[12px] bg-[#f9f8f5] p-6 min-[740px]:min-h-[280px]",children:[r,c]}),d[14]=r,d[15]=c,d[16]=o):o=d[16],o}function s(e,i){return(0,t.jsx)("div",{"data-card":!0,className:"min-w-0",children:(0,t.jsx)(p,{step:e})},e._key??i)}function c(e,i){return(0,t.jsx)(p,{step:e},e._key??i)}e.s(["CardsHowToSection",0,function(e){let n,l,r,x=(0,i.c)(8),{title:p,body:o,steps:d}=e;return p||d.length?(x[0]!==o||x[1]!==p?(n=p||o?(0,t.jsx)("div",{className:"flex flex-col gap-y-7",children:(0,t.jsxs)("div",{className:"flex w-full flex-col justify-start gap-y-5",children:[p?(0,t.jsx)("h2",{className:"text-[24px] leading-[30px] font-medium tracking-[-0.24px] text-black min-[900px]:text-[48px] min-[900px]:leading-[52px] min-[900px]:tracking-[-0.72px]",children:p}):null,o?(0,t.jsx)("p",{className:"text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-[#737373] min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:tracking-[-0.2px]",children:o}):null]})}):null,x[0]=o,x[1]=p,x[2]=n):n=x[2],x[3]!==d?(l=d.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden w-full grid-cols-3 gap-1 min-[1280px]:grid",children:d.map(c)}),(0,t.jsx)("div",{className:"max-w-full min-w-0 min-[1280px]:hidden",children:(0,t.jsx)(a.LoopedPaginationSwiper,{motionContract:"how-to-cards-swiper",breakpoints:{400:{slidesPerView:2},744:{slidesPerView:3}},children:d.map(s)})})]}):null,x[3]=d,x[4]=l):l=x[4],x[5]!==n||x[6]!==l?(r=(0,t.jsx)("section",{className:"relative w-full overflow-x-hidden rounded-[32px] bg-white",children:(0,t.jsxs)("div",{className:"mx-auto grid w-full items-center gap-y-12 px-4 py-[3.25rem] min-[400px]:px-6 min-[740px]:px-12 min-[740px]:py-16 min-[768px]:py-20 min-[1280px]:max-w-[1040px] min-[1280px]:px-0 min-[1440px]:max-w-[1280px]",children:[n,l]})}),x[5]=n,x[6]=l,x[7]=r):r=x[7],r):null}])},688779,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(370350),a=e.i(85381),l=e.i(798001),r=e.i(366591),x=e.i(844070);
1function p(e){let n,a,l,r=(0,i.c)(7),{direction:p}=e,s="next"===p&&"relative -right-[1.5px]";r[0]!==s?(n=(0,x.cn)(s),r[0]=s,r[1]=n):n=r[1];let c="next"===p?"M3.9375 5L0 1.0625L1.0625 0L6.0625 5L1.0625 10L0 8.9375L3.9375 5Z":"M2.125 5L6.0625 1.0625L5 0L0 5L5 10L6.0625 8.9375L2.125 5Z";return r[2]!==c?(a=(0,t.jsx)("path",{d:c,fill:"black"}),r[2]=c,r[3]=a):a=r[3],r[4]!==n||r[5]!==a?(l=(0,t.jsx)("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:a}),r[4]=n,r[5]=a,r[6]=l):l=r[6],l}e.s(["DefaultHowToSection",0,function({title:e,body:i,steps:s}){let c=(0,n.useRef)(null),o=(0,n.useRef)(null);function d(e){let t=o.current;if(!t)return;let i=e.params.pagination;i&&"boolean"!=typeof i&&(i.el=t,e.pagination.destroy(),e.pagination.init(),e.pagination.render(),e.pagination.update())}return(0,n.useEffect)(()=>{let e=c.current;e&&!e.destroyed&&d(e)},[s.length]),(0,t.jsx)("section",{className:"relative w-full overflow-x-hidden rounded-[32px] bg-white",children:(0,t.jsxs)("div",{className:"mx-auto w-full px-4 pt-[3.25rem] pb-[3.25rem] min-[400px]:px-6 min-[740px]:px-12 min-[740px]:pt-16 min-[740px]:pb-16 min-[768px]:pt-20 min-[768px]:pb-20 min-[1280px]:max-w-[1040px] min-[1280px]:px-0 min-[1440px]:max-w-[1280px]",children:[e||i?(0,t.jsxs)("div",{className:"mb-10 min-[740px]:mb-12 min-[768px]:mb-14",children:[e?(0,t.jsx)("h2",{className:"mb-5 text-[24px] leading-[30px] font-medium tracking-[-0.24px] text-black min-[900px]:text-[48px] min-[900px]:leading-[52px] min-[900px]:tracking-[-0.72px]",children:e}):null,i?(0,t.jsx)("p",{className:"max-w-[780px] text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-[#737373] min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:tracking-[-0.2px]",children:i}):null]}):null,(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("div",{className:"order-2 w-full pt-6",children:(0,t.jsxs)("div",{className:"mx-auto flex w-fit items-center justify-center space-x-3 rounded-full bg-[#f9f8f5] p-3 min-[1280px]:mx-0 min-[1280px]:justify-start",children:[(0,t.jsx)("button",{type:"button",className:"price-how-to-buy-prev hidden h-6 w-6 items-center justify-center rounded-full bg-black/0 transition-opacity hover:bg-black/5 min-[1280px]:flex [&.is-disabled]:opacity-25",children:(0,t.jsx)(p,{direction:"prev"})}),(0,t.jsx)("div",{ref:o,className:(0,x.cn)("price-how-to-buy-pagination flex !w-auto gap-2","[&_.swiper-pagination-bullet]:block [&_.swiper-pagination-bullet]:size-2","[&_.swiper-pagination-bullet]:cursor-pointer [&_.swiper-pagination-bullet]:rounded-full","[&_.swiper-pagination-bullet]:bg-black [&_.swiper-pagination-bullet]:opacity-25","[&_.swiper-pagination-bullet]:transition-opacity [&_.swiper-pagination-bullet]:duration-300","[&_.swiper-pagination-bullet-active]:opacity-100"),children:s.map((e,i)=>(0,t.jsx)("span",{className:(0,x.cn)("swiper-pagination-bullet size-2 rounded-full bg-black opacity-25",0===i&&"swiper-pagination-bullet-active opacity-100")},i))}),(0,t.jsx)("button",{type:"button",className:"price-how-to-buy-next hidden h-6 w-6 items-center justify-center rounded-full bg-black/0 transition-opacity hover:bg-black/5 min-[1280px]:flex [&.is-disabled]:opacity-25",children:(0,t.jsx)(p,{direction:"next"})})]})}),(0,t.jsx)(r.Swiper,{"data-motion-contract":"price-how-to-buy-swiper",modules:[l.Pagination,a.Navigation],onSwiper:e=>{c.current=e,d(e)},initialSlide:0,loop:!1,watchSlidesProgress:!0,grabCursor:!0,slidesPerView:1.1,spaceBetween:8,breakpoints:{744:{slidesPerView:2.1,spaceBetween:12},1200:{slidesPerView:3.1,spaceBetween:12}},navigation:{nextEl:".price-how-to-buy-next",prevEl:".price-how-to-buy-prev",disabledClass:"is-disabled"},pagination:{clickable:!0,renderBullet:(e,t)=>`<span class="${t}"></span>`},className:(0,x.cn)("order-1 list-none !overflow-visible","-mx-4 scroll-px-4 px-4 min-[400px]:-mx-6 min-[400px]:scroll-px-6 min-[400px]:px-6 min-[740px]:-mx-12 min-[740px]:scroll-px-12 min-[740px]:px-12 min-[744px]:gap-3","min-[1280px]:-mx-[calc((100vw-1040px)/2)] min-[1280px]:scroll-px-[calc((100vw-1040px)/2)] min-[1280px]:px-[calc((100vw-1040px)/2)]","min-[1440px]:-mx-[calc((100vw-1280px)/2)] min-[1440px]:scroll-px-[calc((100vw-1280px)/2)] min-[1440px]:px-[calc((100vw-1280px)/2)]","[&_.swiper-wrapper]:flex [&_.swiper-wrapper]:items-stretch","[&_.swiper-slide]:h-auto [&_.swiper-slide]:shrink-0"),children:s.map((e,i)=>{let n=i===s.length-1;return(0,t.jsx)(r.SwiperSlide,{"data-card":!0,className:"!h-auto",onClick:()=>{c.current?.slideTo(i)},children:(0,t.jsxs)("div",{className:(0,x.cn)("h-full rounded-[20px] p-6 min-[1280px]:p-8",n?"bg-black text-white":"bg-[#f9f8f5] text-black"),children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)("span",{className:(0,x.cn)("inline-flex h-8 min-w-8 items-center justify-center rounded-full bg-white px-3","text-[14px] leading-[20px] font-medium text-black",n&&"invisible"),children:String(i+1).padStart(2,"0")})}),e.title?(0,t.jsx)("h3",{className:(0,x.cn)("mb-4 text-[16px] leading-[22px] font-medium tracking-[-0.08px] min-[900px]:text-[24px] min-[900px]:leading-[30px] min-[900px]:tracking-[-0.24px]",n?"text-white":"text-black"),children:e.title}):null,e.body?(0,t.jsx)("p",{className:(0,x.cn)("text-[14px] leading-5 font-medium tracking-[-0.07px] min-[900px]:text-[16
1px] min-[900px]:leading-[22px] min-[900px]:tracking-[-0.08px]",n?"text-white/75":"text-[#737373]"),children:e.body}):null]})},e._key??i)})})]})]})})}])},103748,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(994823),a=e.i(593667),l=e.i(409),r=e.i(668360),x=e.i(553830),p=e.i(844070),s=e.i(500708),c=e.i(489398);function o(e){let n,x,s,o,m,u,g,h,w=(0,i.c)(17),{title:y,body:b,items:v}=e;w[0]!==v?(n=(0,c.splitInTwoColumns)(v),w[0]=v,w[1]=n):n=w[1];let[j,k]=n;return y||b||v.length?(w[2]===Symbol.for("react.memo_cache_sentinel")?(x=(0,p.cn)("flex flex-col gap-y-12 px-4 py-0","xs:w-full xs:max-w-none xs:gap-y-8","min-[400px]:px-6 min-[740px]:px-12","xl:mx-auto xl:w-[calc(100%-160px)] xl:gap-y-12 xl:px-0","min-[1280px]:max-w-[1040px] min-[1440px]:max-w-[1280px]"),w[2]=x):x=w[2],w[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,p.cn)("max-w-[288px] text-[24px] leading-[30px] font-medium tracking-[-0.24px]","xs:max-w-[518px]","min-[900px]:text-[48px] min-[900px]:leading-[52px] min-[900px]:font-medium min-[900px]:tracking-[-0.72px]","xl:max-w-[800px]"),w[3]=s):s=w[3],w[4]!==y?(o=(0,t.jsx)("h2",{className:s,children:y}),w[4]=y,w[5]=o):o=w[5],w[6]!==b?(m=b?(0,t.jsx)("p",{className:(0,p.cn)("max-w-[288px] text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-mp-muted","xs:max-w-[400px]","min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:font-medium min-[900px]:tracking-[-0.2px]","xl:max-w-[600px]"),children:b}):null,w[6]=b,w[7]=m):m=w[7],w[8]!==o||w[9]!==m?(u=(0,t.jsxs)(l.CryptoFaqIntroStack,{children:[o,m]}),w[8]=o,w[9]=m,w[10]=u):u=w[10],w[11]!==j||w[12]!==k?(g=(0,t.jsx)(a.CryptoFaqColumns,{leftItems:j,rightItems:k,getKey:f,renderItem:d}),w[11]=j,w[12]=k,w[13]=g):g=w[13],w[14]!==u||w[15]!==g?(h=(0,t.jsx)(r.CryptoSectionShell,{id:"price-faqs",spacing:"faq",children:(0,t.jsxs)("div",{className:x,children:[u,g]})}),w[14]=u,w[15]=g,w[16]=h):h=w[16],h):null}function d(e){return(0,t.jsx)(n.CryptoFaqCard,{answer:e.answer,question:e.question,renderAnswer:u,renderIcon:m,variant:"tradeBtc"})}function m(e){let{expanded:i}=e;return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center self-start rounded-full bg-white p-2 focus:outline-none",children:(0,t.jsx)(x.CryptoFaqToggleGlyphs,{isCollapsed:!i})})}function u(e){let{answer:t}=e;return(0,s.renderTradeBtcFaqAnswer)(t)}function f(e,t,i){return`${e.question??i}-${t}`}var g=e.i(370350),h=e.i(435278),w=e.i(366144),y=e.i(837634),b=e.i(860579),v=e.i(936499);function j(e){let n,a,l,r,x,s,c,o,d,m,u,f,j,_,N,C=(0,i.c)(51),{question:S,answer:q,variant:P,priceSymbol:M,priceCoinMarketCapId:$,priceName:T,priceFiat:L,initialCoin:I}=e,A=void 0===L?"USD":L,[F,U]=(0,g.useState)(!0),{contentRef:K,maxHeight:D}=(0,b.useMeasuredCollapse)(!F,q),B="price"===(void 0===P?"default":P),E=B&&"flex items-center bg-[#f9f8f5] pt-0 shadow-none md:rounded-[32px] md:px-8 md:pb-8 xl:rounded-[48px]",R=!B&&"bg-mp-card lg:rounded-[32px] lg:px-8 lg:pb-8 2xl:rounded-[48px]";C[0]!==E||C[1]!==R?(n=(0,p.cn)("h-fit rounded-[28px] px-4 pb-3 transition-[box-shadow] duration-300 hover:shadow-[inset_0_0_0_1000px_rgba(0,0,0,0.03)]",E,R),C[0]=E,C[1]=R,C[2]=n):n=C[2],C[3]===Symbol.for("react.memo_cache_sentinel")?(a=()=>U(k),C[3]=a):a=C[3];let H=!F,z=B?"":void 0,O=B&&"min-h-0 p-0 md:mt-8 md:text-[18px] md:leading-[28px]",V=!B&&"lg:mt-8";C[4]!==V||C[5]!==O?(l=(0,p.cn)("mt-3 flex w-full cursor-pointer flex-row items-center justify-between text-left",O,V),C[4]=V,C[5]=O,C[6]=l):l=C[6];let Z=B&&"m-0 min-h-0 w-fit max-w-none min-w-0 font-sans text-sm leading-5 tracking-[-0.07px] lg:text-[16px] lg:leading-[22px] lg:tracking-[-0.08px]",W=!B&&"text-[18px] leading-[120%] lg:text-[20px]";C[7]!==Z||C[8]!==W?(r=(0,p.cn)("font-medium text-mp-ink",Z,W),C[7]=Z,C[8]=W,C[9]=r):r=C[9],C[10]!==S||C[11]!==r?(x=(0,t.jsx)("h3",{className:r,children:S}),C[10]=S,C[11]=r,C[12]=x):x=C[12],C[13]!==F||C[14]!==B?(s=B?(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-center self-start rounded-full bg-white p-2",children:[(0,t.jsx)("svg",{"data-price-faq-icon":"plus",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:(0,p.cn)("overflow-hidden text-mp-ink",F?"h-5 w-5":"h-0 w-0"),children:(0,t.jsx)("path",{fill:"currentColor",d:"M9.135 10.865h-3.44a.84.84 0 0 1-.614-.25.83.83 0 0 1-.25-.61q0-.363.25-.616a.83.83 0 0 1 .614-.254h3.44v-3.44q0-.363.25-.614a.83.83 0 0 1 .61-.25q.363 0 .616.25a.83.83 0 0 1 .253.614v3.44h3.44q.364 0 .615.25.25.25.25.61a.84.84 0 0 1-.25.616.83.83 0 0 1-.614.253h-3.44v3.44a.84.84 0 0 1-.25.615.83.83 0 0 1-.61.25.84.84 0 0 1-.616-.25.83.83 0 0 1-.254-.614z"})}),(0,t.jsx)("svg",{"data-price-faq-icon":"minus",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:(0,p.cn)("overflow-hidden text-mp-ink",F?"h-0 w-0":"h-5 w-5"),children:(0,t.jsx)("path",{fill:"currentColor",d:"M5.529 10.865a.84.84 0 0 1-.612-.25.82.82 0 0 1-.253-.61q0-.363.25-.616a.83.83 0 0 1 .614-.254h8.943a.84.84 0 0 1 .611.25q.255.25.254.61a.84.84 0 0 1-.25.616.83.83 0 0 1-.615.253z"})})]}):(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center self-start",children:(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:(0,p.cn)("text-mp-ink transition-transform duration-300",!F&&"rotate-180"),children:(0,t.jsx)("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),C[13]=F,C[14]=B,C[15]=s):s=C[15],C[16]!==l||C[17]!==x||C[18]!==s||C[19]!==H||C[20]!==z?(c=(0,t.jsxs)("button",{type:"button",onClick:a,"aria-expanded":H,"data-price-faq-toggle":z,"data-testid":"toggle-button",className:l,children:[x,s]}),C[16]=l,C[17]=x,C[18]=s,C[19]=H,C[20]=z,C[21]=c):c=C[21];let G=B?"":void 0;return C[22]!==D?(o={maxHeight:D},C[22]=D,C[23]=o):o=C[23],C[24]!==F||C[25]!==B?(d=(0,p.cn)("pt-3 transition-opacity duration-200",B&&(0,p.cn)("text-[#737373] md:pt-8","[&_a]:mb-0 [&_a]:font-medium [&_a]:tracking-[-0.07px] [&_a]:!text-[#737373] [&_a]:no-underline [&_a]:[text-underline-offset:auto]","[&_p]:!text-[#737373] [&_span]:!text-[#737373]","[&_strong]:font-semibold [&_strong]:!text-[#737373]"),!B&&"text-mp-muted lg:pt-8",F?"opacity-0":"opacity-100"),C[24]=F,C[25]=B,C[26]=d):d=C[26],C[27]!==q?(m="string"==typeof q&&q?(0,t.jsx)("p",{className:"rich-text-body whitespace-pre-line",children:q}):null,C[27]=q,C[28]=m):m=C[28],C[29]!==q||C[30]!==I||C[31]!==$||C[32]!==A||C[33]!==T||C[34]!==M?(u=Array.isArray(q)&&q.length?M?(0,t.jsx)(w.LivePortableText,{value:q,symbol
1:M,coinMarketCapId:$,name:T,fiat:A,initialCoin:I}):(0,t.jsx)(h.PortableText,{value:(0,v.normalizeStrongUnderlineLinkMarks)(q),components:y.articlePortableTextComponents}):null,C[29]=q,C[30]=I,C[31]=$,C[32]=A,C[33]=T,C[34]=M,C[35]=u):u=C[35],C[36]!==K||C[37]!==d||C[38]!==m||C[39]!==u?(f=(0,t.jsxs)("div",{ref:K,className:d,children:[m,u]}),C[36]=K,C[37]=d,C[38]=m,C[39]=u,C[40]=f):f=C[40],C[41]!==G||C[42]!==o||C[43]!==f?(j=(0,t.jsx)("div",{"data-price-faq-panel":G,className:"overflow-hidden transition-all duration-300",style:o,children:f}),C[41]=G,C[42]=o,C[43]=f,C[44]=j):j=C[44],C[45]!==c||C[46]!==j?(_=(0,t.jsxs)("div",{className:"flex w-full flex-col",children:[c,j]}),C[45]=c,C[46]=j,C[47]=_):_=C[47],C[48]!==_||C[49]!==n?(N=(0,t.jsx)("div",{className:n,children:_}),C[48]=_,C[49]=n,C[50]=N):N=C[50],N}function k(e){return!e}var _=e.i(669725),N=e.i(41464),C=e.i(904841);let S=N.siteUrl.replace(/\/$/,"");function q(e){let n,a,l=(0,i.c)(4),{data:r}=e;return r?(l[0]!==r?(n=JSON.stringify(r).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026"),l[0]=r,l[1]=n):n=l[1],l[2]!==n?(a=(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:n}}),l[2]=n,l[3]=a):a=l[3],a):null}e.s(["FaqSection",0,function(e){let n,a,l,r,x,s,d,m,u,f,g,h,w,y,b,v,k,N=(0,i.c)(90),{action:S,id:P,title:M,body:$,items:T,priceSymbol:L,priceCoinMarketCapId:I,priceName:A,priceFiat:F,initialCoin:U}=e;N[0]!==T?(n=(0,c.splitInTwoColumns)(T),N[0]=T,N[1]=n):n=N[1];let[K,D]=n;if(!M&&!$&&!T.length)return null;if(N[2]!==T){let e;a=(e=T.map(e=>{var t;let i=(0,C.trimSanityString)(e.question),n=(t=e.answer)?"string"==typeof t?(0,C.cleanSanityString)(t)?.trim()??"":t.map(e=>"block"===e._type&&Array.isArray(e.children)?e.children.map(e=>(0,C.cleanSanityString)(e.text)??"").join(""):"").filter(Boolean).join("\n\n").trim():"";return i&&n?{"@type":"Question",name:i,acceptedAnswer:{"@type":"Answer",text:n}}:null}).filter(e=>null!==e)).length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e}:null,N[2]=T,N[3]=a}else a=N[3];let B=a;if("swap"===S){let e,i,n;return N[4]!==B?(e=(0,t.jsx)(q,{data:B}),N[4]=B,N[5]=e):e=N[5],N[6]!==$||N[7]!==T||N[8]!==M?(i=(0,t.jsx)(o,{title:M,body:$,items:T}),N[6]=$,N[7]=T,N[8]=M,N[9]=i):i=N[9],N[10]!==e||N[11]!==i?(n=(0,t.jsxs)(t.Fragment,{children:[e,i]}),N[10]=e,N[11]=i,N[12]=n):n=N[12],n}let E="price-faqs"===P,R=E?"price":"default",H=E?"div":_.Reveal,z=E?"div":_.RevealGroup,O=E?"div":_.RevealItem;N[13]!==B?(l=(0,t.jsx)(q,{data:B}),N[13]=B,N[14]=l):l=N[14];let V=E&&"my-0 overflow-y-auto rounded-[32px] px-0 pt-12 pb-6 min-[640px]:max-[740px]:min-h-[706px] md:max-[1280px]:pt-20 md:max-[1280px]:pb-12 xl:pt-[120px] xl:pb-20";N[15]!==V?(r=(0,p.cn)("bg-white",V),N[15]=V,N[16]=r):r=N[16];let Z=E&&"flex flex-col gap-12 px-4 py-0 min-[400px]:px-6 min-[740px]:max-[1280px]:px-12 min-[1440px]:max-w-[1280px] md:max-[900px]:min-h-[578px] md:max-[900px]:gap-8 lg:max-[1280px]:min-h-[724px] xl:min-h-[408px] xl:gap-12 xl:px-0 xl:py-0",W=!E&&"px-6 py-[48px] xl:py-[96px] 2xl:max-w-[1280px]";N[17]!==Z||N[18]!==W?(x=(0,p.cn)("mx-auto w-full max-w-[1040px]",Z,W),N[17]=Z,N[18]=W,N[19]=x):x=N[19],N[20]!==H||N[21]!==$||N[22]!==E||N[23]!==M?(s=M||$?(0,t.jsxs)(H,{className:(0,p.cn)(E&&"mb-0 flex max-w-none flex-col gap-4 space-y-0 md:max-[900px]:h-[30px]",!E&&"mb-8 max-w-3xl space-y-4 lg:mb-12"),children:[M?(0,t.jsx)("h2",{className:(0,p.cn)("text-[24px] font-medium text-mp-ink",E&&"m-0 min-h-0 max-w-[288px] min-w-0 leading-[30px] tracking-[-0.24px] md:max-[900px]:max-w-[518px] xl:max-w-[800px] xl:text-[48px] xl:leading-[52px] xl:tracking-[-0.72px]",!E&&"tracking-[-0.72px] lg:text-[48px] 2xl:text-[56px]"),children:M}):null,$?(0,t.jsx)("p",{className:"text-base leading-7 text-mp-muted",children:$}):null]}):null,N[20]=H,N[21]=$,N[22]=E,N[23]=M,N[24]=s):s=N[24];let G=E&&"mt-0 xl:flex-row xl:gap-6",J=!E&&"md:flex-row md:gap-6";N[25]!==G||N[26]!==J?(d=(0,p.cn)("flex flex-col gap-1",G,J),N[25]=G,N[26]=J,N[27]=d):d=N[27];let Q=E&&"w-full flex-auto xl:flex-1",X=!E&&"flex-1";if(N[28]!==Q||N[29]!==X?(m=(0,p.cn)("flex flex-col gap-1",Q,X),N[28]=Q,N[29]=X,N[30]=m):m=N[30],N[31]!==O||N[32]!==R||N[33]!==U||N[34]!==K||N[35]!==I||N[36]!==F||N[37]!==A||N[38]!==L){let e;N[40]!==O||N[41]!==R||N[42]!==U||N[43]!==I||N[44]!==F||N[45]!==A||N[46]!==L?(e=(e,i)=>(0,t.jsx)(O,{children:(0,t.jsx)(j,{question:e.question,answer:e.answer,variant:R,priceSymbol
1:L,priceCoinMarketCapId:I,priceName:A,priceFiat:F,initialCoin:U})},`${e.question}-${i}`),N[40]=O,N[41]=R,N[42]=U,N[43]=I,N[44]=F,N[45]=A,N[46]=L,N[47]=e):e=N[47],u=K.map(e),N[31]=O,N[32]=R,N[33]=U,N[34]=K,N[35]=I,N[36]=F,N[37]=A,N[38]=L,N[39]=u}else u=N[39];N[48]!==m||N[49]!==u?(f=(0,t.jsx)("div",{className:m,children:u}),N[48]=m,N[49]=u,N[50]=f):f=N[50];let Y=E&&"w-full flex-auto xl:flex-1",ee=!E&&"flex-1";if(N[51]!==Y||N[52]!==ee?(g=(0,p.cn)("flex flex-col gap-1",Y,ee),N[51]=Y,N[52]=ee,N[53]=g):g=N[53],N[54]!==O||N[55]!==R||N[56]!==U||N[57]!==I||N[58]!==F||N[59]!==A||N[60]!==L||N[61]!==D){let e;N[63]!==O||N[64]!==R||N[65]!==U||N[66]!==I||N[67]!==F||N[68]!==A||N[69]!==L?(e=(e,i)=>(0,t.jsx)(O,{children:(0,t.jsx)(j,{question:e.question,answer:e.answer,variant:R,priceSymbol:L,priceCoinMarketCapId:I,priceName:A,priceFiat:F,initialCoin:U})},`${e.question}-${i}`),N[63]=O,N[64]=R,N[65]=U,N[66]=I,N[67]=F,N[68]=A,N[69]=L,N[70]=e):e=N[70],h=D.map(e),N[54]=O,N[55]=R,N[56]=U,N[57]=I,N[58]=F,N[59]=A,N[60]=L,N[61]=D,N[62]=h}else h=N[62];return N[71]!==g||N[72]!==h?(w=(0,t.jsx)("div",{className:g,children:h}),N[71]=g,N[72]=h,N[73]=w):w=N[73],N[74]!==z||N[75]!==d||N[76]!==f||N[77]!==w?(y=(0,t.jsxs)(z,{className:d,children:[f,w]}),N[74]=z,N[75]=d,N[76]=f,N[77]=w,N[78]=y):y=N[78],N[79]!==y||N[80]!==x||N[81]!==s?(b=(0,t.jsxs)("div",{className:x,children:[s,y]}),N[79]=y,N[80]=x,N[81]=s,N[82]=b):b=N[82],N[83]!==P||N[84]!==b||N[85]!==r?(v=(0,t.jsx)("section",{id:P,className:r,children:b}),N[83]=P,N[84]=b,N[85]=r,N[86]=v):v=N[86],N[87]!==v||N[88]!==l?(k=(0,t.jsxs)(t.Fragment,{children:[l,v]}
1),N[87]=v,N[88]=l,N[89]=k):k=N[89],k}],103748)},865685,e=>{e.v({swapHowToSection:"HowToSection-module__hEIfEq__swapHowToSection"})},227505,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(858404),a=e.i(895600),l=e.i(844070),r=e.i(876686),x=e.i(865685);function p(e){return(0,t.jsxs)("div",{className:"col-span-1 flex flex-col gap-y-10 overflow-hidden rounded-xl bg-[#f9f8f5] p-6",children:[(0,t.jsx)(a.CryptoStepIcon,{src:e.icon,imageFit:"contain"}),(0,t.jsxs)("div",{className:"flex flex-1 basis-1/2 flex-col gap-y-5",children:[e.title?(0,t.jsx)("div",{className:(0,l.cn)("text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-black","min-[900px]:text-[24px] min-[900px]:leading-[30px] min-[900px]:font-medium min-[900px]:tracking-[-0.24px]","2xl:text-[24px] 2xl:leading-[30px] 2xl:font-medium 2xl:tracking-[-0.24px]"),children:e.title}):null,e.body?(0,t.jsx)("p",{className:(0,l.cn)("text-sm leading-5 font-medium tracking-[-0.07px] text-[#737373]","min-[900px]:text-[16px] min-[900px]:leading-[22px] min-[900px]:font-medium min-[900px]:tracking-[-0.08px]","min-[1280px]:mb-[14px] min-[1440px]:mb-[32px]","2xl:text-[16px] 2xl:leading-[22px] 2xl:font-medium 2xl:tracking-[-0.08px]"),children:e.body}):null]})]},e.key)}function s(e){return(0,t.jsxs)("div",{className:"flex h-full min-h-[244px] w-full flex-col overflow-hidden rounded-xl bg-[#f9f8f5] p-6 min-[740px]:min-h-[280px]",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-x-[12px] min-[740px]:mb-12 min-[740px]:flex-col min-[740px]:items-start",children:[(0,t.jsx)(a.CryptoStepIcon,{src:e.icon,imageFit:"contain"}),e.title?(0,t.jsx)("div",{className:(0,l.cn)("block text-[20px] leading-[26px] font-medium tracking-[-0.2px]","min-[740px]:hidden","min-[900px]:text-[32px] min-[900px]:leading-[38px] min-[900px]:font-medium min-[900px]:tracking-[-0.48px]","2xl:text-[32px] 2xl:leading-[38px] 2xl:font-medium 2xl:tracking-[-0.48px]"),children:e.title}):null]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[e.title?(0,t.jsx)("div",{className:(0,l.cn)("hidden text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-black","min-[740px]:mb-[20px] min-[740px]:block","min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:font-medium min-[900px]:tracking-[-0.2px]","2xl:text-[20px] 2xl:leading-[26px] 2xl:font-medium 2xl:tracking-[-0.2px]"),children:e.title}):null,e.body?(0,t.jsx)("p",{className:(0,l.cn)("text-sm leading-5 font-medium tracking-[-0.07px] text-[#737373]","min-[900px]:text-[16px] min-[900px]:leading-[22px] min-[900px]:font-medium min-[900px]:tracking-[-0.08px]","2xl:text-[16px] 2xl:leading-[22px] 2xl:font-medium 2xl:tracking-[-0.08px]"),children:e.body}):null]})]},e.key)}function c(e,t){let i=(0,r.resolveMediaUrl)(e.media);return i?{key:e._key??String(t),title:e.title,body:e.body,icon:i}:[]}e.s(["SwapHowToSection",0,function(e){let a,r,o,d,m,u,f,g,h,w,y,b=(0,i.c)(24),{title:v,body:j,steps:k,tokenSymbol:_}=e;b[0]!==k?(a=k.slice(0,5).flatMap(c),b[0]=k,b[1]=a):a=b[1];let N=a;return v||N.length?(b[2]!==_?(r=_?.toLowerCase(),b[2]=_,b[3]=r):r=b[3],b[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.cn)(x.default.swapHowToSection,"relative mx-auto w-full max-w-[100%] overflow-x-hidden overflow-y-auto rounded-[32px] bg-white px-0 py-0 font-sans"),d=(0,l.cn)("mx-0 box-border grid w-full max-w-none grid-cols-[100%] items-center gap-y-12 px-4 py-[3.25rem]","min-[400px]:px-6","min-[740px]:px-12 min-[740px]:py-[4rem] min-[768px]:py-[5rem]","min-[1280px]:mx-auto min-[1280px]:w-[calc(100%-160px)] min-[1280px]:max-w-[1040px] min-[1280px]:px-0","min-[1440px]:max-w-[1280px]"),b[4]=o,b[5]=d):(o=b[4],d=b[5]),b[6]!==j||b[7]!==v?(m=v||j?(0,t.jsx)("div",{className:"flex flex-col gap-y-7",children:(0,t.jsxs)("div",{className:"flex w-full flex-col justify-start gap-y-5",children:[v?(0,t.jsx)("h2",{className:(0,l.cn)("text-[24px] leading-[30px] font-medium tracking-[-0.24px]","min-[900px]:text-[48px] min-[900px]:leading-[52px] min-[900px]:font-medium min-[900px]:tracking-[-0.72px]","2xl:text-[48px] 2xl:leading-[52px] 2xl:font-medium 2xl:tracking-[-0.72px]"),children:v}):null," ",j?(0,t.jsx)("p",{className:(0,l.cn)("text-[16px] leading-[22px] font-medium tracking-[-0.08px] text-[#737373]","min-[900px]:text-[20px] min-[900px]:leading-[26px] min-[900px]:font-medium min-[900px]:tracking-[-0.2px]","2xl:text-[20px] 2xl:leading-[26px] 2xl:font-medium 2xl:tracking-[-0.2px]"),children:j}):null]})}):null,b[6]=j,b[7]=v,b[8]=m):m=b[8],b[9]!==N?(u=N.map(s),b[9]=N,b[10]=u):u=b[10],b[11]!==u?(f=(0,t.jsx)("div",{className:"min-[1280px]:hidden",children:(0,t.jsx)(n.LoopedPaginationSwiper,{motionContract:"how-to-cards-swiper",variant:"featureBlock",children:u})}),b[11]=u,b[12]=f):f=b[12],b[13]!==N?(g=N.map(p),b[13]=N,b[14]=g):g=b[14],b[15]!==g?(h=(0,t.jsx)("div",{className:"hidden min-[1280px]:block",children:(0,t.jsx)("div",{className:"grid w-full grid-cols-3 gap-1",children:g})}),b[15]=g,b[16]=h):h=b[16],b[17]!==m||b[18]!==f||b[19]!==h?(w=(0,t.jsxs)("div",{className:d,children:[m,f,h]}),b[17]=m,b[18]=f,b[19]=h,b[20]=w):w=b[20],b[21]!==w||b[22]!==r?(y=(0,t.jsx)("section",{"data-swap-howto-section":!0,"data-swap-token":r,"data-testid":"block-container",className:o,children:w}),b[21]=w,b[22]=r,b[23]=y):y=b[23],y):null}])},366144,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(435278),a=e.i(677264),l=e.i(849218),r=e.i(904841);let x=e=>`${e>=0?"+":""}${Math.round(100*e)/100}%`,p=({value:e,isRelative:t=!1,isAbbreviation:i=!0,precision:n=2,keepPrecisionZeros:a=!1})=>{let l=1>Math.abs(e),r=e.toString().match(/\.[0]+/),x=r?r[0].length+n-1:n,p=new Intl.NumberFormat("en-US",{minimumFractionDigits:l?x:void 0,maximumFractionDigits:l?x:n,notation:i?"compact":"standard",signDisplay:t?"always":"auto"}).format(e).replace(/Â /g," ");for(;p.includes(".")&&(p.endsWith("0")||p.endsWith("."))&&(!a||(p.match(/\.[0-9]+/)?.[0].length||0)-1>n);)p=p.slice(0,-1);return p},s=({value:e,fiat:t,isRelative:i=!1,isAbbreviation:n=!1})=>`${t.toUpperCase()} ${p({value:e,isRelative:i,isAbbreviation:n,keepPrecisionZeros:!0})}`,c=e=>p({value:e,isAbbreviation:!0}
1),o=(e,t)=>e.timePeriods.find(e=>e.period===t),d=/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g;var m=e.i(936499),u=e.i(837634);e.s(["LivePortableText",0,function(e){let p,f,g,h,w=(0,i.c)(13),{value:y,symbol:b,coinMarketCapId:v,name:j,fiat:k,initialCoin:_}=e,{fiatCode:N,initialFiatCode:C}=(0,l.usePriceCurrency)(void 0===k?"USD":k);w[0]!==v||w[1]!==C?(p={initialFiatCode:C,coinMarketCapId:v},w[0]=v,w[1]=C,w[2]=p):p=w[2];let S=(0,a.usePriceData)(b||void 0,N,_,p);if(w[3]!==S||w[4]!==N||w[5]!==j||w[6]!==b||w[7]!==y){let e=function(e,t,i,n){let a=e?.name||(0,r.cleanSanityString)(i)||"",l=(e?.symbol||(0,r.trimSanityString)(n)||"").toUpperCase(),p={tokenName:a,tokenCode:l,name:a,symbol:l};for(let e of["price_change_percentage_1h_in_currency","price_change_percentage_24h_in_currency","price_change_percentage_7d_in_currency","price_change_percentage_30d_in_currency","current_price","market_cap","total_volume","ath","atl","low_24h","high_24h","circulating_supply","total_supply","max_supply","market_cap_rank","up_down_24h"])p[e]="â";if(!e)return p;let d=o(e,"all_time"),m=o(e,"24h");return p.price_change_percentage_1h_in_currency=x(e.percentChange1h),p.price_change_percentage_24h_in_currency=x(e.percentChange24h),p.price_change_percentage_7d_in_currency=x(e.percentChange7d),p.price_change_percentage_30d_in_currency=x(e.percentChange30d),p.current_price=s({value:e.price,fiat:t}),p.market_cap=s({value:e.marketCap,fiat:t,isAbbreviation:!0}),p.total_volume=s({value:e.volume24h,fiat:t,isAbbreviation:!0}),d&&(p.ath=s({value:d.periodHigh,fiat:t,isAbbreviation:!0}),p.atl=s({value:d.periodLow,fiat:t,isAbbreviation:!0})),m&&(p.low_24h=s({value:m.periodLow,fiat:t}),p.high_24h=s({value:m.periodHigh,fiat:t})),p.circulating_supply=c(e.circulatingSupply),p.total_supply=c(e.totalSupply),null!=e.maxSupply&&(p.max_supply=c(e.maxSupply)),p.market_cap_rank=`#${e.marketCapRank}`,p.up_down_24h=e.percentChange24h>=0?"up":"down",p}(S,N,j,b?.toUpperCase());f=y?.length&&Object.keys(e).length>0&&JSON.stringify(y).includes("{{")?y.map(t=>{let i=t.children;return Array.isArray(i)?{...t,children:i.map(t=>{var i;return"string"==typeof t.text?{...t,text:(i=t.text,((0,r.cleanSanityString)(i)??"").replace(d,(t,i)=>{let n=e[i];return void 0===n?t:n}))}:t})}:t}):y??[],w[3]=S,w[4]=N,w[5]=j,w[6]=b,w[7]=y,w[8]=f}else f=w[8];let q=f;return w[9]!==q?(g=(0,m.normalizeStrongUnderlineLinkMarks)(q),w[9]=q,w[10]=g):g=w[10],w[11]!==g?(h=(0,t.jsx)(n.PortableText,{value:g,components:u.articlePortableTextComponents}),w[11]=g,w[12]=h):h=w[12],h}],366144)},849218,e=>{"use strict";var t=e.i(408216),i=e.i(834053),n=e.i(370350);let a=(0,n.createContext)(null);function l(){}function r(){}e.s(["PriceCurrencyProvider",0,function(e){let l,r,x,p,s=(0,i.c)(9),{children:c,initialFiatCode:o}
1=e,[d,m]=(0,n.useState)(o),[u,f]=(0,n.useState)(!1);s[0]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{m(t=>t===e?t:(f(!0),e))},s[0]=l):l=s[0];let g=l;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{f(!1)},s[1]=r):r=s[1];let h=r;s[2]!==d||s[3]!==o||s[4]!==u?(x={fiatCode:d,initialFiatCode:o,isChangingCurrency:u,setFiatCode:g,markCurrencyReady:h},s[2]=d,s[3]=o,s[4]=u,s[5]=x):x=s[5];let w=x;return s[6]!==c||s[7]!==w?(p=(0,t.jsx)(a.Provider,{value:w,children:c}),s[6]=c,s[7]=w,s[8]=p):p=s[8],p},"usePriceCurrency",0,function(e){let t,x=(0,i.c)(3),p=void 0===e?"USD":e,s=(0,n.useContext)(a);return x[0]!==s||x[1]!==p?(t=s??{fiatCode:p,initialFiatCode:p,isChangingCurrency:!1,setFiatCode:r,markCurrencyReady:l},x[0]=s,x[1]=p,x[2]=t):t=x[2],t}])},677264,e=>{"use strict";var t=e.i(834053),i=e.i(370350),n=e.i(97727),a=e.i(973006);function l(e,t,a,r={}){let[x]=(0,i.useState)(()=>r.initialFiatCode??t),p=r.coinMarketCapId??"symbol",s=a?`${a.symbol.toUpperCase()}:${p}:${x}`:void 0,c=e?`${e.toUpperCase()}:${p}:${t}`:void 0,o=(0,i.useRef)(new Map(a&&s?[[s,a]]:[])),[d,m]=(0,i.useState)({requestKey:s,data:a,status:a?"ready":"idle"}),[u,f]=(0,i.useState)(0);(0,i.useEffect)(()=>{let i;if(!e||!c)return;let a=o.current.get(c);if(a)return void m({requestKey:c,data:a,status:"ready"});let l=!0;return m({requestKey:c,data:void 0,status:"loading"}),(async()=>{for(let a=0;a<2;a+=1){if(!l)return;try{let i=(await (0,n.fetchCoinData)([e],t,{[e.toUpperCase()]:r.coinMarketCapId}))[0];if(!l)return;if(!i)throw Error("coin-data returned no matching asset");o.current.set(c,i),m({requestKey:c,data:i,status:"ready"});return}catch(e){if(!l)return;if(a<1){let t=e instanceof n.PriceDataRequestError?e.retryAfterMs:void 0;await new Promise(e=>{i=setTimeout(e,Math.min(Math.max(t??1e3,250),3e4))});continue}m({requestKey:c,data:void 0,status:"error"})}}})(),()=>{l=!1,i&&clearTimeout(i)}},[e,t,r.coinMarketCapId,c,u]);let g=d.requestKey===c?d:void 0;return{data:g?.data,isLoading:!!(c&&g?.status!=="ready"&&g?.status!=="error"),error:g?.status==="error",retry:()=>{c&&o.current.delete(c),f(e=>e+1)}}}e.s(["usePriceChart",0,function(e,t,l,r=[],x={}
1){let p=(0,a.priceChartPeriodDays)(l)??"7",s=x.currencyIndependent??!1,c=s?"shape":t,o=x.coinMarketCapId??"symbol",d=e?`${e}:${o}:${c}:${p}`:void 0,[m]=(0,i.useState)(()=>x.initialFiatCode??t),[u]=(0,i.useState)(()=>x.initialPeriod??l),f=(0,a.priceChartPeriodDays)(u)??"7",g=e?`${e}:${o}:${s?"shape":m}:${f}`:void 0,[h,w]=(0,i.useState)({requestKey:r.length>1?g:void 0,series:r.length>1?r:[],status:r.length>1?"ready":"idle"}),y=(0,i.useRef)(new Map(r.length>1&&g?[[g,r]]:[])),[b,v]=(0,i.useState)(0);(0,i.useEffect)(()=>{let i;if(!e||!d)return;let a=y.current.get(d);if(a)return void w({requestKey:d,series:a,status:"ready"});let l=!0;return w({requestKey:d,series:[],status:"loading"}),(async()=>{for(let a=0;a<2;a+=1)try{let i=await (0,n.fetchChartData)(e,t,p,x.coinMarketCapId);if(i.length<2)throw Error("chart-data returned an empty series");l&&(y.current.set(d,i),w({requestKey:d,series:i,status:"ready"}));return}catch(e){if(!l)return;if(a<1){let t=e instanceof n.PriceDataRequestError?e.retryAfterMs:void 0;await new Promise(e=>{i=setTimeout(e,Math.min(Math.max(t??1e3,250),3e4))});continue}w({requestKey:d,series:[],status:"error"})}})(),()=>{l=!1,i&&clearTimeout(i)}},[e,t,p,x.coinMarketCapId,d,b]);let j=h.requestKey===d?h.series:[],k=h.requestKey===d?h.status:"loading";return{series:j,isLoading:!!(d&&"ready"!==k&&"error"!==k),error:"error"===k,retry:()=>{d&&y.current.delete(d),v(e=>e+1)}}},"usePriceData",0,function(e,i,n,a){let r,x=(0,t.c)(2);return x[0]!==a?(r=void 0===a?{}:a,x[0]=a,x[1]=r):r=x[1],l(e,i,n,r).data},"usePriceDataState",0,l,"useTrendingCrypto",0,function(e,a,l,r){let x,p,s,c,o,d,m,u,f=(0,t.c)(22);f[0]!==l?(x=void 0===l?[]:l,f[0]=l,f[1]=x):x=f[1];let g=x;f[2]!==a||f[3]!==r?(p=()=>r??a,f[2]=a,f[3]=r,f[4]=p):p=f[4];let[h]=(0,i.useState)(p),w=g.length?`${e}:${h}`:void 0,y=`${e}:${a}`;f[5]!==g||f[6]!==w?(s={requestKey:w,coins:g},f[5]=g,f[6]=w,f[7]=s):s=f[7];let[b,v]=(0,i.useState)(s);return f[8]!==a||f[9]!==e||f[10]!==y||f[11]!==b.requestKey?(c=()=>{if(b.requestKey===y)return;let t=!0;return(0,n.fetchTrendingCrypto)(e,a).then(e=>{t&&v({requestKey:y,coins:e})}).catch(()=>{t&&v(e=>e.requestKey===y?e:{requestKey:y,coins:[]})}),()=>{t=!1}},o=[e,a,y,b.requestKey],f[8]=a,f[9]=e,f[10]=y,f[11]=b.requestKey,f[12]=c,f[13]=o):(c=f[12],o=f[13]),(0,i.useEffect)(c,o),f[14]!==y||f[15]!==b.coins||f[16]!==b.requestKey?(m=b.requestKey===y?b.coins:[],d=new Map,m.forEach(e=>{let t=e.symbol?.toUpperCase();t&&!d.has(t)&&d.set(t,e)}),f[14]=y,f[15]=b.coins,f[16]=b.requestKey,f[17]=d,f[18]=m):(d=f[17],m=f[18]),f[19]!==d||f[20]!==m?(u={coins:m,bySymbol:d},f[19]=d,f[20]=m,f[21]=u):u=f[21],u}])}]);
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.