1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{A as t,D as n,E as r,Gt as i,Jt as a,P as o,Tt as s,Y as c,_n as l,ct as u,d as ee,jt as te,n as ne,t as re}from"./icons-DWDawIq8.js";import{i as d,t as f}from"./useStore-5zFcJiHM.js";import{a as ie,f as p,i as ae,t as m}from"./router-compat-Dwk4eIMW.js";import{t as h}from"./jsx-runtime-B74pBk57.js";import{t as g}from"./useQuery-6ua-v8DG.js";import{d as _}from"./site-BE111Axk.js";import{t as v}from"./preload-helper-CxFQXtKk.js";import{t as y}from"./button-CuwN5nLq.js";import{t as b}from"./utils-DojpP95n.js";import{t as x}from"./buildInfo-g1QvHW_z.js";import{i as oe,o as S}from"./appShell-CVrY4tb3.js";import{o as C,t as se}from"./useScrollContainer-BdsUF2YO.js";import{t as w}from"./useHydrated-Dzmrzj6w.js";import{a as ce,i as T,n as E,r as D}from"./botDetection-BPthuPUv.js";import{d as O,l as k,r as le}from"./analytics-BvSiSZ9x.js";import{r as ue}from"./EntitlementsStateContext-CM6kFgiM.js";import{t as de}from"./useLayout-CaY0QoWg.js";import{t as A}from"./haptics-9a4_W3Pe.js";import{t as fe}from"./Logo-BZ3XxJIc.js";import{i as pe,r as j}from"./useSectionConfig-CHeK-1R-.js";import{n as me}from"./contentQueryContracts-BhgqicQm.js";import{t as M}from"./trustedTypes-Cwf3sUqU.js";import{n as he}from"./domGuard-DZRHV4lM.js";function ge(e){let t=d({warn:e?.router===void 0}),n=e?.router||t;return f(n.stores.__store,p(e,n))}var N=e(l(),1),P=h(),_e=(0,N.createContext)(null),F=(0,N.forwardRef)(function({children:e},t){let[n,r]=(0,N.useState)({pageType:`other`}),i=e=>{r(t=>({...t,...e}))};return(0,P.jsx)(_e.Provider,{value:{...n,setPageContext:i},children:e})});F.displayName=`PageProvider`;function ve(){return(0,N.useContext)(_e)||{pageType:`other`,setPageContext:()=>{}}}function ye(e){let{setPageContext:t}=ve();(0,N.useEffect)(()=>(t(e),()=>{t({pageType:`other`,postSlug:void 0,categories:void 0,tags:void 0})}),[e.pageType,e.postSlug,JSON.stringify(e.categories),JSON.stringify(e.tags)])}var be=null,I=null;function xe(){typeof document>`u`||(I=document.querySelector(`[data-article-content]`),be=I?document.querySelector(`article h1`):null)}function L(){if(!I)return null;let e=I.innerHTML;return e.replace(/<[^>]*>/g,``).trim().length<200?null:{title:be?.textContent?.trim()??``,html:e}}var Se=[`failed to fetch dynamically imported module`,`error loading dynamically imported module`,`importing a module script failed`,`failed to fetch module script`,`loading chunk`,`loading css chunk`,`chunkloaderror`,`unable to preload css`];function R(e){return e.replace(/(https?:\/\/[^\s?#)'"]+|\/[A-Za-z0-9_\-./]+)[?#][^\s)'"]*/g,`$1`).replace(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi,`[email]`)}function Ce(e){try{let t=new WeakSet,n=JSON.stringify(e,(e,n)=>{if(typeof n==`object`&&n){if(t.has(n))return`[circular]`;t.add(n)}return n});if(n&&n!==`{}`)return n}catch{}let t=e&&typeof e==`object`?Object.getOwnPropertyNames(e).slice(0,8):[];return t.length?`object with keys: ${t.join(`, `)}`:`thrown value with no message (empty object)`}function z(e){let t,n,r;if(e instanceof Error){t=e.name||`Error`,n=e.message||`(no message)`,r=e.stack;let i=e.cause;if(i!=null){let e=z(i);n+=` | cause: ${e.name}: ${e.message}`}}else if(typeof Response<`u`&&e instanceof Response)t=`Response`,n=`Response ${e.status}${e.url?` at ${e.url}`:``}`;else if(typeof e==`string`)t=`string`,n=e;else if(e&&typeof e==`object`){let i=e;t=typeof i.name==`string`?i.name:typeof i.type==`string`?i.type:`object`,n=typeof i.message==`string`?i.message:typeof i.reason==`string`?i.reason:Ce(e),typeof i.stack==`string`&&(r=i.stack),typeof i.status==`number`&&(n+=` (status ${i.status})`)}else t=typeof e,n=String(e);n=R(n).slice(0,600);let i=`${t}: ${n}`.toLowerCase();return{name:t.slice(0,80),message:n,...r?{stack:R(r).slice(0,2e3)}:{},chunkLoadError:Se.some(e=>i.includes(e))}}var B=`/api/public/client-error`,we=`__igb_error_reports`,Te=5,V=0,Ee=new Set;function De(){try{return Number(window.sessionStorage.getItem(we)??`0`)||0}catch{return V}}function Oe(e){try{window.sessionStorage.setItem(we,String(e))}catch{}}function ke(e){try{if(typeof window>`u`||typeof navigator>`u`||/^(localhost|127\.)/.test(window.location.hostname))return!1;let t=`${String(e.name)}
1|${String(e.message)}|${String(e.boundary??e.source??``)}`;if(Ee.has(t))return!1;let n=Math.max(De(),V);if(n>=Te)return!1;Ee.add(t),V=n+1,Oe(n+1);let r=R(JSON.stringify(e)).slice(0,12e3);if(typeof navigator.sendBeacon==`function`)return navigator.sendBeacon(B,new Blob([r],{type:`application/json`}));if(typeof fetch==`function`)return fetch(B,{method:`POST`,body:r,headers:{"content-type":`application/json`},keepalive:!0}).catch(()=>{}),!0}catch{}return!1}var Ae=[[`grammarly`,`[data-gr-ext-installed],[data-new-gr-c-s-check-loaded],grammarly-desktop-integration,[data-gramm]`],[`darkreader`,`[data-darkreader-mode],[data-darkreader-scheme],style.darkreader,meta[name='darkreader']`],[`lastpass`,`[data-lastpass-icon-root],[data-lastpass-root]`],[`1password`,`com-1password-button,[data-1p-ignore]`],[`google-translate`,`.skiptranslate,#goog-gt-tt,font[style*='vertical-align: inherit']`],[`honey`,`#honeyContainer`],[`adblock-cosmetic`,`style[id^='cosmetic-'],#adblock-stylesheet`]];function je(e){for(let[t,n]of[[`Samsung Internet`,/SamsungBrowser\/(\d+)/],[`Edge`,/Edg(?:A|iOS)?\/(\d+)/],[`Opera`,/(?:OPR|OPiOS)\/(\d+)/],[`Firefox`,/(?:Firefox|FxiOS)\/(\d+)/],[`Chrome`,/(?:Chrome|CriOS)\/(\d+)/],[`Safari`,/Version\/(\d+).*Safari/]]){let r=e.match(n);if(r)return{browser:t,major:Number(r[1])||null}}return/AppleWebKit/.test(e)&&/Mobile/.test(e)?{browser:`iOS WebView`,major:null}:{browser:`other`,major:null}}function Me(e){return/iPhone|iPad|iPod/.test(e)?`iOS`:/Android/.test(e)?`Android`:/CrOS/.test(e)?`ChromeOS`:/Windows/.test(e)?`Windows`:/Mac OS X|Macintosh/.test(e)?`macOS`:/Linux/.test(e)?`Linux`:`other`}function H(e){let t=e.documentElement,n=(t.getAttribute(`lang`)??``).toLowerCase();return n&&!n.startsWith(`en`)?!0:/\btranslated-(ltr|rtl)\b/.test(t.className)}function Ne(e){let t=[];for(let[n,r]of Ae)try{e.querySelector(r)&&t.push(n)}catch{}let n=[...Array.from(e.documentElement.attributes),...Array.from(e.body?.attributes??[])].map(e=>e.name);return n.some(e=>e.startsWith(`data-gr-`))&&(t.includes(`grammarly`)||t.push(`grammarly`)),n.some(e=>e.startsWith(`data-darkreader`))&&(t.includes(`darkreader`)||t.push(`darkreader`)),t}function Pe(){if(typeof window>`u`||typeof navigator>`u`)return null;try{let e=navigator.userAgent||``,{browser:t,major:n}=je(e),r=null;try{r=Intl.DateTimeFormat().resolvedOptions().timeZone??null}catch{}return{browser:t,browserMajor:n,os:Me(e),mobile:/Mobi|Android|iPhone|iPod/.test(e),language:typeof navigator.language==`string`?navigator.language.slice(0,20):null,timeZone:r?r.slice(0,60):null,translated:H(document),extensionMarkers:Ne(document)}}catch{return null}}var Fe=`__igb_automatic_recovery_used`,Ie=[`WP_QUERY_CACHE`,`WP_QUERY_CACHE_V2`,`WP_QUERY_CACHE_V3`],Le=2e4,Re=8,ze=!1,Be=!1,Ve=typeof performance<`u`?performance.now():0,U=[];function He(){typeof window>`u`||W()}var Ue=[`_recovered`,`_cb`];function W(){if(typeof window>`u`)return;let e=new URL(window.location.href),t=!1;for(let n of Ue)e.searchParams.has(n)&&(e.searchParams.delete(n),t=!0);t&&window.history.replaceState(window.history.state,``,e.toString())}function We(){return`${Fe}:${window.location.pathname}`}var Ge=[`failed to fetch dynamically imported module`,`error loading dynamically imported module`,`loading chunk`,`loading css chunk`,`chunkloaderror`,`failed to fetch module script`,`importing a module script failed`,`unexpected token '<'`,`unexpected token <`,`is not valid javascript`,`mime type`];function Ke(e){if(e instanceof Error)return`${e.name}: ${e.message}`.toLowerCase();let t=z(e);return`${t.name}: ${t.message}`.toLowerCase()}function G(e){let t=Ke(e);return Ge.some(e=>t.includes(e))}function qe(e){return e===`vapid-key-cache`||e.startsWith(`igb-`)}function Je(e){e&&U[U.length-1]!==e&&(U.push(e),U.length>Re&&U.shift())}function Ye(){return[...U]}function Xe(){return typeof document>`u`?null:document.querySelector(`meta[name="app-build"]`)?.getAttribute(`content`)??null}function Ze(){let e=Xe();return!e||e===`unknown`?!1:e!==x}function Qe(){return typeof performance>`u`?!1:performance.now()-Ve<Le}function $e(){if(typeof window>`u`)return{};let e=null,t=!1;try{e=window.sessionStorage.getItem(`__boot_stage`),t=Ie.some(e=>window.localStorage.getItem(e)!==null)}catch{}return{route:window.location.pathname+window.location.search,routeBreadcrumbs:Ye(),deployFingerprint:x,documentFingerprint:Xe(),bundleDrift:Ze(),earlyRenderError:Qe(),msSinceBoot:typeof performance<`u`?Math.round(performance.now()-Ve):null,bootStage:e,persistedQueryState:t,serviceWorkerControlled:typeof navigator<`u`&&`serviceWorker`in navigator&&!!navigator.serviceWorker.controller}}function et(e,t={}){let n=z(e),r=$e(),i=typeof window<`u`?window.location.pathname:null;return{...r,...t,name:n.name,message:n.message,stack:n.stack,componentStack:typeof t.componentStack==`string`?R(t.componentStack).slice(0,1200):void 0,chunkLoadError:n.chunkLoadError||G(e),route:i,routeBreadcrumbs:Ye(),deployFingerprint:x,env:Pe(),at:new Date().toISOString()}}function K(e,t={}){try{let n=et(e,t),r=n.boundary??n.source??`unknown`;console.error(`[igb:client-error] ${n.name}: ${n.message} | where=${String(r)} | route=${String(n.route)} | build=${x} | chunk=${n.chunkLoadError?`yes`:`no`}`+(n.stack?`\n${n.stack}
1`:``)+(n.componentStack?`\ncomponent stack:${n.componentStack}`:``)),ke(n)}catch{}}function tt(e,t){if(typeof window>`u`)return!1;let n=window.location.origin;return e?e.startsWith(n)||e.startsWith(`/`):!!(t&&(t.includes(`${n}/assets/`)||t.includes(`/assets/`)))}async function nt(){if(typeof caches<`u`){let e=await caches.keys().catch(()=>[]);await Promise.allSettled(e.filter(qe).map(e=>caches.delete(e)))}if(typeof navigator<`u`&&`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistrations().catch(()=>[]);await Promise.allSettled(e.map(e=>e.unregister()))}}function rt(){try{Ie.forEach(e=>window.localStorage.removeItem(e))}catch{}}function it(e){if(typeof window>`u`||ze)return!1;try{let t=We();if(window.sessionStorage.getItem(t)!==null||(window.sessionStorage.setItem(t,`${Date.now()}:${e}`),window.sessionStorage.getItem(t)===null))return!1}catch{return!1}return ze=!0,!0}function at(){if(typeof window>`u`||ze)return!1;try{return window.sessionStorage.getItem(We())===null}catch{return!1}}function ot(){W(),window.location.reload()}async function q(e,t=!1,n=!1){return typeof window>`u`||!n&&(!(t||G(e)||Ze())||!it(`stale-client`))?!1:(rt(),await nt(),ot(),!0)}function st(){if(!(typeof window>`u`||Be)){if(Be=!0,Ze()){K(Error(`Bundle drift detected`),{source:`bundle-drift`}),q(null,!0);return}window.addEventListener(`vite:preloadError`,e=>{let t=e.payload??Error(`Failed to fetch dynamically imported module (vite:preloadError)`);K(t,{source:`vite-preload-error`}),ct()&&(e.preventDefault(),q(t,!0))}),window.addEventListener(`unhandledrejection`,e=>{let t=e.reason,n=G(t),r=t instanceof Error?t.stack:void 0;!n&&!tt(void 0,r)||(K(t,{source:`unhandledrejection`}),n&&q(t))}),window.addEventListener(`error`,e=>{if(!(e instanceof ErrorEvent))return;let t=e.error??e.message;if(!t)return;let n=G(t);!n&&!tt(e.filename,e.error?.stack)||(K(t,{source:`window-error`}),n&&q(t))},!0)}}function ct(){return at()}var lt=`tanstack_router_reload:`,ut=!1;function dt(){if(typeof window>`u`||typeof Storage>`u`||ut)return;ut=!0;let e=Storage.prototype,t=e.getItem,n=e.setItem;e.getItem=function(e){return typeof e==`string`&&e.startsWith(lt)?at()?null:`1`:t.call(this,e)},e.setItem=function(e,t){if(typeof e==`string`&&e.startsWith(lt)){if(!it(`router-lazy-route`))throw Error(`automatic reload already used for this page`);return}return n.call(this,e,t)}}function ft({article:e,error:t,onRetry:n}){return(0,P.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl px-4 py-6`,"data-article-recovery":!0,children:[(0,P.jsxs)(`div`,{role:`status`,className:`mb-6 flex flex-wrap items-center gap-3 rounded-md border border-border bg-card p-3 text-sm text-foreground`,children:[(0,P.jsx)(`span`,{className:`flex-1`,children:`Part of this page didn't load. The article is still here.`}),(0,P.jsx)(`button`,{type:`button`,className:`min-h-11 rounded-md bg-primary px-3 py-2 font-medium text-primary-foreground`,onClick:()=>{if(G(t)){q(t,!0,!0);return}n()},children:`Try again`})]}),e.title&&(0,P.jsx)(`h1`,{className:`mb-4 text-2xl font-bold text-foreground`,children:e.title}),(0,P.jsx)(`div`,{className:`prose article-content max-w-none`,dangerouslySetInnerHTML:{__html:e.html}})]})}function pt(e,t={}){if(typeof window>`u`)return;window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`});let n=e instanceof Response?`Response ${e.status}${e.url?` at ${e.url}`:``}`:e instanceof Error?e.message:String(e),r=e instanceof Error?e.stack:void 0;window.__lovableReportRuntimeError?.({message:n,...r!==void 0&&{stack:r},filename:window.location.pathname})}var mt=class extends N.Component{constructor(e){super(e),this.state={hasError:!1,error:null,retryAttempted:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`ErrorBoundary caught an error:`,e,t),K(e,{boundary:`app_frame_component_error_boundary`,componentStack:(t.componentStack??``).slice(0,1200)}),pt(e,{boundary:`app_frame_component_error_boundary`,componentStack:t.componentStack??``,...$e()}),q(e)}handleReset=async()=>{await this.props.onReset?.(),this.setState({hasError:!1,error:null,retryAttempted:!0})};handleCleanReload=()=>{q(this.state.error,!0,!0)};
1render(){if(this.state.hasError){if(this.props.fallback)return this.props.fallback;let e=L();return e?(0,P.jsx)(ft,{article:e,error:this.state.error,onRetry:this.handleReset}):(0,P.jsxs)(`div`,{className:`flex min-h-[400px] flex-col items-center justify-center p-8 text-center`,children:[(0,P.jsx)(`div`,{className:`rounded-full bg-destructive/10 p-4 mb-space-4`,children:(0,P.jsx)(ee,{className:`h-8 w-8 text-destructive`})}),(0,P.jsx)(`h2`,{className:`text-h2 mb-2`,children:`Something went wrong`}),(0,P.jsx)(`p`,{className:`text-muted-foreground mb-space-6 max-w-md`,children:`An unexpected error occurred. Please try refreshing the page.`}),(0,P.jsxs)(y,{onClick:this.state.retryAttempted?this.handleCleanReload:this.handleReset,variant:`outline`,className:`gap-2`,children:[(0,P.jsx)(o,{className:`h-4 w-4`}),this.state.retryAttempted?`Reload Cleanly`:`Try Again`]}),!1]})}return this.props.children}},ht=new Set,J=null,Y=0,gt=!1;function _t(){gt=!1,Y=0;let e=Array.from(ht);for(let t of e)try{t()}catch{}}function vt(){gt||(gt=!0,Y=requestAnimationFrame(_t))}function yt(e){J!==e&&(J&&J.removeEventListener(`scroll`,vt),J=e,e.addEventListener(`scroll`,vt,{passive:!0}))}function bt(){J&&=(J.removeEventListener(`scroll`,vt),null),Y&&cancelAnimationFrame(Y),Y=0,gt=!1}function xt(e,t=!0){let n=C();(0,N.useEffect)(()=>{if(!(!t||!n)){ht.add(e),yt(n);try{e()}catch{}return()=>{ht.delete(e),ht.size===0&&bt()}}},[e,t,n])}var St=(0,N.forwardRef)(function({className:e},t){return(0,P.jsx)(`svg`,{ref:t,viewBox:`0 0 24 24`,className:e,fill:`currentColor`,children:(0,P.jsx)(`path`,{d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`})})});St.displayName=`XIcon`;var Ct=`https://onelink.to/u89m2g`,wt=(0,N.lazy)(()=>v(()=>import(`./AppMenuSheet-8hrMSBhL.js`).then(e=>({default:e.AppMenuSheet})),[])),Tt=[{label:`About Us`,href:`/about-us/`},{label:`Contact`,href:`/contact/`},{label:`Advertise`,href:`/advertise/`},{label:`How We Test`,href:`/how-we-test/`},{label:`Editorial Guidelines`,href:`/review-editorial-guidelines/`}],Et=[{label:`Privacy Policy`,href:`/privacy/`},{label:`Terms of Use`,href:`/terms-of-use/`},{label:`Cookie Policy`,href:`/cookie-policy/`},{label:`Disclaimer`,href:`/disclaimer/`}],Dt=me.find(e=>e.section_key===`header_desktop_nav`)?.config?.items??[];function Ot(e,t){if(!Array.isArray(e)||e.length===0)return t;let n=e.filter(e=>typeof e==`object`&&!!e&&typeof e.title==`string`&&e.title.length>0&&typeof e.href==`string`&&e.href.length>0&&typeof e.slug==`string`&&e.slug.length>0);return n.length>0?n:t}var kt=(0,N.forwardRef)(function(e,t){let r=(0,N.useRef)(null),i=(0,N.useRef)(0),o=(0,N.useRef)(null),l=(0,N.useRef)(!1),ee=(0,N.useCallback)(e=>{r.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]);(0,N.useEffect)(()=>{let e=document.querySelector(`[data-site-header]`);if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e=>{let t=e[0];t&&document.documentElement.style.setProperty(`--header-height`,`${t.contentRect.height}px`)});return t.observe(e),()=>t.disconnect()},[]);let[d,f]=(0,N.useState)(!1),[p,h]=(0,N.useState)(``),[g,y]=(0,N.useState)(!1),[x,oe]=(0,N.useState)(!1),[C,se]=(0,N.useState)(!1),[w,ce]=(0,N.useState)(!1),[T,E]=(0,N.useState)(!1),[D,O]=(0,N.useState)(!1);(0,N.useEffect)(()=>{oe(S())},[]);let k=(0,N.useCallback)(e=>{let t=r.current;!t||l.current===e||(l.current=e,t.dataset.scrollHidden=e?`true`:`false`,document.documentElement.style.setProperty(`--header-sticky-offset`,e?`0px`:`var(--header-height)`),document.documentElement.style.setProperty(`--header-sidebar-gap`,e?`0px`:`1rem`))},[]);xt((0,N.useCallback)(()=>{let e=r.current;if(!e||x)return;let t=Math.max(0,window.scrollY),n=i.current;t<(e.offsetHeight||64)||d||g||e.matches(`:focus-within`)?(o.current=null,k(!1)):t>n?(o.current=null,k(!0)):t<n&&(o.current===null&&(o.current=n),o.current-t>=10&&k(!1)),i.current=t},[x,g,d,k]),!x),(0,N.useEffect)(()=>{(x||d||g)&&k(!1)},[x,g,d,k]),(0,N.useEffect)(()=>{let e=r.current;if(!e||x)return;let t=()=>k(!1);return e.addEventListener(`focusin`,t),()=>e.removeEventListener(`focusin`,t)},[x,k]);let{data:le,loading:me}=ue(),M=!!le?.is_premium,he=(0,N.useCallback)(async()=>
1{if(!(T||me)){A(M?`light`:`heavy`),E(!0),O(!1);try{await Promise.race([void v(()=>import(`./revenuecat-CsAMJ0q9.js`).then(e=>e.t).then(e=>e.launchPremiumExperience(M,`header`)),[]).catch(()=>{}),new Promise(e=>window.setTimeout(()=>e(!1),3500))])?A(`success`):(A(`error`),O(!0))}catch{A(`error`),O(!0)}finally{E(!1)}}},[me,M,T]),{config:ge}=j(`footer_quick_links`),{config:_e}=j(`footer_legal_links`),F=(ge?.items||[]).map(e=>({label:e.label||e.name,href:e.href||e.url})).filter(e=>e.label&&e.href),ye=(_e?.items||[]).map(e=>({label:e.label||e.name,href:e.href||e.url})).filter(e=>e.label&&e.href),be=F.length?F:Tt,I=ye.length?ye:Et,{data:xe}=de(),L=ae(),Se=ie(),{pageType:R}=ve(),{data:Ce,isFetched:z}=pe(),B=e=>Ce?.find(t=>t.section_key===e),we=B(`header_desktop_nav`)?.config??{},Te=B(`header_social_icons`),V=z?Te?.is_enabled??!0:!1,Ee=Te?.config??{},De=B(`header_ebooks_link`),Oe=z?De?.is_enabled??!0:!1,ke=B(`header_mobile_menu`)?.config??{},Ae={twitterx:`twitter`,"twitter/x":`twitter`},je=e=>{let t=e.toLowerCase().replace(/[\s/]/g,``);return Ae[t]||t},Me=(0,N.forwardRef)(function({className:e},t){return(0,P.jsx)(`svg`,{ref:t,viewBox:`0 0 24 24`,className:e,fill:`currentColor`,children:(0,P.jsx)(`path`,{d:`M12 0C5.373 0 0 5.373 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.632-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z`})})}),H={twitter:{icon:St,color:`text-[#000000]`,label:`X`},facebook:{icon:s,color:`text-[#1877F2]`,label:`Facebook`},youtube:{icon:re,color:`text-[#FF0000]`,label:`YouTube`},instagram:{icon:u,color:`text-[#E4405F]`,label:`Instagram`},pinterest:{icon:Me,color:`text-[#E60023]`,label:`Pinterest`}},Ne=Ee?.platforms||[],Pe=Ne.length>0?Ne.filter(e=>e.url&&H[je(e.platform)]).map(e=>{let t=je(e.platform);return{key:t,url:e.url,...H[t]}}):[{key:`twitter`,url:_.social.twitter,...H.twitter},{key:`facebook`,url:_.social.facebook,...H.facebook},{key:`youtube`,url:_.social.youtube,...H.youtube},{key:`instagram`,url:_.social.instagram,...H.instagram}],Fe=Ot(we?.items,Dt),Ie=Ot(ke?.items,[]),Le=ke?.use_desktop_nav===!1&&Ie.length>0?Ie:Fe;return(0,N.useEffect)(()=>{f(!1),y(!1)},[L.pathname]),(0,N.useEffect)(()=>(document.body.style.overflow=d?`hidden`:``,()=>{document.body.style.overflow=``}),[d]),(0,P.jsxs)(`header`,{ref:ee,"data-site-header":!0,"data-scroll-hidden":`false`,className:b(`sticky top-0 z-50 w-full border-b transition-transform duration-200 ease-out motion-reduce:transition-none`,x?`bg-background/80 backdrop-blur-xl border-border/60`:`bg-background border-border`),children:[(0,P.jsxs)(`div`,{className:b(`mx-auto max-w-container-2xl px-4 sm:px-6 lg:px-8 flex items-center justify-between gap-4`,x?`h-14`:`h-14 sm:h-16`),children:[(0,P.jsx)(m,{to:`/`,className:`flex items-center touch-manipulation shrink-0`,children:(0,P.jsxs)(`span`,{className:`m-0 p-0 text-inherit font-inherit leading-none`,children:[(0,P.jsx)(fe,{className:b(`w-auto`,x?`h-9`:`h-9 sm:h-10`)}),R===`homepage`&&(0,P.jsx)(`span`,{className:`sr-only`,children:`iGeeksBlog`})]})}),(0,P.jsx)(`nav`,{"data-header-nav":!0,className:b(`flex-1 items-center justify-center`,x?`hidden`:`hidden lg:flex`),"data-speculate":`moderate`,children:Fe.map(e=>(0,P.jsx)(`div`,{className:`relative`,children:(0,P.jsx)(m,{to:e.href,className:b(`flex items-center px-3 py-2 text-[16px] font-bold transition-colors`,`text-foreground/80 hover:text-foreground`,L.pathname.startsWith(`/category/${e.slug}`)&&`text-foreground`),children:e.title})},e.slug))}),(0,P.jsxs)(`div`,{className:b(`flex items-center gap-3 shrink-0`,!x&&`lg:w-[280px] lg:justify-end`),children:[g&&(0,P.jsxs)(`div`,{className:`flex flex-1 items-center gap-2`,children:[(0,P.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),p.trim()&&(A(`light`),Se(`/search/?q=${encodeURIComponent(p)}`),y(!1))},className:`relative flex-1`,children:[(0,P.jsx)(n,{className:`absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground pointer-events-none`}),(0,P.jsx)(`input`,{type:`text`,inputMode:`search`,enterKeyHint:`search`,"aria-label":`Search articles`,placeholder:`Search...`,value:p,onChange:e=>h(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(y(!1),h(``))},className:`search-input-clean h-9 sm:h-10 w-full pl-9 pr-3 text-sm rounded-md border border-border bg-muted/50 placeholder:text-muted-foreground focus:outline-hidden focu
1s:ring-1 focus:ring-primary/30 focus:border-primary/50 transition-colors`,autoFocus:!0})]}),(0,P.jsx)(`button`,{onClick:()=>{y(!1),h(``)},className:`flex h-11 w-11 items-center justify-center rounded-md text-primary hover:bg-primary/10 shrink-0`,"aria-label":`Close search`,children:(0,P.jsx)(ne,{className:`h-5 w-5`})})]}),!g&&(0,P.jsx)(`div`,{"data-header-social":!0,className:b(`items-center gap-2 min-w-[200px] justify-end`,x?`hidden`:`hidden lg:flex`),children:z?(0,P.jsxs)(P.Fragment,{children:[Oe?(0,P.jsx)(`a`,{href:Ct,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center whitespace-nowrap mr-2 px-3 py-1 text-xs font-semibold rounded-full bg-crestwall-gradient text-primary-foreground hover:opacity-90 transition-opacity active:scale-[0.97]`,children:`Wallpaper App`}):(0,P.jsx)(`div`,{className:`w-[104px] h-7 mr-2 opacity-0`,"aria-hidden":`true`}),V?Pe.map(e=>(0,P.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex h-9 w-9 items-center justify-center rounded-md ${e.color} hover:bg-primary/10 transition-colors`,"aria-label":e.label,children:(0,P.jsx)(e.icon,{className:`h-4 w-4`})},e.key)):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`})]})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`div`,{className:`w-[104px] h-7 mr-2 opacity-0`,"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`}),(0,P.jsx)(`div`,{className:`w-9 h-9 opacity-0`,"aria-hidden":`true`})]})}),x&&!me&&!g&&(0,P.jsx)(`button`,{type:`button`,onClick:()=>{he()},disabled:T,"aria-busy":T,"aria-label":D?`Premium unavailable, try again`:M?`Manage subscription`:`Go Premium`,title:D?`Couldn't open Premium. Tap to try again.`:void 0,className:b(`flex h-9 w-9 sm:h-10 sm:w-10 items-center justify-center rounded-md transition-all duration-200 hover:scale-110 hover:bg-muted/60 shrink-0 disabled:opacity-60`,M?`text-amber-500`:`text-muted-foreground`,D&&`text-destructive`),children:T?(0,P.jsx)(c,{className:`h-5 w-5 animate-spin`,"aria-hidden":`true`}):(0,P.jsx)(te,{className:`h-5 w-5`,fill:M?`currentColor`:`none`})}),!g&&(x||!L.pathname.startsWith(`/search`))&&(0,P.jsx)(`button`,{onClick:()=>{A(`light`),x?L.pathname.startsWith(`/app/search`)?window.dispatchEvent(new CustomEvent(`focus-app-search`)):Se(`/app/search`):y(!0)},className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-md transition-all duration-200 text-primary hover:text-primary/80 hover:bg-primary/10 hover:scale-110`,"aria-label":`Open search`,children:(0,P.jsx)(n,{className:`h-5 w-5`})}),(0,P.jsx)(`button`,{onClick:()=>{f(!d),A(`selection`)},className:b(`flex h-11 w-11 items-center justify-center rounded-md text-primary hover:bg-primary/10 shrink-0`,!x&&`lg:hidden`,g&&`hidden`),"aria-label":`Toggle menu`,children:d?(0,P.jsx)(ne,{className:`h-5 w-5`}):(0,P.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,children:[(0,P.jsx)(`line`,{x1:`4`,y1:`6`,x2:`20`,y2:`6`}),(0,P.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,P.jsx)(`line`,{x1:`4`,y1:`18`,x2:`20`,y2:`18`})]})})]})]}),x&&d&&(0,P.jsx)(N.Suspense,{fallback:null,children:(0,P.jsx)(wt,{open:!0,onClose:()=>f(!1)})}),!x&&d&&(0,P.jsxs)(`div`,{className:`relative z-[51] border-t border-border lg:hidden flex flex-col bg-background min-h-[calc(100vh-56px)] sm:min-h-[calc(100vh-64px)] min-h-[calc(100dvh-56px)] sm:min-h-[calc(100dvh-64px)] overflow-y-auto`,children:[(0,P.jsx)(`div`,{className:`h-0.5 bg-gradient-to-r from-primary/60 via-primary to-primary/60`}),(0,P.jsxs)(`ul`,{className:`list-none m-0 p-0 w-full`,children:[Oe&&(0,P.jsx)(`li`,{className:`border-b border-border`,children:(0,P.jsxs)(`a`,{href:Ct,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>f(!1),className:`flex items-center justify-between px-6 py-4 min-h-[52px] text-base font-semibold text-primary-foreground no-underline bg-crestwall-gradient hover:opacity-90 active:opacity-80 touch-manipulation`,children:[(0,P.jsx)(`span`,{children:`Wallpaper App`}
1),(0,P.jsx)(a,{className:`h-4 w-4 text-primary-foreground/80`})]})}),(Le.length>0?Le:Dt).map(e=>(0,P.jsx)(`li`,{className:`border-b border-border`,children:(0,P.jsxs)(m,{to:e.href,onClick:()=>f(!1),className:`flex items-center justify-between px-6 py-4 min-h-[52px] text-base font-medium text-foreground no-underline hover:bg-primary hover:text-primary-foreground active:bg-primary/90 touch-manipulation`,children:[(0,P.jsx)(`span`,{children:e.title}),(0,P.jsx)(a,{className:`h-4 w-4 text-muted-foreground`})]})},e.slug)),x&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`li`,{className:`border-b border-border`,children:[(0,P.jsxs)(`button`,{type:`button`,onClick:()=>se(e=>!e),className:`flex w-full items-center justify-between px-6 py-4 min-h-[52px] text-base font-medium text-foreground touch-manipulation`,"aria-expanded":C,children:[(0,P.jsx)(`span`,{children:`Quick Links`}),(0,P.jsx)(a,{className:b(`h-4 w-4 text-muted-foreground transition-transform`,C&&`rotate-90`)})]}),C&&(0,P.jsx)(`ul`,{className:`list-none m-0 p-0 bg-muted/30`,children:be.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(m,{to:e.href,onClick:()=>f(!1),className:`flex items-center px-10 py-3 min-h-[44px] text-sm text-foreground/80 no-underline active:bg-primary/10 touch-manipulation`,children:e.label})},e.href))})]}),(0,P.jsxs)(`li`,{className:`border-b border-border`,children:[(0,P.jsxs)(`button`,{type:`button`,onClick:()=>ce(e=>!e),className:`flex w-full items-center justify-between px-6 py-4 min-h-[52px] text-base font-medium text-foreground touch-manipulation`,"aria-expanded":w,children:[(0,P.jsx)(`span`,{children:`Legal`}),(0,P.jsx)(a,{className:b(`h-4 w-4 text-muted-foreground transition-transform`,w&&`rotate-90`)})]}),w&&(0,P.jsxs)(`ul`,{className:`list-none m-0 p-0 bg-muted/30`,children:[I.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(m,{to:e.href,onClick:()=>f(!1),className:`flex items-center px-10 py-3 min-h-[44px] text-sm text-foreground/80 no-underline active:bg-primary/10 touch-manipulation`,children:e.label})},e.href)),(0,P.jsx)(`li`,{children:(0,P.jsx)(`button`,{type:`button`,onClick:()=>{window.displayPreferenceModal?.(),f(!1)},className:`flex w-full items-center px-10 py-3 min-h-[44px] text-sm text-foreground/80 touch-manipulation`,children:`Manage Cookies`})})]})]})]})]}),V&&(0,P.jsxs)(`div`,{className:`border-t border-border px-6 pt-4 pb-[calc(1rem+var(--sab))] mt-auto`,children:[(0,P.jsx)(`span`,{className:`text-xs font-semibold uppercase tracking-wider text-primary mb-3 block text-center`,children:`Follow Us`}),(0,P.jsx)(`div`,{className:`flex justify-center gap-3`,children:Pe.map(e=>{let t=e.icon;return(0,P.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex h-10 w-10 items-center justify-center rounded-full bg-muted ${e.color} hover:bg-primary/15 transition-colors`,"aria-label":e.label,children:(0,P.jsx)(t,{className:`h-5 w-5`})},e.key)})})]})]})]})});kt.displayName=`Header`;var At=(0,N.forwardRef)(function({className:e},t){return(0,P.jsx)(`svg`,{ref:t,viewBox:`0 0 24 24`,className:e,fill:`currentColor`,children:(0,P.jsx)(`path`,{d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`})})});At.displayName=`XIcon`;var jt=[{label:`About Us`,href:`/about-us/`},{label:`Contact`,href:`/contact/`},{label:`Advertise`,href:`/advertise/`},{label:`How We Test`,href:`/how-we-test/`},{label:`Editorial Guidelines`,href:`/review-editorial-guidelines/`}],Mt=[{label:`Privacy Policy`,href:`/privacy/`},{label:`Terms of Use`,href:`/terms-of-use/`},{label:`Cookie Policy`,href:`/cookie-policy/`},{label:`Disclaimer`,href:`/disclaimer/`}],Nt=[{name:`iPhone`,slug:`iphone`},{name:`Mac`,slug:`mac`},{name:`iPad`,slug:`ipad`},{name:`How-to`,slug:`how-to`},{name:`Reviews`,slug:`reviews`},{name:`Apps`,slug:`apps`}],Pt=(0,N.forwardRef)(function({className:e},t){return(0,P.jsx)(`svg`,{ref:t,viewBox:`0 0 24 24`,className:e,fill:`currentColor`,children:(0,P.jsx)(`path`,{d:`M12 0C5.373 0 0 5.373 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.7
177 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.632-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z`})})});Pt.displayName=`PinterestIcon`;var X={facebook:s,twitter:At,youtube:re,instagram:u,pinterest:Pt,rss:t},Ft={facebook:`#1877F2`,twitter:`#FFFFFF`,youtube:`#FF0000`,instagram:`#E4405F`,pinterest:`#E60023`,rss:`#FFA500`},It=(0,N.forwardRef)(function(e,t){let[n,a]=(0,N.useState)(``),[o,s]=(0,N.useState)(`idle`),c=w();(0,N.useEffect)(()=>{if(E())return;let e=document.createElement(`script`);return e.src=`https://images.dmca.com/Badges/DMCABadgeHelper.min.js`,e.async=!0,document.body.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}},[]);let{data:l}=de(),{isEnabled:u,config:ee}=j(`footer_newsletter`),{isEnabled:te,config:ne}=j(`footer_quick_links`),{isEnabled:re,config:d}=j(`footer_legal_links`),{isEnabled:f,config:ie}=j(`footer_categories`),{isEnabled:p,config:ae}=j(`footer_social_icons`),{config:h}=j(`footer_bottom_bar`),g=async e=>{if(e.preventDefault(),n){s(`loading`);try{let e=await fetch(`https://xcoeufaizccntmtvtato.supabase.co/functions/v1/newsletter-subscribe`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:n})}),t=await e.json();e.ok&&t.success?(s(`success`),a(``),le(`newsletter_signup`,{method:`kit`,location:`footer`}),setTimeout(()=>s(`idle`),5e3)):s(`error`)}catch{s(`error`)}}},v=ie?.items?.length?ie.items:l?.footer?.categories?.length?l.footer.categories:Nt,y=ne?.items?.length?ne.items:l?.footer?.quickLinks?.length?l.footer.quickLinks:jt,b=d?.items?.length?d.items:l?.footer?.legalLinks?.length?l.footer.legalLinks:Mt,x=ee?.heading||`Stay Updated`,oe=ee?.description||`Get the latest Apple news, tips, and reviews delivered to your inbox weekly.`,S=h?.copyright||`© ${new Date().getFullYear()} iGeeksBlog. All rights reserved.`,C=h?.trademark||`Apple, iPhone, iPad, Mac are trademarks of Apple Inc.`,se={twitterx:`twitter`,"twitter/x":`twitter`},ce=e=>{let t=e.toLowerCase().replace(/[\s/]/g,``);return se[t]||t},T=ae?.platforms||[],D=l?.footer?.social||{},O=Object.entries(D).filter(([e])=>X[e]),k=T.length>0?T.filter(e=>e.url&&X[ce(e.platform)]).map(e=>{let t=ce(e.platform);return{icon:X[t],label:t.charAt(0).toUpperCase()+t.slice(1),href:e.url}}):O.length>0?O.map(([e,t])=>({icon:X[e],label:e.charAt(0).toUpperCase()+e.slice(1),href:t})):[{icon:X.twitter,label:`Twitter`,href:_.social.twitter},{icon:X.facebook,label:`Facebook`,href:_.social.facebook},{icon:X.youtube,label:`YouTube`,href:_.social.youtube},{icon:X.instagram,label:`Instagram`,href:_.social.instagram}];return(0,P.jsxs)(`footer`,{ref:t,"data-v":`2`,children:[u&&(0,P.jsx)(`div`,{className:`bg-gradient-to-r from-footer-cta-from to-footer-cta-to py-space-12 sm:py-space-16`,children:(0,P.jsx)(`div`,{className:`max-w-container-2xl mx-auto px-4 sm:px-6 lg:px-8`,children:(0,P.jsxs)(`div`,{className:`text-center max-w-2xl mx-auto`,children:[(0,P.jsx)(`h2`,{className:`text-h2 text-white mb-3`,children:x}),(0,P.jsx)(`p`,{className:`text-white/80 mb-space-6 text-sm sm:text-base`,children:oe}),o===`success`?(0,P.jsxs)(`div`,{className:`flex flex-col items-center gap-3 py-space-4`,children:[(0,P.jsx)(i,{className:`h-12 w-12 text-green-400`}),(0,P.jsx)(`p`,{className:`text-xl font-bold text-white`,children:`You're in!`}),(0,P.jsx)(`p`,{className:`text-white/80 text-sm`,children:`Check your inbox to confirm your subscription.`})]}):(0,P.jsxs)(P.Fragment,{children:[c?(0,P.jsxs)(`form`,{onSubmit:g,className:`flex flex-col sm:flex-row gap-3 max-w-md mx-auto`,children:[(0,P.jsx)(`input`,{type:`email`,"aria-label":`Email address`,autoComplete:`email`,name:`email`,placeholder:`Enter your email`,value:n,onChange:e=>a(e.target.value),className:`flex-1 px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white placeholder:text-white/50 focus:outline-hidden focu
1s:ring-2 focus:ring-white/50 focus:border-transparent transition-all text-sm sm:text-base`,suppressHydrationWarning:!0,required:!0}),(0,P.jsxs)(`button`,{type:`submit`,className:`px-6 py-3 bg-white text-footer-cta-from font-semibold rounded-lg hover:bg-white/90 hover:scale-[1.02] active:scale-[0.98] transition-all flex items-center justify-center gap-2`,children:[o===`loading`?`Subscribing...`:o===`error`?`Try Again`:`Subscribe`,o===`idle`&&(0,P.jsx)(r,{className:`w-4 h-4`})]})]}):(0,P.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-3 max-w-md mx-auto`,"aria-hidden":`true`,"data-newsletter-placeholder":!0,children:[(0,P.jsx)(`span`,{className:`flex-1 px-4 py-3 rounded-lg bg-white/10 border border-white/20 text-white/50 text-sm sm:text-base text-left`,children:`Enter your email`}),(0,P.jsxs)(`span`,{className:`px-6 py-3 bg-white text-footer-cta-from font-semibold rounded-lg inline-flex items-center justify-center gap-2`,children:[`Subscribe `,(0,P.jsx)(r,{className:`w-4 h-4`})]})]}),(0,P.jsx)(`p`,{className:`text-white/60 text-xs mt-space-4`,children:`No spam, unsubscribe at any time. We value your privacy.`})]})]})})}),(0,P.jsx)(`div`,{className:`bg-footer py-space-12 sm:py-space-16`,children:(0,P.jsx)(`div`,{className:`max-w-container-2xl mx-auto px-4 sm:px-6 lg:px-8`,children:(0,P.jsxs)(`div`,{className:`flex flex-col lg:flex-row gap-12 lg:gap-16`,children:[(0,P.jsxs)(`div`,{className:`lg:w-1/3`,children:[(0,P.jsx)(m,{to:`/`,className:`mb-space-4 block`,"aria-label":`Go to homepage`,children:(0,P.jsx)(fe,{className:`h-8 w-auto brightness-0 invert`,eager:!1})}),(0,P.jsx)(`p`,{className:`text-footer-muted text-sm mb-space-6 leading-relaxed`,children:`Your daily source for Apple news, tips, reviews, and more. Helping you get the most out of your Apple devices since 2012.`}),p&&(0,P.jsx)(`div`,{className:`flex gap-3`,children:k.map(e=>{let t=Ft[e.label.toLowerCase()]||`#6b7280`,n=e.icon;return n?(0,P.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":e.label===`Twitter`?`X`:e.label,className:`w-11 h-11 bg-white/10 rounded-lg flex items-center justify-center transition-all hover:scale-110`,style:{color:t},children:(0,P.jsx)(n,{className:`w-4 h-4`})},e.label):null})})]}),(0,P.jsxs)(`div`,{className:`grid grid-cols-2 sm:grid-cols-3 gap-8 lg:flex-1`,children:[te&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`text-white font-semibold mb-space-4 text-sm uppercase tracking-wider`,children:`Quick Links`}),(0,P.jsx)(`ul`,{className:`space-y-3`,children:y.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(m,{to:e.href||e.url||`#`,className:`text-footer-muted hover:text-white transition-colors text-sm`,children:e.label||e.name})},e.label||e.name))})]}),f&&(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h3`,{className:`text-white font-semibold mb-space-4 text-sm uppercase tracking-wider`,children:`Categories`}),(0,P.jsx)(`ul`,{className:`space-y-3`,children:v.slice(0,6).map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(m,{to:e.url||`/category/${e.slug}`,className:`text-footer-muted hover:text-white transition-colors text-sm`,children:e.label||e.name})},e.id||e.label||e.name))})]}),re&&(0,P.jsxs)(`div`,{className:`col-span-2 sm:col-span-1`,children:[(0,P.jsx)(`h3`,{className:`text-white font-semibold mb-space-4 text-sm uppercase tracking-wider`,children:`Legal`}),(0,P.jsxs)(`ul`,{className:`space-y-3`,children:[b.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(m,{to:e.href||e.url||`#`,className:`text-footer-muted hover:text-white transition-colors text-sm`,children:e.label||e.name})},e.label||e.name)),(0,P.jsx)(`li`,{children:(0,P.jsx)(`button`,{type:`button`,onClick:()=>window.displayPreferenceModal?.(),className:`text-footer-muted hover:text-white transition-colors text-sm`,children:`Manage Cookies`})})]}),(0,P.jsx)(`a`,{href:`//www.dmca.com/Protection/Status.aspx?ID=f21b33e0-717d-4071-a215-c322c4cc20e0`,title:`DMCA.com Protection Status`,className:`dmca-badge inline-block mt-space-4`,target:`_blank`,rel:`noopener noreferrer`,children:(0,P.jsx)(`img`,{src:`https://images.dmca.com/Badges/dmca_protected_sml_120m.png?ID=f21b33e0-717d-4071-a215-c322c4cc20e0`,alt:`DMCA.com Protection Status`,width:121,height:24,decoding:`async`,loading:`lazy`})})]})]})]})})}),(0,P.jsx)(`div`,{className:`bg-footer-deep py-space-6`,children:(0,P.jsx)(`div`,{className:`max-w-container-2xl mx-auto px-4 sm:px-6 lg:px-8`,children:(0,P.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center justify-between gap-4 text-center sm:text-left`,children:[(0,P.jsx)(`p`,{className:`text-footer-muted text-sm`,children:S}),C&&(0,P.jsx)(`div`,{children:(0,P.jsx)(`p`,{className:`text-footer-muted text-xs`,children:C})})]})})})]})});It.displayName=`Footer`;var Z=class extends N.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){try{K(e,{boundary:`part:${this.props.label}`,componentStack:(t.componentStack??``).slice(0,1200)}),G(e)&&q(e)}catch{}}render(){return this.state.failed?this.props.fallback??null:this.props.children}},Lt=()=>v(()=>import(`./registry-B1cQaHeS.js`).then(e=>e.adRegistry),[]);function Rt(){return g({queryKey:[`ad-scripts-all`],queryFn:async()=>{let e=await Lt();await e.fetchAds();let t=e.getScripts();if(t.length>0)return t;let{FALLBACK_AD_SCRIPTS:n,AD_FALLBACK_VERSION:r}=await v(async()=>{let{FALLBACK_AD_SCRIPTS:e,AD_FALLBACK_VERSION:t}=await import(`./adFallback-dBY3GAdi.js`);return{FALLBACK_AD_SCRIPTS:e,AD_FALLBACK_VERSION:t}},[]);return console.warn(`[useAllAdScripts] Using static fallback`,{version:r}),n},staleTime:144e5,gcTime:18e6,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,enabled:!E()&&!S()})}function zt(e){let{data:t,...n}=Rt();return{data:(0,N.useMemo)(()=>t?.filter(t=>t.placement===e)??void 0,[t,e]),...n}}var Bt=`https://cdn.adpushup.com/38602/adpushup.js`,Vt=`__igbAdpushupEarly`,Ht=`__igbAdpushupEarlyPending`,Ut=`(function(w,d){try{ 2var h=location.hostname;if(h!=="www.igeeksblog.com"&&w[${JSON.stringify(O)}]!==true)return; 3var ua=(navigator.userAgent||"").toLowerCase(); 4var ver=${JSON.stringify(D)}.some(function(b){return ua.indexOf(b)>-1}); 5if(!ver&&(new RegExp(${JSON.stringify(T)}).test(ua)||new RegExp(${JSON.stringify(ce)}).test(ua)))return; 6if(ua.indexOf("despia")>-1||/[?&]app=1(&|$)/.test(location.search)||/[?&]safe=1(&|$)/.test(location.search))return; 7var ls=w.localStorage;if(ls.getItem("igb_in_app")==="1")return; 8var st=w.sessionStorage.getItem("__boot_stage");if(st&&st!=="app_mounted"&&st!=="ads_started")return; 9var e=ls.getItem("igb_entitlements_me_v1");if(e){var p=JSON.parse(e);var dt=p&&p.data?p.data:p;if(dt&&dt.is_premium===true)return;} 10w.adpushup=w.adpushup||{que:[]}; 11w[${JSON.stringify(Vt)}]=true; 12w[${JSON.stringify(Ht)}]=true; 13}catch(_){}})(window,document);`;function Wt(){return typeof window>`u`?!1:window[Vt]===!0}var Gt=4e3,Kt=new Set([`slow-2g`,`2g`]),qt=new Set([`3g`]);function Q(){if(typeof window>`u`||typeof navigator>`u`)return{effectiveType:void 0,saveData:!1,hardwareConcurrency:void 0,deviceMemory:void 0};let e=navigator.connection;return{effectiveType:e?.effectiveType?.toLowerCase(),saveData:!!e?.saveData,hardwareConcurrency:typeof navigator.hardwareConcurrency==`number`?navigator.hardwareConcurrency:void 0,deviceMemory:typeof navigator.deviceMemory==`
13number`?navigator.deviceMemory:void 0}}function Jt(e=Q()){return!!(e.saveData||e.effectiveType&&Kt.has(e.effectiveType)||typeof e.hardwareConcurrency==`number`&&e.hardwareConcurrency<=2||typeof e.deviceMemory==`number`&&e.deviceMemory<=2)}function Yt(e=Q()){return!!(e.effectiveType&&qt.has(e.effectiveType)||typeof e.hardwareConcurrency==`number`&&e.hardwareConcurrency<=4)}function Xt(){if(!(typeof window>`u`||!(`PerformanceObserver`in window)))try{let e=performance.getEntriesByType(`largest-contentful-paint`);return e[e.length-1]?.startTime}catch{return}}function Zt(e,t=Gt,n=`ad-script`){return typeof window>`u`?e:new Promise(r=>{let i=window.setTimeout(()=>{console.warn(`[AdPerformance] ${n} timed out after ${t}ms`),r(`timeout`)},t);e.then(e=>{window.clearTimeout(i),r(e)}).catch(e=>{window.clearTimeout(i),console.warn(`[AdPerformance] ${n} rejected:`,e),r(`timeout`)})})}function Qt(){return new Promise(e=>{if(typeof window>`u`){e();return}if(`scheduler`in window&&window.scheduler?.yield){window.scheduler.yield().then(e);return}setTimeout(e,0)})}function $t(e){if(!(typeof window>`u`)){console.log(`[AdRUM]`,e);try{let t=JSON.stringify({...e,url:window.location.href,ua:navigator.userAgent?.slice(0,120)});`sendBeacon`in navigator&&navigator.sendBeacon&&navigator.sendBeacon(`/api/rum/ad-performance`,t)}catch{}}}function en(e){return{name:e,startTime:typeof performance<`u`?performance.now():Date.now()}}function tn(e,t){let n=typeof performance<`u`?performance.now():Date.now();$t({...e,...t,duration:n-e.startTime,lcp:Xt(),connection:Q()})}var nn={"google adsense":1,adsense:1,adpushup:2,buysellads:3,bsa:3},rn=2,an=4e3,on=`data-igb-global-script`;function sn(e,t,n){if(e!==document.head&&e!==document.body){console.warn(`[GlobalScripts] Refusing to inject outside head/body`);return}t.setAttribute(on,n),e.appendChild(t)}var cn=e=>{let t=(e??``).toLowerCase();for(let[e,n]of Object.entries(nn))if(t.includes(e))return n;return 99};function ln(e){return[...e].sort((e,t)=>cn(e.name)-cn(t.name))}var un=e=>{let t=document.querySelectorAll(`script[src]`),n=new Set;if(e.match(/src=["']([^"']+)["']/g)?.forEach(e=>{let t=e.replace(/src=["']|["']/g,``).replace(/\?.*$/,``);n.add(t)}),n.size===0)return!1;for(let e of t){let t=(e.getAttribute(`src`)||``).replace(/\?.*$/,``);if(n.has(t))return console.log(`[GlobalScripts] Script already in DOM:`,t),!0}return!1},dn=(e,t=5e3)=>{`requestIdleCallback`in window?window.requestIdleCallback(e,{timeout:t}):setTimeout(e,100)},fn=(0,N.forwardRef)(function(e,t){let{data:n}=zt(`head`),{data:r}=zt(`body_end`),i=(0,N.useRef)(new Set),a=(0,N.useRef)(!1),{isPremium:o}=ue(),s=w()&&S();E()||o||k();let c=e=>!!e&&/adpushup/i.test(e),l=(0,N.useCallback)(async e=>{if(i.current.has(e.id))return!1;if(Wt()&&(/adpushup/i.test(e.name??``)||/cdn\.adpushup\.com/i.test(e.script_code))||document.querySelector(`[${on}="${e.id}"]`))return i.current.add(e.id),!1;if(un(e.script_code))return console.log(`[GlobalScripts] Skipping already loaded script:`,e.name),i.current.add(e.id),!1;let t=en(`inject-head:${e.name}`);try{console.log(`[GlobalScripts] Injecting head script:`,e.name);let n=document.createElement(`div`);n.innerHTML=M.createHTML(e.script_code);let r=n.querySelectorAll(`script`),a=[];return r.forEach(t=>{let n=document.createElement(`script`);if(Array.from(t.attributes).forEach(e=>{n.setAttribute(e.name,e.value)}),n.fetchPriority=`low`,t.innerHTML&&(n.innerHTML=t.innerHTML),!n.getAttribute(`src`)){sn(document.head,n,e.id),a.push(Promise.resolve());return}let r=new Promise(t=>{n.onload=()=>t(),n.onerror=()=>{console.warn(`[GlobalScripts] Script failed to load:`,e.name),t()},sn(document.head,n,e.id)});a.push(Zt(r,an,`script-load:${e.name}`))}),n.querySelectorAll(`:not(script)`).forEach(t=>{t.tagName.toLowerCase()!==`div`&&sn(document.head,t.cloneNode(!0),e.id)}),await Zt(Promise.all(a),an,`inject-batch:${e.name}`),i.current.add(e.id),tn(t,{cancelled:!1}),!0}catch(n){return console.error(`Failed to inject head script:`,e.name,n),tn(t,{error:String(n).slice(0,200)}),!1}},[]),u=(0,N.useCallback)(async()=>{if(E()||o||!k()||a.current||!n?.length)return;let e=ln(n),t=s?e.filter(e=>c(e.name)):e,r=Yt(Q()),u=0;for(let e of t){if(i.current.has(e.id))continue;for(;u>=rn;)await new Promise(e=>setTimeout(e,50));u++;let t=l(e);
13r&&await Qt(),t.then(()=>{u--})}for(;u>0;)await new Promise(e=>setTimeout(e,50));a.current=!0,window.__adScriptsReady=!0,window.dispatchEvent(new CustomEvent(`ad-scripts-ready`)),console.log(`[GlobalScripts] All head scripts injected after ad-slots-ready`)},[n,l,o,s]);return(0,N.useEffect)(()=>{E()||o||!k()||u()},[u,o]),(0,N.useEffect)(()=>{if(E()||o||!k())return;if(Jt(Q())){console.log(`[GlobalScripts] Body scripts deferred due to slow connection/device`);return}let e=setTimeout(()=>{dn(()=>{r?.forEach(e=>{if(!i.current.has(e.id)){if(document.querySelector(`[${on}="${e.id}"]`)){i.current.add(e.id);return}if(!(s&&!c(e.name))){if(/googletagmanager\.com\/gtag\/js|G-6GSSMZ8PNN/.test(e.script_code)){console.log(`[GlobalScripts] Skipping GA script (managed by analytics.ts):`,e.name),i.current.add(e.id);return}try{let t=document.createElement(`div`);t.innerHTML=M.createHTML(e.script_code),t.querySelectorAll(`script`).forEach(t=>{let n=document.createElement(`script`);Array.from(t.attributes).forEach(e=>{n.setAttribute(e.name,e.value)}),t.innerHTML&&(n.innerHTML=t.innerHTML),sn(document.body,n,e.id)}),i.current.add(e.id)}catch(t){console.error(`Failed to inject body script:`,e.name,t)}}}})})},1500);return()=>clearTimeout(e)},[r,o,s]),null});fn.displayName=`GlobalScripts`;var $=(0,N.forwardRef)(({slotName:e,minHeight:t=`250px`,className:n,style:r,...i},a)=>{if(w()&&S())return null;let{isPremium:o}=ue();return o?(0,P.jsx)(`div`,{ref:a,"data-ad-slot":e,"data-ad-status":`blocked`,"aria-hidden":`true`,className:b(`invisible overflow-hidden`,n),style:{minHeight:t,...r},...i}):(0,P.jsx)(`div`,{ref:a,"data-ad-slot":e,"data-ad-status":`reserved`,className:b(`overflow-hidden`,n),style:{minHeight:t,...r},...i})});$.displayName=`ReservedAdSlot`;var pn=0;function mn(e){if(e.error||e.filename||e.lineno||e.colno)return!1;let t=(e.message??``).trim();return t===``||/^script error\.?$/i.test(t)}function hn(){if(typeof window>`u`)return;let e=window;e.__cxErrorFilterInstalled||(e.__cxErrorFilterInstalled=!0,window.addEventListener(`error`,e=>{typeof Element<`u`&&e.target instanceof Element||mn(e)&&(pn++,pn===1?console.debug(`[CrossOriginError] Suppressed opaque third-party 'Script error.' (no stack available â originates in a cross-origin vendor script).`):pn%25==0&&console.debug(`[CrossOriginError] Suppressed ${pn} opaque errors so far.`),e.preventDefault(),e.stopImmediatePropagation())},!0))}var gn=!1,_n=!1;function vn(){if(typeof window>`u`||typeof document>`u`||gn)return;gn=!0,W(),dt(),xe(),hn(),v(()=>import(`./trustedTypes-Cwf3sUqU.js`).then(e=>e.n),[]).catch(()=>{}),he(),performance.mark(`boot-start`),oe()&&(v(()=>import(`./appsflyerDeepLinks-WDjgMiGr.js`).then(e=>e.installAppsFlyerDeepLinkGlobal()),[]).catch(()=>{}),v(()=>import(`./earlyPushBridge-BFBvo1iv.js`).then(e=>e.n).then(e=>e.installEarlyPushBridge()),[]).catch(()=>{}));let e=document.querySelector(`meta[name="app-build"]`)?.getAttribute(`content`)||`unknown`;try{let t=sessionStorage.getItem(`__app_build`);if(t&&t!==e&&(sessionStorage.setItem(`__app_build`,e),it(`build-mismatch`))){v(()=>import(`./lcpCache-DlvkSnZ7.js`).then(e=>e.n).then(e=>e.clearAllLcpCaches()),[]).catch(()=>{}),console.warn(`[BuildMismatch] Reloading once`,{stored:t,current:e}),W(),window.location.reload();return}sessionStorage.setItem(`__app_build`,e)}catch{}try{let e=sessionStorage.getItem(`__boot_stage`);e&&sessionStorage.setItem(`__boot_stage_prev`,e),sessionStorage.setItem(`__boot_stage`,`main_started`)}catch{}_n=(()=>{try{if(new URLSearchParams(window.location.search).get(`safe`)===`1`)return!0;let e=sessionStorage.getItem(`__boot_stage_prev`);return e&&e!==`app_mounted`&&e!==`ads_started`?(console.warn(`[Boot] Auto-safe mode: previous boot stuck at`,e),!0):!1}catch{return!1}})(),_n&&console.warn(`[Boot] Safe mode active â ad engine & third-party scripts disabled`),Cn(e)}function yn(){let e=window;if(e.__IGB_BOT)return;let t=(navigator.userAgent||``).toLowerCase();if(/bot|crawl|spider|prerender|headlesschrome|lighthouse|pagespeed/.test(t))return;let n=oe();if(n&&typeof e.onAppsFlyerDeepLink!=`function`&&(e.__pendingDeepLink=e.__pendingDeepLink??null,e.onAppsFlyerDeepLink=t=>{e.__pendingDeepLink=t}),n){let e=document.createElement(`script`);e.async=!0,e.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,document.head.appendChild(e)}}function bn(){if(typeof window>`u`)return;He();try{sessionStorage.setItem(`__boot_stage`,`app_mounted`)}catch{}v(()=>import(`./useTheme-BNwR-jSF.js`).then(e=>e.bootstrapTheme()),[]).catch(()=>{}),v(()=>import(`./appShell-CVrY4tb3.js`).then(e=>e.t).then(e=>e.applyAppShellClass()),[]).catch(()=>{}),v(()=>import(`./prerender-3mdoi9lJ.js`).then(e=>e.n).then(e=>e.logSeoHealth()),[]).catch(()=>{});let e=()=>{v(()=>import(`./cacheManager-C3uoYczN.js`).then(e=>e.sweepLegacyBrowserCaches()),[]).catch(()=>{})};`requestIdleCallback`in window?window.requestIdleCallback(e):setTimeout(e,500),yn();let t=()=>
13{v(()=>import(`./serviceWorkerRegistration-Ch5V1OTT.js`).then(e=>e.registerServiceWorker()),[]).catch(()=>{})};if(`requestIdleCallback`in window?window.requestIdleCallback(t):setTimeout(t,0),`PerformanceObserver`in window){let e=()=>{try{new PerformanceObserver(e=>{for(let t of e.getEntries())t.duration>50&&console.debug(`[Perf] Long task: ${Math.round(t.duration)}ms`)}).observe({type:`longtask`,buffered:!0})}catch{}};`requestIdleCallback`in window?requestIdleCallback(e):setTimeout(e,200)}v(()=>import(`./fpsMeter-Bs6FBqBN.js`).then(e=>e.startFpsMeter()),[]).catch(()=>{}),requestAnimationFrame(()=>{try{performance.mark(`boot-interactive`),performance.measure(`boot-to-interactive`,`boot-start`,`boot-interactive`);let e=performance.getEntriesByName(`boot-to-interactive`)[0];e&&console.debug(`[Perf] Boot â interactive: ${Math.round(e.duration)}ms`)}catch{}})}var xn=[`dynamically imported module`,`Loading chunk`,`Loading CSS chunk`,`error loading dynamically`,`Unexpected token '<'`,`Unexpected token <`,`expected expression`,`is not valid JavaScript`,`Failed to fetch dynamically imported module`,`failed to fetch module script`,`error resolving module specifier`,`MIME type`,`module script`];function Sn(e){if(!e)return!1;let t=e.toLowerCase();return xn.some(e=>t.includes(e.toLowerCase()))}function Cn(e){function t(){let t=Date.now();try{let n=document.querySelector(`meta[name="app-build"]`)?.getAttribute(`content`),r=sessionStorage.getItem(`__app_build`);console.error(`[ChunkError] Chunk load failure detected`,{url:window.location.href,buildVersion:e,metaBuild:n,storedBuild:r,versionMismatch:!!(n&&r&&n!==r),timestamp:t,automaticRecoveryAvailable:!sessionStorage.getItem(`__igb_automatic_recovery_used:${window.location.pathname}`)})}catch{}if(!it(`chunk-error`)){console.error(`[ChunkError] Automatic recovery already used; preserving the current page`);return}v(()=>import(`./lcpCache-DlvkSnZ7.js`).then(e=>e.n).then(e=>e.clearAllLcpCaches()),[]).catch(()=>{}),W(),window.location.reload()}window.addEventListener(`unhandledrejection`,e=>{Sn(e.reason?.message)&&(e.preventDefault(),t())}),window.addEventListener(`error`,e=>{if(e.message&&Sn(e.message)){e.preventDefault(),t();return}e.target instanceof HTMLScriptElement&&(e.target.src||``).includes(`/assets/`)&&t()},!0)}var wn=(0,N.forwardRef)(function(e,t){let n=+!!ge({select:e=>e.status!==`idle`}),[r,i]=(0,N.useState)(0),[a,o]=(0,N.useState)(!1),s=(0,N.useRef)(void 0),c=(0,N.useRef)(void 0),l=w()&&S();return(0,N.useEffect)(()=>(n>0?(c.current&&=(clearTimeout(c.current),void 0),o(!0),i(10),s.current=setInterval(()=>{i(e=>{if(e>=80)return e;let t=Math.max(.5,(80-e)*.08);return Math.min(80,e+t)})},200)):a&&(s.current&&=(clearInterval(s.current),void 0),i(100),c.current=setTimeout(()=>{o(!1),i(0)},400)),()=>{s.current&&clearInterval(s.current)}),[n,a]),(0,N.useEffect)(()=>{if(!S())return;let e=null,t=!1,n=()=>{s.current&&=(clearInterval(s.current),void 0),c.current&&=(clearTimeout(c.current),void 0),o(!1),i(0)};return v(()=>import(`./appLifecycle-D-_hciXG.js`).then(e=>e.t).then(r=>{t||(e=r.onAppClearTimers(n))}),[]).catch(()=>{}),()=>{t=!0,e?.()}},[]),l||!a&&r===0?null:(0,P.jsx)(`div`,{ref:t,className:`fixed top-0 left-0 right-0 z-50 h-[2px] pointer-events-none`,role:`progressbar`,"aria-label":`Page loading progress`,"aria-valuenow":Math.round(r),"aria-valuemin":0,"aria-valuemax":100,children:(0,P.jsx)(`div`,{className:`h-full bg-primary`,style:{width:`${r}%`,transition:r===100?`width 200ms ease-out, opacity 200ms ease-out 200ms`:`width 400ms cubic-bezier(0.4, 0, 0.2, 1)`,opacity:r===100?0:1}})})});wn.displayName=`NavigationProgress`;var Tn=(0,N.lazy)(()=>v(()=>import(`./OfflineBanner.native--7_6k-LB.js`).then(e=>({default:e.OfflineBanner})),[]));function En({onRetry:e}){let[t,n]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let e=!1;return v(()=>import(`./appShell-CVrY4tb3.js`).then(e=>e.t).then(t=>{!e&&t.isInApp()&&n(!0)}),[]),()=>{e=!0}},[]),t?(0,P.jsx)(N.Suspense,{fallback:null,children:(0,P.jsx)(Tn,{...e?{onRetry:e}:{}})}):null}var Dn=(0,N.lazy)(()=>v(()=>import(`./AppTabBar-Dw0DXuyZ.js`).then(e=>({default:e.AppTabBar})),[])),On=(0,N.forwardRef)(function({children:e},t){let n=w()&&S(),[r,i]=(0,N.useState)(null);return(0,N.useEffect)(()=>
13{if(_n)return;let e=!1;return e||v(()=>import(`./adEngine-Bs-6HcQM.js`).then(t=>{if(!e){t.initAdEngine();try{sessionStorage.setItem(`__boot_stage`,`ads_started`)}catch{}}}),[]).catch(()=>{}),()=>{e=!0}},[]),n?(0,P.jsxs)(`div`,{ref:t,className:`app-root`,children:[(0,P.jsx)(`div`,{className:`safe-area-top`,"aria-hidden":`true`}),(0,P.jsx)(kt,{}),(0,P.jsx)(`main`,{id:`main-content`,tabIndex:-1,ref:i,className:`app-content`,children:(0,P.jsxs)(se,{container:r,children:[(0,P.jsx)(En,{}),(0,P.jsx)(mt,{children:e})]})}),(0,P.jsx)(N.Suspense,{fallback:null,children:(0,P.jsx)(Dn,{})})]}):(0,P.jsxs)(`div`,{ref:t,className:`flex min-h-screen flex-col`,children:[(0,P.jsx)(`a`,{href:`#main-content`,className:`sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-100 focus:rounded-md focus:bg-primary focus:px-4 focus:py-3 focus:text-primary-foreground focus:shadow-lg`,children:`Skip to main content`}),(0,P.jsx)(wn,{}),!_n&&(0,P.jsx)(Z,{label:`ads-global-scripts`,children:(0,P.jsx)(fn,{})}),(0,P.jsx)(kt,{}),(0,P.jsx)(Z,{label:`ad-header-below`,children:(0,P.jsx)($,{slotName:`header-below`,minHeight:`0px`,className:`container-content text-center`})}),(0,P.jsx)(`main`,{id:`main-content`,tabIndex:-1,className:`flex-1 min-h-[50vh]`,children:(0,P.jsx)(se,{container:typeof window<`u`?window:null,children:(0,P.jsx)(mt,{children:e})})}),(0,P.jsx)(It,{}),(0,P.jsx)(Z,{label:`ad-footer`,children:(0,P.jsx)($,{slotName:`footer`,minHeight:`0px`,className:`container-content text-center`})}),(0,P.jsx)(Z,{label:`ad-footer-sticky`,children:(0,P.jsx)($,{slotName:`footer-sticky`,minHeight:`0px`})})]})});On.displayName=`Layout`;export{ge as S,q as _,Ut as a,F as b,Z as c,pt as d,ft as f,Je as g,K as h,$ as i,xt as l,G as m,vn as n,Ht as o,st as p,bn as r,Bt as s,On as t,mt as u,L as v,ye as x,xe as y};
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.