PageSourceSearch

https://playsolitaire.io/_astro/DailyChip.CaybtYfi.js

js playsolitaire.io collected 2026-10-02 06:43:02 UTC 72,668 bytes, 3 lines download raw bytes

1/*! @preserve Third-party software notices: /legal/THIRD_PARTY_NOTICES.txt; asset licenses: /legal/ASSET_LICENSES.txt; CycloneDX SBOM: /legal/sbom.cdx.json */
2const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/FeedbackModal.Ceaf2EIH.js","_astro/react.BuDAbuFp.js","_astro/network-gateway.B96DxIRj.js","_astro/surface-registry.BsPd8wmk.js","_astro/constants.ClziSW2j.js","_astro/analytics.nC0VIPUh.js","_astro/i18n.DDSf8M06.js","_astro/config.ZXD9wyks.js","_astro/publication-routes.BqC8StCo.js","_astro/jsx-runtime.CCEDXH2B.js","_astro/usePhoneGameLayout.DVA00HCN.js","_astro/AccessibleModal.B1nQP0R5.js","_astro/Button.egHBQeH-.js","_astro/cn.CyiUqsc4.js"])))=>i.map(i=>d[i]);
3import{require_react as e}from"./react.BuDAbuFp.js";import{THEMES as t}from"./constants.ClziSW2j.js";import{CARD_SIZE_LEVELS as n,activeBrowserStateNamespace as r,isCardSizeLevel as i,isStandalonePublicationSite as a,siteIdentity as o}from"./surface-registry.BsPd8wmk.js";import{firstPartyUrl as s,safeInlineStyle as c}from"./network-gateway.B96DxIRj.js";import{trackEvent as l}from"./analytics.nC0VIPUh.js";import{DEFAULT_CUSTOM_THEME as u,logicalLocalStorageKey as d,readLocal as f,readSession as p,writeOwnedLocal as m,writeOwnedSession as h}from"./browser-state-gateway.C2b19Lbh.js";import{dateKeyFor as g,hasStartedDailyV2 as _,prevDateKey as v,readDailyRecordV2 as y}from"./daily.BPwvHgHk.js";import{getPublicationRoutePath as b}from"./publication-routes.BqC8StCo.js";import{enUi as x,useTranslations as S}from"./i18n.DDSf8M06.js";import{__vitePreload as C}from"./preload-helper.DQBHuWM4.js";import{require_jsx_runtime as w}from"./jsx-runtime.CCEDXH2B.js";import{whatsNewHref as T}from"./whats-new-state.By1VfmkN.js";import{require_react_dom as E}from"./react-dom.B-SqlQDZ.js";import{accountTimerRestoreStorageKey as D,clampTimerElapsed as O,decodeTimerExitSnapshot as k,elapsedAtMonotonic as A,encodeLegacyTimerSnapshot as j,encodeTimerExitSnapshot as M,encodeTimerSnapshot as N,gameSaveIdentityFor as P,initialAccountTimerElapsed as ee,initialTimerElapsed as te,inputIsRecent as ne,registerMountedTimer as re,timerExitSessionStorageKey as ie,timerInputTransition as ae,timerSnapshotPromotionWrites as F,timerStoragePlan as oe,writeCheckedGameTimerSnapshot as se}from"./savePersistence.8hOnjdT5.js";import{readPhoneGameLayout as ce,usePhoneGameLayout as I}from"./usePhoneGameLayout.DVA00HCN.js";import{readOriginalPhoneLayout as L}from"./originalPhoneLayout.Bl2rYYCr.js";import{adDesktopEligible as R,adTabletEligible as le,getAdDeliveryState as ue,getPremiumState as de,isPremiumRefreshing as fe,mobileAdUnit as pe,mobileBannerHeight as me,subscribeAdDelivery as he,subscribePremium as ge}from"./delivery.BamnR2V6.js";import{MANUAL_GAMEPLAY_EVENT as _e,NEW_GAME_PERSISTED_EVENT as ve,observeManualGameplay as ye}from"./hintSpotlightCore.DbMd8kIi.js";import{advertisingConsentReady as be,loadAdvertisingScript as xe}from"./consent.BGGQmqNC.js";import{AVAILABLE_KLONDIKE_DRAW_MODES as Se,GAME_SAVE_RESTORE_EVENT as Ce,requestAvailableKlondikeDrawMode as we,useSettings as z}from"./saveProjectionSignal.DuMId2fX.js";import{storageEventTargetsGameSave as Te}from"./useHintAnnouncement.BpIA7F0y.js";import{registerInteractionPerformanceMeasurement as Ee}from"./interactionPerformance.CHi65EZ2.js";import{readVariantStatsV2 as De}from"./stats.BsO2alhK.js";import{AccessibleModal as B}from"./AccessibleModal.B1nQP0R5.js";import{Button as Oe}from"./Button.egHBQeH-.js";var V=e(),ke=()=>()=>{};function Ae(){return(0,V.useSyncExternalStore)(ke,L,()=>!1)}var H=E(),U=w();function je({layout:e,maxHeight:t=100}){let n=(0,V.useRef)(null),[r,i]=(0,V.useState)(()=>me(innerWidth,innerHeight,t)),[a,o]=(0,V.useState)(!1),[s,c]=(0,V.useState)(0),l=(0,V.useRef)({started:a,layout:e});l.current={started:a,layout:e};let u=(0,V.useRef)(()=>{});return(0,V.useEffect)(()=>{u.current()},[a,e]),(0,V.useEffect)(()=>{ye();let e=()=>{o(!0),u.current()},n=()=>{o(!1),c(e=>e+1),i(me(innerWidth,innerHeight,t))},r=()=>i(e=>e||me(innerWidth,innerHeight,t));return window.addEventListener(_e,e),window.addEventListener(ve,n),window.addEventListener(`resize`,r),()=>{window.removeEventListener(_e,e),window.removeEventListener(ve,n),window.removeEventListener(`resize`,r)}},[t]),(0,V.useEffect)(()=>{let e=n.current;if(!e||!r)return;let i=window,a=!1,o=!1,s=!1,c=!1,d=0,f=null,p=()=>!a&&l.current.started&&l.current.layout===`portrait`&&navigator.onLine!==!1&&me(innerWidth,innerHeight,t)!==0&&document.visibilityState===`visible`&&!document.querySelector(`.game-control-menu-backdrop,[role="dialog"][aria-modal="true"],canvas[data-win-cascade],.win-overlay,.game-shell[data-paused],.game-shell[data-game-status="won"]`),m=()=>p()&&!fe()&&[`guest`,`free`].includes(de().status)&&ue().status===`ready`&&be(),h=()=>{e.hidden=c||!m(),i.adsbygoogle&&!R()&&!le()&&(i.adsbygoogle.pauseAdRequests=+!m()),!(!pe||o||s||!m())&&(s=!0,xe(m).then(t=>{if(s=!1,!t||!m()||o)return;let n=e.getBoundingClientRect();if(!(n.width<320||n.height<r||n.left<0||n.right>innerWidth+1)){f=document.createElement(`ins`),f.className=`adsbygoogle`,f.style.display=`block`,f.style.width=`320px`,f.style.height=r===100?`100px`:`50px`,f.dataset.adClient=`ca-pub-7949189278765220`,f.dataset.adSlot=pe,e.append(f),o=!0,i.adsbygoogle??=[],i.adsbygoogle.pauseAdRequests=0;try{i.adsbygoogle.push({})}catch{c=!0,e.hidden=!0}}}))},g=()=>{d||=requestAnimationFrame(()=>{d=0,h()})},_=`.game-control-menu-backdrop,[role="dialog"][aria-modal="true"],canvas[data-win-cascade],.win-overlay`,v=new MutationObserver(e=>{c=f?.getAttribute(`data-ad-status`)===`unfilled`,e.some(e=>e.type===`attributes`||[...e.addedNodes,...e.removedNodes].some(e=>e instanceof Element&&(e.matches(_)||e.querySelector(_))))&&g()});v.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-paused`,`data-game-status`,`data-ad-status`]});let y=he(g),b=ge(()=>{h(),g()}),x=[`playsolitaire:advertising-consent`,`online`,`offline`,`resize`];
3return x.forEach(e=>window.addEventListener(e,h)),document.addEventListener(`visibilitychange`,h),u.current=g,h(),()=>{a=!0,v.disconnect(),y(),b(),f?.remove(),cancelAnimationFrame(d),i.adsbygoogle&&!R()&&!le()&&(i.adsbygoogle.pauseAdRequests=1),x.forEach(e=>window.removeEventListener(e,h)),document.removeEventListener(`visibilitychange`,h)}},[r,s,!1,t]),!r||!pe?null:(0,U.jsx)(`div`,{className:`phone-ad-reserve`,"data-banner-height":r,children:(0,U.jsx)(`div`,{ref:n,className:`phone-ad-slot`,hidden:!0,children:!1},s)})}function Me(e,t){return!t||e.toLowerCase().includes(t.toLowerCase())?e:`${t}: ${e}`}var Ne=`(min-width: 1121px)`;function Pe(e,t){return e?t===`bliss`?`bliss`:`classic`:`compact`}function Fe(){if(typeof window>`u`||typeof document>`u`)return`classic`;try{return Pe(window.matchMedia(Ne).matches,document.documentElement.dataset.gameShellLayout)}catch{try{let e=window.innerWidth;return Number.isFinite(e)&&e<1121?`compact`:`classic`}catch{return`classic`}}}var W=new Set,G=null,K=null,q=!1;function J(){for(let e of W)e()}function Ie(){if(!(typeof window>`u`||typeof document>`u`)){try{G=window.matchMedia(Ne),typeof G.addEventListener==`function`?G.addEventListener(`change`,J):typeof G.addListener==`function`?G.addListener(J):(G=null,window.addEventListener(`resize`,J),q=!0)}catch{G=null;try{window.addEventListener(`resize`,J),q=!0}catch{q=!1}}try{K=new MutationObserver(J),K.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-game-shell-layout`]})}catch{K=null}}}function Le(){typeof G?.removeEventListener==`function`?G.removeEventListener(`change`,J):typeof G?.removeListener==`function`&&G.removeListener(J),G=null,q&&typeof window<`u`&&window.removeEventListener(`resize`,J),q=!1,K?.disconnect(),K=null}function Re(e){return W.add(e),W.size===1&&Ie(),()=>{W.delete(e),W.size===0&&Le()}}function Y(){return(0,V.useSyncExternalStore)(Re,Fe,()=>`classic`)}function ze({w:e,h:t}){return(0,U.jsx)(`svg`,{width:`22`,height:`24`,viewBox:`0 0 22 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,U.jsx)(`rect`,{x:(22-e)/2,y:(24-t)/2,width:e,height:t,rx:`2`})})}function X({location:e,variant:t,className:r,idSuffix:a}){let o=S(),s=Y(),l=s===`compact`,{settings:u,updateCardSize:d}=z(),f=u.cardSize,p=n.length,m=n[0],h=n[p-1],g=Math.max(m,f-1),_=Math.min(h,f+1),v=`card-size-${e}${a?`-${a}`:``}`,y=`${v}-labels`,b=`${v}-fit-hint`,x=`${f} / ${p}`,C=o.ui.game.settingsCardSize,w=o.ui.game.settingsCardSizeFitHint,T=o.ui.game.settingsCardSizeFitShort,E=o.ui.game.settingsTextSizeSmall,D=o.ui.game.settingsTextSizeStandard,O=o.ui.game.settingsTextSizeLarge,k=[s===`classic`?`card-size-control-classic`:``,r??``].filter(Boolean).join(` `),A=t=>{i(t)&&d(t,e)},j=(f-m)/(h-m),M=(0,U.jsxs)(`span`,{className:`card-size-slider-wrap`,style:c({"--card-size-ratio":String(j)}),children:[(0,U.jsx)(`input`,{id:v,className:`card-size-slider`,type:`range`,min:m,max:h,step:1,value:f,"aria-label":t===`controls`?C:void 0,"aria-describedby":l?t===`settings`?`${y} ${b}`:b:t===`settings`?y:void 0,"aria-valuetext":x,title:t===`controls`?`${C}: ${x}`:void 0,onChange:e=>A(e.currentTarget.valueAsNumber),"data-card-size-slider":!0}),(0,U.jsx)(`output`,{className:`card-size-slider-value`,"data-card-size-thumb":!0,"aria-hidden":`true`,children:(0,U.jsx)(`bdi`,{dir:`ltr`,children:f})})]});return t===`controls`?(0,U.jsxs)(`div`,{className:`card-size-control card-size-control-controls${k?` ${k}`:``}`,role:`group`,"aria-label":C,children:[(0,U.jsx)(`button`,{type:`button`,className:`card-size-step card-size-step-glyph`,onClick:()=>A(f-1),disabled:f===m,"aria-label":`− ${C}: ${g} / ${p}`,title:`${E}: ${g} / ${p}`,"data-cta-id":`card_size_decrease`,"data-cta-location":e,children:(0,U.jsx)(ze,{w:9,h:13})}),M,(0,U.jsx)(`button`,{type:`button`,className:`card-size-step card-size-step-glyph`,onClick:()=>A(f+1),disabled:f===h,"aria-label":`+ ${C}: ${_} / ${p}`,title:`${O}: ${_} / ${p}`,"data-cta-id":`card_size_increase`,"data-cta-location":e,children:(0,U.jsx)(ze,{w:14,h:20})}),l&&(0,U.jsxs)(`span`,{className:`card-size-tablet-helper card-size-control
3s-fit-helper`,children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,children:T}),(0,U.jsx)(`span`,{id:b,className:`sr-only`,children:w})]})]}):(0,U.jsxs)(`div`,{className:`card-size-control card-size-control-${t}${k?` ${k}`:``}`,children:[(0,U.jsxs)(`div`,{className:`card-size-control-heading`,children:[(0,U.jsx)(`label`,{className:`card-size-control-title`,htmlFor:v,children:C}),(0,U.jsx)(`output`,{className:`card-size-control-value`,htmlFor:v,children:x})]}),(0,U.jsxs)(`div`,{className:`card-size-control-inputs`,children:[(0,U.jsx)(`button`,{type:`button`,className:`card-size-step`,onClick:()=>A(f-1),disabled:f===m,"aria-label":`− ${C}: ${g} / ${p}`,title:`${E}: ${g} / ${p}`,"data-cta-id":`card_size_decrease`,"data-cta-location":e,children:(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`−`})}),M,(0,U.jsx)(`button`,{type:`button`,className:`card-size-step`,onClick:()=>A(f+1),disabled:f===h,"aria-label":`+ ${C}: ${_} / ${p}`,title:`${O}: ${_} / ${p}`,"data-cta-id":`card_size_increase`,"data-cta-location":e,children:(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`+`})})]}),(0,U.jsxs)(`div`,{id:y,className:`card-size-control-labels`,children:[(0,U.jsx)(`span`,{children:E}),(0,U.jsx)(`span`,{children:D}),(0,U.jsx)(`span`,{children:O})]}),l&&(0,U.jsx)(`p`,{id:b,className:`card-size-tablet-helper card-size-settings-fit-helper`,children:w}),(0,U.jsxs)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:[C,`: `,x]})]})}var Be=`src/hooks/useTimer.ts`;async function Ve(e,t,n,r,i){let a=oe(t),o=oe(n),s=F(e,[f(a.currentKey),...a.legacyKeys.map(e=>f(e)),f(o.currentKey),...o.legacyKeys.map(e=>f(e))],n),c=s.length===0?null:te(e,s.map(({payload:e})=>e),void 0);return c===null?!1:await se(r,{attemptId:i,resetKey:e,elapsedMs:c,scope:n})!==null}function Z(){let e=globalThis.performance?.now();return Number.isFinite(e)?e:0}function He(e,t,n=`default`,i,a,o,s){let{currentKey:c,legacyKeys:l}=(0,V.useMemo)(()=>oe(n,a),[n,a]),[u,g]=(0,V.useState)(0),_=o?D(o):null,v=o?ie(o):null,y=r(),b=(0,V.useMemo)(()=>o&&s?P(o,s)?.attemptId:void 0,[s,o]),x=o&&b?`${o}|${b}|${t}`:null,S=(0,V.useRef)(x);S.current=x;let C=(0,V.useRef)(null),w=(0,V.useRef)(0),T=(0,V.useRef)(Z()),E=(0,V.useRef)(e);(0,V.useEffect)(()=>{E.current=e},[e]);let F=(0,V.useCallback)(()=>A(w.current,C.current,T.current,Z()),[]),ce=(0,V.useCallback)((e,t)=>{if(S.current!==t)return;let n=Z();if(e<=F())return;let r=C.current!==null;w.current=O(e),C.current=r?n:null,g(w.current)},[F]),I=(0,V.useCallback)(e=>{if(o){if(!b||x===null)return;se(o,{attemptId:b,resetKey:t,elapsedMs:e,scope:n,...a===void 0?{}:{legacyScope:a}}).then(e=>{e!==null&&ce(e,x)});return}let r=j(t,e);if(r!==null)for(let e of l)m(Be,e,r);let i=N(t,e);i!==null&&m(Be,c,i)},[a,ce,b,o,l,t,c,n,x]),L=(0,V.useCallback)(()=>{if(!o||!v||!b)return;let e=F();w.current=e,C.current=null;let n=M(y,o,b,t,e);n!==null&&h(Be,v,n)},[b,y,o,F,t,v]),R=(0,V.useCallback)(()=>{C.current!==null&&(w.current=A(w.current,C.current,T.current,Z()),C.current=null,g(w.current),I(w.current))},[I]);return(0,V.useEffect)(()=>{let n=[f(c),...l.map(e=>f(e))],r=(o&&v?k(p(v),y,o,b??``,t):null)?.elapsedMs,a=r===void 0?i:Math.max(r,O(i??0)),s=O(t<=0?0:o&&b&&_?ee(o,b,t,f(_),n,a):te(t,n,a));w.current=s,g(s);let u=Z();C.current=e&&!document.hidden?u:null,T.current=u,I(s)},[c,t,x]),(0,V.useEffect)(()=>{if(!(!o||!b||x===null))return re(y,o,b,t,()=>S.current===x?F():null)},[b,y,o,F,t,x]),(0,V.useEffect)(()=>{if(!o||!_||!b)return;let e=null,t=()=>{e!==null&&window.clearTimeout(e),e=window.setTimeout(()=>I(F()),30)},n=e=>{let n=d(e.key);n!==_&&!Te(n,o)||t()},r=e=>{e.detail?.storageKey===o&&t()};return window.addEventListener(`storage`,n),window.addEventListener(Ce,r),t(),()=>{window.removeEventListener(`storage`,n),window.removeEventListener(Ce,r),e!==null&&window.clearTimeout(e)}},[_,b,o,F,I]),(0,V.useEffect)(()=>{if(!e){C.current!==null&&(w.current=A(w.current,C.current,T.current,Z()),C.current=null,g(w.current),I(w.current));return}let t=Z();document.hidden||(C.current=t,T.current=t);let n=0,r=setInterval(()=>{let e=Z(),t=A(w.current,C.current,T.current,e);if(C.current!==null&&e-T.current>6e4){w.current=t,C.current=null,g(w.current),I(w.current);return}g(t),C.current!==null&&++n%5==0&&I(t)},1e3);return()=>clearInterval(r)},[e,t,c,I]),(0,V.useEffect)(()=>{let e=()=>{let e=Z();if(!E.current||document.hidden){T.current=e;return}let t=w.current,n=ae(t,C.current,T.current,e);w.current=n.accumulatedMs,C.current=n.segmentStartedAt,T.current=n.lastInputAt,n.accumulatedMs!==t&&(g(n.accumulatedMs),I(n.accumulatedMs))};return window.addEventListener(`pointerdown`,e),window.addEventListener(`ke
3ydown`,e),()=>{window.removeEventListener(`pointerdown`,e),window.removeEventListener(`keydown`,e)}},[I]),(0,V.useEffect)(()=>{let t=()=>{if(document.hidden)R();else{let t=Z();e&&ne(T.current,t)&&(C.current=t)}},n=()=>{R(),L()};return document.addEventListener(`visibilitychange`,t),window.addEventListener(`pagehide`,n),()=>{document.removeEventListener(`visibilitychange`,t),window.removeEventListener(`pagehide`,n)}},[e,R,L]),(0,V.useEffect)(()=>()=>L(),[L]),{elapsed:u,getElapsedMs:F}}function Q(e){let t=Math.floor(O(e)/1e3);return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}var Ue=(0,V.memo)(function({elapsed:e,moveCount:t,idle:n}){let r=S(),i=Y(),{settings:a}=z(),o=a.showTimer,s=a.showMoves;if(!o&&!s)return null;let c=r.ui.moves,l=n??t===0,u=s?(0,U.jsxs)(`span`,{className:`game-status-item`,"aria-label":`${t} ${c}`,children:[(0,U.jsxs)(`svg`,{className:`game-status-icon`,width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`path`,{d:`M3 6h8.5`}),(0,U.jsx)(`path`,{d:`M9.5 4 11.5 6 9.5 8`}),(0,U.jsx)(`path`,{d:`M13 10H4.5`}),(0,U.jsx)(`path`,{d:`M6.5 8 4.5 10 6.5 12`})]}),t]}):null,d=o?(0,U.jsxs)(`span`,{className:`game-status-item`,"aria-label":`${r.ui.time}: ${Q(e)}`,children:[(0,U.jsxs)(`svg`,{className:`game-status-icon game-status-clock`,width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`}),(0,U.jsx)(`path`,{d:`M8 4.75V8l2.25 1.5`})]}),Q(e)]}):null;return(0,U.jsx)(`div`,{className:`game-status`,"aria-live":`off`,"data-idle":l||void 0,children:i===`classic`?(0,U.jsxs)(U.Fragment,{children:[u,s&&o&&(0,U.jsx)(`span`,{className:`game-status-divider`,"aria-hidden":`true`}),d]}):(0,U.jsxs)(U.Fragment,{children:[d,s&&o&&(0,U.jsx)(`span`,{className:`game-status-divider`,"aria-hidden":`true`}),u]})})});function We({placement:e=`header`}){let t=S(),{settings:n,updateSetting:r}=z(),i=n.soundEnabled,a=e===`desktop_bottom_bar`,o=Y()===`compact`&&!a;return(0,U.jsx)(`button`,{type:`button`,className:`sound-toggle${a?` bliss-sound-toggle`:``}`,"aria-pressed":i,"aria-label":t.ui.game.settingsSound??`Sound effects`,title:t.ui.game.settingsSound??`Sound effects`,onClick:()=>r(`soundEnabled`,!i,a?`controls`:`header`),"data-cta-id":i?`sound_off`:`sound_on`,"data-cta-location":e,children:(0,U.jsxs)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[o&&!i?(0,U.jsx)(`path`,{d:`M13 8V4L9.5 7M6 9H3v7h4l6 5v-8`}):(0,U.jsx)(`path`,{d:`M4 9.5v5h3.2L12 18.4V5.6L7.2 9.5H4z`}),i?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{d:`M15.3 9.3a4 4 0 0 1 0 5.4`}),(0,U.jsx)(`path`,{d:`M17.8 7a7.6 7.6 0 0 1 0 10`})]}):o?(0,U.jsx)(`path`,{d:`m3 3 18 18`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`line`,{x1:`16`,y1:`9.25`,x2:`21.5`,y2:`14.75`}),(0,U.jsx)(`line`,{x1:`21.5`,y1:`9.25`,x2:`16`,y2:`14.75`})]})]})})}var Ge=o.feedbackEnabled;o.researchEnabled;var Ke=(0,V.memo)(function({entryPoint:e,onClick:t}){let n=S();return(0,U.jsxs)(`div`,{className:`feedback-invitation`,children:[(0,U.jsx)(`p`,{className:`feedback-trigger-prompt`,children:n.ui.feedback.triggerPrompt}),(0,U.jsx)(`button`,{id:`feedback-trigger-${e}`,type:`button`,className:`feedback-trigger`,onClick:e=>{e.currentTarget.focus(),t()},"aria-label":n.ui.feedback.menuItem,"data-cta-id":`feedback_open`,"data-cta-location":e,children:(0,U.jsxs)(`svg`,{className:`feedback-trigger-icon`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`path`,{d:`M2.5 3.25h11v7.5h-6L4 13v-2.25H2.5z`}),(0,U.jsx)(`path`,{d:`M5.25 6.25h5.5M5.25 8.25h3.5`})]})})]})}),qe={enabled:!1,openFeedback:()=>void 0},Je=(0,V.createContext)(qe),Ye=(0,V.lazy)(async()=>({default:(await C(()=>import(`./FeedbackModal.Ceaf2EIH.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))).FeedbackModal})),Xe=21e6;function Ze(){return(0,V.useContext)(Je)}function Qe({context:e,getContext:t,children:n}){let[r,i]=(0,V.useState)(!1),[a,o]=(0,V.useState)(`floating`),[s,c]=(0,V.useState)(()=>Date.now()),[l,u]=(0,V.useState)({type:`bug`,message:``,email:``}),d=(0,V.useRef)(e),f=(0,V.useRef)(null);d.current=e,(0,V.useEffect)(()=>Ee(e.gameVariant),[e.gameVariant]);let p=(0,V.useCallback)(e=>{let t=Date.now(),n=document.activeElement instanceof HTMLElement?document.activeElement:null;f.current={element:n,fallbackId:n?.dataset.modalRestoreFocus||n?.id||null},c(e=>t-e>Xe?t:e),o(e),i(!0)},[]),m=(0,V.useCallback)(()=>{let e=f.current;f.current=null,i(!1),window.requestAnimationFrame(()=>{(e?.element?.isConnected?e.element:e?.fallbackId?document.getElementById(e.fallbackId):null)?.focus()})},[]),h=Ge?{enabled:!0,openFeedback:p}:qe;return(0,U.jsxs)(Je.Provider,{value:h,children:[n,Ge&&(0,U.jsx)(Ke,{entryPoint:`floating`,onClick:()=>p(`floating`)}),Ge&&r&&(0,U.jsx)(V.Suspense,{fallback:null,children:(0,U.jsx)(Ye,{entryPoint:a,draft:l,setDraft:u,getContext:()=>t?.()??d.current,startedAt:s,setStartedAt:c,onClose:m})})]})}function $e({menu:e,newAction:t,hint:n,undo:r,settings:i,fullscreen:a,extra:o}){let s=S(),c=I(),l=Ze(),u=(0,V.useRef)(null),[d,f]=(0,V.useState)(null);return(0,V.useLayoutEffect)(()=>{let e=u.current?.closest(`.game-shell`)??null;if(f(e),!(!e||!c))return e.dataset.phoneLayout=c,()=>{delete e.dataset.phoneLayout}},[c]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{ref:u,className:`phone-actions`,role:`toolbar`,"aria-label":s.ui.game.gameControls,children:[(0,U.jsxs)(`div`,{className:`phone-actions-start`,children:[e,t,c===`landscape`&&i]}),(0,U.jsxs)(`div`,{className:`phone-actions-end`,children:[n,r]})]}),d&&(0,H.createPortal)((0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`phone-hud`,role:`toolbar`,"aria-label":s.ui.game.gameControls,children:[c===`portrait`&&i,(0,U.jsx)(We,{}),o,a&&(0,U.jsx)(`button`,{type:`button`,className:`phone-fullscreen`,"aria-pressed":a.isFocused,"aria-label":a.isFocused?s.ui.game.exitFocused:s.ui.game.enterFocused,onClick:a.toggle,children:(0,U.jsx)(`svg`,{viewB
3ox:`0 0 24 24`,width:`24`,height:`24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:a.isFocused?`M3 8h5V3M16 3v5h5M21 16h-5v5M8 21v-5H3`:`M3 8V3h5M16 3h5v5M21 16v5h-5M8 21H3v-5`})})}),(0,U.jsx)(`span`,{className:`phone-rankings-slot`}),c===`landscape`&&(0,U.jsx)(X,{location:`controls`,variant:`controls`,idSuffix:`phone`}),l.enabled&&(0,U.jsx)(`button`,{type:`button`,className:`phone-feedback`,"aria-label":s.ui.feedback.menuItem,onClick:e=>{e.currentTarget.focus(),l.openFeedback(`game_menu`)},children:(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`24`,height:`24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,"aria-hidden":`true`,children:[(0,U.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`14`,rx:`1`}),(0,U.jsx)(`path`,{d:`m3 6 9 7 9-7`})]})})]}),(0,U.jsx)(je,{layout:c})]}),d)]})}function et({fullscreen:e,phoneExtra:t,onNewGame:n,onUndo:r,onUndoMouseDown:i,undoAction:a,onHint:o,canUndo:s,canHint:c,isHintBusy:l=!1,hintStatus:u,hintUnavailableLabel:d,hintLoadingLabel:f,showHintShortcut:p=!0,isPaused:m=!1,newLabel:h,newDisabled:g=!1,menu:_,onShowSettings:v}){let y=S(),b=Y(),x=I(),C=Ae(),w=h??y.ui.newGame,T=u===`loading`&&f?f:u===`unavailable`&&d?d:y.ui.hint;if(x&&C||b!==`bliss`&&!x)return null;let E=(0,U.jsxs)(`button`,{type:`button`,className:`bliss-header-action bliss-header-new`,onClick:n,disabled:g,"aria-label":w,title:w,"data-cta-id":`new_game`,"data-cta-location":x?`phone_header`:`desktop_header`,children:[(0,U.jsx)(`svg`,{width:`17`,height:`17`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M8 2v12M2 8h12`})}),(0,U.jsx)(`span`,{children:x&&!h?y.ui.newGameCompact??y.ui.newGame:w})]}),D=a??(0,U.jsx)(tt,{onUndo:r,onUndoMouseDown:i,canUndo:s===!0,isPaused:m}),O=(0,U.jsxs)(`button`,{type:`button`,className:`bliss-header-action bliss-header-hint`,onClick:()=>{c&&!l&&!m&&o()},disabled:!c||m,"aria-disabled":l||void 0,"aria-busy":l||void 0,"data-hint-status":u,"aria-label":Me(T,y.ui.hint),title:p?u&&u!==`ready`?T:`${y.ui.hint} (H)`:void 0,"data-cta-id":`hint`,"data-cta-location":x?`phone_header`:`desktop_header`,children:[(0,U.jsxs)(`svg`,{width:`17`,height:`17`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`path`,{d:`M8 2a4 4 0 0 0-2 7.5V11h4V9.5A4 4 0 0 0 8 2z`}),(0,U.jsx)(`path`,{d:`M6 13h4M7 15h2`})]}),(0,U.jsx)(`span`,{children:y.ui.hint}),p&&!x&&(0,U.jsx)(`kbd`,{className:`bliss-header-shortcut`,dir:`ltr`,"aria-hidden":`true`,children:`H`})]}),k=(0,U.jsx)(`button`,{type:`button`,className:`bliss-header-action bliss-header-icon-button bliss-header-settings`,onClick:v,"aria-label":y.ui.settings,title:y.ui.settings,"data-cta-id":`settings_open`,"data-cta-location":x?`phone_header`:`desktop_header`,children:(0,U.jsx)(`svg`,{width:`19`,height:`19`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M19.43 12.98c.04-.32.07-.65.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.6-.22l-2.49 1a7.3 7.3 0 0 0-1.69-.98l-.38-2.65A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.5.42l-.38 2.65c-.61.25-1.18.58-1.69.98l-2.49-1a.5.5 0 0 0-.6.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65a7.1 7.1 0 0 0 0 1.96l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46a.5.5 0 0 0 .6.22l2.49-1c.51.4 1.08.73 1.69.98l.38 2.65A.5.5 0 0 0 10 22h4a.5.5 0 0 0 .5-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1a.5.5 0 0 0 .6-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65zM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5z`})})});return x?(0,U.jsx)($e,{menu:_,newAction:E,hint:O,undo:D,settings:k,fullscreen:e,extra:t}):(0,U.jsxs)(`div`,{className:`bliss-header-actions`,role:`toolbar`,"aria-label":y.ui.game.gameControls,children:[E,D,O,_,k]})}function tt({onUndo:e,onUndoMouseDown:t,canUndo:n,isPaused:r=!1}){let i=S();return(0,U.jsxs)(`button`,{type:`button`,className:`bliss-header-action bliss-header-undo`,onMouseDown:t,onClick:e,disabled:!n||r,"aria-label":i.ui.undo,title:`${i.ui.undo} (U)`,"data-cta-id":`undo`,"data-cta-location":`desktop_header`,children:[(0,U.jsxs)(`svg`,{width:`17`,he
3ight:`17`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`path`,{d:`M3 7h7a4 4 0 0 1 0 8H8`}),(0,U.jsx)(`polyline`,{points:`6 4 3 7 6 10`})]}),(0,U.jsx)(`span`,{children:i.ui.undo}),(0,U.jsx)(`kbd`,{className:`bliss-header-shortcut`,dir:`ltr`,"aria-hidden":`true`,children:`U`})]})}var nt=t.filter(e=>e.id===`felt`||e.id===`linen`);function rt({onShowThemeSettings:e,ctaLocation:t,settingsLabel:n}){let r=S(),{settings:i,updateSetting:a}=z(),o=r.ui.game.settingsTheme,s=n??`${r.ui.settings}: ${o}`,c=!nt.some(e=>e.id===i.theme),l=t??`desktop_bottom_bar_theme`;return(0,U.jsxs)(`div`,{className:`bliss-theme-quick-switch`,role:`group`,"aria-label":o,children:[nt.map(e=>{let t=r.ui.game.settingsThemeNames?.[e.id]??e.label;return(0,U.jsx)(`button`,{type:`button`,className:`bliss-theme-quick`,onClick:()=>a(`theme`,e.id,`controls`),"aria-label":`${o}: ${t}`,"aria-pressed":i.theme===e.id,title:`${o}: ${t}`,"data-theme-id":e.id,"data-cta-id":`theme_${e.id}`,"data-cta-location":l,children:(0,U.jsxs)(`span`,{className:`bliss-theme-quick-preview`,"aria-hidden":`true`,children:[(0,U.jsx)(`span`,{className:`bliss-theme-quick-rail`}),(0,U.jsx)(`span`,{className:`bliss-theme-quick-card`})]})},e.id)}),(0,U.jsx)(`button`,{type:`button`,className:`bliss-theme-more`,onClick:t=>{t.currentTarget.focus(),e()},"aria-label":s,"aria-haspopup":`dialog`,title:s,"data-other-theme-active":c?`true`:void 0,"data-cta-id":`settings_open`,"data-cta-location":l,children:n?(0,U.jsx)(`svg`,{width:`17`,height:`17`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M19.43 12.98c.04-.32.07-.65.07-.98s-.03-.66-.07-.98l2.11-1.65a.5.5 0 0 0 .12-.64l-2-3.46a.5.5 0 0 0-.6-.22l-2.49 1a7.3 7.3 0 0 0-1.69-.98l-.38-2.65A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.5.42l-.38 2.65c-.61.25-1.18.58-1.69.98l-2.49-1a.5.5 0 0 0-.6-.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65a7.1 7.1 0 0 0 0 1.96l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46a.5.5 0 0 0 .6.22l2.49-1c.51.4 1.08.73 1.69.98l.38 2.65A.5.5 0 0 0 10 22h4a.5.5 0 0 0 .5-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1a.5.5 0 0 0 .6-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65zM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5z`})}):(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`+`})})]})}function it(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}function at(){return o.variant===`playsolitaire`&&typeof window<`u`&&window.innerWidth>=600&&window.innerWidth<=1400&&window.innerHeight>=501}function ot({postWin:e=!1}={}){let t=Y(),n=(0,V.useSyncExternalStore)(it,at,()=>!1);return(0,U.jsxs)(U.Fragment,{children:[!(e&&t===`classic`)&&(0,U.jsx)(X,{location:`controls`,variant:`controls`,className:`bliss-compact-card-size`,idSuffix:`compact`}),(0,U.jsx)(`span`,{className:`tablet-rankings-slot`,"data-tablet-layout":n&&t!==`bliss`||void 0})]})}function st({elapsed:e,moveCount:t,gameStatus:n,isPlaying:r,identity:i,canPause:a=!0,isPaused:o,onTogglePause:s,onShowThemeSettings:c}){let u=S(),d=Y(),f=i.label,p=u.ui.game.pauseGame??`Pause`,m=u.ui.resumeGame,h=u.ui.game.gamePaused??`Game paused`,g=(0,V.useRef)(null);if((0,V.useEffect)(()=>{if(d!==`bliss`)return;let e=g.current?.closest(`.game-controls`);if(!e)return;let t=document.documentElement,n=()=>{t.style.setProperty(`--bliss-dock-clearance`,`calc(${e.getBoundingClientRect().height}px - env(safe-area-inset-bottom, 0px))`)};n();let r=new ResizeObserver(n);return r.observe(e),()=>{r.disconnect(),t.style.removeProperty(`--bliss-dock-clearance`)}},[d]),d===`compact`)return null;let _=o&&(0,H.createPortal)((0,U.jsxs)(B,{onClose:()=>{l(`cta_click`,{cta_id:`game_resume`,cta_location:`pause_dialog_escape`}),s()},overlayClassName:`bliss-pause-overlay`,contentClassName:`bliss-pause-dialog`,ariaLabel:`${f}: ${h}`,closeOnBackdrop:!1,children:[(0,U.jsx)(`button`,{type:`button`,className:`bliss-pause-close`,onClick:s,"aria-label":u.ui.game.close,title:u.ui.game.close,"data-cta-id":`game_resume`,"data-cta-location":`pause_dialog_close`,children:(0,U.jsx)(`svg`,{width:`20`,he
3ight:`20`,viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M4 4l12 12M16 4 4 16`})})}),(0,U.jsx)(`img`,{className:`bliss-pause-mark`,src:`/icons/icon-192.png`,width:`112`,height:`112`,alt:``,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`bliss-pause-game-name`,children:f}),(0,U.jsx)(`h2`,{className:`bliss-pause-title`,children:h}),(0,U.jsxs)(`button`,{type:`button`,className:`bliss-pause-resume`,onClick:s,"data-modal-initial-focus":!0,"data-cta-id":`game_resume`,"data-cta-location":`pause_dialog`,children:[(0,U.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M4 2.7v10.6L12.5 8 4 2.7z`})}),(0,U.jsx)(`span`,{children:m})]})]}),document.body);return d===`classic`&&!r?null:d===`classic`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{type:`button`,className:`game-control-btn game-control-pause classic-pause-button`,onClick:s,disabled:!r||!a,"aria-pressed":o,"aria-label":o?m:p,title:o?m:p,"data-cta-id":o?`game_resume`:`game_pause`,"data-cta-location":`desktop_bottom_bar`,children:o?(0,U.jsx)(`svg`,{className:`game-control-icon`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M4 2.7v10.6L12.5 8 4 2.7z`})}):(0,U.jsxs)(`svg`,{className:`game-control-icon`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,U.jsx)(`rect`,{x:`3.5`,y:`2.5`,width:`3`,height:`11`,rx:`0.8`}),(0,U.jsx)(`rect`,{x:`9.5`,y:`2.5`,width:`3`,height:`11`,rx:`0.8`})]})}),_]}):(0,U.jsxs)(`div`,{ref:g,className:`bliss-desktop-bottom-bar`,children:[(0,U.jsx)(X,{location:`controls`,variant:`controls`,className:`bliss-desktop-card-size`,idSuffix:`desktop`}),(0,U.jsx)(rt,{onShowThemeSettings:c}),(0,U.jsxs)(`div`,{className:`bliss-bottom-status`,"aria-label":f,children:[(0,U.jsx)(`span`,{className:`bliss-current-game`,title:f,children:f}),(0,U.jsxs)(`button`,{type:`button`,className:`bliss-pause-button`,onClick:s,disabled:!r||!a,"aria-pressed":o,"aria-label":o?m:p,title:o?m:p,"data-cta-id":o?`game_resume`:`game_pause`,"data-cta-location":`desktop_bottom_bar`,children:[o?(0,U.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M4 2.7v10.6L12.5 8 4 2.7z`})}):(0,U.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,U.jsx)(`rect`,{x:`3.5`,y:`2.5`,width:`3`,height:`11`,rx:`0.8`}),(0,U.jsx)(`rect`,{x:`9.5`,y:`2.5`,width:`3`,height:`11`,rx:`0.8`})]}),(0,U.jsx)(`span`,{className:`sr-only`,children:o?m:p})]}),n??(0,U.jsx)(Ue,{elapsed:e,moveCount:t??0}),(0,U.jsx)(We,{placement:`desktop_bottom_bar`}),(0,U.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:o?h:``})]}),_]})}function ct({statsKey:e,onClose:t}){let n=S(),[r,i]=(0,V.useState)(null);(0,V.useEffect)(()=>{let t=!0;return De(e).then(e=>{t&&i(e)}),()=>{t=!1}},[e]);let a=r&&r.played>0?[[n.ui.game.statsGamesPlayed,String(r.played)],[n.ui.game.statsWins,String(r.wins)],[n.ui.game.statsWinRate,`${Math.round(r.wins/r.played*100)}%`],[n.ui.game.statsBestTime,r.bestTimeMs===null?`—`:Q(r.bestTimeMs)],[n.ui.game.statsBestMoves,r.bestMoves===null?`—`:String(r.bestMoves)],[n.ui.game.statsCurrentStreak,String(r.currentStreak)],[n.ui.game.statsBestStreak,String(r.longestStreak)]]:null;return(0,U.jsxs)(B,{onClose:t,overlayClassName:`win-overlay`,contentClassName:`win-content stats-dialog-content`,ariaLabel:n.ui.game.statsH1,children:[(0,U.jsx)(`button`,{type:`button`,className:`stats-dialog-close`,onClick:t,"aria-label":n.ui.game.close,title:n.ui.game.close,"data-cta-id":`stats_close`,"data-cta-location":`stats_dialog`,"data-modal-initial-focus":!0,children:`×`}),(0,U.jsx)(`h2`,{className:`win-title`,children:n.ui.game.statsH1}),a?(0,U.jsx)(`dl`,{className:`stats-dialog-rows`,children:a.map(([e,t])=>(0,U.jsxs)(`div`,{className:`stats-dialog-row`,children:[(0,U.jsx)(`dt`,{children:e}),(0,U.jsx)(`dd`,{children:t})]},e))}):(0,U.jsx)(`p`,{className:`stats-dialog-empty`,children:n.ui.game.statsEmpty})]})}function lt({phoneSetup:e,onRestart:t,restartDisabled:n=!1,onShowSettings:r,onShowRules:i,paths:o,onChallenge:c,onViewStandings:l,viewStandingsLabel:u,statsKey:d,dealStatus:f,onDealDifficulty:p,dealCtaId:m=`spider_deal_difficulty`,placement:h=`dock`}){let g=S(),_=Ze(),{settings:v}=z(),y=Y(),[b,x]=(0,V.useState)(!1),[C,w]=(0,V.useState)(!1),[T,E]=(0,V.useState)(!1),D=I(),O=Ae()&&!!D,k=h===`header`,A=k?y===`bliss`||!!D&&
3!O:y!==`bliss`&&(!D||O),[j,M]=(0,V.useState)(!1),N=`game-menu-trigger-${(0,V.useId)().replace(/:/gu,``)}`;(0,V.useEffect)(()=>{M(!1)},[A]);let P=(0,V.useRef)(null),ee=(0,V.useRef)(null);(0,V.useEffect)(()=>{A||(x(!1),w(!1),E(!1))},[A]),(0,V.useEffect)(()=>{let e=()=>{x(!1),w(!1)};return window.addEventListener(`playsolitaire:account-access-open`,e),()=>window.removeEventListener(`playsolitaire:account-access-open`,e)},[]),(0,V.useEffect)(()=>{if(!C)return;if(!b){w(!1);return}let e=window.setTimeout(()=>w(!1),3e3);return()=>window.clearTimeout(e)},[C,b]);let te=(0,V.useCallback)(()=>{if(!n){if(v.confirmRestart&&!C){w(!0);return}t(),w(!1),x(!1)}},[t,n,v.confirmRestart,C]),ne=(0,V.useCallback)(e=>{P.current&&!P.current.contains(e.relatedTarget)&&(x(!1),w(!1))},[]),re=(0,V.useCallback)(e=>{!b||e.defaultPrevented||e.key!==`Escape`||!e.currentTarget.contains(e.target)||(e.preventDefault(),e.stopPropagation(),x(!1),w(!1),ee.current?.focus())},[b]);if(!A)return null;let ie=D?Array.from(document.querySelectorAll(`.ps-catalog-card[data-game-key]`)).filter(e=>![`daily`,`winrates`].includes(e.dataset.gameKey??``)).map(e=>({key:e.dataset.gameKey,href:e.querySelector(`a`)?.getAttribute(`href`),label:e.dataset.gameSwitcherLabel||e.querySelector(`a`)?.textContent?.trim()||g.ui.gameSwitcher.solitaire})):[],ae=ie.filter(e=>[`solitaire`,`spider`,`freecell`].includes(e.key)),F=ie.filter(e=>![`solitaire`,`spider`,`freecell`].includes(e.key));return(0,U.jsxs)(`div`,{className:`game-control-menu-wrap${k?` bliss-header-menu-wrap`:``}`,ref:P,onBlur:ne,onKeyDown:re,children:[(0,U.jsxs)(`button`,{ref:ee,id:N,className:k?`bliss-header-action bliss-header-icon-button bliss-header-menu game-control-menu-btn`:`game-control-btn game-control-menu-btn`,onClick:()=>x(e=>!e),"aria-expanded":b,"aria-haspopup":`menu`,"aria-label":j?`${g.ui.game.gameMenu} ${g.ui.whatsNew?.newBadge??`— new updates`}`:g.ui.game.gameMenu,"data-cta-id":`game_menu_open`,"data-cta-location":k?D?`phone_header`:`desktop_header`:`dock`,children:[k?(0,U.jsxs)(`svg`,{width:`19`,height:`19`,viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`line`,{x1:`4`,y1:`5`,x2:`16`,y2:`5`}),(0,U.jsx)(`line`,{x1:`4`,y1:`10`,x2:`16`,y2:`10`}),(0,U.jsx)(`line`,{x1:`4`,y1:`15`,x2:`16`,y2:`15`})]}):(0,U.jsxs)(`span`,{className:`game-control-label`,children:[g.ui.game.gameMenuLabel,` ▾`]}),D&&k&&(0,U.jsx)(`span`,{className:`phone-action-label`,children:g.ui.game.gameMenuLabel}),j&&(0,U.jsx)(`span`,{className:`whats-new-dot whats-new-dot--trigger`,"aria-hidden":`true`})]}),b&&(0,H.createPortal)((0,U.jsx)(`div`,{className:`game-control-menu-backdrop`,onClick:()=>{x(!1),w(!1)},"aria-hidden":`true`}),document.body),b&&(0,U.jsxs)(`div`,{className:`game-control-menu${k?` bliss-header-menu-popover`:``}`,role:`menu`,"data-ps-game-control-menu":`true`,children:[D&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`phone-menu-heading`,children:[(0,U.jsx)(`strong`,{children:g.ui.game.allGames}),(0,U.jsx)(`button`,{type:`button`,className:`phone-menu-close`,"aria-label":g.ui.game.close,onClick:()=>{x(!1),ee.current?.focus()},children:`×`})]}),(0,U.jsx)(`div`,{className:`phone-game-choices`,children:ae.map(e=>e.href?(0,U.jsx)(`a`,{href:s(e.href),role:`menuitem`,children:e.label},e.key):(0,U.jsx)(`span`,{"aria-current":`page`,children:e.label},e.key))}),F.length>0&&(0,U.jsxs)(`details`,{className:`phone-more-games`,children:[(0,U.jsxs)(`summary`,{children:[g.ui.game.allGames,` (`,ie.length,`)`]}),(0,U.jsx)(`div`,{children:F.map(e=>e.href&&(0,U.jsx)(`a`,{role:`menuitem`,href:s(e.href),children:e.label},e.key))})]}),e&&(0,U.jsx)(`div`,{className:`phone-menu-setup`,children:e})]}),(0,U.jsxs)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:te,disabled:n,"data-cta-id":`restart`,"data-cta-location":`menu`,children:[C?g.ui.game.tapToConfirm:g.ui.restart,!C&&(0,U.jsx)(`kbd`,{className:`shortcut-hint menu-shortcut`,"aria-hidden":`true`,children:`R`})]}),f&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),p?(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>{x(!1),w(!1),p()},"data-cta-id":m,"data-cta-location":`menu`,"data-modal-restore-focus":N,children:f}):(0,U.jsx)(`div`,{className:`game-menu-item game-menu-status`,role:`menuitem`,"aria-disabled":`true`,children:f})]}),c&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>{x(!1),w(!1),c()},"data-cta-id":`daily_challenge_share`,"data-cta-location":`menu`,children:g.ui.daily?.challengeFriend??`Challenge a friend`})]}),(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>{x(!1),r()},"data-cta-id":`settings_open`,"data-cta-location":`menu`,"data-modal-restore-focus":N,children:g.ui.settings}),d&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>{x(!1),w(!1),E(!0)},"data-cta-id":`stats_open`,"data-cta-location":`menu`,"data-modal-restore-focus":N,children:g.ui.game.viewStats})]}),_.enabled&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>
3{x(!1),w(!1),_.openFeedback(`game_menu`)},"data-cta-id":`feedback_open`,"data-cta-location":`game_menu`,"data-modal-restore-focus":N,children:g.ui.feedback.menuItem})]}),(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),!a&&!1,o.daily&&(0,U.jsx)(`a`,{href:s(o.daily),className:`game-menu-item game-menu-link`,role:`menuitem`,"data-cta-id":`daily_open`,"data-cta-location":`menu`,children:g.ui.daily?.menuItem??`Daily challenge`}),l&&u&&(0,U.jsx)(`button`,{type:`button`,className:`game-menu-item`,role:`menuitem`,"aria-haspopup":`dialog`,onClick:()=>{x(!1),w(!1),l()},"data-cta-id":`daily_standings_open`,"data-cta-location":`menu`,"data-modal-restore-focus":N,children:u}),i?(0,U.jsx)(`button`,{className:`game-menu-item`,role:`menuitem`,onClick:()=>{x(!1),w(!1),i()},"data-cta-id":`help_open`,"data-cta-location":`menu`,"data-modal-restore-focus":N,children:g.ui.klondikeRules.menuLabel}):o.help&&(0,U.jsx)(`a`,{href:s(o.help),className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>{x(!1),w(!1)},"data-cta-id":`help_open`,"data-cta-location":`menu`,children:g.ui.help}),o.video&&(0,U.jsx)(`a`,{href:s(o.video),className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>{x(!1),w(!1)},"data-cta-id":`tutorial_video_open`,"data-cta-location":`menu`,children:g.ui.tutorialVideo?.menuItem??`Video tutorial`}),(0,U.jsx)(`a`,{href:`#games`,className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>{x(!1),w(!1)},"data-cta-id":`all_games_open`,"data-cta-location":`menu`,children:g.ui.game.allGames??`All games`}),(0,U.jsx)(`a`,{href:s(o.home),className:`game-menu-item game-menu-link`,role:`menuitem`,"data-cta-id":`home_link`,"data-cta-location":`menu`,children:g.ui.home??`Home`})]}),T&&d&&(0,H.createPortal)((0,U.jsx)(ct,{statsKey:d,onClose:()=>E(!1)}),document.body)]})}function ut(e){let{status:t,startedAt:n,finalElapsedMs:r,dismissed:i,winRecord:a,gameVariant:o,mode:s}=e,c=(0,V.useRef)(t===`won`?n:null),[u,d]=(0,V.useState)(!1),[f,p]=(0,V.useState)(null);return(0,V.useEffect)(()=>{if(t!==`won`||i){d(!1),p(null);return}c.current!==n&&(c.current=n,r===void 0&&s!==`daily`&&d(!0))},[t,n,i,r,s]),(0,V.useEffect)(()=>{!u||r===void 0||!a||a.event.startedAt===n&&(d(!1),(a.status===`created`||a.status===`duplicate`)&&(p(a),l(`promo_shown`,{promo_id:`personal_best`,game_variant:o,mode:s})))},[u,r,n,a,o,s]),f}function dt({record:e,currentMoves:t,elapsed:n}){let r=S();return(0,U.jsxs)(`div`,{className:`win-record`,role:`status`,children:[(0,U.jsx)(`div`,{className:e.newBestTime||e.newBestMoves?`win-record-plaque is-newbest`:`win-record-plaque`,children:(0,U.jsx)(`span`,{children:e.newBestTime||e.newBestMoves?r.ui.game.winBadgeNewBestStar:r.ui.game.winRecordTitle})}),(0,U.jsxs)(`div`,{className:`win-record-row`,children:[(0,U.jsxs)(`div`,{className:e.newBestMoves?`win-record-stat is-beat`:`win-record-stat`,children:[(0,U.jsx)(`b`,{children:e.stats.bestMoves??t}),(0,U.jsx)(`span`,{children:r.ui.game.statsBestMoves})]}),(0,U.jsxs)(`div`,{className:e.newBestTime?`win-record-stat is-beat`:`win-record-stat`,children:[(0,U.jsx)(`b`,{children:Q(e.stats.bestTimeMs??n)}),(0,U.jsx)(`span`,{children:r.ui.game.statsBestTime})]}),(0,U.jsxs)(`div`,{className:`win-record-stat`,children:[(0,U.jsx)(`b`,{children:e.stats.wins}),(0,U.jsx)(`span`,{children:r.ui.game.statsWins})]})]})]})}function ft(e,t,n=!0){let r=Y(),i=n&&r!==`compact`,[a,o]=(0,V.useState)(!1);(0,V.useEffect)(()=>{o(!1)},[t]),(0,V.useEffect)(()=>{e||o(!1)},[e]),(0,V.useEffect)(()=>{i||o(!1)},[i]);let s=(0,V.useCallback)(()=>{!e||!i||o(e=>!e)},[e,i]);return{isPaused:i&&a,togglePause:s,shellMode:r}}function pt(){return!!(document.documentElement.requestFullscreen||document.documentElement.webkitRequestFullscreen)}function mt(){return!!(document.fullscreenElement||document.webkitFullscreenElement)}function ht(){let[e,t]=(0,V.useState)(!1),[n,r]=(0,V.useState)(!1),i=(0,V.useCallback)(()=>{mt()&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),t(!1),r(!1)},[]),a=(0,V.useCallback)(()=>{if(n){i();return}if(r(!0),pt()){let e=document.documentElement;(e.requestFullscreen||e.webkitRequestFullscreen).call(e).catch(()=>{})}},[n,i]);return(0,V.useEffect)(()=>{let e=mt();function n(){let n=mt();t(n),e&&!n&&ce()&&r(!1),e=n}return document.addEventListener(`fullscreenchange`,n),document.addEventListener(`webkitfullscreenchange`,n),()=>{document.removeEventListener(`fullscreenchange`,n),document.removeEventListener(`webkitfullscreenchange`,n)}},[]),(0,V.useEffect)(()=>{function t(t){document.querySelector(`.game-shell[data-paused]`)||t.target?.closest(`input, textarea, select, button, a[href], [contenteditable="true"]`)||t.metaKey||t.ctrlKey||t.altKey||((t.code===`KeyF`?`f`:t.key.toLowerCase())===`f`?(t.preventDefault(),a()):t.key===`Escape`&&n&&!e&&(t.preventDefault(),i()))}
3return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[n,e,a,i]),{isFullscreen:e,isFocused:n,toggle:a,exit:i}}var gt=(0,V.memo)(function({open:e,onClose:t,onConfirmNewGame:n,confirmRestoreFocusId:r,mode:i=`playing`}){let a=S(),o=i===`won`;return(0,U.jsxs)(B,{open:e,onClose:t,overlayClassName:`logo-modal-overlay`,contentClassName:`logo-modal-content`,ariaLabelledBy:`logo-modal-title`,children:[(0,U.jsx)(`button`,{type:`button`,className:`logo-modal-close`,onClick:t,"aria-label":a.ui.game.close,title:a.ui.game.close,children:`×`}),(0,U.jsx)(`h2`,{id:`logo-modal-title`,className:`logo-modal-title`,children:o?a.ui.game.winTitle:a.ui.game.logoModalTitle}),!o&&(0,U.jsx)(`p`,{className:`logo-modal-body`,children:a.ui.game.logoModalBody}),(0,U.jsx)(`div`,{className:`logo-modal-actions`,children:o?(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Oe,{variant:`primary`,size:`lg`,className:`w-full`,onClick:n,"data-win-celebration-exit":!0,"data-modal-restore-focus":r,"data-modal-initial-focus":!0,children:a.ui.newGame})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Oe,{variant:`primary`,size:`lg`,className:`w-full`,onClick:n,"data-win-celebration-exit":!0,"data-modal-restore-focus":r,"data-modal-initial-focus":!0,children:a.ui.game.logoModalStartNew}),(0,U.jsx)(Oe,{variant:`secondary`,size:`lg`,className:`w-full`,onClick:t,children:a.ui.game.logoModalContinue})]})})]})}),_t=new Set([`solitaire`,`spider`,`daily`,`winrates`]),vt=new Set([`solitaire`,`spider`,`freecell`,`daily`,`winrates`]),yt=(0,V.memo)(function({active:e,hrefs:t,identity:n}){let r=S(),i=Y(),a=i===`classic`,o=r.ui.gameSwitcher?.solitaire??x.gameSwitcher.solitaire,c=(r.ui.spider??x.spider).title,l=r.ui.gameSwitcher?.more??`More`,u=!a&&document.documentElement.lang.toLowerCase()===`en`?`More games`:l,d=r.ui.gameSwitcher?.ariaLabel??`Games`,f=r.ui.gameSwitcher?.freecell??x.gameSwitcher.freecell,p=n.label,[m,h]=(0,V.useState)(!1),[g,_]=(0,V.useState)(!1),v=(0,V.useRef)(null),y=(0,V.useRef)(null),b=(0,V.useRef)(null),C=(0,V.useRef)(null),w=(0,V.useMemo)(()=>{let e=a?_t:vt,t=[];for(let n of document.querySelectorAll(`.ps-catalog .ps-catalog-card[data-game-key]`)){let r=n.dataset.gameKey;if(!r||e.has(r))continue;let i=n.querySelector(`a`);if(!i)continue;let a=i.getAttribute(`href`),o=n.dataset.gameSwitcherLabel||i.textContent?.trim();a&&o&&t.push({key:r,href:a,label:o})}return t},[a]);(0,V.useEffect)(()=>{if(!m&&!g)return;let e=()=>{h(!1),_(!1)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[m,g]),(0,V.useEffect)(()=>{h(!1),_(!1)},[i]),(0,V.useEffect)(()=>{if(!m&&!g)return;let e=e=>{if(e.key!==`Escape`)return;e.preventDefault(),e.stopPropagation();let t=m?b.current:C.current;h(!1),_(!1),requestAnimationFrame(()=>t?.focus())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m,g]);let T=(0,V.useCallback)(e=>{v.current&&!v.current.contains(e.relatedTarget)&&h(!1)},[]),E=(0,V.useCallback)(e=>{y.current&&!y.current.contains(e.relatedTarget)&&_(!1)},[]),D=[{key:`solitaire`,label:o,cta:`solitaire_open`,href:t.solitaire},{key:`spider`,label:c,cta:`spider_open`,href:t.spider},...a?[]:[{key:`freecell`,label:f,cta:`freecell_open`,href:t.freecell}]];return(0,U.jsxs)(`nav`,{className:`game-switcher`,"aria-label":d,children:[D.filter(t=>t.key===e||t.href).map(t=>t.key===e?(0,U.jsx)(`span`,{className:`game-switcher-chip game-switcher-chip-active`,"aria-current":`page`,children:n.label},t.key):(0,U.jsx)(`a`,{href:s(t.href),className:`game-switcher-chip`,"data-cta-id":t.cta,"data-cta-location":`game_switcher`,children:t.label},t.key)),w.length>0&&(0,U.jsxs)(`div`,{className:`game-switcher-more`,ref:v,onBlur:T,children:[(0,U.jsxs)(`button`,{ref:b,type:`button`,className:`game-switcher-chip game-switcher-more-btn`,onClick:()=>h(e=>!e),"aria-expanded":m,"aria-haspopup":`menu`,"data-cta-id":`more_games_open`,"data-cta-location":`game_switcher`,children:[u,` ▾`]}),m&&(0,H.createPortal)((0,U.jsx)(`div`,{className:`game-control-menu-backdrop`,onClick:()=>h(!1),"aria-hidden":`true`}),document.body),m&&(0,U.jsxs)(`div`,{className:`game-control-menu game-switcher-menu`,role:`menu`,children:[w.map(e=>(0,U.jsx)(`a`,{href:s(e.href),className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>h(!1),"data-cta-id":`${e.key}_open`,"data-cta-location":`game_switcher_more`,children:e.label},e.key)),(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`a`,{href:`#games`,className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>h(!1),"data-cta-id":`all_games_open`,"data-cta-location":`game_switcher_more`,children:r.ui.game.allGames??`All games`})]})]}),(0,U.jsxs)(`div`,{className:`game-switcher-mobile`,ref:y,onBlur:E,children:[(0,U.jsxs)(`button`,{ref:C,type:`button`,className:`game-switcher-chip game-switcher-mobile-btn`,onClick:()=>_(e=>!e),"aria-expanded":g,"aria-haspopup":`menu`,"data-cta-id":`mobile_games_open`,"data-cta-location":`game_switcher_mobile`,children:[(0,U.jsx)(`span`,{className:`game-switcher-mobile-label-generic`,children:i===`bliss`?u:d}),(0,U.jsx)(`span`,{className:`game-switcher-mobile-label-current`,children:i===`bliss`?u:p}),i===`compact`?(0,U.jsx)(`svg`,{className:`game-switcher-chevron`,width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`m2 4 4 4 4-4`})}):(0,U.jsx)(`span`,{"aria-hidden":`true`,children:` ▾`})]}),g&&(0,H.createPortal)((0,U.jsx)(`div`,{className:`game-control-menu-backdrop`,onClick:()=>_(!1),"aria-hidden":`true`}),document.body),g&&(0,U.jsxs)(`div`,{className:`game-control-menu game-switcher-menu game-switcher-mobile-menu`,role:`menu`,children:[D.filter(t=>t.key===e||t.href).map(t=>t.key===e?(0,U.jsx)(`span`,{className:`game-menu-item game-menu-status`,role:`menuitem`,"aria-current":`page`,children:n.label},t.key):(0,U.jsx)(`a`,{href:s(t.href),className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>_(!1),"data-cta-id":t.cta,"data-cta-location":`game_switcher_mobile`,children:t.label},t.key)),w.map(e=>(0,U.jsx)(`a`,{href:s(e.href),className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>_(!1),"data-cta-id":`${e.key}_open`,"data-cta-location":`game_switcher_mobile`,children:e.label},e.key)),(0,U.jsx)(`div`,{className:`game-menu-divider`,role:`separator`}),(0,U.jsx)(`a`,{href:`#games`,className:`game-menu-item game-menu-link`,role:`menuitem`,onClick:()=>_(!1),"data-cta-id":`all_games_open`,"data-cta-location":`game_switcher_mobile`,children:r.ui.game.allGames??`All games`})]})]})]})}),bt=(0,V.memo)(function({active:e,hrefs:t,identity:n,showCurrentGameLabel:r=!1}){return Y()===`classic`?(0,U.jsxs)(`div`,{className:`classic-header-end${r?` classic-header-end-current-game`:``}`,"data-ps-account-header-container":`true`,children:[(0,U.jsx)(yt,{active:e,hrefs:t,identity:n}),o.accountsEnabled&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`classic-header-auth-actions`,"data-ps-account-header-access":`true`,hidden:!0,children:(0,U.jsx)(`a`,{href:s(`/account`),className:`classic-header-auth-link`,"data-ps-account-action":`login`,"data-cta-id":`account_login_open`,"data-cta-location":`desktop_header`,children:`Log In`})}),(0,U.jsxs)(`a`,{href:s(`/account`),className:`classic-header-account`,"aria-label":`Account`,"data-
3ps-account-action":`account`,"data-ps-account-header-entry":`true`,"data-cta-id":`account_open`,"data-cta-location":`desktop_header`,children:[(0,U.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`circle`,{cx:`8`,cy:`5`,r:`2.5`}),(0,U.jsx)(`path`,{d:`M3.5 13c.5-2.2 2.1-3.4 4.5-3.4s4 1.2 4.5 3.4`})]}),(0,U.jsx)(`span`,{"data-ps-account-label":!0,children:`Account`})]})]})]}):null}),xt=(0,V.memo)(function(){let e=Y(),t=(0,V.useId)();return e!==`bliss`||!o.accountsEnabled?null:(0,U.jsxs)(`nav`,{className:`bliss-global-nav`,"aria-labelledby":t,"data-ps-account-header-container":`true`,children:[(0,U.jsx)(`span`,{id:t,className:`sr-only`,children:(0,U.jsx)(`span`,{"data-ps-account-nav-label":!0,children:`Account`})}),(0,U.jsx)(`div`,{className:`bliss-header-auth-actions`,"data-ps-account-header-access":`true`,hidden:!0,children:(0,U.jsx)(`a`,{href:s(`/account`),className:`bliss-header-link bliss-header-auth-link`,"data-ps-account-action":`login`,"data-cta-id":`account_login_open`,"data-cta-location":`desktop_header`,children:`Log In`})}),(0,U.jsxs)(`a`,{href:s(`/account`),className:`bliss-header-link bliss-header-account`,"data-ps-account-action":`account`,"data-ps-account-header-entry":`true`,"data-cta-id":`account_open`,"data-cta-location":`desktop_header`,children:[(0,U.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`circle`,{cx:`8`,cy:`5`,r:`2.5`}),(0,U.jsx)(`path`,{d:`M3.5 13c.5-2.2 2.1-3.4 4.5-3.4s4 1.2 4.5 3.4`})]}),(0,U.jsx)(`span`,{"data-ps-account-label":!0,children:`Account`})]})]})}),St=(0,V.memo)(function({identity:e,mobileOnly:t=!1}){return(0,U.jsxs)(`span`,{className:`game-identity`,"data-mobile-only":t||void 0,"aria-current":`page`,title:e.label,children:[(0,U.jsx)(`span`,{className:`game-identity-suit`,"aria-hidden":`true`,children:e.suit}),(0,U.jsx)(`span`,{className:`game-identity-label`,children:e.label})]})}),Ct=(0,V.memo)(function({open:e,onClose:n,showDrawMode:r=!0,activeDrawMode:i,onDrawModeChange:l,spiderCurrentSelection:d}){let f=I(),p=S(),m=Y(),{settings:h,effectiveReducedMotion:g,updateSetting:_,updateSpider:v,previewCustomTheme:y,commitCustomTheme:x}=z(),[C,w]=(0,V.useState)(0),[E,D]=(0,V.useState)(()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches);(0,V.useEffect)(()=>{let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`);if(!e?.addEventListener)return;let t=()=>D(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let O=(0,V.useRef)(null),k=(0,V.useCallback)(()=>{let e=O.current;e&&(O.current=null,x(e.palette,e.key))},[x]),A=(0,V.useCallback)((e,t)=>{let n={...h.customTheme,[e]:t};O.current={palette:n,key:e},y(n)},[y,h.customTheme]);return(0,V.useEffect)(()=>{e||k()},[e,k]),(0,U.jsxs)(B,{open:e,onClose:n,overlayClassName:`settings-backdrop`,contentClassName:`settings-panel${m===`classic`?` settings-panel-classic`:``}`,ariaLabel:p.ui.settings,children:[(0,U.jsxs)(`div`,{className:`settings-header`,children:[(0,U.jsx)(`h2`,{className:`settings-title`,children:p.ui.settings}),(0,U.jsx)(`button`,{className:`settings-close`,onClick:n,"aria-label":p.ui.game.closeSettingsAria,"data-modal-initial-focus":!0,"data-cta-id":`close_settings`,"data-cta-location":`settings_modal`,children:`×`})]}),(0,U.jsxs)(`div`,{className:`settings-body`,children:[(0,U.jsxs)(wt,{title:p.ui.accessibility,children:[(0,U.jsx)($,{label:p.ui.game.settingsReducedMotion,description:p.ui.game.settingsReducedMotionDesc,checked:g,onChange:e=>_(`reducedMotion`,e),disabled:E}),(0,U.jsx)($,{label:p.ui.game.settingsStrongerHighlights,description:p.ui.game.settingsStrongerHighlightsDesc,checked:h.strongHighlight,onChange:e=>_(`strongHighlight`,e)}),(0,U.jsx)($,{label:p.ui.game.settingsHighContrast,description:p.ui.game.settingsHighContrastDesc,checked:h.highContrast,onChange:e=>_(`highContrast`,e)}),(0,U.jsxs)(`a`,{className:`settings-accessibility-link`,href:s(b(`accessibility`,o.variant)),hrefLang:o.defaultLocale,"data-cta-id":`accessibility_open`,"data-cta-location":`settings`,children:[(0,U.jsxs)(`span`,{children:[p.ui.accessibility,!a&&(0,U.jsx)(`span`,{className:`settings-accessibility-language`,lang:`en`,dir:`ltr`,children:` (English)`})]}),(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]})]}),(0,U.jsxs)(wt,{title:p.ui.game.settingsSectionAppearance,children:[(0,U.jsxs)(`fieldset`,{className:`settings-theme-fieldset`,children:[(0,U.jsx)(`legend`,{className:`settings-row-label`,children:p.ui.game.settingsTheme}),(0,U.jsxs)(`div`,{className:`settings-theme-grid`,children:[t.map(e=>(0,U.jsxs)(`label`,{className:`settings-theme-option ${h.theme===e.id?`active`:``}`,children:[(0,U.jsx)(`input`,{className:`sr-only settings-theme-radio`,type:`radio`,name:`settings-theme`,value:e.id,checked:h.theme===e.id,onChange:()=>_(`theme`,e.id)}),(0,U.jsxs)(`span`,{className:`settings-theme-preview`,style:c({"--ps-theme-table":e.preview,"--ps-theme-rail":e.previewRail,"--ps-theme-card":e.previewCard,"--ps-theme-accent":e.previewAccent}),"aria-hidden":`true`,children:[(0,U.jsx)(`span`,{className:`settings-theme-preview-card`}),(0,U.jsx)(`span`,{className:`settings-theme-preview-accent`})]}),(0,U.jsx)(`span`,{className:`settings-theme-name`,children:p.ui.game.settingsThemeNames?.[e.i
3d]??e.label}),(0,U.jsx)(`span`,{className:`settings-theme-check`,"aria-hidden":`true`,children:`✓`})]},e.id)),(0,U.jsxs)(`label`,{className:`settings-theme-option ${h.theme===`custom`?`active`:``}`,children:[(0,U.jsx)(`input`,{className:`sr-only settings-theme-radio`,type:`radio`,name:`settings-theme`,value:`custom`,checked:h.theme===`custom`,onChange:()=>_(`theme`,`custom`)}),(0,U.jsxs)(`span`,{className:`settings-theme-preview settings-theme-preview-custom`,style:c({"--ps-theme-table":h.customTheme.table,"--ps-theme-rail":h.customTheme.hud,"--ps-theme-card":h.customTheme.cardBack,"--ps-theme-accent":h.customTheme.accent}),"aria-hidden":`true`,children:[(0,U.jsx)(`span`,{className:`settings-theme-preview-card`}),(0,U.jsx)(`span`,{className:`settings-theme-preview-accent`})]}),(0,U.jsx)(`span`,{className:`settings-theme-name`,children:p.ui.game.settingsThemeCustom??`Custom`}),(0,U.jsx)(`span`,{className:`settings-theme-check`,"aria-hidden":`true`,children:`✓`})]})]})]}),h.theme===`custom`&&(0,U.jsxs)(`div`,{className:`settings-custom-colors`,children:[[[`table`,p.ui.game.settingsCustomTable??`Table`],[`background`,p.ui.game.settingsCustomBackground??`Backgroun
3d`],[`accent`,p.ui.game.settingsCustomButtons??`Buttons & highlights`],[`cardBack`,p.ui.game.settingsCustomCardBack??`Card back`],[`cardBackAccent`,p.ui.game.settingsCustomCardBackPattern??`Card back pattern`],[`hud`,p.ui.game.settingsCustomHud??`Menus & buttons`],[`slots`,p.ui.game.settingsCustomSlots??`Empty slots`]].map(([e,t])=>(0,U.jsxs)(`label`,{className:`settings-custom-color-row`,children:[(0,U.jsx)(`span`,{className:`settings-custom-color-label`,children:t}),(0,U.jsx)(`input`,{type:`color`,value:h.customTheme[e],onChange:t=>A(e,t.currentTarget.value),onBlur:k})]},e)),(0,U.jsx)(`button`,{type:`button`,className:`settings-custom-reset`,onClick:()=>{O.current=null,x({...u},`reset`),w(e=>e+1)},children:p.ui.game.settingsCustomReset??`Reset colors`})]},C),(0,U.jsx)(`div`,{className:`settings-row settings-row-card-size`,children:(0,U.jsx)(X,{location:`panel`,variant:`settings`})}),(0,U.jsx)(Tt,{label:p.ui.game.settingsTextSize,children:(0,U.jsx)(Et,{label:p.ui.game.settingsTextSize,value:h.textSize,options:[{value:`small`,label:p.ui.game.settingsTextSizeSmall},{value:`standard`,label:p.ui.game.settingsTextSizeStandard},{value:`large`,label:p.ui.game.settingsTextSizeLarge}],onChange:e=>_(`textSize`,e)})})]}),(0,U.jsxs)(wt,{title:p.ui.game.settingsSectionGameplay,children:[f&&r&&(0,U.jsx)(Tt,{label:p.ui.game.settingsDeckPosition,children:(0,U.jsx)(Et,{label:p.ui.game.settingsDeckPosition,value:h.mobileDeckSide,options:[{value:`left`,label:p.ui.game.settingsDeckLeft},{value:`right`,label:p.ui.game.settingsDeckRight}],onChange:e=>_(`mobileDeckSide`,e)})}),!f&&r&&i!==void 0&&l!==void 0&&(0,U.jsx)(Tt,{label:p.ui.game.settingsDrawMode,children:(0,U.jsx)(Et,{label:p.ui.game.settingsDrawMode,value:String(i),options:Se.map(e=>({value:String(e),label:String(e)})),onChange:e=>we(Number(e),l),ctaId:e=>`draw_${e}`,ctaLocation:`settings`})}),d&&(0,U.jsx)($,{label:p.ui.spider?.askBeforeNewGame??`Show Spider difficulty selection`,checked:h.spider.showDealPicker,onChange:e=>{v({...h.spider,showDealPicker:e,...e?{}:{rememberedSuitMode:d.suitMode,dealMode:d.dealMode}})}}),(0,U.jsx)($,{label:p.ui.game.settingsTapToMove??`1-Tap Move`,description:p.ui.game.settingsTapToMoveDesc??`Tap a card to send it to the best spot automatically`,checked:h.tapToMove,onChange:e=>_(`tapToMove`,e)}),(0,U.jsx)($,{label:p.ui.game.settingsConfirmRestart,description:p.ui.game.settingsConfirmRestartDesc,checked:h.confirmRestart,onChange:e=>_(`confirmRestart`,e)}),(0,U.jsx)($,{label:p.ui.game.settingsShowTimer,checked:h.showTimer,onChange:e=>_(`showTimer`,e)}),(0,U.jsx)($,{label:p.ui.game.settingsShowMoveCount,checked:h.showMoves,onChange:e=>_(`showMoves`,e)}),(0,U.jsx)($,{label:p.ui.game.settingsSound??`Sound effects`,description:p.ui.game.settingsSoundDesc??`A soft click when a card lands`,checked:h.soundEnabled,onChange:e=>_(`soundEnabled`,e)})]}),!a&&(0,U.jsx)(`a`,{className:`settings-whats-new-link`,href:s(T()),"data-cta-id":`whats_new_open`,"data-cta-location":`settings`,children:p.ui.whatsNew?.linkLabel??`What's new`})]})]})});function wt({title:e,children:t}){return(0,U.jsxs)(`div`,{className:`settings-section`,children:[(0,U.jsx)(`h3`,{className:`settings-section-title`,children:e}),(0,U.jsx)(`div`,{className:`settings-section-items`,children:t})]})}function Tt({label:e,children:t}){return(0,U.jsxs)(`div`,{className:`settings-row`,children:[(0,U.jsx)(`span`,{className:`settings-row-label`,children:e}),t]})}function $({label:e,description:t,checked:n,onChange:r,disabled:i=!1}){return(0,U.jsxs)(`label`,{className:`settings-toggle-row`,children:[(0,U.jsxs)(`div`,{className:`settings-toggle-text`,children:[(0,U.jsx)(`span`,{className:`settings-toggle-label`,children:e}),t&&(0,U.jsx)(`span`,{className:`settings-toggle-desc`,children:t})]}),(0,U.jsx)(`button`,{role:`switch`,"aria-checked":n,className:`settings-toggle ${n?`active`:``}`,onClick:()=>{i||r(!n)},disabled:i,children:(0,U.jsx)(`span`,{className:`settings-toggle-thumb`})})]})}function Et({value:e,options:t,onChange:n,label:r,ctaId:i,ctaLocation:a}){return(0,U.jsx)(`div`,{className:`settings-segmented`,role:`radiogroup`,"aria-label":r,children:t.map(t=>(0,U.jsx)(`button`,{role:`radio`,"aria-checked":e===t.value,className:`settings-segment ${e===t.value?`active`:``}`,onClick:()=>n(t.value),"data-cta-id":i?.(t.value),"data-cta-location":i?a:void 0,children:t.label},t.value))})}function Dt({onClose:e,game:t,variant:n,showClose:r=!0,hintsAvailable:i=!0}){let a=S(),o=a.ui.klondikeRules.shortcuts,s={...x.spiderRules,...a.ui.spiderRules??{}},c=`keyboard-shortcuts-title-${(0,V.useId)().replace(/:/gu,``)}`,l=n===`desktop`?`aside`:`section`,u=t!==`klondike`&&t!==`spider`&&t!==`freecell`?a.ui.additionalGameRules[t].dealAction:void 0,d=t===`spider`?s.dealRow:t===`klondike`?o.drawStock:u,f=[...d?[{id:`Space`,key:o.spaceKeyLabel,action:d}]:[],...(t===`scorpion`||t===`wasp`)&&d?[{id:`D`,key:`D`,action:d}]:[],...i?[{id:`H`,key:`H`,action:o.showHint}]:[],{id:`U`,key:`U`,action:o.undo},{id:`R`,key:`R`,action:o.restart},{id:`F`,key:`F`,action:o.toggleFocused}];return(0,U.jsxs)(l,{className:n===`desktop`?`keyboard-shortcuts-card`:`rules-drawer-shortcuts`,"aria-labelledby":c,"data-shortcuts-card":n,children:[(0,U.jsxs)(`header`,{className:`ke
3yboard-shortcuts-header`,children:[(0,U.jsxs)(`div`,{className:`keyboard-shortcuts-heading`,children:[(0,U.jsx)(`p`,{className:`keyboard-shortcuts-eyebrow`,children:o.eyebrow}),(0,U.jsx)(`h3`,{id:c,children:o.title})]}),r&&(0,U.jsx)(`button`,{type:`button`,className:`keyboard-shortcuts-close`,onClick:()=>{e(),window.requestAnimationFrame(()=>{document.querySelector(`.rules-drawer-close`)?.focus()})},"aria-label":o.hideAria,children:(0,U.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`})})})]}),(0,U.jsx)(`dl`,{className:`keyboard-shortcuts-list`,children:f.map(e=>(0,U.jsxs)(`div`,{className:`keyboard-shortcut-row`,"data-shortcut-key":e.id,children:[(0,U.jsx)(`dt`,{children:(0,U.jsx)(`kbd`,{dir:`ltr`,children:e.key})}),(0,U.jsx)(`dd`,{children:e.action})]},e.id))})]})}function Ot({onClose:e,game:t,hintsAvailable:n}){return(0,U.jsx)(Dt,{onClose:e,game:t,variant:`desktop`,hintsAvailable:n})}function kt({onClose:e,game:t,showClose:n,hintsAvailable:r}){return(0,U.jsx)(Dt,{onClose:e,game:t,variant:`tray`,showClose:n,hintsAvailable:r})}var At={anySuitLabel:`A single card stacks on any suit — 9♠ on 10♥ is fine`,sameSuitRunLabel:`A same-suit run moves as one group`},jt={altColorsLabel:`Descending rank, alternating colors — a red 6 on a black 7`,sameColorLabel:`Same color — the move is refused`,emptyAnyLabel:`Any card may take an empty column — no King required`},Mt={titleText:`One drag, three legal steps`,caption:`A supermove is a shortcut for a legal sequence of one-card moves: park the top cards, move the base, then rebuild the run.`};function Nt(e,t){let n=e.ui.klondikeRules;if(t.game===`klondike`){let r=t.drawMode===1?e.ui.draw1:t.drawMode===2?e.ui.draw2:e.ui.draw3,i=t.drawMode===1?n.stock.draw1:t.drawMode===2?n.stock.draw2:n.stock.draw3;return{kicker:r,title:n.title,closeRulesAria:n.closeRulesAria,goal:n.goal,sections:[{heading:n.foundations.heading,items:[n.foundations.startWithAce,n.foundations.buildBySuit]},{heading:n.tableau.heading,items:[n.tableau.buildAlternating,n.tableau.moveRun,n.tableau.flipExposed]},{heading:n.stock.heading,items:[i,n.stock.recycle]},{heading:n.waste.heading,body:n.waste.body},{heading:n.emptyColumns.heading,body:n.emptyColumns.body}],hint:t.hintsAvailable===!1?void 0:n.hint}}let r={...jt,...e.ui.articleFigures?.freecellMoves??{}};if(t.game===`spider`){let i={...x.spider,...e.ui.spider??{}},a={...x.spiderBoardDiagram,...e.ui.spiderBoardDiagram??{}},o={...At,...e.ui.articleFigures?.spiderMoves??{}},s={...x.spiderRules,...e.ui.spiderRules??{}},c=t.suitMode===1?i.oneSuit:t.suitMode===2?i.twoSuits:i.fourSuits;return{kicker:`${n.menuLabel} · ${c}`,title:i.title,closeRulesAria:n.closeRulesAria,goal:{heading:n.goal.heading,body:s.goalBody},sections:[{heading:n.tableau.heading,items:[o.anySuitLabel,o.sameSuitRunLabel,s.mixedSequenceMove,n.tableau.flipExposed]},{heading:n.emptyColumns.heading,body:r.emptyAnyLabel},{heading:n.stock.heading,items:[a.stockLabel,s.dealRow]}]}}if(t.game===`freecell`){let i={...x.freecellBoardDiagram,...e.ui.freecellBoardDiagram??{}},a={...Mt,...e.ui.articleFigures?.supermove??{}};return{kicker:`${n.menuLabel} · ${e.ui.freecell.dealNumberPrefix} #${t.dealNumber}`,title:e.ui.freecell.title,closeRulesAria:n.closeRulesAria,goal:n.goal,sections:[{heading:i.titleText,body:i.descText},{heading:n.foundations.heading,items:[n.foundations.startWithAce,n.foundations.buildBySuit]},{heading:n.tableau.heading,items:[r.altColorsLabel,r.sameColorLabel,r.emptyAnyLabel]},{heading:a.titleText,items:[i.cellsLabel,a.caption]}]}}let i=e.ui.additionalGameRules[t.game];return{kicker:n.menuLabel,title:i.title,closeRulesAria:n.closeRulesAria,goal:{heading:n.goal.heading,body:i.goalBody},sections:i.sections.map(e=>({heading:e.heading,items:[...e.items]})),hint:{heading:n.hint.heading,body:i.hintBody}}}function Pt(){window.requestAnimationFrame(()=>{Array.from(document.querySelectorAll(`[data-cta-id="game_menu_open"]`)).find(e=>e.getClientRects().length>0)?.focus()})}function Ft(e){let{open:t,onClose:n,onCloseShortcuts:r,showShortcuts:i,presentation:a}=e,o=S(),s=Nt(o,e),c=`rules-drawer-title-${(0,V.useId)().replace(/:/gu,``)}`,l=(0,V.useRef)(null);if((0,V.useEffect)(()=>{!t||a!==`rail`||l.current?.focus({preventScroll:!0})},[t,a]),!t)return null;let u=(e=!0)=>{n(),e&&Pt()},d=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`header`,{className:`rules-drawer-header`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`p`,{className:`rules-drawer-kicker`,children:s.kicker}),(0,U.jsx)(`h2`,{className:`rules-drawer-title`,id:c,children:s.title})]}),(0,U.jsx)(`button`,{type:`button`,className:`rules-drawer-close`,onClick:e=>u(a===`fullscreen`||e.detail===0),"aria-label":s.closeRulesAria,"data-modal-initial-focus":a===`fullscreen`?!0:void 0,children:(0,U.jsx)(`svg`,{viewB
3ox:`0 0 24 24`,"aria-hidden":`true`,children:(0,U.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`})})})]}),(0,U.jsxs)(`div`,{className:`rules-drawer-body`,children:[i&&(0,U.jsx)(kt,{onClose:r,game:e.game,showClose:a===`rail`,hintsAvailable:e.hintsAvailable}),(0,U.jsxs)(`section`,{className:`rules-drawer-goal`,children:[(0,U.jsx)(`h3`,{children:s.goal.heading}),(0,U.jsx)(`p`,{children:s.goal.body})]}),s.sections.map((e,t)=>(0,U.jsxs)(`section`,{className:`rules-drawer-section`,children:[(0,U.jsxs)(`h3`,{children:[(0,U.jsx)(`span`,{className:`rules-drawer-index`,"aria-hidden":`true`,children:String(t+1).padStart(2,`0`)}),(0,U.jsx)(`span`,{children:e.heading})]}),e.items&&(0,U.jsx)(`ul`,{children:e.items.map(e=>(0,U.jsx)(`li`,{children:e},e))}),e.body&&(0,U.jsx)(`p`,{children:e.body})]},`${t}-${e.heading}`)),s.hint&&(0,U.jsxs)(`section`,{className:`rules-drawer-tip`,"aria-label":s.hint.heading,children:[(0,U.jsx)(`h3`,{children:s.hint.heading}),(0,U.jsx)(`p`,{children:s.hint.body})]}),a===`fullscreen`&&(0,U.jsx)(`button`,{type:`button`,className:`rules-drawer-bottom-close`,onClick:()=>u(),children:o.ui.backToGame})]})]});return a===`fullscreen`?(0,U.jsx)(B,{open:!0,onClose:()=>u(),overlayClassName:`rules-drawer-overlay`,contentClassName:`rules-drawer-panel rules-drawer-panel-fullscreen`,closeOnBackdrop:!1,ariaLabelledBy:c,children:d}):(0,U.jsx)(`aside`,{ref:l,className:`rules-drawer-panel`,"aria-labelledby":c,"data-rules-rail":!0,tabIndex:-1,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),u())},children:d})}var It=(0,V.memo)(function({href:e,active:t=!1,iconOnly:n=!1,onActivate:r}){let i=S(),a=i.ui.daily?.switcherLabel??`Daily`,o=i.ui.daily?.unplayedDotAria??`Today's deal not played yet`,[{streak:c,unplayed:l},u]=(0,V.useState)({streak:0,unplayed:!t});(0,V.useEffect)(()=>{let e=!0,n=Date.now();return Promise.all([y(),_(n)]).then(([r,i])=>{if(!e)return;let a=g(n),o=r?.lastWonDate===a||r?.lastWonDate===v(a);u({streak:o&&r?r.winStreak:0,unplayed:!t&&!i})}),()=>{e=!1}},[t]);let d=(0,U.jsx)(U.Fragment,{children:n?(0,U.jsxs)(`svg`,{className:`daily-chip-icon`,width:`17`,height:`17`,viewBox:`0 0 18 18`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,U.jsx)(`rect`,{x:`2.25`,y:`3.5`,width:`13.5`,height:`12`,rx:`2`}),(0,U.jsx)(`path`,{d:`M5.5 1.75v3.5M12.5 1.75v3.5M2.25 7h13.5`}),(0,U.jsx)(`path`,{d:`M5.5 10h.01M9 10h.01M12.5 10h.01M5.5 13h.01M9 13h.01`})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`daily-chip-label`,children:a}),c>0&&(0,U.jsxs)(`span`,{className:`daily-chip-count`,"aria-hidden":`true`,children:[` `,`· `,c]}),l&&(0,U.jsx)(`span`,{className:`daily-chip-dot`,"aria-hidden":`true`})]})});return t&&r?(0,U.jsx)(`button`,{type:`button`,className:`daily-chip daily-chip-active daily-chip-button`,"aria-current":`page`,"aria-haspopup":`dialog`,"aria-label":`${a} — open dates and standings`,title:n?a:void 0,onClick:r,children:d}):t||!e?(0,U.jsx)(`span`,{className:`daily-chip daily-chip-active`,"aria-current":`page`,role:n?`img`:void 0,"aria-label":n?a:void 0,title:n?a:void 0,children:d}):(0,U.jsx)(`a`,{href:s(e),className:`daily-chip`,"data-cta-id":`daily_open`,"data-cta-location":`header_daily_chip`,"aria-label":l?`${a} — ${o}`:n?a:void 0,title:n?a:void 0,children:d})});export{st as BlissBottomBar,xt as BlissGlobalNav,et as BlissHeaderActions,tt as BlissHeaderUndoButton,X as CardSizeControl,bt as ClassicHeaderEnd,ot as CompactCardSizeControl,It as DailyChip,Qe as FeedbackProvider,St as GameIdentity,lt as GameMenu,Ue as GameStatus,yt as GameSwitcher,Ot as KeyboardShortcutsCard,gt as LogoInterceptModal,je as PhoneAdSlot,Ft as RulesDrawer,Ct as SettingsPanel,We as SoundToggle,rt as ThemeQuickSwitch,dt as WinRecordPlaque,Me as controlAccessibleName,Q as formatTime,Ve as promoteTimerSnapshot,ht as useFullscreen,ft as useGamePause,Ae as useOriginalPhoneLayout,He as useTimer,ut as useWinRecordPlaque};

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.