(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,219246,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedTopAdHeightAtom",0,t])},495406,e=>{"use strict";var t=e.i(902875),l=e.i(247865),a=e.i(725287),o=e.i(16838),s=e.i(632137),n=e.i(380993),i=e.i(546446),r=e.i(5397),d=e.i(688070),c=e.i(647292),u=e.i(697380),p=e.i(219246);let m="min-h-[50px] my-2",f="min-h-[90px]",g="min-h-[250px]",h="min-h-[600px]",b={WX_Hidden:{type:"custom",containerClasses:"hidden"},WX_BottomLeader:{type:"standard",placeholderClass:f},WX_Bot300:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX1:{type:"standard",placeholderClass:g},WX_Bot300AdX2:{type:"standard",placeholderClass:g},WX_Bot300AdX3:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX4:{type:"standard",placeholderClass:g},WX_Bot300AdX5:{type:"standard",placeholderClass:g},WX_Bot300AdX6:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_PromoDriver1:{type:"standard",placeholderClass:g},WX_FlexLeader:{type:"standard",placeholderClass:f},WX_MidLeader:{type:"standard",placeholderClass:f},WX_MidLeader2:{type:"standard",placeholderClass:f},WX_MidLeader3:{type:"standard",placeholderClass:f},WX_MidLeader4:{type:"standard",placeholderClass:f},WX_Top300Small:{type:"standard",placeholderClass:g},WX_Top300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},WX_Mid300:{type:"standard",placeholderClass:g},WX_Mid300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},MW_Position2:{type:"standard",placeholderClass:g},MW_Position3:{type:"standard",placeholderClass:g},MW_Position3_Hourly:{type:"standard",placeholderClass:g},MW_Position4:{type:"standard",placeholderClass:g},MW_Position5:{type:"standard",placeholderClass:g},WX_WindowShade:{type:"standard",placeholderClass:g,tabletPlaceholderClass:f,containerClasses:"pb-0 rounded-3xl",disableBorder:!0},WX_Leaderboard:{type:"standard",placeholderClass:f},MW_Position1:{type:"custom",placeholderClass:m,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",mobileAppContainerClasses:"bg-gray-100 block fixed w-full bottom-0 left-0 z-adOverlay",isBottomFixed:!0},MW_Position1_Samsung:{type:"custom",placeholderClass:m,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",isBottomFixed:!0},MW_Position1_Radar:{type:"custom",placeholderClass:m,containerClasses:"bg-gray-100 block fixed w-full top-0 left-[0px] z-adOverlay",isTopFixed:!0},MW_Position_ContentFeedAd1:{type:"nativeVideoPlaylist"},MW_Position_ContentFeedAd11:{type:"nativeVideoPlaylist"},WX_ContentFeed1:{type:"nativeVideoPlaylist"},WX_ContentFeedRadar:{type:"standardNative",persistElementOnEmpty:!0,containerClasses:"bg-gray-100 [&_[id$=ContentFeedRadar]]:w-full"}};var y=e.i(528600),w=e.i(849177);function _({eventName:e,enabled:t,filter:a}){let[o,s]=(0,l.useState)(!1),n=(0,l.useRef)(!1),i=(0,l.useRef)(a);return i.current=a,(0,l.useEffect)(()=>{if(!t){n.current=!1;return}if(n.current)return;let l=!0;return window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent(e,i.current?{filter:i.current}:void 0).then(()=>{l&&s(!0)}).catch(t=>{console.error(`Error waiting for ${e}:`,t)})}),n.current=!0,()=>{l=!1,n.current=!1}},[t,e]),{triggered:o}}var x=e.i(421956),C=e.i(456215),v=e.i(176540);let A={adSlots:!0,adFallbackPromo:!0,adScripts:!0,adVideo:!0,taboola:!0,adLayoutReservation:!0,adScaffolding:!0,promoMorningBrief:!0,contentRecirculation:!0,sdkConsent:!0,sdkPush:!0,sdkAnalytics:!0},P=[{name:"atmosphere",when:e=>(0,v.default)(e.article),disables:["adSlots","adFallbackPromo","adScripts","taboola","promoMorningBrief"]},{name:"snowcast",when:e=>(0,C.isSnowCastWebView)(e.webViewPlatform),disables:["adSlots","adFallbackPromo","adScripts","adVideo","taboola","adLayoutReservation","adScaffolding","promoMorningBrief","contentRecirculation","sdkConsent","sdkPush"]},{name:"premium",when:e=>!0===e.isUserPremium,disables:["adSlots","adScripts","adVideo","taboola"]},{name:"adsKillswitch",when:e=>!0===e.adsKillswitch,disables:["adSlots","adScripts","adVideo","taboola"]}],W=({globalPageProps:e,...l})=>{let{adSlots:a,adFallbackPromo:o}=function(e){let t={...A};for(let l of P)if(l.when(e))for(let e of l.disables)t[e]=!1;return t}({webViewPlatform:(0,i.useAtomValue)(c.webViewPlatformAtom),article:e?.article??null,isUserPremium:null,adsKillswitch:null});return a||o?(0,t.jsx)(E,{...l}):null},E=({adId:e,adSlot:c,stickyReplaceSlot:m,title:f="Advertisement",className:g,sticky:h=!1,disableRegisteredUsers:C=!1,placeholderContent:v,fallbackPromoDriver:A})=>{let P=e||("object"==typeof c?c.slotTarget:void 0)||"",W="object"==typeof m?m?.slotTarget:void 0,E=P?b[P]??b[P.replace(/_GLS$/,"")]:void 0,j=(0,a.useParams)()?.locale,S=(0,i.useAtomValue)(r.showAdminHeaderAtom),T=(0,i.useAtomValue)(d.isWebViewOnlyAtom)&&E?.mobileAppContainerClasses?E.mobileAppContainerClasses:E?.containerClasses,k=(0,i.useSetAtom)(u.fixedBottomAdHeightAtom),F=(0,i.useSetAtom)(p.fixedTopAdHeightAtom),{shouldRender:X,placeholderClass:B}=function({adId:e,adSlotConfig:t,disableRegisteredUsers:a=!1}){let{user:o}=(0,y.useUser)(),s=(0,i.useAtomValue)(w.adsDisabledAtom),n=o.isUserPremium||s||!e||!!a&&o.isUserLoggedIn;!function({adId:e,adSlotType:t,enabled:a}){let o=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(a&&("standardNative"===t||"nativeVideoPlaylist"===t)&&!o.current){try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("WX_ContentFeedRadar"===e)return{currContentFeedIndex:null,baseNativeAdPosition:"WX_ContentFeedRadar"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error(`Could not parse index from ContentFeed adId: ${e}`),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,o=window.__HeliosConfig.slotsConfig[a];if(o){let t=null!==l?`${o.adUnitPath}/contentfeed${l}`:o.adUnitPath;window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${a}`)}}catch(e){console.error("Error rendering native ad",e)}o.current=!0}},[e,t,a])}({adId:e,adSlotType:t?.type,enabled:!n});let{adSlotRenderEvent:r}=function({adId:e,enabled:t=!0}){let[a,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!t||!e)return;let l=t=>{t.slot.getSlotElementId()===e&&o(t)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotRenderEnded",l)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotRenderEnded",l)})}},[e,t]),{adSlotRenderEvent:a}}({adId:e,enabled:!n}),{isAdHidden:d}=function(e,t=!0){let[a,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!e||!t)return;let l=document.getElementById(e);if(!l)return;let a=()=>{o("none"===window.getComputedStyle(l).display)};a();let s=new MutationObserver(a);return s.observe(l,{attributes:!0,attributeFilter:["style","class"]}),()=>s.disconnect()},[e,t]),{isAdHidden:a}}(e,!n),{isSlotConfigDeleted:c}=function({adId:e,enabled:t}){let{triggered:l}=_({eventName:"SLOT_CONFIG_DELETED",enabled:t&&!!e,filter:t=>t.args[0].slotId===e});return{isSlotConfigDeleted:l}}({adId:e,enabled:!n}),{isAdsExcluded:u}=function({enabled:e}){let{triggered:t}=_({eventName:"ERROR_EXCLUSION",enabled:e});return{isAdsExcluded:t}}({enabled:!n}),p=!!t?.persistElementOnEmpty,m=!n&&(p||!d)&&(p||!r?.isEmpty)&&!c&&!u,{placeholderClass:f}=function({adId:e,adSlotConfig:t,enabled:l}){let{isIMAdDetected:a}=function({adId:e,enabled:t}){let{triggered:l}=_({eventName:"IM_AD_DETECTED_FOR_MW",enabled:t&&e.includes("MW_Position1")});return{isIMAdDetected:l}}({adId:e,enabled:l}),{isTabletDetected:o}=function({enabled:e}){let{triggered:t}=_({eventName:"TABLET_DETECTED",enabled:e});return{isTabletDetected:t}}({adId:e,enabled:l}),s=o?t?.tabletPlaceholderClass??t?.placeholderClass:t?.placeholderClass;return{placeholderClass:a?"h-0 min-h-0 p-0":s}}({adId:e,adSlotConfig:t,enabled:!n});return{shouldRender:m,placeholderClass:f}}({adId:P,adSlotConfig:E,disableRegisteredUsers:C}),M=(0,l.useRef)(null),{isReplaceSlotVisible:H}=function({adId:e,stickyReplaceId:t,enabled:a=!0}){let[o,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let l=t&&t!==e?t:null;if(!a||!l)return;let o=e=>{e.slot.getSlotElementId()===l&&s(!0)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotVisibilityChanged",o)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotVisibilityChanged",o)})}},[e,t,a]),{isReplaceSlotVisible:o}}({adId:P,stickyReplaceId:W,enabled:X});if((0,l.useEffect)(()=>{let e=M.current,t=E?.isTopFixed||E?.isBottomFixed;if(!(X&&e&&t))return;let l=E?.isTopFixed?F:k,a=()=>l(e.offsetHeight),o=new ResizeObserver(a);return o.observe(e),a(),()=>{o.disconnect(),l(0)}},[X,P,k,F,E?.isBottomFixed,E?.isTopFixed]),!X){let[e]=A||[];return e&&"en-US"===j?(0,t.jsx)(x.PromoDriverBlock,{...e}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.DebugCollector,{componentName:"AdBlock",data:{props:{adId:P,adSlot:c,adSlotConfig:E,sticky:h},state:{shouldRender:X},performance:{renderTime:Date.now()}},enabled:S}),(0,t.jsx)(n.Card,{ref:M,variant:E?.type==="standard"?"bottom":"ghost",border:E?.disableBorder?"none":void 0,padding:E?.disableBorder?"none":void 0,style:H?{display:"none"}:void 0,className:(0,s.cn)("region-contentTop","adContainer disableHeliosStyles",!h&&"overflow-hidden",E?.type==="standard"&&"pb-6",E?.type==="nativeVideoPlaylist"&&"[&_iframe]:mt-[10px]",h&&E?.stickyHeight,T,g),"aria-label":"Advertisement",children:(0,t.jsxs)(n.CardContent,{className:(0,s.cn)(E?.type==="standard"&&"bg-gray-100 pb-6",h&&E?.stickyClasses),children:[E?.type==="standard"&&f&&(0,t.jsx)("div",{className:"text-xxs w-full px-4 py-1 text-center leading-4 text-gray-400",children:f}),(0,t.jsx)("div",{"data-testid":`${P}-container`,className:(0,s.cn)("flex w-full justify-center",E?.verticalAlign==="top"?"items-start":"items-center",B),children:v?(0,t.jsx)("div",{id:P,"data-testid":P,children:v}):(0,t.jsx)(N,{adId:P})})]})})]})},N=l.default.memo(({adId:e})=>(0,t.jsx)("div",{id:e,"data-testid":e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}),()=>!0);N.displayName="StableAdDiv",e.s(["AdBlock",0,W,"default",0,W],495406)},230988,function(e){e.n(e.i(495406))},421956,e=>{"use strict";var t=e.i(902875),l=e.i(749621),a=e.i(240058),o=e.i(155879);let s=({title:e,image:s,subtitle:n,bodyText:i,ctaButton:r})=>{let d=r?.url&&/^https?:\/\//i.test(r.url),c=(0,o.isImageObject)(s)?s:null;return e||c&&c?.url||n||i||r?(0,t.jsxs)("div",{"data-promo-driver":!0,className:"overflow-hidden rounded-lg bg-white",children:[e&&(0,t.jsx)("div",{className:"pb-4",children:(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:e})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[c?.url?(0,t.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white",children:(0,t.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)(l.default,{src:c.url,alt:e||"Promo image",fill:!0,className:"object-cover"})})})}):null,(n||i||r)&&(0,t.jsxs)("div",{className:"pt-4",children:[n&&(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:n})}),i&&(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:i})}),r&&(0,t.jsx)("div",{className:"flex justify-end",children:d?(0,t.jsx)("a",{href:r.url||"#",target:r.openInNewTab?"_blank":"_self",rel:r.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:r.text}):(0,t.jsx)(a.default,{href:r.url||"#",target:r.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:r.text})})]})]})]}):null};e.s(["PromoDriverBlock",0,s,"default",0,s])},176540,e=>{"use strict";e.s(["default",0,function(e){return!!e?.category&&"atmosphere"===function(e){if(!e?.value)return;let{value:t}=e;if("string"==typeof t)return t.split("/")[0];let l=t.pathSegments?.[0]?.segment;return"string"==typeof l&&l.length>0?l:"string"==typeof t.id&&t.id.length>0?t.id.split("/")[0]:void 0}(e.category)}],176540)},155879,e=>{"use strict";e.s(["isImageObject",0,function(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&null!==e.seo&&"object"==typeof e.seo&&"altText"in e.seo)}])}]);