1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2df51d24-d389-47b2-9398-fa6a80d620e9",e._sentryDebugIdIdentifier="sentry-dbid-2df51d24-d389-47b2-9398-fa6a80d620e9")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9476],{38597:(e,t,n)=>{"use strict";n.d(t,{y:()=>d,A:()=>u});var r=n(432222),i=n(680797),a=n(913688),s=n(626579);let l={[s.H.ROUND]:{borderRadius:"32px"},[s.H.FLAT]:{borderRadius:0}},o={[s.C.MD]:{height:"16px"},[s.C.SM]:{height:"8px"}};var c=n(471377);let d=i.I4.div.withConfig({shouldForwardProp:r.Ay}).withConfig({componentId:"sc-d61ccb5b-0"})(["position:absolute;top:0;left:0;background:",";height:100%;transition:width 200ms ease;"],e=>{let{theme:t,$useDark:n,primary:r,$background:i}=e;return i||(n?r?t.colors.secondary:`${t.colors.secondary80}`:r?c.fq.secondary:`${c.fq.secondary80}`)});d.defaultProps={primary:!1};let u=i.I4.div.withConfig({componentId:"sc-d61ccb5b-1"})(["position:relative;background-color:",";box-shadow:",";overflow:hidden;","{border-top-left-radius:",";border-bottom-left-radius:",";}"," "," ",""],e=>{let{theme:t,$useDark:n}=e;return n?t.colors.input:c.fq.input},e=>{let{theme:t}=e;return t.shadows.inset},d,e=>{let{variant:t}=e;return t===s.H.FLAT?"0":"32px"},e=>{let{variant:t}=e;return t===s.H.FLAT?"0":"32px"},(0,a.Ox)({variants:l}),(0,a.Ox)({prop:"scale",variants:o}),a.xe)},48902:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,m:()=>c});var r=n(432222),i=n(680797),a=n(913688),s=n(59678),l=n(428089);let o=i.I4.div.withConfig({shouldForwardProp:r.Ay}).withConfig({componentId:"sc-a4a8b395-0"})(["background:",";border-radius:",";color:",";overflow:hidden;position:relative;"," padding:1px 1px 3px 1px;",""],e=>{let{isActive:t,isSuccess:n,isWarning:r,borderBackground:i,theme:a}=e;return i||(r?a.colors.warning:n?a.colors.success:t?`linear-gradient(180deg, ${a.colors.primaryBright}, ${a.colors.secondary})`:a.colors.cardBorder)},e=>{let{theme:t}=e;return t.radii.card},e=>{let{theme:t,isDisabled:n}=e;return t.colors[n?"textDisabled":"text"]},e=>{let{isActive:t}=e;return t&&(0,i.AH)(["animation:"," 3s ease infinite;background-size:400% 400%;"],s.fd)},a.xe),c=(0,i.I4)(l.Ay).withConfig({componentId:"sc-a4a8b395-1"})(["width:100%;height:100%;overflow:",";background:",";border-radius:",";"],e=>{let{hasCustomBorder:t}=e;return t?"initial":"inherit"},e=>{let{theme:t,background:n}=e;return null!=n?n:t.card.background},e=>{let{theme:t}=e;return t.radii.card});o.defaultProps={isActive:!1,isSuccess:!1,isWarning:!1,isDisabled:!1}},114041:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>r,Lx:()=>a,gN:()=>i,nr:()=>s,zm:()=>l});var r=function(e){return e.COMMUNITY="Community",e.CORE="Core",e.BINANCE="Binance",e.AUTO="Auto",e}({}),i=function(e){return e.PENDING="pending",e.OPEN="open",e.CLOSE="close",e.CLAIMABLE="claimable",e}({});let a={Idle:"idle",Fetching:"pending",Fetched:"success",Failed:"error"},s=e=>!!(null==e?void 0:e.maximumAmountIn)&&!(null==e?void 0:e.route);var l=function(e){return e.LOWER="LOWER",e.UPPER="UPPER",e}({})},127243:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M9.00012 16.2L5.50012 12.7C5.11012 12.31 4.49012 12.31 4.10012 12.7C3.71012 13.09 3.71012 13.71 4.10012 14.1L8.29012 18.29C8.68012 18.68 9.31012 18.68 9.70012 18.29L20.3001 7.70001C20.6901 7.31001 20.6901 6.69001 20.3001 6.30001C19.9101 5.91001 19.2901 5.91001 18.9001 6.30001L9.00012 16.2Z"})})},166351:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsx)(i.A,{viewBox:"0 0 18 18",...e,children:(0,r.jsx)("path",{d:"M4.10386 15.4522C3.67286 15.4522 3.30573 15.3006 3.00248 14.9974C2.69923 14.6941 2.54761 14.327 2.54761 13.896V4.10361C2.54761 3.67261 2.69923 3.30549 3.00248 3.00224C3.30573 2.69899 3.67286 2.54736 4.10386 2.54736H13.8962C14.3272 2.54736 14.6944 2.69899 14.9976 3.00224C15.3009 3.30549 15.4525 3.67261 15.4525 4.10361
1H9.45905C8.72692 4.10361 8.10136 4.36311 7.58236 4.88211C7.06336 5.40111 6.80386 6.02668 6.80386 6.7588V11.2498C6.80386 11.9819 7.06336 12.606 7.58236 13.122C8.10136 13.638 8.72692 13.896 9.45905 13.896H15.4525C15.4525 14.3307 15.3009 14.6988 14.9976 15.0002C14.6944 15.3016 14.3272 15.4522 13.8962 15.4522H4.10386ZM9.45905 12.5998C9.0908 12.5998 8.77223 12.4669 8.50336 12.201C8.23448 11.9351 8.10005 11.6181 8.10005 11.2498V6.7588C8.10005 6.39055 8.23448 6.07199 8.50336 5.80311C8.77223 5.53424 9.0908 5.3998 9.45905 5.3998H14.9935C15.3617 5.3998 15.6803 5.53424 15.9492 5.80311C16.218 6.07199 16.3525 6.39055 16.3525 6.7588V11.2498C16.3525 11.6181 16.218 11.9351 15.9492 12.201C15.6803 12.4669 15.3617 12.5998 14.9935 12.5998H9.45905ZM12.15 10.1248C12.4625 10.1248 12.7282 10.0154 12.9469 9.79668C13.1657 9.57793 13.275 9.3123 13.275 8.9998C13.275 8.6873 13.1657 8.42168 12.9469 8.20293C12.7282 7.98418 12.4625 7.8748 12.15 7.8748C11.8375 7.8748 11.5719 7.98418 11.3532 8.20293C11.1344 8.42168 11.025 8.6873 11.025 8.9998C11.025 9.3123 11.1344 9.57793 11.3532 9.79668C11.5719 10.0154 11.8375 10.1248 12.15 10.1248Z",fill:"currentColor"})})},275577:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(350979);n(25963);var i=n(38597);let a=n(680797).I4.div.withConfig({componentId:"sc-920a7ed4-0"})(["display:flex;z-index:2;top:-65%;position:absolute;transform:translate(-50%,-50%);transition:left 200ms ease-out;"]);var s=n(896999),l=n(626579);let o=e=>e<0?0:e>100?100:e,c=e=>{let{className:t,variant:n=l.H.ROUND,scale:c=l.C.MD,primaryStep:d=0,secondaryStep:u=null,showProgressBunny:x=!1,useDark:h=!0,children:p}=e;return(0,r.jsx)(i.A,{className:t,$useDark:h,variant:n,scale:c,children:p||(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)(a,{style:{left:`${o(d)}%`},children:(0,r.jsx)(s.A,{})}),(0,r.jsx)(i.y,{$useDark:h,primary:!0,style:{width:`${o(d)}%`}}),u?(0,r.jsx)(i.y,{$useDark:h,style:{width:`${o(u)}%`}}):null]})})}},283485:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(350979),i=n(471377),a=n(501823),s=n(956830),l=n(178405),o=n(553588),c=n(605641),d=n(579518),u=n(92292);let x=e=>{let{text:t,iconColor:n="textSubtle",...i}
1=e,{targetRef:s,tooltip:l,tooltipVisible:o}=(0,d.A)(t,{});return(0,r.jsxs)(a.A,{...i,alignItems:"center",children:[o&&l,(0,r.jsx)(a.A,{ref:s,alignItems:"center",children:(0,r.jsx)(u.A,{color:n})})]})};var h=n(680797),p=n(718699);let m=h.I4.ul.withConfig({componentId:"sc-875513ac-0"})(["display:flex;flex-direction:column;list-style:none;"]),f=h.I4.li.withConfig({componentId:"sc-875513ac-1"})(['display:flex;position:relative;margin-bottom:14px;&:after{content:"";position:absolute;left:9px;top:26px;width:2px;height:10px;background-color:',";}&:last-child:after{display:none;}"],e=>{let{theme:t,$useDark:n}=e;return n?t.colors.textSubtle:p.f.textSubtle}),v=e=>{let{events:t,useDark:n=!0}=e;return(0,r.jsx)(m,{children:t.map(e=>{let{text:t,status:d,altText:u,infoText:h}=e;return(0,r.jsxs)(f,{$useDark:n,children:[(0,r.jsxs)(a.A,{mr:"10px",alignItems:"center",children:["upcoming"===d&&(0,r.jsx)(s.A,{color:n?"textDisabled":i.fq.textDisabled}),"live"===d&&(0,r.jsx)(l.A,{}),"past"===d&&(0,r.jsx)(o.A,{color:n?"textSubtle":i.fq.textSubtle})]}),(0,r.jsx)(c.A,{color:(e=>{let{eventStatus:t,useDark:n}=e;return"upcoming"===t?n?"textDisabled":i.fq.textDisabled:"live"===t?"success":n?"textSubtle":i.fq.textSubtle})({eventStatus:d,useDark:n}),bold:!0,children:t}),u&&(0,r.jsx)(c.A,{color:"warning",ml:"2px",bold:!0,children:u}),h&&(0,r.jsx)(x,{text:h,ml:"10px",iconColor:n?"textSubtle":i.fq.textSubtle})]},t)})})}},294643:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,d:()=>c});var r=n(350979);n(25963);var i=n(703082),a=n(258213),s=n(557423),l=n(28192);let o=e=>{let{onClick:t,expanded:n,children:s,...o}=e;return(0,r.jsxs)(l.A,{"aria-label":"Hide or show expandable content",onClick:t,...o,children:[s,n?(0,r.jsx)(i.A,{color:"invertedContrast"}):(0,r.jsx)(a.A,{color:"invertedContrast"})]})};o.defaultProps={expanded:!1};let c=e=>{let{onClick:t,expanded:n,children:l,iconColor:o="primary",iconSize:c,...d}=e;return(0,r.jsx)(s.A,{pr:0,variant:"text","aria-label":"Hide or show expandable content",onClick:t,endIcon:n?(0,r.jsx)(i.A,{width:c,height:c,color:o}):(0,r.jsx)(a.A,{width:c,height:c,color:o}),...d,children:l})};c.defaultProps={expanded:!1}},296123:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(350979),i=n(976005),a=n.n(i),s=n(557423),l=n(995315),o=n(166351),c=n(118708),d=n(25963),u=n(259145),x=n(53670),h=n(365758),p=n(724152);let m=e=>{let{children:t,withIcon:n,onFocus:i,onPointerEnter:m,onPointerDown:f,...v}=e,{chainId:g}=(0,x.ax)(),[,b]=(0,c.fp)(x.ch),A=(0,d.useCallback)(()=>{(0,u.Yj)(g),b(!0)},[g,b]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{onClick:A,onFocus:e=>{(0,h.Fs)(),null==i||i(e)},onPointerEnter:e=>{(0,h.Fs)(),null==m||m(e)},onPointerDown:e=>{(0,h.Fs)(),null==f||f(e)},...v,children:(0,r.jsxs)(l.A,{gap:"8px",justifyContent:"center",alignItems:"center",children:[t||(0,r.jsx)(p.A,{children:"Connect Wallet"})," ",n&&(0,r.jsx)(o.A,{color:"invertedContrast"})]})}),(0,r.jsx)(a(),{id:"91794b9e1f037d08",children:"w3m-modal{position:fixed;z-index:100000000}"})]})}}
1,309714:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tl});var r=n(350979),i=n(287136),a=n(25963),s=n(866652),l=n(17581),o=n(428089),c=n(501823),d=n(605641),u=n(557423),x=n(769932),h=n(680797);let p=(0,h.I4)(o.Ay).withConfig({componentId:"sc-7eaa8f99-0"})(["min-height:100vh;background-color:#e6feff;"]),m=(0,h.I4)(c.A).withConfig({componentId:"sc-7eaa8f99-1"})(["max-width:1200px;width:100%;margin:0 16px;","{margin:0 40px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),f=(0,h.I4)(o.Ay).withConfig({componentId:"sc-7eaa8f99-2"})(["position:absolute;width:100%;& > svg{max-height:16px;position:relative;width:100%;height:100%;z-index:5;}"]);var v=n(179087),g=n(268165),b=n(817652),A=n(673115);let y=(0,h.I4)(c.A).withConfig({componentId:"sc-560fc03a-0"})(["position:relative;background:",";"],e=>{let{$isDark:t}=e;return t?"linear-gradient(90deg, #313D5C 0%, #3D2A54 100%);":"linear-gradient(90deg, #faf9fa 0%, #d7caec 100%);"}),C=(0,h.I4)(c.A).withConfig({componentId:"sc-560fc03a-1"})(["position:relative;padding:48px 36px;border-radius:56px;background:",";box-shadow:",";& > svg{position:absolute;width:20px;height:85px;left:calc(50% - 10px);top:-51px;transform:rotate(90deg);","{left:-19px;top:calc(50% - 42px);transform:none;}}"],e=>{let{theme:t}=e;return t.colors.invertedContrast},e=>{let{theme:t}=e;return t.shadows.level1},e=>{let{theme:t}=e;return t.mediaQueries.md}),F=(0,h.I4)(A.A).withConfig({componentId:"sc-560fc03a-2"})(["width:100%;","{width:fit-content;}"],e=>{let{theme:t}=e;return t.mediaQueries.md});var j=n(257057);let w=e=>{let{isDark:t,...n}=e;return(0,r.jsx)(j.A,{viewBox:"0 0 1280 17",preserveAspectRatio:"none",...n,children:(0,r.jsx)("path",{d:"M0 16.002v-16c159.43 9.206 387.163 14.966 640 14.966s480.57-5.76 640-14.966v16H0z",fill:t?"#08060B":"#FAF9FA"})})},E=e=>{let{isDark:t,...n}=e;return(0,r.jsx)(j.A,{viewBox:"0 0 21 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,r.jsx)("path",{d:"M1.416 24.914L17.66 41.157a8 8 0 012.343 5.657V.186a8 8 0 01-2.343 5.657L1.416 22.086a2 2 0 000 2.828z",fill:t?"#000":"#fff"})})},D=()=>{let{t:e}=(0,x.A)(),{isDark:t}=(0,v.DP)(),{headingText:n,bodyText:i,buttons:a,image:s}=(e=>{let{t,isDark:n}=e;return{headingText:t("Meet the Artist"),bodyText:[t("The birthplace of Cecy is truly unknown"),t("But legend tells us, she was sailing alone"),t("Beyond the mountains, across the sea"),t("When she found an island, said âthis is for me!â"),t("âTwas full of rabbits, who caught her attention"),t("Making neat stuff beyond her comprehension"),t("The bunnies were working in a big olâ kitchen"),t("Cooking hot pancakes for their big olâ mission:"),t("To drizzle in syrup and hand them out soon"),t("So that bunnies worldwide may fly to the moon.")],buttons:[{to:"https://twitter.com/cecymeade",text:t("Follow on Twitter"),external:!0,icon:(0,r.jsx)(g.A,{color:"white"})},{to:"https://www.instagram.com/cecymeade/",text:t("Follow on Instagram"),external:!0,icon:(0,r.jsx)(b.A,{color:"white"})}],image:{src:`/images/pancakeSquad/artist${n?"-dark":""}.png`,alt:"Chef Cecy bio"}}})({t:e,isDark:t});return(0,r.jsxs)(y,{$isDark:t,justifyContent:["flex-start",null,null,"center"],children:[(0,r.jsxs)(m,{py:["64px",null,null,"100px"],alignItems:["center"],flexDirection:["column",null,null,"row"],children:[(0,r.jsx)(o.Ay,{mb:["24px",null,null,"-3px"],maxWidth:["192px",null,"250px","100%"],children:(0,r.jsx)("img",{src:s.src,alt:s.alt})}),(0,r.jsxs)(c.A,{flexDirection:"column",ml:[null,null,null,"64px"],children:[(0,r.jsxs)(C,{maxWidth:"550px",flexDirection:"column",alignSelf:["flex-start",null,null,"center"],mb:"40px",children:[(0,r.jsxs)(d.A,{fontSize:"40px",mr:"4px",bold:!0,children:[`${n}, `," ",(0,r.jsx)(d.A,{as:"span",fontSize:"40px",color:"secondary",bold:!0,children:"Chef Cecy"})]}),i.map(e=>(0,r.jsx)(d.A,{color:"textSubtle",children:e},e)),(0,r.jsx)(E,{isDark:t})]}),(0,r.jsx)(c.A,{flexDirection:["column",null,null,"row"],justifyContent:["center",null,null,"flex-start"],alignItems:"center",mx:["10%",null,null,"0"],children:a.map(e=>(0,r.jsx)(F,{mb:["16px",null,null,"0"],mr:["0",null,null,"16px"],external:e.external,href:e.to,children:(0,r.jsx)(u.A,{width:"100%",startIcon:e.icon,children:(0,r.jsx)(d.A,{color:"card",bold:!0,fontSize:"16px",children:e.text})})},e.text))})]})]}),(0,r.jsx)(f,{bottom:"-3px",children:(0,r.jsx)(w,{isDark:t})})]})};var k=n(905470),S=n(575058),T=n(888178);let B=e=>{var t;let{text:n,firstColor:i,mb:s="24px",...l}=e,{theme:o}=(0,T.Ay)(),{firstWord:c,remainingWords:d}=(0,a.useMemo)(()=>{let e=n.split(" ");return{firstWord:e[0],remainingWords:e.slice(1).join(" ")}},[n]),u=null!=(t=o.colors[null!=i?i:"secondary"])?t:o.colors.secondary;return(0,r.jsxs)(S.A,{scale:"xl",mb:s,...l,children:[(0,r.jsxs)("span",{style:{color:u},children:[c," "]}),d]})},P=e=>
1(0,r.jsxs)(j.A,{viewBox:"0 0 1660 339",...e,children:[(0,r.jsx)("path",{d:"M804 167.023C520.5 167.023 267.5 290.522 0 304.5V339H1660V0.5C1358.83 0.5 1104 167.023 804 167.023Z",fill:"url(#paint0_linear_light)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_light",x1:"830",y1:"84",x2:"830",y2:"339",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"white",stopOpacity:"0.48"}),(0,r.jsx)("stop",{offset:"0.566389",stopColor:"white",stopOpacity:"0.35"}),(0,r.jsx)("stop",{offset:"1",stopColor:"white"})]})})]}),I=e=>(0,r.jsxs)(j.A,{viewBox:"0 0 1660 339",...e,children:[(0,r.jsx)("path",{d:"M804 166.523C520.5 166.523 267.5 290.022 0 304V338.5H1660V0C1358.83 0 1104 166.523 804 166.523Z",fill:"url(#paint0_linear_dark)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_dark",x1:"830",y1:"83.5",x2:"830",y2:"338.5",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#08060B",stopOpacity:"0.2"}),(0,r.jsx)("stop",{offset:"0.545554",stopColor:"#08060B",stopOpacity:"0.5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#08060B"})]})})]}),N=(0,h.I4)(c.A).withConfig({componentId:"sc-e980a039-0"})(["position:relative;background:",";"],e=>{let{theme:t}=e;return t.colors.gradientBubblegum}),O=(0,h.I4)(c.A).withConfig({componentId:"sc-e980a039-1"})(["position:relative;z-index:5;flex-shrink:0;& > img{position absolute;height:100%;top:0;left:0;transition:opacity 0.5s ease-in-out;}"]),L=h.I4.img.withConfig({componentId:"sc-e980a039-2"})(["opacity:",";"],e=>{let{$isSelected:t}=e;return+!!t}),$=(0,h.I4)(c.A).withConfig({componentId:"sc-e980a039-3"})(["z-index:5;"]),M=e=>{let{basePath:t,altText:n}=e,i=Array(11).fill({}),[s,l]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=setTimeout(()=>{l((s+1)%11)},2500);return()=>clearTimeout(e)},[s]),(0,r.jsx)(O,{mb:["24px",null,null,"-3px"],mr:["0",null,null,"64px"],width:["192px",null,"250px","400px","512px"],height:["192px",null,"250px","400px","512px"],children:i.map((e,i)=>(0,r.jsx)(L,{$isSelected:i===s,src:`${t}${i}.png`,alt:`${n} example ${i}`},i))})},R=()=>{let{t:e}=(0,x.A)(),{isDark:t}=(0,T.Ay)(),{headingText:n,bodyText:i,subHeadingText:a,primaryButton:s,images:l}=(e=>({headingText:e("10,000 bunnies."),subHeadingText:e("ZERO duplicates."),bodyText:[e("Every Pancake Squad bunny is different."),e("Theyâre all randomly generated from over 200 different features, with over eight BILLION possible combinations, so that no bunny is ever exactly alike."),e("On top of that, there are a very small number of ultra-rare special unique bunnies as well...!")],primaryButton:{to:"/nfts",text:e("View in Market")},images:{basePath:"/images/pancakeSquad/bunnies/bunny",alt:"bunny nft"}}))(e);return(0,r.jsxs)(N,{justifyContent:["flex-start",null,null,"center"],children:[(0,r.jsxs)(m,{pb:["64px",null,null,"0"],pt:["64px",null,null,"40px"],alignItems:["flex-end",null,"center",null],flexDirection:["column",null,null,"row"],children:[(0,r.jsx)(M,{basePath:l.basePath,altText:l.alt}),(0,r.jsxs)($,{flexDirection:"column",alignSelf:["flex-start",null,null,"center"],width:["100%",null,null,"50%"],children:[(0,r.jsx)(B,{text:n,color:"text",mb:"0"}),(0,r.jsx)(B,{text:a,color:"text",firstColor:"failure"}),i.map(e=>(0,r.jsx)(d.A,{color:"textSubtle",mb:"20px",children:e},e)),(0,r.jsx)(c.A,{children:(0,r.jsx)(k.Y,{to:s.to,children:(0,r.jsx)(u.A,{children:(0,r.jsx)(d.A,{color:"card",bold:!0,fontSize:"16px",children:e(s.text)})})})})]})]}),(0,r.jsx)(o.Ay,{position:"absolute",bottom:"-2px",width:"100%",children:t?(0,r.jsx)(I,{width:"100%"}):(0,r.jsx)(P,{width:"100%"})})]})};var U=n(764289),q=n.n(U),z=n(471377);let _=()=>(0,h.i7)(["from{transform:translate(0,0px);}50%{transform:translate(-5px,-5px);}to{transform:translate(0,0px);}"]),G=(0,h.I4)(c.A).withConfig({componentId:"sc-19096799-0"})(["background:",";"],e=>{let{theme:t}=e;return t.colors.background}),H=(0,h.I4)("ul").withConfig({componentId:"sc-19096799-1"})(["color:",";margin-bottom:24px;"],z.fq.textSubtle),W=(0,h.I4)("li").withConfig({componentId:"sc-19096799-2"})(["margin-left:12px;"]),V=(0,h.I4)(c.A).withConfig({componentId:"sc-19096799-3"})(["position:absolute;width:100%;height:100%;& :nth-child(1){animation:"," 3.5s ease-in-out infinite;animation-delay:1s;}& :nth-child(2){animation:"," 3.5s ease-in-out infinite;animation-delay:0.66s;}& :nth-child(3){animation:"," 3.5s ease-in-out infinite;animation-delay:0.33s;}& :nth-child(4){animation:"," 3.5s ease-in-out infinite;animation-delay:0s;}"],_,_,_,_),Y=h.I4.img.withConfig({componentId:"sc-19096799-4"})(["position:absolute;
1left:0;top:0;z-index:5;"]),Z=()=>{let{t:e}=(0,x.A)(),{headingText:t,subHeadingText:n,bodyTextHeader:i,bodyText:a,primaryButton:s,image:l,accessoriesImages:h}=(e=>{let{t}=e;return{headingText:t("Fair, Random, Rare"),subHeadingText:t("All Pancake Squad NFTs are allocated to Squad Ticket holders through a provably-fair system based on ChainLink at the time of minting."),bodyTextHeader:t("Out of the 10,000 total NFTs in the squad,"),bodyText:[{id:1,content:(0,r.jsx)(r.Fragment,{children:t("490 are available in the pre-sale for owners of Gen 0 Pancake Bunnies (bunnyID 0, 1, 2, 3, 4)")})},{id:2,content:t("120 are reserved by the team for community giveaways, etc;")},{id:3,content:(0,r.jsxs)(r.Fragment,{children:[t("and the remaining NFTs can be minted by anyone with a "),(0,r.jsx)(q(),{href:"/profile",passHref:!0,children:(0,r.jsx)(d.A,{display:"inline-block",color:"primary",bold:!0,children:t("Pancake Profile!")})})]})}],primaryButton:{to:"https://docs.pancakeswap.finance/",text:t("View Documentation"),external:!0,isDisplayed:!1},image:{src:"/images/pancakeSquad/moonBunny/body.png",alt:"moon bunny"},accessoriesImages:[{src:"/images/pancakeSquad/moonBunny/band.png",alt:"headband"},{src:"/images/pancakeSquad/moonBunny/cloth.png",alt:"cloth"},{src:"/images/pancakeSquad/moonBunny/glasses.png",alt:"glasses"},{src:"/images/pancakeSquad/moonBunny/pancake.png",alt:"pancake"}]}})({t:e});return(0,r.jsx)(G,{justifyContent:["flex-start",null,null,"center"],children:(0,r.jsxs)(m,{alignItems:["flex-end",null,"center",null],flexDirection:["column",null,null,"row"],pt:["64px",null,"104px"],pb:"60px",children:[(0,r.jsxs)(c.A,{flex:1,order:[2,null,null,1],flexDirection:"column",mr:[null,null,null,"64px"],alignSelf:["flex-start",null,null,"center"],width:["100%",null,null,"50%"],children:[(0,r.jsx)(d.A,{color:"text",fontSize:"40px",mb:"24px",bold:!0,children:t}),(0,r.jsx)(d.A,{color:"textSubtle",mb:"24px",children:n}),(0,r.jsx)(d.A,{color:"textSubtle",children:i}),(0,r.jsx)(H,{children:a.map(e=>(0,r.jsx)(W,{children:e.content},e.id))}),(null==s?void 0:s.isDisplayed)&&(0,r.jsx)(c.A,{children:(0,r.jsx)(A.A,{mr:"16px",external:s.external,href:s.to,children:(0,r.jsx)(u.A,{variant:"secondary",children:(0,r.jsx)(d.A,{color:"card",bold:!0,fontSize:"16px",children:e(s.text)})})})})]}),(0,r.jsxs)(c.A,{position:"relative",order:[1,null,null,2],mb:["24px",null,"-3px"],width:["192px",null,"250px","50%"],children:[(0,r.jsx)(o.Ay,{children:(0,r.jsx)("img",{src:l.src,alt:l.alt})}),(0,r.jsx)(V,{children:h.map(e=>(0,r.jsx)(Y,{src:e.src,alt:e.alt},e.alt))})]})]})})};var K=n(907593),Q=n(693916),J=n(807543),X=n(150591),ee=n(681422);let et=e=>{let{isDark:t,...n}=e;return(0,r.jsxs)(j.A,{preserveAspectRatio:"none",viewBox:"0 0 1280 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,r.jsx)("path",{d:"M0 16.002V0.00195312C159.43 9.20767 387.163 14.9682 640 14.9682C892.837 14.9682 1120.57 9.20767 1280 0.00195312V16.002H0Z",fill:"url(#squad_event_steps_bottom_wave)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"squad_event_steps_bottom_wave",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:t?"#313D5C":"#FAF9FA"}),(0,r.jsx)("stop",{offset:"1",stopColor:t?"#3D2A54":"#d7caec"})]})})]})},en=e=>{let{isDark:t,...n}=e;return(0,r.jsx)(j.A,{viewBox:"0 0 1280 17",preserveAspectRatio:"none",...n,children:(0,r.jsx)("path",{d:"M0 16.002v-16c159.43 9.206 387.163 14.966 640 14.966s480.57-5.76 640-14.966v16H0z",fill:t?"#0B4576":"#70B7F2"})})};var er=function(e){return e[e.Pending=0]="Pending",e[e.Premint=1]="Premint",e[e.Presale=2]="Presale",e[e.Sale=3]="Sale",e[e.DrawingRandomness=4]="DrawingRandomness",e[e.Claim=5]="Claim",e}({}),ei=function(e){return e[e.UNCONNECTED=0]="UNCONNECTED",e[e.NO_PROFILE=1]="NO_PROFILE",e[e.PROFILE_ACTIVE=2]="PROFILE_ACTIVE",e[e.PROFILE_ACTIVE_GEN0=3]="PROFILE_ACTIVE_GEN0",e}({});let ea=e=>{let{t,userStatus:n}=e;return(0,r.jsx)(r.Fragment,{children:(n===ei.NO_PROFILE||n===ei.UNCONNECTED)&&(0,r.jsx)(u.A,{as:k.Y,to:"/create-profile",mr:"4px",children:t("Activate Profile")})})};var es=n(734658),el=n(670420),eo=n(334404),ec=n(549333),ed=n(227883),eu=n(417096),ex=n(623895),eh=n(
1555967);let ep=(0,a.createContext)({isUserEnabled:!1,setIsUserEnabled:null});var em=n(127243);let ef=e=>{let{text:t,...n}=e;return(0,r.jsxs)(c.A,{alignItems:"center",...n,children:[(0,r.jsx)(d.A,{fontSize:"16px",color:"success",mr:"4px",bold:!0,children:t}),(0,r.jsx)(em.A,{color:"success",width:"17px"})]})};var ev=n(282304),eg=n(966983),eb=n(28192),eA=n(726432),ey=n(92292),eC=n(378385);let eF=e=>{let{onDismiss:t,buyTicketCallBack:n,title:i,headerBackground:s,saleStatus:l,cakeBalance:h,pricePerTicket:p,maxPerAddress:m,maxPerTransaction:f,numberTicketsForGen0:v,numberTicketsOfUser:g,numberTicketsUsedForGen0:b}=e,{t:A}=(0,x.A)(),{theme:y}=(0,T.Ay)(),[C,F]=(0,a.useState)(1),j=l===er.Presale?v:m-(g-b),w=h<p,E=Math.min(Number(h/p),j),D=p*BigInt(null!=C?C:0n),k=Array(l===er.Presale?Math.min(v,3):Math.min(f,3)).fill("");return(0,r.jsxs)(ev.FQ,{minWidth:"375px",children:[(0,r.jsxs)(eg.rQ,{background:s,children:[(0,r.jsx)(eg.wt,{children:(0,r.jsx)(S.A,{children:i})}),(0,r.jsx)(eb.A,{variant:"text",onClick:t,children:(0,r.jsx)(eA.A,{width:"24px",color:"text"})})]}),(0,r.jsx)(eg.cw,{py:"24px",maxWidth:"375px",width:"100%",children:(0,r.jsxs)(c.A,{flexDirection:"column",children:[(0,r.jsxs)(o.Ay,{px:"16px",children:[(0,r.jsx)(d.A,{fontSize:"12px",fontWeight:"600",textTransform:"uppercase",color:"secondary",mb:"16px",children:A("Buy how many?")}),(0,r.jsx)(c.A,{justifyContent:"space-evenly",mb:"24px",children:k.map((e,t)=>(0,r.jsx)(u.A,{variant:t+1===C?"primary":"tertiary",onClick:()=>F(t+1),disabled:t+1>E,children:t+1},t))}),(0,r.jsxs)(c.A,{mb:"8px",justifyContent:"space-between",children:[(0,r.jsx)(d.A,{"font-size":"14px",color:"textSubtle",children:A("Cost per Ticket")}),(0,r.jsxs)(d.A,{"font-size":"14px",children:[(0,eC.x4)(p,0)," CAKE"]})]}),(0,r.jsxs)(c.A,{mb:"8px",justifyContent:"space-between",children:[(0,r.jsx)(d.A,{"font-size":"14px",color:"textSubtle",children:A("Your CAKE Balance")}),(0,r.jsxs)(d.A,{"font-size":"14px",color:w?"failure":"text",children:[(0,eC.x4)(h,3)," CAKE"]})]}),(0,r.jsxs)(c.A,{mb:"8px",pb:"8px",justifyContent:"space-between","font-size":"14px",color:"textSubtle",borderBottom:`1px solid ${y.colors.cardBorder}`,children:[(0,r.jsx)(d.A,{"font-size":"14px",color:"textSubtle",children:A("Your remaining limit")}),(0,r.jsx)(d.A,{"font-size":"14px",children:`${j} ${A("Tickets")}`})]}),(0,r.jsxs)(c.A,{mb:"25px",justifyContent:"space-between",children:[(0,r.jsx)(d.A,{"font-size":"14px",color:"textSubtle",children:A("Total Cost")}),(0,r.jsxs)(d.A,{"font-size":"14px",bold:!0,children:[(0,eC.x4)(D,0)," CAKE"]})]})]}),(0,r.jsxs)(c.A,{px:"16px",py:"24px",mb:"16px",background:y.colors.background,borderBottom:`1px solid ${y.colors.cardBorder}`,borderTop:`1px solid ${y.colors.cardBorder}`,alignItems:"start",children:[(0,r.jsx)(o.Ay,{children:(0,r.jsx)(ey.A,{width:"20px",mt:"4px",mr:"10px",color:"textSubtle"})}),(0,r.jsxs)(o.Ay,{children:[(0,r.jsx)(d.A,{"font-size":"12px",color:"textSubtle",mb:"12px",children:A("The network may become busy during the sale period. Consider setting a high gas fee (GWEI).")}),(0,r.jsxs)(d.A,{"font-size":"12px",color:"textSubtle",children:[A("Max. Tickets per transaction:")," ",f||3]}),m>0&&(0,r.jsxs)(d.A,{"font-size":"12px",color:"textSubtle",children:[A("Max. Tickets per wallet:")," ",m]})]})]}),(0,r.jsx)(o.Ay,{px:"16px",children:(0,r.jsx)(u.A,{disabled:w,onClick:()=>C&&n({ticketsNumber:C}),width:"100%",children:A(w?"Insufficient Balance":"Confirm")})})]})})]})};var ej=n(554945),ew=n(633900),eE=n(399832),eD=n(733775),ek=n(721745),eS=n(53670);let eT=e=>{let{onDismiss:t,onConfirmClose:n,title:i,isLoading:a,headerBackground:s,txHash:l,loadingText:h,loadingButtonLabel:p,successButtonLabel:m}=e,{chainId:f}=(0,eS.ax)(),{t:v}=(0,x.A)(),{theme:g}=(0,T.Ay)(),b=()=>{n(),null==t||t()};return(0,r.jsxs)(ev.FQ,{minWidth:"375px",children:[(0,r.jsxs)(eg.rQ,{background:s,children:[(0,r.jsx)(eg.wt,{children:(0,r.jsx)(S.A,{children:i})}),(0,r.jsx)(eb.A,{variant:"text",onClick:b,children:(0,r.jsx)(eA.A,{width:"24px",color:"text"})})]}),(0,r.jsx)(eg.cw,{py:"24px",maxWidth:"375px",width:"100%",children:(0,r.jsx)(c.A,{flexDirection:"column",alignItems:"center",children:a||!l?(0,r.jsxs)(o.Ay,{px:"16px",children:[(0,r.jsxs)(c.A,{mb:"16px",alignItems:"center",children:[(0,r.jsxs)(o.Ay,{mr:"16px",children:[(0,r.jsx)(d.A,{fontSize:"20px",bold:!0,color:"secondary",children:i}),(0,r.jsx)(d.A,{fontSize:"14px",color:"textSubtle",children:h})]}),(0,r.jsx)(ej.A,{size:50})]}),(0,r.jsx)(u.A,{width:"100%",variant:"secondary",disabled:!0,children:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ew.A,{width:"60px",mb:"30px",color:"primary"}),(0,r.jsx)(d.A,{mb:"30px",bold:!0,children:v("Transaction Submitted")}),(0,r.jsxs)(eE.A,{href:(0,eD.Bz)(l,"transaction",f),mb:"30px",children:[v("View on BscScan"),": ",(0,ek.A)(l,8,0)]}),(0,r.jsx)(c.A,{justifyContent:"center",width:"100%",px:"16px",pt:"16px",borderTop:`1px solid ${g.colors.cardBorder}`,children:(0,r.jsx)(u.A,{width:"100%",variant:"secondary",onClick:b,children:m})})]})})})]})};var eB=function(e){return e[e.ENABLE=0]="ENABLE",e[e.BUY=1]="BUY",e[e.READY=2]="READY",e[e.NONE=3]="NONE",e}({});let eP=e=>
1{let{t,saleStatus:n,userStatus:i,theme:s,canClaimForGen0:l=0,maxPerAddress:o=0,maxPerTransaction:c=0,numberTicketsOfUser:d=0,numberTicketsForGen0:x=0,numberTicketsUsedForGen0:h=0,cakeBalance:p,pricePerTicket:m,startTimestamp:f}=e,[v,g]=(0,a.useState)(null),[b,A]=(0,a.useState)(null),{callWithGasPrice:y}=(0,ex.M)(),C=(0,eh.Z8)(),{toastSuccess:F}=(0,eo.d)(),{isUserEnabled:j,setIsUserEnabled:w}=(0,a.useContext)(ep),E=n===er.Sale&&d-h<o,D=n===er.Presale,k=i===ei.PROFILE_ACTIVE_GEN0,S=i===ei.PROFILE_ACTIVE&&n<er.Sale||k&&n===er.Pending,{isApproving:T,isApproved:B,isConfirming:P,handleApprove:I,handleConfirm:N,hasApproveFailed:O,hasConfirmFailed:L}=(0,eu.A)({token:el.x_.cake,minAmount:es.Is,spender:C.address,onApproveSuccess:async e=>{let{receipt:n}=e;F(t("Transaction has succeeded!"),(0,r.jsx)(ed.G,{txHash:n.transactionHash})),g(n.transactionHash)},onConfirm:e=>{let{ticketsNumber:t}=e;return M(),y(C,D?"buyTicketsInPreSaleForGen0":"buyTickets",[t])},onSuccess:async e=>{let{receipt:n}=e;F(t("Transaction has succeeded!")),A(n.transactionHash)}}),$=()=>{A(null)},[M]=(0,ec.A)((0,r.jsx)(eT,{title:t("Confirm"),isLoading:P,headerBackground:s.colors.gradientCardHeader,txHash:null!=b?b:void 0,loadingText:t("Please confirm your transaction in wallet."),loadingButtonLabel:t("Confirming..."),successButtonLabel:t("Close"),onConfirmClose:$}),!1),[R,U]=(0,ec.A)((0,r.jsx)(eT,{title:t("Enable.Approval"),isLoading:T,headerBackground:s.colors.gradientCardHeader,txHash:null!=v?v:void 0,loadingText:t("Please enable CAKE spending in your wallet"),loadingButtonLabel:t("Enabling..."),successButtonLabel:t("Close"),onConfirmClose:$}),!1),[q,z]=(0,ec.A)((0,r.jsx)(eF,{title:t("Buy Minting Tickets"),buyTicketCallBack:N,headerBackground:s.colors.gradientCardHeader,cakeBalance:p,maxPerAddress:o,maxPerTransaction:c,numberTicketsForGen0:x,numberTicketsOfUser:d,numberTicketsUsedForGen0:h,pricePerTicket:m,saleStatus:n}));(0,a.useEffect)(()=>{v&&R()},[v]),(0,a.useEffect)(()=>{b&&M()},[b]),(0,a.useEffect)(()=>{O&&U()},[O]),(0,a.useEffect)(()=>{L&&z()},[L]),(0,a.useEffect)(()=>{B&&w&&w(B)},[B,w]);let _=(l||E)&&j,G=(e=>{let{isApproved:t,isGen0User:n,saleStatus:r,startTimestamp:i,isUserReady:a,numberTicketsUsedForGen0:s}=e,l=Date.now();return t?a?eB.READY:r===er.Presale&&(n||s>0)&&l<i-9e5||r===er.Sale&&l>=i?eB.BUY:eB.NONE:eB.ENABLE})({isApproved:j,isGen0User:k,saleStatus:n,startTimestamp:f,isUserReady:S,numberTicketsUsedForGen0:h});return(0,r.jsxs)(r.Fragment,{children:[G===eB.ENABLE&&(0,r.jsx)(u.A,{width:"100%",onClick:()=>{R(),I()},children:t("Enable.Approval")}),G===eB.READY&&(0,r.jsx)(ef,{text:k?t("Ready for Pre-Sale!"):t("Ready for Public Sale!")}),G===eB.BUY&&(0,r.jsx)(u.A,{width:"100%",onClick:q,disabled:!_,children:(e=>{let{t,canBuyTickets:n,saleStatus:r,numberTicketsOfUser:i}=e;return r!==er.Presale&&r!==er.Sale||n?t("Buy Tickets"):t(i>0?r===er.Presale?"Presale max purchased":"Max purchased":"Not eligible")})({canBuyTickets:!!_,numberTicketsOfUser:d,saleStatus:n,t})})]})},eI=e=>{let{t,account:n,saleStatus:i,numberTokensOfUser:a=0,maxSupply:s=0,totalSupplyMinted:l=0}=e,o=i===er.Claim&&a>0;return(0,r.jsxs)(c.A,{flexDirection:["column",null,null,"row"],children:[s===l&&(0,r.jsx)(u.A,{mb:["4px",null,null,"0"],mr:[0,null,null,"4px"],children:(0,r.jsx)(k.Y,{to:"/nfts",children:t("View market")})}),o&&(0,r.jsx)(u.A,{children:(0,r.jsx)(k.Y,{to:`/profile/${n}`,children:t("Your Squad (%tokens%)",{tokens:a})})})]})};var eN=n(654168),eO=n(389512);let eL=e=>{let{t,theme:n,saleStatus:i,numberTicketsOfUser:s=0,ticketsOfUser:l}=e,{callWithGasPrice:o}=(0,ex.M)(),c=(0,eh.Z8)(),[d,x]=(0,a.useState)(null),h=i===er.Claim&&s>0,{toastSuccess:p}=(0,eo.d)(),{fetchWithCatchTxError:m,loading:f}=(0,eO.A)(),[v,g]=(0,ec.A)((0,r.jsx)(eT,{title:t("Mint"),isLoading:f,headerBackground:n.colors.gradientCardHeader,txHash:null!=d?d:void 0,loadingText:t("Please confirm your transaction in wallet."),loadingButtonLabel:t("Minting..."),successButtonLabel:t("Close"),onConfirmClose:()=>{x(null)}}),!1),b=async()=>{let e=await m(async()=>{if(l.length)return o(c,"mint",[l])});(null==e?void 0:e.status)?(p(t("Transaction has succeeded!")),x(e.transactionHash)):null==g||g()};return(0,a.useEffect)(()=>{d&&!f&&v()},[f,d]),(0,r.jsx)(r.Fragment,{children:h&&(0,r.jsx)(u.A,{width:"100%",onClick:b,disabled:f,endIcon:f?(0,r.jsx)(eN.A,{spin:!0,color:"currentColor"}):void 0,children:t("Mint NFTs (%tickets%)",{tickets:s})})})};var e$=n(507334);let eM=(e,t)=>{switch(t){case er.Pending:case er.Premint:return e("Get Ready");case er.Presale:return e("Presale");case er.Sale:case er.DrawingRandomness:return e("Public IFO");case er.Claim:return e("Claim Phase");default:return""}},eR=e=>{let{eventStatus:t,saleStatus:n,startTimestamp:r}=e,i=Date.now();return t.every(e=>e<n)?"past":t.some(e=>e===n)?r&&n===er.Presale&&i>r-9e5?"past":"live":"upcoming"},eU=e=>{let{startTimestamp:t,timestampOffsetInSeconds:n=0}=e;if(!t)return"";let r=Date.now()/1e3;return((e,t)=>{let n=[];return(Object.keys(e).forEach(r=>{!(e[r]>0)||(null==t?void 0:t.includes(r))||n.push(`${e[r]}${r.substring(0,1)}`)}),0===n.length)?null:n.join(" ")})((0,e$.Ay)(Math.round(t/1e3-n-r)))||"0s"},eq=e=>{let{eventStatus:t,saleStatus:n,startTimestamp:r,t:i}=e,a=eR({eventStatus:t,saleStatus:n,startTimestamp:r});if("live"===a&&n===er.DrawingRandomness)return`${eM(i,t[0])}: ${i("Sold Out!")}`;if("live"===a&&n>0){if(n===er.Presale)return`${eM(i,t[0])}: ${i("end in")} ${eU({startTimestamp:r,timestampOffsetInSeconds:900})}`;if(n===er.DrawingRandomness)return`${eM(i,t[0])}: ${i("Sold Out!")}`;if(n>er.Premint)return`${eM(i,t[0])}: ${i("Now Live")}`}return"past"===a&&t[0]===er.Presale?`${eM(i,t[0])}: Closed`:"upcoming"===a?`${eM(i,t[0])}: `:eM(i,t[0])},ez=e=>{let{startTimestamp:t,eventStatus:n,saleStatus:r,t:i}=e,a=eR({eventStatus:n,saleStatus:r,startTimestamp:t});return r===er.DrawingRandomness&&"upcoming"===a?i("Starting Soon"):"upcoming"===a&&n[0]===er.Presale?`${i("starts in")} ${eU({startTimestamp:16335792e5})}`:t&&"upcoming"===a&&n[0]===er.Sale?`${i("starts in")} ${eU({startTimestamp:t})}`:void 0},e_={past:"past",live:"current",upcoming:"future"},eG=e=>{let{eventStatus:t,saleStatus:n,hasProfileActivated:r,numberTicketsOfUser:i=0,isLastPhase:a=!1}=e;return r?n!==er.Claim||0!==i||a?e_[eR({saleStatus:n,eventStatus:t})]:"past":"future"},eH=(0,h.I4)(c.A).withConfig({componentId:"sc-498e559e-0"})(["position:relative;background:",";z-index:0;"],e=>{let{$isDark:t}=e;return t?"linear-gradient(180deg, #0B4576 0%, #091115 100%)":"linear-gradient(180deg, #6fb6f1 0%, #eaf2f6 100%)"}),eW=h.I4.img.withConfig({componentId:"sc-498e559e-1"})(["position:absolute;bottom:4px;"]),eV=e=>{let{eventInfos:t,userInfos:n,isLoading:i,userStatus:a,account:s}=e,{t:l}=(0,x.A)(),{theme:h,isDark:p}=(0,T.Ay)(),{balance:v}=(0,ee.EV)(),g=(e=>{let{t,userInfos:n,eventInfos:i,userStatus:a,account:s,theme:l,cakeBalance:o}=e,{maxPerAddress:c,maxPerTransaction:d,maxSupply:x,pricePerTicket:h}=i||{}
1,{canClaimForGen0:p,ticketsOfUser:m,numberTicketsUsedForGen0:f,numberTicketsOfUser:v,numberTicketsForGen0:g,numberTokensOfUser:b}=n||{},{saleStatus:A=er.Pending,totalTicketsDistributed:y,totalSupplyMinted:C,startTimestamp:F}=i||{},j=[ei.PROFILE_ACTIVE,ei.PROFILE_ACTIVE_GEN0].includes(a),w=!!i&&!!n;return[{id:1,status:eG({saleStatus:A,hasProfileActivated:j,eventStatus:[er.Pending,er.Premint]}),title:t("Activate your profile"),bodyText:[t("Youâll need an active PancakeSwap Profile to buy Minting Tickets and mint a Pancake Squad NFT!")],buttons:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ea,{userStatus:a,t:t}),j&&(0,r.jsx)(ef,{text:t("You're all set!")})]})},{id:2,status:eG({saleStatus:A,hasProfileActivated:j,eventStatus:[er.Pending,er.Premint]}),title:t("Hold CAKE"),bodyText:[t("Each NFT costs CAKE to mint. Remember you also need BNB to cover transaction fees too!")],buttons:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.A,{as:"a",href:"/swap?outputCurrency=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82&chainId=56",target:"_blank",width:"100%",children:t("Buy CAKE")})})},{id:3,status:eG({saleStatus:A,hasProfileActivated:j,eventStatus:[er.Presale,er.Sale]}),title:t("Buy Squad Tickets"),bodyText:[t("Buy Squad Tickets, while stocks last. Youâll use them in step 4."),`04:00 UTC, Oct. 7 ${t("Pre-sale: Wallets which held âGen 0â Pancake Bunnies NFTs (bunnyID 0,1,2,3,4) at a snapshot taken some time between 12 and 2 hours before the presale begins can purchase one Squad Ticket per Gen 0 NFT.")}`,`08:00 UTC, Oct. 7 ${t("Public Sale: Any wallet with an active Pancake Profile can purchase up to 10 Squad Tickets, while stocks last.")}`],buttons:(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)(eP,{t:t,account:s,theme:l,userStatus:a,saleStatus:A,canClaimForGen0:!!p,maxPerAddress:c,numberTicketsOfUser:v,numberTicketsUsedForGen0:f,cakeBalance:o,maxPerTransaction:d,numberTicketsForGen0:g,pricePerTicket:null!=h?h:0n,startTimestamp:null!=F?F:0}),y===x&&w&&(0,r.jsx)(ef,{mt:"16px",text:t("Phase Complete!")})]})},{id:4,status:eG({saleStatus:A,hasProfileActivated:j,eventStatus:[er.Claim],numberTicketsOfUser:v}),title:t("Claim Phase"),bodyText:[t("During this phase, any wallet holding a Squad Ticket can redeem their ticket to claim a Pancake Squad NFT.")],buttons:(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)(eL,{t:t,theme:l,saleStatus:A,numberTicketsOfUser:v,numberTokensOfUser:b,ticketsOfUser:null!=m?m:[]}),C===x&&w&&(0,r.jsx)(ef,{mt:"16px",text:t("Phase Complete!")})]})},{id:5,status:eG({saleStatus:A,hasProfileActivated:j,eventStatus:[er.Claim],isLastPhase:!0}),title:t("Wait for the Reveal"),bodyText:[t("Itâll take a few days before your bunnyâs image is revealed. Just hold tight and wait for the final image!"),t("Trading will open before the images are live, but youâll still be able to check the bunniesâ stats.")],buttons:(0,r.jsx)(r.Fragment,{children:w&&(0,r.jsx)(eI,{t:t,saleStatus:A,userStatus:a,maxSupply:x,totalSupplyMinted:C,numberTokensOfUser:b,account:s})})}]})({t:l,eventInfos:t,userInfos:n,userStatus:a,account:s,theme:h,cakeBalance:v}),b=n&&t&&t.maxSupply===t.totalSupplyMinted;return(0,r.jsxs)(eH,{justifyContent:"center",$isDark:p,children:[(0,r.jsx)(f,{top:"-13px",children:(0,r.jsx)(en,{isDark:p})}),(0,r.jsxs)(m,{flexDirection:"column",alignItems:"center",py:"64px",children:[(0,r.jsx)(d.A,{color:"invertedContrast",textAlign:"center",fontSize:"40px",mb:"64px",bold:!0,children:l("Sounds great, how can I get one?")}),(0,r.jsx)(o.Ay,{mb:["80px",null,null,"170px"],children:b?(0,r.jsxs)(c.A,{flexDirection:"column",alignItems:"center",children:[(0,r.jsx)(d.A,{fontSize:"16px",color:"text",textAlign:"center",children:l("The minting period is now over: all 10,000 bunnies have now been minted.")}),(0,r.jsx)(d.A,{fontSize:"16px",color:"text",textAlign:"center",mb:"64px",children:l("Head to the NFT Marketplace to buy!")}),(0,r.jsx)(o.Ay,{children:(0,r.jsx)(q(),{href:"/nfts",passHref:!0,children:(0,r.jsx)(u.A,{children:l("View market")})})})]}):(0,r.jsx)(K.A,{children:g.map((e,t)=>{var n;return(0,r.jsx)(Q.p,{index:t,statusFirstPart:e.status,statusSecondPart:null==(n=g[t+1])?void 0:n.status,children:(0,r.jsx)(J.A,{children:(0,r.jsx)(X.A,{children:(0,r.jsxs)(o.Ay,{maxWidth:"388px",children:[(0,r.jsx)(d.A,{color:"secondary",fontSize:"20px",mb:"16px",bold:!0,children:e.title}),e.bodyText.map(e=>(0,r.jsx)(d.A,{color:"textSubtle",mb:"16px",children:e},e)),i?null:e.buttons]})})})},e.id)})})})]}),(0,r.jsxs)(f,{bottom:"-3px",children:[(0,r.jsx)(c.A,{justifyContent:"center",children:(0,r.jsx)(eW,{src:"/images/pancakeSquad/squadRow.png",alt:"pancake bunnies squad"})}),(0,r.jsx)(et,{isDark:p})]})]})};var eY=n(341936),eZ=n(378275);let eK=(0,h.I4)(c.A).withConfig({componentId:"sc-131d4202-0"})(["position:relative;background:",";"],e=>{let{theme:t}=e;return t.colors.background}),eQ=h.I4.div.withConfig({componentId:"sc-131d4202-1"})(["order:1;margin-bottom:40px;","{order:2;margin-bottom:0;margin-left:40px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md});(0,h.I4)(d.A).withConfig({componentId:"sc-131d4202-2"})(["&:hover{text-decoration:underline;}"]);let eJ=()=>{let{t:e}=(0,x.A)(),t=(e=>{let{t}=e;return[{title:t("Whatâs the Smart Contract?"),description:[(0,r.jsx)(d.A,{color:"textSubtle",children:t("The smart contract address will be released soon before the sale starts.")},1)]},{title:t("I canât see my NFTâs picture!"),description:[t("Wait for the reveal! After all 10,000 members of the Pancake Squad have been minted, their images will remain hidden for a few days. Just be patient :)")]},{title:t("How many can I mint?"),description:[t("The max limit per wallet is 10 NFTs."),t("Users holding Gen 0 Pancake Bunny NFTs at the snapshot may al
1so purchase one additional Pancake Squad NFT in the presale for each Pancake Bunny they hold."),t("For example, if you have 5 Gen 0 bunnies, you can buy 5 minting tickets in the presale, then max. 10 in the public sale.")]},{title:t("Where do the fees go?"),description:[t("100% of CAKE spent on Pancake Squad NFTs will be burned as part of our weekly CAKE burn.")]},{title:t("How are the NFTs randomly distributed?"),description:[t("Once all 10,000 Squad Tickets have been bought, Chainlink VRF will be used to randomly allocate the pre-generated NFTs to the purchased Tickets. Squad Tickets are allocated IDs numbered in order of their purchase."),t("Once all 10,000 have been sold, VRF will pick numbers from 0 to 9999, which will be used to shift the Squad Ticket ID. This will ensure that the distribution of rare NFTs will be randomized, and prevents âsnipingâ of specific NFTs during the pre-sale or public sale phases.")]},{title:t("Whatâs the value of each NFT?"),description:[t("Value is subjective, but since different traits have different levels of rarity, you can expect bunnies with rarer traits to trade for higher prices than others. If youâre planning to sell, check the NFT market for the price of bunnies with a similarly rare traits to yours.")]}]})({t:e});return(0,r.jsx)(eK,{justifyContent:"center",children:(0,r.jsx)(m,{py:"64px",children:(0,r.jsx)(eQ,{children:(0,r.jsxs)(J.A,{children:[(0,r.jsx)(eY.A,{children:(0,r.jsx)(S.A,{scale:"lg",color:"secondary",children:e("FAQs")})}),(0,r.jsx)(X.A,{children:t.map((e,t,n)=>{let{title:i,description:a}=e,{length:s}=n;return(0,r.jsx)(eZ.A,{id:i,mb:t+1===s?"":"24px",title:i,children:a.map(e=>"string"==typeof e?(0,r.jsx)(d.A,{color:"textSubtle",as:"p",children:e},e):e)},i)})})]})})})})};var eX=n(283485),e0=n(296123);let e1=e=>{let{isDark:t,...n}=e;return(0,r.jsxs)(j.A,{viewBox:"0 0 1280 16",preserveAspectRatio:"none",...n,children:[(0,r.jsx)("path",{d:"M0 16V0c159.43 9.206 387.163 14.966 640 14.966S1120.57 9.206 1280 0v16H0z",fill:"url(#squad_header_bottom_wave)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"squad_header_bottom_wave",x1:174.5,y1:15.999,x2:1233.5,y2:16,gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:t?"#313D5C":"#E5FDFF"}),(0,r.jsx)("stop",{offset:1,stopColor:t?"#3D2A54":"#F3EFFF"})]})})]})};var e2=function(e){return e[e.ACTIVATE=0]="ACTIVATE",e[e.BUY=1]="BUY",e[e.MINT=2]="MINT",e[e.END=3]="END",e[e.NONE=4]="NONE",e}({});let e3=e=>{let{t,account:n,saleStatus:i,userStatus:a,theme:s,canClaimForGen0:l,maxPerAddress:o=0,maxPerTransaction:d=0,numberTicketsOfUser:u=0,numberTicketsForGen0:x=0,numberTicketsUsedForGen0:h=0,numberTokensOfUser:p=0,startTimestamp:m,maxSupply:f=0,totalSupplyMinted:v=0,cakeBalance:g,pricePerTicket:b,ticketsOfUser:A}=e,y=(e=>{let{userStatus:t,saleStatus:n,numberTicketsOfUser:r}=e,i=n>er.Sale;return t!==ei.NO_PROFILE||i?n===er.Presale||n===er.Sale?e2.BUY:n===er.Claim&&r>0?e2.MINT:n===er.Claim?e2.END:e2.NONE:e2.ACTIVATE})({numberTicketsOfUser:u,saleStatus:i,userStatus:a});return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(c.A,{children:[y===e2.ACTIVATE&&(0,r.jsx)(ea,{userStatus:a,t:t}),y===e2.BUY&&(0,r.jsx)(eP,{t:t,account:n,theme:s,userStatus:a,saleStatus:i,canClaimForGen0:l,maxPerAddress:o,numberTicketsOfUser:u,numberTicketsUsedForGen0:h,cakeBalance:g,maxPerTransaction:d,numberTicketsForGen0:x,pricePerTicket:b,startTimestamp:m}),y===e2.MINT&&(0,r.jsx)(eL,{t:t,theme:s,saleStatus:i,numberTicketsOfUser:u,numberTokensOfUser:p,ticketsOfUser:A}),y===e2.END&&(0,r.jsx)(eI,{t:t,account:n,saleStatus:i,userStatus:a,maxSupply:f,totalSupplyMinted:v,numberTokensOfUser:p})]})})},e6=e=>{let{t,saleStatus:n,userStatus:i,numberTicketsOfUser:a=0,numberTokensOfUser:s=0}=e,l=i===ei.UNCONNECTED;return(i===ei.PROFILE_ACTIVE_GEN0||a>0)&&n===er.Presale||n&&n>=er.Sale?(0,r.jsxs)(c.A,{flexDirection:"column",mb:"24px",children:[(0,r.jsxs)(c.A,{children:[(0,r.jsx)(d.A,{fontSize:"16px",color:z.fq.invertedContrast,mr:"2px",children:t("Your Claim Tickets: ")}),(0,r.jsx)(d.A,{fontSize:"16px",color:a>0?z.fq.warning:z.fq.failure,bold:!0,children:a})]}),n===er.Claim&&(l||0===a&&0===s)&&(0,r.jsx)(d.A,{mt:"24px",fontSize:"16px",color:z.fq.warning,bold:!0,children:t(l?"Redeem Tickets to claim NFTs":"Sorry, you canât claim any NFTs! Better luck next time.")})]}):null},e5=e=>{let{t,saleStatus:n,userStatus:i}=e;return n&&[(er.Pending,er.Premint)].includes(n)?(0,r.jsx)(d.A,{"data-theme":"dark",fontSize:"16px",color:"text",children:((e,t)=>{switch(t){case ei.UNCONNECTED:return e("Are you ready?");case ei.NO_PROFILE:return e("You need a profile to participate!");case ei.PROFILE_ACTIVE:case ei.PROFILE_ACTIVE_GEN0:return e("Youâre all set!");default:return""}})(t,i)}):null};var e9=n(275577);let e4=e=>{let{t,saleStatus:n,totalTicketsDistributed:i=0,totalSupplyMinted:a=0,maxSupply:s=0}=e,l=n&&n>er.Premint,c=n===er.Claim,u=s-i,x=c?a:u,h=Math.round(x/s*100),p=a===s&&c;return l?(0,r.jsxs)(o.Ay,{mb:"24px",children:[p&&(0,r.jsx)(d.A,{color:z.fq.warning,mb:"40px",bold:!0,children:t("Claiming Complete!")}),(0,r.jsx)(d.A,{color:z.fq.invertedContrast,mb:"24px",bold:!0,children:p?t("All 10,000 Pancake Squad NFTs have now been minted!"):((e,t,n,r)=>{let i={remaining:n,total:r};switch(t){case er.Pending:case er.Premint:return"";
1case er.Presale:case er.Sale:return e("%remaining% of %total% remaining",i);case er.DrawingRandomness:return e("Randomizing NFT allocation with Chainlink",i);case er.Claim:return e("%remaining% of %total% claimed",i);default:return""}})(t,n,x.toString(),s.toString())}),!p&&(0,r.jsx)(e9.A,{variant:"round",primaryStep:c?h:100-h,useDark:!1})]}):null},e7=(0,h.I4)(c.A).withConfig({componentId:"sc-ee81db14-0"})(["position:relative;background:linear-gradient(180deg,#8051d6 0%,#492286 100%);"]),e8=(0,h.I4)(d.A).withConfig({componentId:"sc-ee81db14-1"})(["font-size:40px;","{font-size:64px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),te=(0,h.I4)(o.Ay).withConfig({componentId:"sc-ee81db14-2"})(["background:linear-gradient(180deg,#53dee9 0%,#7645d9 100%);border-radius:32px;"]),tt=(0,h.I4)(c.A).withConfig({componentId:"sc-ee81db14-3"})(["background:",";background-clip:padding-box;border-radius:inherit;"],z.fq.text),tn=e=>{let{userInfos:t,eventInfos:n,account:i,userStatus:a,isLoading:s}=e,{t:l}=(0,x.A)(),{theme:u,isDark:h}=(0,T.Ay)(),{balance:p}=(0,ee.EV)(),m=!!n||s,{ticketsOfUser:v,numberTicketsUsedForGen0:g,numberTicketsOfUser:b,numberTicketsForGen0:A,canClaimForGen0:y,numberTokensOfUser:C}=t||{},{maxPerAddress:F,maxPerTransaction:j,maxSupply:w,pricePerTicket:E,saleStatus:D,totalTicketsDistributed:k,totalSupplyMinted:S,startTimestamp:B}=n||{};return(0,r.jsxs)(e7,{pt:["16px",null,null,"40px"],px:["16px",null,null,"80px"],flexDirection:"column",alignItems:"center",children:[(0,r.jsx)(c.A,{width:"100%",children:(0,r.jsx)(q(),{href:"/nfts",passHref:!0,children:(0,r.jsx)(d.A,{color:"primary",bold:!0,children:`< ${l("NFT Marketplace")}`})})}),(0,r.jsx)(e8,{my:"32px",color:z.fq.invertedContrast,bold:!0,textAlign:"center",children:l("Pancake Squad")}),(0,r.jsx)(d.A,{color:z.fq.warning,textAlign:"center",bold:!0,children:`${l("Presale:")} 04:00 UTC, Oct. 7`}),(0,r.jsx)(d.A,{color:z.fq.warning,textAlign:"center",bold:!0,children:`${l("Public Sale:")} 08:00 UTC, Oct. 7`}),(0,r.jsx)(d.A,{color:z.fq.warning,textAlign:"center",bold:!0,children:l("Mint Cost: %minCost% CAKE each",{minCost:15})}),(0,r.jsx)(d.A,{color:z.fq.warning,textAlign:"center",bold:!0,children:l("Max per wallet: %maxPerWallet%",{maxPerWallet:10})}),(0,r.jsx)(d.A,{color:z.fq.invertedContrast,textAlign:"center",children:l("PancakeSwapâs first official generative NFT collection.")}),(0,r.jsx)(d.A,{color:z.fq.invertedContrast,mb:m?"32px":"80px",textAlign:"center",children:l("Join the squad.")}),m&&(0,r.jsx)(te,{mb:"56px",children:(0,r.jsx)(tt,{m:"1px",p:"32px",children:(0,r.jsxs)(c.A,{flexDirection:["column",null,"row"],children:[n&&(0,r.jsx)(o.Ay,{mr:["0",null,null,"100px"],children:(0,r.jsx)(eX.A,{events:(e=>{let{t,saleStatus:n,startTimestamp:r}=e;return void 0!==n?[{status:eR({saleStatus:n,eventStatus:[er.Pending,er.Premint]}),text:eq({saleStatus:n,eventStatus:[er.Pending,er.Premint],t}),infoText:t("Activate your profile and make sure you have at least the cost of 1 NFT in your wallet to buy a Squad Ticket.")},{status:eR({saleStatus:n,eventStatus:[er.Presale],startTimestamp:r}),text:eq({saleStatus:n,eventStatus:[er.Presale],startTimestamp:r,t}),altText:ez({t,saleStatus:n,eventStatus:[er.Presale],startTimestamp:r}),infoText:t("Pre-sale: Wallets which held âGen 0â Pancake Bunnies NFTs (bunnyID 0,1,2,3,4) at a snapshot taken some time between 12 and 2 hours before the presale begins can purchase one Squad Ticket per Gen 0 NFT.")},{status:eR({saleStatus:n,eventStatus:[er.Sale,er.DrawingRandomness],startTimestamp:r}),text:eq({saleStatus:n,startTimestamp:r,eventStatus:[er.Sale,er.DrawingRandomness],t}),altText:ez({t,saleStatus:n,eventStatus:[er.Sale,er.DrawingRandomness],startTimestamp:r}),infoText:t("Public Sale: Any wallet with an active Pancake Profile can purchase up to 10 Squad Tickets, while stocks last.")},{status:eR({saleStatus:n,eventStatus:[er.Claim]}),text:eq({saleStatus:n,eventStatus:[er.Claim],t}),altText:ez({t,saleStatus:n,eventStatus:[er.Claim]}),infoText:t("During this phase, any wallet holding a Squad Ticket can redeem their ticket to mint a Pancake Squad NFT.")}]:[]})({t:l,saleStatus:D,startTimestamp:B}),useDark:!1})}),(0,r.jsxs)(c.A,{flexDirection:"column",children:[n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e5,{t:l,userStatus:a,saleStatus:D}),(0,r.jsx)(e4,{t:l,userStatus:a,saleStatus:D,totalTicketsDistributed:k,maxSupply:w,totalSupplyMinted:S}),t&&(0,r.jsx)(e6,{t:l,userStatus:a,saleStatus:D,numberTicketsOfUser:b,numberTokensOfUser:C}),t&&D&&(0,r.jsx)(e3,{t:l,account:i,theme:u,userStatus:a,saleStatus:D,numberTokensOfUser:C,canClaimForGen0:!!y,maxPerAddress:F,maxSupply:w,numberTicketsOfUser:b,numberTicketsUsedF
1orGen0:g,totalSupplyMinted:S,cakeBalance:p,maxPerTransaction:j,numberTicketsForGen0:A,pricePerTicket:null!=E?E:0n,ticketsOfUser:null!=v?v:[],startTimestamp:null!=B?B:0})]}),s&&(a===ei.UNCONNECTED?(0,r.jsx)(e0.A,{}):(0,r.jsx)(ej.A,{}))]})]})})}),(0,r.jsx)(f,{bottom:"-3px",children:(0,r.jsx)(e1,{isDark:h})})]})};var tr=n(207014),ti=n(703258),ta=n(18468),ts=n(228876);let tl=()=>{let{address:e}=(0,l.F)(),{hasProfile:t,isInitialized:n}=(0,s.xc)(),[o,c]=(0,a.useState)(),[d,u]=(0,a.useState)(),[x,h]=(0,a.useState)(0),[m,f]=(0,a.useState)(!1),v=(!o||!d)&&(null===i.e||void 0===i.e?void 0:i.e.length)>0;(e=>{let{refreshCounter:t,setCallback:n}=e;(0,a.useEffect)(()=>{let e=async()=>{try{let e=(0,tr.yP)(),t=(0,ti.k0)(),r=["maxSupply","maxPerAddress","pricePerTicket","maxPerTransaction","totalTicketsDistributed","currentStatus","startTimestamp"].map(t=>({abi:i.e,address:e,functionName:t})),a=(0,ta.Rt)({chainId:ts.nU.BSC}),[s,l,o,c,d,u,x]=await a.multicall({contracts:r,allowFailure:!1}),h=await t.read.totalSupply();n({maxSupply:Number(s),maxPerAddress:Number(l),pricePerTicket:o,maxPerTransaction:Number(c),totalTicketsDistributed:Number(d),saleStatus:u,startTimestamp:Number(x.toString().padEnd(13,"0")),totalSupplyMinted:Number(h)})}catch(e){console.error(e)}};i.e.length>0&&e()},[t,n])})({setCallback:c,refreshCounter:x}),(e=>{let{account:t,refreshCounter:n,setCallback:r}=e;(0,a.useEffect)(()=>{let e=async()=>{try{let e=(0,tr.yP)(),n=(0,ti.k0)();if(t){let a=["canClaimForGen0","numberTicketsForGen0","numberTicketsUsedForGen0","viewNumberTicketsOfUser"].map(n=>({abi:i.e,address:e,functionName:n,args:[t]})),s=(0,ta.Rt)({chainId:ts.nU.BSC}),[l,o,c,d]=await s.multicall({contracts:a,allowFailure:!1}),u=await s.readContract({abi:i.e,address:e,functionName:"ticketsOfUserBySize",args:[t,0n,600n]}),x=await n.read.balanceOf(t);r({canClaimForGen0:l,numberTicketsForGen0:Number(o),numberTicketsUsedForGen0:Number(c),numberTicketsOfUser:Number(d),ticketsOfUser:u,numberTokensOfUser:Number(x)})}}catch(e){console.error(e)}};i.e.length>0&&e()},[t,n,r])})({setCallback:u,refreshCounter:x,account:e});let g=(e=>{let{account:t,hasActiveProfile:n,hasGen0:r}=e;return t&&n&&r?ei.PROFILE_ACTIVE_GEN0:t&&n?ei.PROFILE_ACTIVE:t?ei.NO_PROFILE:ei.UNCONNECTED})({account:e,hasActiveProfile:t&&n,hasGen0:!!(null==d?void 0:d.canClaimForGen0)});return(0,a.useEffect)(()=>{let e=setInterval(()=>{h(e=>e+1)},4e3);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>{e&&(f(!1),u(void 0))},[e]),(0,r.jsx)(ep.Provider,{value:{isUserEnabled:m,setIsUserEnabled:f},children:(0,r.jsxs)(p,{children:[(0,r.jsx)(tn,{account:e,isLoading:v,userInfos:d,eventInfos:o,userStatus:g}),(0,r.jsx)(R,{}),(0,r.jsx)(Z,{}),(0,r.jsx)(eV,{userInfos:d,eventInfos:o,userStatus:g,isLoading:v,account:e}),(0,r.jsx)(D,{}),(0,r.jsx)(eJ,{})]})})}},341936:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(432222),i=n(680797),a=n(913688);let s=i.I4.div.withConfig({shouldForwardProp:r.Ay}).withConfig({componentId:"sc-fcb38893-0"})(["background:",";border-radius:",";",""],e=>{let{theme:t,variant:n="default"}=e;return t.card.cardHeaderBackground[n]},e=>{let{theme:t}=e;return`${t.radii.card} ${t.radii.card} 0 0`},a.xe);s.defaultProps={p:"24px"};let l=s},378275:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(350979),i=n(769932),a=n(501823),s=n(605641),l=n(294643),o=n(25963),c=n(680797);let d=(0,c.I4)(a.A).withConfig({componentId:"sc-c9b8ba19-0"})(["cursor:pointer;"]),u=(0,c.I4)(a.A).withConfig({componentId:"sc-c9b8ba19-1"})(["button{align-items:center;justify-content:flex-start;}"]),x=(0,c.I4)(a.A).withConfig({componentId:"sc-c9b8ba19-2"})(["overflow:hidden;height:",";padding-bottom:",";border-bottom:",";"],e=>{let{isExpanded:t}=e;return t?"100%":"0px"},e=>{let{isExpanded:t}=e;return t?"16px":"0px"},e=>{let{noBorder:t}=e;return t?"":`1px solid ${e=>{let{theme:t}=e;return t.colors.inputSecondary}}`}),h=e=>{let{title:t,children:n,noBorder:c,hideExpandableLabel:h,wrapperProps:p,expandableLabelProps:m,...f}=e,{t:v}=(0,i.A)(),[g,b]=(0,o.useState)(!1),A=(0,o.useCallback)(()=>b(e=>!e),[]),y=(0,o.useMemo)(()=>g?v("Hide"):v("Details"),[g,v]);return(0,r.jsxs)(a.A,{...f,flexDirection:"column",children:[(0,r.jsxs)(d,{justifyContent:"space-between",alignItems:"center",pb:"16px",onClick:A,...p,children:[(0,r.jsx)(s.A,{bold:!0,children:t}),(0,r.jsx)(u,{children:(0,r.jsx)(l.d,{expanded:g,...m,children:h?"":y})})]}),(0,r.jsx)(x,{noBorder:c,isExpanded:g,flexDirection:"column",children:n})]})}},378385:(e,t,n)=>{"use strict";n.d(t,{x4:()=>h,Eg:()=>p,wO:()=>m,ZV:()=>x,zR:()=>c,_c:()=>d,MS:()=>o,cB:()=>u});var r=n(91168),i=n(659918),a=n(63544);function s(e,t){if(!e)return e;if(!t)return e.replace(/\s+$/,"");let n=RegExp(`[${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}]+$`);return e.replace(n,"")}var l=n(442841);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return e.times((0,a.E)(t))},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return e.dividedBy((0,a.E)(t))},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;return c(e||i.AH,t).toNumber()},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,n=arguments.length>2?arguments[2]:void 0,r=c(e,t).toFixed(n);return n?s(s(r,"0"),"."):r},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;
1return e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:18,r=e%10n**BigInt(n-t);return(0,l.J)(e-r,n)},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:18;return(+(0,l.J)(e,n)).toFixed(t)},m=(e,t)=>{let n=c(e,t);return n.lt(1e-5)&&n.gt(0)?"< 0.00001":n.toFixed(5,r.A.ROUND_DOWN)}},389512:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(350979),i=n(769932),a=n(334404),s=n(227883),l=n(25963),o=n(661742),c=n(189346),d=n(728844);function u(e){let{throwUserRejectError:t=!1,throwCustomError:n}=e||{},{t:u}=(0,i.A)(),{toastError:x,toastSuccess:h}=(0,a.d)(),[p,m]=(0,l.useState)(!1),{waitForTransaction:f}=(0,d.x)(),[v,g]=(0,l.useState)(!1),b=(0,l.useCallback)(e=>{(0,c.v)(e);let t=(0,o.rM)(e);if(t){let e=((e,t)=>{if(!e)return e;let n=e;return e.toLowerCase().includes("contract not allowed")&&(n+=` 2${t("Smart Wallets are not supported, please create a ticket on our Official Discord")}`),n})(t.shortMessage||t.message,u);x(u("Error"),u("Transaction failed with error: %reason%",{reason:e}))}else x(u("Error"),u("Please try again. Confirm the transaction and make sure you are paying enough gas!"))},[u,x]),A=(0,l.useCallback)((e,t)=>{(0,c.v)(e);let n=(0,o.rM)(e);x(u("Failed"),(0,r.jsx)(s.G,{txHash:t,children:n?u("Transaction failed with error: %reason%",{reason:(0,o.rV)(n)}):u("Transaction failed. For detailed error message:")}))},[u,x]);return{fetchWithCatchTxError:(0,l.useCallback)(async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{toastSuccess:{title:`${u("Transaction Submitted")}!`}},a=null;try{if(m(!0),!(a=await e()))return null;let t="string"==typeof a?a:a.hash;h(i.toastSuccess.title||`${u("Transaction Submitted")}!`,(0,r.jsx)(s.G,{txHash:t}));let n=await f({hash:t});if((null==n?void 0:n.status)==="success")return n;throw Error(u("Failed"))}catch(e){if((0,c.U)(e)||(a?n?n():A(e,"string"==typeof a?a:a.hash):b(e)),t)throw e}finally{m(!1)}return null},[h,u,f,t,n,b,A]),fetchTxResponse:(0,l.useCallback)(async e=>{let t=null;try{if(g(!0),!(t=await e()))return null;let n="string"==typeof t?t:t.hash;return h(`${u("Transaction Submitted")}!`,(0,r.jsx)(s.G,{txHash:n})),{hash:n}}catch(e){(0,c.U)(e)||(t?A(e,"string"==typeof t?t:t.hash):b(e))}finally{g(!1)}return null},[h,u,b,A]),loading:p,txResponseLoading:v}}},399832:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(350979),i=n(25963),a=n(673115),s=n(32654),l=n(785459);let o=e=>{let{children:t,icon:n,useBscCoinFallback:o,...c}=e,d=(0,i.useMemo)(()=>n||(o?(0,r.jsx)(l.A,{}):(0,r.jsx)(s.A,{})),[n,o]),u=(0,i.useMemo)(()=>i.isValidElement(d)?i.cloneElement(d,{color:c.color?c.color:"primary",ml:"4px"}):null,[d,c.color]);return(0,r.jsxs)(a.A,{external:!0,...c,children:[t,u]})}},442841:(e,t,n)=>{"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,a]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),i=i||"0",`${r?"-":""}${i}${a?`.${a}`:""}`}n.d(t,{J:()=>r})},471377:(e,t,n)=>{"use strict";n.d(t,{c9:()=>i,as:()=>r,z3:()=>s,fq:()=>a});let r={white:"white",failure:"#ED4B9E",failure33:"#ED4B9E33",primary:"#1FC7D4",primary0f:"#1FC7D40f",primary3D:"#1FC7D43D",primaryBright:"#53DEE9",primaryDark:"#0098A1",success:"#31D0AA",success19:"#31D0AA19",warning:"#FFB237",warning2D:"#ED4B9E2D",warning33:"#ED4B9E33"},i={binance:"#F0B90B",overlay:"#452a7a",gold:"#FFC700",silver:"#B2B2B2",bronze:"#E7974D",yellow:"#D67E0A"},a={...r,...i,v2Default:"#FFFFFF",v2Inverse:"#000000",v2Primary100:"#081F20",v2Primary90:"#093134",v2Primary80:"#094D53",v2Primary70:"#00727A",v2Primary60:"#02919D",v2Primary50:"#27B9C4",v2Primary40:"#48D0DB",v2Primary30:"#86DDE4",v2Primary20:"#C1EDF0",v2Primary10:"#EEFBFC",v2Secondary100:"#191227",v2Secondary90:"#272237",v2Secondary80:"#403351",v2Secondary70:"#5B4776",v2Secondary60:"#756595",v2Secondary50:"#9383B4",v2Secondary40:"#ADA3C2",v2Secondary30:"#CAC2DB",v2Secondary20:"#E8E2EE",v2Secondary10:"#F6F4FB",v2Tertiary100:"#122127",v2Tertiary90:"#223537",v2Tertiary80:"#334D51",v2Tertiary70:"#477176",v2Tertiary60:"#659095",v2Tertiary50:"#83B2B4",v2Tertiary40:"#A3BFC2",v2Tertiary30:"#C2D8DB",v2Tertiary20:"#E2EDEE",v2Tertiary10:"#F4FAFB",v2Positive100:"#01211B",v2Positive90:"#02382E",v2Positive80:"#035345",v2Positive70:"#067962",v2Positive60:"#129E7D",v2Positive50:"#1BC59C",v2Positive40:"#3DDBB5",v2Positive30:"#86E7CF",v2Positive20:"#BCEFE2",v2Positive10:"#EAFBF7",v2Warning100:"#281300",v2Warning90:"#3D2100",v2Warning80:"#5B3400",v2Warning70:"#824903",v2Warning60:"#AB6502",v2Warning50:"#D67E0A",v2Warning40:"#FF9D00",v2Warning30:"#FC9D31",v2Warning20:"#F9D9B8",v2Warning10:"#FBF2E7",v2Destructive100:"#2C0C20",v2Destructive90:"#551146",v2Destructive80:"#7B194D",v2Destructive70:"#AF287E",v2Destructive60:"#D14293",v2Destructive50:"#F35EAB",v2Destructive40:"#FB7EC1",v2Destructive30:"#F9AED7",v2Destructive20:"#FED2E8",v2Destructive10:"#FFF0F9",v2Disabled100:"#161616",v2Disabled90:"#262626",v2Disabled80:"#393939",v2Disabled70:"#525252",v2Disabled60:"#6F6F6F",v2Disabled50:"#8D8D8D",v2Disabled40:"#A8A8A8",v2Disabled30:"#C6C6C6",v2Disabled20:"#E0E0E0",v2Disabled10:"#F7F7F7",v2DecorativeBlue100:"#041B2F",v2DecorativeBlue90:"#092F4E",v2DecorativeBlue80:"#0E4572",v2DecorativeBlue70:"#1862A0",v2DecorativeBlue60:"#2882CC",v2DecorativeBlue50:"#4BA0E7",v2DecorativeBlue40:"#72B8F1",v2DecorativeBlue30:"#9ECEF5",v2DecorativeBlue20:"#C3E5FC",v2DecorativeBlue10:"#ECF6FE",blue10:"#ECF6FE",blue20:"#C3E5FC",blue60:"#2882CC",secondary:"#7645D9",secondary10:"#F6F4FB",secondary20:"#E8E2EE",secondary60:"#756595",secondary80:"#7645D980",background:"#FAF9FA",backgroundDisabled:"#E9EAEB",backgroundAlt:"#FFFFFF",backgroundAlt2:"rgba(255, 255, 255, 0.7)",backgroundAlt3:"rgba(255, 255, 255, 0.5)",backgroundHover:"rgba(0, 0, 0, 0.02)",backgroundTapped:"rgba(0, 0, 0, 0.04)",backgroundOverlay:"rgba(40, 13, 95, 0.60)",backgroundBubblegum:"linear-gradient(139.73deg, #E5F
2DFF 0%, #F3EFFF 100%)",backgroundPage:"#FAF9FA",card:"#FFFFFF",cardSecondary:"#FAF9FA",cardBorder:"#E7E3EB",contrast:"#191326",dropdown:"#F6F6F6",dropdownDeep:"#EEEEEE",invertedContrast:"#FFFFFF",input:"#eeeaf4",inputSecondary:"#d7caec",inputPrimary:"#EEEAF4",tertiary:"#EFF4F5",tertiary20:"#E2EDEE",tertiaryPale20:"#E2EDEE",text:"#280D5F",text99:"#280D5F99",textDisabled:"#BDC2C4",textSubtle:"#7A6EAA",disabled:"#E9EAEB",primary10:"#EEFBFC",primary20:"#C1EDF0",primary60:"#02919D",positive10:"#EAFBF7",positive20:"#BCEFE2",positive60:"#129E7D",destructive10:"#FFF0F9",destructive20:"#FED2E8",destructive60:"#D14293",destructive:"#ED4B9E",warning10:"#FBF2E7",warning20:"#F9D9B8",warning60:"#AB6502",bubblegum:"#F3EFFF",gradientPrimary:"linear-gradient(228.54deg, #1FC7D4 -13.69%, #7645D9 91.33%)",gradientBubblegum:"linear-gradient(139.73deg, #E5FDFF 0%, #F3EFFF 100%)",gradientInverseBubblegum:"linear-gradient(139.73deg, #F3EFFF 0%, #E5FDFF 100%)",gradientCardHeader:"linear-gradient(111.68deg, #F2ECF2 0%, #E8F2F6 100%)",gradientBlue:"linear-gradient(180deg, #A7E8F1 0%, #94E1F2 100%)",gradientViolet:"linear-gradient(180deg, #E2C9FB 0%, #CDB8FA 100%)",gradientVioletAlt:"linear-gradient(180deg, #CBD7EF 0%, #9A9FD0 100%)",gradientGold:"linear-gradient(180deg, #FFD800 0%, #FDAB32 100%)",gradientBold:"linear-gradient(#53DEE9, #7645D9)"},s={...r,...i,v2Default:"#000000",v2Inverse:"#FFFFFF",v2Primary100:"#EEFBFC",v2Primary90:"#C1EDF0",v2Primary80:"#86DDE4",v2Primary70:"#48D0DB",v2Primary60:"#48D0DB",v2Primary50:"#27B9C4",v2Primary40:"#00727A",v2Primary30:"#00727A",v2Primary20:"#094D53",v2Primary10:"#13393C",v2Secondary100:"#F6F4FB",v2Secondary90:"#E8E2EE",v2Secondary80:"#CAC2DB",v2Secondary70:"#ADA3C2",v2Secondary60:"#9383B4",v2Secondary50:"#756595",v2Secondary40:"#5B4776",v2Secondary30:"#5B4776",v2Secondary20:"#4B3B5F",v2Secondary10:"#322B48",v2Tertiary100:"#E0E0FF",v2Tertiary90:"#CDCDF5",v2Tertiary80:"#A0A0D7",v2Tertiary70:"#9191C5",v2Tertiary60:"#8989B8",v2Tertiary50:"#7979A2",v2Tertiary40:"#68688B",v2Tertiary30:"#575775",v2Tertiary20:"#44445B",v2Tertiary10:"#223537",v2Positive100:"#EAFBF7",v2Positive90:"#BCEFE2",v2Positive80:"#86E7CF",v2Positive70:"#3DDBB5",v2Positive60:"#3DDBB5",v2Positive50:"#129E7D",v2Positive40:"#067962",v2Positive30:"#067962",v2Positive20:"#035345",v2Positive10:"#0C3A32",v2Warning100:"#FBF2E7",v2Warning90:"#F9D9B8",v2Warning80:"#FC9D31",v2Warning70:"#FF9D00",v2Warning60:"#D67E0A",v2Warning50:"#FF9D00",v2Warning40:"#9C5600",v2Warning30:"#9C5600",v2Warning20:"#754300",v2Warning10:"#452E14",v2Destructive100:"#FFF0F9",v2Destructive90:"#FED2E8",v2Destructive80:"#F9AED7",v2Destructive70:"#FB7EC1",v2Destructive60:"#FB7EC1",v2Destructive50:"#D14293",v2Destructive40:"#AF287E",v2Destructive30:"#AF287E",v2Destructive20:"#7B194D",v2Destructive10:"#551146",v2Disabled100:"#F6F1FF",v2Disabled90:"#DDD5EB",v2Disabled80:"#C3B8D7",v2Disabled70:"#9992A8",v2Disabled60:"#807A8B",v2Disabled50:"#65616E",v2Disabled40:"#57535E",v2Disabled30:"#46434C",v2Disabled20:"#39373E",v2Disabled10:"#323037",v2DecorativeBlue100:"#ECF6FE",v2DecorativeBlue90:"#C3E5FC",v2DecorativeBlue80:"#9ECEF5",v2DecorativeBlue70:"#72B8F1",v2DecorativeBlue60:"#72B8F1",v2DecorativeBlue50:"#4BA0E7",v2DecorativeBlue40:"#1862A0",v2DecorativeBlue30:"#1862A0",v2DecorativeBlue20:"#0E4572",v2DecorativeBlue10:"#0
2B3557",blue10:"#0B3557",blue20:"#0E4572",blue60:"#72B8F1",secondary:"#A881FC",secondary10:"#322B48",secondary20:"#4B3B5F",secondary60:"#756595",secondary80:"#A881FC80",background:"#08060B",backgroundDisabled:"#3c3742",backgroundAlt:"#27262c",backgroundAlt2:"rgba(39, 38, 44, 0.7)",backgroundAlt3:"rgba(0, 0, 0, 0.2)",backgroundHover:"rgba(0, 0, 0, 0.04)",backgroundTapped:"rgba(0, 0, 0, 0.08)",backgroundOverlay:"rgba(68, 62, 88, 0.60)",backgroundBubblegum:"#160F1E",backgroundPage:"#160F1E",card:"#27262C",cardSecondary:"#18171A",cardBorder:"#383241",contrast:"#FFFFFF",dropdown:"#1E1D20",dropdownDeep:"#100C18",invertedContrast:"#191326",input:"#372F47",inputSecondary:"#262130",inputPrimary:"#372F47",primaryDark:"#0098A1",tertiary:"#353547",tertiary20:"#44445B",tertiaryPale20:"#44445B",text:"#F4EEFF",text99:"#F4EEFF99",textDisabled:"#666171",textSubtle:"#B8ADD2",disabled:"#524B63",primary10:"#13393C",primary20:"#094D53",primary60:"#48D0DB",positive10:"#0C3A32",positive20:"#035345",positive60:"#3DDBB5",destructive10:"#551146",destructive20:"#7B194D",destructive60:"#FB7EC1",destructive:"#ED4B9E",warning10:"#452E14",warning20:"#754300",warning60:"#D67E0A",bubblegum:"#160F1E",gradientPrimary:"linear-gradient(228.54deg, #1FC7D4 -13.69%, #9A6AFF 91.33%)",gradientBubblegum:"linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)",gradientInverseBubblegum:"linear-gradient(139.73deg, #3D2A54 0%, #313D5C 100%)",gradientCardHeader:"linear-gradient(166.77deg, #3B4155 0%, #3A3045 100%)",gradientBlue:"linear-gradient(180deg, #00707F 0%, #19778C 100%)",gradientViolet:"linear-gradient(180deg, #6C4999 0%, #6D4DB2 100%)",gradientVioletAlt:"linear-gradient(180deg, #434575 0%, #66578D 100%)",gradientGold:"linear-gradient(180deg, #FFD800 0%, #FDAB32 100%)",gradientBold:"linear-gradient(#53DEE9, #9A6AFF)"}},505783:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pancake-squad",function(){return n(309714)}])},507334:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,gn:()=>i,r0:()=>r});let r=60,i=0x1e187e0,a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"floor",n="floor"===t?Math.floor:Math.ceil,a=Math.abs(e),s={years:0,months:0,days:0,hours:0,minutes:0,seconds:0,totalDays:0};return a>=86400&&(s.totalDays=n(a/86400)),a>=i&&(s.years=n(a/i),a-=s.years*i),a>=2629800&&(s.months=n(a/2629800),a-=2629800*s.months),a>=86400&&(s.days=n(a/86400),a-=86400*s.days),a>=3600&&(s.hours=n(a/3600),a-=3600*s.hours),a>=r&&(s.minutes=n(a/r),a-=s.minutes*r),s.seconds=a,s}},553588:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 2.75711C6.48 2.75711 2 7.23711 2 12.7571C2 18.2771 6.48 22.7571 12 22.7571C17.52 22.7571 22 18.2771 22 12.7571C22 7.23711 17.52 2.75711 12 2.75711ZM9.29 17.0471L5.7 13.4571C5.31 13.0671 5.31 12.4371 5.7 12.0471C6.09 11.6571 6.72 11.6571 7.11 12.0471L10 14.9271L16.88 8.04711C17.27 7.65711 17.9 7.65711 18.29 8.04711C18.68 8.43711 18.68 9.06711 18.29 9.45711L10.7 17.0471C10.32 17.4371 9.68 17.4371 9.29 17.0471Z"})})},579518:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(350979),i=n(457244),a=n(161322),s=n(866814),l=n(477796),o=n.n(l),c=n(25963),d=n(800094),u=n(828266),x=n(824961),h=n(680797),p=n(450536),m=n(708027),f=n(649571),v=function(e){return e.touchDevice="touchDevice",e.nonTouchDevice="nonTouchDevice",e}({});let g={initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0}},b={initial:"initial",animate:"animate",exit:"exit"},A={[v.touchDevice]:{start:"touchstart",end:"touchend"},[v.nonTouchDevice]:{start:"mouseenter",end:"mouseleave"}},y=(e,t)=>{let{isDark:n}=(0,h.DP)(),{placement:l="auto",trigger:v=d.Fr?"click":"hover",arrowPadding:y=16,tooltipPadding:C={left:16,right:16},tooltipOffset:F=[0,10],hideTimeout:j=100,manualVisible:w=!1,avoidToStopPropagation:E=!1,strategy:D,isInPortal:k=!0}=t||{},[S,T]=(0,c.useState)(null),[B,P]=(0,c.useState)(null),[I,N]=(0,c.useState)(null),[O,L]=(0,c.useState)(w);(0,c.useEffect)(()=>{L(w)},[w]);let $=(0,c.useCallback)(o()(()=>{L(!1)},j),[j]),M=(0,c.useCallback)(e=>{w||(E||(e.stopPropagation(),e.preventDefault()),"hover"===v?$():L(!1))},[w,v,$,E]),R=(0,c.useCallback)(e=>{L(!0),"hover"===v&&$.cancel(),E||(e.stopPropagation(),e.preventDefault())},[v,E,$]),U=(0,c.useCallback)(e=>{E||(e.stopPropagation(),e.preventDefault()),L(!O)},[O,E]);(0,c.useEffect)(()=>{if(null===S||"hover"!==v||w)return;let e=(0,m.A)()?A.touchDevice:A.nonTouchDevice;return[S,B].forEach(t=>{null==t||t.addEventListener(e.start,R),null==t||t.addEventListener(e.end,M)}),()=>{[S,B].forEach(t=>{null==t||t.removeEventListener(e.start,R),null==t||t.removeEventListener(e.end,M),$.cancel()})}},[v,S,M,R,w,B,$]),(0,c.useEffect)(()=>{if(null!==S&&"click"===v)return S.addEventListener("click",U),()=>S.removeEventListener("click",U)},[v,S,O,U]),(0,c.useEffect)(()=>{if("click"!==v)return;let e=e=>{let{target:t}=e;t instanceof Node&&null!=B&&null!=S&&!B.contains(t)&&!S.contains(t)&&L(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v,S,B]),(0,c.useEffect)(()=>{if(null!==S&&"focus"===v)return S.addEventListener("focus",R),S.addEventListener("blur",M),()=>{S.removeEventListener("focus",R),S.removeEventListener("blur",M)}},[v,S,R,M]);let{styles:q,attributes:z,forceUpdate:_}=(0,x.E)(S,B,{strategy:D,placement:l,modifiers:[{name:"arrow",options:{element:I,padding:y}},{name:"offset",options:{offset:F}},{name:"preventOverflow",options:{padding:C}}]}),G=(0,c.useCallback)(e=>{e.stopPropagation()},[]),H=O?(0,r.jsx)(i.F,{features:a.l,children:(0,r.jsx)(s.N,{children:(0,r.jsxs)(f.F,{onClick:G,"data-theme":n?"light":"dark",...b,variants:g,transition:{duration:.3},ref:P,style:q.popper,...z.popper,children:[e,(0,r.jsx)(f.i,{ref:N,style:q.arrow})]})})}):null,W=O&&k&&(0,p.A)(),V=O&&k&&W?(0,u.createPortal)(H,W):null;return{targetRef:T,tooltip:null!=V?V:H,tooltipVisible:O,forceUpdate:_}}},623895:(e,t,n)=>{"use strict";n.d(t,{M:()=>d});var r=n(25963),i=n(518400),a=n(733775),s=n(18468),l=n(495964),o=n(53670),c=n(909114);function d(e){let{chainId:t}=(0,o.ax)(),n=null!=e?e:t,d=(0,i.YW)(n),u=(0,c.N)(n),x=d?void 0:u.maxFeePerGas,h=d?void 0:u.maxPriorityFeePerGas,{data:p}=(0,l.G)();return{callWithGasPrice:(0,r.useCallback)(async(e,t,r,i)=>{if(!e)throw Error("No valid contract");if(!p)throw Error("No valid wallet connect");let{gas:l,skipSimulate:o,...c}=i||{},u=l;return u||o||(u=await (0,s.Rt)({chainId:n}).estimateContractGas({abi:e.abi,address:e.address,account:p.account,functionName:t,args:r,value:0n,...c})),{hash:await p.writeContract({abi:e.abi,address:e.address,account:p.account,functionName:t,args:r,gasPrice:d,maxFeePerGas:x,maxPriorityFeePerGas:h,gas:u?(0,a.KL)(u,(0,a.aU)(n)):void 0,value:0n,...c})}},[n,d,x,h,p])}}},626579:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,H:()=>r});let r={ROUND:"round",FLAT:"flat"},i={MD:"md",SM:"sm"}},649571:(e,t,n)=>{"use strict";n.d(t,{F:()=>s,i:()=>a});var r=n(694870),i=n(680797);let a=i.I4.div.withConfig({componentId:"sc-d398ce34-0"})(['&,&::before{position:absolute;width:10px;height:10px;border-radius:2px;z-index:-1;}&::before{content:"";transform:rotate(45deg);background:',";}"],e=>{let{theme:t}=e;return t.tooltip.background}),s=(0,i.I4)(r.m.div).withConfig({componentId:"sc-d398ce34-1"})(["padding:16px;font-size:16px;line-height:130%;border-radius:16px;max-width:320px;z-index:101;background:",";color:",";box-shadow:",';word-wrap:break-word;&[data-popper-placement^="top"] > ','{bottom:-4px;}&[data-popper-placement^="bottom"] > ','{top:-4px;}&[data-popper-placement^="left"] > ','{right:-4px;}&[data-popper-placement^="right"] > ',"{left:-4px;}"],e=>{let{theme:t}=e;return t.tooltip.background},e=>{let{theme:t}=e;return t.tooltip.text},e=>{let{theme:t}=e;
2return t.tooltip.boxShadow},a,a,a,a)},693916:(e,t,n)=>{"use strict";n.d(t,{p:()=>p});var r=n(350979);n(25963);var i=n(680797),a=n(501823),s=n(428089);let l=(0,i.I4)(a.A).withConfig({componentId:"sc-82c968a7-0"})(["","{justify-content:center;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),o=i.I4.div.withConfig({componentId:"sc-82c968a7-1"})(["position:absolute;width:4px;height:calc(50% + 20px);"," left:calc(50% - 2px);background-color:",";"],e=>{let{$isFirstStep:t,$isLastStep:n,$isFirstPart:r}=e;return t?"top: 50%;":n?"top: 0;":r?"top:0;":"top:50%;"},e=>{let{theme:t,status:n}=e;return t.colors["past"===n||"current"===n?"success":"textDisabled"]}),c=(0,i.I4)(s.Ay).withConfig({componentId:"sc-82c968a7-2"})(["","{visibility:",";}"],e=>{let{theme:t}=e;return t.mediaQueries.md},e=>{let{isVisible:t}=e;return t?"visible":"hidden"}),d=(0,i.I4)(c).withConfig({componentId:"sc-82c968a7-3"})(["display:none;","{display:block;margin-right:16px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),u=(0,i.I4)(c).withConfig({componentId:"sc-82c968a7-4"})(["margin-left:8px;","{margin-left:16px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),x=i.I4.div.withConfig({componentId:"sc-82c968a7-5"})(["position:relative;display:flex;align-items:center;"]),h=i.I4.div.withConfig({componentId:"sc-82c968a7-6"})(["box-shadow:0px 1px 4px rgba(25,19,38,0.15);background-color:",";border:2px solid ",";border-radius:",";color:",";display:flex;justify-content:center;align-items:center;font-weight:600;font-size:32px;width:48px;height:48px;z-index:5;","{font-size:40px;width:80px;height:80px;}"],e=>{let{theme:t,status:n}=e;return t.colors["current"===n?"secondary":"invertedContrast"]},e=>{let{theme:t,status:n}=e;return"past"===n?t.colors.success:"transparent"},e=>{let{theme:t}=e;return t.radii.circle},e=>{let{theme:t,status:n}=e;return"past"===n?t.colors.success:"current"===n?t.colors.invertedContrast:t.colors.textDisabled},e=>{let{theme:t}=e;return t.mediaQueries.md}),p=e=>{let{index:t,statusFirstPart:n,statusSecondPart:i,numberOfSteps:a=0,children:s}=e,c=t%2==0,p=0===t,m=t===a-1;return(0,r.jsxs)(l,{mb:t<a-1?"16px":0,children:[(0,r.jsx)(d,{isVisible:!c,children:s}),(0,r.jsxs)(x,{children:[(0,r.jsx)(h,{status:n,children:t+1}),(0,r.jsx)(o,{$isFirstStep:p,$isLastStep:m,status:n,$isFirstPart:!0}),!p&&!m&&(0,r.jsx)(o,{$isFirstStep:p,$isLastStep:m,status:i})]}),(0,r.jsx)(u,{isVisible:c,children:s})]})}},724152:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(421770).x},728844:(e,t,n)=>{"use strict";n.d(t,{x:()=>C});var r=n(228876),i=n(782739),a=n(893130),s=n(899188),l=n(209208),o=n(760013),c=n.n(o),d=n(25963),u=n(695055),x=n(617921),h=n(524099),p=n(779623),m=n(680116),f=n(545416),v=n(532649),g=n(660193),b=n(697115),A=n(53670);let y=c()(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s.rY.reduce((t,n)=>({...t,[n.id]:(0,h.l)({chain:n,transport:e&&window.ethereum?(0,p.I)(window.ethereum):(0,x.v)([...l.I[n.id].map(e=>(0,m.L)(e,{timeout:15e3}))]),batch:{multicall:{batchSize:204800,wait:16}},pollingInterval:6e3})}),{})});function C(e){let{chainId:t}=(0,A.ax)(),n=null!=e?e:t,s=(0,b.e)({chainId:n}),l=(0,A.NM)(),o=(0,i.hm)(n);return{waitForTransaction:(0,d.useCallback)(async e=>{var t;let i=null!=(t=null==e?void 0:e.chainId)?t:n,c=async()=>{try{if(i&&y(l)[i]){let t=await y(l)[i].getTransactionReceipt({hash:e.hash});return"success"===t.status&&o(),t}if(!s)return;let t=await s.getTransactionReceipt({hash:e.hash});return"success"===t.status&&o(),t}catch(r){var t,n;if(r instanceof f.Kz)throw new u.dw(`Transaction not found: ${e.hash}`);if(r instanceof f.Kc)throw new u.dw(`Transaction receipt not found: ${e.hash}`);if(r instanceof v.l)throw new u.dw(`Block not found for transaction: ${e.hash}`);else if(r instanceof f.WA)throw new u.dw(`Timeout reached when fetching transaction receipt: ${e.hash}`);else if(r instanceof g.Ci&&((null==(t=r.details)?void 0:t.includes("Load failed"))||(null==(n=r.details)?void 0:n.includes("Failed to fetch"))))throw new u.dw(`Network error when request to ${r.url} failed: ${r.status}, ${r.details}`);throw r}},d=(i?r.vf[i]:a.J3)*1e3+1e3;return(0,u.cJ)(c,{n:10,base:d,delay:d,factor:1.5}).promise},[n,s,o,l])}}}
2,807543:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(48902);let a=e=>{let{ribbon:t,children:n,background:a,innerCardProps:s,...l}=e;return(0,r.jsx)(i.e,{...l,children:(0,r.jsxs)(i.m,{...s,background:a,hasCustomBorder:!!l.borderBackground,children:[t,n]})})}},817652:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsxs)(i.A,{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{d:"M9 1.625c2.407 0 2.685.01 3.641.052.874.04 1.358.185 1.666.308.422.165.72.36 1.04.669.318.319.514.617.668 1.039.123.318.267.792.308 1.666.042.946.052 1.234.052 3.641s-.01 2.685-.052 3.641c-.04.874-.185 1.358-.308 1.666-.165.422-.36.72-.669 1.04a2.66 2.66 0 01-1.039.668c-.318.123-.792.267-1.666.308-.946.042-1.234.052-3.641.052s-2.685-.01-3.641-.052c-.874-.04-1.358-.185-1.666-.308a2.911 2.911 0 01-1.04-.669 2.659 2.659 0 01-.668-1.039c-.123-.318-.267-.792-.308-1.666-.042-.946-.052-1.234-.052-3.641s.01-2.685.052-3.641c.04-.874.185-1.358.308-1.666.165-.422.36-.72.669-1.04a2.658 2.658 0 011.039-.668c.318-.123.792-.267 1.666-.308.956-.042 1.234-.052 3.641-.052zM9 0C6.552 0 6.254.01 5.287.051c-.957.052-1.615.196-2.18.422a4.311 4.311 0 00-1.595 1.039A4.311 4.311 0 00.473 3.106c-.226.566-.37 1.224-.422 2.18C.011 6.255 0 6.553 0 9s.01 2.746.051 3.713c.042.957.196 1.615.422 2.18.226.597.535 1.091 1.039 1.595.504.504.998.813 1.594 1.039.576.226 1.224.37 2.18.422.957.04 1.266.051 3.714.051s2.746-.01 3.713-.051c.957-.042 1.615-.196 2.18-.422a4.311 4.311 0 001.595-1.039 4.311 4.311 0 001.039-1.594c.226-.576.37-1.224.422-2.18.04-.957.051-1.266.051-3.714s-.01-2.746-.051-3.713c-.042-.957-.196-1.615-.422-2.18a4.312 4.312 0 00-1.039-1.595A4.311 4.311 0 0014.894.473c-.576-.226-1.224-.37-2.18-.422C11.745.011 11.447 0 9 0z"}),(0,r.jsx)("path",{d:"M9 4.382a4.618 4.618 0 100 9.236 4.618 4.618 0 000-9.236zm0 7.621A3.007 3.007 0 015.997 9 3.007 3.007 0 019 5.997 3.007 3.007 0 0112.003 9 3.007 3.007 0 019 12.003zM13.803 5.277a1.08 1.08 0 100-2.16 1.08 1.08 0 000 2.16z"})]})},896999:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsxs)(i.A,{viewBox:"0 0 34 38",...e,children:[(0,r.jsx)("rect",{x:"8.83594",width:"5.30132",height:"17.3191",rx:"2.65066",fill:"#D1884F"}),(0,r.jsx)("rect",{x:"19.4385",width:"5.30132",height:"17.3191",rx:"2.65066",fill:"#D1884F"}),(0,r.jsx)("path",{d:"M8.5 13.0084C13.1944 8.40751 20.8056 8.40751 25.5 13.0084C30.1944 17.6093 30.1944 25.0689 25.5 29.6698L17.6538 37.3597C17.2927 37.7136 16.7073 37.7136 16.3462 37.3597L8.5 29.6698C3.80558 25.0689 3.80558 17.6093 8.5 13.0084Z",fill:"#D1884F"}),(0,r.jsx)("ellipse",{cx:"12.3696",cy:"19.9172",rx:"1.76711",ry:"2.59786",fill:"white"}),(0,r.jsx)("ellipse",{cx:"21.2056",cy:"19.9172",rx:"1.76711",ry:"2.59786",fill:"white"})]})},907593:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(350979),i=n(25963);let a=n(680797).I4.div.withConfig({componentId:"sc-39671903-0"})(["display:flex;flex-direction:column;width:fit-content;"]),s=e=>{let{children:t}=e,n=i.Children.count(t);return(0,r.jsx)(a,{children:i.Children.map(t,e=>i.isValidElement(e)?i.cloneElement(e,{numberOfSteps:n}):e)})}},909114:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(782739),i=n(733775);function a(e){var t;let n=e?(0,i.Rh)(e):0n,a=n>0n,{data:s}=(0,r.wD)({chainId:a?e:void 0,query:{enabled:a},watch:a});return{maxFeePerGas:n>0n&&(null==s?void 0:s.maxFeePerGas)?(0,i.KL)(s.maxFeePerGas,n):void 0,maxPriorityFeePerGas:n>0n&&null!=(t=null==s?void 0:s.maxPriorityFeePerGas)?t:void 0}}},956830:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(350979);n(25963);var i=n(257057);let a=e=>(0,r.jsx)(i.A,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z"})})}},e=>{e.O(0,[547,9508,6652,5886,636,6593,8792],()=>e(e.s=505783)),_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.