PageSourceSearch

https://modo.us/_next/static/chunks/2884-c5e6a5c75d389476.js

js modo.us collected 2026-10-04 03:01:08 UTC 237,764 bytes, 35 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="320a09d3-1a1a-46de-846b-a718ff32088f",e._sentryDebugIdIdentifier="sentry-dbid-320a09d3-1a1a-46de-846b-a718ff32088f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2884],{69:(e,t,r)=>{r.d(t,{k:()=>c});var i=r(27964),n=r(74359),a=r(23824),l=r(60528),o=r(83401),s=r(23199);let c=e=>{let t,r,c,d=(0,i.c)(8);d[0]!==e?(t=void 0===e?{}:e,d[0]=e,d[1]=t):t=d[1];let{enabled:u}=t,A=(0,l.f)(),{isFeatureFlagEnabled:h,isFeatureFlagLoading:p}=(0,a.k)("ONBOARDING_V2_SIGNUP"),m=(void 0===u||u)&&!p;return d[2]!==h||d[3]!==A?(r=async()=>{let{data:e}=await A({url:h?o.$E:o.bJ});return e},d[2]=h,d[3]=A,d[4]=r):r=d[4],d[5]!==m||d[6]!==r?(c={queryKey:s.x.get,enabled:m,queryFn:r},d[5]=m,d[6]=r,d[7]=c):c=d[7],(0,n.I)(c)}},1045:(e,t,r)=>{r.d(t,{W:()=>c});var i=r(27964),n=r(4040),a=r(71522),l=r(40371),o=r(33632),s=r(91397);let c=()=>{let e,t,r=(0,i.c)(5),{isAuthenticated:c}=(0,n.A)(),[d]=(0,l.GH)(o.Z7.key),u=c&&""===d;r[0]!==u?(e={enabled:u},r[0]=u,r[1]=e):e=r[1];let{data:A,isLoading:h}=(0,s.c)(e),p=A?.boxesPromotionClaimable,{isEligible:m,isLoading:E}=(0,a.d)(),f=u&&(h||void 0===A||E),g=u&&!h&&m&&!!p;return r[2]!==f||r[3]!==g?(t={canClaimOnboardingBonus:g,isCheckingOnboardingEligibility:f},r[2]=f,r[3]=g,r[4]=t):t=r[4],t}},2455:(e,t,r)=>{r.d(t,{e:()=>f,q:()=>g});var i=r(27964),n=r(67768),a=r(40097),l=r(4459),o=r(9294),s=r(60528),c=r(52184),d=r(67770),u=r(19340),A=r(10183),h=r(14232),p=r(54756),m=r(4072),E=r(51855);let f=["payment-options-v2","payment-options-pay-by-card-new-v2","payment-card-edit-v2","payment-card-wallet-v2","payment-trustly-checkout","payment-skrill-checkout-v2","payment-failure-v2"],g=()=>{let e,t,r,g,v,R,w,S,I,C,_,T=(0,i.c)(16),O=(0,d.u)(),D=(0,E.Z)(O),{closeDialog:N}=(0,u.A)(),{mutate:L}=(I=(0,i.c)(7),C=(0,s.f)(),_=(0,n.jE)(),I[0]!==C?(R=async e=>{let{redemptionId:t,cancellationContext:r}=e;return await C({url:`/redemption-service/redemptions/${t}/cancel`,data:{cancellationContext:r},method:"POST"})},I[0]=C,I[1]=R):R=I[1],I[2]!==_?(w=()=>{_.invalidateQueries({queryKey:l.z.all}),_.invalidateQueries({queryKey:o.Il.list()})},I[2]=_,I[3]=w):w=I[3],I[4]!==R||I[5]!==w?(S={mutationFn:R,onSettled:w},I[4]=R,I[5]=w,I[6]=S):S=I[6],(0,a.n)(S)),{enqueueSnackbar:P}=(0,A.dh)(),j=(0,c.QF)(y),k=(0,c.QF)(b),B=(0,c.QF)(x);T[0]!==L||T[1]!==P?(e=(e,t)=>{let{wizardValues:r,persistedWizardValues:i,isProcessingPayment:n,resetWizardValues:a}=c.QF.getState(),l=r.paymentPurpose??i.paymentPurpose,o=r.redemptionId??i.redemptionId;return l===c.Ij.DELIVERY_FEE&&!!(0,m.O)(o)&&!n&&(L({redemptionId:o,cancellationContext:e},{onSuccess:()=>P(t,{variant:"info",preventDuplicate:!0})}),a(),!0)},T[0]=L,T[1]=P,T[2]=e):e=T[2];let M=e;T[3]!==M||T[4]!==O||T[5]!==D?(t=()=>{(0,m.O)(O)||!(0,m.O)(D)||!f.includes(D)||(0,m.O)((0,p.qn)("dialog"))||M("PAYMENT_DIALOG_CLOSED","Your order was canceled and the item will be returned to your cart.")},r=[O,D,M],T[3]=M,T[4]=O,T[5]=D,T[6]=t,T[7]=r):(t=T[6],r=T[7]),(0,h.useEffect)(t,r),T[8]!==M||T[9]!==N||T[10]!==O||T[11]!==B||T[12]!==j||T[13]!==k?(g=()=>{if(j!==c.Ij.DELIVERY_FEE||!(0,m.O)(k)||!(0,m.O)(O)||!f.includes(O)||B)return;let e=new Date(k).getTime();if(Number.isNaN(e))return;let t=setTimeout(()=>{M("PAYMENT_WINDOW_EXPIRED","The payment window for your order expired. It was canceled and the item will be returned to your cart.")&&N()},Math.max(0,e-Date.now()));return()=>clearTimeout(t)},v=[O,j,k,B,M,N],T[8]=M,T[9]=N,T[10]=O,T[11]=B,T[12]=j,T[13]=k,T[14]=g,T[15]=v):(g=T[14],v=T[15]),(0,h.useEffect)(g,v)};function y(e){return e.wizardValues.paymentPurpose}function b(e){return e.wizardValues.reservationExpiresAt}function x(e){return e.isProcessingPayment}},3242:(e,t,r)=>{r.d(t,{I3:()=>s,a9:()=>h,fC:()=>c,fc:()=>d,rh:()=>A,sK:()=>u});var i,n,a,l,o,s=((i={}).MYTHIC="MYTHIC",i.LEGENDARY="LEGENDARY",i.EPIC="EPIC",i.RARE="RARE",i.UNCOMMON="UNCOMMON",i.COMMON="COMMON",i),c=((n={}).ACCESSORY="ACCESSORY",n.ANIME="ANIME",n.APPAREL="APPAREL",n.BOOK="BOOK",n.CAR="CAR",n.DIGITAL_ASSET="DIGITAL_ASSET",n.ELECTRONICS="ELECTRONICS",n.EVENT_TICKET="EVENT_TICKET",n.FOOD="FOOD",n.FOOTWEAR="FOOTWEAR",n.FURNITURE="FURNITURE",n.GADGET="GADGET",n.GAME="GAME",n.GIFT_CARD="GIFT_CARD",n.HOME_ACCESSORY="HOME_ACCESSORY",n.HOME_APPLIANCE="HOME_APPLIANCE",n.PERSONAL_CARE="PERSONAL_CARE",n.SNACK="SNACK",n.SPORT="SPORT",n.STATIONERY="STATIONERY",n.TOY="TOY",n.TRAVEL="TRAVEL",n.WATCH="WATCH",n);let d={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE",CLAIMED:"CLAIMED"};var u=((a={}).HIGH="HIGH",a.MEDIUM="MEDIUM",a.LOW="LOW",a.MAX="MAX",a.FIFTY_FIFTY="FIFTY_FIFTY",a),A=((l={}).AVAILABLE="AVAILABLE",l.REDEEMING="REDEEMING",l.REDEEMED="REDEEMED",l),h=((o={}).INITIATED="INITIATED",o.PENDING="PENDING",o.PROCESSING="PROCESSING",o.CONFIRMED="CONFIRMED",o.SHIPPED="SHIPPED",o.DELIVERED="DELIVERED",o.UNAVAILABLE="UNAVAILABLE",o.CANCELED="CANCELED",o.REJECTED="REJECTED",o.DELIVERY_FAILED="DELIVERY_FAILED",o)},4157:(e,t,r)=>{r.d(t,{F:()=>s});var i=r(27964),n=r(74359),a=r(60528),l=r(19368),o=r(7726);let s=e=>
1{let t,r,s,c=(0,i.c)(7);c[0]!==e?(t=void 0===e?{}:e,c[0]=e,c[1]=t):t=c[1];let{enabled:d}=t,u=void 0===d||d,A=(0,a.f)();return c[2]!==A?(r=async e=>{let{signal:t}=e,{data:r}=await A({url:l.s,signal:t});return r},c[2]=A,c[3]=r):r=c[3],c[4]!==u||c[5]!==r?(s={queryKey:o.o.get,enabled:u,queryFn:r},c[4]=u,c[5]=r,c[6]=s):s=c[6],(0,n.I)(s)}},4216:(e,t,r)=>{r.d(t,{a:()=>o});var i=r(45669),n=r(11492),a=r(4072);let l=[i.kX.BASIC,i.kX.SC],o=({promotions:e,isMysteryBoxesPage:t,requireAutomaticTrigger:r=!0})=>[...e.filter(e=>(0,a.O)(e.dialog)&&(!r||e.dialog.triggerType===i.IJ.AUTOMATIC)&&e?.packages?.length>0&&e?.packages.every(({experience:e})=>(({experience:e,isMysteryBoxesPage:t})=>t?e===i.kX.BT:l.includes(e))({experience:e,isMysteryBoxesPage:t})))].sort((e,t)=>{let r=e.type===i.f.WELCOME;return r!==(t.type===i.f.WELCOME)?r?-1:1:(e.expiresAt?(0,n.Ys)(e.expiresAt).valueOf():1/0)-(t.expiresAt?(0,n.Ys)(t.expiresAt).valueOf():1/0)})},4625:(e,t,r)=>{r.d(t,{z:()=>l});var i=r(73022),n=r(4319);let a={inGameWinningsMap:{}},l=(0,i.v)()((0,n.lt)((e,t)=>({...a,reset:()=>e(a,!1,"reset"),resetInGameWinnings:()=>e({inGameWinningsMap:{}},!1,"resetInGameWinnings"),incrementInGameWinnings:(r,i)=>{let n=t().inGameWinningsMap[r]??0;e({inGameWinningsMap:{...t().inGameWinningsMap,[r]:n+i}},!1,"incrementInGameWinnings")}}),{name:"FreePlayCampaignStore",enabled:!1}))},5898:(e,t,r)=>{r.d(t,{p:()=>i});let i={all:["bigWinners"],list:e=>[...i.all,"list",e]}},6384:(e,t,r)=>{r.d(t,{h:()=>n,i:()=>i});let i="/core-service/boxes-promotion",n=500},7535:(e,t,r)=>{r.d(t,{z:()=>s});var i=r(27964),n=r(74359),a=r(60528),l=r(93861),o=r(31258);let s=e=>{let t,r,s,c,d=(0,i.c)(8);d[0]!==e?(t=void 0===e?{}:e,d[0]=e,d[1]=t):t=d[1];let{enabled:u}=t,A=void 0===u||u,h=(0,a.f)();return d[2]===Symbol.for("react.memo_cache_sentinel")?(r=o._.wallet(),d[2]=r):r=d[2],d[3]!==h?(s=async e=>{let{signal:t}=e,{data:r}=await h({url:l.GB,signal:t});return r},d[3]=h,d[4]=s):s=d[4],d[5]!==A||d[6]!==s?(c={queryKey:r,queryFn:s,enabled:A},d[5]=A,d[6]=s,d[7]=c):c=d[7],(0,n.I)(c)}},7726:(e,t,r)=>{r.d(t,{o:()=>i});let i={get:["welcome-bonus"]}},9253:(e,t,r)=>{r.d(t,{V:()=>a});var i=r(11492),n=r(4072);let a=e=>(0,n.O)(e)&&!(0,i.o7)(e).isSame((0,i.o7)(),"day")},9588:(e,t,r)=>{r.d(t,{C:()=>P});var i=r(27964),n=r(67768),a=r(12268),l=r(89453),o=r(29358),s=r(48215),c=r(57765),d=r(33585),u=r(23824),A=r(75193),h=r(65910),p=r(48381),m=r(89308),E=r(69880),f=r(45669),g=r(97002),y=r(69713),b=r(60528),x=r(62530),v=r(98688),R=r(88849),w=r(14232),S=r(4072),I=r(31255);function C(e){let{experience:t}=e;return t!==f.kX.BT}var _=r(49576),T=r(97072),O=r(74593),D=r(47784),N=r(81477),L=r(53932);let P=()=>{let e,t,r,P,j=(0,i.c)(6),M=(0,n.jE)(),{handleRankUpNotificationMessage:W}=(()=>{let e,t=(0,i.c)(5),r=(0,n.jE)(),{handleGameDelayCallback:a}=(0,I.E)(),{pushDialog:l}=(0,y.C)(),o=(0,p.c)(m.hm);return t[0]!==o||t[1]!==a||t[2]!==l||t[3]!==r?(e={handleRankUpNotificationMessage:e=>{let t,{notification:i}=e;if(!("STEEL"!==(t=i.resource.vipRank)&&O.Y.includes(t)))return;r.invalidateQueries({queryKey:_.F.list(!0)}),r.invalidateQueries({queryKey:N.a.list()}),r.invalidateQueries({queryKey:L.n.list()});let n=()=>{l("rank-up-v2",{...i.resource,notificationId:i.id}),r.invalidateQueries({queryKey:D.y.status()}),r.invalidateQueries({queryKey:T.a.detail()}),r.invalidateQueries({queryKey:E.C.list()})};o?a({callback:n,notificationId:i.id}):n()}},t[0]=o,t[1]=a,t[2]=l,t[3]=r,t[4]=e):e=t[4],e})(),{handleVipMilestoneReachedNotificationMessage:U}=(()=>{let e,t=(0,i.c)(4),{handleGameDelayCallback:r}=(0,I.E)(),{pushDialog:n}=(0,y.C)(),a=(0,p.c)(m.hm);return t[0]!==a||t[1]!==r||t[2]!==n?(e={handleVipMilestoneReachedNotificationMessage:e=>{let{notification:t}=e,i=()=>{n("vip-milestone-reached-v2",{vipRank:t.resource.vipRank,rewardId:t.resource.rewardId,notificationId:t.id})};a?r({callback:i,notificationId:t.id}):i()}},t[0]=a,t[1]=r,t[2]=n,t[3]=e):e=t[3],e})(),{handleDiscountAssignedMessage:F}=(()=>{let e,t,r,a=(0,i.c)(11),l=(0,n.jE)(),{pushDialog:o}=(0,y.C)(),s=(0,b.f)(),{handleGameDelayCallback:c}=(0,I.E)(),d=(0,p.c)(m.hm),{isFeatureFlagEnabled:_}=(0,u.k)("CUSTOM_PROMOTION_MODAL"),T=(0,h.D)(),O=(0,w.useRef)(T),D=(0,A.jD)();return a[0]!==T?(e=()=>{O.current=T},t=[T],a[0]=T,a[1]=e,a[2]=t):(e=a[1],t=a[2]),(0,w.useEffect)(e,t),a[3]!==d||a[4]!==c||a[5]!==_||a[6]!==D||a[7]!==o||a[8]!==l||a[9]!==s?(r={handleDiscountAssignedMessage:async e=>{let{notification:t}=e,{discountId:r}=t.resource;if(!r||!_)return;let i=e=>{(0,R.f4)(v.o.getState())||((0,S.O)(e)?(0,A.mO)(e):D)||(0,g.m)({promotionId:r,entryPoint:"auto-pop-up",queryClient:l,sendRequest:s,pushDialog:o,validate:()=>!O.current})};try{await l.refetchQueries({queryKey:E.C.list()})}catch(e){(0,x.vV)({message:"Failed to refetch packages for discount assignment",exception:e,extra:{discountId:r}});return}let n=l.getQueryData(E.C.list()),a=n?.promotions.find(e=>e.id===r);!a?.packages?.length||a.dialog?.triggerType!==f.IJ.AUTOMATIC||a.packages.every(C)&&(d?c({callback:i,notificationId:r}):i())}},a[3]=d,a[4]=c,a[5]=_,a[6]=D,a[7]=o,a[8]=l,a[9]=s,a[10]=r):r=a[10],r})(),{handleChallengeUpdatedMessage:G}=(r=(0,i.c)(2),P=(0,n.jE)(),r[0]!==P?(t={handleChallengeUpdatedMessage:e=>{setTimeout(()=>{P.invalidateQueries({queryKey:s.V.list()}),P.invalidateQueries({queryKey:c.O.list()})},(0,d.R)({max:6e4}))}},r[0]=P,r[1]=t):t=r[1],t);return j[0]!==G||j[1]!==F||j[2]!==W||j[3]!==U||j[4]!==M?(e={handleNotificationMessage:e=>{let{notification:t}=e;M.setQueryData(a.q.list(),e=>{if(void 0===e)return e;let{pageParams:r,pages:i}=e;if(new Set(i.flatMap(k)).has(t.id))return;(0,o.YW)(t).with({type:"VIP_RANK_UP"},e=>{W({notification:e})}).with({type:"VIP_MILESTONE_REACHED"},e=>{U({notification:e})}).with({type:"GIVEAWAY_WINNER"},()=>{M.invalidateQueries({queryKey:l.A.list()})}).with({type:"REWARD_ASSIGNED"},()=>{M.invalidateQueries({queryKey:l.A.list()})}).with({type:"DISCOUNT_ASSIGNED"},e=>{F({notification:e})}).with({type:"CHALLENGE_ASSIGNED"},e=>{G({challengeId:e.resource.challengeId})}).otherwise(B);let n=i[0];return{pageParams:r,pages:[{...n,data:{...n?.data,notifications:[t,...n?.data.notifications??[]],newNotificationsCount:(n?.data.newNotificationsCount??0)+1}},...i.slice(1)]}})}},j[0]=G,j[1]=F,j[2]=W,j[3]=U,j[4]=M,j[5]=e):e=j[5],e};function j(e){let{id:t}=e;return t}function k(e){return e.data.notifications.map(j)}function B(){}},9697:(e,t,r)=>{r.d(t,{i:()=>tL});var i=r(37876),n=r(27964),a=r(30496),l=r(85370),o=r(98688),s=r(41001),c=r(89099),d=r(45415),u=r(4072),A=r(81293),h=r(30647),p=r(62268);let m=(0,p.Ay)(A.A)(({theme:e})=>({width:h.E[25],height:h.E[25],[e.breakpoints.down("sm")]:{marginRight:h.E[10]}})),E=()=>{let e,t,r,a=(0,n.c)(8),{push:A,pathname:h,back:p}=(0,c.useRouter)(),E=(0,o.o)(s.Xn);a[0]!==p||a[1]!==E||a[2]!==h||a[3]!==A?(e=()=>{(0,u.O)(E)?E():window.history.length>1?p():A((0,l.P)({pathname:h}).path)},a[0]=p,a[1]=E,a[2]=h,a[3]=A,a[4]=e):e=a[4];let f=e;return a[5]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(d.A,{}),a[5]=t):t=a[5],a[6]!==f?(r=(0,i.jsx)(m,{onClick:f,"aria-label":"Go back",size:"small",children:t}),a[6]=f,a[7]=r):r=a[7],r};var f=r(69950),g=r(91311),y=r(63382),b=r(75193),x=r(38935),v=r(72734),R=r(99555),w=r(82091),S=r(25083),I=r(19340),C=r(17982);let _={width:31,height:36},T={width:26,height:32},O={VIP_MILESTONE:{REACHED:C.l.PRIMARY.MAIN,REACHED_GLOW:`0 0 4px 0 ${C.l.PRIMARY.MAIN}`,REACHED_GLOW_FILTER:`drop-shadow(0 0 2px ${C.l.PRIMARY.MAIN})`},STAR_PROGRESS:{FILL:C.l.SECONDARY.MAIN,GLOW:`0 0 4px 0 ${C.l.SECONDARY.MAIN}, ${C.l.SHADOWS.DARK}`}};var D=r(79276),N=r(69469);
1let L=(0,p.Ay)("button")({display:"flex",flexDirection:"row",alignItems:"center",gap:h.E[10],cursor:"pointer",border:"none",background:"none",padding:0,font:"inherit",color:"inherit",textAlign:"left"}),P=(0,p.Ay)(D.B,{shouldForwardProp:e=>"side"!==e&&"isCompact"!==e&&(0,N.MC)(e)})(({isCompact:e})=>({position:"relative",width:84,gap:h.E[5],...e&&{width:"25vw",maxWidth:"84px"}}));var j=r(23824),k=r(90306),B=r(51855),M=r(38993),W=r(49769),U=r(98949),F=r(7835),G=r(11800);let V=(0,M.i7)`
2  0% {
3    transform: translateX(2px) translateY(-4px);
4    opacity: 0;
5  }
6  15% {
7    transform: translateX(2px) translateY(-4px);
8    opacity: 1;
9  }
10  70% {
11    transform: translateX(2px) translateY(-6px);
12    opacity: 1;
13  }
14  100% {
15    transform: translateX(2px) translateY(-8px);
16    opacity: 0;
17  }
18`,z={legacy:O.STAR_PROGRESS.FILL,default:C.l.STARS_PROGRESS_GRADIENT.DEFAULT,boosted:C.l.STARS_PROGRESS_GRADIENT.BOOSTED},Y=(0,p.Ay)(U.a)({position:"relative",width:"100%",height:5,borderRadius:h.E.BORDER_RADIUS[100],backgroundColor:`${C.l.NEUTRAL.WHITE}20`}),H=(0,p.Ay)(U.a,{shouldForwardProp:e=>"active"!==e&&"fillVariant"!==e})(({fillVariant:e})=>({position:"absolute",top:0,left:0,bottom:0,borderRadius:h.E.BORDER_RADIUS[100],background:z[e],boxShadow:O.STAR_PROGRESS.GLOW})),K=(0,p.Ay)(F.A)({position:"absolute",top:0,left:"100%",color:O.STAR_PROGRESS.FILL,fontWeight:G.p.WEIGHTS[700],fontSize:G.p.SIZE[10],textShadow:`0 0 5px ${O.STAR_PROGRESS.FILL}`,whiteSpace:"nowrap",pointerEvents:"none",zIndex:W.M.progressAnimationDelta,animation:`${V} 750ms ease-out forwards`}),Q=e=>{let t,r,a,l,o,s,c=(0,n.c)(20),{progressPercentage:d,active:u,animationPhase:A,starDelta:h,isBoosted:p}=e,m=void 0!==p&&p,{isFeatureFlagEnabled:E}=(0,j.k)("STARS_REWARDS_SECTION_V2"),f="phase2"===A,g=Math.min(Math.max(d,0),100),y=(0,B.Z)(g,0)??0,b=Math.abs(g-y)/100*k.RC,x=u?1:.5;if(c[0]!==x?(t={opacity:x},c[0]=x,c[1]=t):t=c[1],c[2]!==m||c[3]!==E)r=E?m?"boosted":"default":"legacy",c[2]=m,c[3]=E,c[4]=r;else r=c[4];let v=`${g}%`,R="idle"!==A?"background-color 0.2s ease-out":`width ${b}ms ease-out, background-color 0.2s ease-out`;return c[5]!==v||c[6]!==R?(a={width:v,transition:R},c[5]=v,c[6]=R,c[7]=a):a=c[7],c[8]!==u||c[9]!==r||c[10]!==a?(l=(0,i.jsx)(H,{"data-testid":"star-progress-fill",active:u,fillVariant:r,style:a}),c[8]=u,c[9]=r,c[10]=a,c[11]=l):l=c[11],c[12]!==f||c[13]!==h?(o=f&&h&&(0,i.jsxs)(K,{children:["+",h]}),c[12]=f,c[13]=h,c[14]=o):o=c[14],c[15]!==u||c[16]!==t||c[17]!==l||c[18]!==o?(s=(0,i.jsxs)(Y,{"data-testid":"star-progress-track","data-active":u,sx:t,children:[l,o]}),c[15]=u,c[16]=t,c[17]=l,c[18]=o,c[19]=s):s=c[19],s};var $=r(14232),q=r(5135),X=r(27843);let Z=(0,M.i7)`
19  0% {
20    transform: translateX(2px) translateY(-4px);
21    opacity: 0;
22  }
23  15% {
24    transform: translateX(2px) translateY(-4px);
25    opacity: 1;
26  }
27  70% {
28    transform: translateX(2px) translateY(-6px);
29    opacity: 1;
30  }
31  100% {
32    transform: translateX(2px) translateY(-8px);
33    opacity: 0;
34  }
35`,J=(0,p.Ay)(U.a)({position:"relative",display:"flex",width:"100%",gap:h.E[5]}),ee=(0,p.Ay)(U.a)({position:"relative",height:5,borderRadius:h.E.BORDER_RADIUS[100],backgroundColor:`${C.l.NEUTRAL.WHITE}20`}),et=(0,p.Ay)(U.a,{shouldForwardProp:e=>"hasGlow"!==e})(({hasGlow:e})=>({position:"absolute",top:0,left:0,bottom:0,borderRadius:h.E.BORDER_RADIUS[100],backgroundColor:O.VIP_MILESTONE.REACHED,boxShadow:e?O.VIP_MILESTONE.REACHED_GLOW:"none",transition:"width 0.3s ease-out, box-shadow 0.2s ease-out"})),er=(0,p.Ay)(U.a)({position:"absolute",inset:0,overflow:"hidden",borderRadius:h.E.BORDER_RADIUS[100],filter:"none",transition:"filter 0.2s ease-out"}),ei=(0,p.Ay)(U.a)({position:"absolute",inset:0,borderRadius:h.E.BORDER_RADIUS[100],backgroundColor:O.VIP_MILESTONE.REACHED,willChange:"transform"}),en=(0,p.Ay)(F.A)({position:"absolute",top:0,left:"100%",color:O.VIP_MILESTONE.REACHED,fontWeight:G.p.WEIGHTS[700],fontSize:G.p.SIZE[10],textShadow:`0 0 5px ${O.VIP_MILESTONE.REACHED}`,whiteSpace:"nowrap",pointerEvents:"none",zIndex:W.M.progressAnimationDelta,animation:`${Z} 750ms ease-out forwards`}),ea=(e,{start:t,end:r})=>Math.min(Math.max((e-t)/(r-t)*100,0),100),el=e=>{let t,r,a,l,o,s,c,d,A,h,p,m,E,f=(0,n.c)(32),{userVipRank:g}=e,y=g.vipPoints,b=(0,B.Z)(y),[x,v]=(0,$.useState)(null),R=(0,$.useRef)(0);f[0]!==g.milestonePercentages?(t=(e=>{let{segments:t}=[...new Set([...e??[],100])].sort((e,t)=>
35e-t).reduce((e,t)=>t>e.previous?{previous:t,segments:[...e.segments,{start:e.previous,end:t}]}:e,{previous:0,segments:[]});return t})(g.milestonePercentages),f[0]=g.milestonePercentages,f[1]=t):t=f[1];let w=t,S=null===g.projectedVipRank.next,I=S?100:g.currentRankProgress,{isFeatureFlagEnabled:C}=(0,j.k)("LOYALTY_PROGRESS_BAR_ANIMATION");f[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],f[2]=r):r=f[2];let _=(0,$.useRef)(r);f[3]===Symbol.for("react.memo_cache_sentinel")?(a=[],f[3]=a):a=f[3];let T=(0,$.useRef)(a);f[4]!==w?(l=e=>{w.forEach((t,r)=>{let i=ea(e,t),n=`translateX(${i-100}%)`,a=_.current[r],l=T.current[r];a&&(a.style.transform=n),l&&(l.style.filter=i>0?O.VIP_MILESTONE.REACHED_GLOW_FILTER:"none")})},f[4]=w,f[5]=l):l=f[5];let D=l;f[6]!==C||f[7]!==I||f[8]!==D||f[9]!==g.projectedVipRank.current.level?(o={target:I,resetKey:g.projectedVipRank.current.level,isEnabled:C,onFrame:D},f[6]=C,f[7]=I,f[8]=D,f[9]=g.projectedVipRank.current.level,f[10]=o):o=f[10];let N=(e=>{let t,r,i,a,l=(0,n.c)(9),{target:o,resetKey:s,isEnabled:c,onFrame:d}=e,u=(0,$.useRef)(o),A=(0,$.useRef)(s),h=(0,$.useRef)(c),p=(0,$.useRef)(d),m=(0,q.I)();return l[0]!==d?(t=()=>{p.current=d},r=[d],l[0]=d,l[1]=t,l[2]=r):(t=l[1],r=l[2]),(0,$.useLayoutEffect)(t,r),l[3]!==c||l[4]!==s||l[5]!==m||l[6]!==o?(i=()=>{let e=A.current!==s,t=h.current;if(A.current=s,h.current=c,!c){u.current=o;return}let r=e=>{u.current=e,p.current(e)};if(!t||e||m||o<=u.current)return void r(o);let i=(0,X.i)(u.current,o,{duration:2,ease:"linear",onUpdate:r});return()=>i.stop()},a=[o,s,c,m],l[3]=c,l[4]=s,l[5]=m,l[6]=o,l[7]=i,l[8]=a):(i=l[7],a=l[8]),(0,$.useLayoutEffect)(i,a),u})(o);return f[11]!==N||f[12]!==C||f[13]!==D?(s=()=>{C&&D(N.current)},f[11]=N,f[12]=C,f[13]=D,f[14]=s):s=f[14],(0,$.useLayoutEffect)(s),f[15]!==S||f[16
35]!==b||f[17]!==y?(c=()=>{if(!(0,u.O)(b)||S)return;let e=y-b;e<=0||v({id:R.current=R.current+1,amount:e})},d=[y,b,S],f[15]=S,f[16]=b,f[17]=y,f[18]=c,f[19]=d):(c=f[18],d=f[19]),(0,$.useEffect)(c,d),f[20]!==x?(h=()=>{if(!(0,u.O)(x))return;let{id:e}=x,t=setTimeout(()=>{v(t=>t?.id===e?null:t)},750);return()=>clearTimeout(t)},A=[x],f[20]=x,f[21]=A,f[22]=h):(A=f[21],h=f[22]),(0,$.useEffect)(h,A),f[23]!==C||f[24]!==I||f[25]!==w?(p=w.map((e,t)=>{let{start:r,end:n}=e,a=ea(I,e);return(0,i.jsx)(ee,{"data-testid":"vip-milestone-segment","data-reached":a>=100,"data-start":r,"data-end":n,style:{flex:`${n-r} 0 0%`},children:C?(0,i.jsx)(er,{ref:e=>{T.current[t]=e},children:(0,i.jsx)(ei,{"data-testid":"vip-milestone-smooth-fill",ref:e=>{_.current[t]=e}})}):(0,i.jsx)(et,{hasGlow:a>0,style:{width:`${a}%`}})},`${r}-${n}`)}),f[23]=C,f[24]=I,f[25]=w,f[26]=p):p=f[26],f[27]!==x?(m=(0,u.O)(x)&&(0,i.jsxs)(en,{children:["+",x?.amount]},x?.id),f[27]=x,f[28]=m):m=f[28],f[29]!==p||f[30]!==m?(E=(0,i.jsxs)(J,{children:[p,m]}),f[29]=p,f[30]=m,f[31]=E):E=f[31],E},eo=()=>{let e,t,r,l,o,s,d,A=(0,n.c)(24),{data:h,isLoading:p}=(0,S.e)(),{selectedCurrency:m}=(0,v.e)(),{playProgress:E,animationPhase:f,starDelta:g,boosterPhase:C}=(0,R.n)(),{pushDialog:O}=(0,I.A)(),{asPath:D}=(0,c.useRouter)(),N=(0,a.Y)(),j=(0,b.jD)(),k=N?T:_;if(p||!(0,u.O)(h))return null;let B="GC"===m&&!j,M=Math.min(100*E,100);A[0]!==D||A[1]!==O?(e=()=>{if((0,x.JA)({location:D})?.tab!=="REWARDS")return void O("loyalty-rewards");let e=document.getElementById(y.e);e&&e.scrollTop>0&&window.dispatchEvent(new Event("scrollToTop"))},A[0]=D,A[1]=O,A[2]=e):e=A[2];let W=e;return A[3]!==k||A[4]!==h.vipRank.current.level?(t=(0,i.jsx)(w.J,{level:h.vipRank.current.level,size:k}),A[3]=k,A[4]=h.vipRank.current.level,A[5]=t):t=A[5],A[6]!==h?(r=(0,i.jsx)(el,{userVipRank:h}),A[6]=h,A[7]=r):r=A[7],A[8]!==C?(l=(0,u.O)(C),A[8]=C,A[9]=l):l=A[9],A[10]!==f||A[11]!==B||A[12]!==g||A[13]!==M||A[14]!==l?(o=(0,i.jsx)(Q,{progressPercentage:M,active:B,animationPhase:f,starDelta:g,isBoosted:l}),A[10]=f,A[11]=B,A[12]=g,A[13]=M,A[14]=l,A[15]=o):o=A[15],A[16]!==N||A[17]!==r||A[18]!==o?(s=(0,i.jsxs)(P,{isCompact:N,children:[r,o]}),A[16]=N,A[17]=r,A[18]=o,A[19]=s):s=A[19],A[20]!==W||A[21]!==t||A[22]!==s?(d=(0,i.jsxs)(L,{type:"button","data-testid":"loyalty-widget","aria-label":"View rewards",onClick:W,children:[t,s]}),A[20]=W,A[21]=t,A[22]=s,A[23]=d):d=A[23],d};var es=r(75885),ec=r(22556),ed=r(81361);let eu={button:40,icon:20},eA={button:32,icon:16},eh=e=>{let t,r,a,l=(0,n.c)(10),{size:o,compact:s}=e,c=void 0===o?"large":o,d=(0,ec.y)(),{button:u,icon:A}="medium"===c?eA:eu;return l[0]!==A?(t=(0,i.jsx)(ed.ze,{width:A,height:A}),l[0]=A,l[1]=t):t=l[1],l[2]!==u?(r={padding:0,width:u,height:u},l[2]=u,l[3]=r):r=l[3],l[4]!==s||l[5]!==c||l[6]!==t||l[7]!==r||l[8]!==d?(a=(0,i.jsx)(es.t,{walletType:d,icon:t,color:"grey",size:c,compact:s,iconButtonSx:r}),l[4]=s,l[5]=c,l[6]=t,l[7]=r,l[8]=d,l[9]=a):a=l[9],a};var ep=r(96636),em=r(76271),eE=r(18851),ef=r(29358),eg=r(23744);let ey=e=>{let t,r,a,l=(0,n.c)(4);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("path",{d:"M14.1783 6.67312C14.6322 6.67312 15 7.04092 15 7.49486C15 7.94881 14.6322 8.3166 14.1783 8.3166H0.821739C0.367794 8.3166 0 7.94881 0 7.49486C0 7.04092 0.367794 6.67312 0.821739 6.67312H14.1783Z",fill:"white"}),r=(0,i.jsx)("path",{d:"M8.32687 14.1783C8.32687 14.6322 7.95908 15 7.50514 15C7.05119 15 6.6834 14.6322 6.6834 14.1783L6.6834 0.821739C6.6834 0.367794 7.05119 -1.98426e-08 7.50514 0C7.95908 1.98426e-08 8.32688 0.367794 8.32688 0.821739L8.32687 14.1783Z",fill:"white"}),l[0]=t,l[1]=r):(t=l[0],r=l[1]),l[2]!==e?(a=(0,i.jsxs)(eg.B,{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 0 15 15",fill:"none",children:[t,r]}),l[2]=e,l[3]=a):a=l[3],a};var eb=r(20428),ex=r(44309),ev=r(3241),eR=r(27527),ew=r(59250),eS=r(16427),eI=r(42291);let eC={type:"spring",stiffness:500,damping:40},e_="--pill-width",eT={[eE.V.GC]:"Add Gold Coins",[eE.V.SC]:"Add Sweepstakes Coins",[eE.V.MC]:"Add Cash Coins",[eE.V.BT]:"Add Box Tickets"},eO=(0,p.Ay)(U.a,{shouldForwardProp:eI.A})(({isCompact:e})=>({height:e?32:40,width:`var(${e_})`,transition:"width 0.3s ease-in-out"})),eD=(0,p.Ay)(eS.$,{shouldForwardProp:eI.A})(({isCompact:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",ga
35p:10,overflow:"hidden",height:e?32:40,width:"100%",minWidth:0,padding:e?h.E[8]:`${h.E[5]} ${h.E[10]}`,borderRadius:h.E.BORDER_RADIUS[40],background:`${C.l.NEUTRAL.WHITE}20`,border:"none",outline:"none",boxShadow:"none","&:focus-visible":{boxShadow:`0 0 0 2px ${C.l.NEUTRAL.WHITE}20`},"&:hover":{boxShadow:"none"},"&&.Mui-disabled:not(.MuiButton-loading)":{opacity:.5,cursor:"not-allowed",background:`${C.l.NEUTRAL.WHITE}20`}})),eN=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",flex:"1 1 auto",minWidth:0,overflow:"hidden"}),eL=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",gap:h.E[5],flexShrink:0,width:"max-content"}),eP=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}),ej=(0,p.Ay)(ew.P.span,{shouldForwardProp:eI.A})(({isCompact:e,theme:t})=>({display:"inline-block",minWidth:0,maxWidth:"100%",overflow:"hidden",...e?t.typography.caption:t.typography.body1,color:C.l.NEUTRAL.WHITE,textAlign:"right",whiteSpace:"nowrap"})),ek=(0,p.Ay)(U.a,{shouldForwardProp:eI.A})(({isCompact:e,theme:t})=>({display:"inline-block",...e?t.typography.caption:t.typography.body1,color:C.l.NEUTRAL.WHITE,whiteSpace:"nowrap"})),eB=(0,p.Ay)(D.B,{shouldForwardProp:eI.A})(({isCompact:e,background:t})=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:e?20:"30px",height:e?20:"30px",border:"0.5px solid transparent",background:t,color:C.l.NEUTRAL.WHITE,borderRadius:h.E.BORDER_RADIUS["50%"],backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box"}));var eM=r(87822),eW=r(21730);let eU=Object.values(ep.Tu).flatMap(e=>e.flatMap(({id:e,paths:t})=>"STORE"===e?t:[])),eF=e=>{let t,r,l,o,s,d,u,A,h,p,m,E,f,g,y,b,x,v=(0,n.c)(44),{coinType:R,balance:w,onAddFunds:S,isInPlay:I,isLoadingWallet:_}=e,T=void 0!==I&&I,{pathname:O}=(0,c.useRouter)();v[0]!==O?(t=eU.some(e=>e===O),v[0]=O,v[1]=t):t=v[1];let N=t,{isPending:L}=(0,em.G7)(),P=(0,a.Y)(),{anchorRef:j,contentRef:k}=(y=(0,n.c)(4),b=(0,$.useRef)(null),x=(0,$.useRef)(null),y[0]!==P?(E=()=>{let e=b.current,t=x.current;if(!e||!t)return;let r=0,i=(P?8:15)*2,n=()=>{let r=t.offsetWidth+i+20+10;e.style.setProperty(e_,`${r}px`)},a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=requestAnimationFrame(n)});return a.observe(t),n(),()=>{cancelAnimationFrame(r),a.disconnect()}},f=[P],y[0]=P,y[1]=E,y[2]=f):(E=y[1],f=y[2]),(0,$.useLayoutEffect)(E,f),y[3]===Symbol.for("react.memo_cache_sentinel")?(g={anchorRef:b,contentRef:x},y[3]=g):g=y[3],g),B=((e,t)=>{let r,i,a,l,o=(0,n.c)(7),s=(0,$.useRef)(null),c=(0,$.useRef)(null),[d,u]=(0,$.useState)(!1);o[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{s.current=e,e||(c.current=null),u(t=>{let r=null!==e;return t===r?t:r})},o[0]=r):r=o[0];let A=r;return o[1]!==e||o[2]!==t||o[3]!==d?(i=()=>{let r=s.current;if(!d||!r)return;let i=(0,X.i)(0,e,{duration:.3,ease:"easeOut",onUpdate:e=>{let r=(0,ef.YW)(t).with("SC",()=>(0,eW.u)({amount:e,decimalCount:2,trailingZeroes:!1})).with("MC",()=>(0,eM.o)({amount:e})).otherwise(()=>(0,eW.u)({amount:e,decimalCount:0,maxCharacters:9}));c.current=r,s.current&&(s.current.textContent=r)}});return()=>i.stop()},a=[e,t,d],o[1]=e,o[2]=t,o[3]=d,o[4]=i,o[5]=a):(i=o[4],a=o[5]),(0,$.useEffect)(i,a),o[6]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{s.current&&null!==c.current&&(s.current.textContent=c.current)},o[6]=l):l=o[6],(0,$.useLayoutEffect)(l),A})(w,R),M=P?14:20,W=L||void 0!==_&&_,U=eT[R];if(v[2]!==R||v[3]!==M){let e,t;v[5]!==M?(e=()=>(0,i.jsx)(ex.B,{width:M,height:M}),v[5]=M,v[6]=e):e=v[6],v[7]!==M?(t=()=>(0,i.jsx)(ev.r,{width:M,height:M}),v[7]=M,v[8]=t):t=v[8],r=(0,ef.YW)(R).with(eE.V.GC,e).with(eE.V.SC,t).with(eE.V.BT,eG).with(eE.V.MC,eV).exhaustive(),v[2]=R,v[3]=M,v[4]=r}else r=v[4];if(v[9]!==r?(l=(0,i.jsx)(eP,{children:r}),v[9]=r,v[10]=l):l=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(o={transition:"width 0.3s ease-in-out"},v[11]=o):o=v[11],v[12]!==B||v[13]!==P||v[14]!==W||v[15]!==T){let e;v[17]!==P?(e=()=>(0,i.jsx)(ek,{isCompact:P,"data-testid":"coin-balance-pill-in-play",children:"(In-Play)"}),v[17]=P,v[18]=e):e=v[18],s=(0,ef.YW)({isCurrencyLoading:W,isInPlay:T}).with({isInPlay:!0},e).with({isCurrencyLoading:!0},ez).otherwise(()=>(0,i.jsx)(ej,{isCompact:P,ref:B,layout:"size",transition:eC})),v[12]=B,v[13]=P,v[14]=W,v[15]=T,v[16]=s}else s=v[16];v[19]!==s?(d=(0,i.jsx)(D.B,{sx:o,children:s}),v[19]=s,v[20]=d):d=v[20],v[21]!==k||v[22]!==l||v[23]!==d?(u=(0,i.jsx)(eN,{
35children:(0,i.jsxs)(eL,{ref:k,children:[l,d]})}),v[21]=k,v[22]=l,v[23]=d,v[24]=u):u=v[24];let F=C.l.CURRENCY_BALANCE_PILL_ADD_BUTTON_GRADIENT[R],G=eT[R],V=P?11:15,z=P?11:15;return v[25]!==V||v[26]!==z?(A=(0,i.jsx)(ey,{width:V,height:z}),v[25]=V,v[26]=z,v[27]=A):A=v[27],v[28]!==P||v[29]!==F||v[30]!==G||v[31]!==A?(h=(0,i.jsx)(eB,{isCompact:P,background:F,"aria-label":G,children:A}),v[28]=P,v[29]=F,v[30]=G,v[31]=A,v[32]=h):h=v[32],v[33]!==P||v[34]!==N||v[35]!==S||v[36]!==u||v[37]!==h||v[38]!==U?(p=(0,i.jsxs)(eD,{disableElevation:!0,disableRipple:!0,"aria-label":U,"data-testid":"coin-balance-pill",onClick:S,isCompact:P,disabled:N,children:[u,h]}),v[33]=P,v[34]=N,v[35]=S,v[36]=u,v[37]=h,v[38]=U,v[39]=p):p=v[39],v[40]!==j||v[41]!==P||v[42]!==p?(m=(0,i.jsx)(eO,{ref:j,isCompact:P,children:p}),v[40]=j,v[41]=P,v[42]=p,v[43]=m):m=v[43],m};function eG(){return(0,i.jsx)(eb.t,{type:"flat",width:20,height:11})}function eV(){return null}function ez(){return(0,i.jsx)(D.B,{sx:{width:"30px"},children:(0,i.jsx)(eR.E,{variant:"rounded",width:"100%",height:"12px"})})}var eY=r(67814),eH=r(92776);let eK={[eE.h.SC]:eE.h.GC,[eE.h.GC]:eE.h.SC},eQ={[eE.h.SC]:"Sweepstake Coins",[eE.h.GC]:"Gold Coins"},e$="background-color 0.22s ease-out, transform 0.22s cubic-bezier(0.22, 0, 0.22, 1)",eq=(0,p.Ay)("button",{shouldForwardProp:eI.A})(({value:e,isSCMode:t})=>({position:"relative",display:"inline-flex",alignItems:"center",width:49,height:20,padding:0,border:"none",borderRadius:10,cursor:"pointer",outline:"none",backgroundColor:(0,ef.YW)(e).with(eE.h.SC,()=>C.l.WALLETS.SC.DARK).with(eE.h.GC,()=>C.l.WALLETS.GC.DARK).exhaustive(),transition:e$,"&:disabled":{cursor:"not-allowed",opacity:.5,pointerEvents:"none"},"&:focus-visible":{boxShadow:`0 0 0 2px ${C.l.NEUTRAL.WHITE}`},...t?{marginRight:h.E[5]}:{marginLeft:h.E[5]}})),eX=(0,p.Ay)(U.a,{shouldForwardProp:eI.A})(({value:e})=>({position:"absolute",top:-6,left:-6,width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",transform:(0,ef.YW)(e).with(eE.h.SC,()=>"translateX(29px)").with(eE.h.GC,()=>"translateX(0px)").exhaustive(),transition:e$}));var eZ=r(10622),eJ=r(27264);function e0(e){return!e}let e1=e=>{let t,r,a,l,o,s,c=(0,n.c)(28),{value:d,onChange:u,disabled:A}=e,h=void 0!==A&&A,{isFeatureFlagEnabled:p}=(0,j.k)("LOBBY_HAPTIC"),m=d===eE.h.SC,{isTooltipOpen:E,handleTooltipOpen:f,handleTooltipClose:g,handleSwitchTap:y,scWallet:b}=(e=>{let t,r,i,a,l=(0,n.c)(11),[o,s]=(0,$.useState)(!1),{isMobile:c}=(0,eJ.G)(),{scWallet:d}=(0,eZ.S)();l[0]!==c?(t=()=>{c||s(!0)},l[0]=c,l[1]=t):t=l[1];let u=t;l[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>s(!1),l[2]=r):r=l[2];let A=r;l[3]!==e||l[4]!==c?(i=()=>{e&&c&&s(e0)},l[3]=e,l[4]=c,l[5]=i):i=l[5];let h=i;return l[6]!==h||l[7]!==u||l[8]!==o||l[9]!==d?(a={isTooltipOpen:o,handleTooltipOpen:u,handleTooltipClose:A,handleSwitchTap:h,scWallet:d},l[6]=h,l[7]=u,l[8]=o,l[9]=d,l[10]=a):a=l[10],a})(h),x=d===eE.h.GC,v=eQ[d];c[0]!==u||c[1]!==d?(t=()=>u(eK[d]),c[0]=u,c[1]=d,c[2]=t):t=c[2],c[3]!==d?(r=(0,ef.YW)(d).with(eE.h.SC,e2).with(eE.h.GC,e3).exhaustive(),c[3]=d,c[4]=r):r=c[4],c[5]!==r||c[6]!==d?(a=(0,i.jsx)(eX,{value:d,children:r}),c[5]=r,c[6]=d,c[7]=a):a=c[7],c[8]!==h||c[9]!==m||c[10]!==x||c[11]!==v||c[12]!==t||c[13]!==a||c[14]!==d?(l=(0,i.jsx)(eq,{type:"button",role:"switch","aria-checked":x,"aria-label":v,disabled:h,value:d,"data-testid":"coin-toggle-switch",onClick:t,isSCMode:m,children:a}),c[8]=h,c[9]=m,c[10]=x,c[11]=v,c[12]=t,c[13]=a,c[14]=d,c[15]=l):l=c[15];let R=l;c[16]!==h||c[17]!==y||c[18]!==g||c[19]!==f||c[20]!==E||c[21]!==b?.balance||c[22]!==b?.redeemable||c[23]!==R?(o=h?(0,i.jsx)(eY.u,{open:E,onOpen:f,onClose:g,balance:b?.balance,redeemable:b?.redeemable,children:(0,i.jsx)(U.a,{component:"span","data-testid":"coin-toggle-switch-tap-area",onClick:y,sx:{display:"inline-flex"},children:R})}):R,c[16]=h,c[17]=y,c[18]=g,c[19]=f,c[20]=E,c[21]=b?.balance,c[22]=b?.redeemable,c[23]=R,c[24]=o):o=c[24];let w=o;return p?(c[25]!==h||c[26]!==w?(s=(0,i.jsx)(eH.q,{isDisabled:h,hapticPreset:"selection",children:w}),c[25]=h,c[26]=w,c[27]=s):s=c[27],s):w};function e2(){return(0,i.jsx)(ev.r,{width:32,height:32})}function e3(){return(0,i.jsx)(ex.B,{width:32,height:32})}let e4=(0,p.Ay)("header",{shouldForwardProp:eI.A})(({hasBackTitle:e})=>({position:"sticky",top:0,zIndex:W.M.appBar,flexShrink:0,width:"100%",backgroundColor:e?C.l.NEUTRAL.BACKGROUND:C.l.NEUTRAL.EXTRA_DARK,...e&&{marginBottom:h.E[10]}})),e5=(0,p.Ay)("div")({height:1,marginBottom:-1,pointerEvents:"none",visibility:"hidden"}),e6=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",flexShrink:0,gap:h.E[12],minWidth:0}),e7=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",flexShrink:0,gap:h.E[12]}),e8=(0,p.Ay)(F.A)({position:"absolute",left:0,right:0,paddingInline:h.E[35],textAlign:"center",pointerEvents:"none",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var e9=r(43599);let te=`background-color ${e9.os}s ease-in-out`,tt=(0,p.Ay)(U.a,{shouldForwardProp:eI.A})(({hasBackTitle:e,hasRoundedTop:t})=>({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"space-between",gap:h.E[8],width:"100%",minHeight:56,borderTopLeftRadius:t?h.E.BORDER_RADIUS[20]:0,borderTopRightRadius:t?h.E.BORDER_RADIUS[20]:0,transition:"border-top-left-radius var(--transition-default) var(--modo-cubic-bezier), border-top-right-radius var(--transition-default) var(--modo-cubic-bezier)",backgroundColor:e?C.l.NEUTRAL.BACKGROUND:C.l.NEUTRAL.EXTRA_DARK})),tr=(0,p.Ay)("div")({position:"absolute",top:-36,left:0,right:0,height:72,borderRadius:"50%",filter:"blur(28px)",opacity:.3,pointerEvents:"none",transition:te,transform:"translateZ(0)",willChange:"transform"}),ti=(0,p.Ay)("div")({position:"absolute",top:0,left:0,right:0,height:1,pointerEvents:"none",opacity:.4,maskImage:"linear-gradient(90deg, transparent, #000, transparent)",WebkitMaskImage:"linear-gradient(90deg, transparent, #000, transparent)",transition:te}),tn=(0,p.Ay)(U.a)({position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:h.E[15],width:"100%",minWidth:0,paddingInline:h.E[15],paddingBlock:h.E[12],minHeight:40,overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}),ta=e=>{let t,r,a,l=(0,n.c)(12),{glowColor:o,testId:s,glowTestId:c,children:d,hideGlow:u,hasBackTitle:A,hasRoundedTop:h}=e,p=void 0!==h&&h;return l[0]!==o||l[1]!==c||l[2]!==u?(t=!u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tr,{"data-testid":c,style:{backgroundColor:o}}),(0,i.jsx)(ti,{style:{backgroundColor:o}})]}),l[0]=o,l[1]=c,l[2]=u,l[3]=t):t=l[3],l[4]!==d?(r=(0,i.jsx)(tn,{children:d}
35),l[4]=d,l[5]=r):r=l[5],l[6]!==A||l[7]!==p||l[8]!==t||l[9]!==r||l[10]!==s?(a=(0,i.jsxs)(tt,{"data-testid":s,hasBackTitle:A,hasRoundedTop:p,children:[t,r]}),l[6]=A,l[7]=p,l[8]=t,l[9]=r,l[10]=s,l[11]=a):a=l[11],a},tl=({verticalPath:e,currency:t})=>{let r=(0,u.O)(e)?e9.H4[e]:void 0;return r?.[t]??e9.ZG?.[t]??C.l.WALLETS.GC.MAIN};var to=r(94088),ts=r(21926);let tc=()=>{let e,t,r,i,a,o,s,d,u=(0,n.c)(42),{pathname:A}=(0,c.useRouter)(),{selectedCurrency:h,setSelectedCurrency:p,isScAllowed:m}=(0,v.e)(),[E,f]=(0,$.useState)(h),[g,y]=(0,$.useState)(h),{gcWallet:b,scWallet:x,btWallet:R,mcWallet:w,isFetching:S,isLoading:C}=(0,eZ.S)(),{pushDialog:_}=(0,I.A)(),{startModoCashDepositPayment:T}=(0,to.m)(),{markPending:O}=(0,em.G7)(),D=(0,$.useRef)(null),N=(0,$.useRef)(!1),L=(0,ec.y)(),P=L===eE.V.BT||L===eE.V.MC;h!==g&&(y(h),f(h)),u[0]!==E||u[1]!==A?(e=tl({verticalPath:(0,l.P)({pathname:A}).path,currency:E}),u[0]=E,u[1]=A,u[2]=e):e=u[2];let j=e;u[3]!==E||u[4]!==L?(t=(0,ef.YW)({walletType:L,displayedCurrency:E}).with({walletType:eE.V.BT},td).with({walletType:eE.V.MC},tu).with({displayedCurrency:eE.h.SC},tA).otherwise(th),u[3]=E,u[4]=L,u[5]=t):t=u[5];let k=t;if(u[6]!==R||u[7]!==E||u[8]!==b||u[9]!==w||u[10]!==x||u[11]!==L){let e,t,i,n;u[13]!==R?(e=()=>R,u[13]=R,u[14]=e):e=u[14],u[15]!==w?(t=()=>w,u[15]=w,u[16]=t):t=u[16],u[17]!==x?(i=()=>x,u[17]=x,u[18]=i):i=u[18],u[19]!==b?(n=()=>b,u[19]=b,u[20]=n):n=u[20],r=(0,ef.YW)({walletType:L,displayedCurrency:E}).with({walletType:eE.V.BT},e).with({walletType:eE.V.MC},t).with({displayedCurrency:eE.h.SC},i).otherwise(n),u[6]=R,u[7]=E,u[8]=b,u[9]=w,u[10]=x,u[11]=L,u[12]=r}else r=u[12];let B=r,M=B?.balance??0;u[21]===Symbol.for("react.memo_cache_sentinel")?(i=()=>()=>{D.current?.(),D.current=null},a=[],u[21]=i,u[22]=a):(i=u[21],a=u[22]),(0,$.useEffect)(i,a),u[23]!==E||u[24]!==m||u[25]!==O||u[26]!==p?(o=e=>{N.current||e===E||(e!==eE.h.SC||m)&&(N.current=!0,f(e),O(e),queueMicrotask(()=>{N.current=!1}),D.current?.(),D.current=(0,ts.f)(()=>{D.current=null,p(e)}))},u[23]=E,u[24]=m,u[25]=O,u[26]=p,u[27]=o):o=u[27];let W=o;u[28]!==k||u[29]!==_||u[30]!==T?(s=()=>{(0,ef.YW)(k).with(eE.V.BT,()=>_("box-ticket-store")).with(eE.V.MC,()=>T()).otherwise(()=>_("select-package"))},u[28]=k,u[29]=_,u[30]=T,u[31]=s):s=u[31];let U=s,F=S||C;return u[32]!==M||u[33]!==k||u[34]!==E||u[35]!==j||u[36]!==U||u[37]!==W||u[38]!==m||u[39]!==P||u[40]!==F?(d={glowColor:j,selectedCurrency:E,isScAllowed:m,isSingleCurrencyMode:P,coinType:k,balance:M,handleCurrencySwitch:W,handleAddFunds:U,isLoadingWallet:F},u[32]=M,u[33]=k,u[34]=E,u[35]=j,u[36]=U,u[37]=W,u[38]=m,u[39]=P,u[40]=F,u[41]=d):d=u[41],d};function td(){return eE.V.BT}function tu(){return eE.V.MC}function tA(){return eE.V.SC}function th(){return eE.V.GC}var tp=r(46941),tm=r(82817);let tE=()=>{let e,t,r,a,l,o,s,c,d=(0,n.c)(35),u=(0,g.N)(),{isVisible:A,title:h}=(0,tp.N)(),{hasRoundedTop:p,pinSentinelRef:m,shouldAttachPinSentinel:b}=(()=>{let e,t,r=(0,n.c)(4),i=(0,tm.N)(),[a,l]=(0,$.useState)(!1);r[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{if(!e)return void l(!1);let t=new IntersectionObserver(e=>{let[t]=e;l(t?.isIntersecting===!1)},{root:document.getElementById(y.e),threshold:0});return t.observe(e),()=>{t.disconnect(),l(!1)}},r[0]=e):e=r[0];let o=e,s=i&&!a;return r[1]!==i||r[2]!==s?(t={hasRoundedTop:s,pinSentinelRef:o,shouldAttachPinSentinel:i},r[1]=i,r[2]=s,r[3]=t):t=r[3],t})(),{glowColor:x,selectedCurrency:v,coinType:R,balance:w,handleCurrencySwitch:S,handleAddFunds:I,isScAllowed:C,isSingleCurrencyMode:_,isLoadingWallet:T}=tc();return d[0]!==m||d[1]!==b?(e=b&&(0,i.jsx)(e5,{ref:m,"data-testid":e9.SE,"aria-hidden":!0}),d[0]=m,d[1]=b,d[2]=e):e=d[2],d[3]!==u||d[4]!==A?(t=(0,i.jsx)(e6,{children:A?(0,i.jsx)(E,{}):(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(f.s,{}),(0,i.jsx)(eo,{})]})}),d[3]=u,d[4]=A,d[5]=t):t=d[5],d[6]!==h||d[7]!==A?(r=A&&(0,i.jsx)(e8,{variant:"h3",children:h}),d[6]=h,d[7]=A,d[8]=r):r=d[8],d[9]!==w||d[10]!==R||d[11]!==I||d[12]!==S||d[13]!==u||d[14]!==T||d[15]!==C||d[16]!==_||d[17]!==v||d[18]!==A?(a=!A&&(0,i.jsxs)(i.Fragment,{children:[!u&&(0,i.jsx)(eh,{size:"medium",compact:!0}
35),!_&&(0,i.jsx)(e1,{value:v,onChange:S,disabled:!C}),(0,i.jsx)(eF,{coinType:R,balance:w,onAddFunds:I,isInPlay:u,isLoadingWallet:T})]}),d[9]=w,d[10]=R,d[11]=I,d[12]=S,d[13]=u,d[14]=T,d[15]=C,d[16]=_,d[17]=v,d[18]=A,d[19]=a):a=d[19],d[20]!==a?(l=(0,i.jsx)(e7,{children:a}),d[20]=a,d[21]=l):l=d[21],d[22]!==x||d[23]!==p||d[24]!==A||d[25]!==t||d[26]!==r||d[27]!==l?(o=(0,i.jsxs)(ta,{glowColor:x,testId:e9.jT,glowTestId:e9.Rs,hideGlow:A,hasBackTitle:A,hasRoundedTop:p,children:[t,r,l]}),d[22]=x,d[23]=p,d[24]=A,d[25]=t,d[26]=r,d[27]=l,d[28]=o):o=d[28],d[29]!==A||d[30]!==o?(s=(0,i.jsx)(e4,{hasBackTitle:A,children:o}),d[29]=A,d[30]=o,d[31]=s):s=d[31],d[32]!==e||d[33]!==s?(c=(0,i.jsxs)(i.Fragment,{children:[e,s]}),d[32]=e,d[33]=s,d[34]=c):c=d[34],c};var tf=r(85897),tg=r(68275);let ty=e=>{let t,r=(0,n.c)(4),{width:a,height:l}=e,o=(0,tf.p)("large");return r[0]!==l||r[1]!==o||r[2]!==a?(t=(0,i.jsx)(tg.A,{width:a,height:l,shouldLinkHome:!0,useSVG:!0,version:"large",seasonalLogo:o}),r[0]=l,r[1]=o,r[2]=a,r[3]=t):t=r[3],t};var tb=r(4040),tx=r(78008),tv=r(47011);let tR=()=>{let e,t,r,a=(0,n.c)(8),{loginWithRedirect:l}=(0,tb.A)(),o=(0,tv.j)();return a[0]!==l?(e=(0,i.jsx)(eS.$,{onClick:()=>l({authorizationParams:{screen_hint:"login",prompt:"select_account"}}),color:"secondary",size:"small",id:"login-cta",children:"Log in"}),a[0]=l,a[1]=e):e=a[1],a[2]!==l||a[3]!==o?(t=(0,i.jsx)(eS.$,{onClick:()=>{o({event:tx.lM.STARTED_SIGNUP}),l({authorizationParams:{screen_hint:"signup",prompt:"select_account"}})},size:"small",color:"primary",children:"Register"}),a[2]=l,a[3]=o,a[4]=t):t=a[4],a[5]!==e||a[6]!==t?(r=(0,i.jsxs)(i.Fragment,{children:[e,t]}),a[5]=e,a[6]=t,a[7]=r):r=a[7],r},tw=()=>{let e,t,r,a,o,s=(0,n.c)(8),{pathname:d}=(0,c.useRouter)();s[0]!==d?(e=(0,l.P)({pathname:d}),s[0]=d,s[1]=e):e=s[1];let u=e.path;s[2]!==u?(t=u===ep.od?tl({verticalPath:ep.od,currency:eE.h.GC}):e9.RP,s[2]=u,s[3]=t):t=s[3];let A=t;return s[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(e6,{children:(0,i.jsx)(ty,{width:e9.y6,height:e9.P8})}),s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(e7,{children:(0,i.jsx)(tR,{})}),s[5]=a):a=s[5],s[6]!==A?(o=(0,i.jsx)(e4,{children:(0,i.jsxs)(ta,{glowColor:A,testId:e9.jT,glowTestId:e9.Rs,hasBackTitle:!1,children:[r,a]})}),s[6]=A,s[7]=o):o=s[7],o};var tS=r(18736);let tI=(0,p.Ay)(U.a)({position:"sticky",top:0,zIndex:W.M.appBar,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:`${h.E[20]} ${h.E[25]}`,background:C.l.BACKGROUND_GRADIENT}),tC=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",gap:h.E[20],minWidth:0}),t_=(0,p.Ay)(U.a)({display:"flex",alignItems:"center",justifyContent:"flex-end",gap:h.E[20],flexShrink:0}),tT=()=>{let e,t,r,a=(0,n.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ty,{width:145,height:26}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)(t
35C,{children:[e,(0,i.jsx)(U.a,{sx:{width:"fit-content",minWidth:0},children:(0,i.jsx)(tS.o,{})})]}),a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsxs)(tI,{"data-testid":"guest-top-nav",children:[t,(0,i.jsx)(t_,{children:(0,i.jsx)(tR,{})})]}),a[2]=r):r=a[2],r},tO=()=>{let e,t,r,a,l,o,s=(0,n.c)(17),c=(0,g.N)(),{coinType:d,selectedCurrency:u,isScAllowed:A,balance:h,isSingleCurrencyMode:p,handleCurrencySwitch:m,handleAddFunds:E,isLoadingWallet:f}=tc();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(tC,{children:(0,i.jsx)(tS.o,{})}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(eo,{}),r=(0,i.jsx)(eh,{compact:!0}),s[1]=t,s[2]=r):(t=s[1],r=s[2]),s[3]!==m||s[4]!==A||s[5]!==p||s[6]!==u?(a=!p&&(0,i.jsx)(e1,{value:u,onChange:m,disabled:!A}),s[3]=m,s[4]=A,s[5]=p,s[6]=u,s[7]=a):a=s[7],s[8]!==h||s[9]!==d||s[10]!==E||s[11]!==c||s[12]!==f?(l=(0,i.jsx)(eF,{coinType:d,balance:h,onAddFunds:E,isInPlay:c,isLoadingWallet:f}),s[8]=h,s[9]=d,s[10]=E,s[11]=c,s[12]=f,s[13]=l):l=s[13],s[14]!==a||s[15]!==l?(o=(0,i.jsxs)(tI,{"data-testid":"top-nav",children:[e,(0,i.jsxs)(t_,{children:[t,r,a,l]})]}),s[14]=a,s[15]=l,s[16]=o):o=s[16],o},tD=()=>{let e,t=(0,n.c)(4),r=(0,a.Y)(),{isAuthenticated:l}=(0,tb.A)();if(r){let e;return t[0]!==l?(e=l?(0,i.jsx)(tE,{}):(0,i.jsx)(tw,{}),t[0]=l,t[1]=e):e=t[1],e}return t[2]!==l?(e=l?(0,i.jsx)(tO,{}):(0,i.jsx)(tT,{}),t[2]=l,t[3]=e):e=t[3],e};var tN=r(22536);let tL=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tN.P,{isSticky:!1}),(0,i.jsx)(tD,{})]}),t[0]=e):e=t[0],e}},13452:(e,t,r)=>{r.d(t,{z:()=>C});var i=r(37876),n=r(27964),a=r(81293),l=r(53272),o=r(50265),s=r(81361),c=r(63268),d=r(7835),u=r(17982),A=r(4072),h=r(98949),p=r(79276),m=r(2357),E=r(30647),f=r(62268);let g={dark:`linear-gradient(180deg, ${u.l.NEUTRAL.DARK} 0%, ${u.l.PRIMARY.DARK} 100%)`,highlight:u.l.YELLOW_GRADIENT.LINEAR},y=(0,f.Ay)(h.a)(({variant:e,hasIllustration:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:E.E[10],padding:`${E.E[15]} ${t?E.E[80]:E.E[20]} ${E.E[15]} ${E.E[20]}`,background:g[e],borderRadius:E.E.BORDER_RADIUS[10],marginBottom:E.E[20],position:"relative",[m.w4.breakpoints.up("lg")]:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:E.E[40],padding:`${E.E[15]} ${E.E[20]}`,paddingLeft:t?E.E[80]:E.E[20]}})),b=(0,f.Ay)(h.a)({position:"absolute",right:E.E[15],top:"30%",transform:"scale(1.5)",transformOrigin:"right center",width:E.E[75],height:E.E[50],[m.w4.breakpoints.up("lg")]:{left:0,right:"auto",top:"50%",transform:"translateY(-30%)",transformOrigin:"initial",height:55}}),x=(0,f.Ay)(p.B)({flexDirection:"column",alignItems:"flex-start",gap:E.E[5],flex:1,minWidth:0,paddingRight:E.E[40],[m.w4.breakpoints.up("lg")]:{flexDirection:"row",alignItems:"center",gap:E.E[50],paddingRight:0}}),v=(0,f.Ay)(p.B)({flexDirection:"row",alignItems:"center",gap:E.E[10],flexShrink:0,whiteSpace:"nowrap"}),R=(0,f.Ay)(p.B)({flexDirection:"row",alignItems:"center",gap:E.E[15],[m.w4.breakpoints.up("lg")]:{gap:E.E[115],flexShrink:0}}),w=(0,f.Ay)(p.B)({flexDirection:"row",alignItems:"center",gap:E.E[10],cursor:"pointer","&:hover":{opacity:.8}}),S=(0,f.Ay)(p.B)({background:u.l.PRIMARY.MAIN,borderRadius:E.E.BORDER_RADIUS["50%"],width:E.E[25],height:E.E[25],display:"flex",alignItems:"center",justifyContent:"center"}),I=(0,f.Ay)(h.a)({position:"absolute",top:E.E[10],right:E.E[10],zIndex:3,[m.w4.breakpoints.up("lg")]:{position:"static"}}),C=e=>{let t,r,h,p,m,E,f,g,C,_,T=(0,n.c)(25),{title:O,description:D,actionLabel:N,actionHref:L,onDismiss:P,illustration:j,variant:k,sx:B}=e,M=void 0===k?"dark":k,W=u.l.NEUTRAL.WHITE;return T[0]!==j?(t=(0,A.O)(j),T[0]=j,T[1]=t):t=T[1],T[2]!==j?(r=(0,A.O)(j)&&(0,i.jsx)(b,{children:j}),T[2]=j,T[3]=r):r=T[3],T[4]===Symbol.for("react.memo_cache_sentinel")?(h=(0,i.jsx)(s.kj,{width:15,height:15,color:W}),T[4]=h):h=T[4],T[5]===Symbol.for("react.memo_cache_sentinel")?(p={color:W},T[5]=p):p=T[5],T[6]!==O?(m=(0,i.jsxs)(v,{children:[h,(0,i.jsx)(d.A,{variant:"h4",noWrap:!0,sx:p,children:O})]}),T[6]=O,T[7]=m):m=T[7],T[8]===Symbol.for("react.memo_cache_sentinel")?(E={color:W},T[8]=E):E=T[8],T[9]!==D?(f=(0,i.jsx)(d.A,{variant:"body2",sx:E,children:D}),T[9]=D,T[10]=f):f=T[10],T[11]!==m||T[12]!==f?(g=(0,i.jsxs)(x,{children:[m,f]}),T[11]=m,T[12]=f,T[13]=g):g=T[13],T[14]!==L||T[15]!==N||T[16]!==P?(C=((0,A.O)(N)&&(0,A.O)(L)||(0,A.O)(P))&&(0,i.jsxs)(R,{children:[(0,A.O)(N)&&(0,A.O)(L)&&(0,i.jsx)(c.N,{href:L,underline:"none",children:(0,i.jsxs)(w,{children:[(0,i.jsx)(d.A,{variant:"h4",sx:{color:W},children:N}),(0,i.jsx)(S,{children:(0,i.jsx)(l.A,{sx:{color:u.l.NEUTRAL.WHITE,fontSize:18}})})]})}),(0,A.O)(P)&&(0,i.jsx)(I,{children:(0,i.jsx)(a.A,{onClick:P,size:"small","aria-label":"Dismiss banner",children:(0,i.jsx)(o.A,{sx:{color:W,fontSize:20}})})})]}),T[14]=L,T[15]=N,T[16]=P,T[17]=C):C=T[17],T[18]!==B||T[19]!==C||T[20]!==t||T[21]!==r||T[22]!==g||T[23]!==M?(_=(0,i.jsxs)(y,{variant:M,hasIllustration:t,sx:B,children:[r,g,C]}),T[18]=B,T[19]=C,T[20]=t,T[21]=r,T[22]=g,T[23]=M,T[24]=_):_=T[24],_}},14194:(e,t,r)=>{r.d(t,{u:()=>i});let i="/loyalty-service/puzzles"},14553:(e,t,r)=>{r.d(t,{p:()=>s});
35var i=r(27964),n=r(74359),a=r(14194),l=r(60528),o=r(53038);let s=()=>{let e,t,r=(0,i.c)(3),s=(0,l.f)();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.C.activeSeries(),r[0]=e):e=r[0],r[1]!==s?(t={queryKey:e,queryFn:async()=>{let{data:e}=await s({url:`${a.u}/active-puzzle-series`});return e}},r[1]=s,r[2]=t):t=r[2],(0,n.I)(t)}},14702:(e,t,r)=>{r.d(t,{U:()=>l});var i=r(27964),n=r(23824),a=r(50272);let l=()=>{let e,t=(0,i.c)(2),{isFeatureFlagEnabled:r}=(0,n.k)("ONBOARDING_NO_PACKAGE");return t[0]!==r?(e=()=>{if(!r)return!0;try{return"true"!==sessionStorage.getItem(a.nv)}catch{return!0}},t[0]=r,t[1]=e):e=t[1],e}},14828:(e,t,r)=>{r.d(t,{I:()=>i});let i=e=>null===e.lastClaimedAt},15224:(e,t,r)=>{r.d(t,{O:()=>A,z:()=>m});var i=r(27964),n=r(40371),a=r(33632),l=r(76423),o=r(98688),s=r(26971);let c=()=>{let e,t,r,n=(0,i.c)(8),{freeBoxPromotions:a,isLoading:c}=(0,l.s)(),A=(0,o.o)(s.Gp),h=(0,o.o)(s.q6);n[0]!==a?(e=a.flatMap(d),n[0]=a,n[1]=e):e=n[1];let p=e;n[2]!==A?(t=(A??[]).reduce(u,[]),n[2]=A,n[3]=t):t=n[3];let m=t,E=c||h;return n[4]!==p||n[5]!==m||n[6]!==E?(r={freeBoxPromotionIds:p,freeplayCampaignIds:m,isLoading:E},n[4]=p,n[5]=m,n[6]=E,n[7]=r):r=n[7],r};function d(e){let{promotionIds:t}=e;return t}function u(e,t){let{id:r,remainingAmount:i,freePlayCampaign:n}=t;return i>0&&"SC"===n.coinType&&e.push(r),e}let A=()=>{let e,t=(0,i.c)(3),{freeBoxPromotionIds:r,freeplayCampaignIds:l}=c();return t[0]!==r||t[1]!==l?(e=()=>{(0!==r.length||0!==l.length)&&(0,n.TV)(a.wj.key,JSON.stringify({freeBoxPromotions:r,freeplayCampaigns:l}),a.wj.ttlDays)},t[0]=r,t[1]=l,t[2]=e):e=t[2],e};var h=r(62530);let p={freeBoxPromotions:[],freeplayCampaigns:[]},m=()=>{let e,t=(0,i.c)(4),{freeBoxPromotionIds:r,freeplayCampaignIds:l,isLoading:o}=c(),[s]=(0,n.GH)(a.wj.key);if(t[0]!==r||t[1]!==l||t[2]!==s){let i=(e=>{if(!e)return p;try{let t=JSON.parse(e);return{freeBoxPromotions:Array.isArray(t?.freeBoxPromotions)?t.freeBoxPromotions:[],freeplayCampaigns:Array.isArray(t?.freeplayCampaigns)?t.freeplayCampaigns:[]}}catch(e){return(0,h.vV)({message:"[parseSeenRewardIds]: Error parsing rewards pip seen cookie:",exception:e}),p}})(s);e=r.some(e=>!i.freeBoxPromotions.includes(e))||l.some(e=>!i.freeplayCampaigns.includes(e)),t[0]=r,t[1]=l,t[2]=s,t[3]=e}else e=t[3];let d=e;return!o&&d}},15789:(e,t,r)=>{r.d(t,{V:()=>A,N:()=>s});var i=r(27964),n=r(16042),a=r(41547),l=r(14232);let o={apiKey:"AIzaSyDSPH-PaBmFrFWWdxlTFgQKO1oj2vW9CHA",projectId:"modo-fcm-prod",authDomain:"modo-fcm-prod.firebaseapp.com",storageBucket:"modo-fcm-prod.appspot.com",messagingSenderId:"1004836816311",appId:"1:1004836816311:web:624d25a7773ba95f0d5432",measurementId:"G-FQEMGX5N3Y"},s=()=>{let e,t,r,s=(0,i.c)(3);s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.Wp)(o),s[0]=e):e=s[0];let c=e;s[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{(async()=>{await (0,a.TT)()&&(0,a.dG)(c)})()},r=[c],s[1]=t,s[2]=r):(t=s[1],r=s[2]),(0,l.useEffect)(t,r)};var c=r(62530),d=r(91462),u=r(4072);let A=async()=>{if((0,d.B)())try{let e=(0,a.dG)();if(!(0,u.O)(e))return;let t=await navigator.serviceWorker.ready;return await (0,a.gf)(e,{vapidKey:"BGzmD8n4gpJIEG41PAL_jmrU24zJEkKVJUri5r8kGfjWnmGtZ1-Ww8S64g2vmoxKnPa_hGQPzJKAeFlFxso8gNk",serviceWorkerRegistration:t})}catch(e){(0,c.vV)({message:"An error occurred while retrieving token. ",exception:e})}}},16137:(e,t,r)=>{r.d(t,{n:()=>n});var i,n=((i={}).BIG_WINNER_LEADERBOARD_UPDATED="BIG_WINNER_LEADERBOARD_UPDATED",i.COMMUNITY_COUPON_UPDATED="COMMUNITY_COUPON_UPDATED",i.EXPERIENCE_UPDATED="EXPERIENCE_UPDATED",i.FEATURE_FLAG_UPDATED="FEATURE_FLAG_UPDATED",i.FREE_PLAY_WINNING="FREE_PLAY_WINNING",i.FREE_PLAYS_CONSUMED="FREE_PLAYS_CONSUMED",i.ID_VERIFICATION_STATUS_UPDATED="ID_VERIFICATION_STATUS_UPDATED",i.INVENTORY_UPDATED="INVENTORY_UPDATED",i.LOGOUT="LOGOUT",i.LOW_COIN_BALANCE="LOW_COIN_BALANCE",i.LOW_GC_BALANCE="LOW_GC_BALANCE",i.LOW_SC_BALANCE="LOW_SC_BALANCE",i.LIVE_EVENT_ENDED="LIVE_EVENT_ENDED",i.LIVE_EVENT_UPDATED="LIVE_EVENT_UPDATED",i.PAYMENT_CARD_ADDED="PAYMENT_CARD_ADDED",i.PLAYER_CHALLENGE_PROGRESS_UPDATED="PLAYER_CHALLENGE_PROGRESS_UPDATED",i.PLAYER_GIVEAWAY_ENTRIES_UPDATED="PLAYER_GIVEAWAY_ENTRIES_UPDATED",i.PLAYER_NOTIFICATION_CREATED="PLAYER_NOTIFICATION_CREATED",i.PLAYER_STAR_PROGRESS_UPDATED="PLAYER_STAR_PROGRESS_UPDATED",i.PLAYER_VIP_POINTS_UPDATED="PLAYER_VIP_POINTS_UPDATED",i.PRIZE_DRAW_GIVEAWAY_COMPLETED="PRIZE_DRAW_GIVEAWAY_COMPLETED",i.RECENT_BOX_WINNERS="RECENT_BOX_WINNERS",i.SSN_VERIFICATION_STATUS_UPDATED="SSN_VERIFICATION_STATUS_UPDATED",i.STAR_WALLET_UPDATED="STAR_WALLET_UPDATED",i.TOURNAMENT_LEADERBOARD_UPDATED="TOURNAMENT_LEADERBOARD_UPDATED",i.TRUSTLY_BANK_ACCOUNT_EXPIRED="TRUSTLY_BANK_ACCOUNT_EXPIRED",i.USER_PROMOTION_UPDATED="USER_PROMOTION_UPDATED",i.PROMOTION_POST_PURCHASE_FULFILLED="PROMOTION_POST_PURCHASE_FULFILLED",i.PURCHASE_APPROVED="PURCHASE_APPROVED",i.PUZZLE_SERIES_STARTED="PUZZLE_SERIES_STARTED",i.PUZZLE_SERIES_ENDED="PUZZLE_SERIES_ENDED",i.PUZZLE_SERIES_COMPLETED="PUZZLE_SERIES_COMPLETED",i.PUZZLE_COMPLETED="PUZZLE_COMPLETED",i.WALLET_UPDATED="WALLET_UPDATED",i)},16695:(e,t,r)=>{r.d(t,{Y:()=>o});var i=r(27964),n=r(74359),a=r(60528);let l={all:["feature-timeouts"],list:()=>[...l.all,"list"]},o=()=>{let e,t,r=(0,i.c)(3),o=(0,a.f)();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.list(),r[0]=e):e=r[0],r[1]!==o?(t={queryKey:e,queryFn:async()=>{let{data:e}=await o({url:"/core-service/feature-timeouts"});return e}},r[1]=o,r[2]=t):t=r[2],(0,n.I)(t)}},17279:(e,t,r)=>{r.d(t,{A0:()=>l,QA:()=>n,Ui:()=>a});var i=r(17982);let n=r(30647).E[15],a={GC:"GC",SC:"SC",BOXES:"BOXES",NON_ACCENT:"NON_ACCENT"},l={GC:i.l.ACCENTS.YELLOW.MAIN,SC:i.l.ACCENTS.GREEN.MAIN,BOXES:i.l.SECONDARY.MAIN,NON_ACCENT:i.l.NEUTRAL.WHITE}},17399:(e,t,r)=>{r.d(t,{Q:()=>n,S:()=>i});let i=5,n={LOADING:"LOADING",ERROR:"ERROR",READY:"READY"}},18232:(e,t,r)=>{r.d(t,{s:()=>m});var i=r(37876),n=r(27964),a=r(82387),l=r(14232),o=r(46561),s=r(70847),c=r(16289),d=r(68985),u=r(34779),A=r(30647),h=r(4072);let p=(0,l.forwardRef)((e,t)=>{let r,l=(0,n.c)(3);return l[0]!==t||l[1]!==e?(r=(0,i.jsx)(a.A,{ref:t,...e}),l[0]=t,l[1]=e,l[2]=r):r=l[2],r});p.displayName="ForwardedInputMask";let m=(0,l.forwardRef)((e,t)=>{let r,a,l,s,c,u,A,m,f,g,y,b,x,v,R,w,S,I,C,_,T,O=(0,n.c)(95);if(O[0]!==e?({onMouseDown:b,label:A,type:_,fullWidth:c,mask:m,error:s,onBlur:f,onF
35ocus:y,value:T,onChange:g,readOnly:x,disabled:l,helperText:u,InputProps:r,tooltip:I,replacement:v,track:C,slotProps:w,className:a,style:S,...R}=e,O[0]=e,O[1]=r,O[2]=a,O[3]=l,O[4]=s,O[5]=c,O[6]=u,O[7]=A,O[8]=m,O[9]=f,O[10]=g,O[11]=y,O[12]=b,O[13]=x,O[14]=v,O[15]=R,O[16]=w,O[17]=S,O[18]=I,O[19]=C,O[20]=_,O[21]=T):(r=O[1],a=O[2],l=O[3],s=O[4],c=O[5],u=O[6],A=O[7],m=O[8],f=O[9],g=O[10],y=O[11],b=O[12],x=O[13],v=O[14],R=O[15],w=O[16],S=O[17],I=O[18],C=O[19],_=O[20],T=O[21]),(0,h.O)(m)){let e,n,h,D,N,L,P,j;if(O[22]!==A||O[23]!==w){let t;e=("object"==typeof(t=w?.htmlInput)&&null!==t&&"function"!=typeof t?w.htmlInput["aria-label"]:void 0)??A?.toString(),O[22]=A,O[23]=w,O[24]=e}else e=O[24];let k=e;O[25]!==A||O[26]!==I?(n=(0,i.jsx)(E,{label:A,tooltip:I}),O[25]=A,O[26]=I,O[27]=n):n=O[27];let B=w?.input;return O[28]!==m||O[29]!==v||O[30]!==k||O[31]!==C?(h={"aria-label":k,mask:m,replacement:v,track:C},O[28]=m,O[29]=v,O[30]=k,O[31]=C,O[32]=h):h=O[32],O[33]!==t||O[34]!==B||O[35]!==h?(D={...B,inputRef:t,inputComponent:p,inputProps:h},O[33]=t,O[34]=B,O[35]=h,O[36]=D):D=O[36],O[37]!==w||O[38]!==D?(N={...w,input:D},O[37]=w,O[38]=D,O[39]=N):N=O[39],O[40]!==r||O[41]!==x?(L={readOnly:x,...r},O[40]=r,O[41]=x,O[42]=L):L=O[42],O[43]!==l||O[44]!==s||O[45]!==u||O[46]!==f||O[47]!==g||O[48]!==y||O[49]!==b||O[50]!==R||O[51]!==N||O[52]!==L||O[53]!==_||O[54]!==T?(P=(0,i.jsx)(d.A,{disabled:l,helperText:u,onFocus:y,onBlur:f,error:s,onChange:g,value:T,onMouseDown:b,type:_,slotProps:N,...R,InputProps:L}),O[43]=l,O[44]=s,O[45]=u,O[46]=f,O[47]=g,O[48]=y,O[49]=b,O[50]=R,O[51]=N,O[52]=L,O[53]=_,O[54]=T,O[55]=P):P=O[55],O[56]!==a||O[57]!==l||O[58]!==s||O[59]!==c||O[60]!==R.required||O[61]!==S||O[62]!==n||O[63]!==P?(j=(0,i.jsxs)(o.A,{fullWidth:c,error:s,disabled:l,required:R.required,className:a,style:S,children:[n,P]}),O[56]=a,O[57]=l,O[58]=s,O[59]=c,O[60]=R.required,O[61]=S,O[62]=n,O[63]=P,O[64]=j):j=O[64],j}{let e,n,h,p;return O[65]!==A||O[66]!==R.required||O[67]!==I?(e=(0,i.jsx)(E,{label:A,tooltip:I,required:R.required}),O[65]=A,O[66]=R.required,O[67]=I,O[68]=e):e=O[68],O[69]!==r||O[70]!==x?(n={readOnly:x,...r},O[69]=r,O[70]=x,O[71]=n):n=O[71],O[72]!==l||O[73]!==s||O[74]!==u||O[75]!==f||O[76]!==g||O[77]!==y||O[78]!==b||O[79]!==t||O[80]!==R||O[81]!==w||O[82]!==n||O[83]!==_||O[84]!==T?(h=(0,i.jsx)(d.A,{inputRef:t,disabled:l,helperText:u,onFocus:y,onBlur:f,error:s,onChange:g,value:T,InputProps:n,onMouseDown:b,type:_,slotProps:w,...R}),O[72]=l,O[73]=s,O[74]=u,O[75]=f,O[76]=g,O[77]=y,O[78]=b,O[79]=t,O[80]=R,O[81]=w,O[82]=n,O[83]=_,O[84]=T,O[85]=h):h=O[85],O[86]!==a||O[87]!==l||O[88]!==s||O[89]!==c||O[90]!==R.required||O[91]!==S||O[92]!==e||O[93]!==h?(p=(0,i.jsxs)(o.A,{fullWidth:c,error:s,disabled:l,required:R.required,className:a,style:S,children:[e,h]}),O[86]=a,O[87]=l,O[88]=s,O[89]=c,O[90]=R.required,O[91]=S,O[92]=e,O[93]=h,O[94]=p):p=O[94],p}});m.displayName="BasicTextField";let E=e=>{let t,r=(0,n.c)(6),{label:a,tooltip:l,required:o,error:d,disabled:p}=e;return r[0]!==p||r[1]!==d||r[2]!==a||r[3]!==o||r[4]!==l?(t=(0,h.O)(a)?(0,i.jsxs)(s.A,{error:d,disabled:p,required:o,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:A.E[5]},children:[a,(0,h.O)(l)?(0,i.jsx)(u.m,{enterTouchDelay:0,leaveTouchDelay:2e3,title:l,children:(0,i.jsx)(c.A,{fontSize:"inherit"})}):null]}):null,r[0]=p,r[1]=d,r[2]=a,r[3]=o,r[4]=l,r[5]=t):t=r[5],t}},18736:(e,t,r)=>{r.d(t,{o:()=>O});var i=r(37876),n=r(27964),a=r(23824),l=r(92776),o=r(14232),s=r(7835),c=r(17982),d=r(11800),u=r(43411),A=r(8320),h=r(67768),p=r(40097),m=r(73057),E=r(60528),f=r(98688),g=r(67657),y=r(96636),b=r(85370),x=r(89099),v=r(59250),R=r(98949),w=r(30647),S=r(62268);let I=(0,S.Ay)(R.a)({display:"flex",alignItems:"center",justifyContent:"center",gap:w.E[4],width:"100%",minWidth:0,maxWidth:"100%",overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"},"@media (max-width: 600px)":{justifyContent:"center",width:"max-content",maxWidth:"none",overflowX:"visible",margin:"auto"}}),C=(0,S.Ay)(R.a)({position:"relative",display:"flex",alignItems:"center",gap:w.E[8],padding:`${w.E[10]} ${w.E[15]}`,borderRadius:w.E.BORDER_RADIUS[40],cursor:"pointer",flexShrink:0,whiteSpace:"nowrap",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{outline:`2px solid ${c.l.PRIMARY.MAIN}`,outlineOffset:"2px"}}),_=(0,S.Ay)(R.a)({position:"relative",zIndex:u.Je.SWITCHER_ITEM_CONTENT,display:"flex",alignItems:"center",gap:w.E[8]}),T=(0,S.Ay)(v.P.div)({position:"absolute",inset:0,zIndex:0,borderRadius:w.E.BORDER_RADIUS[40],border:`1px solid ${c.l.NEUTRAL.WHITE}15`,background:`${c.l.NEUTRAL.WHITE}20`}),O=()=>{let e,t,r=(0,n.c)(15),{verticals:v,activePath:R,activeItemRef:w,handleSelect:S,handleKeyDown:O}=(()=>{let e,t,r,i,l,s,c,d,u,v,R,w,S,I,C,_,T,O=(0,n.c)(24),{pathname:D,push:N}=(0,x.useRouter)();O[0]!==D?(e=()=>(0,b.P)({pathname:D}),O[0]=D,O[1]=e):e=O[1];let[L,P]=(0,o.useState)(e),j=(0,o.useRef)(null),{isFeatureFlagEnabled:k}=(0,a.k)("EXPERIENCES_V2"),{experiencesV2:B}=(()=>{let e,t=(0,n.c)(4),{data:r,isLoading:i}=(0,A.b)(),a=r?.lastSelectedVertical;return t[0]!==r||t[1]!==i||t[2]!==a?(e={experiencesV2:r,isLoading:i,lastSelectedVertical:a},t[0]=r,t[1]=i,t[2]=a,t[3]=e):e=t[3],e})(),{mutate:M}=(I=(0,n.c)(8),C=(0,E.f)(),_=(0,h.jE)(),T=(0,f.o)(g.as)?.id,I[0]!==C?(R=async e=>{await C({url:"/core-service/v2/experiences/switch-vertical",method:"POST",data:{vertical:e}}
35)},I[0]=C,I[1]=R):R=I[1],I[2]!==_||I[3]!==T?(w=(e,t)=>{let r=m.K.listV2(T),i=_.getQueryData(r);i&&_.setQueryData(r,{...i,lastSelectedVertical:t})},I[2]=_,I[3]=T,I[4]=w):w=I[4],I[5]!==R||I[6]!==w?(S={mutationFn:R,onSuccess:w,retry:!1},I[5]=R,I[6]=w,I[7]=S):S=I[7],(0,p.n)(S));O[2]===Symbol.for("react.memo_cache_sentinel")?(t=Object.values(y.Up),O[2]=t):t=O[2],O[3]!==B||O[4]!==k?(r=t.filter(e=>{if(!k||void 0===B)return!0;switch(e.id){case y.Km.CASINO:case y.Km.ARCADE:return B.casino.enabled;case y.Km.BOXES:return B.boxes.enabled;default:return!0}}),O[3]=B,O[4]=k,O[5]=r):r=O[5];let W=r;O[6]!==D?(i=()=>{P((0,b.P)({pathname:D}))},l=[D],O[6]=D,O[7]=i,O[8]=l):(i=O[7],l=O[8]),(0,o.useEffect)(i,l),O[9]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{j.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},O[9]=s):s=O[9],O[10]!==L.path?(c=[L.path],O[10]=L.path,O[11]=c):c=O[11],(0,o.useEffect)(s,c),O[12]!==k||O[13]!==N||O[14]!==M?(d=e=>{P(e),k&&M(e.id),N(e.path)},O[12]=k,O[13]=N,O[14]=M,O[15]=d):d=O[15];let U=d;O[16]!==U?(u=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),U(t))},O[16]=U,O[17]=u):u=O[17];let F=u;return O[18]!==L.name||O[19]!==L.path||O[20]!==F||O[21]!==U||O[22]!==W?(v={verticals:W,activePath:L.path,activeVerticalName:L.name,activeItemRef:j,handleSelect:U,handleKeyDown:F},O[18]=L.name,O[19]=L.path,O[20]=F,O[21]=U,O[22]=W,O[23]=v):v=O[23],v})(),{isFeatureFlagEnabled:D}=(0,a.k)("LOBBY_HAPTIC");if(r[0]!==w||r[1]!==R||r[2]!==O||r[3]!==S||r[4]!==D||r[5]!==v){let t;r[7]!==w||r[8]!==R||r[9]!==O||r[10]!==S||r[11]!==D?(t=e=>{let{path:t,icon:r}=e,n=t===R,a=n?c.l.NEUTRAL.WHITE:c.l.NEUTRAL.LIGHT,A=(0,i.jsxs)(C,{ref:n?w:void 0,onClick:()=>S(e),onKeyDown:t=>O(t,e),role:"button",tabIndex:0,"aria-current":n?"page":void 0,children:[n&&(0,i.jsx)(T,{layoutId:u.XW,transition:u.e2}),(0,i.jsxs)(_,{children:[(0,i.jsx)(r,{style:{color:a}}),(0,i.jsx)(s.A,{variant:"caption",color:a,letterSpacing:d.p.LETTER_SPACING[.36],children:e.name})]})]});return D?(0,i.jsx)(l.q,{hapticPreset:"selection",sx:{flexShrink:0},children:A},t):(0,i.jsx)(o.Fragment,{children:A},t)},r[7]=w,r[8]=R,r[9]=O,r[10]=S,r[11]=D,r[12]=t):t=r[12],e=v.map(t),r[0]=w,r[1]=R,r[2]=O,r[3]=S,r[4]=D,r[5]=v,r[6]=e}else e=r[6];return r[13]!==e?(t=(0,i.jsx)(I,{children:e}),r[13]=e,r[14]=t):t=r[14],t}},19254:(e,t,r)=>{r.d(t,{I:()=>d});var i=r(37876),n=r(27964);let a={src:"/_next/static/media/hamburger-menu.8ea26014.svg",height:18,width:25,blurWidth:0,blurHeight:0};var l=r(21285),o=r(81293),s=r(30647);let c=(0,r(62268).Ay)(o.A)({cursor:"pointer",width:s.E[25],height:s.E[25],marginRight:s.E[10]}),d=e=>{let t,r,o,s,d,u,A=(0,n.c)(11);A[0]!==e?({onClick:t,size:s,sx:o,...r}=e,A[0]=e,A[1]=t,A[2]=r,A[3]=o,A[4]=s):(t=A[1],r=A[2],o=A[3],s=A[4]);let h=void 0===s?"medium":s;return A[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsx)(l._,{src:a,alt:"Menu",width:24,height:24,unoptimized:!0}),A[5]=d):d=A[5],A[6]!==t||A[7]!==r||A[8]!==h||A[9]!==o?(u=(0,i.jsx)(c,{size:h,onClick:t,sx:o,...r,children:d}),A[6]=t,A[7]=r,A[8]=h,A[9]=o,A[10]=u):u=A[10],u}},19368:(e,t,r)=>{r.d(t,{I:()=>n,s:()=>i});let i="/growth-service/welcome-bonus",n="/growth-service/welcome-bonus/claim"},22119:(e,t,r)=>{r.d(t,{O:()=>n});var i=r(4072);let n=(e,t)=>({...e,...(0,i.O)(t.puzzlePieces)?{puzzlePieces:t.puzzlePieces}:{},...(0,i.O)(t.freePlayAmount)?{freePlayAmount:t.freePlayAmount}:{},starBooster:t.starBooster,stars:t.stars})},22244:(e,t,r)=>{r.d(t,{a:()=>o});var i=r(65427),n=r(30647),a=r(62268),l=r(42291);let o=(0,a.Ay)(i.A,{shouldForwardProp:l.A})(({isCollapsed:e,borderColor:t})=>({border:0,borderTop:"0.5px solid transparent",borderImageSlice:1,borderImageSource:`linear-gradient(90deg, transparent 0%, ${t} 50%, transparent 100%)`,marginInline:e?n.E[5]:n.E[25],marginBlock:n.E[20]}))},22536:(e,t,r)=>{r.d(t,{P:()=>R});var i=r(37876),n=r(27964),a=r(49769),l=r(71770),o=r(75893),s=r(21814),c=r(91311),d=r(13452),u=r(36099),A=r(12450),h=r(98688),p=r(43856);let m={src:"/_next/static/media/gc-glow.fd89a7a9.webp",height:204,width:201,blurDataURL:"data:image/webp;base64,UklGRsAAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEEAAAAAAAABBwg
35CAAAAKZVsZS8IAARM9PLizIoDDHfu////7AUHaub+//+zBQEpkv//9j0BAAJE//hWAgAAAABGJwAAAABWUDggWAAAAJACAJ0BKggACAACQDglsAJ0ugH4ABEGmBLrO35AAP7FikNxWEguLvchJf0zDxYLjvQhyHNtfUUNvYrZ/+ftxFswgPhoaITWgcFv/jmu4O70RZEzKtWgAAA=",blurWidth:8,blurHeight:8};var E=r(98949),f=r(63268),g=r(30647),y=r(4072),b=r(54587),x=r.n(b);let v=(0,r(62268).Ay)(x())({position:"absolute",left:g.E[10],top:g.E[3],zIndex:0}),R=e=>{let t,r,b,x=(0,n.c)(12),{isSticky:R}=e,w=void 0===R||R,{experiences:S,isLoading:I}=(0,l.$)(),C=(0,c.N)(),{viewport:_}=(0,A.R)(),{isMediumViewport:T}=_,O=(0,h.o)(p.SE),{closeStateTransitionBanner:D}=(0,h.o)(p.Rl);x[0]!==S||x[1]!==C||x[2]!==I||x[3]!==O?(t=!C&&!1===I&&(0,y.O)(S)&&o.U.isExitExperience(S)&&!O,x[0]=S,x[1]=C,x[2]=I,x[3]=O,x[4]=t):t=x[4];let N=t;x[5]!==D?(r=()=>{D()},x[5]=D,x[6]=r):r=x[6];let L=r;return x[7]!==L||x[8]!==T||x[9]!==w||x[10]!==N?(b=N&&(0,i.jsx)(E.a,{sx:{position:w?"sticky":"relative",top:w&&T?s.W:0,zIndex:a.M.appBar},children:(0,i.jsx)(d.z,{title:"Important update",actionLabel:"Learn more",actionHref:"/gc-only",variant:"highlight",description:(0,i.jsxs)(E.a,{component:"span",sx:{display:"inline-block",paddingTop:g.E[10]},children:["Starting ",(0,i.jsx)("strong",{children:"November 1st"}),", Oklahoma will move to"," ",(0,i.jsx)("strong",{children:"Gold Coins and Modo Boxes only."})," To appeal this change in sweepstakes law, visit"," ",(0,i.jsx)(f.N,{href:u.F,children:"here"})," and type in your address."]}),illustration:(0,i.jsx)(v,{src:m,alt:"",role:"presentation",width:50,height:50,sx:{marginTop:-1}}),onDismiss:L,sx:{borderRadius:0,marginBottom:0}})}),x[7]=L,x[8]=T,x[9]=w,x[10]=N,x[11]=b):b=x[11],b}},22556:(e,t,r)=>{r.d(t,{y:()=>l});var i=r(88874),n=r(72734),a=r(75193);let l=()=>{let e=(0,a.jD)(),t=(0,i.a)(),{selectedCurrency:r}=(0,n.e)();return e?t:r}},22884:(e,t,r)=>{r.d(t,{U:()=>iY});var i,n,a=r(37876),l=r(27964),o=r(23824),s=r(79065),c=r(51123),d=r(98688),u=r(61650),A=r(89099),h=r(14232),p=r(82668),m=r(3472);let E=e=>{let t,r,i,n=(0,l.c)(9),{children:E}=e,{user:f,isLoading:g}=(0,c.J)(),{isFeatureFlagEnabled:y,isFeatureFlagLoading:b}=(0,o.k)("ONBOARDING_V2_SIGNUP"),{replace:x,asPath:v}=(0,A.useRouter)(),R=!(!(!g&&!b&&y)||f?.verifications?.ONBOARDING===s.hn.APPROVED);if(n[0]!==v||n[1]!==x||n[2]!==R?(t=()=>{if(R){let{path:e,params:t}=(0,m.B)(v);"/"===e||"/lobby"===e||e.startsWith("/onboarding")||(0,u.QN)(d.o.getState()).setIntendedDestination({path:e,params:t,source:"universal"}
35),x("/onboarding/personal-info")}},r=[R,x,v],n[0]=v,n[1]=x,n[2]=R,n[3]=t,n[4]=r):(t=n[3],r=n[4]),(0,h.useEffect)(t,r),g||b){let e;return n[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.S,{}),n[5]=e):e=n[5],e}if(R){let e;return n[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.S,{}),n[6]=e):e=n[6],e}return n[7]!==E?(i=(0,a.jsx)(a.Fragment,{children:E}),n[7]=E,n[8]=i):i=n[8],i};var f=r(14828),g=r(71770),y=r(75193),b=r(69713),x=r(4072),v=r(69),R=r(93739);let w=()=>{let e,t=(0,l.c)(2),{user:r}=(0,c.J)();return t[0]!==r?(e=(0,R.B)().check(r,["onboardingCompleted"]),t[0]=r,t[1]=e):e=t[1],e.allowed};var S=r(65910),I=r(16695),C=r(9253),_=r(11492);let T=e=>{if(!(0,x.O)(e)||Number.isNaN(e))return 0;let t=(0,_.o7)().valueOf()-e;return t<0||t>=1e4?0:1e4-t},O=()=>{let e,t,r,i,n,a,o=(0,l.c)(12),{data:s,isFetching:c}=(0,v.k)(),d=s?.lastClaimedAt??null;o[0]!==d?(t=T(e=(0,x.O)(d)?(0,_.o7)(d).valueOf():null),o[0]=d,o[1]=e,o[2]=t):(e=o[1],t=o[2]);let u=t,[A,p]=(0,h.useState)(null),m=u>0&&A!==e;if(o[3]!==e?(r=()=>{let t=T(e);if(t<=0)return;let r=setTimeout(()=>p(e),t);return()=>clearTimeout(r)},i=[e],o[3]=e,o[4]=r,o[5]=i):(r=o[4],i=o[5]),(0,h.useEffect)(r,i),c||!(0,x.O)(s)){let e;return o[6]===Symbol.for("react.memo_cache_sentinel")?(e={isBonusActivityPending:!0},o[6]=e):e=o[6],e}o[7]!==s||o[8]!==m?(n=(0,f.I)(s)||(0,C.V)(s.lastClaimedAt)||m,o[7]=s,o[8]=m,o[9]=n):n=o[9];let E=n;return o[10]!==E?(a={isBonusActivityPending:E},o[10]=E,o[11]=a):a=o[11],a};var D=r(10622),N=r(66997),L=r(35927),P=r(9697),j=r(1045),k=r(19340),B=r(40371),M=r(33632),W=r(29340),U=r(30496),F=r(78989),G=r(44271),V=r(43252),z=r(77061);let Y=e=>{let t,r,i,n,a,o,s,c=(0,l.c)(12);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let d=(0,h.useRef)(t);c[1]===Symbol.for("react.memo_cache_sentinel")?(r={left:0,width:0},c[1]=r):r=c[1];let[u,A]=(0,h.useState)(r),[p,m]=(0,h.useState)(!1);c[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>t=>{t?d.current[e]=t:delete d.current[e]},c[2]=i):i=c[2];let E=i;c[3]!==e||c[4]!==p?(n=()=>{let t=d.current[e];if(t){let e=t.getBoundingClientRect();A({left:e.left,width:e.width+50}),p||m(!0)}},c[3]=e,c[4]=p,c[5]=n):n=c[5];let f=n;return c[6]!==f?(a=()=>(f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)),o=[f],c[6]=f,c[7]=a,c[8]=o):(a=c[7],o=c[8]),(0,h.useEffect)(a,o),c[9]!==p||c[10]!==u?(s={indicatorPosition:u,setNavItemRef:E,indicatorInitialized:p},c[9]=p,c[10]=u,c[11]=s):s=c[11],s};var H=r(49769),K=r(98949),Q=r(17982),$=r(30647),q=r(62268),X=r(42291),Z=r(69469);let J=`clamp(${$.E[8]}, 2vw, ${$.E[20]})`,ee=(0,q.Ay)(K.a,{shouldForwardProp:X.A})(({isApp:e=!1,isPwa:t=!1})=>{let r=0;return e?r=35:t&&(r=65),{position:"fixed",bottom:e?-20:0,left:0,right:0,height:80+35*!!e,paddingTop:$.E[5],paddingBottom:r,background:Q.l.NEUTRAL.DARK,zIndex:H.M.mobileNavigation,boxShadow:Q.l.SHADOWS.APP_BAR_MOBILE_TOP,"&::before":{content:'""',position:"absolute",top:0,width:"100%",height:"1px",background:Q.l.APP_BAR_MOBILE_HIGHLIGHT_GRADIENT_ARCADE,zIndex:H.M.mobileNavigation+1}}}),et=(0,q.Ay)(K.a)({width:"100%",display:"grid",gridTemplateColumns:"4fr 1fr 4fr",columnGap:J,padding:0,paddingBottom:$.E[5],zIndex:H.M.mobileNavigationGlow+1}),er=(0,q.Ay)(K.a,{shouldForwardProp:Z.MC})(({left:e,width:t,disableTransition:r=!1,activeColor:i,isApp:n})=>({position:"absolute",bottom:35*!!n,left:-8,transform:`translateX(${e}px) scaleX(${t/160})`,transformOrigin:"left",transition:r?"none":"transform 0.2s cubic-bezier(0.2, 0, 0.2, 1)",zIndex:0,pointerEvents:"none",border:`2px solid ${i}`,borderRadius:`${$.E[10]} ${$.E[10]} 0 0`,boxShadow:`0 0 ${$.E[5]} 0 ${i}`})),ei=e=>{let t,r=(0,l.c)(6),{left:i,width:n,disableTransition:o,activeColor:s,isApp:c}=e,d=void 0!==o&&o;return r[0]!==s||r[1]!==d||r[2]!==c||r[3]!==i||r[4]!==n?(t=(0,a.jsx)(er,{left:i,width:n,disableTransition:d,activeColor:s,isApp:c}),r[0]=s,r[1]=d,r[2]=c,r[3]=i,r[4]=n,r[5]=t):t=r[5],t};var en=r(39662),ea=r(52821),el=r(24732),eo=r(78008),es=r(47011),ec=r(41162),ed=r(29358),eu=r(81361),eA=r(18643),eh=r(7835),ep=r(11800),em=r(79276);let eE=(0,q.Ay)(em.B)(()=>({position:"relative",touchAction:"pan-y",justifySelf:"center",alignItems:"center",padding:`${$.E[10]} ${$.E[5]}`})),ef=(0,h.forwardRef)(({icon:e,label:t,selected:r,color:i,onClick:n},l)=>(0,a.jsxs)(eE,{color:i,ref:l,onClick:n,children:[e,(0,a.jsx)(eh.A,{variant:"body2",sx:{color:"inherit",fontWeight:r?ep.p.WEIGHTS[600]:ep.p.WEIGHTS[400],paddingTop:$.E[5]},children:t})]}));
35ef.displayName="ArcadeNavigationItem";let eg=e=>(0,ed.YW)(e).with("/",()=>0).with("/lobby",()=>0).with(ed.P.string.startsWith("/modo-boxes"),()=>1).with("/arcade",()=>2).otherwise(()=>0),ey=()=>{let e,t,r,i,n,o,s,c,d,u,p,m,E,f,g,y,b,x,v,R,w,S,I,C,_,T,O,D,N=(0,l.c)(64),{push:L,pathname:P}=(0,A.useRouter)();N[0]!==P?(e=eg(P),N[0]=P,N[1]=e):e=N[1];let[j,k]=(0,h.useState)(e),{indicatorPosition:B,setNavItemRef:M,indicatorInitialized:W}=Y(j),U=(0,es.j)();N[2]===Symbol.for("react.memo_cache_sentinel")?(t={fallbackToLobby:!0},N[2]=t):t=N[2];let{activeTheme:F,getThemeForPath:G}=(0,z.Z)(t),[V,H]=(0,h.useState)(F),K=(0,en.r)();N[3]!==F?(r=()=>{H(F)},i=[F],N[3]=F,N[4]=r,N[5]=i):(r=N[4],i=N[5]),(0,h.useEffect)(r,i),N[6]!==G||N[7]!==L||N[8]!==U?(n=e=>{U({event:eo.lM.CLICKED_NAV_MENU,properties:{menu:e.replace(/^\//,""),source:"mobile_bar"}}),k(eg(e)),H(G(e)),L(e)},N[6]=G,N[7]=L,N[8]=U,N[9]=n):n=N[9];let $=n;N[10]!==P?(o=()=>{k(eg(P))},s=[P],N[10]=P,N[11]=o,N[12]=s):(o=N[11],s=N[12]),(0,h.useEffect)(o,s),N[13]===Symbol.for("react.memo_cache_sentinel")?(c=(0,ec.k_)(),N[13]=c):c=N[13];let{isModoAndroidApp:q,isModoIOSApp:X}=c;N[14]===Symbol.for("react.memo_cache_sentinel")?(d="standalone"===(0,ea.d)()&&!X&&!q,N[14]=d):d=N[14];let Z=d;N[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,eA.N)("1.1.0"),N[15]=u):u=N[15],N[16]!==M?(p=M(0),N[16]=M,N[17]=p):p=N[17];let J=0===j?Q.l.NEUTRAL.WHITE:Q.l.NEUTRAL.SOFT;N[18]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eu.bM,{width:25,height:25}),N[18]=m):m=N[18];let er=0===j;N[19]!==$?(E=()=>$("/lobby"),N[19]=$,N[20]=E):E=N[20],N[21]!==p||N[22]!==J||N[23]!==er||N[24]!==E?(f=(0,a.jsx)(ef,{ref:p,label:"Casino",color:J,icon:m,selected:er,onClick:E}),N[21]=p,N[22]=J,N[23]=er,N[24]=E,N[25]=f):f=N[25],N[26]!==M?(g=M(1),N[26]=M,N[27]=g):g=N[27];let ed=1===j?Q.l.NEUTRAL.WHITE:Q.l.NEUTRAL.SOFT;N[28]===Symbol.for("react.memo_cache_sentinel")?(y={vertical:"top",horizontal:"right"},N[28]=y):y=N[28],N[29]!==V?(b={badge:{sx:{backgroundColor:V}}},N[29]=V,N[30]=b):b=N[30],N[31]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(eu.Em,{width:25,height:25}),N[31]=x):x=N[31],N[32]!==K||N[33]!==b?(v=(0,a.jsx)(el.K,{count:K,anchorOrigin:y,slotProps:b,children:x}),N[32]=K,N[33]=b,N[34]=v):v=N[34];let eh=1===j;N[35]!==$?(R=()=>$("/modo-boxes"),N[35]=$,N[36]=R):R=N[36],N[37]!==g||N[38]!==ed||N[39]!==v||N[40]!==eh||N[41]!==R?(w=(0,a.jsx)(ef,{ref:g,label:"Boxes",color:ed,icon:v,selected:eh,onClick:R}),N[37]=g,N[38]=ed,N[39]=v,N[40]=eh,N[41]=R,N[42]=w):w=N[42],N[43]!==M?(S=M(2),N[43]=M,N[44]=S):S=N[44];let ep=2===j?Q.l.NEUTRAL.WHITE:Q.l.NEUTRAL.SOFT;N[45]===Symbol.for("react.memo_cache_sentinel")?(I=(0,a.jsx)(eu.kF,{width:25,height:25}),N[45]=I):I=N[45];let em=2===j;return N[46]!==$?(C=()=>$("/arcade"),N[46]=$,N[47]=C):C=N[47],N[48]!==S||N[49]!==ep||N[50]!==em||N[51]!==C?(_=(0,a.jsx)(ef,{ref:S,label:"Arcade",color:ep,icon:I,selected:em,onClick:C}),N[48]=S,N[49]=ep,N[50]=em,N[51]=C,N[52]=_):_=N[52],N[53]!==f||N[54]!==w||N[55]!==_?(T=(0,a.jsxs)(et,{children:[f,w,_]}),N[53]=f,N[54]=w,N[55]=_,N[56]=T):T=N[56],N[57]!==V||N[58]!==W||N[59]!==B?(O=W&&(0,a.jsx)(ei,{left:B.left+3.5,width:B.width-3.5,disableTransition:!W,activeColor:V,isApp:(0,eA.N)("1.1.0")}),N[57]=V,N[58]=W,N[59]=B,N[60]=O):O=N[60],N[61]!==T||N[62]!==O?(D=(0,a.jsxs)(ee,{isPwa:Z,isApp:u,children:[T,O]}),N[61]=T,N[62]=O,N[63]=D):D=N[63],D};var eb=r(38935),ex=r(31377),ev=r(59250),eR=r(12311);let ew=(0,q.Ay)(K.a)({display:"flex",alignItems:"center",gap:4,width:"100%",maxWidth:376,padding:5,borderRadius:50,backgroundColor:Q.l.OVERLAYS.DARK,border:"1px solid rgba(255, 255, 255, 0.15)",backdropFilter:"blur(17px)"}),eS=(0,q.Ay)("button",{shouldForwardProp:X.A})(({selected:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",paddingBlock:$.E[10],flex:"1 1 0%",minWidth:0,border:"none",borderRadius:$.E.BORDER_RADIUS[30],cursor:"pointer",outline:"none",background:"transparent",color:e?Q.l.NEUTRAL.WHITE:Q.l.NEUTRAL.LIGHT,userSelect:"none",appearance:"none",WebkitAppearance:"none",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",touchAction:"manipulation","&:focus-visible":{boxShadow:`0 0 0 2px ${Q.l.NEUTRAL.WHITE}`}})),eI=(0,q.Ay)(ev.P.div)({position:"absolute",inset:0,zIndex:H.M.bottomNavSelectedTabPill,borderRadius:$.E.BORDER_RADIUS[30],background:Q.l.SELECTED_TAB_GRADIENT}),eC=(0,q.Ay)(K.a)({position:"relative",zIndex:H.M.bottomNavTabContent,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:$.E[5],minWidth:0}),e_=(0,q.Ay)(K.a)({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:20,height:20}
35),eT=(0,q.Ay)(eR.A)({display:"flex","& .MuiBadge-badge":{backgroundColor:Q.l.ACCENTS.YELLOW.MAIN}}),eO=(0,q.Ay)("span")({fontFamily:ep.p.FAMILY.PRIMARY,fontSize:ep.p.SIZE[10],lineHeight:ep.p.LINE_HEIGHT[14],fontWeight:ep.p.WEIGHTS[400],letterSpacing:"0.3px",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","@media (max-width: 340px)":{fontSize:"8px"}});var eD=r(92776);let eN={type:"spring",stiffness:500,damping:40},eL=e=>{let t,r,i,n,o,s,c=(0,l.c)(20),{icon:d,label:u,selected:A,onClick:h,showNotificationDot:p}=e,m=void 0!==p&&p,E=A?"true":"false";return c[0]!==A?(t=A&&(0,a.jsx)(eI,{layoutId:"bottom-nav-selected-tab-pill",transition:eN}),c[0]=A,c[1]=t):t=c[1],c[2]!==d||c[3]!==u||c[4]!==m?(r=m?(0,a.jsx)(eT,{variant:"dot",overlap:"circular",role:"alert","aria-label":`${u} tab has new updates`,children:d}):d,c[2]=d,c[3]=u,c[4]=m,c[5]=r):r=c[5],c[6]!==r?(i=(0,a.jsx)(e_,{children:r}),c[6]=r,c[7]=i):i=c[7],c[8]!==u?(n=(0,a.jsx)(eO,{children:u}),c[8]=u,c[9]=n):n=c[9],c[10]!==i||c[11]!==n?(o=(0,a.jsxs)(eC,{children:[i,n]}),c[10]=i,c[11]=n,c[12]=o):o=c[12],c[13]!==u||c[14]!==h||c[15]!==A||c[16]!==E||c[17]!==t||c[18]!==o?(s=(0,a.jsxs)(eS,{type:"button",selected:A,"aria-current":E,"aria-label":u,onClick:h,children:[t,o]}),c[13]=u,c[14]=h,c[15]=A,c[16]=E,c[17]=t,c[18]=o,c[19]=s):s=c[19],s},eP=e=>{let t,r,i,n=(0,l.c)(9),{icon:s,label:c,selected:d,onClick:u,showNotificationDot:A}=e,{isFeatureFlagEnabled:h}=(0,o.k)("LOBBY_HAPTIC");n[0]!==s||n[1]!==c||n[2]!==u||n[3]!==d||n[4]!==A?(t=(0,a.jsx)(eL,{icon:s,label:c,selected:d,onClick:u,showNotificationDot:A}),n[0]=s,n[1]=c,n[2]=u,n[3]=d,n[4]=A,n[5]=t):t=n[5];let p=t;return h?(n[6]===Symbol.for("react.memo_cache_sentinel")?(r={flex:"1 1 0%",minWidth:0},n[6]=r):r=n[6],n[7]!==p?(i=(0,a.jsx)(eD.q,{sx:r,hapticPreset:"selection",children:p}),n[7]=p,n[8]=i):i=n[8],i):p};var ej=r(15224);function ek(e){let{id:t}=e;return"REWARDS"===t}let eB=e=>{let t,r,i,n,o=(0,l.c)(17),{vertical:s,activeTab:c,onTabChange:d,hideRedeem:u}=e,A=void 0!==u&&u,p=(0,h.useId)();o[0]!==A||o[1]!==s?(t=(0,eb.Ed)({vertical:s,hideRedeem:A}),o[0]=A,o[1]=s,o[2]=t):t=o[2];let m=t,E=(e=>{let t,r=(0,l.c)(3),i=(0,ej.z)();if(r[0]!==i||r[1]!==e){t=new Set;let n=e.some(ek);i&&n&&t.add("REWARDS"),r[0]=i,r[1]=e,r[2]=t}else t=r[2];return t})(m);if(o[3]!==c||o[4]!==E||o[5]!==d||o[6]!==m){let e;o[8]!==c||o[9]!==E||o[10]!==d?(e=e=>{let{id:t,label:r,icon:i}=e;return(0,a.jsx)(eP,{icon:(0,a.jsx)(i,{}),label:r,selected:c===t,onClick:()=>d(t),showNotificationDot:E.has(t)},t)},o[8]=c,o[9]=E,o[10]=d,o[11]=e):e=o[11],r=m.map(e),o[3]=c,o[4]=E,o[5]=d,o[6]=m,o[7]=r}else r=o[7];return o[12]!==r?(i=(0,a.jsx)(ew,{"data-testid":"bottom-nav",children:r}),o[12]=r,o[13]=i):i=o[13],o[14]!==p||o[15]!==i?(n=(0,a.jsx)(ex.o,{id:p,children:i}),o[14]=p,o[15]=i,o[16]=n):n=o[16],n},eM=(0,q.Ay)("nav",{shouldForwardProp:X.A})(({isPwa:e=!1})=>({position:"fixed",left:0,right:0,bottom:e?50:$.E[12],zIndex:H.M.mobileNavigation,display:"flex",justifyContent:"center",paddingInline:$.E[12],pointerEvents:"none"})),eW=(0,q.Ay)("div")({width:"100%",display:"flex",justifyContent:"center",pointerEvents:"auto"});var eU=r(96636);let eF=()=>{let e,t,r,i=(0,l.c)(7),{vertical:n,activeTab:o,handleTabChange:s,hideRedeem:c}=(()=>{let e,t,r,i,n=(0,l.c)(13),{asPath:a,pathname:o,push:s}=(0,A.useRouter)(),c=(0,es.j)(),{isGcOnlyMode:d}=(0,g.$)();n[0]!==a||n[1]!==o?(e=(({location:e,vertical:t})=>(0,eb.JA)({location:e})?.tab??eU.Tu[t][0].id)({location:a,vertical:t=(0,eb.Pg)({pathname:o}).id}),n[0]=a,n[1]=o,n[2]=e,n[3]=t):(e=n[2],t=n[3]);let u=e;n[4]!==s||n[5]!==c||n[6]!==t?(r=e=>{let r=eb.Tu[t].find(t=>{let{id:r}=t;return r===e})?.paths.at(0);r&&(c({event:eo.lM.CLICKED_NAV_MENU,properties:{menu:r.replace(/^\//,""),source:"mobile_bar"}}),s(r))},n[4]=s,n[5]=c,n[6]=t,n[7]=r):r=n[7];let h=r;return n[8]!==u||n[9]!==h||n[10]!==d||n[11]!==t?(i={vertical:t,activeTab:u,handleTabChange:h,hideRedeem:d},n[8]=u,n[9]=h,n[10]=d,n[11]=t,n[12]=i):i=n[12],i})();i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ec.k_)(),i[0]=e):e=i[0];let{isModoAndroidApp:d,isModoIOSApp:u}=e;i[1]===Symbol.for("react.memo_cache_sentinel")?(t="standalone"===(0,ea.d)()&&!u&&!d,i[1]=t):t=i[1];let h=t;return i[2]!==o||i[3]!==s||i[4]!==c||i[5]!==n?(r=(0,a.jsx)(eM,{"aria-label":"Main",isPwa:h,children:(0,a.jsx)(eW,{children:(0,a.jsx)(eB,{vertical:n,activeTab:o,onTabChange:s,hideRedeem:c})})}),i[2]=o,i[3]=s,i[4]=c,i[5]=n,i[6]=r):r=i[6],r};var eG=r(31884),eV=r(22556),ez=r(18851),eY=r(94088);let eH={src:"/_next/static/media/get-coins-icon.1fbacef6.svg",height:19,width:21,blurWidth:0,blurHeight:0},eK={src:"/_next/static/media/profile.9c879876.svg",height:23,width:20,blurWidth:0,blurHeight:0}
35,eQ={src:"/_next/static/media/lobby-icon.33fa2375.svg",height:20,width:21,blurWidth:0,blurHeight:0},e$={src:"/_next/static/media/mystery-boxes-icon.1e6d5539.svg",height:21,width:23,blurWidth:0,blurHeight:0},eq={src:"/_next/static/media/promotions-icon.504317aa.svg",height:21,width:21,blurWidth:0,blurHeight:0},eX=`clamp(${$.E[8]}, 2vw, ${$.E[20]})`,eZ=(0,q.Ay)(K.a,{shouldForwardProp:X.A})(({isApp:e=!1,isPwa:t=!1,walletType:r})=>{let i=0;return e?i=35:t&&(i=65),{position:"fixed",bottom:e?-20:0,left:0,right:0,height:52+35*!!e,paddingBottom:i,background:(0,ed.YW)(r).with(ez.V.GC,()=>`linear-gradient(to top, ${Q.l.WALLETS.GC.MAIN}55, ${Q.l.WALLETS.GC.MAIN}00 50%)`).with(ez.V.SC,()=>`linear-gradient(to top, ${Q.l.WALLETS.SC.MAIN}55, ${Q.l.WALLETS.SC.MAIN}00 50%)`).with(ez.V.BT,()=>`linear-gradient(to top, ${Q.l.WALLETS.BT.MAIN}55, ${Q.l.WALLETS.BT.MAIN}00 50%)`).otherwise(()=>Q.l.MAGENTA_GRADIENT.RADIAL_NAV),backgroundColor:Q.l.NEUTRAL.DARK,zIndex:H.M.mobileNavigation,boxShadow:Q.l.SHADOWS.APP_BAR_MOBILE_TOP,"&::before":{content:'""',position:"absolute",top:0,width:"100%",height:"1px",background:(0,ed.YW)(r).with(ez.V.GC,()=>Q.l.APP_BAR_MOBILE_HIGHLIGHT_GRADIENT_GC).with(ez.V.SC,()=>Q.l.APP_BAR_MOBILE_HIGHLIGHT_GRADIENT_SC).with(ez.V.BT,()=>Q.l.APP_BAR_MOBILE_HIGHLIGHT_GRADIENT_BT).otherwise(()=>Q.l.APP_BAR_MOBILE_HIGHLIGHT_GRADIENT),zIndex:H.M.mobileNavigation+1}}}),eJ=(0,q.Ay)(K.a)(()=>({width:"100%",display:"grid",gridTemplateColumns:"1fr auto 1fr",columnGap:eX,padding:0,paddingBottom:$.E[5],zIndex:H.M.mobileNavigationGlow+1})),e0=(0,q.Ay)(em.B)(()=>({justifyContent:"space-evenly",alignItems:"center"}));var e1=r(54587),e2=r.n(e1);let e3=(0,q.Ay)(em.B)(()=>({position:"relative",pointerEvents:"auto",touchAction:"pan-y",justifySelf:"center",alignItems:"center"})),e4=(0,q.Ay)(eR.A)({".MuiBadge-badge":{backgroundColor:Q.l.PRIMARY.MAIN}}),e5=(0,h.forwardRef)(({icon:e,label:t,selected:r,onClick:i,showNotificationDot:n=!1},l)=>{let o=(0,a.jsx)(e2(),{src:e,alt:t,width:20,height:20,style:{maxWidth:$.E[20],filter:r?"brightness(0) invert(1)":"none",marginBlock:$.E[5]}});return(0,a.jsxs)(e3,{ref:l,onClick:i,children:[n?(0,a.jsx)(e4,{overlap:"circular",variant:"dot",anchorOrigin:{vertical:"top",horizontal:"right"},children:o}):o,(0,a.jsx)(eh.A,{variant:"caption",color:r?Q.l.NEUTRAL.WHITE:Q.l.NEUTRAL.LIGHT,fontWeight:r?ep.p.WEIGHTS[600]:ep.p.WEIGHTS[400],children:t})]})});e5.displayName="NavigationItem";let e6={src:"/_next/static/media/navigation-light.bt.56444f84.webp",height:165,width:186,blurDataURL:"data:image/webp;base64,UklGRqgAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDMAAAAJBraNJCnaOw8eXcw/NLIZ0+iJiEg4g38NzQA0elVLCpy+rEr8eVCVFZe+pQKWz8YZkAEAVlA4IE4AAACwAQCdASoIAAcAAkA4JbACdAEOuwSAAP6dUuzZDjdqNNtPDJ/hjJXoLjN4OsIVMw3k8IwP/1bf0P/L73Fsv/+oY/Pv6nG6+d2n518AAAA=",blurWidth:8,blurHeight:7},e7={src:"/_next/static/media/navigation-light.gc.7cee3ad9.webp",height:165,width:186,blurDataURL:"data:image/webp;base64,UklGRrAAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSC8AAAAJYBxJtpLvcjJgN//wcO4uSUREKi3+06X6JacKvqLOyC+euwAJuV8bAW6X6JevFwBWUDggWgAAABACAJ0BKggABwACQDglqAJ0a4ACh/sU7IAA/oQVFl3zW7xgN6Vfemmk4bvWlnxSP6/YgkGz2VFBUW/3qA/pdps2b799/RyZZv1bxfG+4GzpQWMqzzWv3TIAAA==",blurWidth:8,blurHeight:7},e8={src:"/_next/static/media/navigation-light.sc.af500e6f.webp",height:165,width:186,blurDataURL:"data:image/webp;base64,UklGRqAAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDMAAAAJYBvZVqqLRU4JRPRfFYTy3bWIiEjvCICryBDfIBehX7GMu3z3cRqkUnKczqykVPlE+gEAVlA4IEYAAACwAQCdASoIAAcAAkA4JaACdADbIJr8APnjFHyqa6dKMbuWEZx5zvC8dlEcJEKQH3gTnrI1rcuB78jlMkGni+U7X8T6QwAA",blurWidth:8,blurHeight:7},e9={src:"/_next/static/media/navigation-light.019c1b51.webp",height:165,width:186,blurDataURL:"data:image/webp;base64,UklGRqgAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSC8AAAAJYBxJtpLvcjJgN//wcO4uSUREKi3+06X6JacKvqLOyC+euwAJuV8bAW6X6JevFwBWUDggUgAAAPABAJ0BKggABwACQDglsAJ0ugACunyUQAD+2r+N5Ugw69Ina28ksw+eCO140H+viSf/+IoHtpQhLjz8BBaa7O7/4uUddJQs31Chw6x36jsAAAA=",blurWidth:8,blurHeight:7},te=(0,q.Ay)(K.a)({position:"absolute",top:0,left:-25,transform:"translateX(var(--indicator-left)) scaleX(var(--indicator-scale))",transformOrigin:"left",zIndex:0,pointerEvents:"none"}),tt=e=>{let t,r,i,n,o=(0,l.c)(11),{left:s,width:c,disableTransition:d,walletType:u}=e;o[0]!==u?(t=(0,ed.YW)(u).with(ez.V.GC,tr).with(ez.V.SC,ti).with(ez.V.BT,tn).otherwise(ta),o[0]=u,o[1]=t):t=o[1];let A=t,h=`${s}px`,p=`${c/160}`,m=void 0!==d&&d?"none":"transform 0.2s cubic-bezier(0.2, 0, 0.2, 1)";o[2]!==h||o[3]!==p||o[4]!==m?(r={"--indicator-left":h,"--indicator-scale":p,transition:m},o[2]=h,o[3]=p,o[4]=m,o[5]=r):r=o[5];let E=r;return o[6]!==A?(i=(0,a.jsx)(e2(),{src:A,alt:"",width:160,height:55}),o[6]=A,o[7]=i):i=o[7],o[8]!==E||o[9]!==i?(n=(0,a.jsx)(te,{style:E,children:i}),o[8]=E,o[9]=i,o[10]=n):n=o[10],n};function tr(){return e7}function ti(){return e8}function tn(){return e6}function ta(){return e9}let tl=e=>(0,ed.YW)(e).with(ed.P.string.startsWith("/modo-boxes"),()=>0).with("/promotions",()=>1).with("/",()=>2).with("/lobby",()=>2).with("/my-profile",()=>3).otherwise(()=>2),to=()=>{let e,t,r,i,n,o,s,c,d,u,p,m,E,f,g,y,b,x,v,R,w,S,I,C,_,T=(0,l.c)(66),{push:O,pathname:D}=(0,A.useRouter)(),{pushDialog:N}=(0,k.A)(),{startModoCashDepositPayment:L}=(0,eY.m)();T[0]!==D?(e=tl(D),T[0]=D,T[1]=e):e=T[1];let[P,j]=(0,h.useState)(e),{indicatorPosition:B,setNavItemRef:M,indicatorInitialized:W}=Y(P),U=(0,es.j)(),F=(0,eV.y)(),G=(0,en.r)();T[2]!==O||T[3]!==U?(t=e=>{U({event:eo.lM.CLICKED_NAV_MENU,properties:{menu:e.replace(/^\//,""),source:"mobile_bar"}}),j(tl(e)),O(e)},T[2]=O,T[3]=U,T[4]=t):t=T[4];let V=t;T[5]!==D?(r=()=>{j(tl(D))},i=[D],T[5]=D,T[6]=r,T[7]=i):(r=T[6],i=T[7]),(0,h.useEffect)(r,i),T[8]===Symbol.for("react.memo_cache_sentinel")?(n=(0,ec.k_)(),T[8]=n):n=T[8];let{isModoAndroidApp:z,isModoIOSApp:H}=n;T[9]===Symbol.for("react.memo_cache_sentinel")?(o="standalone"===(0,ea.d)()&&!H&&!z,T[9]=o):o=T[9];let K=o;T[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eA.N)("1.1.0"),T[10]=s):s=T[10],T[11]!==W||T[12]!==B||T[13]!==F?(c=W&&(0,a.jsx)(tt,{left
35:B.left,width:B.width,disableTransition:!W,walletType:F}),T[11]=W,T[12]=B,T[13]=F,T[14]=c):c=T[14],T[15]!==M?(d=M(0),T[15]=M,T[16]=d):d=T[16];let Q=0===P;T[17]!==V?(u=()=>V("/modo-boxes"),T[17]=V,T[18]=u):u=T[18];let $=G>0;T[19]!==u||T[20]!==$||T[21]!==d||T[22]!==Q?(p=(0,a.jsx)(e5,{ref:d,label:"Boxes",icon:e$,selected:Q,onClick:u,showNotificationDot:$}),T[19]=u,T[20]=$,T[21]=d,T[22]=Q,T[23]=p):p=T[23],T[24]!==M?(m=M(1),T[24]=M,T[25]=m):m=T[25];let q=1===P;T[26]!==V?(E=()=>V("/promotions"),T[26]=V,T[27]=E):E=T[27],T[28]!==m||T[29]!==q||T[30]!==E?(f=(0,a.jsx)(e5,{ref:m,label:"Promotions",icon:eq,selected:q,onClick:E}),T[28]=m,T[29]=q,T[30]=E,T[31]=f):f=T[31],T[32]!==p||T[33]!==f?(g=(0,a.jsxs)(e0,{direction:"row",children:[p,f]}),T[32]=p,T[33]=f,T[34]=g):g=T[34],T[35]!==M?(y=M(2),T[35]=M,T[36]=y):y=T[36];let X=2===P;T[37]!==V?(b=()=>V("/lobby"),T[37]=V,T[38]=b):b=T[38],T[39]!==y||T[40]!==X||T[41]!==b?(x=(0,a.jsx)(e0,{children:(0,a.jsx)(e5,{ref:y,label:"Lobby",icon:eQ,selected:X,onClick:b})}),T[39]=y,T[40]=X,T[41]=b,T[42]=x):x=T[42],T[43]!==M?(v=M(3),T[43]=M,T[44]=v):v=T[44];let Z=3===P;return T[45]!==V?(R=()=>V("/my-profile"),T[45]=V,T[46]=R):R=T[46],T[47]!==v||T[48]!==Z||T[49]!==R?(w=(0,a.jsx)(e5,{ref:v,label:"Profile",icon:eK,selected:Z,onClick:R}),T[47]=v,T[48]=Z,T[49]=R,T[50]=w):w=T[50],T[51]!==N||T[52]!==L||T[53]!==F?(S=(0,a.jsx)(e5,{label:"Store",icon:eH,selected:!1,onClick:()=>(0,ed.YW)(F).with(ez.V.BT,()=>N("box-ticket-store")).with(ez.V.MC,()=>L()).otherwise(()=>N("select-package"))}),T[51]=N,T[52]=L,T[53]=F,T[54]=S):S=T[54],T[55]!==w||T[56]!==S?(I=(0,a.jsxs)(e0,{direction:"row",children:[w,S]}),T[55]=w,T[56]=S,T[57]=I):I=T[57],T[58]!==g||T[59]!==x||T[60]!==I?(C=(0,a.jsxs)(eJ,{children:[g,x,I]}),T[58]=g,T[59]=x,T[60]=I,T[61]=C):C=T[61],T[62]!==C||T[63]!==c||T[64]!==F?(_=(0,a.jsxs)(eZ,{isPwa:K,isApp:s,walletType:F,children:[c,C]}),T[62]=C,T[63]=c,T[64]=F,T[65]=_):_=T[65],_};var ts=r(37437);let tc=(0,h.lazy)(()=>r.e(5112).then(r.bind(r,5112))),td=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.Suspense,{fallback:(0,a.jsx)(h.Fragment,{}),children:(0,a.jsx)(tc,{})}),t[0]=e):e=t[0],e};var tu=r(5028),tA=r(49443),th=r(50272),tp=r(51075),tm=r(25352),tE=r(26515),tf=r(4157);let tg=(0,h.lazy)(()=>r.e(4650).then(r.bind(r,64650))),ty=e=>{let t,r,i=(0,l.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(h.Fragment,{}),i[0]=t):t=i[0],i[1]!==e?(r=(0,a.jsx)(h.Suspense,{fallback:t,children:(0,a.jsx)(tg,{...e})}),i[1]=e,i[2]=r):r=i[2],r};var tb=r(48381),tx=r(89308);let tv=()=>{let e,t,r=(0,l.c)(6),i=(0,tb.c)(tx.Rs),n=(0,tb.c)(tx.Di),o=(0,tb.c)(tx.pj);r[0]!==i?(e=()=>{i(!1)},r[0]=i,r[1]=e):e=r[1];let s=e;return(0,x.O)(o)?(r[2]!==s||r[3]!==o||r[4]!==n?(t=(0,a.jsx)(ty,{isOpen:n,onClose:s,warningType:o}),r[2]=s,r[3]=o,r[4]=n,r[5]=t):t=r[5],t):null};var tR=r(67768),tw=r(65254),tS=r(51855),tI=r(82948),tC=r(91311),t_=r(51375);function tT(){return!d.o.getState().rmwMigrationDialogDismissed}var tO=r(71522);let tD=()=>(0,y.mO)(window.location.pathname);var tN=r(69778),tL=r(74867),tP=r(14553),tj=r(74359),tk=r(14194),tB=r(60528),tM=r(53038),tW=r(91856),tU=r(48215),tF=r(57765);let tG=({endDate:e})=>new Date(e).getTime();var tV=r(56632),tz=r(98685),tY=r(15869),tH=r(67221),tK=r(14702);let tQ=()=>{let e,t=(0,l.c)(2),r=(0,tK.U)();return t[0]!==r?(e=()=>r()&&!(0,tC.I)(window.location.pathname),t[0]=r,t[1]=e):e=t[1],e},t$=["/","/lobby"];var tq=r(65359),tX=r(97002),tZ=r(4216),tJ=r(88849),t0=r(38787),t1=r(20807),t2=r(2455),t3=r(6267),t4=r(71359),t5=r(59974);let t6=r(48469).KV?()=>!1:()=>{let[e]=(0,t5.N)(t4.yc);return e},t7=(0,h.lazy)(()=>r.e(6296).then(r.bind(r,56296))),t8=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.Suspense,{fallback:(0,a.jsx)(h.Fragment,{}),children:(0,a.jsx)(t7,{})}),t[0]=e):e=t[0],e};var t9=r(97072),re=r(4040),rt=r(97295),rr=r(3242),ri=r(69880),rn=r(53932),ra=r(61314),rl=r(9294),ro=r(62011),rs=r(63426),rc=r.n(rs),rd=r(62530),ru=r(91462);let rA=e=>{(0,x.O)(e)&&(e.onopen=null,e.onmessage=null,e.onclose=null,e.close())};class rh{constructor(e){this.handlers=new Set,this.websocket=null,this.kaTimer=null,this.reconnectTimer=null,this.kaTimeoutMs=3e5,this.reconnectAttempt=0,this.connectInFlight=!1,this.isTornDown=!1,this.subscribe=e=>{this.handlers.add(e)},this.unsubscribe=e=>{this.handlers.delete(e)},this.isSubscribedUser=e=>this.credentials.userId===e,this.setGetAccessToken=e=>{this.credentials.getAccessToken=e},this.teardown=()=>{this.isTornDown=!0,this.destroy()},this.destroy=()=>{document.removeEventListener("visibilitychange",this.handleVisibilityChanged),(0,x.O)(this.reconnectTimer)&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,rA(this.websocket),this.websocket=null,this.clearKaTimer(),this.connectInFlight=!1},this.initialize=()=>{if((0,ru.B)()){if(!(0,x.O)(this.realtimeHost))return void(0,rd.FF)("[AppSyncClient] Missing NEXT_PUBLIC_WEBSOCKET_REALTIME_HOSTNAME; skipping AppSync realtime init");document.addEventListener("visibilitychange",this.handleVisibilityChanged),(0,x.O)(this.websocket)||this.connect()}},this.connect=async()=>
35{if(!this.isTornDown&&this.websocket?.readyState!==WebSocket.OPEN&&!this.connectInFlight){(0,x.O)(this.reconnectTimer)&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.connectInFlight=!0;try{let e=await this.credentials.getAccessToken();if(this.isTornDown)return;(0,x.O)(this.websocket)&&(rA(this.websocket),this.websocket=null,this.clearKaTimer());let t=btoa(JSON.stringify({host:this.realtimeHost,Authorization:e})).replaceAll("+","-").replaceAll("/","_").replaceAll("=",""),r=`header-${t}`;this.websocket=new WebSocket(this.websocketUrl,["aws-appsync-event-ws",r]),this.websocket.onopen=()=>{this.websocket?.send(JSON.stringify({type:"connection_init"}))},this.websocket.onclose=()=>{this.isTornDown||(this.websocket=null,this.clearKaTimer(),this.scheduleReconnect())},this.websocket.onmessage=t=>{let r;try{r=JSON.parse(t.data)}catch{(0,rd.FF)("[AppSyncClient] websocket message data failed to decode",{data:t.data});return}if("connection_ack"===r.type){var i;let t,n=Number(r.connectionTimeoutMs);Number.isInteger(n)&&n>0&&(this.kaTimeoutMs=n),this.websocket?.send(JSON.stringify({type:"subscribe",id:"public-channel",channel:"/default/public",authorization:{host:this.realtimeHost,Authorization:e}})),this.websocket?.send(JSON.stringify({type:"subscribe",id:"private-channel",channel:(i=this.credentials.userId,`/default/private/${t=rc().createHash("md5").update(i,"utf8").digest("hex"),BigInt(`0x${t}`).toString(36)}`),authorization:{host:this.realtimeHost,Authorization:e}})),this.resetKaTimers()}else if("subscribe_success"===r.type)this.reconnectAttempt=0;else if("ka"===r.type)this.resetKaTimers();else if("data"===r.type)try{let e=JSON.parse(r.event);this.handlers.forEach(t=>{t(e.type,e)})}catch(e){(0,rd.FF)("[AppSyncClient] failed to decode data frame event payload",{error:e,event:r.event})}else("connection_error"===r.type||"subscribe_error"===r.type||"error"===r.type)&&((0,rd.FF)("[AppSyncClient] websocket protocol error",{type:r.type}),this.websocket?.close())}}catch(e){this.isTornDown||((0,rd.FF)("[AppSyncClient] failed to establish realtime connection",{error:e}),this.scheduleReconnect())}finally{this.connectInFlight=!1}}},this.handleVisibilityChanged=()=>{document.hidden||this.websocket?.readyState!==WebSocket.OPEN&&(this.reconnectAttempt=0,this.connect())},this.resetKaTimers=()=>{this.clearKaTimer(),this.kaTimer=setTimeout(()=>{this.destroy(),this.initialize()},this.kaTimeoutMs)},this.clearKaTimer=()=>{(0,x.O)(this.kaTimer)&&clearTimeout(this.kaTimer),this.kaTimer=null},this.scheduleReconnect=()=>{if(this.isTornDown||(0,x.O)(this.reconnectTimer))return;if(this.reconnectAttempt>=5)return void(0,rd.FF)("[AppSyncClient] giving up realtime reconnect after max attempts");let e=1e3*(0!==this.reconnectAttempt);this.reconnectAttempt+=1,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)},this.credentials=e,this.realtimeHost="realtime.api.modo.us",this.websocketUrl=`wss://${this.realtimeHost}/event/realtime`,this.initialize()}}let rp=null,rm=new Set;var rE=r(31255),rf=r(5898),rg=r(33928),ry=r(59948);let rb=[void 0];function rx(e){let{provider:t}=e;return t}function rv(e){let{id:t}=e;return t}function rR(e){let{name:t,gameSlug:r}=e;return`${t}-${r}`}function rw(e){let{type:t}=e;return"GC"===t}function rS(e){let{type:t}=e;return"SC"===t}var rI=r(72734),rC=r(23202),r_=r(86398),rT=r(36943),rO=r(33585),rD=r(23199),rN=r(73057),rL=r(49576),rP=r(49751),rj=r(4625),rk=r(76900),rB=r(8589),rM=r(10183),rW=r(92631),rU=r(57731),rF=r(16427),rG=r(21285);let rV="low-coin-balance-prompt",rz=()=>{let e,t,r,i,n,o,s,c,d,u,A,p,m=(0,l.c)(24),{pushDialog:E}=(0,b.C)(),{pushDialog:f}=(0,k.A)(),{data:x,isPending:v}=(0,tY.L)(),R=(0,y.jD)(),{closeSnackbar:w}=(0,rM.dh)(),{experiences:S}=(0,g.$)(),I=(0,es.j)();m[0]!==I?(e=()=>{I({event:eo.lg.LOW_COIN_BALANCE_NOTIFICATION_SHOWN})},t=[I],m[0]=I,m[1]=e,m[2]=t):(e=m[1],t=m[2]),(0,h.useEffect)(e,t),m[3]!==w||m[4]!==R||m[5]!==v||m[6]!==x?.promotions||m[7]!==f||m[8]!==E?(r=()=>{v||((w(rV),0===(0,tZ.a)({promotions:x?.promotions??[],isMysteryBoxesPage:R,requireAutomaticTrigger:!1}).length)?f("select-package"):E("flexible-promotion-carousel",{trackingType:"game-coin-recharge"},{isUserInitiated:!0}))},m[3]=w,m[4]=R,m[5]=v,m[6]=x?.promotions,m[7]=f,m[8]=E,m[9]=r):r=m[9];let C=r;m[10]===Symbol.for("react.memo_cache_sentinel")?(i={flexDirection:"row"},m[10]=i):i=m[10],m[11]===Symbol.for("react.memo_cache_sentinel")?(n={flexDirection:"column"},o=(0,a.jsx)(eh.A,{variant:"h4",fontWeight:"bold",children:"Oops! your balance is running low"}),m[11]=n,m[12]=o):(n=m[11],o=m[12]),m[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(eh.A,{variant:"body1",sx:{marginBottom:$.E[10]},children:"Click here for some cool top-up options."}),m[13]=s):s=m[13],m[14]===Symbol.for("react.memo_cache_sentinel")?(c={width:"fit-content",margin:`${$.E[10]} 0`,fontSize:{xs:ep.p.SIZE[12],sm:ep.p.SIZE[14]}},m[14]=c):c=m[14],m[15]!==C||m[16]!==v?(d=(0,a.jsxs)(em.B,{sx:n,children:[o,s,(0,a.jsx)(rF.$,{color:"primary",loading:v,onClick:C,sx:c,children:"Top up your wallet"})]}),m[15]=C,m[16]=v,m[17]=d):d=m[17],m[18]===Symbol.for("react.memo_cache_sentinel")?(u={display:{xs:"none",sm:"block"}},m[18]=u):u=m[18];let _=S?.scLobby.purchase===!0?rU.A:rW.A;return m[19]!==_?(A=(0,a.jsx)(K.a,{sx:u,children:(0,a.jsx)(rG._,{src:_,alt:"",width:100,height:102,unoptimized:!0})}),m[19]=_,m[20]=A):A=m[20],m[21]!==A||m[22]!==d?(p=(0,a.jsxs)(em.B,{sx:i,children:[d,A]}),m[21]=A,m[22]=d,m[23]=p):p=m[23],p};var rY=r(9588);let rH=new Set,rK=Promise.resolve(),rQ=()=>{let{pushDialog:e}=(0,b.C)();return{showGrandPrizeGiveawayEndedDialog:(0,h.useCallback)((t,r)=>{let i=`${M.a3.key}_${t}_${r.entryCoinType}`;if("true"===(0,B.Ri)(i)||rH.has(i))return;rH.add(i);let n=rK,a=()=>{};rK=new Promise(e=>{a=e}),(async()=>{await n;try{let t=e("grand-prize-giveaway-ended",r);if(!t)return void rH.delete(i);let n=await t;(0,x.O)(n)&&"object"==typeof n&&n?.dismissed&&(0,B.TV)(i,"true",M.a3.ttlDays),rH.delete(i)}finally{a()}})()},[e])}};var r$=((i={}).FREE_PLAY="FREE_PLAY",i.PUZZLE_PIECE="PUZZLE_PIECE",i);function rq(){}var rX=r(69836),rZ=r(31258),rJ=r(29599);let r0=[rJ.jy.GC_PLAY_THRESHOLD_AWARD,rJ.jy.GC_PLAY_BOOSTER_THRESHOLD_AWARD];function r1(e){return!r0.includes(e.type)}var r2=r(47784);function r3(e){let{id:t}=e;return t}var r4=r(16137);let r5=()=>{let e,t,r,i,n,s,c,u,p,m,E,f,g,y,v,R,w,S,I,C,_,T,O,D,N,L,P,j,k,B,M,W,U,F,G,V,z,Y,H,K,Q,$,q,X,Z,J,ee,et,er,ei,en,ea,el,eo,es=(0,l.c)(35),{logout:ec,isAuthenticated:eu}=(0,re.A)(),eA=(0,tR.jE)(),eh=(0,tb.c)(tx.Di),ep=(0,tb.c)(tx.Xp),em=(0,tb.c)(tx.hm),{pushDialog:eE}=(0,b.C)(),{data:ef}=(0,tY.L)(),{handleNotificationMessage:eg}=(0,rY.C)(),{handleGiveawayEntriesMessage:ey}=(n=(0,l.c)(2),s=(0,tR.jE)(),n[0]!==s?(i={handleGiveawayEntriesMessage:e=>{let{giveawayId:t,gcEntries:r,scEntries:i}=e,n=e=>{if(!(0,x.O)(e))return e;let n=e.findIndex(e=>e.id===t);
35return n<0?e:[...e.slice(0,n),{...e[n],entries:{gcEntries:r,scEntries:i}},...e.slice(n+1)]};s.setQueryData(rB.$.filteredList("GC"),n),s.setQueryData(rB.$.filteredList("SC"),n)}},n[0]=s,n[1]=i):i=n[1],i);es[0]!==eu?(e={isAuthenticated:eu},es[0]=eu,es[1]=e):e=es[1];let{handleBigWinnersUpdatedMessage:eb}=(e=>{let t,r,i,n=(0,l.c)(7),{isAuthenticated:a}=e,o=void 0!==a&&a,s=(0,tR.jE)();n[0]!==o?(t={isAuthenticated:o},n[0]=o,n[1]=t):t=n[1];let{data:c}=(0,ry.S)(t);n[2]!==c?(r=void 0===c?[]:c,n[2]=c,n[3]=r):r=n[3];let d=r;return n[4]!==s||n[5]!==d?(i={handleBigWinnersUpdatedMessage:e=>{let t=new Set(d.map(rx));rb.forEach(r=>{let i=e.data.filter(e=>(e.experience??rg.I$.SOCIAL)===(r??rg.I$.SOCIAL));0!==i.length&&s.setQueryData(rf.p.list(r),e=>{let r=void 0===e?{GC:[],SC:[]}:e,n=[...r.GC,...r.SC],a=r.GC,l=r.SC,o=new Set(n.map(rv)),s=new Set(n.map(rR)),c=i.filter(e=>{let{id:r,name:i,gameSlug:n,gameProvider:a}=e;return!o.has(r)&&!s.has(`${i}-${n}`)&&t.has(a)}),d=c.filter(rw),u=c.filter(rS);return 0===d.length&&0===u.length?r:{GC:d.length>0?[...d,...a]:a,SC:u.length>0?[...u,...l]:l}})})}},n[4]=s,n[5]=d,n[6]=i):i=n[6],i})(e),{handleLatestMysteryBoxOpeningsUpdatedMessage:ex}=(()=>{let e,t=(0,l.c)(3),r=(0,tR.jE)(),{isAuthenticated:i}=(0,re.A)();return t[0]!==i||t[1]!==r?(e={handleLatestMysteryBoxOpeningsUpdatedMessage:e=>{let t=rt.h.latestOpenings({isAuthenticated:i});void 0!==r.getQueryData(t)&&r.setQueryData(t,t=>{let r=void 0===t?[]:t,i=new Set(r.map(r3));return[...[...e.data.winners].reverse().filter(e=>!i.has(e.id)&&(i.add(e.id),!0)),...r].slice(0,20)})}},t[0]=i,t[1]=r,t[2]=e):e=t[2],e})(),{handleChallengeProgressMessage:ev}=(()=>{let e,t,r,i,n,a,o,s,c,d,u,A,h,p=(0,l.c)(9),{selectedCurrency:m}=(0,rI.e)(),{handleOneOffChallengeProgressMessage:E}=(a=(0,l.c)(4),o=(0,tR.jE)(),a[0]!==o?(i=e=>{let{id:t,requirementId:r,coinType:i,progress:n,state:a}=e;o.setQueryData(tU.V.filteredList(i),e=>{if(!(0,x.O)(e))return e;let i=e.find(e=>e.id===t);if(!(0,x.O)(i))return e;let l=i.rewards.find(e=>e.id===r);if(!(0,x.O)(l))return e;let o=Math.min(n,l.target),s=a===rC.g8.CLAIMED||a===rC.g8.COMPLETED;return e.map(e=>{if(e.id!==t)return e;let i=s?e.rewards.filter(e=>e.id!==r):e.rewards.map(e=>e.id===r?{...e,progress:o,state:a}:e);if(!s||0!==i.length)return{...e,state:e.state===rC.g8.CLAIMED?rC.g8.CLAIMED:a,rewards:i}}).filter(x.O)})},a[0]=o,a[1]=i):i=a[1],s=i,a[2]!==s?(n={handleOneOffChallengeProgressMessage:s},a[2]=s,a[3]=n):n=a[3],n),{handleProgressiveChallengeProgressMessage:f}=(u=(0,l.c)(4),A=(0,tR.jE)(),u[0]!==A?(c=e=>{A.setQueryData(tF.O.filteredList(e.coinType),t=>{if(!(0,x.O)(t))return t;let r=t[0];if(!(0,x.O)(r)||r.id!==e.progressiveChallengeId)return t;let i=(({cachedProgressiveChallenge:e,websocketChallengeProgressMessageParams:{requirementId:t,progress:r,state:i}})=>({...e,levels:e.levels.map(e=>({...e,challenge:{...e.challenge,rewards:e.challenge.rewards.map(e=>e.id===t?{...e,progress:r,state:i}:e)}}))}))({cachedProgressiveChallenge:r,websocketChallengeProgressMessageParams:e});return i===t[0]?t:[i,...t.slice(1)]})},u[0]=A,u[1]=c):c=u[1],h=c,u[2]!==h?(d={handleProgressiveChallengeProgressMessage:h},u[2]=h,u[3]=d):d=u[3],d);p[0]!==m?(e={coinType:m},p[0]=m,p[1]=e):e=p[1];let{data:g}=(0,r_.x)(e),y=(0,tR.jE)(),b=g?.[0]?.id;p[2]!==b||p[3]!==E||p[4]!==f||p[5]!==y?(t=e=>{if((0,x.O)(e.progressiveChallengeId)){if(b===e.progressiveChallengeId)if(e.state===rC.g8.COMPLETED)y.invalidateQueries({queryKey:tF.O.filteredList(e.coinType)});else{if(e.state===rC.g8.CLAIMED)return;f(e)}}else E(e)},p[2]=b,p[3]=E,p[4]=f,p[5]=y,p[6]=t):t=p[6];let v=t;return p[7]!==v?(r={handleChallengeProgressMessage:v},p[7]=v,p[8]=r):r=p[8],r})(),{handleLowCoinBalanceMessage:eR}=(()=>{let e,t,r,i,n=(0,l.c)(11),{enqueueSnackbar:o,closeSnackbar:s}=(0,rM.dh)(),c=(0,tC.N)(),[d,u]=(0,h.useState)(!1);n[0]!==o||n[1]!==d||n[2]!==c?(e=e=>{!c||d||(u(!0),o((0,a.jsx)(rz,{}),{persist:!0,variant:"info",key:rV,preventDuplicate:!0}))},n[0]=o,n[1]=d,n[2]=c,n[3]=e):e=n[3];let A=e,p=(0,tS.Z)(c,c);return n[4]!==s||n[5]!==c||n[6]!==p?(t=()=>{p&&!c&&(s(rV),u(!1))},r=[s,c,p],n[4]=s,n[5]=c,n[6]=p,n[7]=t,n[8]=r):(t=n[7],r=n[8]),(0,h.useEffect)(t,r),n[9]!==A?(i={handleLowCoinBalanceMessage:A},n[9]=A,n[10]=i):i=n[10],i})(),{handleFreePlayWinningsMessage:ew}=(p=(0,l.c)(4),m=(0,rj.z)(rk.Ke),p[0]!==m?(c=e=>{let{walletHasFreePlayCampaignId:t,amount:r}=e,i=parseFloat(r);(Number.isNaN(i)||i<0)&&(0,rd.vV)({message:"[handleFreePlayWinningsMessage] Invalid free play winnings amount received",extra:{amount:r,walletHasFreePlayCampaignId:t}}),m(t,i)},p[0]=m,p[1]=c):c=p[1],E=c,p[2]!==E?(u={handleFreePlayWinningsMessage:E},p[2]=E,p[3]=u):u=p[3],u),{handleFreePlayConsumedMessage:eS}=(()=>{let e,t,r=(0,l.c)(6),{pushDialog:i}=(0,b.C)(),n=(0,tC.N)(),{query:a}=(0,A.useRouter)();r[0]!==n||r[1]!==i||r[2]!==a.freePlay?(e=e=>{n&&"true"===a.freePlay&&i("free-play-campaign-consumed",{walletHasFreePlayCampaignId:e.walletHasFreePlayCampaignId})},r[0]=n,r[1]=i,r[2]=a.freePlay,r[3]=e):e=r[3];let o=e;return r[4]!==o?(t={handleFreePlayConsumedMessage:o},r[4]=o,r[5]=t):t=r[5],t})(),{handleTrustlyExpiredAccountMessage:eI}=(()=>{let e,t=(0,l.c)(2),{enqueueSnackbar:r}=(0,rM.dh)();return t[0]!==r?(e={handleTrustlyExpiredAccountMessage:()=>{r("Your bank connection has expired. Please relink your account to continue using it",{variant:"error"})}},t[0]=r,t[1]=e):e=t[1],e})(),{handleExperienceUpdatedMessage:eC}=(g=(0,l.c)(2),y=(0,tR.jE)(),g[0]!==y?(f={handleExperienceUpdatedMessage:()=>{y.invalidateQueries({queryKey:rN.K.list()}),y.invalidateQueries({queryKey:rN.K.listV2()}),y.invalidateQueries({queryKey:ri.C.list()}),y.invalidateQueries({queryKey:rD.x.get}),setTimeout(()=>{y.invalidateQueries({queryKey:rT.E.coupon})},Math.floor(6e4*Math.random()))}},g[0]=y,g[1]=f):f=g[1],f),{handlePlayerVipPointsUpdatedMessage:e_}=(R=(0,l.c)(2),w=(0,tR.jE)(),R[0]!==w?(v={handlePlayerVipPointsUpdatedMessage:e=>{let{vipPoints:t}=e;w.setQueryData(r2.y.status(),e=>{if(!e)return e;let r=e.projectedVipRank.next?.lowerBound;return(0,x.O)(r)&&t>=r?(w.invalidateQueries({queryKey:r2.y.status()}),e):{...e,vipPoints:t}})}},R[0]=w,R[1]=v):v=R[1],v),{handleStarPlayProgressMessage:eT}=(C=(0,l.c)(4),_=(0,tR.jE)(),C[0]!==_?(S=e=>{let{starsAwarded:t,...r}=e;_.setQueryData(rZ._.playProgress("GC"),e=>({...(0,x.O)(r.timestamp)&&(0,x.O)(e?.timestamp)&&r.timestamp<e.timestamp?e:r,starsAwarded:t,fillsData:r.fillsData,awardId:r.awardId,updateId:r.awardId??crypto.randomUUID()}))},C[0]=_,C[1]=S):S=C[1],T=S,C[2]!==T?(I={handleStarPlayProgressMessage:T},C[2]=T,C[3]=I):I=C[3],I),{handleStarWalletUpdatedMessage:eO}=(N=(0,l.c)(4),L=(0,tR.jE)(),N[0]!==L?(O=async e=>{let{balance:t,transactions:r}=e;(!(0,x.O)(r)||0===r.length||r.some(r1))&&L.setQueryData(rZ._.wallet(),e=>e?{...e,balance:t}:e),await L.invalidateQueries({queryKey:rZ._.statistics()})},N[0]=L,N[1]=O):O=N[1],P=O,N[2]!==P?(D={handleStarWalletUpdatedMessage:P},N[2]=P,N[3]=D):D=N[3],D),{handleWalletUpdatedMessage:eD}=(B=(0,l.c)(4),M=(0,tR.jE)(),B[0]!==M?(j=e=>{let{type:t,balance:r,redeemable:i}=e;M.setQueryData(tw.y.list(),e=>{if(!e)return e;let n=!1,a=e.map(e=>e.type!==t?e:"redeemable"in e?e.balance===r&&e.redeemable===i?e:(n=!0,{...e,balance:r,redeemable:i}):e.balance===r?e:(n=!0,{...e,balance:r}));return n?a:e})},B[0]=M,B[1]=j):j=B[1],W=j,B[2]!==W?(k={handleWalletUpdatedMessage:W},B[2]=W,B[3]=k):k=B[3],k),{handleCommunityCouponUpdatedMessage:eN}=(F=(0,l.c)(2),G=(0,tR.jE)(),F[0]!==G?(U={handleCommunityCouponUpdatedMessage:()=>{setTimeout(()=>{G.invalidateQueries({queryKey:rT.E.coupon})},(0,rO.R)({max:6e4}))}},F[0]=G,F[1]=U):U=F[1],U),{handleFeatureFlagUpdatedMessage:eL}=(()=>{let e,t,r,i,n,a=(0,l.c)(10),o=(0,tR.jE)(),{updateFeatureFlag:s}=(0,d.o)(rP.cq);a[0]!==s?(e=e=>s("STORE_MAINTENANCE",e),a[0]=s,a[1]=e):e=a[1];let c=e;a[2]!==s?(t=e=>s("USER_NOTIFICATIONS",e),a[2]=s,a[3]=t):t=a[3];let u=t,A=(0,h.useRef)(null);return a[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>()=>{A.current&&clearTimeout(A.current)},i=[],a[4]=r,a[5]=i):(r=a[4],i=a[5]),(0,h.useEffect)(r,i),a[6]!==o||a[7]!==c||a[8]!==u?(n={handleFeatureFlagUpdatedMessage:e=>{(0,ed.YW)(e).with({name:"STORE_MAINTENANCE"},e=>c(!!e.enabled)).with({name:"USER_NOTIFICATIONS"},e=>u(!!e.enabled)).otherwise(()=>{A.current||(A.current=setTimeout(()=>{o.invalidateQueries({queryKey:rL.F.list(!0)}),A.current=null},(0,rO.R)({max:12e4})))})}},a[6]=o,a[7]=c,a[8]=u,a[9]=n):n=a[9],n})(),{handleLiveEventEndedMessage:eP}=(z=(0,l.c)(2),Y=(0,tR.jE)(),z[0]!==Y?(V={handleLiveEventEndedMessage:e=>{let{giveawayId:t}=e,r=e=>{if(!(0,x.O)(e))return e;let r=e.filter(e=>e.id!==t);return r.length===e.length?e:r};Y.setQueryData(rB.$.filteredList(ez.h.GC),r),Y.setQueryData(rB.$.filteredList(ez.h.SC),r)}},z[0]=Y,z[1]=V):V=z[1],V),{handleLiveEventUpdatedMessage:ej}=(K=(0,l.c)(2),Q=(0,tR.jE)(),K[0]!==Q?(H={handleLiveEventUpdatedMessage:e=>{setTimeout(()=>{Q.invalidateQueries({queryKey:rB.$.list()})},(0,rO.R)({max:6e4}))}},K[0]=Q,K[1]=H):H=K[1],H),{handlePrizeDrawGiveawayCompletedMessage:ek}=(()=>{let e,t,r=(0,l.c)(6),{showGrandPrizeGiveawayEndedDialog:i}=rQ(),{isFeatureFlagEnabled:n}=(0,o.k)("PRIZE_DRAW_TOURNAMENTS"),a=(0,tC.N)();r[0]!==n||r[1]!==a||r[2]!==i?(e=e=>{let{giveawayId:t,entryCoinType:r,totalEntries:l,rank:o}=e;!n||a||0!==l&&i(t,{entryCoinType:r,totalEntries:l,rank:o??void 0})},r[0]=n,r[1]=a,r[2]=i,r[3]=e):e=r[3];let s=e;return r[4]!==s?(t={handlePrizeDrawGiveawayCompletedMessage:s},r[4]=s,r[5]=t):t=r[5],t})(),{handlePuzzleSeriesStartedMessage:eB}=(()=>{let e,t,r=(0,l.c)(6),i=(0,tR.jE)(),{data:n,isLoading:a}=(0,tP.p)();r[0]!==n||r[1]!==a||r[2]!==i?(e=e=>{a||(0,x.O)(n)||setTimeout(()=>{i.invalidateQueries({queryKey:tM.C.activeSeries()}),i.invalidateQueries({queryKey:ri.P.all}),i.invalidateQueries({queryKey:ri.C.all})},(0,rO.R)({max:6e4}))},r[0]=n,r[1]=a,r[2]=i,r[3]=e):e=r[3];let o=e;return r[4]!==o?(t={handlePuzzleSeriesStartedMessage:o},r[4]=o,r[5]=t):t=r[5],t})(),{handlePuzzleSeriesEndedMessage:eM}=(0,rX.C)(),{handlePuzzleSeriesCompletedMessage:eW}=(X=(0,l.c)(4),Z=(0,tR.jE)(),X[0]!==Z?($=e=>{Z.invalidateQueries({queryKey:tM.C.activeSeries()}),Z.invalidateQueries({queryKey:ri.P.all}),Z.invalidateQueries({queryKey:ri.C.all})},X[0]=Z,X[1]=$):$=X[1],J=$,X[2]!==J?(q={handlePuzzleSeriesCompletedMessage:J},X[2]=J,X[3]=q):q=X[3],q),{handlePuzzleCompletedMessage:eU}=(er=(0,l.c)(4),ei=(0,tR.jE)(),er[0]!==ei?(ee=e=>{ei.invalidateQueries({queryKey:tM.Q.listPuzzleCompletionRewards()})},er[0]=ei,er[1]=ee):ee=er[1],en=ee,er[2]!==en?(et={handlePuzzleCompletedMessage:en},er[2]=en,er[3]=et):et=er[3],et),{handlePromotionPostPurchaseFulfilledMessage:eF}=(el=(0,l.c)(2),eo=(0,tR.jE)(),el[0]!==eo?(ea={handlePromotionPostPurchaseFulfilledMessage:e=>{let{type:t}=e;(0,ed.YW)(t).with(r$.PUZZLE_PIECE,()=>{eo.invalidateQueries({queryKey:tM.Q.listPuzzlePieceRewards()})}).with(r$.FREE_PLAY,()=>
35{eo.invalidateQueries({queryKey:tq.U.pendingList()})}).otherwise(rq)}},el[0]=eo,el[1]=ea):ea=el[1],ea);return es[2]!==em||es[3]!==eb||es[4]!==ev||es[5]!==eN||es[6]!==eC||es[7]!==eL||es[8]!==eS||es[9]!==ew||es[10]!==ey||es[11]!==ex||es[12]!==eP||es[13]!==ej||es[14]!==eR||es[15]!==eg||es[16]!==e_||es[17]!==ek||es[18]!==eF||es[19]!==eU||es[20]!==eW||es[21]!==eM||es[22]!==eB||es[23]!==eT||es[24]!==eO||es[25]!==eI||es[26]!==eD||es[27]!==eh||es[28]!==ec||es[29]!==ef||es[30]!==eE||es[31]!==eA||es[32]!==ep?(t=()=>{var e;return e=(e,t)=>{(0,ed.YW)(t).with({type:r4.n.PLAYER_NOTIFICATION_CREATED},e=>{let{data:t}=e;return eg({notification:t})}).with({type:r4.n.WALLET_UPDATED},e=>{let{data:t}=e;return eD(t)}).with({type:r4.n.PLAYER_GIVEAWAY_ENTRIES_UPDATED},e=>{let{data:t}=e;return ey(t)}).with({type:r4.n.FEATURE_FLAG_UPDATED},e=>eL(e)).with({type:r4.n.LOW_SC_BALANCE},()=>{setTimeout(()=>{if((0,x.O)((0,tH.n)(ef)))eE("best-package-discount");else{if(eh)return;ep(r4.n.LOW_SC_BALANCE)}},(0,rE.$)(em))}).with({type:r4.n.BIG_WINNER_LEADERBOARD_UPDATED},e=>eb(e)).with({type:r4.n.RECENT_BOX_WINNERS},e=>ex(e)).with({type:r4.n.LOGOUT},()=>ec()).with({type:r4.n.PLAYER_CHALLENGE_PROGRESS_UPDATED},e=>{let{data:t}=e;return ev(t)}).with({type:r4.n.LOW_COIN_BALANCE},e=>{let{data:t}=e;return eR(t)}).with({type:r4.n.FREE_PLAY_WINNING},e=>{let{data:t}=e;return ew(t)}).with({type:r4.n.USER_PROMOTION_UPDATED},()=>{eA.invalidateQueries({queryKey:ri.C.list()}),eA.invalidateQueries({queryKey:ri.P.all})}).with({type:r4.n.PURCHASE_APPROVED},()=>{eA.invalidateQueries({queryKey:ra.n.all}),eA.invalidateQueries({queryKey:tw.y.all})}).with({type:r4.n.FREE_PLAYS_CONSUMED},e=>{let{data:t}=e;return eS(t)}).with({type:r4.n.PAYMENT_CARD_ADDED},()=>eA.invalidateQueries({queryKey:rn.n.list()})).with({type:r4.n.ID_VERIFICATION_STATUS_UPDATED},()=>{eA.invalidateQueries({queryKey:t9.a.detail()}),eA.invalidateQueries({queryKey:ro.t.status})}).with({type:r4.n.SSN_VERIFICATION_STATUS_UPDATED},()=>{eA.invalidateQueries({queryKey:t9.a.detail()}),eA.invalidateQueries({queryKey:rl.tG.all})}).with({type:r4.n.TRUSTLY_BANK_ACCOUNT_EXPIRED},()=>eI()).with({type:r4.n.EXPERIENCE_UPDATED},()=>eC()).with({type:r4.n.PLAYER_VIP_POINTS_UPDATED},e=>{let{data:t}=e;return e_(t)}).with({type:r4.n.PLAYER_STAR_PROGRESS_UPDATED},e=>{let{data:t}=e;return eT(t)}).with({type:r4.n.COMMUNITY_COUPON_UPDATED},()=>eN()).with({type:r4.n.LIVE_EVENT_UPDATED},e=>{let{data:t}=e;return ej(t)}).with({type:r4.n.LIVE_EVENT_ENDED},e=>{let{data:t}=e;return eP(t)}).with({type:r4.n.PRIZE_DRAW_GIVEAWAY_COMPLETED},e=>{let{data:t}=e;return ek(t)}).with({type:r4.n.STAR_WALLET_UPDATED},e=>{let{data:t}=e;return eO(t)}).with({type:r4.n.PUZZLE_SERIES_STARTED},e=>{let{data:t}=e;return eB(t)}).with({type:r4.n.PUZZLE_SERIES_ENDED},e=>{let{data:t}=e;return eM(t)}).with({type:r4.n.PUZZLE_SERIES_COMPLETED},e=>{let{data:t}=e;return eW(t)}).with({type:r4.n.PUZZLE_COMPLETED},e=>{let{data:t}=e;return eU(t)}).with({type:r4.n.INVENTORY_UPDATED},e=>{let{data:t}=e;t.items.every(r6)||(eA.invalidateQueries({queryKey:rt.h.inventoryItems()}),eA.invalidateQueries({queryKey:rt.h.allStats()}),eA.invalidateQueries({queryKey:tw.y.list()}))}).with({type:r4.n.PROMOTION_POST_PURCHASE_FULFILLED},e=>{let{data:t}=e;return eF(t)}).otherwise(r7)},rm.add(e),rp?.subscribe(e),()=>{var t;return t=e,void(rm.delete(t),rp?.unsubscribe(t))}},r=[em,eb,ev,eN,eC,eL,eS,ew,ey,ex,eP,ej,eR,eg,e_,ek,eF,eU,eW,eM,eB,eT,eO,eI,eD,eh,ec,ef,eE,eA,ep],es[2]=em,es[3]=eb,es[4]=ev,es[5]=eN,es[6]=eC,es[7]=eL,es[8]=eS,es[9]=ew,es[10]=ey,es[11]=ex,es[12]=eP,es[13]=ej,es[14]=eR,es[15]=eg,es[16]=e_,es[17]=ek,es[18]=eF,es[19]=eU,es[20]=eW,es[21]=eM,es[22]=eB,es[23]=eT,es[24]=eO,es[25]=eI,es[26]=eD,es[27]=eh,es[28]=ec,es[29]=ef,es[30]=eE,es[31]=eA,es[32]=ep,es[33]=t,es[34]=r):(t=es[33],r=es[34]),(0,h.useEffect)(t,r),null};function r6(e){return e.state===rr.rh.REDEEMING}function r7(){return null}var r8=r(59744),r9=r(22256),ie=r(31339),it=r(62368);let ir=e=>e.type===it.FX.GIVEAWAY&&!(0,x.O)(e.claimedAt)&&!(0,ie.p)(e)&&(0,r9.W)(e.metadata)&&e.metadata.winnerType===r8.F_.PRIZE_DRAW;var ii=r(79745),ia=r(32104);function il(e){return e.type===it.FX.CHALLENGE&&(0,ia.U)(e.metadata)&&"number"==typeof e.metadata.level?e.metadata.level:null}var io=r(90862),is=r(17068),ic=r(86898),id=r(63504),iu=r(56037);let iA={all:["prize-draw-ended"],filteredList:e=>[...iA.all,e]};var ih=r(98132),ip=r(17053);let im=()=>{let e,t,r=(0,l.c)(4),{user:i}=(0,c.J)(),{enqueueSnackbar:n}=(0,rM.dh)(),a=!!i?.isKYCVerificationRequired&&i?.verifications.IDENTITY!=="APPROVED";return r[0]!==n||r[1]!==a?(e=()=>{a&&n("Some features on your account have been limited. Please go through our account verification process to continue using all of Modo's features.",{variant:"error",preventDuplicate:!0,persist:!0})},t=[a,n],r[0]=n,r[1]=a,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,h.useEffect)(e,t),null},iE=(0,q.Ay)(K.a,{shouldForwardProp:X.A})(({shouldDisplayMobileNavigation:e,isGamePlayPath:t})=>({...e&&{marginBlock:$.E[15]},...t&&{minHeight:0},flex:1,display:"flex",flexDirection:"column"})),ig=()=>{let e,t,r=(0,l.c)(6),{enqueueSnackbar:i}=(0,rM.dh)(),{user:n}=(0,c.J)(),{pushDialog:o}=(0,k.A)(),s=n?.verifications.SSN==="RESUBMISSION_REQUESTED",d=(n?.requiredSsnScope??"FULL")==="LAST_4";return r[0]!==i||r[1]!==d||r[2]!==o||r[3]!==s?(e=()=>{s&&i(d?"Some features on your account have been limited. Please submit the last 4 digits of your SSN (Social Security Number) to continue using all of Modo's features.":"Some features on your account have been limited. Please submit your SSN (Social Security Number) to continue using all of Modo's features.",{variant:"error",preventDuplicate:!0,persist:!0,action:(0,a.jsx)(rF.$,{color:"info",variant:"outlined",fullWidth:!0,onClick:()=>o("ssn-verification"),children:"Verify"})})},t=[s,d,i,o],r[0]=i,r[1]=d,r[2]=o,r[3]=s,r[4]=e,r[5]=t):(e=r[4],t=r[5]),(0,h.useEffect)(e,t),null},iy=e=>{let t,r,i,n,u,p,m,E,R,C,T,z,Y,H,K,Q,$,q,X,Z,J,ee,et,er,ei,en,ea,el,eo,es,ec,ed,eu,eA,eh=(0,l.c)(43),{children:ep}=e;er=(0,l.c)(11),ei=(0,A.useRouter)(),en=(0,tb.c)(tx.hm),ea=(0,tb.c)(tx.L6),el=(0,tR.jE)(),eo=!!(0,tS.Z)(en),er[0]!==ei.pathname?(X=ei.pathname.includes("/play"),er[0]=ei.pathname,er[1]=X):X=er[1],es=X,er[2]!==es||er[3]!==ea?(Z=()=>{es||ea(void 0)},J=[es,ea],er[2]=es,er[3]=ea,er[4]=Z,er[5]=J):(Z=er[4],J=er[5]),(0,h.useEffect)(Z,J),er[6]!==en||er[7]!==el||er[8]!==eo?(ee=()=>
35{eo&&!en&&el.invalidateQueries({queryKey:tw.y.list()})},et=[el,en,eo],er[6]=en,er[7]=el,er[8]=eo,er[9]=ee,er[10]=et):(ee=er[9],et=er[10]),(0,h.useEffect)(ee,et);let{isSuccess:em}=(0,tY.L)();(0,tu.H)(),(()=>{let e,t,r,i,n=(0,l.c)(23),{pushDialog:a}=(0,b.C)();n[0]===Symbol.for("react.memo_cache_sentinel")?(e={},n[0]=e):e=n[0];let{data:s,isLoading:c}=(0,v.k)(e),{isLoading:d,experiences:u}=(0,g.$)(),{isFeatureFlagEnabled:A}=(0,o.k)("ONBOARDING_V2_SIGNUP"),p=(0,S.D)(),m=w(),E=(0,y.jD)();n[1]!==s?(t=(0,x.O)(s)&&(0,f.I)(s),n[1]=s,n[2]=t):t=n[2];let R=t;n[3]!==u?.status||n[4]!==m||n[5]!==R||n[6]!==c||n[7]!==d||n[8]!==E||n[9]!==p||n[10]!==A||n[11]!==a?(r=()=>{c||d||u?.status==="unknown"||p||!m||E||R&&!A&&a("welcome-bonus")},n[3]=u?.status,n[4]=m,n[5]=R,n[6]=c,n[7]=d,n[8]=E,n[9]=p,n[10]=A,n[11]=a,n[12]=r):r=n[12],n[13]!==u||n[14]!==m||n[15]!==R||n[16]!==c||n[17]!==d||n[18]!==E||n[19]!==p||n[20]!==A||n[21]!==a?(i=[R,a,c,u,d,A,p,m,E],n[13]=u,n[14]=m,n[15]=R,n[16]=c,n[17]=d,n[18]=E,n[19]=p,n[20]=A,n[21]=a,n[22]=i):i=n[22],(0,h.useEffect)(r,i)})(),(()=>{let e,t,r,i,n,a=(0,l.c)(13),{pushDialog:s}=(0,b.C)(),{isFeatureFlagEnabled:c}=(0,o.k)("ONBOARDING_V2_SIGNUP");a[0]!==c?(e={enabled:c},a[0]=c,a[1]=e):e=a[1];let{data:d}=(0,tf.F)(e),{experiences:u,isGcOnlyMode:A}=(0,g.$)(),p=w(),m=(0,y.jD)();a[2]!==u?(t=(0,x.O)(u)&&"unknown"!==u.status,a[2]=u,a[3]=t):t=a[3];let E=t,f=u?.scLobby.purchase===!0;a[4]!==d?(r=(0,x.O)(d)&&!d.isClaimed,a[4]=d,a[5]=r):r=a[5];let v=r,R=c&&!m&&p&&E&&v;a[6]!==R||a[7]!==A||a[8]!==f||a[9]!==s||a[10]!==d?(i=()=>{R&&s("welcome-bonus-v2",{gcAmount:d.gcAmount,scAmount:f?d.scAmount:0,isGcOnlyMode:A})},n=[R,s,d,f,A],a[6]=R,a[7]=A,a[8]=f,a[9]=s,a[10]=d,a[11]=i,a[12]=n):(i=a[11],n=a[12]),(0,h.useEffect)(i,n)})(),(()=>{let e,t,r,i=(0,l.c)(16),{pushDialog:n}=(0,b.C)(),{data:a,isLoading:s}=(0,v.k)(),{isLoading:c,experiences:d}=(0,g.$)(),{isFeatureFlagEnabled:u,isFeatureFlagLoading:A}=(0,o.k)("ONBOARDING_V2_SIGNUP"),p=(0,y.jD)();i[0]!==a?(e=(0,x.O)(a)&&(0,f.I)(a),i[0]=a,i[1]=e):e=i[1];let m=e,E=s||c||A;i[2]!==d?.status||i[3]!==m||i[4]!==E||i[5]!==p||i[6]!==u||i[7]!==n?(t=()=>{!u||E||d?.status==="unknown"||!m||p||n("daily-bonus-streak")},i[2]=d?.status,i[3]=m,i[4]=E,i[5]=p,i[6]=u,i[7]=n,i[8]=t):t=i[8],i[9]!==d||i[10]!==m||i[11]!==E||i[12]!==p||i[13]!==u||i[14]!==n?(r=[n,E,m,d,u,p],i[9]=d,i[10]=m,i[11]=E,i[12]=p,i[13]=u,i[14]=n,i[15]=r):r=i[15],(0,h.useEffect)(t,r)})(),(()=>{let e,t,r=(0,l.c)(30),{pushDialog:i}=(0,b.C)(),n=(0,tR.jE)(),a=(0,tB.f)(),{experiences:s,isLoading:c}=(0,g.$)(),{data:u,isLoading:p}=(0,tY.L)(),{query:m}=(0,A.useRouter)(),E=m.dialog,f=!c&&s?.status===t0.d.KNOWN,v=(0,y.jD)(),{isFeatureFlagEnabled:R,isFeatureFlagLoading:I}=(0,o.k)("CUSTOM_PROMOTION_MODAL"),{pushDialog:C}=(0,k.A)(),_=tQ(),T=(0,S.D)(),O=w();r[0]!==E||r[1]!==O||r[2]!==R||r[3]!==I||r[4]!==f||r[5]!==p||r[6]!==v||r[7]!==T||r[8]!==u?.promotions||r[9]!==C||r[10]!==i||r[11]!==n||r[12]!==a||r[13]!==_?(e=()=>{if(T||!O)return;let e=()=>"true"!==sessionStorage.getItem(th.IW)&&_();if(!(0,x.O)(E)&&!p&&!I&&f&&!v&&"true"!==sessionStorage.getItem(th.QN)&&_()){(0,tE.w)();let t=(0,tZ.a)({promotions:u?.promotions??[],isMysteryBoxesPage:!1});R&&t.length>0?(async()=>{for(let r of t){if(!e()||(0,tJ.f4)(d.o.getState()))break;await (0,tX.m)({promotionId:r.id,entryPoint:"auto-pop-up",queryClient:n,sendRequest:a,pushDialog:i,validate:_})}})():C("select-package",{},{validate:_})}},r[0]=E,r[1]=O,r[2]=R,r[3]=I,r[4]=f,r[5]=p,r[6]=v,r[7]=T,r[8]=u?.promotions,r[9]=C,r[10]=i,r[11]=n,r[12]=a,r[13]=_,r[14]=e):e=r[14];let D=u?.promotions;r[15]!==E||r[16]!==O||r[17]!==R||r[18]!==I||r[19]!==f||r[20]!==p||r[21]!==v||r[22]!==T||r[23]!==C||r[24]!==i||r[25]!==n||r[26]!==a||r[27]!==D||r[28]!==_?(t=[E,i,n,a,D,p,f,v,R,T,O,I,C,_],r[15]=E,r[16]=O,r[17]=R,r[18]=I,r[19]=f,r[20]=p,r[21]=v,r[22]=T,r[23]=C,r[24]=i,r[25]=n,r[26]=a,r[27]=D,r[28]=_,r[29]=t):t=r[29],(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(5),{isLoading:i}=(0,c.J)(),n=w(),{replaceDialog:a}=(0,k.A)(),{isFeatureFlagEnabled:s,isFeatureFlagLoading:d}=(0,o.k)("ONBOARDING_V2_SIGNUP"),u=!i&&!d&&!n;r[0]!==s||r[1]!==u||r[2]!==a?(e=()=>{if(u&&!s&&(!(0,tA.V)()||"true"!==sessionStorage.getItem(th.XQ))){a("onboarding-form");try{sessionStorage.setItem(th.XQ,"true")}catch{}}},t=[u,s,a],r[0]=s,r[1]=u,r[2]=a,r[3]=e,r[4]=t):(e=r[3],t=r[4]),(0,h.useEffect)(e,t)})(),(0,tp.s)(),(()=>{let e,t,r=(0,l.c)(4),{user:i,isLoading:n}=(0,c.J)();r[0]!==n||r[1]!==i?(e=()=>{n||!(0,x.O)(i)||i.verifications.ONBOARDING!==s.hn.APPROVED&&((0,tE.w)(),(0,tm.r)())},t=[n,i],r[0]=n,r[1]=i,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(16),{isLoading:i,isGcOnlyMode:n,experiences:a}=(0,g.$)(),{pushDialog:o}=(0,b.C)(),s=(0,tz.useGlobalStore)(F.Al),{setGcOnlyReentryDialogShown:c}=(0,tz.useGlobalStore)(F.X7),d=(0,y.jD)();r[0]!==a?.status||r[1]!==s||r[2]!==n||r[3]!==i||r[4]!==d||r[5]!==o||r[6]!==c?(e=()=>{i||a?.status==="unknown"||d||!s&&n&&(c(!0),o("gc-only-reentry"))},r[0]=a?.status,r[1]=s,r[2]=n,r[3]=i,r[4]=d,r[5]=o,r[6]=c,r[7]=e):e
35=r[7],r[8]!==a||r[9]!==s||r[10]!==n||r[11]!==i||r[12]!==d||r[13]!==o||r[14]!==c?(t=[s,a,n,i,d,o,c],r[8]=a,r[9]=s,r[10]=n,r[11]=i,r[12]=d,r[13]=o,r[14]=c,r[15]=t):t=r[15],(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(4),{isFeatureFlagEnabled:i,isFeatureFlagLoading:n}=(0,o.k)("RMW_MIGRATION"),a=(0,y.jD)(),s=(0,d.o)(t_.D5),{pushDialog:c}=(0,b.C)(),u=(0,tC.N)(),A=(0,h.useRef)(!1),p=!n&&i&&!s&&!u&&a;r[0]!==c||r[1]!==p?(e=()=>{let e=(0,_.Ys)().isSameOrAfter((0,_.Ys)("2026-11-01T00:00:00-04:00"));if(!p||A.current||e)return;let t=c("modo-cash-migration-announcement",void 0,{validate:tT});(0,x.O)(t)&&(A.current=!0)},t=[c,p],r[0]=c,r[1]=p,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r,i=(0,l.c)(6),{data:n}=(0,N.q)(),{pushDialog:a}=(0,b.C)();i[0]!==n?(e=n?.some(e=>{var t;let r,i,n,a,l;return!(0,x.O)(e.claimedAt)&&!(0,ie.p)(e)&&(r=(t=e).type===it.FX.COMMUNITY_COUPON||(0,id.u)(t)||(0,ip.Z)(t),i=t.type===it.FX.CHALLENGE&&!(0,ii.yu)(t)||(0,is.M)(t),n=t.type===it.FX.REFERRAL&&t.starsAmount>0,a=(0,ii.yu)(t),l=ir(t),!r&&!i&&!n&&!a&&!l)}),i[0]=n,i[1]=e):e=i[1];let o=e;i[2]!==o||i[3]!==a?(t=()=>{(0,x.O)(o)&&o&&a("click-n-claim-v2")},r=[o,a],i[2]=o,i[3]=a,i[4]=t,i[5]=r):(t=i[4],r=i[5]),(0,h.useEffect)(t,r)})(),(()=>{let e,t,r,i=(0,l.c)(9),{pushDialog:n}=(0,b.C)(),{selectedCurrency:a}=(0,rI.e)(),s=(0,d.o)(ih.iJ),{isFeatureFlagEnabled:c}=(0,o.k)("PRIZE_DRAW_TOURNAMENTS"),u=(0,tC.N)();i[0]!==s||i[1]!==a?(e=s?.find(e=>{let{winnerType:t,entryCoinType:r}=e;return t===r8.F_.PRIZE_DRAW&&r===a}),i[0]=s,i[1]=a,i[2]=e):e=i[2];let A=e;i[3]!==A||i[4]!==c||i[5]!==u||i[6]!==n?(t=()=>{if(u||!c||!(0,x.O)(A)||!(0,x.O)(A.entryCoinType)||!(0,x.O)(A.startDate)||A.state!==r8.kJ.ACTIVE||(0,_.Ys)().isBefore((0,_.Ys)(A.startDate)))return;let e=`${M.Pd.key}_${A.id}`;"true"===(0,B.Ri)(e)||(async()=>{let t=await n("prize-draw-giveaway-started",{giveawayId:A.id,entryCoinType:A.entryCoinType});(0,x.O)(t)&&"object"==typeof t&&t?.dismissed&&(0,B.TV)(e,"true",M.Pd.ttlDays)})()},r=[n,c,A,u],i[3]=A,i[4]=c,i[5]=u,i[6]=n,i[7]=t,i[8]=r):(t=i[7],r=i[8]),(0,h.useEffect)(t,r)})(),(()=>{let e,t,r,i=(0,l.c)(10),{showGrandPrizeGiveawayEndedDialog:n}=rQ(),{selectedCurrency:a}=(0,rI.e)(),{isFeatureFlagEnabled:s}=(0,o.k)("PRIZE_DRAW_TOURNAMENTS"),c=(0,tC.N)(),d=s&&!c;i[0]!==a||i[1]!==d?(e={enabled:d,coinType:a},i[0]=a,i[1]=d,i[2]=e):e=i[2];let{data:u}=(e=>{let t,r,i,n=(0,l.c)(9),{enabled:a,coinType:o}=e,s=(0,tB.f)();return n[0]!==o?(t=iA.filteredList(o),n[0]=o,n[1]=t):t=n[1],n[2]!==o||n[3]!==s?(r=async()=>{let{data:e}=await s({url:`${iu.M}/${o}`});return e},n[2]=o,n[3]=s,n[4]=r):r=n[4],n[5]!==a||n[6]!==t||n[7]!==r?(i={enabled:a,queryKey:t,refetchOnWindowFocus:!1,queryFn:r},n[5]=a,n[6]=t,n[7]=r,n[8]=i):i=n[8],(0,tj.I)(i)})(e);i[3]!==s||i[4]!==c||i[5]!==u||i[6]!==a||i[7]!==n?(t=()=>{!c&&s&&(0,x.O)(u)&&(0,x.O)(u.giveawayId)&&0!==u.entries&&n(u.giveawayId,{entryCoinType:a,totalEntries:u.entries,rank:u.rank??void 0})},r=[n,s,u,a,c],i[3]=s,i[4]=c,i[5]=u,i[6]=a,i[7]=n,i[8]=t,i[9]=r):(t=i[8],r=i[9]),(0,h.useEffect)(t,r)})(),(()=>{let e,t,r,i=(0,l.c)(8),{isFeatureFlagEnabled:n}=(0,o.k)("PRIZE_DRAW_TOURNAMENTS"),{data:a}=(0,N.q)(),{pushDialog:s}=(0,b.C)(),c=(0,tC.N)();i[0]!==a?(e=a?.find(ir),i[0]=a,i[1]=e):e=i[1];let d=e,u=(0,h.useRef)(void 0);i[2]!==n||i[3]!==c||i[4]!==s||i[5]!==d?(t=()=>{if(!(0,x.O)(d)){u.current=void 0;return}if(!n||c||u.current===d.id)return;let e=s("prize-draw-winner-announcement",{reward:d});(0,x.O)(e)&&(u.current=d.id)},r=[n,c,s,d],i[2]=n,i[3]=c,i[4]=s,i[5]=d,i[6]=t,i[7]=r):(t=i[6],r=i[7]),(0,h.useEffect)(t,r)})(),(()=>{let e,t,r=(0,l.c)(5),i=(0,io.u)(),{pushDialog:n}=(0,b.C)(),a=(0,tC.N)();r[0]!==i||r[1]!==a||r[2]!==n?(e=()=>{a||null!==i&&n("cc-milestone-reward",{data:i})},t=[i,a,n],r[0]=i,r[1]=a,r[2]=n,r[3]=e,r[4]=t):(e=r[3],t=r[4]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(10),{isReady:i,isProgressiveChallenge:n,isGrandPrize:a,isChallengeGiveaway:o,isChallengeEntries:s,unclaimedReward:c}=(()=>{let e,t,r,i,n,a,o,s,c,d,u,A=(0,l.c)(26),{data:h,isLoading:p}=(0,N.q)();A[0]!==p||A[1]!==h?(e=(0,x.O)(h)&&!p,A[0]=p,A[1]=h,A[2]=e):e=A[2];let m=e;if(A[3]!==p||A[4]!==m||A[5]!==h){let e=null;if(n=!1,i=!1,r=!1,m){let a;A[15]===Symbol.for("react.memo_cache_sentinel")?(a=(e,t)=>{if(!(0,ii.Dy)(t))return e;let r=il(t);return(0,x.O)(r)&&(!(0,x.O)(e)||r<e)?r:e},A[15]=a):a=A[15];let l=h.reduce(a,null),o=h.find(e=>{if((0,ii.Dy)(e)){let t=il(e);return!(0,x.O)(t)||(0,x.O)(l)&&t===l}return(0,ii.yu)(e)||(0,ii.SA)(e)||(0,ii.$C)(e)});(0,x.O)(o)&&(e=(0,ii.W3)(o)?(0,ii.hy)(o):o.type===it.FX.CHALLENGE?(0,ii.u1)(o):(0,ii.bQ)(o),n=o.type===it.FX.PROGRESSIVE_CHALLENGE&&(0,x.O)(e),i=(0,x.O)(e)&&(0,ii.W3)(o),r
35=(0,x.O)(e)&&(0,ii.bZ)(o),(0,ia.U)(o.metadata)&&(t=o.metadata.challengeGiveawayId))}a=m,o=p,s=e,c=(0,x.O)(e),d=(0,x.O)(e?.progressiveLevel),A[3]=p,A[4]=m,A[5]=h,A[6]=t,A[7]=r,A[8]=i,A[9]=n,A[10]=a,A[11]=o,A[12]=s,A[13]=c,A[14]=d}else t=A[6],r=A[7],i=A[8],n=A[9],a=A[10],o=A[11],s=A[12],c=A[13],d=A[14];return A[16]!==t||A[17]!==r||A[18]!==i||A[19]!==n||A[20]!==a||A[21]!==o||A[22]!==s||A[23]!==c||A[24]!==d?(u={isReady:a,isLoading:o,unclaimedReward:s,hasUnclaimedReward:c,isProgressiveChallenge:d,isGrandPrize:n,isChallengeGiveaway:i,isChallengeEntries:r,challengeGiveawayId:t},A[16]=t,A[17]=r,A[18]=i,A[19]=n,A[20]=a,A[21]=o,A[22]=s,A[23]=c,A[24]=d,A[25]=u):u=A[25],u})(),{pushDialog:d}=(0,b.C)(),u=(0,tC.N)();r[0]!==s||r[1]!==o||r[2]!==a||r[3]!==u||r[4]!==n||r[5]!==i||r[6]!==d||r[7]!==c?(e=()=>{if(!u&&i&&null!==c){if(n||a)return void d("progressive-challenge-reward",{reward:c,isGrandPrize:a});n||a||s||d(o?"challenge-giveaway-reward":"challenge-reward",{reward:c})}},t=[i,c,u,d,n,a,o,s],r[0]=s,r[1]=o,r[2]=a,r[3]=u,r[4]=n,r[5]=i,r[6]=d,r[7]=c,r[8]=e,r[9]=t):(e=r[8],t=r[9]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(6),{isReady:i,unclaimedReward:n}=(()=>{let e,t,r,i,n,a,o=(0,l.c)(15),{data:s,isLoading:c}=(0,N.q)();o[0]!==c||o[1]!==s?(e=(0,x.O)(s)&&!c,o[0]=c,o[1]=s,o[2]=e):e=o[2];let d=e;if(o[3]!==c||o[4]!==d||o[5]!==s){let e=d?s.find(is.M):void 0,a=(e&&(0,is.L)(e))??null;t=d,r=c,i=a,n=(0,x.O)(a),o[3]=c,o[4]=d,o[5]=s,o[6]=t,o[7]=r,o[8]=i,o[9]=n}else t=o[6],r=o[7],i=o[8],n=o[9];return o[10]!==t||o[11]!==r||o[12]!==i||o[13]!==n?(a={isReady:t,isLoading:r,unclaimedReward:i,hasUnclaimedReward:n},o[10]=t,o[11]=r,o[12]=i,o[13]=n,o[14]=a):a=o[14],a})(),{pushDialog:a}=(0,b.C)(),o=(0,tC.N)();r[0]!==o||r[1]!==i||r[2]!==a||r[3]!==n?(e=()=>{o||i&&null!==n&&a("live-event-reward",{reward:n})},t=[i,n,o,a],r[0]=o,r[1]=i,r[2]=a,r[3]=n,r[4]=e,r[5]=t):(e=r[4],t=r[5]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r=(0,l.c)(7),{isReady:i,unclaimedReward:n}=(()=>{let e,t,r,i,n,a=(0,l.c)(18),{data:o,isLoading:s}=(0,N.q)(),{data:c,isLoading:d}=(0,ic.B)(),u=c?.vipRank.current.level??null;if(a[0]!==s||a[1]!==d||a[2]!==u||a[3]!==o){let n;i=o?.find(id.e)??null,e=!!s||!!d,a[8]!==e||a[9]!==u||a[10]!==o?(n=(0,x.O)(o)&&(0,x.O)(u)&&!e,a[8]=e,a[9]=u,a[10]=o,a[11]=n):n=a[11],t=n,r=(0,x.O)(i),a[0]=s,a[1]=d,a[2]=u,a[3]=o,a[4]=e,a[5]=t,a[6]=r,a[7]=i}else e=a[4],t=a[5],r=a[6],i=a[7];let A=r;return a[12]!==A||a[13]!==e||a[14]!==t||a[15]!==u||a[16]!==i?(n={isReady:t,isLoading:e,rank:u,unclaimedReward:i,hasUnclaimedReward:A},a[12]=A,a[13]=e,a[14]=t,a[15]=u,a[16]=i,a[17]=n):n=a[17],n})(),{experiences:a}=(0,g.$)(),{pushDialog:o}=(0,b.C)(),s=(0,tC.N)(),c=a?.scLobby.rewards===!0;r[0]!==s||r[1]!==i||r[2]!==c||r[3]!==o||r[4]!==n?(e=()=>{!s&&i&&c&&(0,x.O)(n)&&o("pick-me-up",{reward:n})},t=[i,c,n,s,o],r[0]=s,r[1]=i,r[2]=c,r[3]=o,r[4]=n,r[5]=e,r[6]=t):(e=r[5],t=r[6]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r,i,n=(0,l.c)(10),{data:a,isLoading:o}=(0,N.q)(),{pushDialog:s}=(0,b.C)();n[0]!==o||n[1]!==a?(e=(0,x.O)(a)&&!o,n[0]=o,n[1]=a,n[2]=e):e=n[2];let c=e;n[3]!==a?(t=a?.find(ip.Z)??null,n[3]=a,n[4]=t):t=n[4];let d=t;n[5]!==c||n[6]!==s||n[7]!==d?(r=()=>{c&&(0,x.O)(d)&&s("generic-reward",{reward:d})},i=[c,d,s],n[5]=c,n[6]=s,n[7]=d,n[8]=r,n[9]=i):(r=n[8],i=n[9]),(0,h.useEffect)(r,i)})(),eu=(0,l.c)(3),eA=(0,tR.jE)(),eu[0]!==eA?(ec=()=>{let e,t,r=()=>{clearTimeout(e),e=void 0;let t=Date.now(),i=[],n=(e,r)=>{let n=(({challenges:e,now:t})=>{let r=e.filter(({endDate:e})=>tG({endDate:e})>t);return r.length===e.length?e:r})({challenges:r,now:t});n!==r&&eA.setQueryData(e,n),i.push(...n)};for(let[e,t]of eA.getQueriesData({queryKey:tU.V.list()}))(0,x.O)(t)&&n(e,t);for(let[e,t]of eA.getQueriesData({queryKey:tF.O.list()}))(0,x.O)(t)&&n(e,t);let a=(({challenges:e,now:t})=>{let r=e.map(({endDate:e})=>tG({endDate:e})).filter(e=>e>t);return r.length>0?Math.min(...r):null})({challenges:i,now:t});null!==a&&(e=setTimeout(r,(({expiry:e,now:t})=>Math.min(Math.max(e-t,0),864e5))({expiry:a,now:t})))},i=eA.getQueryCache().subscribe(e=>{"updated"===e.type&&(({queryKey:e})=>{let t=e.at(0);return t===tU.V.all.at(0)||t===tF.O.all.at(0)})({queryKey:e.query.queryKey})&&(clearTimeout(t),t=setTimeout(r,100))}),n=()=>{document.hidden||r()};return document.addEventListener("visibilitychange",n),window.addEventListener("focus",n),r(),()=>{i(),document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),clearTimeout(e),clearTimeout(t)}},ed=[eA],eu[0]=eA,eu[1]=ec,eu[2]=ed):(ec=eu[1],ed=eu[2]),(0,h.useEffect)(ec,ed),(()=>{let e,t,r,i=(0,l.c)(20),{pushDialog:n}=(0,b.C)(),{user:a}=(0,c.J)(),{data:o}=(0,tY.L)(),{scWallet:s}=(0,D.S)(),{experiences:d}=(0,g.$)(),{pathname:u}=(0,A.useRouter)();i[0]!==o?(e=(0,tH.n)(o),i[0]=o,i[1]=e):e=i[1];let{highestDiscountPromotion:p}=e,m=tQ(),{isBonusActivityPending:E}=O();i[2]!==a?.verifications.ONBOARDING||i[3]!==d?.scLobby||i[4]!==p||i[5]!==E||i[6]!==u||i[7]!==n||i[8]!==s||i[9]!==m?(t=()=>{a?.verifications.ONBOARDING==="APPROVED"&&p&&(0,x.O)(s)&&s?.balance<=.5&&t$.includes(u)&&d?.scLobby.purchase===!0&&m()&&!E&&n("flexible-promotion-carousel",{trackingType:"best-package-discount-dialog"},{validate:m})},i[2]=a?.verifications.ONBOARDING,i[3]=d?.scLobby,i[4]=p,i[5]=E,i[6]=u,i[7]=n,i[8]=s,i[9]=m,i[10]=t):t=i[10];let f=a?.verifications.ONBOARDING;i[11]!==d||i[12]!==p||i[13]!==E||i[14]!==u||i[15]!==n||i[16]!==s||i[17]!==f||i[18]!==m?(r=[f,p,s,n,u,d,m,E],i[11]=d,i[12]=p,i[13]=E,i[14]=u,i[15]=n,i[16]=s,i[17]=f,i[18]=m,i[19]=r):r=i[19],(0,h.useEffect)(t,r)})(),(0,I.Y)(),(()=>{let e,t,r,i=(0,l.c)(9),{pushDialog:n}=(0,b.C)(),{gcWallet:a,isFetching:o}=(0,D.S)(),{data:s,isFetching:c}=(0,N.q)();i[0]!==s?(e=void 0===s?[]:s,i[0]=s,i[1]=e):e=i[1];let d=e,{isBonusActivityPending:u}=O(),A=o||c;i[2]!==a||i[3]!==u||i[4]!==A||i[5]!==n||i[6]!==d?(t=()=>{A||u||d.length>0||(0,x.O)(a)&&a.balance<200&&n("gc-recharge-v2")},r=[n,a,A,u,d],i[2]=a,i[3]=u,i[4]=A,i[5]=n,i[6]=d,i[7]=t,i[8]=r):(t=i[7],r=i[8]),(0,h.useEffect)(t,r)})(),(0,tI.L)(),(()=>{let e,t,r,i,n,a=(0,l.c)(14),{isFeatureFlagEnabled:s,isFeatureFlagLoading:c}=(0,o.k)("RMW_MIGRATION"),d=(0,y.SD)(),{pushDialog:u}=(0,k.A)(),{current:A}=(0,b.C)(),{isFetching:p,btWallet:m}
35=(0,D.S)(),{canClaimOnboardingBonus:E,isCheckingOnboardingEligibility:f}=(0,j.W)(),[g]=(0,B.GH)(M.so.key),v=(0,h.useRef)(!1);a[0]!==m?(e=(0,x.O)(m)&&m.balance<200,a[0]=m,a[1]=e):e=a[1];let R=e,w=!p&&R&&(""!==g||!f&&!E),S=c||s;a[2]!==S||a[3]!==R||a[4]!==d?(t=()=>{if(!S){if(!d){v.current=!1;return}R||(v.current=!1)}},r=[S,R,d],a[2]=S,a[3]=R,a[4]=d,a[5]=t,a[6]=r):(t=a[5],r=a[6]),(0,h.useEffect)(t,r),a[7]!==A||a[8]!==S||a[9]!==d||a[10]!==w||a[11]!==u?(i=()=>{S||d&&w&&!(0,x.O)(A)&&!v.current&&(u("box-ticket-store"),v.current=!0)},n=[S,A,d,w,u],a[7]=A,a[8]=S,a[9]=d,a[10]=w,a[11]=u,a[12]=i,a[13]=n):(i=a[12],n=a[13]),(0,h.useEffect)(i,n)})(),(()=>{let e,t,r=(0,l.c)(5),{pushDialog:i,closeDialogs:n}=(0,b.C)(),a=(0,y.jD)(),{isEligible:o,isFeatureEnabled:s,isLoading:c}=(0,tO.d)(),d=a&&s&&o&&!c;r[0]!==n||r[1]!==i||r[2]!==d?(e=()=>{d?i("free-box-onboarding",void 0,{validate:tD}):n("free-box-onboarding")},t=[d,i,n],r[0]=n,r[1]=i,r[2]=d,r[3]=e,r[4]=t):(e=r[3],t=r[4]),(0,h.useEffect)(e,t)})();let{hasPushed:eE}=(()=>{let e,t,r,i=(0,l.c)(13),n=(0,tC.N)(),a=(0,y.xb)(),{openDialogs:o,isFetching:s,hasDialogsToOpen:c}=(0,tN.B)(),{openDialogs:d,isFetching:u,hasDialogsToOpen:A}=(()=>{let e,t,r,i,n,a,o,s,c=(0,l.c)(13),{data:d,isLoading:u,isFetching:A}=(0,tP.p)(),{data:p,isLoading:m,isFetching:E}=(o=(0,l.c)(3),s=(0,tB.f)(),o[0]===Symbol.for("react.memo_cache_sentinel")?(n=tM.Q.listPuzzlePieceRewards(),o[0]=n):n=o[0],o[1]!==s?(a={queryKey:n,queryFn:async()=>{let{data:e}=await s({url:`${tk.u}/puzzle-piece-rewards`});return e}},o[1]=s,o[2]=a):a=o[2],(0,tj.I)(a)),{pushDialog:f}=(0,b.C)();c[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Set,c[0]=e):e=c[0];let g=(0,h.useRef)(e);c[1]!==f||c[2]!==p||c[3]!==d?(t=()=>{(0,x.O)(d)&&(0,x.O)(p)&&p.filter(e=>e.puzzleSeriesId===d.puzzleSeriesId).forEach(e=>{g.current.has(e.id)||(f("puzzles-piece-reward",{userHasPuzzlePieceRewardId:e.id,puzzleSeriesId:e.puzzleSeriesId,quantity:e.quantity}),g.current.add(e.id))})},c[1]=f,c[2]=p,c[3]=d,c[4]=t):t=c[4];let y=t,v=u||m,R=A||E;return c[5]!==p||c[6]!==d?(r=(0,x.O)(d)&&(0,x.O)(p)&&p.some(e=>e.puzzleSeriesId===d.puzzleSeriesId),c[5]=p,c[6]=d,c[7]=r):r=c[7],c[8]!==y||c[9]!==v||c[10]!==R||c[11]!==r?(i={isLoading:v,isFetching:R,hasDialogsToOpen:r,openDialogs:y},c[8]=y,c[9]=v,c[10]=R,c[11]=r,c[12]=i):i=c[12],i})(),{openDialogs:p,isFetching:m,hasDialogsToOpen:E}=(()=>{let e,t,r,i,n=(0,l.c)(11),{data:a,isLoading:o,isFetching:s}=(0,tL.x)(),{pushDialog:c}=(0,b.C)();n[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Set,n[0]=e):e=n[0];let d=(0,h.useRef)(e);n[1]!==c||n[2]!==a?(t=()=>{(0,x.O)(a)&&a.forEach(e=>{d.current.has(e.id)||(c("puzzles-completion-reward",{puzzleReward:e}),d.current.add(e.id))})},n[1]=c,n[2]=a,n[3]=t):t=n[3];let u=t;return n[4]!==a?(r=(0,x.O)(a)&&a.length>0,n[4]=a,n[5]=r):r=n[5],n[6]!==s||n[7]!==o||n[8]!==u||n[9]!==r?(i={isLoading:o,isFetching:s,hasDialogsToOpen:r,openDialogs:u},n[6]=s,n[7]=o,n[8]=u,n[9]=r,n[10]=i):i=n[10],i})(),f=s||u||m;i[0]!==E||i[1]!==c||i[2]!==A||i[3]!==f||i[4]!==n||i[5]!==a||i[6]!==p||i[7]!==o||i[8]!==d?(e=()=>{n||a||f||(E&&p(),c&&o(),A&&d())},t=[n,a,f,c,A,E,p,o,d],i[0]=E,i[1]=c,i[2]=A,i[3]=f,i[4]=n,i[5]=a,i[6]=p,i[7]=o,i[8]=d,i[9]=e,i[10]=t):(e=i[9],t=i[10]),(0,h.useEffect)(e,t);let g=!n&&!a&&!f;return i[11]!==g?(r={hasPushed:g},i[11]=g,i[12]=r):r=i[12],r})();eh[0]!==eE?(t={enabled:eE},eh[0]=eE,eh[1]=t):t=eh[1],(e=>{let t,r,i,n,a,o,s=(0,l.c)(7),{enabled:c}=e,{data:d,isFetching:u}=(a=(0,l.c)(3),o=(0,tB.f)(),a[0]===Symbol.for("react.memo_cache_sentinel")?(i=tq.U.pendingList(),a[0]=i):i=a[0],a[1]!==o?(n={queryKey:i,queryFn:async()=>{let{data:e}=await o({url:"/gaming-service/free-play-campaigns/pending"});return e}},a[1]=o,a[2]=n):n=a[2],(0,tj.I)(n)),{pushDialog:A}=(0,b.C)(),p=(0,tC.N)();s[0]!==c||s[1]!==d||s[2]!==u||s[3]!==p||s[4]!==A?(t=()=>{!c||p||u||(0,x.O)(d)&&d.forEach(e=>{A("free-play-reward",{freePlayCoinAmount:e.amount,pendingFreePlayCampaignId:e.id})})},r=[c,p,u,d,A],s[0]=c,s[1]=d,s[2]=u,s[3]=p,s[4]=A,s[5]=t,s[6]=r):(t=s[5],r=s[6]),(0,h.useEffect)(t,r)})(t),(0,tW.lN)();let{isFeatureFlagEnabled:ef}=(0,o.k)("COMMUNITY_COUPONS"),eg=ef&&em;eh[2]!==eg?(r={enabled:eg},eh[2]=eg,eh[3]=r):r=eh[3],(0,tV.d)(r);let eb=t6(),{isFeatureFlagEnabled:ex}=(0,o.k)("KUSTOMER_LIVE_CHAT"),{isFeatureFlagEnabled:ev}=(0,o.k)("MODO_ARCADE_NAV"),{hideSideMenu:eR,isNavigationUpliftEnabled:ew}=(()=>{let e,t,r,i=(0,l.c)(6),{isFeatureFlagEnabled:n}=(0,W.J)(),a=(0,U.Y)(),o=n&&a,s=(0,h.useRef)(o);return i[0]!==o?(e=()=>{let e=o&&!s.current;
35s.current=o,e&&d.o.getState().isNavOpen&&(0,F.X7)(d.o.getState()).setIsNavOpen(!1)},t=[o],i[0]=o,i[1]=e,i[2]=t):(e=i[1],t=i[2]),(0,h.useLayoutEffect)(e,t),i[3]!==o||i[4]!==n?(r={hideSideMenu:o,isNavigationUpliftEnabled:n},i[3]=o,i[4]=n,i[5]=r):r=i[5],r})(),{shouldDisplayMobileNavigation:eS,isGamePlayPath:eI}=(0,G.b)(),eC=(0,eG.C)();(0,t2.q)(),eh[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(r5,{}),eh[4]=i):i=eh[4],eh[5]!==eR?(n=!eR&&(0,a.jsx)(ts.p,{}),eh[5]=eR,eh[6]=n):n=eh[6],eh[7]!==ew?(u=ew?(0,a.jsx)(P.i,{}):(0,a.jsx)(L.h,{}),eh[7]=ew,eh[8]=u):u=eh[8];let e_=!ew&&eS;return eh[9]!==ep||eh[10]!==eI||eh[11]!==e_?(p=(0,a.jsx)(iE,{shouldDisplayMobileNavigation:e_,isGamePlayPath:eI,children:ep}),eh[9]=ep,eh[10]=eI,eh[11]=e_,eh[12]=p):p=eh[12],eh[13]!==u||eh[14]!==p?(m=(0,a.jsxs)(V.D,{children:[u,p]}),eh[13]=u,eh[14]=p,eh[15]=m):m=eh[15],eh[16]!==eC?(E=eC&&(0,a.jsx)(eF,{}),eh[16]=eC,eh[17]=E):E=eh[17],eh[18]!==ev||eh[19]!==ew||eh[20]!==eS?(R=eS&&!ev&&!ew&&(0,a.jsx)(to,{}),eh[18]=ev,eh[19]=ew,eh[20]=eS,eh[21]=R):R=eh[21],eh[22]!==ev||eh[23]!==ew||eh[24]!==eS?(C=eS&&ev&&!ew&&(0,a.jsx)(ey,{}),eh[22]=ev,eh[23]=ew,eh[24]=eS,eh[25]=C):C=eh[25],eh[26]===Symbol.for("react.memo_cache_sentinel")?(T=(0,a.jsx)(im,{}),z=(0,a.jsx)(ig,{}),Y=(0,a.jsx)(t3.o,{}),eh[26]=T,eh[27]=z,eh[28]=Y):(T=eh[26],z=eh[27],Y=eh[28]),eh[29]!==ex?(H=ex&&(0,a.jsx)(td,{}),eh[29]=ex,eh[30]=H):H=eh[30],eh[31]===Symbol.for("react.memo_cache_sentinel")?(K=(0,a.jsx)(tv,{}),Q=(0,a.jsx)(t1.B,{}),eh[31]=K,eh[32]=Q):(K=eh[31],Q=eh[32]),eh[33]!==eb?($=eb&&(0,a.jsx)(t8,{}),eh[33]=eb,eh[34]=$):$=eh[34],eh[35]!==E||eh[36]!==R||eh[37]!==C||eh[38]!==H||eh[39]!==$||eh[40]!==n||eh[41]!==m?(q=(0,a.jsxs)(a.Fragment,{children:[i,n,m,E,R,C,T,z,Y,H,K,Q,$]}),eh[35]=E,eh[36]=R,eh[37]=C,eh[38]=H,eh[39]=$,eh[40]=n,eh[41]=m,eh[42]=q):q=eh[42],q};var ib=((n={})[n.NOT_DETERMINED=0]="NOT_DETERMINED",n[n.RESTRICTED=1]="RESTRICTED",n[n.DENIED=2]="DENIED",n[n.AUTHORIZED=3]="AUTHORIZED",n),ix=r(96179);function iv(){rp?.teardown(),rp=null}function iR(){return iv}var iw=r(32946),iS=r(44944),iI=r(91496),iC=r(8757);let i_=(e,t)=>{let r=(0,ed.YW)(e.status).with("grant_reward",()=>null).with("already_clicked",()=>"This reward has already been claimed.").with("too_many_clicks",()=>"All rewards for this prize have already been claimed.").with("not_for_you",()=>"This reward cannot be claimed by your account.").with("expired",()=>"This reward has now expired.").with("invalid_post",()=>"The reward specified could not be found.").otherwise(()=>null);(0,x.O)(r)&&t(r,{variant:"info",preventDuplicate:!0})};function iT(){return null}var iO=r(26253),iD=r(94816),iN=r(46263);let iL={src:"/_next/static/media/modo-logo-96.f58d2509.webp",height:96,width:96,blurDataURL:"data:image/webp;base64,UklGRrIAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEEAAAAAAAAAKgAAAAAAAAC9LAAAAAAABr6VAAAABmZrSJC8myMcl2sAYKJDAgAJm4NYAAAAAFVBhVoAAAABEgAXAwAAAABWUDggSgAAALABAJ0BKggACAACQDglsAJ0APlgfIAA/s7P5t4HmRsSNI3k+Jksw8Dy5KQWTxgl8m+Etv2nndbT/unsOdgvO//GBbs39JXhIAAA",blurWidth:8,blurHeight:8};var iP=r(32175),ij=r(57382),ik=r(76528),iB=r(11884),iM=r(57877),iW=r(54756);let iU="terms-and-conditions";var iF=r(9311),iG=r(57282),iV=r(15789),iz=r(78180);let iY=e=>{let t,r=(0,l.c)(3),{children:i}=e,{currentUser:n,isLoadingCurrentUser:f}=(()=>{let e,t,r,i,n,p,E=(0,l.c)(8),{user:f,isLoading:g}=(0,c.J)(),{data:y}=(0,ic.B)(),{enqueueSnackbar:b}=(0,rM.dh)();return(()=>{let e,t,r,i=(0,l.c)(7),{getAccessTokenSilently:n}=(0,re.A)(),{user:a}=(0,c.J)();i[0]!==a||i[1]!==n?(e=()=>{if((0,x.O)(a?.id)){var e;e={userId:a.id,getAccessToken:()=>n()},(0,x.O)(rp)&&rp.isSubscribedUser(e.userId)?rp.setGetAccessToken(e.getAccessToken):(rp?.teardown(),rp=new rh(e),rm.forEach(e=>{rp?.subscribe(e)}))}},i[0]=a,i[1]=n,i[2]=e):e=i[2];let o=a?.id;i[3]!==n||i[4]!==o?(t=[n,o],i[3]=n,i[4]=o,i[5]=t):t=i[5],(0,h.useEffect)(e,t),i[6]===Symbol.for("react.memo_cache_sentinel")?(r=[],i[6]=r):r=i[6],(0,h.useEffect)(iR,r)})(),E[0]!==f?(e={isAuthenticatedRoute:!0,user:f},E[0]=f,E[1]=e):e=E[1],(0,iz.N6)(e),E[2]!==f||E[3]!==y?(t={currentUser:f,vipStatus:y},E[2]=f,E[3]=y,E[4]=t):t=E[4],(e=>{let t,r,i,n,a,o,s,c,d=(0,l.c)(10),{currentUser:u,vipStatus:p}=e;d[0]!==u||d[1]!==p?(t={currentUser:u,vipStatus:p},d[0]=u,d[1]=p,d[2]=t):t=d[2],(({currentUser:e,vipStatus:t})=>{let{enqueueSnackbar:r}=(0,rM.dh)(),{push:i}=(0,A.useRouter)(),{pushDialog:n}=(0,k.A)(),a=(0,h.useRef)(!1),l=(0,h.useRef)(i),o=(0,h.useRef)(n),s=(0,h.useRef)(r);(0,h.useEffect)(()=>
35{if(!e||!t)return;let{isModoIOSApp:r}=(0,ec.k_)();if(!r||!(0,x.O)((0,iC.D)()))return;let i=e.id.startsWith("facebook|")?e.id.split("|")[1]:void 0;(0,ix.b)({type:ix.h.TEAK_LOGIN,data:{userId:e.id,email:e.email,facebookId:i,vipRank:t.vipRank.current.level}})},[e,t]),(0,h.useEffect)(()=>{if(!e||!t)return;let{isModoIOSApp:r}=(0,ec.k_)();if(r&&(0,x.O)((0,iC.D)())||a.current)return;if(!window.teak)return void(0,rd.fH)("Teak script is not loaded or was blocked");let i="1801690029542866944",n="de8ba55a77c9c7191c83ac736ee2597e";if(!(0,x.O)(i)||!(0,x.O)(n))return void(0,rd.vV)({message:"Teak app ID or API key is not defined"});try{window.teak.init(i,n),a.current=!0}catch(e){(0,rd.vV)({message:"Failed to initialize Teak",exception:e});return}try{let r=e.id.startsWith("facebook|")?e.id.split("|")[1]:void 0;window.teak.login(e.id,{email:e.email,facebookId:r}),window.teak.setStringAttribute("vipRank",t.vipRank.current.level),window.teak.on("reward",e=>i_(e,s.current)),window.teak.registerRoute("/play/:gameSlug","Game","Launch a Game",e=>{l.current({pathname:"/play/[gameSlug]",query:{gameSlug:e.gameSlug??""}})}),window.teak.registerRoute("/store","Store","Open the Store",()=>{o.current("select-package")}),window.teak.registerRoute("/modo-boxes/:boxSlug","Box","Open a Modo Box",e=>{let t=(e=>{if(!(0,x.O)(e)||0===e.length)return;let{path:t}=(0,m.B)(e),r=t.split("/").filter(e=>e.length>0),i=r.indexOf("modo-boxes"),n=-1===i?void 0:r[i+1];if((0,x.O)(n)&&!(n.startsWith(":")||n.toLowerCase().startsWith("%3a")))return n})(e.__incoming_url);(0,x.O)(t)?l.current({pathname:"/modo-boxes/[boxSlug]",query:{boxSlug:t}}):l.current({pathname:"/modo-boxes"})}),window.teak.registerRoute("/modo-boxes","Boxes","Open Modo Boxes",()=>{l.current({pathname:"/modo-boxes"})})}catch(e){(0,rd.vV)({message:"Failed to login to Teak",exception:e})}},[e,t,i,n,r])})(t),d[3]!==u?(r={currentUser:u},d[3]=u,d[4]=r):r=d[4],(0,iI.K)(r),d[5]!==u?(i={currentUser:u},d[5]=u,d[6]=i):i=d[6],(e=>{let t,r,i=(0,l.c)(3),{currentUser:n}=e;i[0]!==n?(t=()=>{if(n)return(0,iS.wj)(n.id),iS.J8},r=[n],i[0]=n,i[1]=t,i[2]=r):(t=i[1],r=i[2]),(0,h.useEffect)(t,r)})(i),s=(0,l.c)(3),c=(0,es.j)(),s[0]!==c?(a=()=>{let e=()=>{c({event:eo.lg.APP_INSTALLED}),(0,B.TV)(M.Lx.key,"true",M.Lx.ttlDays)};return window.addEventListener("appinstalled",e),()=>window.removeEventListener("appinstalled",e)},o=[c],s[0]=c,s[1]=a,s[2]=o):(a=s[1],o=s[2]),(0,h.useEffect)(a,o),d[7]!==u||d[8]!==p?(n={currentUser:u,vipStatus:p},d[7]=u,d[8]=p,d[9]=n):n=d[9],(0,iw.j)(n)})(t),(()=>{let e,t,r,i,n,a=(0,l.c)(4),{data:o}=(i=(0,l.c)(2),n=(0,tB.f)(),i[0]!==n?(r={queryKey:ik.R.all,queryFn:async e=>{let{signal:t}=e,{data:r}=await n({url:"/core-service/terms-and-conditions",signal:t});return r}},i[0]=n,i[1]=r):r=i[1],(0,tj.I)(r)),{replaceDialog:s}=(0,k.A)(),c=o?.needsToReviewTermsAndConditions,d=(0,h.useRef)(void 0),u=(0,h.useRef)(!1);a[0]!==c||a[1]!==s?(e=()=>{if(!0===c){let e=(0,iW.qn)("dialog");if(e===iB.Kh)return;(0,iM.q)(e)&&e!==iU&&(d.current=e),u.current=!0,s(iU);return}if(!(u.current&&!1===c))return;u.current=!1;let e=d.current;if(d.current=void 0,!(0,x.O)(e))return;if((0,iW.qn)("dialog")!==iU)return void s(e);let t=()=>{(0,x.O)((0,iW.qn)("dialog"))||(window.removeEventListener("popstate",t),s(e))};return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},t=[c,s],a[0]=c,a[1]=s,a[2]=e,a[3]=t):(e=a[2],t=a[3]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r,i,n,s,c,d=(0,l.c)(14),{enqueueSnackbar:u}=(0,rM.dh)(),p=(0,es.j)(),{events:m,push:E}=(0,A.useRouter)(),{isFeatureFlagEnabled:f}=(0,o.k)("ANDROID_APP_REINSTATEMENT"),[g,y]=(0,h.useState)(null),b=(0,h.useRef)(!1),v=(0,h.useRef)(!1);d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=e=>{e.preventDefault(),y(e)};return window.addEventListener("beforeinstallprompt",e),()=>window.removeEventListener("beforeinstallprompt",e)},t=[],d[0]=e,d[1]=t):(e=d[0],t=d[1]),(0,h.useEffect)(e,t),d[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,iP.O)(),d[2]=r):r=d[2];let{device:R,os:w}=r;d[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{(0,B.TV)(M.jD.key,"true",M.jD.ttlDays),v.current=!1;let e=Number(sessionStorage.getItem(th.iZ)??"0");sessionStorage.setItem(th.iZ,String(e+1))},d[3]=i):i=d[3];let S=i;d[4]!==g||d[5]!==u||d[6]!==f||d[7]!==E||d[8]!==p?(n=()=>{let{isModoIOSApp:e}=(0,ec.k_)(),t=Number(sessionStorage.getItem(th.iZ)??"0");if(!(("mobile"===R.type||"tablet"===R.type)&&(!(0,x.O)((0,B.Ri)(M.jD.key))||v.current)&&!(0,x.O)((0,B.Ri)(M.Lx.key))&&"standalone"!==(0,ea.d)()&&!e&&t<2))return;let r={persist:!0,variant:"info",onClose:S,key:"pwa-install-prompt",preventDuplicate:!0};if("iOS"===w.name&&u((0,a.jsxs)(em.B,{direction:"column",spacing:1,children:[(0,a.jsxs)(em.B,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(e2(),{src:iL,alt:"Modo",width:24,height:24,unoptimized:!0}),(0,a.jsx)(eh.A,{variant:"h3",children:"Install Modo"})]}),(0,a.jsx)(eh.A,{variant:"body1",children:"App players get exclusive access and rewards. Download now!"})]}),{...r,action:(0,a.jsx)(rF.$,{href:ij.od,target:"_blank",variant:"outlined",color:"primary",onClick:()=>{p({event:"app_install_popup_clicked"})},children:"Install"})}),"iOS"!==w.name){let e=(0,a.jsxs)(em.B,{direction:"column",spacing:1,children:[(0,a.jsxs)(em.B,{direction:"row",alignItems:"center",spacing:1,children:[(0,a.jsx)(e2(),{src:iL,alt:"Modo",width:24,height:24,unoptimized:!0}),(0,a.jsx)(eh.A,{variant:"h3",children:"Install Modo"})]}),(0,a.jsx)(eh.A,{children:"Enjoy an even more immersive social gaming experience by installing the app for free."})]}),t=f&&"Android"===w.name;(t||(0,x.O)(g))&&u(e,{...r,onClose:t?S:()=>{S(),y(null)},action:(0,a.jsx)(rF.$,{color:"primary",variant:"outlined",fullWidth:!0,onClick:()=>{t?(S(),E("/android/download")):(g?.prompt(),g?.userChoice.then(()=>y(null)))},children:"Install"})})}},d[4]=g,d[5]=u,d[6]=f,d[7]=E,d[8]=p,d[9]=n):n=d[9];let I=n;d[10]!==m||d[11]!==I?(s=()=>{let e=e=>{let t=b.current,r=e.startsWith("/play/");t&&!r?(v.current=!0,I(),b.current=!1):t||r||I(),r&&(b.current=!0,v.current=!1)};return m.on("routeChangeComplete",e),()=>{m.off("routeChangeComplete",e)}},c=[m,I],d[10]=m,d[11]=I,d[12]=s,d[13]=c):(s=d[12],c=d[13]),(0,h.useEffect)(s,c)})(),(0,iV.N)(),(()=>{let e,t,r=(0,l.c)(3),{user:i}=(0,c.J)();r[0]!==i?(e=()=>{let e;i&&(0,iG.xH)({_setUserId:i.id,isEndUser:i.email.includes("@arbinteractive.com")});let t=(0,iG.b9)();return t&&((0,iG.xH)({_setSessionId:t}),e=setInterval(iG.BN,5e3)),()=>{(0,x.O)(e)&&clearInterval(e)}},t=[i],r[0]=i,r[1]=e,r[2]=t):(e=r[1],t=r[2]),(0,h.useEffect)(e,t)})(),(()=>{let e,t,r,i=(0,l.c)(11),n=(0,d.o)(u.LI),{resetIntendedDestination:a,recordConsumedDestinationSource:p}=(0,d.o)(u.QN),{push:m,isReady:E,pathname:f,asPath:g}=(0,A.useRouter)(),{pushDialog:y}=(0,k.A)(),{user:b}=(0,c.J)(),{isFeatureFlagEnabled:v,isFeatureFlagLoading:R}=(0,o.k)("ONBOARDING_V2_SIGNUP"),w=(0,h.useRef)(!1);i[0]!==f?(e=!f.startsWith("/onboarding")&&!f.startsWith("/welcome"),i[0]=f,i[1]=e):e=i[1];let S=e,I=b?.verifications?.ONBOARDING===s.hn.APPROVED,C=E&&!R&&(!v||I&&S);i[2]!==g||i[3]!==C||i[4]!==n||i[5]!==m||i[6]!==y||i[7]!==p||i[8]!==a?(t=()=>{if(!n){w.current=!1;return}if(!C||w.current)return;w.current=!0;let{path:e,params:t,source:r}=n;a(),("/modo-boxes"===e||e.startsWith("/modo-boxes/"))&&p(r),("/store"===e||g.split("?")[0]!==e)&&(0,ed.YW)(e).with("/store",()=>y("select-package")).with("/modo-boxes",()=>m({pathname:"/modo-boxes"})).with(ed.P.string.startsWith("/modo-boxes/"),()=>{let r=e.split("/modo-boxes/")[1];(0,x.O)(r)?m({pathname:"/modo-boxes/[boxSlug]",query:{...t,boxSlug:r}}):m({pathname:"/modo-boxes"})}).with(ed.P.string.startsWith("/play/"),()=>{let r=e.split("/play/")[1];(0,x.O)(r)?m({pathname:"/play/[gameSlug]",query:{...t,gameSlug:r}}):m({pathname:"/lobby"})}).otherwise(iT)},r=[n,C,m,y,a,p,g],i[2]=g,i[3]=C,i[4]=n,i[5]=m,i[6]=y,i[7]=p,i[8]=a,i[9]=t,i[10]=r):(t=i[9],r=i[10]),(0,h.useEffect)(t,r)})(),(p=(0,l.c)(3))[0]!==b?(i=()=>{let e=e=>{i_(e.detail,b)};return window.addEventListener("teak-reward",e),()=>window.removeEventListener("teak-reward",e)},n=[b],p[0]=b,p[1]=i,p[2]=n):(i=p[1],n=p[2]),(0,h.useEffect)(i,n),(()=>{let e,t,r,i,n,a,o=(0,l.c)(14);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ec.k_)(),o[0]=e):e=o[
350];let{isModoIOSApp:s}=e,{mutateAsync:c,isPending:d}=(0,iN.Y)();o[1]===Symbol.for("react.memo_cache_sentinel")?(t={enabled:s},o[1]=t):t=o[1];let{data:u}=(0,iD.r)(t);o[2]!==u||o[3]!==d||o[4]!==c?(r=()=>{!d&&(0,x.O)(u)&&u.pushSubscription!==iO.d.SUBSCRIBED&&c({pushSubscription:iO.d.SUBSCRIBED})},o[2]=u,o[3]=d,o[4]=c,o[5]=r):r=o[5];let A=(0,h.useEffectEvent)(r);o[6]!==u||o[7]!==d||o[8]!==c?(i=()=>{!d&&(0,x.O)(u)&&u.pushSubscription!==iO.d.UNSUBSCRIBED&&c({pushSubscription:iO.d.UNSUBSCRIBED})},o[6]=u,o[7]=d,o[8]=c,o[9]=i):i=o[9];let p=(0,h.useEffectEvent)(i);o[10]!==A||o[11]!==p?(n=()=>{let{isModoIOSApp:e}=(0,ec.k_)();if(!e)return;let t=()=>A(),r=()=>p();return window.addEventListener("native-push-accept",t),window.addEventListener("native-push-decline",r),()=>{window.removeEventListener("native-push-accept",t),window.removeEventListener("native-push-decline",r)}},o[10]=A,o[11]=p,o[12]=n):n=o[12],o[13]===Symbol.for("react.memo_cache_sentinel")?(a=[],o[13]=a):a=o[13],(0,h.useEffect)(n,a)})(),(()=>{let{user:e}=(0,c.J)(),t=e?.id,r=e?.email;(0,h.useEffect)(()=>{if(!t||!r)return;let{isModoIOSApp:e,isModoAndroidApp:i}=(0,ec.k_)();try{e&&(0,eA.N)("1.2.0")?(0,ix.b)({type:ix.h.OPTIMOVE_REGISTER,data:{userId:t,email:r}}):i&&(0,iF.B)({type:iF.r.OPTIMOVE_REGISTER,data:{userId:t,email:r}})}catch(e){(0,rd.vV)({message:"Failed to register with Optimove",exception:e})}},[t,r])})(),(()=>{let e,t,r=(0,l.c)(3),{pushDialog:i}=(0,k.A)();r[0]!==i?(e=()=>{if((0,eA.N)("1.2.0")){let e=e=>{e.detail.attStatus===ib.NOT_DETERMINED&&i("att-preprompt")};return window.addEventListener("att-status",e),(0,ix.b)({type:ix.h.ATT_STATUS_REQUEST}),()=>{window.removeEventListener("att-status",e)}}},t=[i],r[0]=i,r[1]=e,r[2]=t):(e=r[1],t=r[2]),(0,h.useEffect)(e,t)})(),E[5]!==f||E[6]!==g?(r={currentUser:f,isLoadingCurrentUser:g},E[5]=f,E[6]=g,E[7]=r):r=E[7],r})();if(f||!n){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.S,{}),r[0]=e):e=r[0],e}return r[1]!==i?(t=(0,a.jsx)(E,{children:(0,a.jsx)(iy,{children:i})}),r[1]=i,r[2]=t):t=r[2],t}},23199:(e,t,r)=>{r.d(t,{x:()=>i});let i={get:["daily-bonus"]}},24607:(e,t,r)=>{r.d(t,{f:()=>i});let i=(e,t)=>({id:e.id,costInCents:t.promotionCostInCents,discount:t.discount,remainingUse:e.remainingUse,expiresAt:e.expiresAt??void 0})},24732:(e,t,r)=>{r.d(t,{K:()=>d});var i=r(37876),n=r(27964),a=r(53033),l=r(12311),o=r(7835),s=r(30647);let c={badge:{sx:{height:s.E[15],minWidth:s.E[15],padding:`0 ${s.E[4]}`}}},d=e=>{let t,r,s,d,u,A,h,p,m,E,f,g,y,b,x,v,R,w,S=(0,n.c)(36);S[0]!==e?({count:r,children:t,color:u,overlap:A,variant:h,anchorOrigin:p,slotProps:d,...s}=e,S[0]=e,S[1]=t,S[2]=r,S[3]=s,S[4]=d,S[5]=u,S[6]=A,S[7]=h,S[8]=p):(t=S[1],r=S[2],s=S[3],d=S[4],u=S[5],A=S[6],h=S[7],p=S[8]);let I=void 0===u?"secondary":u,C=void 0===A?"rectangular":A,_=void 0===h?"standard":h;S[9]!==p?(m=void 0===p?{vertical:"top",horizontal:"right"}:p,S[9]=p,S[10]=m):m=S[10];let T=m;if(S[11]!==T||S[12]!==I||S[13]!==r||S[14]!==C||S[15]!==d||S[16]!==_){let{typography:e,...t}=d??{},n="dot"===_?{badge:{"aria-label":r>0?`${r} free boxes available`:void 0}}:c;E=l.A,b=T,x=I,v=C,R=_,f=0===r,g="standard"===_?(0,i.jsx)(o.A,{variant:"h6",...e,children:r}):void 0,y=(0,a.A)(n,t),S[11]=T,S[12]=I,S[13]=r,S[14]=C,S[15]=d,S[16]=_,S[17]=E,S[18]=f,S[19]=g,S[20]=y,S[21]=b,S[22]=x,S[23]=v,S[24]=R}else E=S[17],f=S[18],g=S[19],y=S[20],b=S[21],x=S[22],v=S[23],R=S[24];return S[25]!==E||S[26]!==t||S[27]!==s||S[28]!==f||S[29]!==g||S[30]!==y||S[31]!==b||S[32]!==x||S[33]!==v||S[34]!==R?(w=(0,i.jsx)(E,{anchorOrigin:b,color:x,overlap:v,variant:R,invisible:f,badgeContent:g,slotProps:y,...s,children:t}),S[25]=E,S[26]=t,S[27]=s,S[28]=f,S[29]=g,S[30]=y,S[31]=b,S[32]=x,S[33]=v,S[34]=R,S[35]=w):w=S[35],w}},24824:(e,t,r)=>{r.d(t,{s:()=>l});var i=r(37876),n=r(27964),a=r(35360);let l=e=>{let t,r,l=(0,n.c)(9),{autoComplete:c,className:d,disabled:u,autoFocus:A,onBlur:h,sx:p}=e;l[0]!==p?(t=void 0===p?[]:p,l[0]=p,l[1]=t):t=l[1];let m=t;return l[2]!==c||l[3]!==A||l[4]!==d||l[5]!==u||l[6]!==h||l[7]!==m?(r=(0,i.jsx)(a.h,{disabled:u,autoComplete:c,autoFocus:A,className:d,onBlur:h,placeholder:"Search games or providers",sx:m,buildSearchParams:o,buildClearParams:s}),l[2]=c,l[3]=A,l[4]=d,l[5]=u,l[6]=h,l[7]=m,l[8]=r):r=l[8],r};function o(e){let{currentCategory:t,searchValue:r}=e;return{s:r,category:t}}function s(){return{s:"",category:""}}},25083:(e,t,r)=>{r.d(t,{e:()=>i.e});var i=r(85264)},25352:(e,t,r)=>{r.d(t,{r:()=>a});var i=r(62530),n=r(50272);let a=()=>{try{sessionStorage.setItem(n.nv,"true")}catch(e){(0,i.FF)("Failed to suppress package promos for session",{exception:e})}}},26253:(e,t,r)=>{r.d(t,{d:()=>n});var i,n=((i={}).SUBSCRIBED="SUBSCRIBED",i.UNSUBSCRIBED="UNSUBSCRIBED",i)},26515:(e,t,r)=>{r.d(t,{w:()=>a});var i=r(62530),n=r(50272);let a=()=>{try{sessionStorage.setItem(n.QN,"true")}catch(e){(0,i.FF)("Failed to suppress Store pop-up for session",{exception:e})}}},29377:(e,t,r)=>{r.d(t,{P:()=>i});let i={all:["boxes-promotion"],get:()=>[...i.all,"get"]}},29599:(e,t,r)=>{r.d(t,{EN:()=>i,jy:()=>a,oE:()=>n});let i={SC:"SC",BT:"BT",STARS:"STARS",MC:"MC"},n={PENDING:"PENDING",COMPLETED:"COMPLETED",REFUNDED:"REFUNDED",REJECTED:"REJECTED"}
35,a={PACKAGE_PURCHASE:"PACKAGE_PURCHASE",PACKAGE_REDEMPTION:"PACKAGE_REDEMPTION",GC_PLAY_THRESHOLD_AWARD:"GC_PLAY_THRESHOLD_AWARD",GC_PLAY_BOOSTER_THRESHOLD_AWARD:"GC_PLAY_BOOSTER_THRESHOLD_AWARD",WALLET_CONVERSION:"WALLET_CONVERSION"};Object.values(a)},31255:(e,t,r)=>{r.d(t,{$:()=>d,E:()=>u});var i=r(27964),n=r(91311),a=r(31225),l=r(89099),o=r(14232),s=r(29358);let c=["American Roulette 3D"],d=e=>c.includes(e?.name??"")?6e3:(0,s.YW)(e?.provider).with(a.V.EVOPLAY,()=>4e3).with(a.V.FELT,()=>4e3).with(a.V.FANTASMA,()=>0).with(a.V["PRINT STUDIOS"],()=>0).otherwise(()=>2e3),u=()=>{let e,t,r=(0,i.c)(3),a=(0,l.useRouter)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={},r[0]=e):e=r[0];let s=(0,o.useRef)(e);return r[1]!==a?(t={handleGameDelayCallback:e=>{let{callback:t,notificationId:r}=e,i=e=>{(0,n.I)(e)||r in s.current||(t(e),s.current[r]=!0)};return a.events.on("routeChangeStart",i),()=>{a.events.off("routeChangeStart",i)}}},r[1]=a,r[2]=t):t=r[2],t}},32165:(e,t,r)=>{r.d(t,{x:()=>o});var i=r(27964),n=r(74359),a=r(57765),l=r(60528);let o=e=>{let t,r,o,s=(0,i.c)(9),{coinType:c,enabled:d}=e,u=void 0===d||d,A=(0,l.f)();return s[0]!==c?(t=a.O.filteredList(c),s[0]=c,s[1]=t):t=s[1],s[2]!==c||s[3]!==A?(r=async e=>{let{signal:t}=e,{data:r}=await A({signal:t,url:`/marketing-service/progressive-challenges/${c}`});return r},s[2]=c,s[3]=A,s[4]=r):r=s[4],s[5]!==u||s[6]!==t||s[7]!==r?(o={enabled:u,queryKey:t,queryFn:r},s[5]=u,s[6]=t,s[7]=r,s[8]=o):o=s[8],(0,n.I)(o)}},33585:(e,t,r)=>{r.d(t,{R:()=>i});let i=({min:e=0,max:t})=>Math.floor(Math.random()*(t-e+1))+e},34464:(e,t,r)=>{r.d(t,{o:()=>n});var i=r(89099);let n=()=>{let{pathname:e}=(0,i.useRouter)();return["/","/lobby","/games","/arcade","/social"].some(t=>e===t)}},35360:(e,t,r)=>{r.d(t,{h:()=>g,W:()=>f});var i=r(37876),n=r(27964),a=r(18232),l=r(14232),o=r(81293),s=r(65089),c=r(21509),d=r(63853),u=r(54756),A=r(70854),h=r(17982),p=r(11800),m=r(13265);let E={height:40,minWidth:280,backgroundColor:h.l.NEUTRAL.EXTRA_DARK,borderRadius:100,fontFamily:p.p.FAMILY.PRIMARY,fontSize:p.p.SIZE[14],color:`${h.l.NEUTRAL.LIGHT} !important`,[m.I.breakpoints.down("sm")]:{minWidth:0,width:"100%"},"&.Mui-focused":{color:h.l.NEUTRAL.WHITE},"&.Mui-disabled":{backgroundColor:h.l.NEUTRAL.SOFT,"& input":{WebkitTextFillColor:h.l.NEUTRAL.MAIN}}},f=()=>{let e,t,r=(0,n.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("g",{clipPath:"url(#search-icon-clip)",children:(0,i.jsx)("path",{d:"M17.9347 2.06515C15.1813 -0.688306 10.7007 -0.688459 7.94721 2.06515C5.33383 4.67852 5.20108 8.84693 7.54819 11.6187L6.56873 12.5982L5.90833 11.9376C5.67823 11.7075 5.3053 11.7075 5.0752 11.9376L0.617639 16.3952C-0.20588 17.2187 -0.20588 18.5587 0.617639 19.3822C1.02932 19.7939 1.57025 19.9999 2.11117 19.9999C2.6521 19.9999 3.19287 19.7939 3.6047 19.3822L8.06226 14.9247C8.29221 14.6946 8.29221 14.3216 8.06226 14.0915L7.40186 13.4311L8.38117 12.4518C9.69267 13.5624 11.3167 14.1179 12.941 14.1179C14.7494 14.1179 16.5579 13.4296 17.9347 12.0528C20.6883 9.2992 20.6883 4.81875 17.9347 2.06515ZM2.77157 18.5491C2.4075 18.9132 1.815 18.9132 1.45077 18.5491C1.08654 18.1849 1.08654 17.5924 1.45077 17.2283L5.49161 13.1873L6.81241 14.5081L2.77157 18.5491ZM17.1016 11.2197C15.9544 12.367 14.4479 12.9404 12.941 12.9404C11.4343 12.9403 9.9272 12.3667 8.78019 11.2197C6.48603 8.92551 6.48603 5.19259 8.78019 2.89828C11.0745 0.604116 14.8073 0.604116 17.1016 2.89828C19.3957 5.19259 19.3957 8.92551 17.1016 11.2197Z",fill:"currentColor"})}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e,(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"search-icon-clip",children:(0,i.jsx)("rect",{width:"20",height:"20"})})})]}),r[1]=t):t=r[1],t},g=e=>{let t,r,h,p,m,g,y,b,x,v,R,w,S,I,C,_,T,O,D,N,L,P,j=(0,n.c)(55),{autoComplete:k,autoFocus:B,buildClearParams:M,buildSearchParams:W,className:U,disabled:F,onBlur:G,placeholder:V,sx:z}=e;j[0]!==z?(t=void 0===z?[]:z,j[0]=z,j[1]=t):t=j[1];let Y=t,H=(0,A.V)();j[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,u.qn)("category")??"",j[2]=r):r=j[2];let K=r,Q=(0,A.Z)("s")??"",$=(0,l.useRef)(null),[q,X]=(0,l.useState)(Q);j[3]!==Q?(h=new Set([Q]),j[3]=Q,j[4]=h):h=j[4];let Z=(0,l.useRef)(h);j[5]!==Q?(p=()=>{Z.current.has(Q)?Z.current.delete(Q):X(Q)},m=[Q],j[5]=Q,j[6]=p,j[7]=m):(p=j[6],m=j[7]),(0,l.useEffect)(p,m),j[8]!==H?(g=e=>{Z.current.add(e.s??""),H(e)},j[8]=H,j[9]=g):g=j[9];let J=(0,d.YQ)(g,500);j[10]!==J?(y=()=>()=>J.cancel(),b=[J],j[10]=J,j[11]=y,j[12]=b):(y=j[11],b=j[12]),(0,l.useEffect)(y,b),j[13]!==J?(x=()=>{J.cancel()},j[13]=J,j[14]=x):x=j[14],j[15]!==J||j[16]!==Q?(v=[K,Q,J],j[15]=J,j[16]=Q,j[17]=v):v=j[17],(0,l.useEffect)(x,v),j[18]!==W||j[19]!==J?(R=e=>{let t=e.target.value;X(t),J(W({currentCategory:K,searchValue:t}))},j[18]=W,j[19]=J,j[20]=R):R=j[20];let ee=R;j[21]===Symbol.for("react.memo_cache_sentinel")?(w=e=>{"Enter"===e.key&&$.current?.blur()},j[21]=w):w=j[21];let et=w;j[22]!==M||j[23]!==J||j[24]!==H?(S=()=>{J.cancel(),X(""),Z.current.add(""),H(M({currentCategory:K})),$.current?.focus()},j[22]=M,j[23]=J,j[24]=H,j[25]=S):S=j[25];let er=S;return j[26]!==V?(I={"aria-label":V},j[26]=V,j[27]=I):I=j[27],j[28]!==Y?(C=Array.isArray(Y)?Y:[Y],j[28]=Y,j[29]=C):C=j[29],j[30]!==C?(_=[E,...C],j[30]=C,j[31]=_):_=j[31],j[32]!==k?(T=!1===k&&{autoComplete:"off"},j[32]=k,j[33]=T):T=j[33],j[34]===Symbol.for("react.memo_cache_sentinel")?(O=(0,i.jsx)(c.A,{position:"start",sx:{mr:0},children:(0,i.jsx)(f,{})}),j[34]=O):O=j[34],j[35]!==F||j[36]!==er||j[37]!==q?(D=q&&{endAdornment:(0,i.jsx)(c.A,{position:"end",children:(0,i.jsx)(o.A,{size:"medium",disabled:F,onClick:er,"aria-label":"Clear","data-testid":"close-button",children:(0,i.jsx)(s.A,{})})})},j[35]=F,j[36]=er,j[37]=q,j[38]=D):D=j[38],j[39]!==_||j[40]!==T||j[41]!==D?(N={sx:_,...T,startAdornment:O,...D},j[39]=_,j[40]=T,j[41]=D,j[42]=N):N=j[42],j[43]!==I||j[44]!==N?(L={htmlInput:I,input
35:N},j[43]=I,j[44]=N,j[45]=L):L=j[45],j[46]!==B||j[47]!==U||j[48]!==F||j[49]!==ee||j[50]!==G||j[51]!==V||j[52]!==q||j[53]!==L?(P=(0,i.jsx)(a.s,{ref:$,className:U,disabled:F,color:"darkPurple",placeholder:V,fullWidth:!0,onChange:ee,onKeyDown:et,value:q,autoFocus:B,onBlur:G,slotProps:L}),j[46]=B,j[47]=U,j[48]=F,j[49]=ee,j[50]=G,j[51]=V,j[52]=q,j[53]=L,j[54]=P):P=j[54],P}},35927:(e,t,r)=>{r.d(t,{h:()=>tb});var i=r(37876),n=r(27964),a=r(4040),l=r(29340),o=r(22536),s=r(34464),c=r(86697),d=r(85897),u=r(19254),A=r(12450),h=r(78008),p=r(47011),m=r(98688),E=r(78989),f=r(16427),g=r(68275),y=r(79276),b=r(30647),x=r(24824),v=r(62268);let R={marginRight:"auto",maxWidth:"300px",minWidth:"200px","& .MuiInputBase-root":{minWidth:"200px"},[(0,c.s3)(c.N4.MOBILE)]:{display:"none"}},w=(0,v.Ay)(x.s)(R);var S=r(49769),I=r(17982),C=r(42291);let _=(0,v.Ay)("header",{shouldForwardProp:C.A})(({isScrolled:e})=>({position:"sticky",top:0,zIndex:S.M.appBar,width:"100%","&::before":{content:'""',position:"absolute",inset:0,background:I.l.APP_BAR_GRADIENT,zIndex:-1,opacity:+!!e,transition:"opacity 0.6s ease"}})),T=(0,v.Ay)("div")(({theme:e})=>({alignItems:"center",justifyContent:"flex-end",display:"flex",flexShrink:0,gap:b.E[5],paddingBlock:b.E[10],paddingInline:b.E[10],[e.breakpoints.up("md")]:{paddingInline:b.E[20],gap:b.E[15]}})),O=(0,c.s3)(c.N4.MOBILE),D=()=>{let e,t,r,c,x,v,R,S,I,C,D,L,P=(0,n.c)(31),j=(0,s.o)(),{setIsNavOpen:k}=(0,m.o)(E.X7),B=(0,d.p)("large"),M=(0,p.j)(),{loginWithRedirect:W}=(0,a.A)(),U=(0,m.o)(N),{isFeatureFlagEnabled:F}=(0,l.J)(),{viewport:G}=(0,A.R)(),{isMediumViewport:V}=G,z=V?"column-reverse":"column";return P[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(o.P,{}),P[0]=e):e=P[0],P[1]!==F?(t=F?{display:"block",marginRight:"auto"}:{display:"none",[O]:{display:"block",marginRight:"auto"}},P[1]=F,P[2]=t):t=P[2],P[3]!==B||P[4]!==t?(r=(0,i.jsx)(g.A,{width:81,height:27,shouldLinkHome:!0,seasonalLogo:B,sx:t}),P[3]=B,P[4]=t,P[5]=r):r=P[5],P[6]!==j?(c=j&&(0,i.jsx)(w,{}),P[6]=j,P[7]=c):c=P[7],P[8]!==W?(x=(0,i.jsx)(f.$,{onClick:()=>W({authorizationParams:{screen_hint:"login",prompt:"select_account"}}),color:"white",size:"small",id:"login-cta",children:"Log in"}),P[8]=W,P[9]=x):x=P[9],P[10]!==W||P[11]!==M?(v=()=>{M({event:h.lM.STARTED_SIGNUP}),W({authorizationParams:{screen_hint:"signup",prompt:"select_account"}})},P[10]=W,P[11]=M,P[12]=v):v=P[12],P[13]===Symbol.for("react.memo_cache_sentinel")?(R={[O]:{display:"none"}},P[13]=R):R=P[13],P[14]!==v?(S=(0,i.jsx)(f.$,{onClick:v,size:"small",color:"secondary",sx:R,children:"Register"}),P[14]=v,P[15]=S):S=P[15],P[16]!==F||P[17]!==k?(I=!F&&(0,i.jsx)(u.I,{onClick:()=>k(!0),sx:{display:"none",[O]:{display:"flex",marginLeft:b.E[10]}}}),P[16]=F,P[17]=k,P[18]=I):I=P[18],P[19]!==I||P[20]!==r||P[21]!==c||P[22]!==x||P[23]!==S?(C=(0,i.jsxs)(T,{children:[r,c,x,S,I]}),P[19]=I,P[20]=r,P[21]=c,P[22]=x,P[23]=S,P[24]=C):C=P[24],P[25]!==z||P[26]!==C?(D=(0,i.jsxs)(y.B,{direction:z,children:[e,C]}),P[25]=z,P[26]=C,P[27]=D):D=P[27],P[28]!==U||P[29]!==D?(L=(0,i.jsx)(_,{isScrolled:U,children:D}),P[28]=U,P[29]=D,P[30]=L):L=P[30],L};function N(e){return e.isMainContentScrolled}var L=r(91311),P=r(22556),j=r(18851),k=r(19340),B=r(14232),M=r(97493),W=r(63992),U=r(4072),F=r(66146);let G=e=>{let t,r,a,l,o,s,c,d,u,A,h=(0,n.c)(45),{value:p,size:m,thickness:E,gradientColors:f,startAngle:g,roundedCaps:y,endDotScale:b,endDotRadius:x,boosterPhase:v}=e,R=void 0===m?W.K.size:m,w=void 0===E?W.K.thickness:E,S=void 0===g?W.K.startAngle:g,C=void 0===y?W.K.roundedCaps:y,_=void 0===b?W.K.endDotScale:b,{dotImage:T,flameImage:O}=(0,F.$)(v),D=R/5;if(h[0]!==x||h[1]!==_||h[2]!==f||h[3]!==C||h[4]!==R||h[5]!==S||h[6]!==w||h[7]!==p){let e=f??[I.l.PRIMARY.MAIN,I.l.NEUTRAL.DARK];t=(0,M.p)({value:p,size:R,thickness:w,gradientColors:e,startAngle:S,roundedCaps:C,endDotScale:_,endDotRadius:x}),h[0]=x,h[1]=_,h[2]=f,h[3]=C,h[4]=R,h[5]=S,h[6]=w,h[7]=p,h[8]=t}else t=h[8];let{v:N,dotR:L,paddedSize:P,cx:j,cy:k,rOuter:G,endAngle:V,dotX:z,dotY:Y}=t,H=(0,B.useId)(),K=`flameFade-${H}`,Q=`flameMask-${H}`,$=1.25*R,q=j-$/2,X=k-G-R/2,Z=V+90+-50,J=L*D,ee=1-N/100-Math.min(N,.25),et=`0 0 ${P} ${P}`,er=`${100*ee}%`;h[9]!==er?(r=(0,i.jsx)("stop",{offset:er,stopColor:"white",stopOpacity:0}),h[9]=er,h[10]=r):r=h[10],h[11]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("stop",{offset:"100%",stopColor:"white",stopOpacity:1}),h[11]=a):a=h[11],h[12]!==K||h[13]!==r?(l=(0,i.jsxs)("linearGradient",{id:K,x1:"0",y1:"0",x2:"1",y2:"0",children:[r,a]}),h[12]=K,h[13]=r,h[14]=l):l=h[14];let ei=`url(#${K})`;return h[15]!==ei?(o=(0,i.jsx)("rect",{x:"0",y:"0",width:"1",height:"1",fill:ei}),h[15]=ei,h[16]=o):o=h[16],h[17]!==Q||h[18]!==o?(s=(0,i.jsx)("mask",{id:Q,maskContentUnits:"objectBoundingBox",children:o}),h[17]=Q,h[18]=o,h[19]=s):s=h[19],h[20]!==l||h[21]!==s?(c=(0,i.jsxs)("defs",{children:[l,s]}),h[20]=l,h[21]=s,h[22]=c):c=h[22],h[23]!==j||h[24]!==k||h[25]!==O||h[26]!==Q||h[27]!==Z||h[28]!==$||h[29]!==q||h[30]!==X||h[31]!==R||h[32]!==N?(d=(0,U.O)(O)&&N>0&&(0,i.jsx)("g",{transform:`rotate(${Z}, ${j}, ${k})`,children:(0,i.jsx)("image",{href:O.default.src,x:q,y:X,width:$,height:R,mask:`url(#${Q})`,style:{pointerEvents:"none"}})}),h[23]=j,h[24]=k,h[25]=O,h[26]=Q,h[27]=Z,h[28]=$,h[29]=q,h[30]=X,h[31]=R,h[32]=N,h[33]=d):d=h[33],h[34]!==T||h[35]!==z||h[36]!==Y||h[37]!==J?(u=(0,U.O)(T)&&(0,i.jsx)("image",{href:T.default.src,x:z-J/2,y:Y-J/2,width:J,height:J,style:{pointerEvents:"none",mixBlendMode:"plus-lighter"}}),h[34]=T,h[35]=z,h[36]=Y,h[37]=J,h[38]=u):u=h[38],h[39]!==P||h[40]!==c||h[41]!==d||h[42]!==u||h[43]!==et?(A=(0,i.jsxs)("svg",{"data-testid":"star-booster-progress-overlay",width:P,height:P,viewBox:et,overflow:"visible",children:[c,d,u]}),h[39]=P,h[40]=c,h[41]=d,h[42]=u,h[43]=et,h[44]=A):A=h[44],A};var V=r(29358),z=r(24768),Y=r(27264),H=r(16289),K=r(61692),Q=r(27527),$=r(7835),q=r(11800),X=r(84223),Z=r(98949);let J=(0,v.Ay)(Z.a)(({onClick:e})=>
35({cursor:(0,U.O)(e)?"pointer":void 0,display:"flex",flexDirection:"row",border:`3px solid ${I.l.NEUTRAL.EXTRA_DARK}`,borderRadius:b.E.BORDER_RADIUS[100],paddingRight:b.E[15],alignItems:"center",gap:b.E[5],minWidth:"100px",height:"47px",background:I.l.NEUTRAL.DARK})),ee=(0,v.Ay)(Z.a)(({onClick:e})=>({cursor:(0,U.O)(e)?"pointer":void 0,position:"relative",overflow:"visible",width:z.fB.CONTAINER.WIDTH,height:z.fB.CONTAINER.HEIGHT,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:z.fB.CONTAINER.BORDER_RADIUS,background:z.fB.CONTAINER.BACKGROUND}));var et=r(99555);let er=e=>{let t,r,a,l,o,s=(0,n.c)(22),{containerSx:c,withoutContainer:d,iconSize:u,progressSize:A,showGlow:h,disableAnimations:p,active:m,onClick:E,...f}=e,g=void 0===u?z.fB.SHARED.ICON_SIZE:u,y=void 0!==p&&p,x=void 0===m||m;s[0]!==x||s[1]!==y?(t={disableAnimations:y,active:x},s[0]=x,s[1]=y,s[2]=t):t=s[2];let{displayedBalance:v,isLoading:R,animationPhase:w,starDelta:S,playProgress:C,starProgress:_,progressBarColors:T,boosterPhase:O}=(0,et.n)(t),{isMobile:D}=(0,Y.G)();if(s[3]!==y||s[4]!==C||s[5]!==_?.boosterPhase||s[6]!==_?.boosterProgress||s[7]!==_?.playProgress){let e,t,i;s[9]!==_?.boosterProgress?(e=()=>_?.boosterProgress??0,s[9]=_?.boosterProgress,s[10]=e):e=s[10],s[11]!==_?.playProgress?(t=()=>_?.playProgress??0,s[11]=_?.playProgress,s[12]=t):t=s[12],s[13]!==C?(i=()=>C,s[13]=C,s[14]=i):i=s[14],r=(0,V.YW)({disableAnimations:y,boosterPhase:_?.boosterPhase}).with({disableAnimations:!0,boosterPhase:V.P.nonNullable},e).with({disableAnimations:!0,boosterPhase:V.P.nullish},t).with({disableAnimations:!1},i).exhaustive(),s[3]=y,s[4]=C,s[5]=_?.boosterPhase,s[6]=_?.boosterProgress,s[7]=_?.playProgress,s[8]=r}else r=s[8];let N=Math.min(100*r,100),L=(0,X.B)(v??0),P=D?z.fB.LARGE:z.fB.SMALL,j=A??P.SIZE,k=I.l.WALLETS.GC.MAIN,B=D?{showGlow:h??!0}:{showGlow:h??!1,sx:{gap:b.E[10]}},M=y?_?.boosterPhase:O,W={amount:L,iconSize:g,showProgress:!0,hideAmount:!0,progressValue:N,progressSize:j,glowColor:k,gradientColors:T,animationPhase:y?"idle":w,starDelta:S,...B,...f,overlay:(0,U.O)(M)&&(0,i.jsx)(G,{boosterPhase:M,value:N,size:j,roundedCaps:!0,gradientColors:T})};return void 0!==d&&d?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(K.X,{...W})}):(s[15]!==c?(a=Array.isArray(c)?c:[c],s[15]=c,s[16]=a):a=s[16],s[17]!==x?(l=!x&&{display:"none"},s[17]=x,s[18]=l):l=s[18],s[19]!==a||s[20]!==l?(o=[...a,l],s[19]=a,s[20]=l,s[21]=o):o=s[21],(0,i.jsxs)(D?ee:J,{onClick:E,sx:o,children:[(0,i.jsx)(K.X,{...W}),!D&&(0,i.jsxs)(i.Fragment,{children:[R?(0,i.jsx)(Q.E,{variant:"text",width:35}):(0,i.jsx)($.A,{component:"span",sx:{display:"inline-block",minWidth:`${L.replace(/\D/g,"").length}ch`,fontSize:q.p.SIZE[14]},children:L}),(0,i.jsx)(H.A,{"data-testid":"star-progress-info-icon",sx:{fontSize:b.E[15],color:I.l.NEUTRAL.LIGHT}})]})]}))},ei=e=>{let t,r,a=(0,n.c)(8),{iconSize:l,progressSize:o,sx:s,active:c}=e,d=void 0===c||c,{pushDialog:u}=(0,k.A)();a[0]!==u?(t=()=>{u("loyalty-rewards")},a[0]=u,a[1]=t):t=a[1];let A=t;return a[2]!==d||a[3]!==A||a[4]!==l||a[5]!==o||a[6]!==s?(r=(0,i.jsx)(er,{onClick:A,containerSx:s,iconSize:l,progressSize:o,active:d}),a[2]=d,a[3]=A,a[4]=l,a[5]=o,a[6]=s,a[7]=r):r=a[7],r};var en=r(67768),ea=r(71005),el=r(67814),eo=r(76271),es=r(65254),ec=r(72734),ed=r(10622),eu=r(48381),eA=r(89308),eh=r(81361),ep=r(44309),em=r(21926),eE=r(21730);let ef=(0,v.Ay)(Z.a)({display:"flex",flexDirection:"row",maxWidth:"100%",background:I.l.NEUTRAL.EXTRA_DARK,borderRadius:b.E.BORDER_RADIUS[100],padding:b.E[3]}),eg=(0,v.Ay)("button",{shouldForwardProp:C.A})(({selected:e})=>({display:"flex",alignItems:"center",justifyContent:"center",flexGrow:1,flexShrink:e?1:2,minWidth:0,paddingBlock:b.E[5],paddingInline:"0",height:b.E[40],cursor:"pointer",borderRadius:b.E[100],border:"none",background:e?I.l.NEUTRAL.DARK:"transparent",color:I.l.NEUTRAL.WHITE,fontSize:q.p.SIZE[14],"&:hover, &:focus-visible":{background:I.l.NEUTRAL.DARK}})),ey=(0,v.Ay)("span")({height:b.E[15],minWidth:b.E[5],width:b.E[10],flexShrink:3}),eb=(0,v.Ay)("span")({height:b.E[15],minWidth:"2px",width:b.E[5],flexShrink:3}),ex=(0,v.Ay)("span")({minWidth:0,display:"flex","& span":{minWidth:0}}),ev="skeleton",eR=e=>{let t,r,a,l,o,s,c,d,u,A,h,p,m,E,f,g,y,x,v,R,w,S,I,C,_,T,O,D,N,L,P,j=(0,n.c)(89),{sx:M}=e,[W,U]=(0,B.useState)(null),{setSelectedCurrency:F,selectedCurrency:G,isScAllowed:V}=(0,ec.e)(),[z,H]=(0,B.useState)(G),{isMobile:K}=(0,Y.G)(),{pushDialog:$}=(0,k.A)();j[0]!==$?(t=()=>$("select-package"),j[0]=$,j[1]=t):t=j[1];let q=t,X=(0,en.jE)(),{scWallet:Z,gcWallet:J,isLoading:ee}=(0,ed.S)(),et=!!(0,eu.c)(eA.hm),{markPending:er}=(0,eo.G7)(),ei=(0,B.useRef)(null);j[2]!==G?(r=()=>{H(G)}
35,a=[G],j[2]=G,j[3]=r,j[4]=a):(r=j[3],a=j[4]),(0,B.useEffect)(r,a),j[5]===Symbol.for("react.memo_cache_sentinel")?(l=()=>()=>{ei.current?.(),ei.current=null},o=[],j[5]=l,j[6]=o):(l=j[5],o=j[6]),(0,B.useEffect)(l,o),j[7]!==et||j[8]!==er||j[9]!==X||j[10]!==F?(s=e=>{H(e),er(e),ei.current?.(),ei.current=(0,em.f)(()=>{ei.current=null,F(e),et&&X.invalidateQueries({queryKey:es.y.list()})})},j[7]=et,j[8]=er,j[9]=X,j[10]=F,j[11]=s):s=j[11];let eR=s;j[12]!==eR||j[13]!==z||j[14]!==K||j[15]!==W?(c=()=>{"GC"!==z&&eR("GC"),K&&("GC"===z&&"GC"!==W?U("GC"):U(null))},j[12]=eR,j[13]=z,j[14]=K,j[15]=W,j[16]=c):c=j[16];let eS=c;j[17]!==eR||j[18]!==z||j[19]!==K||j[20]!==V||j[21]!==W?(d=()=>{"SC"!==z&&V&&eR("SC"),K&&("SC"!==z&&V?U(null):"SC"!==W?U("SC"):U(null))},j[17]=eR,j[18]=z,j[19]=K,j[20]=V,j[21]=W,j[22]=d):d=j[22];let eI=d;j[23]!==q?(u=e=>{e.preventDefault(),U(null),q()},j[23]=q,j[24]=u):u=j[24];let eC=u;j[25]!==K?(A=e=>{K||U(e)},j[25]=K,j[26]=A):A=j[26];let e_=A;j[27]!==z||j[28]!==J?.balance||j[29]!==et||j[30]!==Z?.balance?(h="GC"===z?(0,eE.u)({amount:J?.balance??0,decimalCount:0,maxCharacters:8}):(0,eE.u)({amount:Z?.balance??0,decimalCount:2,trailingZeroes:!1}),et&&(h="(In Play)"),p=h.split("").map(ew),j[27]=z,j[28]=J?.balance,j[29]=et,j[30]=Z?.balance,j[31]=h,j[32]=p):(h=j[31],p=j[32]);let eT=p,eO="GC"===W;j[33]!==e_?(m=()=>e_("GC"),j[33]=e_,j[34]=m):m=j[34],j[35]===Symbol.for("react.memo_cache_sentinel")?(E=()=>U(null),j[35]=E):E=j[35];let eD=J?.balance,eN="GC"!==z||ee?"Gold Coins":h,eL="GC"===z;j[36]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)(ey,{}),g=(0,i.jsx)(ep.B,{width:20,height:20}),j[36]=f,j[37]=g):(f=j[36],g=j[37]),j[38]!==z||j[39]!==ee||j[40]!==et||j[41]!==eT?(y="GC"===z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eb,{}),ee&&!et?(0,i.jsx)(Q.E,{"data-testid":ev,width:50,height:20}):(0,i.jsx)(ex,{children:eT})]}),j[38]=z,j[39]=ee,j[40]=et,j[41]=eT,j[42]=y):y=j[42];let eP="GC"===z?b.E[15]:b.E[10];j[43]!==eP?(x=(0,i.jsx)(ey,{sx:{width:eP}}),j[43]=eP,j[44]=x):x=j[44],j[45]!==eS||j[46]!==eN||j[47]!==eL||j[48]!==y||j[49]!==x?(v=(0,i.jsxs)(eg,{"aria-label":eN,"data-testid":"gc-button",onClick:eS,selected:eL,children:[f,g,y,x]}),j[45]=eS,j[46]=eN,j[47]=eL,j[48]=y,j[49]=x,j[50]=v):v=j[50],j[51]!==eC||j[52]!==eO||j[53]!==m||j[54]!==eD||j[55]!==v?(R=(0,i.jsx)(ea.i,{open:eO,onOpen:m,onClose:E,onGetCoins:eC,balance:eD,children:v}),j[51]=eC,j[52]=eO,j[53]=m,j[54]=eD,j[55]=v,j[56]=R):R=j[56],j[57]===Symbol.for("react.memo_cache_sentinel")?(w=(0,i.jsx)(eb,{}),j[57]=w):w=j[57];let ej="SC"===W;j[58]!==e_?(S=()=>e_("SC"),j[58]=e_,j[59]=S):S=j[59],j[60]===Symbol.for("react.memo_cache_sentinel")?(I=()=>U(null),j[60]=I):I=j[60];let ek=Z?.balance,eB=Z?.redeemable,eM="SC"!==z||ee?"Sweepstake Coins":h,eW="SC"===z,eU=V?1:.5;j[61]!==eU?(C={opacity:eU},j[61]=eU,j[62]=C):C=j[62],j[63]===Symbol.for("react.memo_cache_sentinel")?(_=(0,i.jsx)(ey,{}),T=(0,i.jsx)(eh.r8,{width:20,height:20}),j[63]=_,j[64]=T):(_=j[63],T=j[64]),j[65]!==z||j[66]!==ee||j[67]!==et||j[68]!==eT?(O="SC"===z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eb,{}),ee&&!et?(0,i.jsx)(Q.E,{"data-testid":ev,width:50,height:20}):(0,i.jsx)(ex,{children:eT})]}),j[65]=z,j[66]=ee,j[67]=et,j[68]=eT,j[69]=O):O=j[69];let eF="SC"===z?b.E[15]:b.E[10];return j[70]!==eF?(D=(0,i.jsx)(ey,{sx:{width:eF}}),j[70]=eF,j[71]=D):D=j[71],j[72]!==eI||j[73]!==eM||j[74]!==eW||j[75]!==C||j[76]!==O||j[77]!==D?(N=(0,i.jsxs)(eg,{"aria-label":eM,"data-testid":"sc-button",onClick:eI,selected:eW,sx:C,children:[_,T,O,D]}),j[72]=eI,j[73]=eM,j[74]=eW,j[75]=C,j[76]=O,j[77]=D,j[78]=N):N=j[78],j[79]!==ej||j[80]!==S||j[81]!==ek||j[82]!==eB||j[83]!==N?(L=(0,i.jsx)(el.u,{open:ej,onOpen:S,onClose:I,balance:ek,redeemable:eB,children:N}),j[79]=ej,j[80]=S,j[81]=ek,j[82]=eB,j[83]=N,j[84]=L):L=j[84],j[85]!==M||j[86]!==R||j[87]!==L?(P=(0,i.jsxs)(ef,{sx:M,children:[R,w,L]}),j[85]=M,j[86]=R,j[87]=L,j[88]=P):P=j[88],P};function ew(e,t){return(0,i.jsx)("span",{children:e},t)}let eS=(0,B.lazy)(async()=>{let{BoxTicketTooltip:e}=await r.e(5369).then(r.bind(r,75369));return{default:e}}),eI=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B.Suspense,{fallback:(0,i.jsx)(B.Fragment,{}),children:(0,i.jsx)(eS,{})}),t[0]=e):e=t[0],e},eC=(0,c.s3)(c.N4.MOBILE),e_=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(Z.a,{sx:{[eC]:{marginRight:"auto"}},children:(0,i.jsx)(eI,{})}),t[0]=e):e=t[0],e};var eT=r(69950),eO=r(75885),eD=r(67368),eN=r(82091),eL=r(86898),eP=r(89099);let ej={src:"/_next/static/media/polygon.2233cbe7.svg",height:16,width:21,blurWidth:0,blurHeight:0};var ek=r(55771),eB=r(79367),eM=r(21285);let eW=(0,v.Ay)(eB.W1)({"& .MuiPaper-root":{maxWidth:140,width:"100%",position:"relative",overflow:"visible",marginTop:b.E[20]}}),eU=(0,v.Ay)("button")({height:40,margin:0,paddingInline:b.E[10],paddingBlock:b.E[5],display:"flex",alignItems:"center",justifyContent:"center",gap:b.E[10],borderRadius:b.E[30],border:"none",background:"transparent",curs
35or:"pointer","&focus":{outline:"none"},"&:focus-visible":{outline:`2px solid ${I.l.PRIMARY.MAIN}`},"&:hover":{background:I.l.NEUTRAL.DARK}}),eF=(0,v.Ay)(eM._)({position:"absolute",top:-16,left:11}),eG=(0,c.s3)(c.N4.MOBILE),eV=e=>{let t,r,l,o,s,c,d,u,A,h,p,m,E,f,g,y,b,x,v,R=(0,n.c)(36),{sx:w}=e;R[0]!==w?(t=void 0===w?[]:w,R[0]=w,R[1]=t):t=R[1];let S=t,{push:C}=(0,eP.useRouter)(),{protect:_}=(0,eD.e)(),{logout:T}=(0,a.A)(),[O,D]=(0,B.useState)(null),{data:N}=(0,eL.B)();R[2]!==_||R[3]!==C?(r=e=>{let{route:t,isProtected:r}=e;!0===r?_(()=>C(t),["onboardingCompleted"])():C(t)},R[2]=_,R[3]=C,R[4]=r):r=R[4];let L=r;R[5]!==T?(l=()=>{T({logoutParams:{returnTo:"https://modo.us"}})},R[5]=T,R[6]=l):l=R[6];let P=l;return R[7]===Symbol.for("react.memo_cache_sentinel")?(o=e=>D(e.currentTarget),R[7]=o):o=R[7],R[8]!==N?(s=(0,U.O)(N)&&(0,i.jsx)(eN.J,{level:N?.vipRank.current.level,size:{width:28,height:32}}),R[8]=N,R[9]=s):s=R[9],R[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)($.A,{variant:"body1",sx:{whiteSpace:"nowrap",[eG]:{display:"none"}},children:"My Profile"}),R[10]=c):c=R[10],R[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsx)(ek.A,{sx:{color:I.l.NEUTRAL.WHITE,[eG]:{display:"none"}}}),R[11]=d):d=R[11],R[12]!==S||R[13]!==s?(u=(0,i.jsxs)(eU,{onClick:o,sx:S,children:[s,c,d]}),R[12]=S,R[13]=s,R[14]=u):u=R[14],R[15]!==O?(A=(0,U.O)(O),R[15]=O,R[16]=A):A=R[16],R[17]===Symbol.for("react.memo_cache_sentinel")?(h=()=>D(null),R[17]=h):h=R[17],R[18]===Symbol.for("react.memo_cache_sentinel")?(p={vertical:"bottom",horizontal:"left"},R[18]=p):p=R[18],R[19]===Symbol.for("react.memo_cache_sentinel")?(m=(0,i.jsx)(eF,{src:ej,alt:"",width:25,height:25,sx:{[eG]:{left:"unset",right:"6px"}}}),R[19]=m):m=R[19],R[20]!==L?(E=()=>L({route:"/my-profile",isProtected:!0}),R[20]=L,R[21]=E):E=R[21],R[22]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)($.A,{variant:"body2",children:"Settings"}),R[22]=f):f=R[22],R[23]!==E?(g=(0,i.jsx)(eB.Dr,{onClick:E,children:f}),R[23]=E,R[24]=g):g=R[24],R[25]===Symbol.for("react.memo_cache_sentinel")?(y=(0,i.jsx)($.A,{variant:"h4",color:"primary",children:"Sign out"}),R[25]=y):y=R[25],R[26]!==P?(b=(0,i.jsx)(eB.Dr,{onClick:P,children:y}),R[26]=P,R[27]=b):b=R[27],R[28]!==O||R[29]!==A||R[30]!==g||R[31]!==b?(x=(0,i.jsxs)(eW,{open:A,onClose:h,id:"playerMenu",anchorEl:O,disablePortal:!0,anchorOrigin:p,children:[m,g,b]}),R[28]=O,R[29]=A,R[30]=g,R[31]=b,R[32]=x):x=R[32],R[33]!==x||R[34]!==u?(v=(0,i.jsxs)(i.Fragment,{children:[u,x]}),R[33]=x,R[34]=u,R[35]=v):v=R[35],v};var ez=r(62284);let eY=(0,v.Ay)(y.B)({position:"relative",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:b.E.BORDER_RADIUS[100],background:I.l.PURPLE_GRADIENT.LINEAR_90}),eH=(0,v.Ay)(y.B)({position:"absolute",inset:0,alignItems:"center",justifyContent:"center"}),eK=(0,v.Ay)(y.B)({position:"relative",alignItems:"center",justifyContent:"center",zIndex:S.M.progressAnimationIcon}),eQ=e=>{let t,r,a,l,o,s,c,d,u,A=(0,n.c)(32),{level:h,progressValue:p,animationPhase:m,pointsDelta:E,size:f,thickness:g,startAngle:y,trackColor:b,gradientColors:x,endDotScale:v,glowColor:R,onClick:w,hideProgress:S,sx:I}=e,C=void 0===m?"idle":m,_=void 0===E?0:E,T=void 0!==S&&S;A[0]!==I?(t=void 0===I?[]:I,A[0]=I,A[1]=t):t=A[1];let O=t,D="phase1"===C,N="phase2"===C;return A[2]!==f?(r={width:f,height:f},A[2]=f,A[3]=r):r=A[3],A[4]!==O?(a=Array.isArray(O)?O:[O],A[4]=O,A[5]=a):a=A[5],A[6]!==r||A[7]!==a?(l=[r,...a],A[6]=r,A[7]=a,A[8]=l):l=A[8],A[9]!==v||A[10]!==R||A[11]!==x||A[12]!==T||A[13]!==D||A[14]!==p||A[15]!==f||A[16]!==y||A[17]!==g||A[18]!==b?(o=!T&&(0,i.jsx)(eH,{children:(0,i.jsx)(ez.P,{value:p,size:f,thickness:g,startAngle:y,trackColor:b,gradientColors:x,glowColor:R,endDot:!0,endDotScale:v,roundedCaps:!0,flashEndDot:D})}),A[9]=v,A[10]=R,A[11]=x,A[12]=T,A[13]=D,A[14]=p,A[15]=f,A[16]=y,A[17]=g,A[18]=b,A[19]=o):o=A[19],A[20]===Symbol.for("react.memo_cache_sentinel")?(s={width:25,height:30},A[20]=s):s=A[20],A[21]!==h?(c=(0,i.jsx)(eK,{children:(0,i.jsx)(eN.J,{level:h,size:s})}),A[21]=h,A[22]=c):c=A[22],A[23]!==N||A[24]!==_?(d=N&&_>
350&&(0,i.jsxs)(z.uB,{children:["+",_.toLocaleString()]}),A[23]=N,A[24]=_,A[25]=d):d=A[25],A[26]!==w||A[27]!==c||A[28]!==d||A[29]!==l||A[30]!==o?(u=(0,i.jsxs)(eY,{onClick:w,sx:l,children:[o,c,d]}),A[26]=w,A[27]=c,A[28]=d,A[29]=l,A[30]=o,A[31]=u):u=A[31],u};var e$=r(60892),eq=r(14973);let eX=e=>{let t,r,a,l,o,s,c=(0,n.c)(19),{sx:d,walletType:u}=e,{vipStatus:A,animationPhase:h,pointsDelta:p,displayProgress:m}=(()=>{let e,t,r,i=(0,n.c)(12),{data:a,isLoading:l}=(0,eL.B)();i[0]!==a?(e=(0,U.O)(a)?(0,e$.D)({userVipLevels:a.projectedVipRank,userVipPoints:a.vipPoints}):0,i[0]=a,i[1]=e):e=i[1];let o=e,s=a?.vipPoints??0,c=o/100;i[2]!==l||i[3]!==s||i[4]!==c?(t={balance:s,progress:c,isLoadingBalance:l,isLoadingProgress:l},i[2]=l,i[3]=s,i[4]=c,i[5]=t):t=i[5];let{animationPhase:d,delta:u,displayProgress:A}=(0,eq.h)(t),h=100*A;return i[6]!==d||i[7]!==u||i[8]!==l||i[9]!==h||i[10]!==a?(r={vipStatus:a,isLoading:l,animationPhase:d,pointsDelta:u,displayProgress:h},i[6]=d,i[7]=u,i[8]=l,i[9]=h,i[10]=a,i[11]=r):r=i[11],r})(),{pushDialog:E}=(0,k.A)();c[0]!==E?(t=()=>{E("loyalty-rewards")},c[0]=E,c[1]=t):t=c[1];let f=t,g=A?.vipRank.current.level,y=A?.projectedVipRank.current.level;c[2]!==y?(r=(0,U.O)(y)&&["COSMIC_DIAMOND","BLACK_DIAMOND"].includes(y),c[2]=y,c[3]=r):r=c[3];let b=r;return u!==j.V.GC&&(0,U.O)(g)&&(c[4]!==u?(a=(0,V.YW)(u).with(j.V.SC,eZ).with(j.V.BT,eJ).otherwise(e0),l=(0,U.O)(a),c[4]=u,c[5]=a,c[6]=l):(a=c[5],l=c[6]),l)?(c[7]!==a?(o=[a,a],c[7]=a,c[8]=o):o=c[8],c[9]!==h||c[10]!==m||c[11]!==f||c[12]!==p||c[13]!==a||c[14]!==b||c[15]!==d||c[16]!==o||c[17]!==g?(s=(0,i.jsx)(eQ,{level:g,progressValue:m,animationPhase:h,pointsDelta:p,size:z.fB.LARGE.SIZE,thickness:z.fB.SHARED.THICKNESS,endDotScale:z.fB.SHARED.END_DOT_SCALE,startAngle:z.fB.SHARED.START_ANGLE,trackColor:I.l.NEUTRAL.EXTRA_DARK,gradientColors:o,glowColor:a,onClick:f,hideProgress:b,sx:d}),c[9]=h,c[10]=m,c[11]=f,c[12]=p,c[13]=a,c[14]=b,c[15]=d,c[16]=o,c[17]=g,c[18]=s):s=c[18],s):null};function eZ(){return I.l.WALLETS.SC.MAIN}function eJ(){return I.l.WALLETS.BT.MAIN}function e0(){return null}var e1=r(92523),e2=r(94088);let e3={src:"/_next/static/media/bt-store.523527ac.webp",height:60,width:60,blurDataURL:"data:image/webp;base64,UklGRq4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSCwAAAABYNBIkqLTxqQLDdxJhP9XwDTvISImgNTruq5C2PZZab9gm9CikVPI/nmUAVZQOCBcAAAA8AEAnQEqCAAIAAJAOCWwAnS6AAMHFcsAAPuZ/af6pPQL41HX3pza6Q+X5TLqsai+YGO2fdpw0U99Pr0CHyMcAYFnzuoJ0+59iSUpMQP6ClWP/OsOJAzUXk6AAAA=",blurWidth:8,blurHeight:8},e4={src:"/_next/static/media/gc-store.0e5209ca.webp",height:60,width:60,blurDataURL:"data:image/webp;base64,UklGRr4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD8AAAABf6CmkRQ4eh8l2KFHAhERuDDc6pfHJFhFktXoFxF4QgJSwAlSKIzgIKfLNzYi+h82RRFAXuBu8AN0B9VBbTAAVlA4IFgAAADQAQCdASoIAAgAAkA4JYgCdAEO4c/k4AD+4aW+exiEfRmln7JR3imY64RsBbPup3B89lNaEZydUNV63s57HMXzA+Rk/6WwPpdDGp1YdjiG0tQFDYOgAAAA",blurWidth:8,blurHeight:8},e5={src:"/_next/static/media/sc-store.f67a0b4c.webp",height:60,width:60,blurDataURL:"data:image/webp;base64,UklGRrQAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDsAAAABZ6CmkRQ4ex81wQ0C6ImIwKm41S9OwCqSpFafiMAKEpASBSEhW8gvjMCI/kcA0UG+EB9IA/QANUBtMABWUDggUgAAAPABAJ0BKggACAACQDglmAJ0APRmPrsogAD4tn8qfRV3Cnem3Mr4d5gwMue10P5rEj+zmIYfp8cdIGTUE7J1L/1+eM4z66vB/cfHT0HcCyIa8AA=",blurWidth:8,blurHeight:8};var e6=r(70778),e7=r(61777);let e8=(0,c.s3)(c.N4.MOBILE),e9=(0,v.Ay)("button",{shouldForwardProp:C.A})(({walletType:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:b.E[10],paddingInline:b.E[20],paddingBlock:b.E[5],height:b.E[40],cursor:"pointer",borderRadius:b.E[30],border:"none",background:(0,V.YW)(e).with(j.V.GC,()=>`linear-gradient(180deg, ${I.l.WALLETS.GC.DARK}, ${I.l.WALLETS.GC.MAIN} 35%)`).with(j.V.SC,()=>`linear-gradient(180deg, ${I.l.WALLETS.SC.DARK}, ${I.l.WALLETS.SC.MAIN} 35%)`).with(j.V.BT,()=>`linear-gradient(180deg, ${I.l.WALLETS.BT.DARK}, ${I.l.WALLETS.BT.MAIN} 35%)`).with(j.V.MC,()=>`linear-gradient(180deg, ${I.l.WALLETS.MC.DARK}, ${I.l.WALLETS.MC.MAIN} 35%)`).exhaustive(),boxShadow:"inset 1px 1px 0 #ffffff40","&focus":{outline:"none"},"&:focus-visible":{outline:`2px solid ${I.l.PRIMARY.MAIN}`},[e8]:{width:"46px",height:"46px"}})),te=(0,v.Ay)(e7.v,{shouldForwardProp:e=>"walletType"!==e})(({walletType:e})=>({display:"flex",background:I.l.NEUTRAL.WHITE,color:(0,V.YW)(e).with(j.V.GC,()=>I.l.WALLETS.GC.MAIN).with(j.V.SC,()=>I.l.WALLETS.SC.MAIN).with(j.V.BT,()=>I.l.WALLETS.BT.MAIN).with(j.V.MC,()=>I.l.WALLETS.MC.MAIN).exhaustive(),[e8]:{display:"none"}})),tt=e=>{let t,r=(0,n.c)(3),{walletType:a}=e,{promotions:l}=(0,e6.E)(a),o=l.length;return 0===o?null:(r[0]!==o||r[1]!==a?(t=(0,i.jsx)(te,{walletType:a,size:"small",label:o}),r[0]=o,r[1]=a,r[2]=t):t=r[2],t)},tr=e=>{let t,r,a,l,o,s=(0,n.c)(15),{sx:d,walletType:u}=e,{pushDialog:A}=(0,k.A)(),{startModoCashDepositPayment:h}=(0,e2.m)();s[0]!==A||s[1]!==h||s[2]!==u?(t=()=>{(0,V.YW)(u).with(j.V.BT,()=>A("box-ticket-store")).with(j.V.MC,()=>h()).otherwise(()=>A("select-package"))}
35,s[0]=A,s[1]=h,s[2]=u,s[3]=t):t=s[3];let p=t,m=u??j.V.GC;s[4]!==m?(r=(0,V.YW)(m).with(j.V.GC,ti).with(j.V.SC,tn).with(j.V.BT,ta).with(j.V.MC,tl).exhaustive(),s[4]=m,s[5]=r):r=s[5];let E=r,f=(0,c.s3)(c.N4.MOBILE);return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)($.A,{variant:"link",component:"span",sx:{display:"block",[f]:{display:"none"},color:I.l.NEUTRAL.WHITE},children:"Store"}),s[6]=a):a=s[6],s[7]!==m?(l=(0,i.jsx)(e1.a,{children:(0,i.jsx)(tt,{walletType:m})}),s[7]=m,s[8]=l):l=s[8],s[9]!==p||s[10]!==m||s[11]!==E||s[12]!==d||s[13]!==l?(o=(0,i.jsxs)(e9,{id:"player-appbar-get-coins",walletType:m,onClick:p,"aria-label":"Store",sx:d,children:[E,a,l]}),s[9]=p,s[10]=m,s[11]=E,s[12]=d,s[13]=l,s[14]=o):o=s[14],o};function ti(){return(0,i.jsx)(eM._,{src:e4,alt:"",width:20,height:20,unoptimized:!0})}function tn(){return(0,i.jsx)(eM._,{src:e5,alt:"",width:20,height:20,unoptimized:!0})}function ta(){return(0,i.jsx)(eM._,{src:e3,alt:"",width:20,height:20,unoptimized:!0})}function tl(){return(0,i.jsx)(eh.b4,{width:18,height:10})}var to=r(21814);let ts="--app-bar-gap",tc=(0,v.Ay)("header",{shouldForwardProp:C.A})(({isScrolled:e,theme:t})=>({position:"sticky",top:0,zIndex:S.M.appBar,width:"100%","&::before":{[t.breakpoints.up("sm")]:{content:'""',position:"absolute",inset:0,background:e?"transparent":"url(/appbar-gradient.webp)",backgroundRepeat:"repeat-x",backgroundSize:"auto 100%",zIndex:-1,opacity:+!e,transition:"opacity 0.6s ease"}},"&::after":{content:'""',position:"absolute",inset:0,background:I.l.APP_BAR_GRADIENT,zIndex:-1,opacity:+!!e,transition:"opacity 0.6s ease"}})),td=(0,v.Ay)("div")(({theme:e})=>({display:"grid",gridTemplateColumns:`1fr calc(50% + ${z.fB.LARGE.SIZE/2}px)`,gridTemplateAreas:'"left right"',paddingBlock:b.E[10],paddingInline:b.E[10],height:to.W,flexShrink:0,alignItems:"center",[e.breakpoints.up("sm")]:{justifyContent:"flex-end",display:"flex",paddingInline:b.E[20],gap:b.E[15]}})),tu=(0,v.Ay)("div")(({theme:e})=>({gridArea:"left",display:"flex",alignItems:"center",minWidth:0,paddingRight:b.E[5],[e.breakpoints.up("sm")]:{display:"contents"}})),tA=(0,v.Ay)("div")(({theme:e})=>({width:`calc(var(${ts}) - ${b.E[5]})`,minWidth:0,flexShrink:2,[e.breakpoints.up("sm")]:{display:"none"}})),th=(0,v.Ay)("div")(({theme:e})=>({gridArea:"right",display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:0,[e.breakpoints.up("sm")]:{display:"contents"}})),tp=e=>e instanceof HTMLElement&&e.getClientRects().length>0&&"none"!==getComputedStyle(e).display,tm=(0,c.s3)(c.N4.MOBILE),tE=(0,c.s3)(c.N4.SM_MOBILE),tf=(0,c.s3)(c.N4.TABLET),tg=()=>{let e,t,r,a,c,d,h,p,f,g,x,v,R,S,I,C,_,T,O,D,N,k,M,W,F,G,V=(0,n.c)(61),{isMobile:z,isTablet:H}=(0,Y.G)(),K=(0,s.o)(),Q=(0,P.y)(),{setIsNavOpen:$}=(0,m.o)(E.X7),q=(0,m.o)(ty),X=(0,m.o)(E.WV),Z=Q===j.V.BT,J=Z||Q===j.V.MC,ee=(0,B.useRef)(null),et=(0,B.useRef)(null);V[0]!==z?(e={enabled:z,containerRef:ee,targetRef:et,gapVar:ts},V[0]=z,V[1]=e):e=V[1],(e=>{let t,r,i,a,l=(0,n.c)(15),{enabled:o,containerRef:s,targetRef:c,gapVar:d}=e,u=(0,B.useRef)(0),A=(0,B.useRef)(null);l[0]!==s||l[1]!==o||l[2]!==d||l[3]!==c?(t=()=>{if(!o)return;let e=s.current,t=c.current;if(!(0,U.O)(e)||!(0,U.O)(t))return;let r=(e=>{let[t,r]=Array.from(e.children).filter(tp);if(!(0,U.O)(t)||!(0,U.O)(r))return null;let i=t.getBoundingClientRect();return Math.round(r.getBoundingClientRect().left-i.right)})(e);A.current!==r&&(A.current=r,null===r?t.style.removeProperty(d):t.style.setProperty(d,`${r}px`))},l[0]=s,l[1]=o,l[2]=d,l[3]=c,l[4]=t):t=l[4];let h=t;l[5]!==h||l[6]!==o?(r=()=>{o&&(0!==u.current&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{u.current=0,h()}))},l[5]=h,l[6]=o,l[7]=r):r=l[7];let p=r;l[8]!==s||l[9]!==o||l[10]!==d||l[11]!==p||l[12]!==c?(i=()=>{if(!o){A.current=null,c.current?.style.removeProperty(d);return}let e=c.current,t=s.current,r=new ResizeObserver(p);return t&&r.observe(t),p(),()=>{r.disconnect(),0!==u.current&&(cancelAnimationFrame(u.current),u.current=0),A.current=null,e?.style.removeProperty(d)}},a=[s,o,p,c,d],l[8]=s,l[9]=o,l[10]=d,l[11]=p,l[12]=c,l[13]=i,l[14]=a):(i=l[13],a=l[14]),(0,B.useLayoutEffect)(i,a)})(e);let{isFeatureFlagEnabled:er}=(0,l.J)(),en=(0,L.N)(),{isModoApp:ea}=(0,A.R)(),el=H?"column-reverse":"column";V[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(o.P,{}
35),V[2]=t):t=V[2],V[3]!==en||V[4]!==ea||V[5]!==er?(r=er&&en&&ea&&(0,i.jsx)(eT.s,{}),V[3]=en,V[4]=ea,V[5]=er,V[6]=r):r=V[6],V[7]!==K?(a=K&&(0,i.jsx)(w,{sx:{display:"flex",[tf]:{display:"none"}}}),V[7]=K,V[8]=a):a=V[8],V[9]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",[tm]:{display:"none"}},V[9]=c):c=V[9],V[10]!==Q?(d=(0,i.jsx)(tr,{walletType:Q,sx:c}),V[10]=Q,V[11]=d):d=V[11],V[12]!==Z?(h=Z&&(0,i.jsx)(e_,{}),V[12]=Z,V[13]=h):h=V[13],V[14]!==z||V[15]!==J?(p=!J&&(0,i.jsx)(eR,{sx:{flexGrow:+!!z}}),V[14]=z,V[15]=J,V[16]=p):p=V[16],V[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)(tA,{}),V[17]=f):f=V[17],V[18]!==r||V[19]!==a||V[20]!==d||V[21]!==h||V[22]!==p?(g=(0,i.jsxs)(tu,{children:[r,a,d,h,p,f]}),V[18]=r,V[19]=a,V[20]=d,V[21]=h,V[22]=p,V[23]=g):g=V[23],V[24]!==J||V[25]!==X?(x=!J&&(0,i.jsx)(ei,{active:"GC"===X}),V[24]=J,V[25]=X,V[26]=x):x=V[26],V[27]===Symbol.for("react.memo_cache_sentinel")?(v={display:"none",[tm]:{display:"flex"}},V[27]=v):v=V[27],V[28]!==Q?(R=(0,i.jsx)(eX,{walletType:Q,sx:v}),S=(0,i.jsx)(eO.t,{walletType:Q}),V[28]=Q,V[29]=R,V[30]=S):(R=V[29],S=V[30]),V[31]===Symbol.for("react.memo_cache_sentinel")?(I={display:"none",[tm]:{display:"flex"}},V[31]=I):I=V[31],V[32]!==Q?(C=(0,i.jsx)(tr,{walletType:Q,sx:I}),V[32]=Q,V[33]=C):C=V[33];let eo=z?"none":"flex";V[34]!==eo?(_=(0,i.jsx)(eV,{sx:{display:eo}}),V[34]=eo,V[35]=_):_=V[35],V[36]!==$?(T=()=>$(!0),V[36]=$,V[37]=T):T=V[37];let es=z?"flex":"none";return V[38]===Symbol.for("react.memo_cache_sentinel")?(O={marginRight:0},D={top:`-${b.E[5]}`},V[38]=O,V[39]=D):(O=V[38],D=V[39]),V[40]!==es?(N={display:es,[tE]:O,"& .MuiBadge-badge":D},V[40]=es,V[41]=N):N=V[41],V[42]!==T||V[43]!==N?(k=(0,i.jsx)(u.I,{onClick:T,sx:N}),V[42]=T,V[43]=N,V[44]=k):k=V[44],V[45]!==x||V[46]!==R||V[47]!==S||V[48]!==C||V[49]!==_||V[50]!==k?(M=(0,i.jsxs)(th,{ref:ee,children:[x,R,S,C,_,k]}),V[45]=x,V[46]=R,V[47]=S,V[48]=C,V[49]=_,V[50]=k,V[51]=M):M=V[51],V[52]!==g||V[53]!==M?(W=(0,i.jsxs)(td,{children:[g,M]}),V[52]=g,V[53]=M,V[54]=W):W=V[54],V[55]!==el||V[56]!==W?(F=(0,i.jsxs)(y.B,{direction:el,children:[t,W]}),V[55]=el,V[56]=W,V[57]=F):F=V[57],V[58]!==q||V[59]!==F?(G=(0,i.jsx)(tc,{ref:et,isScrolled:q,children:F}),V[58]=q,V[59]=F,V[60]=G):G=V[60],G};function ty(e){return e.isMainContentScrolled}let tb=()=>{let e,t=(0,n.c)(2),{isAuthenticated:r}=(0,a.A)();if(r){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(tg,{}),t[0]=e):e=t[0],e}return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(D,{}),t[1]=e):e=t[1],e}},36099:(e,t,r)=>{r.d(t,{F:()=>i});let i="https://www.commoncause.org/find-your-representative/"},36943:(e,t,r)=>{r.d(t,{E:()=>i});let i={coupon:["community-coupon"]}},37437:(e,t,r)=>{r.d(t,{p:()=>W});var i=r(37876),n=r(27964),a=r(29340),l=r(23824),o=r(77061),s=r(30496),c=r(91311),d=r(98688),u=r(78989),A=r(89099),h=r(14232),p=r(51855),m=r(93662),E=r(85897),f=r(4040),g=r(19254),y=r(29358),b=r(40508),x=r(68275),v=r(17982),R=r(30647),w=r(22244),S=r(98949),I=r(49959),C=r(81293),_=r(79276),T=r(62268),O=r(42291);let D=(0,T.Ay)(I.Ay)(({theme:e})=>({flexShrink:0,"& .MuiDrawer-paper":{maxHeight:"100%",height:"100vh",overflow:"visible",borderRadius:0,paddingTop:R.E[10],background:v.l.SIDEBAR_GRADIENT,"@supports (height: 100dvh)":{height:"100dvh"},[e.breakpoints.down("sm")]:{height:"100%",overflow:"auto"}}})),N=(0,T.Ay)(S.a)({position:"absolute",top:25,right:-16,zIndex:500,background:v.l.NEUTRAL.DARK,padding:R.E[5],borderRadius:100}),L=(0,T.Ay)(C.A,{shouldForwardProp:O.A})(({isCollapsed:e})=>({background:v.l.NEUTRAL.MAIN,width:25,height:25,transform:e?"rotate(180deg)":"rotate(0deg)"})),P=(0,T.Ay)(_.B,{shouldForwardProp:O.A})(({isCollapsed:e})=>({paddingRight:R.E[15],paddingLeft:R.E[15],marginBottom:R.E[25],alignItems:"center",marginLeft:e?0:R.E[15],justifyContent:e?"center":"space-between"})),j=(0,h.lazy)(()=>Promise.all([r.e(2607),r.e(7547)]).then(r.bind(r,87547))),k=(0,h.lazy)(()=>Promise.all([r.e(5978),r.e(2607),r.e(4165),r.e(2018),r.e(9102),r.e(7173)]).then(r.bind(r,27173))),B=(0,h.lazy)(()=>Promise.all([r.e(2607),r.e(2987)]).then(r.bind(r,12987))),M=(0,h.lazy)(()=>Promise.all([r.e(5978),r.e(2607),r.e(4165),r.e(2018),r.e(9102),r.e(9593)]).then(r.bind(r,39593))),W=()=>{let e,t,r,S,I,C,_,T,O,j,k,B,M,W,K,Q,$=(0,n.c)(53),q=(0,d.o)(U),X=(0,d.o)(F),Z=(0,d.o)(G),{setIsNavCollapsed:J,setIsNavOpen:ee}=(0,d.o)(u.X7),{isFeatureFlagEnabled:et}=(0,l.k)("MODO_ARCADE_NAV"),{isFeatureFlagEnabled:er}=(0,a.J)(),{activeTheme:ei}=(0,o.Z)(),en=(0,s.Y)(),{isAuthenticated:ea}=(0,f.A)(),el=(0,E.p)("small"),eo=(0,E.p)("large");$[0]!==en||$[1]!==J||$[2]!==ee?(e=()=>
35{ee(!en),J(!1)},t=[en,ee,J],$[0]=en,$[1]=J,$[2]=ee,$[3]=e,$[4]=t):(e=$[3],t=$[4]),(0,h.useLayoutEffect)(e,t),(()=>{let e,t,r,i=(0,n.c)(8),{asPath:a}=(0,A.useRouter)(),l=(0,s.Y)(),{setIsNavOpen:o}=(0,d.o)(u.X7),m=a??"";i[0]!==m?(e=(0,c.I)(m)?m.split(/[?#]/)[0]:void 0,i[0]=m,i[1]=e):e=i[1];let E=e,f=(0,p.Z)(E,E);i[2]!==E||i[3]!==l||i[4]!==f||i[5]!==o?(t=()=>{l&&E&&E!==f&&o(!1)},r=[l,E,f,o],i[2]=E,i[3]=l,i[4]=f,i[5]=o,i[6]=t,i[7]=r):(t=i[6],r=i[7]),(0,h.useEffect)(t,r)})(),$[5]!==en||$[6]!==ee?(r=()=>{en&&ee(!1)},$[5]=en,$[6]=ee,$[7]=r):r=$[7];let es=r,ec=X?m.Db:m.TE,ed=en?"100%":ec;$[8]!==ee?(S=()=>ee(!1),$[8]=ee,$[9]=S):S=$[9];let eu=200*!!en;return $[10]!==ed?(I={width:ed},$[10]=ed,$[11]=I):I=$[11],$[12]===Symbol.for("react.memo_cache_sentinel")?(C={keepMounted:!0},$[12]=C):C=$[12],$[13]!==ed?(_={paper:{style:{width:ed}}},$[13]=ed,$[14]=_):_=$[14],$[15]!==es||$[16]!==X||$[17]!==eo||$[18]!==el?(T=X?(0,i.jsx)(x.A,{width:38,shouldLinkHome:!0,useSVG:!0,version:"small",seasonalLogo:el,onClick:es,sx:{display:"flex",justifyContent:"center"}}):(0,i.jsx)(x.A,{width:93,height:31,shouldLinkHome:!0,useSVG:!0,version:"large",seasonalLogo:eo,onClick:es}),$[15]=es,$[16]=X,$[17]=eo,$[18]=el,$[19]=T):T=$[19],$[20]!==en||$[21]!==q||$[22]!==ee?(O=en&&(0,i.jsx)(g.I,{"aria-label":q?"close drawer":"open drawer",edge:"end",sx:{mr:R.E[5]},onClick:()=>ee(!1)}),$[20]=en,$[21]=q,$[22]=ee,$[23]=O):O=$[23],$[24]!==X||$[25]!==T||$[26]!==O?(j=(0,i.jsxs)(P,{isCollapsed:X,direction:"row",children:[T,O]}),$[24]=X,$[25]=T,$[26]=O,$[27]=j):j=$[27],$[28]!==Z||$[29]!==en||$[30]!==X||$[31]!==J?(k=!en&&(0,i.jsx)(N,{children:(0,i.jsx)(L,{"aria-label":X?"close drawer":"open drawer",size:"small",isCollapsed:X,disabled:Z,onClick:()=>J(!X),children:(0,i.jsx)(b.A,{sx:{color:v.l.NEUTRAL.SOFT}})})}),$[28]=Z,$[29]=en,$[30]=X,$[31]=J,$[32]=k):k=$[32],$[33]!==ei||$[34]!==X||$[35]!==er?(B=er&&(0,i.jsx)(w.a,{isCollapsed:X,borderColor:ei,sx:{marginBlock:0}}),$[33]=ei,$[34]=X,$[35]=er,$[36]=B):B=$[36],$[37]===Symbol.for("react.memo_cache_sentinel")?(M=(0,i.jsx)(h.Fragment,{}),$[37]=M):M=$[37],$[38]!==et||$[39]!==ea?(W=(0,y.YW)({isAuthenticated:ea,isArcadeNavEnabled:et}).with({isAuthenticated:!0,isArcadeNavEnabled:!0},V).with({isAuthenticated:!0},z).with({isAuthenticated:!1,isArcadeNavEnabled:!0},Y).otherwise(H),$[38]=et,$[39]=ea,$[40]=W):W=$[40],$[41]!==W?(K=(0,i.jsx)(h.Suspense,{fallback:M,children:W}),$[41]=W,$[42]=K):K=$[42],$[43]!==q||$[44]!==j||$[45]!==k||$[46]!==B||$[47]!==K||$[48]!==S||$[49]!==eu||$[50]!==I||$[51]!==_?(Q=(0,i.jsxs)(D,{open:q,"data-testid":"player-side-nav",onClose:S,transitionDuration:eu,style:I,anchor:"left",variant:"persistent",ModalProps:C,slotProps:_,children:[j,k,B,K]}),$[43]=q,$[44]=j,$[45]=k,$[46]=B,$[47]=K,$[48]=S,$[49]=eu,$[50]=I,$[51]=_,$[52]=Q):Q=$[52],Q};function U(e){return e.isNavOpen}function F(e){return e.isNavCollapsed}function G(e){return e.isBoxOpen}function V(){return(0,i.jsx)(M,{})}function z(){return(0,i.jsx)(k,{})}function Y(){return(0,i.jsx)(B,{})}function H(){return(0,i.jsx)(j,{})}},37809:(e,t,r)=>{r.d(t,{i:()=>i});let i=(e,t)=>({packages:e.packages.filter(e=>e.experience===t),promotions:e.promotions.filter(e=>e.packages.some(e=>e.experience===t)).map(e=>({...e,packages:e.packages.filter(e=>e.experience===t)}))})},39662:(e,t,r)=>{r.d(t,{r:()=>d});var i=r(27964),n=r(91397),a=r(4040),l=r(76423),o=r(40371),s=r(33632),c=r(4072);let d=()=>{let e,t,r=(0,i.c)(3),{isAuthenticated:d}=(0,a.A)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,c.O)((0,o.Ri)(s.Z7.key)),r[0]=e):e=r[0];let A=e,h=d&&!A;r[1]!==h?(t={enabled:h},r[1]=h,r[2]=t):t=r[2];let{data:p}=(0,n.c)(t),{freeBoxPromotions:m}=(0,l.s)();return+(p?.boxesPromotionClaimable===!0)+m.reduce(u,0)};function u(e,t){return e+t.count}},43252:(e,t,r)=>{r.d(t,{D:()=>V});var i=r(37876),n=r(27964),a=r(63382),l=r(29340),o=r(23824),s=r(39658),c=r(30496),d=r(91311),u=r(54324);let A=["/modo-boxes/[boxSlug]","/modo-boxes/unboxing"];var h=r(86697),p=r(93662),m=r(82817),E=r(43411),f=r(18736),g=r(49769),y=r(17982),b=r(30647),x=r(62268);let v=(0,x.Ay)("nav")({position:"relative",zIndex:g.M.mobileNavigation,flexShrink:0,width:"100%",minWidth:0,paddingBlock:b.E[12],paddingInline:b.E[10],backgroundColor:y.l.NEUTRAL.EXTRA_DARK,"@media (max-width: 600px)":{overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",touchAction:"pan-x pinch-zoom","&::-webkit-scrollbar":{display:"none"}}}),R=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(v,{"data-testid":E.Oh,"aria-label":E.M5,children:(0,i.jsx)(f.o,{})}),t[0]=e):e=t[0],e},w=()=>{let e,t=(0,n.c)(1);return(0,m.N)()?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(R,{}),t[0]=e):e=t[0],e):null};var S=r(4040),I=r(98688),C=r(49751),_=r(78989),T=r(89099),O=r(14232),D=r(98949),N=r(1965),L=r(91462),P=r(4072),j=r(2170);let k=(0,x.Ay)("main")({flexGrow:1,display:"flex",flexDirection:"column",transition:"margin-left var(--transition-fast) var(--modo-cubic-bezier)"}),B={overflowY:"auto",overflowX:"hidden",display:"flex",flexDirection:"column",overflowAnchor:"none"},M={background:y.l.BACKGROUND_GRADIENT,backgroundAttachment:"fixed"},W="--main-content-height",U={backgroundColor:y.l.NEUTRAL.EXTRA_DARK,isolation:"isolate"},F={"&::before":{content:'""',position:"sticky",top:0,flexShrink:0,height:`var(${W})`,marginBottom:`calc(-1 * var(${W}
35))`,zIndex:g.M.mainContentBackground,background:y.l.BACKGROUND_GRADIENT,pointerEvents:"none"}},G={flex:1,display:"flex",flexDirection:"column"},V=e=>{let t,r,m,E,f,g,y,b,x,v,R,V,Y,H,K,Q,$=(0,n.c)(43),{children:q}=e,X=(0,c.Y)(),{isAuthenticated:Z}=(0,S.A)(),J=(0,I.o)(z),{setIsMainContentScrolled:ee}=(0,I.o)(_.X7),{isFeatureFlagEnabled:et}=(0,l.J)(),er=(()=>{let e,t=(0,n.c)(2),r=(0,N.xc)();if(!(0,L.B)())return;let i=r??window.innerHeight;return t[0]!==i?(e="u">typeof CSS&&CSS.supports?.("height: 100dvh")?"100dvh":`${i}px`,t[0]=i,t[1]=e):e=t[1],e})(),ei=(0,O.useRef)(null);$[0]===Symbol.for("react.memo_cache_sentinel")?(t={ref:ei},$[0]=t):t=$[0],(e=>{let t,r,i=(0,n.c)(6),{ref:a}=e,l=(0,T.useRouter)();i[0]!==a||i[1]!==l.events?(t=()=>{let e=a.current,t=(t,r)=>{r?.shallow===!1&&e instanceof HTMLElement&&e.scrollTo(0,0)},r=()=>{e instanceof HTMLElement&&e.scrollTo(0,0)};return l.events.on("routeChangeComplete",t),window.addEventListener("scrollToTop",r),()=>{l.events.off("routeChangeComplete",t),window.removeEventListener("scrollToTop",r)}},i[0]=a,i[1]=l.events,i[2]=t):t=i[2],i[3]!==a||i[4]!==l?(r=[l,a],i[3]=a,i[4]=l,i[5]=r):r=i[5],(0,O.useEffect)(t,r)})(t),(0,u.io)();let en=X||et&&!Z,ea=J?2*p.Db:p.TE,el=`calc(100% - ${ea}px)`,eo=en?0:ea,{asPath:es,pathname:ec}=(0,T.useRouter)(),ed=(0,d.N)(),{value:eu}=(0,o.k)("MYSTERY_BOX_VARIANT"),eA=(0,P.O)((0,I.o)(C.$f));$[1]!==es||$[2]!==X?(r=X&&!!es?.startsWith("/modo-boxes/")&&!es?.startsWith("/modo-boxes/checkout"),$[1]=es,$[2]=X,$[3]=r):r=$[3];let eh=r&&(!eA||"tiered"===eu);$[4]!==es||$[5]!==eh||$[6]!==X||$[7]!==ed?(m=ed||X&&es?.startsWith("/modo-boxes/checkout")||eh,$[4]=es,$[5]=eh,$[6]=X,$[7]=ed,$[8]=m):m=$[8];let ep=m,em=et?(({isInGameplay:e,isCompactViewport:t,pathname:r,asPath:i,areFeatureFlagsResolved:n,mysteryBoxVariant:a})=>!!(e||"/modo-boxes/collection"===r||t&&i?.startsWith("/modo-boxes/checkout"))||t&&A.includes(r)&&(!n||"tiered"===a))({isInGameplay:ed,isCompactViewport:X,pathname:ec,asPath:es,areFeatureFlagsResolved:eA,mysteryBoxVariant:eu}):ep;$[9]===Symbol.for("react.memo_cache_sentinel")?(E={totalStages:1},$[9]=E):E=$[9];let eE=(0,j.Q)(E)>=1;$[10]!==ee?(f=e=>{if(!e)return;let t=new IntersectionObserver(e=>ee(e.at(0)?.isIntersecting===!1),{rootMargin:"50px 0px 0px 0px",root:document.getElementById(a.e),threshold:[1]});return t.observe(e),()=>t.disconnect()},$[10]=ee,$[11]=f):f=$[11];let ef=f,eg=en||!J?0:`-${p.Db}px`;$[12]!==eg?(g=[{marginLeft:eg}],$[12]=eg,$[13]=g):g=$[13],$[14]!==er?(y={height:er,[W]:er},$[14]=er,$[15]=y):y=$[15];let ey=y;$[16]!==en||$[17]!==el?(b=en?{width:"100%"}:{width:{sm:el}},$[16]=en,$[17]=el,$[18]=b):b=$[18];let eb=`${eo}px`,ex=et?U:M;$[19]!==b||$[20]!==eb||$[21]!==ex?(x={...b,marginLeft:eb,containerType:"inline-size",containerName:h.AJ,...B,...ex},$[19]=b,$[20]=eb,$[21]=ex,$[22]=x):x=$[22],$[23]!==ef?(v=(0,i.jsx)(D.a,{ref:ef}),$[23]=ef,$[24]=v):v=$[24],$[25]===Symbol.for("react.memo_cache_sentinel")?(R=(0,i.jsx)(w,{}),$[25]=R):R=$[25];let ev=et&&F;return $[26]!==ev?(V={...G,...ev},$[26]=ev,$[27]=V):V=$[27],$[28]!==q||$[29]!==V?(Y=(0,i.jsx)(D.a,{sx:V,children:q}),$[28]=q,$[29]=V,$[30]=Y):Y=$[30],$[31]!==eE||$[32]!==em?(H=!em&&eE&&(0,i.jsx)(s.w,{}),$[31]=eE,$[32]=em,$[33]=H):H=$[33],$[34]!==x||$[35]!==v||$[36]!==Y||$[37]!==H||$[38]!==ey?(K=(0,i.jsxs)(D.a,{component:"main",style:ey,sx:x,id:a.e,ref:ei,children:[v,R,Y,H]}),$[34]=x,$[35]=v,$[36]=Y,$[37]=H,$[38]=ey,$[39]=K):K=$[39],$[40]!==K||$[41]!==g?(Q=(0,i.jsx)(k,{className:"rss-backdrop",sx:g,children:K}),$[40]=K,$[41]=g,$[42]=Q):Q=$[42],Q};function z(e){return e.isNavCollapsed}V.displayName="MainContentV2"},43411:(e,t,r)=>{r.d(t,{Je:()=>a,M5:()=>o,Oh:()=>l,XW:()=>i,e2:()=>n});let i="vertical-switcher-pill",n={type:"spring",stiffness:500,damping:40},a={SWITCHER_ITEM_CONTENT:1},l="vertical-switcher-bar",o="Verticals"},43599:(e,t,r)=>{r.d(t,{H4:()=>u,Jw:()=>l,P8:()=>m,RP:()=>h,RW:()=>a,Rs:()=>s,SE:()=>c,ZG:()=>A,jT:()=>o,lY:()=>E,os:()=>d,y6:()=>p});var i=r(96636),n=r(17982);let a=56,l=80,o="app-bar",s="app-bar-glow",c="app-bar-pin-sentinel",d=.4,u={[i.op]:{GC:n.l.WALLETS.GC.MAIN,SC:n.l.WALLETS.SC.MAIN},[i.od]:{GC:n.l.WALLETS.BT.MAIN,SC:n.l.WALLETS.BT.MAIN},[i.xw]:{GC:n.l.WALLETS.GC.MAIN,SC:n.l.WALLETS.SC.MAIN}},A=u[i.op];n.l.NEUTRAL.LIGHT;let h=n.l.PRIMARY.MAIN,p=81,m=27,E={...Object.fromEntries(Object.values(i.fg).map(e=>[e.paths[0],e.label])),...Object.fromEntries(Object.values(i.oX).map(e=>[e.paths[0],e.label])),...Object.fromEntries(Object.values(i.J$).map(e=>[e.paths[0],e.label])),...Object.fromEntries(Object.values(i.jx).map(e=>[e.paths[0],e.label])),...Object.fromEntries(Object.values(i.xp).map(e=>[e.paths[0],e.label])),"/promotions":"Promotions","/games":"Games","/modo-boxes/cart":"Cart","/modo-boxes/checkout":"Checkout"}},46263:(e,t,r)=>{r.d(t,{Y:()=>s});var i=r(27964),n=r(67768),a=r(40097),l=r(20239),o=r(60528);let s=()=>
35{let e,t,r,s=(0,i.c)(7),c=(0,o.f)(),d=(0,n.jE)();return s[0]!==c?(e=async e=>await c({url:"/core-service/settings",data:e,method:"PUT"}),s[0]=c,s[1]=e):e=s[1],s[2]!==d?(t=async()=>{await d.invalidateQueries({queryKey:l._.list()})},s[2]=d,s[3]=t):t=s[3],s[4]!==e||s[5]!==t?(r={mutationFn:e,onSuccess:t},s[4]=e,s[5]=t,s[6]=r):r=s[6],(0,a.n)(r)}},46293:(e,t,r)=>{r.d(t,{v:()=>p});var i=r(37876),n=r(27964),a=r(38935),l=r(5028),o=r(18851),s=r(29358),c=r(12311),d=r(17982),u=r(11800),A=r(30647);let h=(0,r(62268).Ay)(c.A,{shouldForwardProp:e=>"walletType"!==e&&"compact"!==e})(({size:e="medium",walletType:t,compact:r})=>({borderRadius:A.E[10],".MuiBadge-badge":{..."small"===e&&{fontSize:u.p.SIZE[10],width:A.E[15],minWidth:A.E[15],height:A.E[15],padding:0},background:(0,s.YW)(t).with(o.V.GC,()=>d.l.WALLETS.GC.MAIN).with(o.V.SC,()=>d.l.WALLETS.SC.MAIN).with(o.V.BT,()=>d.l.WALLETS.BT.MAIN).otherwise(()=>d.l.PRIMARY.MAIN),color:d.l.NEUTRAL.EXTRA_DARK,borderRadius:100,top:A.E[5],right:A.E[5],...r&&{width:A.E[15],minWidth:A.E[15],height:A.E[15],padding:0,fontSize:u.p.SIZE[10],fontStyle:"normal",fontWeight:u.p.WEIGHTS[700],lineHeight:"normal",letterSpacing:"0.3px",top:A.E[4],right:A.E[4]}}})),p=e=>{let t,r,o,s,c,d=(0,n.c)(12);d[0]!==e?({children:t,walletType:s,variant:o,...r}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=o,d[4]=s):(t=d[1],r=d[2],o=d[3],s=d[4]);let{newNotificationsCount:u}=(0,l.H)(),{isOnNotificationsPage:A}=(0,a.zc)();return d[5]!==t||d[6]!==A||d[7]!==u||d[8]!==r||d[9]!==o||d[10]!==s?(c=(0,i.jsx)(h,{invisible:A,badgeContent:u,max:9,walletType:s,variant:o,...r,children:t}),d[5]=t,d[6]=A,d[7]=u,d[8]=r,d[9]=o,d[10]=s,d[11]=c):c=d[11],c}},46941:(e,t,r)=>{r.d(t,{N:()=>A});var i=r(27964),n=r(29340),a=r(30496),l=r(91311),o=r(43599),s=r(93944),c=r(98688),d=r(41001),u=r(89099);let A=()=>{let e,t,r=(0,i.c)(8),{asPath:A,pathname:h}=(0,u.useRouter)(),p=(0,l.N)(),{isFeatureFlagEnabled:m}=(0,n.J)(),E=(0,a.Y)(),f=(0,c.o)(d.AK);r[0]!==A||r[1]!==E||r[2]!==p||r[3]!==m?(e=m&&E&&!p&&!(0,s.A)({location:A??""}),r[0]=A,r[1]=E,r[2]=p,r[3]=m,r[4]=e):e=r[4];let g=f??o.lY[h];return r[5]!==e||r[6]!==g?(t={isVisible:e,title:g},r[5]=e,r[6]=g,r[7]=t):t=r[7],t}},51075:(e,t,r)=>{r.d(t,{G:()=>u,s:()=>A});var i=r(27964),n=r(91311),a=r(75193),l=r(65910),o=r(19340),s=r(14232),c=r(49443),d=r(50272);let u=()=>{(0,c.V)()&&sessionStorage.setItem(d.zf,"true")},A=()=>{let e,t,r=(0,i.c)(6),{pushDialog:A}=(0,o.A)(),h=(0,a.jD)(),p=(0,l.D)(),m=(0,n.N)();r[0]!==m||r[1]!==h||r[2]!==p||r[3]!==A?(e=()=>{h||p||m||(0,c.V)()&&"true"===sessionStorage.getItem(d.zf)&&(sessionStorage.removeItem(d.zf),1)&&(A("onboarding-success-bonus")||u())},t=[h,p,m,A],r[0]=m,r[1]=h,r[2]=p,r[3]=A,r[4]=e,r[5]=t):(e=r[4],t=r[5]),(0,s.useEffect)(e,t)}},53038:(e,t,r)=>{r.d(t,{C:()=>i,Q:()=>n});let i={all:["puzzles"],activeSeries:()=>[...i.all,"active-series"]},n={all:["puzzle-rewards"],listPuzzleCompletionRewards:()=>[...n.all,"list-puzzle-completion-rewards"],listPuzzlePieceRewards:()=>[...n.all,"list-puzzle-piece-rewards"]}},53932:(e,t,r)=>{r.d(t,{n:()=>i});let i={all:["payment-cards"],list:()=>[...i.all,"list"],filteredList:(e={})=>[...i.list(),e],show:e=>[...i.all,"show",e]}},56632:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(27964),n=r(74359),a=r(60528),l=r(36943);let o=e=>{let t,r,o,s=(0,i.c)(7);s[0]!==e?(t=void 0===e?{enabled:!0}:e,s[0]=e,s[1]=t):t=s[1];let c=t,d=(0,a.f)();return s[2]!==d?(r=async e=>{let{signal:t}=e,{data:r}=await d({url:"/marketing-service/community-coupon",signal:t});return r?{...r,variant:"base"}:null},s[2]=d,s[3]=r):r=s[3],s[4]!==c.enabled||s[5]!==r?(o={queryKey:l.E.coupon,queryFn:r,enabled:c.enabled,refetchInterval:3e5},s[4]=c.enabled,s[5]=r,s[6]=o):o=s[6],(0,n.I)(o)}},57731:(e,t,r)=>{r.d(t,{A:()=>i});let i={src:"/_next/static/media/wallet-with-coins-sc.13c6fe8e.avif",height:435,width:390,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAAXBtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAADRpbG9jAAAAAERAAAIAAQAAAAABlAABAAAAAAAAAFkAAgAAAAAB7QABAAAAAAAAADAAAAA4aWluZgAAAAAAAgAAABVpbmZlAgAAAAABAABhdjAxAAAAABVpbmZlAgAAAAACAABhdjAxAAAAAA5waXRtAAAAAAABAAAAr2lwcnAAAACKaXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAcAAAAIAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
35FDgQAcAAAAAA5waXhpAAAAAAEIAAAAOGF1eEMAAAAAdXJuOm1wZWc6bXBlZ0I6Y2ljcDpzeXN0ZW1zOmF1eGlsaWFyeTphbHBoYQAAAAAdaXBtYQAAAAAAAAACAAEDgQIDAAIEhAIFhgAAABppcmVmAAAAAAAAAA5hdXhsAAIAAQABAAAAkW1kYXQSAAoIOAi3aQENBpAySxpCYuTlFFFBQoCA/1rpSGMk0wqCQPJRB2iQxL1yjwyWLnSqllix1Sg3kRTkgARe7uhNJ/c1bGmUXhy+RSdpPkl/i6KYHsUizfwldhIACgUYCLdhUDIlGMA00QB79lmD1nbJjVySKO5AM2akWE2fOB/+DGUxih10h9stog==",blurWidth:7,blurHeight:8}},57765:(e,t,r)=>{r.d(t,{O:()=>i});let i={all:["progressive-challenges"],list:()=>[...i.all,"list"],filteredList:e=>[...i.list(),e]}},59948:(e,t,r)=>{r.d(t,{S:()=>d});var i=r(27964),n=r(74359),a=r(60528),l=r(98688),o=r(78989),s=r(29358);let c={all:["providers"],list:(e,t,r)=>[...c.all,"list",e,t?r:void 0]},d=e=>{let t,r,d=(0,i.c)(9),{isAuthenticated:h,enabled:p}=void 0===e?{}:e,m=void 0!==h&&h,E=void 0===p||p,f=(0,a.f)(),g=(0,l.o)(o.WV),y=(0,s.YW)(m).with(!0,u).otherwise(A),b=c.list(y,m,g);return d[0]!==m||d[1]!==g||d[2]!==f||d[3]!==y?(t=async()=>{let{data:e}=await f({method:"GET",url:y,params:m?{coinType:g}:void 0});return e},d[0]=m,d[1]=g,d[2]=f,d[3]=y,d[4]=t):t=d[4],d[5]!==E||d[6]!==b||d[7]!==t?(r={enabled:E,queryKey:b,queryFn:t},d[5]=E,d[6]=b,d[7]=t,d[8]=r):r=d[8],(0,n.I)(r)};function u(){return"/gaming-service/game-providers"}function A(){return"/gaming-service/public/game-providers"}},60892:(e,t,r)=>{r.d(t,{D:()=>n});var i=r(4072);let n=({userVipLevels:e,userVipPoints:t})=>{if(!(0,i.O)(e.next)||!(0,i.O)(e.current.upperBound))return 100;let{lowerBound:r,upperBound:n}=e.current;return Math.trunc(100*Math.min(Math.max((t-r)/(n-r),0),1)*1e4)/1e4}},62011:(e,t,r)=>{r.d(t,{t:()=>i});let i={status:["idVerificationStatus"]}},65910:(e,t,r)=>{r.d(t,{D:()=>o});var i=r(27964),n=r(67770),a=r(4072);let l=new Set(["onboarding-form","onboarding-phone-verification","onboarding-success-bonus"]),o=()=>{let e,t=(0,i.c)(2),r=(0,n.u)();return t[0]!==r?(e=(0,a.O)(r)&&l.has(r),t[0]=r,t[1]=e):e=t[1],e}},66146:(e,t,r)=>{r.d(t,{$:()=>o});var i=r(27964),n=r(14232),a=r(17982);let l={1:{load:()=>Promise.all([r.e(5955).then(r.bind(r,55955)),r.e(9883).then(r.bind(r,29883))]),hex:a.l.WALLETS.SC.MAIN},2:{load:()=>Promise.all([r.e(1286).then(r.bind(r,61286)),r.e(7086).then(r.bind(r,57086))]),hex:a.l.PRIMARY.MAIN},3:{load:()=>Promise.all([r.e(3718).then(r.bind(r,53718)),r.e(8478).then(r.bind(r,48478))]),hex:a.l.ACCENTS.YELLOW.MAIN},4:{load:()=>Promise.all([r.e(7624).then(r.bind(r,97624)),r.e(1184).then(r.bind(r,21184))]),hex:"#EE6826"},5:{load:()=>Promise.all([r.e(2131).then(r.bind(r,12131)),r.e(4267).then(r.bind(r,74267))]),hex:"#FF2F2F"}},o=e=>{let t,r,a,o=(0,i.c)(5),s=l[e];o[0]!==s.hex?(t={dotImage:void 0,flameImage:void 0,hex:s.hex},o[0]=s.hex,o[1]=t):t=o[1];let[c,d]=(0,n.useState)(t);return o[2]!==e?(r=()=>{(async()=>{let t=await l[e].load();d({dotImage:t[0],flameImage:t[1],hex:l[e].hex})})()},a=[e],o[2]=e,o[3]=r,o[4]=a):(r=o[3],a=o[4]),(0,n.useEffect)(r,a),c}},67221:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(22119),n=r(24607),a=r(4072);let l=e=>{if(!(0,a.O)(e)||!(0,a.O)(e.promotions))return{highestDiscountPromotion:null,highestDiscountPackage:null,highestDiscountMultiPackPromotion:[]};let t=e.promotions.flatMap(e=>e.packages.map(t=>({promotion:e,promotionPackage:t,discount:t.discount}))),r=t.reduce((t,{promotion:r,promotionPackage:l,discount:o})=>{if(o>t.discount){let t=e.packages.find(e=>e.id===l.packageId);return{promotion:(0,n.f)(r,l),package:(0,a.O)(t)?(0,i.O)(t,l):null,discount:o}}return t},{promotion:null,package:null,discount:-1}),l=t.filter(({promotion:e})=>e.id===r.promotion?.id).map(({promotion:t,promotionPackage:r})=>{let l=e.packages.find(e=>e.id===r.packageId);return{package:(0,a.O)(l)?(0,i.O)(l,r):void 0,promotion:(0,n.f)(t,r)}}).filter(({package:e})=>(0,a.O)(e));return{highestDiscountPromotion:r.promotion,highestDiscountPackage:r.package,highestDiscountMultiPackPromotion:l}}},67770:(e,t,r)=>{r.d(t,{u:()=>a});var i=r(88849),n=r(98685);let a=()=>(0,n.useGlobalStore)(i.pJ)?.type},69355:(e,t,r)=>{r.d(t,{F:()=>s});var i=r(27964),n=r(74359),a=r(93861),l=r(31258),o=r(60528);let s=e=>{let t,r,s,c,d=(0,i.c)(8);d[0]!==e?(t=void 0===e?{}:e,d[0]=e,d[1]=t):t=d[1];let{enabled:u}=t,A=void 0===u||u,h=(0,o.f)();return d[2]===Symbol.for("react.memo_cache_sentinel")?(r=l._.playProgress("GC"),d[2]=r):r=d[2],d[3]!==h?(s=async e=>{let{signal:t}=e,{data:r}=await h({url:a.tz,params:{coinType:"GC"},signal:t});return r},d[3]=h,d[4]=s):s=d[4],d[5]!==A||d[6]!==s?(c={queryKey:r,queryFn:s,enabled:A},d[5]=A,d[6]=s,d[7]=c):c=d[7],(0,n.I)(c)}},69778:(e,t,r)=>{r.d(t,{d:()=>c,B:()=>d});var i=r(27964),n=r(14553),a=r(69713),l=r(40371),o=r(11492),s=r(4072);let c=e=>`puzzleSeriesId:${e}`,d=()=>{let e,t,r,d,u=(0,i.c)(13),{data:A,isFetching:h}=(0,n.p)(),{pushDialog:p}=(0,a.C)();u[0]!==p||u[1]!==A?(e=()=>{if(!(0,s.O)(A))return;let e=c(A.id);if((0,l.Ri)(e))return;let t=(0,o.Ys)(A.endDate).diff((0,o.Ys)(),"millisecond");t<=0||((0,l.RG)(e,"true",t),p("puzzles-new-series"))},u[0]=p,u[1]=A,u[2]=e):e=u[2];let m=e;u[3]!==A?(t=!(0,s.O)(A)||!!(0,l.Ri)(c(A.id)),u[3]=A,u[4]=t):t=u[4];let E=t;
35u[5]!==E||u[6]!==h||u[7]!==A?(r=!h&&(0,s.O)(A)&&!E,u[5]=E,u[6]=h,u[7]=A,u[8]=r):r=u[8];let f=r;return u[9]!==f||u[10]!==h||u[11]!==m?(d={isFetching:h,hasDialogsToOpen:f,openDialogs:m},u[9]=f,u[10]=h,u[11]=m,u[12]=d):d=u[12],d}},69836:(e,t,r)=>{r.d(t,{C:()=>d});var i=r(27964),n=r(67768),a=r(53038),l=r(14553),o=r(69880),s=r(4072),c=r(33585);let d=()=>{let e,t,r=(0,i.c)(5),d=(0,n.jE)(),{data:u}=(0,l.p)();r[0]!==u||r[1]!==d?(e=e=>{(0,s.O)(u)&&u.puzzleSeriesId!==e.puzzleSeriesId||setTimeout(()=>{d.invalidateQueries({queryKey:a.C.activeSeries()}),d.invalidateQueries({queryKey:o.P.all}),d.invalidateQueries({queryKey:o.C.all})},(0,c.R)({max:3e4}))},r[0]=u,r[1]=d,r[2]=e):e=r[2];let A=e;return r[3]!==A?(t={handlePuzzleSeriesEndedMessage:A},r[3]=A,r[4]=t):t=r[4],t}},69950:(e,t,r)=>{r.d(t,{s:()=>h});var i=r(37876),n=r(27964),a=r(96636),l=r(84090),o=r(71643),s=r(89099),c=r(45415),d=r(81293),u=r(30647);let A=(0,r(62268).Ay)(d.A)({width:u.E[25],height:u.E[25]}),h=()=>{let e,t,r,d=(0,n.c)(6),u=(0,s.useRouter)(),h=(0,o.i)();d[0]!==h||d[1]!==u?(e=()=>{let e=h===l.M.ARCADE?a.xw:a.op;u.replace(e)},d[0]=h,d[1]=u,d[2]=e):e=d[2];let p=e;return d[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(c.A,{}),d[3]=t):t=d[3],d[4]!==p?(r=(0,i.jsx)(A,{onClick:p,"aria-label":"Go back",size:"small",children:t}),d[4]=p,d[5]=r):r=d[5],r}},70778:(e,t,r)=>{r.d(t,{E:()=>u});var i=r(27964),n=r(71770),a=r(18851),l=r(37809),o=r(45669),s=r(29358),c=r(4072),d=r(15869);let u=e=>{let t,r,o,u=(0,i.c)(10),{data:m,isLoading:E,isFetching:f}=(0,d.L)(),{isGcOnlyMode:g}=(0,n.$)();if(u[0]!==g||u[1]!==m||u[2]!==e){let r=(0,s.YW)({walletType:e,isGcOnlyMode:g}).with({walletType:a.V.BT},A).with({isGcOnlyMode:!0},h).otherwise(p);t=(0,c.O)(m)?(0,l.i)(m,r):void 0,u[0]=g,u[1]=m,u[2]=e,u[3]=t}else t=u[3];let y=t;u[4]!==y?.promotions?(r=y?.promotions??[],u[4]=y?.promotions,u[5]=r):r=u[5];let b=r;return u[6]!==f||u[7]!==E||u[8]!==b?(o={promotions:b,isLoading:E,isFetching:f},u[6]=f,u[7]=E,u[8]=b,u[9]=o):o=u[9],o};function A(){return o.kX.BT}function h(){return o.kX.BASIC}function p(){return o.kX.SC}},70854:(e,t,r)=>{r.d(t,{V:()=>o,Z:()=>a});var i=r(27964),n=r(89099);let a=e=>{let{query:t}=(0,n.useRouter)();return Array.isArray(t[e])?t[e][0]:t[e]},l=["s","category","startDate","endDate"],o=()=>{let e,t=(0,i.c)(4),{query:r,pathname:a,push:o}=(0,n.useRouter)();return t[0]!==a||t[1]!==o||t[2]!==r?(e=e=>{o({pathname:a,query:Object.entries({...l.reduce((e,t)=>(void 0!==r[t]&&""!==r[t]&&(e[t]=r[t]),e),{}),...e}).reduce(s,{})},void 0,{shallow:!0,scroll:!1})},t[0]=a,t[1]=o,t[2]=r,t[3]=e):e=t[3],e};function s(e,t){let[r,i]=t;return""!==i&&void 0!==i&&(e[r]=i),e}},71522:(e,t,r)=>{r.d(t,{d:()=>d});var i=r(27964),n=r(23824),a=r(74359),l=r(4040),o=r(60528),s=r(97295),c=r(3242);let d=()=>{let e,t=(0,i.c)(5),{isFeatureFlagEnabled:r,isFeatureFlagLoading:d}=(0,n.k)("FREE_BOX_ONBOARDING"),{data:u,isLoading:A}=(()=>{let e,t,r,n=(0,i.c)(6),c=(0,o.f)(),{isAuthenticated:d}=(0,l.A)();return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.h.onboardingBoxEligibility(),n[0]=e):e=n[0],n[1]!==c?(t=async e=>{let{signal:t}=e,{data:r}=await c({signal:t,url:"/mystery-box-service/onboarding-boxes/eligibility"});return r},n[1]=c,n[2]=t):t=n[2],n[3]!==d||n[4]!==t?(r={queryKey:e,queryFn:t,enabled:d},n[3]=d,n[4]=t,n[5]=r):r=n[5],(0,a.I)(r)})(),h=u?.status===c.fc.AVAILABLE,p=d||r&&A,m=h?u.onboardingBoxes:void 0;return t[0]!==h||t[1]!==r||t[2]!==p||t[3]!==m?(e={isLoading:p,isFeatureEnabled:r,isEligible:h,onboardingBoxes:m},t[0]=h,t[1]=r,t[2]=p,t[3]=m,t[4]=e):e=t[4],e}},74593:(e,t,r)=>{r.d(t,{Y:()=>i});let i=["STEEL","BRONZE","SILVER","GOLD","DIAMOND","COSMIC_DIAMOND","BLACK_DIAMOND"]},74867:(e,t,r)=>{r.d(t,{x:()=>s});var i=r(27964),n=r(74359),a=r(14194),l=r(60528),o=r(53038);let s=()=>{let e,t,r=(0,i.c)(3),s=(0,l.f)();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.Q.listPuzzleCompletionRewards(),r[0]=e):e=r[0],r[1]!==s?(t={queryKey:e,queryFn:async()=>{let{data:e}=await s({url:`${a.u}/puzzle-completion-rewards`});return e}},r[1]=s,r[2]=t):t=r[2],(0,n.I)(t)}},75193:(e,t,r)=>{r.d(t,{SD:()=>c,jD:()=>s,mO:()=>o,xb:()=>d});var i=r(27964),n=r(89099);let a="/modo-boxes",l=/^\/modo-boxes\/[^/]+$/,o=e=>e.startsWith(a),s=()=>{let e,t=(0,i.c)(2),{pathname:r}=(0,n.useRouter)();return t[0]!==r?(e=o(r),t[0]=r,t[1]=e):e=t[1],e},c=()=>{let{pathname:e}=(0,n.useRouter)();return e===a},d=()=>{let e,t=(0,i.c)(2),{pathname:r}=(0,n.useRouter)();return t[0]!==r?(e=l.test(r),t[0]=r,t[1]=e):e=t[1],e}},75885:(e,t,r)=>{r.d(t,{t:()=>D});var i=r(37876),n=r(49769),a=r(46293),l=r(30496),o=r(38935),s=r(13276),c=r(67368),d=r
35(19340),u=r(54587),A=r.n(u),h=r(89099);let p={src:"/_next/static/media/bell-icon.8fa35c9e.svg",height:23,width:20,blurWidth:0,blurHeight:0};var m=r(14232),E=r(98949),f=r(16427),g=r(81293),y=r(50265),b=r(79367),x=r(34779),v=r(17982),R=r(30647),w=r(62268),S=r(42291);let I=(0,w.Ay)(g.A,{shouldForwardProp:S.A})(({theme:e,isActive:t,color:r="default"})=>({..."default"===r&&{color:t?`${e.palette.primary.main} !important`:void 0,backgroundColor:v.l.NEUTRAL.EXTRA_DARK,borderRadius:100,width:46,height:46}})),C=(0,w.Ay)(E.a)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",paddingTop:R.E[5],paddingBottom:R.E[50],backgroundColor:v.l.NEUTRAL.EXTRA_DARK,borderTop:`1px solid ${v.l.NEUTRAL.MAIN}`,position:"sticky",bottom:0,[e.breakpoints.up("sm")]:{paddingBottom:R.E[5]}})),_="scrollableNotificationsElementMenu",T="notificationsMenu",O="notificationsMenuButton",D=({fullWidth:e=!1,anchorOffset:t=R.E[12],sx:r,walletType:u,icon:w=(0,i.jsx)(A(),{src:p,alt:"Notifications",width:20,height:20}),iconButtonSx:S,color:D,size:N="medium",compact:L})=>{let{push:P}=(0,h.useRouter)(),{protect:j,isLoading:k}=(0,c.e)(),[B,M]=(0,m.useState)(null),{pushDialog:W}=(0,d.A)(),U=(0,l.Y)(),F=()=>M(null),{notificationsPath:G,isOnNotificationsPage:V}=(0,o.zc)(),z=!!B;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.v,{sx:r,walletType:u,compact:L,children:(0,i.jsx)(x.m,{title:"Notifications",enterDelay:500,children:(0,i.jsx)(I,{id:O,"aria-controls":z?T:void 0,"aria-haspopup":"true","aria-expanded":z?"true":void 0,disabled:V||k,isActive:V||z,color:D,sx:S,"aria-label":"View Notifications",onClick:e=>{j(()=>{U?W("notifications-list"):M(t=>t?null:e.currentTarget)},["onboardingCompleted","hasSubmittedAddress"])()},size:N,children:w})})}),(0,i.jsxs)(b.W1,{id:T,"aria-labelledby":O,anchorEl:B,slotProps:{paper:{id:_,sx:{maxWidth:e?"100%":"min(calc(100% - 32px), 400px)",width:e?"100%":"max-content",marginTop:t,left:e?"0px !important":void 0,overscrollBehavior:"none"}},list:{sx:{paddingTop:R.E[60],paddingBottom:0,backgroundColor:v.l.NEUTRAL.EXTRA_DARK}}},open:z,onClose:F,sx:{overflow:"hidden",zIndex:n.M.notificationMenu},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[(0,i.jsx)(E.a,{position:"absolute",top:R.E[30],right:R.E[20],children:(0,i.jsx)(g.A,{onClick:F,children:(0,i.jsx)(y.A,{sx:{width:30,height:30,color:v.l.NEUTRAL.SOFT}})})}),(0,i.jsx)(E.a,{px:R.E[20],children:(0,i.jsx)(s.$,{scrollableElementId:_,closeNotificationMenu:F})}),(0,i.jsx)(C,{children:(0,i.jsx)(f.$,{variant:"text",onClick:()=>{F(),P(G)},children:"View all notifications"})})]})]})}},76423:(e,t,r)=>{r.d(t,{s:()=>l});var i=r(27964),n=r(92376);let a=(e,t)=>null===e.expiresAt?+(null!==t.expiresAt):null===t.expiresAt?-1:e.expiresAt.getTime()-t.expiresAt.getTime(),l=e=>{let t,r,l,s,c=(0,i.c)(11);c[0]!==e?(t=void 0===e?{}:e,c[0]=e,c[1]=t):t=c[1];let d=t,{data:u,isLoading:A,isFetched:h,isError:p}=(0,n.P)(d);c[2]!==u?(r=void 0===u?[]:u,c[2]=u,c[3]=r):r=c[3];let m=r;if(c[4]!==m){let e=new Map;for(let t of m.filter(o).sort(a)){let r=e.get(t.mysteryBox.id);if(void 0===r){e.set(t.mysteryBox.id,{mysteryBox:t.mysteryBox,count:1,expiresAt:t.expiresAt,promotionIds:[t.id]});continue}r.count=r.count+1,r.promotionIds.push(t.id)}l=[...e.values()],c[4]=m,c[5]=l}else l=c[5];let E=l;return c[6]!==E||c[7]!==p||c[8]!==h||c[9]!==A?(s={freeBoxPromotions:E,isLoading:A,isFetched:h,isError:p},c[6]=E,c[7]=p,c[8]=h,c[9]=A,c[10]=s):s=c[10],s};function o(e){return"FREE"===e.type}},76528:(e,t,r)=>{r.d(t,{R:()=>i});let i={all:["terms-and-conditions"]}},76900:(e,t,r)=>{r.d(t,{Ke:()=>a,wM:()=>l,yF:()=>n});var i=r(4072);let n=(e,t)=>(0,i.O)(t)?e.inGameWinningsMap[t]??0:0,a=e=>e.incrementInGameWinnings,l=e=>e.resetInGameWinnings},77061:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(27964),n=r(17279),a=r(72734),l=r(18851),o=r(89099),s=r(29358);let c=({pathname:e,selectedCurrency:t,isScAllowed:r,fallbackToLobby:i=!1})=>{let a=s.P.union("/","/lobby","/arcade"),o=t===l.V.SC&&r;return(0,s.YW)({pathname:e,scMode:o}).with({pathname:a,scMode:!1},()=>n.Ui.GC).with({pathname:a,scMode:!0},()=>n.Ui.SC).with({pathname:s.P.when(e=>e.startsWith("/modo-boxes"))},()=>n.Ui.BOXES).otherwise(()=>i?o?n.Ui.SC:n.Ui.GC:n.Ui.NON_ACCENT)},d=e=>{let t,r,l=(0,i.c)(8),{fallbackToLobby:s}=void 0===e?{}:e,d=void 0!==s&&s,{pathname:u}=(0,o.useRouter)(),{selectedCurrency:A,isScAllowed:h}=(0,a.e)(),p=c({pathname:u,selectedCurrency:A,isScAllowed:h,fallbackToLobby:d});l[0]!==d||l[1]!==h||l[2]!==A?(t=e=>n.A0[c({pathname:e,selectedCurrency:A,isScAllowed:h,fallbackToLobby:d})],l[0]=d,l[1]=h,l[2]=A,l[3]=t):t=l[3];let m=t,E=p!==n.Ui.NON_ACCENT,f=n.A0[p];return l[4]!==m||l[5]!==E||l[6]!==f?(r={isAccentMenu:E,activeTheme:f,getThemeForPath:m},l[4]=m,l[5]=E,l[6]=f,l[7]=r):r=l[7],r}},79065:(e,t,r)=>{r.d(t,{Ku:()=>n,hn:()=>i});let i={APPROVED:"APPROVED",DECLINED:"DECLINED",EXPIRED:"EXPIRED",IN_PROGRESS:"IN_PROGRESS",RESUBMISSION_REQUESTED:"RESUBMISSION_REQUESTED",PENDING:"PENDING",UNSTARTED:"UNSTARTED",INCOMPLETE:"INCOMPLETE"},n="user is blocked"},81477:(e,t,r)=>{r.d(t,{a:()=>i});let i={all:["bank-accounts"],list:()=>[...i.all,"list"],filteredList:(e={})=>[...i.list(),e]}},82817:(e,t,r)=>{r.d(t,{N:()=>c});var i=r(27964),n=r(29340),a=r(30496),l=r(91311),o=r(38935),s=r(89099);let c=()=>{let e,t=(0,i.c)(5),{asPath:r}=(0,s.useRouter)(),{isFeatureFlagEnabled:c}=(0,n.J)(),d=(0,l.N)(),u=(0,a.Y)();return t[0]!==r||t[1]!==u||t[2]!==d||t[3]!==c?(e=c&&u&&!d&&(0,o.JV)({location:r}),t[0]=r,t[1]=u,t[2]=d,t[3]=c,t[4]=e):e=t[4],e}},82948:(e,t,r)=>{r.d(t,{L:()=>c});var i=r(27964),n=r(28560),a=r(89099),l=r(14232),o=r(4072),s=r(22732);let c=()=>{let e,t,r,c,d,u,A,h,p=(0,i.c)(15),m=(0,a.useRouter)(),{jackpots:E}=(0,s.r)(),f=(0,l.useId)(),g=`route-change:${f}`,y=`tab-hidden:${f}`;p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.s)(),p[0]=e):e=p[0];let b=e;return p[1]!==E?(t=()=>
35{(0,o.O)(E)&&E.forEach(e=>{b.updateJackpotTarget(e.id,e.amount)})},r=[E,b],p[1]=E,p[2]=t,p[3]=r):(t=p[2],r=p[3]),(0,l.useEffect)(t,r),p[4]!==g||p[5]!==m.events?(c=()=>{let e=()=>b.pause(g),t=()=>b.resume(g),r=()=>b.resume(g);return m.events.on("routeChangeStart",e),m.events.on("routeChangeComplete",t),m.events.on("routeChangeError",r),()=>{b.resume(g),m.events.off("routeChangeStart",e),m.events.off("routeChangeComplete",t),m.events.off("routeChangeError",r)}},p[4]=g,p[5]=m.events,p[6]=c):c=p[6],p[7]!==g||p[8]!==m?(d=[m,b,g],p[7]=g,p[8]=m,p[9]=d):d=p[9],(0,l.useEffect)(c,d),p[10]!==y?(u=()=>{let e=()=>{document.hidden?b.pause(y):b.resume(y)};return e(),document.addEventListener("visibilitychange",e),()=>{b.resume(y),document.removeEventListener("visibilitychange",e)}},A=[b,y],p[10]=y,p[11]=u,p[12]=A):(u=p[11],A=p[12]),(0,l.useEffect)(u,A),p[13]!==E?(h={jackpots:E},p[13]=E,p[14]=h):h=p[14],h}},83401:(e,t,r)=>{r.d(t,{$E:()=>a,DV:()=>n,bJ:()=>i,dr:()=>l});let i="/core-service/daily-bonus",n="/core-service/daily-bonus/claim",a="/growth-service/daily-bonus",l="/growth-service/daily-bonus/claim"},85264:(e,t,r)=>{r.d(t,{e:()=>o});var i=r(27964),n=r(86898),a=r(60892),l=r(4072);let o=()=>{let e,t,r,o,s,c,d,u=(0,i.c)(28),{data:A,isLoading:h}=(0,n.B)();if(!(0,l.O)(A)){let e;return u[0]!==h?(e={data:null,isLoading:h},u[0]=h,u[1]=e):e=u[1],e}u[2]!==A.projectedVipRank||u[3]!==A.vipPoints?(e=(0,a.D)({userVipLevels:A.projectedVipRank,userVipPoints:A.vipPoints}),u[2]=A.projectedVipRank,u[3]=A.vipPoints,u[4]=e):e=u[4];let p=e;u[5]!==A.projectedVipRank?(t=(0,l.O)(A.projectedVipRank.current.milestone)?(0,a.D)({userVipLevels:A.projectedVipRank,userVipPoints:A.projectedVipRank.current.milestone}):null,u[5]=A.projectedVipRank,u[6]=t):t=u[6];let m=t;u[7]!==A.projectedVipRank?(r=A.projectedVipRank.current.milestones.map(e=>(0,a.D)({userVipLevels:A.projectedVipRank,userVipPoints:e.pointsRequired})),u[7]=A.projectedVipRank,u[8]=r):r=u[8];let E=r;u[9]!==A.projectedVipRank.current.milestones||u[10]!==A.vipPoints?(o=A.projectedVipRank.current.milestones.find(e=>e.pointsRequired>A.vipPoints)??null,u[9]=A.projectedVipRank.current.milestones,u[10]=A.vipPoints,u[11]=o):o=u[11];let f=o;u[12]!==A.projectedVipRank||u[13]!==A.vipPoints?(s=(({vipPoints:e,vipLevels:t})=>({rankCurrentPoints:Math.max(e-t.current.lowerBound,0),rankTotalPoints:t.next?Math.max(t.next.lowerBound-t.current.lowerBound,0):0}))({vipLevels:A.projectedVipRank,vipPoints:A.vipPoints}),u[12]=A.projectedVipRank,u[13]=A.vipPoints,u[14]=s):s=u[14];let{rankCurrentPoints:g,rankTotalPoints:y}=s,b=f?.reward??null;return u[15]!==p||u[16]!==m||u[17]!==E||u[18]!==g||u[19]!==y||u[20]!==b||u[21]!==A.projectedVipRank||u[22]!==A.vipPoints||u[23]!==A.vipRank?(c={currentRankProgress:p,currentRankPoints:g,currentRankTotalPoints:y,vipPoints:A.vipPoints,vipRank:A.vipRank,projectedVipRank:A.projectedVipRank,milestonePercentage:m,milestonePercentages:E,nextMilestoneReward:b},u[15]=p,u[16]=m,u[17]=E,u[18]=g,u[19]=y,u[20]=b,u[21]=A.projectedVipRank,u[22]=A.vipPoints,u[23]=A.vipRank,u[24]=c):c=u[24],u[25]!==h||u[26]!==c?(d={data:c,isLoading:h},u[25]=h,u[26]=c,u[27]=d):d=u[27],d}},86398:(e,t,r)=>{r.d(t,{x:()=>i.x});var i=r(32165)},87822:(e,t,r)=>{r.d(t,{o:()=>n});var i=r(21730);let n=({amount:e,hideZeroCents:t=!1})=>{let r=t&&Math.round(100*Math.abs(e))%100==0?0:2;return`$${(0,i.u)({amount:e,decimalCount:r})}`}},88874:(e,t,r)=>{r.d(t,{a:()=>a});var i=r(23824),n=r(18851);let a=()=>{let{isFeatureFlagEnabled:e}=(0,i.k)("RMW_MIGRATION");return e?n.V.MC:n.V.BT}},90306:(e,t,r)=>{r.d(t,{RC:()=>d,LK:()=>u});var i=r(27964),n=r(67768),a=r(17399),l=r(31258),o=r(14232),s=r(4072),c=r(51855);let d=1500,u=e=>{let t,r,u,f,g,y,b,x,v,R,w,S,I,C,_,T,O,D,N,L,P,j,k,B,M,W,U,F,G,V,z=(0,i.c)(78),{starProgressUpdate:Y,disableAnimations:H,fetchedWalletBalance:K,isFetchingWalletBalance:Q}=e,$=void 0!==H&&H,q=void 0!==Q&&Q,X=(0,n.jE)(),[Z,J]=(0,o.useState)(0),ee=(0,c.Z)(Z,Z),[et,er]=(0,o.useState)(0),ei=(0,o.useRef)(0),[en,ea]=(0,o.useState)("idle");z[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],z[0]=t):t=z[0];let[el,eo]=(0,o.useState)(t),es=(0,o.useRef)(!1),[ec,ed]=(0,o.useState)(Y?.boosterPhase);z[1]===Symbol.for("react.memo_cache_sentinel")?(r=[],z[1]=r):r=z[1];let eu=(0,o.useRef)(r),eA=(0,o.useRef)(void 0),eh=(0,o.useRef)(null),ep=(0,o.useRef)(0),em=(0,o.useRef)(0),[eE,ef]=(0,o.useState)(!0),eg=(0,o.useRef)(!1),ey=(0,o.useRef)(!1),[eb,ex]=(0,o.useState)(void 0),[ev,eR]=(0,o.useState)(0);z[2]!==K||z[3]!==eb?(u=function(){!(0,s.O)(eb)&&(0,s.O)(K)&&ex(K)}
35,f=[eb,K],z[2]=K,z[3]=eb,z[4]=u,z[5]=f):(u=z[4],f=z[5]),(0,o.useEffect)(u,f),z[6]!==K||z[7]!==ev||z[8]!==eb?(g=(0,s.O)(eb)?eb+ev*a.S:K,z[6]=K,z[7]=ev,z[8]=eb,z[9]=g):g=z[9];let ew=g;z[10]!==X?(y=()=>{X.invalidateQueries({queryKey:l._.playProgress("GC")})},z[10]=X,z[11]=y):y=z[11];let eS=y;z[12]!==X?(b=()=>{X.invalidateQueries({queryKey:l._.wallet()})},z[12]=X,z[13]=b):b=z[13];let eI=b;z[14]!==eS||z[15]!==eI||z[16]!==$?(x=()=>{$||(eS(),eI())},v=[eS,eI,$],z[14]=eS,z[15]=eI,z[16]=$,z[17]=x,z[18]=v):(x=z[17],v=z[18]),(0,o.useEffect)(x,v),z[19]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{eo(e=>[...e,async()=>{ea("phase1")}])},z[19]=R):R=z[19];let eC=R;z[20]!==Y?.boosterPhase?(w=()=>{eo(e=>[...e,async()=>{ea("phase2");let e=eu.current;if((0,s.O)(e[0])){let t=e[0],r=t.fills-1;if(r<=0){e.shift();let t=e[0]??null;(0,s.O)(t)?ed(t.phase??void 0):ed(Y?.boosterPhase)}else e[0]={...t,fills:r}}eR(h),ep.current=ep.current+1;let t=new AbortController;eh.current=t;try{let e;await (e=t.signal,new Promise((t,r)=>{let i=setTimeout(t,1250);e&&e.addEventListener("abort",()=>{clearTimeout(i),r(Error("Aborted"))},{once:!0})}))}catch{return}ea("phase1")}])},z[20]=Y?.boosterPhase,z[21]=w):w=z[21],Y?.boosterPhase;let e_=w;z[22]!==eI?(S=()=>{eo(e=>[...e,async()=>{ea("idle"),ep.current>0&&(eI(),eg.current=!0,ep.current=0)}])},z[22]=eI,z[23]=S):S=z[23];let eT=S;z[24]!==$||z[25]!==eE||z[26]!==Y?(I=function(){if(!eE||$||(0,s.O)(Y)&&(0,s.O)(eA.current)&&Y.updateId===eA.current.updateId||(0,s.O)(Y)&&(0,s.O)(Y.updateId)&&!(0,s.O)(eA.current))return;if((0,s.O)(eA.current)&&!(0,s.O)(eA.current?.boosterPhase)&&(0,s.O)(Y?.boosterPhase)&&0===Y.boosterProgress){let e=Y?.boosterProgress??0;ei.current=e,er(e),J(e),ed(Y?.boosterPhase),eu.current=[],em.current=0,eA.current=Y;return}(0,s.O)(Y?.boosterPhase)&&Y.boosterPhase!==eA.current?.boosterPhase&&ed(Y?.boosterPhase);let e=0;if((0,s.O)(Y?.fillsData)&&Y.fillsData.length>0){e=Y.fillsData.reduce(p,0);let t=Y.fillsData.filter(m);eu.current=[...eu.current,...t],(0,s.O)(eu.current[0])&&ed(eu.current[0].phase??void 0)}e=Math.max(e,Math.floor((Y?.starsAwarded??0)/a.S));let t=0;(0,s.O)(Y?.playProgress)&&(t=A({prevProgress:(0,s.O)(eA.current?.boosterPhase)?eA.current?.boosterProgress??0:eA.current?.playProgress??0,newProgress:(0,s.O)(Y?.boosterPhase)?Y?.boosterProgress??0:Y?.playProgress??0,starsAwarded:Y.starsAwarded}),er(e=>e+t)),(t>0||e>0)&&eC(),em.current=em.current+e,eA.current=Y},C=[Y,$,eE,eC],z[24]=$,z[25]=eE,z[26]=Y,z[27]=I,z[28]=C):(I=z[27],C=z[28]),(0,o.useEffect)(I,C),z[29]!==$||z[30]!==et?(_=function(){if($)return;let e=null,t=null,r=1/d,i=n=>{if(null===t){t=n,e=requestAnimationFrame(i);return}let a=n-t;t=n;let l=ei.current;if(l<et){let t=Math.min(l+a*r,et);ei.current=t,J(t%1),e=requestAnimationFrame(i)}else l>et&&(ei.current=et,J(et%1))};return e=requestAnimationFrame(i),()=>{null!==e&&cancelAnimationFrame(e)}},T=[$,et],z[29]=$,z[30]=et,z[31]=_,z[32]=T):(_=z[31],T=z[32]),(0,o.useEffect)(_,T),z[33]!==el[0]||z[34]!==el.length||z[35]!==$?(O=function(){$||0===el.length||es.current||(async()=>{let e=el[0];e&&(es.current=!0,await e(),eo(E),es.current=!1)})()},z[33]=el[0],z[34]=el.length,z[35]=$,z[36]=O):O=z[36],z[37]!==el||z[38]!==$?(D=[el,$],z[37]=el,z[38]=$,z[39]=D):D=z[39],(0,o.useEffect)(O,D),z[40]!==$||z[41]!==Z||z[42]!==e_||z[43]!==ee||z[44]!==et?(N=function(){!$&&(0,s.O)(ee)&&Z<ee&&0!==et&&em.current>0&&(em.current=em.current-1,e_())},L=[Z,$,e_,ee,et],z[40]=$,z[41]=Z,z[42]=e_,z[43]=ee,z[44]=et,z[45]=N,z[46]=L):(N=z[45],L=z[46]),(0,o.useEffect)(N,L),z[47]!==en||z[48]!==el.length||z[49]!==$||z[50]!==Z||z[51]!==eT||z[52]!==et?(P=function(){$||"phase1"===en&&ei.current===et&&0!==et&&Z===ei.current%1&&0===el.length&&eT()},j=[en,el.length,$,Z,eT,et],z[47]=en,z[48]=el.length,z[49]=$,z[50]=Z,z[51]=eT,z[52]=et,z[53]=P,z[54]=j):(P=z[53],j=z[54]),(0,o.useEffect)(P,j),z[55]!==K?(k=()=>{!ey.current||eg.current||(0,s.O)(K)&&(ex(K),eR(0))},z[55]=K,z[56]=k):k=z[56];let eO=k,eD=(0,c.Z)(q,q);return z[57]!==eO||z[58]!==$||z[59]!==q||z[60]!==eD?(B=function(){!$&&eg.current&&eD&&!q&&(eg.current=!1,eO())},M=[eO,$,q,eD],z[57]=eO,z[58]=$,z[59]=q,z[60]=eD,z[61]=B,z[62]=M):(B=z[61],M=z[62]),(0,o.useEffect)(B,M),z[63]!==en||z[64]!==eO||z[65]!==$?(W=function(){if($)return;if("idle"!==en){ey.current=!1;return}let e=setTimeout(()=>{ey.current=!0,eO()},2e3);return()=>clearTimeout(e)},U=[en,eO,$],z[63]=en,z[64]=eO,z[65]=$,z[66]=W,z[67]=U):(W=z[66],U=z[67]),(0,o.useEffect)(W,U),z[68]!==eS||z[69]!==eI||z[70]!==$?(F=function(){if($)return;let e=e=>{(function(e){return e?.type!=="pagehide"&&"visible"===document.visibilityState})(e)?ef(!0):(ef(!1),eh.current?.abort(),eo([]),es.current=!1,ea("idle"),er(0),ei.current=0,J(0),ed(void 0),eu.current=[],em.current=0,eS(),eI(),eA.current=void 0,ep.current=0,ex(void 0),eR(0),eg.current=!1,ey.current=!1)};return document.addEventListener("visibilitychange",e),window.addEventListener("pagehide",e),window.addEventListener("pageshow",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pagehide",e),window.removeEventListener("pageshow",e)}},G=[eS,eI,$],z[68]=eS,z[69]=eI,z[70]=$,z[71]=F,z[72]=G):(F=z[71],G=z[72]),(0,o.useEffect)(F,G),z[73]!==en||z[74]!==Z||z[75]!==ew||z[76]!==ec?(V={animationPhase:en,delta:a.S,displayProgress:Z,displayedBoosterPhase:ec,displayedBalance:ew},z[73]=en,z[74]=Z,z[75]=ew,z[76]=ec,z[77]=V):V=z[77],V},A=({prevProgress:e,newProgress:t,starsAwarded:r=0})=>{let i=t-e,n=i<0,l=Math.floor(r/a.S),o=n?Math.max(0,l-1):l;return(n?i+1:i)+o};function h(e){return e+1}function p(e,t){return e+t.fills}function m(e){return(0,s.O)(e.phase)}function E(e){return e.slice(1)}},91397:(e,t,r)=>{r.d(t,{c:()=>s});var i=r(27964),n=r(74359),a=r(6384),l=r(29377),o=r(60528);let s=e=>{let t,r,s,c,d=(0,i.c)(8);d[0]!==e?(t=void 0===e?{}:e,d[0]=e,d[1]=t):t=d[1];let{enabled:u}=t,A=void 0===u||u,h=(0,o.f)();return d[2]===Symbol.for("react.memo_cache_sentinel")?(r=l.P.get(),d[2]=r):r=d[2],d[3]!==h?(s=async e=>{let{signal:t}=e,{data:r}=await h({signal:t,url:a.i});return r},d[3]=h,d[4]=s):s=d[4],d[5]!==A||d[6]!==s?(c={enabled:A,staleTime:1/0,queryKey:r,queryFn:s},d[5]=A,d[6]=s,d[7]=c):c=d[7],(0,n.I)(c)}},91856:(e,t,r)=>{r.d(t,{T6:()=>u,hY:()=>d,lN:()=>A});var i=r(27964),n=r(91311),a=r(19340),l=r(89099),o=r(14232),s=r(49443),c=r(50272);let d={FREE_PLAY:"free-play"},u=(e,t)=>
35{(0,s.V)()&&sessionStorage.setItem(`${c.Cq}${e}`,t)},A=()=>{let e,t,r,d,u=(0,i.c)(7),{pushDialog:A}=(0,a.A)(),{asPath:h}=(0,l.useRouter)(),p=(0,n.N)(),m=(0,o.useRef)(0);u[0]!==h||u[1]!==p||u[2]!==A?(e=()=>{if(p||!(0,s.V)())return;let e=`${c.Cq}${h}`,t=sessionStorage.getItem(e);if(!t)return;sessionStorage.removeItem(e),A("loyalty-rewards");let r=CSS.escape(t),i=0,n=()=>{let e=document.querySelector(`[data-rewards-anchor="${r}"]`);e?e.scrollIntoView({block:"start"}):(i+=1)<60&&(m.current=requestAnimationFrame(n))};m.current=requestAnimationFrame(n)},t=[h,p,A],u[0]=h,u[1]=p,u[2]=A,u[3]=e,u[4]=t):(e=u[3],t=u[4]),(0,o.useEffect)(e,t),u[5]===Symbol.for("react.memo_cache_sentinel")?(r=()=>()=>cancelAnimationFrame(m.current),d=[],u[5]=r,u[6]=d):(r=u[5],d=u[6]),(0,o.useEffect)(r,d)}},92376:(e,t,r)=>{r.d(t,{P:()=>A});var i=r(27964),n=r(74359),a=r(4040),l=r(60528),o=r(62530),s=r(11492),c=r(4072),d=r(97295);let u=e=>{let t=((e,t)=>{if(!(0,c.O)(e))return null;let r=(0,s.yf)(e);return r.isValid()?r.toDate():((0,o.vV)({message:"[useFetchBoxPromotions] 
35Unparseable promotion expiry, treating it as no expiry",extra:{promotionId:t,expiresAt:e}}),null)})(e.expiresAt,e.id);return"DISCOUNT"===e.type?{...e,expiresAt:t}:{...e,type:"FREE",expiresAt:t}},A=e=>{let t,r,o,s,c=(0,i.c)(8);c[0]!==e?(t=void 0===e?{}:e,c[0]=e,c[1]=t):t=c[1];let A=t,h=(0,l.f)(),{isAuthenticated:p}=(0,a.A)();c[2]===Symbol.for("react.memo_cache_sentinel")?(r=d.h.boxPromotions(),c[2]=r):r=c[2],c[3]!==h?(o=async e=>{let{signal:t}=e,{data:r}=await h({signal:t,url:"/mystery-box-service/box-promotions"});return r.map(u)},c[3]=h,c[4]=o):o=c[4];let m=p&&(A.enabled??!0);return c[5]!==o||c[6]!==m?(s={queryKey:r,queryFn:o,enabled:m},c[5]=o,c[6]=m,c[7]=s):s=c[7],(0,n.I)(s)}},92631:(e,t,r)=>{r.d(t,{A:()=>i});let i={src:"/_next/static/media/wallet-with-coins-gc.6c8e5a79.avif",height:435,width:390,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAAXBtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAADRpbG9jAAAAAERAAAIAAQAAAAABlAABAAAAAAAAAFkAAgAAAAAB7QABAAAAAAAAADEAAAA4aWluZgAAAAAAAgAAABVpbmZlAgAAAAABAABhdjAxAAAAABVpbmZlAgAAAAACAABhdjAxAAAAAA5waXRtAAAAAAABAAAAr2lwcnAAAACKaXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAcAAAAIAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAcAAAAAA5waXhpAAAAAAEIAAAAOGF1eEMAAAAAdXJuOm1wZWc6bXBlZ0I6Y2ljcDpzeXN0ZW1zOmF1eGlsaWFyeTphbHBoYQAAAAAdaXBtYQAAAAAAAAACAAEDgQIDAAIEhAIFhgAAABppcmVmAAAAAAAAAA5hdXhsAAIAAQABAAAAkm1kYXQSAAoIOAi3aQENBpAySxpCYuTlFFFBQoAA/1rdsv9KLM+9n89YL3bdg6SjZrAflyS2P5/4AoiXZW7e5I3Qt2WytWmX7LNQwpaCbdlMtCMS9vUSJteAUJQkgBIACgUYCLdhUDImGMA00QCMRD3KCKoCWnY6iR5rCHH8lL4ZcSjJTg53ghCLpWN8ZIA=",blurWidth:7,blurHeight:8}},93662:(e,t,r)=>{r.d(t,{Db:()=>n,Lm:()=>a,TE:()=>i});let i=250,n=80,a=500},94088:(e,t,r)=>{r.d(t,{m:()=>o});var i=r(27964),n=r(77500),a=r(52184),l=r(19340);let o=()=>{let e,t,r=(0,i.c)(7),o=(0,a.QF)(s),d=(0,a.QF)(c),{pushDialog:u,replaceDialog:A}=(0,l.A)();r[0]!==u||r[1]!==A||r[2]!==o||r[3]!==d?(e=e=>{let{replace:t}=void 0===e?{}:e;o(),d({paymentPurpose:a.Ij.MODO_CASH_DEPOSIT,mcAmount:n.H}),void 0!==t&&t?A("payment-options-v2"):u("payment-options-v2")},r[0]=u,r[1]=A,r[2]=o,r[3]=d,r[4]=e):e=r[4];let h=e;return r[5]!==h?(t={startModoCashDepositPayment:h},r[5]=h,r[6]=t):t=r[6],t};function s(e){return e.resetWizardValues}function c(e){return e.updateWizardValues}},97295:(e,t,r)=>{r.d(t,{h:()=>i});let i={all:["mystery-boxes"],categories:e=>[...i.all,"categories",e],banners:e=>[...i.all,"banners",e],list:e=>[...i.all,"list",e],latestOpenings:e=>[...i.all,"latest-openings",e],allLastOpened:()=>[...i.all,"last-opened"],lastOpened:e=>[...i.allLastOpened(),e],boxPromotions:()=>[...i.all,"box-promotions"],onboardingBoxes:e=>[...i.all,"onboarding-boxes",e],onboardingBoxEligibility:()=>[...i.all,"onboarding-box-eligibility"],items:(e,t)=>[...i.all,"items",e,t],details:(e,t)=>[...i.all,"details",e,t],itemDetails:(e,t)=>[...i.all,"item-details",e,t],inventoryItems:()=>[...i.all,"inventory-list"],allStats:()=>[...i.all,"stat"],stat:e=>[...i.allStats(),e],btPreMigrationBalance:()=>[...i.all,"bt-pre-migration-balance"]}},99555:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(27964),n=r(66146),a=r(69355),l=r(7535),o=r(29358),s=r(17982),c=r(90306);let d=e=>{let t,r,s,d,A,h,p=(0,i.c)(26);p[0]!==e?(t=void 0===e?{}:e,p[0]=e,p[1]=t):t=p[1];let{disableAnimations:m,active:E}=t,f=void 0!==m&&m,g=void 0===E||E;p[2]!==g?(r={enabled:g},p[2]=g,p[3]=r):r=p[3];let{data:y,isLoading:b}=(0,a.F)(r);p[4]!==g?(s={enabled:g},p[4]=g,p[5]=s):s=p[5];let{data:x,isLoading:v,isFetching:R}=(0,l.z)(s),w=x?.balance;p[6]!==f||p[7]!==R||p[8]!==y||p[9]!==w?(d={starProgressUpdate:y,disableAnimations:f,fetchedWalletBalance:w,isFetchingWalletBalance:R},p[6]=f,p[7]=R,p[8]=y,p[9]=w,p[10]=d):d=p[10];let{animationPhase:S,delta:I,displayProgress:C,displayedBoosterPhase:_,displayedBalance:T}=(0,c.LK)(d),O=(0,n.$)(_??1).hex;if(p[11]!==_||p[12]!==O){let e;p[14]!==O?(e=()=>[O,O],p[14]=O,p[15]=e):e=p[15],A=(0,o.YW)(_).with(o.P.nonNullable,e).otherwise(u),p[11]=_,p[12]=O,p[13]=A}else A=p[13];let D=A,N=b||v;return p[16]!==S||p[17]!==I||p[18]!==_||p[19]!==C||p[20]!==T||p[21]!==D||p[22]!==y||p[23]!==x||p[24]!==N?(h={starProgress:y,starWallet:x,displayedBalance:T,isLoading:N,animationPhase:S,starDelta:I,playProgress:C,progressBarColors:D,boosterPhase:_},p[16]=S,p[17]=I,p[18]=_,p[19]=C,p[20]=T,p[21]=D,p[22]=y,p[23]=x,p[24]=N,p[25]=h):h=p[25],h};function u(){return[s.l.WALLETS.GC.MAIN,s.l.WALLETS.GC.MAIN]}}}]);

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.