<!DOCTYPE html>
<html lang="en"><head><meta charSet="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/><meta name="theme-color" content="#000000"/><title>Wordle - The New York Times</title><link rel="manifest" href="https://www.nytimes.com/games-assets/v2/metadata/wordle-web-manifest.json?v=v2211301325"/><link rel="apple-touch-icon" sizes="180x180" href="https://www.nytimes.com/games-assets/v2/metadata/wordle-apple-touch-icon.png?v=v2211301325"/><link rel="mask-icon" color="#FFFFFF" href="https://www.nytimes.com/games-assets/v2/metadata/wordle-safari-pinned-tab.svg?v=v2211301325"/><link rel="shortcut icon" href="https://www.nytimes.com/games-assets/v2/metadata/wordle-favicon.ico?v=v2211301325"/><link href="htts://www.nytimes.com/games-assets/v2/assets/wordle/wordle_logo_32x32.png" rel="icon shortcut" sizes="3232"/><link href="https://www.nytimes.com/games-assets/v2/assets/wordle/wordle_logo_192x192.png" rel="apple-touch-icon"/><meta name="apple-mobile-web-app-title" content="Wordle"/><meta name="application-name" content="Wordle"/><meta name="msapplication-TileColor" content="#FFFFFF"/><meta name="theme-color" content="#FFFFFF"/><meta name="sourceApp" content="games-crosswords"/><meta property="description" content="Guess the hidden word in 6 tries. A new puzzle is available each day."/><meta property="og:title" content="Wordle - A daily word game"/><meta property="og:url" content="https://www.nytimes.com/games/wordle"/><meta property="og:description" content="Guess the hidden word in 6 tries. A new puzzle is available each day."/><meta property="og:image" content="https://www.nytimes.com/games-assets/v2/assets/wordle/wordle_og_1200x630.png"/><meta property="twitter:card" content="summary_large_image"/><meta property="twitter:domain" content="nytimes.com"/><meta property="theme-color" content="#6aaa64"/><link rel="stylesheet" type="text/css" href="https://www.nytimes.com/games-assets/v2/wordle.77c5c305818f8e60286e28af5f0869295df7864e.css"/></head><body><script type="text/javascript">(function(){var e;try{e=JSON.parse(localStorage.getItem("nyt-wordle-darkmode"))}catch(e){}e&&document.body.classList.add("dark")})();</script><script type="text/javascript">window.pageName = "wordle"</script><script type="text/javascript">window.env = {"version":"v2211301325","api":"https:\u002F\u002Fedge.games.nyti.nyt.net","tagx":"https:\u002F\u002Fa.nytimes.com","gtm":"https:\u002F\u002Fwww.googletagmanager.com\u002Fgtm.js?id=GTM-P528B3>m_auth=tfAzqo1rYDLgYhmTnSjPqw>m_preview=env-130>m_cookies_win=x","hostname":"https:\u002F\u002Fwww.nytimes.com","edge":"https:\u002F\u002Fwww.nytimes.com","name":"prod"}</script><script type="text/javascript">window.abra = {"config":{".ver":11031,"TEST_sharedPhoenix_0930":{"abtest_partition":[{"var":"agent_id"},"TEST_sharedPhoenix_0930",2147483647,"0_Control",4294967295,"1_sharedTreated"]},"ON_wordle_regi_modal":{"abtest_partition":[{"var":"agent_id"},"ON_wordle_regi_modal",4294967295,"1_regi_modal"]},"ON_wordleOnboardingOffer_0822":{"abtest_partition":[{"var":"agent_id"},"ON_wordleOnboardingOffer_0822",4294967295,"1_ShowOffer"]},"MKT_Spellingbee_banner_test_sub_0522":{"abtest_partition":[{"var":"agent_id"},"MKT_Spellingbee_banner_test_sub_0522",4294967295,"1_gift"]},"GAMES_wordle_appCta":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordle_appCta",4294967295,"0_Control"]},"GAMES_wordleWelcomeMoment_0621":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleWelcomeMoment_0621",4294967295,"1_EnableWordleWelcomeMoment"]},"GAMES_wordleSolutionV2BE_0817":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleSolutionV2BE_0817",4294967295,"1_EnableV2ServerSolution"]},"GAMES_wordleSolutionBE_0510":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleSolutionBE_0510",4294967295,"1_EnableServerSolution"]},"GAMES_wordleRollout_0419":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleRollout_0419",2147483647,"0_control",4294967295,"0_control"]},"GAMES_wordleProgress_0922":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleProgress_0922",85899345,null]},"GAMES_wordleMoogle_0422":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleMoogle_0422",429496729,"1_EnableMoogle",4294967295,"1_EnableMoogle"]},"GAMES_wordleCCPA_0427":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleCCPA_0427",4294967295,"1_EnableCCPA"]},"GAMES_wordleAuth_0427":{"abtest_partition":[{"var":"agent_id"},"GAMES_wordleAuth_0427",21474835,"1_EnableAuth",42949672,"1_EnableAuth",429496729,"1_EnableAuth",450971565,"1_EnableAuth",536870911,"1_EnableAuth",601295420,"1_EnableAuth",665719930,"1_EnableAuth",730144439,"1_EnableAuth",773094112,"1_EnableAuth",794568949,"1_EnableAuth",837518622,"1_EnableAuth",858993458,"1_EnableAuth",880468295,"1_EnableAuth",901943131,"1_EnableAuth",923417968,"1_EnableAuth",944892804,"1_EnableAuth",966367641,"1_EnableAuth",987842477,"1_EnableAuth",1009317314,"1_EnableAuth",1030792150,"1_EnableAuth",1052266987,"1_EnableAuth",1073741823,"1_EnableAuth",1095216659,"1_EnableAuth",1116691496,"1_EnableAuth",1181116005,"1_EnableAuth",1245540515,"1_EnableAuth",1309965024,"1_EnableAuth",1395864370,"1_EnableAuth",1438814043,"1_EnableAuth",1460288880,"1_EnableAuth",1481763716,"1_EnableAuth",1503238553,"1_EnableAuth",1524713389,"1_EnableAuth",1546188226,"1_EnableAuth",1567663062,"1_EnableAuth",1610612735,"1_EnableAuth",1632087571,"1_EnableAuth",1675037244,"1_EnableAuth",1717986917,"1_EnableAuth",1782411427,"1_EnableAuth",1889785609,"1_EnableAuth",1932735282,"1_EnableAuth",1975684955,"1_EnableAuth",2018634628,"1_EnableAuth",2040109465,"1_EnableAuth",2104533974,"1_EnableAuth",2126008811,"1_EnableAuth",4294967295,"1_EnableAuth"]},"GAMES_SB_welcome":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_welcome",2147483647,"0_Control",4294967295,"1_Download_App_Banner"]},"GAMES_SB_tips":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_tips",4294967295,"1_TipsAndTricks"]},"GAMES_SB_stats_anon_flow":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_stats_anon_flow",4294967295,"1_anon_flow"]},"GAMES_SB_stats":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_stats",4294967295,"1_Weekly_Stats"]},"GAMES_SB_recap":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_recap",4294967295,"1_Today_Genius"]},"GAMES_SB_rank":{"abtest_partition":[{"var":"agent_id"},"GAMES_SB_rank",4294967295,"1_Yesterday"]},"GAMES_SBSharing_1122":{"abtest_partition":[{"var":"agent_id"},"GAMES_SBSharing_1122",4294967295,"0_Control"]},"GAMES_SBCardRecap_0622":{"abtest_partition":[{"var":"agent_id"},"GAMES_SBCardRecap_0622",10737417,"0_Control",21474835,"1_RankOnly",32212254,"2_FoundWords",42949672,"3_Rank_FoundWords",64424508,"0_Control",85899345,"1_RankOnly",107374181,"2_FoundWords",128849018,"3_Rank_FoundWords",150323854,"0_Control",171798691,"1_RankOnly",193273527,"2_FoundWords",214748364,"3_Rank_FoundWords",322122546,"0_Control",429496729,"1_RankOnly",536870911,"2_FoundWords",644245093,"3_Rank_FoundWords",730144439,"0_Control",816043785,"1_RankOnly",901943131,"2_FoundWords",987842477,"3_Rank_FoundWords",1063004405,"0_Control",1138166332,"1_RankOnly",1213328260,"2_FoundWords",1288490188,"3_Rank_FoundWords",1385126952,"0_Control",1481763716,"1_RankOnly",1578400480,"2_FoundWords",1675037244,"3_Rank_FoundWords",1803886263,"0_Control",1932735282,"1_RankOnly",2061584301,"2_FoundWords",2190433320,"3_Rank_FoundWords",2276332666,"0_Control",2362232012,"1_RankOnly",2448131358,"2_FoundWords",2534030704,"3_Rank_FoundWords",2566242958,"0_Control",2598455213,"1_RankOnly",2630667468,"2_FoundWords",2662879723,"3_Rank_FoundWords",2695091977,"0_Control",2727304232,"1_RankOnly",2759516487,"2_FoundWords",2791728741,"3_Rank_FoundWords",2834678414,"0_Control",2877628087,"1_RankOnly",2920577760,"2_FoundWords",2963527433,"3_Rank_FoundWords",3027951943,"0_Control",3092376452,"1_RankOnly",3156800962,"2_FoundWords",3221225471,"3_Rank_FoundWords",3253437726,"0_Control",3285649980,"1_RankOnly",3317862235,"2_FoundWords",3350074490,"3_Rank_FoundWords",3371549326,"0_Control",3393024163,"1_RankOnly",3414498999,"2_FoundWords",3435973836,"3_Rank_FoundWords",3478923509,"0_Control",3521873182,"1_RankOnly",3564822855,"2_FoundWords",3607772528,"3_Rank_FoundWords",3650722201,"0_Control",3693671874,"1_RankOnly",3736621547,"2_FoundWords",3779571219,"3_Rank_FoundWords",3801046056,"0_Control",3822520892,"1_RankOnly",3843995729,"2_FoundWords",3865470565,"3_Rank_FoundWords",3876207984,"0_Control",3886945402,"1_RankOnly",3897682820,"2_FoundWords",3908420238,"3_Rank_FoundWords",3929895075,"0_Control",3951369911,"1_RankOnly",3972844748,"2_FoundWords",3994319584,"3_Rank_FoundWords",4015794421,"0_Control",4037269257,"1_RankOnly",4058744094,"2_FoundWords",4080218930,"3_Rank_FoundWords",4101693767,"0_Control",4123168603,"1_RankOnly",4144643440,"2_FoundWords",4166118276,"3_Rank_FoundWords",4176855694,"0_Control",4187593113,"1_RankOnly",4198330531,"2_FoundWords",4209067949,"3_Rank_FoundWords",4230542786,"0_Control",4252017622,"1_RankOnly",4273492459,"2_FoundWords",4294967295,"3_Rank_FoundWords"]},"GAMES_play_hybrid":{"abtest_partition":[{"var":"agent_id"},"GAMES_play_hybrid",3865470565,"0_Control",4294967295,"0_Control"]},"GAMES_clusterMigration_0513":{"abtest_partition":[{"var":"agent_id"},"GAMES_clusterMigration_0513",3865470565,"0_control",4294967295,"1_newCluster"]},"GAMES_Banner_Hasbro":{"abtest_partition":[{"var":"agent_id"},"GAMES_Banner_Hasbro",4294967295,"1_Activated_Banner"]},"GAMES_abra_test_0821":{"abtest_partition":[{"var":"regi_id"},"GAMES_abra_test_0821",2147483647,"0_Control",4294967295,"0_Control"]},"dfp_wordle_ad":{"abtest_partition":[{"var":"agent_id"},"dfp_wordle_ad",429496,"0_control",858992,"0_control",1717986,"0_control",3435973,"0_control",10307921,"0_control",18468358,"0_control",28776280,"0_control",32212254,"0_control",34789234,"0_control",35648228,"0_control",37366214,"0_control",38654705,"0_control",39084201,"0_control",39513698,"0_control",40372692,"0_control",41661182,"0_control",42090679,"0_control",42520175,"0_control",42949672,"0_control",4294967295,"1_topad"]},"DFP_Prebid_Price_0722":{"abtest_partition":[{"var":"agent_id"},"DFP_Prebid_Price_0722",4294967295,"0_Control"]},"AUD_wordleShareUrl":{"abtest_partition":[{"var":"agent_id"},"AUD_wordleShareUrl",21474835,null,42949672,null]}},"tests":{}}</script><script type="text/javascript">window.adUnitPath = "wordle"</script><script type="text/javascript">window.navigationLinks = {"subscribe":{"daily":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=4QHQ6","archive":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=4QHQF","gameplay":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=4R67W","congrats":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=4XKYJ","spellingBeeCard":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7QXX9","spellingBeePaywall":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7RJKF","spellingBeeBanner":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7HHK8","spellingBeeCutoffStart":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7F9J7","spellingBeeCutoffStop":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=79XQU","spellingBeeCutoffWelcomeBack":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7KK8Q","vertexCongratsMomentMidStarterPack":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=989YK","vertexCongratsMomentEndOfStarterPack":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9K9UL","vertexWelcomeMomentDailyPuzzle":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9RXHL","vertexPreviewPageNonsubs":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9J9RU","vertexTodaysPuzzle":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9KK7K","vertexDefault":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9HURJ","letterBoxedBanner":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7UHY9","letterBoxedCard":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=78UQ9","letterBoxedPaywall":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7JXU8","tilesWelcomeDesktop":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7U798","tilesWelcomeMobile":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7Y97X","tilesCongratsDesktop":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7Y8WW","tilesCongratsMobile":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7RYYF","tilesSettingsDesktop":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7XH8W","tilesSettingsMobile":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=7JR89","branding":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=9W9LL","default":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames?campaignId=4QHQ8"},"login":"https:\u002F\u002Fmyaccount.nytimes.com\u002Fauth\u002Fenter-email?redirect_uri=https%3A%2F%2Fwww.nytimes.com%2Fgames%2Fwordle%2Findex.html&response_type=cookie&client_id=games&application=crosswords","logout":"https:\u002F\u002Fmyaccount.nytimes.com\u002Fauth\u002Flogout?redirect_uri=https%3A%2F%2Fwww.nytimes.com%2Fgames%2Fwordle%2Findex.html","register":"https:\u002F\u002Fmyaccount.nytimes.com\u002Fauth\u002Fregister?redirect_uri=https%3A%2F%2Fwww.nytimes.com%2Fgames%2Fwordle%2Findex.html&response_type=cookie&client_id=games&application=crosswords","account":"https:\u002F\u002Faccount.nytimes.com","hub":"\u002Fcrosswords","archive":"\u002Fcrosswords\u002Farchive","daily":"\u002Fcrosswords\u002Fgame\u002Fdaily","mini":"\u002Fcrosswords\u002Fgame\u002Fmini","apps":"\u002Fcrosswords\u002Fapps","stats":"\u002Fpuzzles\u002Fstats","leaderboards":"\u002Fpuzzles\u002Fleaderboards","spellingBee":"\u002Fpuzzles\u002Fspelling-bee","wordle":"\u002Fgames\u002Fwordle\u002Findex.html","tiles":"\u002Fpuzzles\u002Ftiles","letterBoxed":"\u002Fpuzzles\u002Fletter-boxed","vertex":"\u002Fpuzzles\u002Fvertex","sudoku":"\u002Fpuzzles\u002Fsudoku","submission":"https:\u002F\u002Fnytimes.com\u002Farticle\u002Fsubmit-crossword-puzzles-the-new-york-times.html","sbForum":"https:\u002F\u002Fwww.nytimes.com\u002Fspotlight\u002Fspelling-bee-forum","home":"https:\u002F\u002Fwww.nytimes.com","wordplay":"https:\u002F\u002Fwww.nytimes.com\u002Fcolumn\u002Fwordplay","guide":"https:\u002F\u002Fwww.nytimes.com\u002Fguides\u002Fcrosswords\u002Fhow-to-solve-a-crossword-puzzle","gift":"https:\u002F\u002Fwww.nytimes.com\u002Fsubscription\u002Fgames\u002Fgift","privacy":"https:\u002F\u002Fwww.nytimes.com\u002Fprivacy\u002Fprivacy-policy","faq":"https:\u002F\u002Fhelp.nytimes.com\u002Fhc\u002Fen-us\u002Farticles\u002F115014755667-New-York-Times-Crossword","shop":"https:\u002F\u002Fstore.nytimes.com\u002Fcollections\u002Fgames","termsOfService":"https:\u002F\u002Fhelp.nytimes.com\u002Fhc\u002Fen-us\u002Farticles\u002F115014893428-Terms-of-service","sitemap":"https:\u002F\u002Fwww.nytimes.com\u002Fsitemap\u002F","company":"https:\u002F\u002Fwww.nytco.com\u002F","feedback":"mailto:nytgames@nytimes.com","twitter":"https:\u002F\u002Ftwitter.com\u002FNYTGames"}</script><script type="text/javascript">window.featureFlags = {"testFeatureFlag":false}</script><script type="text/javascript">window.sentryConfig = {"dsn":"https:\u002F\u002Fb15f0ccff04b4466b8d941c594953d95@o82024.ingest.sentry.io\u002F5839863","release":"77c5c305818f8e60286e28af5f0869295df7864e","sampleRate":"0.005","environment":"prod"}</script><script type="text/javascript">window.purrDirectiveFormat = {"PURR_DataSaleOptOutUI_v2":{"index":7,"values":{"h":"hide","s":"show","o":"show-opted-out"},"default":"hide","queryParam":"opt-out"},"PURR_CaliforniaNoticesUI":{"index":8,"values":{"h":"hide","s":"show"},"default":"hide","queryParam":"california-notices"},"PURR_AdConfiguration_v3":{"index":11,"values":{"f":"full","r":"rdp","n":"npa","s":"adluce-socrates","l":"ltd"},"default":"full","queryParam":"ad-config"},"PURR_LimitSensitivePI":{"index":12,"values":{"h":"hide","s":"show"},"default":"hide","queryParam":"limit-sensitive-information"}}</script><div id="ratio-hook"></div><div id="width-hook"></div><script defer="" type="text/javascript" src="https://www.nytimes.com/games-assets/v2/polyfills.77c5c305818f8e60286e28af5f0869295df7864e.js"></script><script id="responsive.js" defer="" type="text/javascript">!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).Responsive={})}(this,function(n){"use strict";var e=["transitionend","webkitTransitionEnd","oTransitionEnd","msTransitionEnd"].find(function(n){return"on".concat(n.toLowerCase())in window});function t(n){var t=[],i=document.getElementById(n),o={value:null==i?void 0:i.offsetWidth,subscribe:function(n){return t.push(n),function(){t.splice(t.indexOf(n),1)}}};return null!=i&&i.addEventListener(e,function(){var n=null==i?void 0:i.offsetWidth;if(o.value=n,t.length)for(var e=t.length;0<e;)t[--e](n)},!1),o}var i=document.body.classList.contains("pz-mobile"),o=t("ratio-hook"),d=t("width-hook");n.isMobile=i,n.ratio=o,n.width=d,Object.defineProperty(n,"__esModule",{value:!0})});
//# sourceMappingURL=responsive.77c5c305818f8e60286e28af5f0869295df7864e.js.map
</script><script id="native-bridge.js" defer="" type="text/javascript">/**
* Write properties to the window necessary before rendering. This is injected before most scripts.
*/
const setHybridWindowProperties = () => {
const qs = document.location.search.toLowerCase() || ''
/**
* Returns URLSearchParams for for window.location.search
*/
const getParams = () => new URLSearchParams(window.location.search)
/**
* Determine if the user agent indicates we're in the Android Newsreader WebView.
* Special case: for hybrid spelling-bee, the user agent will include 'Reader/'
*
* Example UAs:
* "nyt_android/9.13"
* "Reader/9.13"
*/
const isAndroidNewsreaderWebView = (userAgent = '') => {
const androidRegex = /nyt[-_]?android/i
const sbUserAgent = 'Reader/'
return (
userAgent.includes(sbUserAgent) || androidRegex.test(userAgent)
)
}
/**
* Determine if the user agent indicates we're in the iOS Newsreader WebView.
*
* Example UAs:
* "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) nytios/9.33.0"
* "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) nytios/9.33.0"
*/
const isIOSNewsreaderWebView = (userAgent = '') => {
const iOSRegex = /nyt[-_]?ios/i
return iOSRegex.test(userAgent)
}
/**
* Determine if we are in a WebView. We'll look at a few different things here
* and short-circuit evaluate to avoid doing more progressively expensive or
* sketchy things.
*
* We look at rid query param cause iOS app appends that to any Games WebView.
* And then we can look at user agent, cause that'll never go wrong.
*
* Some helpful reading from hybrid folks:
* https://docs.google.com/document/d/10PNzQxXIHImtuh2c-VLRuH7yUGDgCh7zxqMrYMxg1eQ
*/
const determineNewsreaderAppPlatform = () => {
const params = getParams()
const iosQueryParams = ['ios', 'ipad', 'iphone']
const androidQueryParams = [
'android',
'androidtab',
'androidphone',
]
const embed = params.get('embed') || ''
const rid = params.get('rid') || ''
const { userAgent } = navigator
if (
iosQueryParams.includes(embed) ||
rid ||
isIOSNewsreaderWebView(userAgent)
) {
return 'ios'
}
if (
androidQueryParams.includes(embed) ||
isAndroidNewsreaderWebView(userAgent)
) {
return 'android'
}
return ''
}
/**
* Determine if the user agent indicates we're in the Android Crossword WebView.
* Example UA: "Crosswords/4.12.0 (Android; Android 8.1.0; Build 0/debug)"
*/
const isAndroidCrosswordWebView = (userAgent = '') => {
return userAgent.includes('Crosswords/')
}
/**
* Determine if the user agent indicates we're in the iOS Crossword WebView.
* Example UA: "nyt_xwords_ios/4.10"
*/
const isIOSCrosswordWebView = (userAgent = '') => {
return userAgent.includes('nyt_xwords_ios/')
}
/**
* Determine if we are in a Crossword WebView based on the user agent.
*/
const determineGamesAppPlatform = () => {
const params = getParams()
const { userAgent } = navigator
if (
isIOSCrosswordWebView(userAgent) ||
params.get('hybrid') === 'games' ||
params.get('embed') === 'games-ios'
) {
return 'ios'
}
if (isAndroidCrosswordWebView(userAgent) ||
params.get('embed') === 'games-android'
) {
return 'android'
}
return ''
}
/**
* Determines if a request originated from the iOS Newsreader Play tab.
*/
function determinePlayTab() {
const params = getParams()
const playTabParam = 'playTab'
if (
params.get('entry') === playTabParam &&
determineNewsreaderAppPlatform() === 'ios'
) {
return true
}
return false
}
/**
* Determine if the user is in a webview from the Newsreader app
*/
if (typeof window.newsreaderAppPlatform === 'undefined') {
window.newsreaderAppPlatform = determineNewsreaderAppPlatform()
}
/**
* Determine if the user is in a webview from the Crossword app
*/
if (typeof window.gamesAppPlatform === 'undefined') {
window.gamesAppPlatform = determineGamesAppPlatform()
}
/**
* Determine if the user is in a webview from the Crossword app
*/
if (typeof window.isPlayTab === 'undefined') {
window.isPlayTab = determinePlayTab()
}
/**
* For Games that are cached in Fastly, determine here whether or not to enable
* them to use Hybrid Webviews.
*
* For Games, not cached in Fastly yet, see server/util/createPageProps.js
*/
const isHybridEnabledPage = (pageName) => {
const HYBRID_ENABLED_PAGES = [
'wordle',
]
return !!HYBRID_ENABLED_PAGES.find((enabledPage) => pageName.includes(enabledPage))
}
/**
* Rather than determine we're in a hybrid webview by sniffing the user agent, we
* will check for the existence of the NYTG property, which is present when a
* browser is a webview that has hybrid capabilities. Additionally, let's allow
* this to be mocked when running in a unit test or local browser environment.
*
* Before setting this value we check to see if the server wrote it out. This ensures
* backwards compatibility for games still server rendering this value.
*/
if (typeof window.isHybridWebView === 'undefined') {
/**
* Rules for determining whether or not to enable
* a hybrid game in Phoenix
*/
window.isHybridWebView =
// There needs to be an NYTG property
typeof window.NYTG !== 'undefined' &&
// This must be a page we enabled
isHybridEnabledPage(window.pageName) &&
// Until we launch, turn off hybrid for Wordle not in Games apps
determineGamesAppPlatform()
}
// If we are mocking for local dev or testing, force to true
if (qs.indexOf('bridge=mock') !== -1) {
window.isHybridWebView = true
}
}
setHybridWindowProperties()
var InitNativeBridge=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n),t.d(n,"initNativeBridge",(function(){return a}));const r="undefined"!=typeof CustomEvent?CustomEvent:class{constructor(){throw new Error("This class is only intended for use on the client")}};class i extends r{constructor(e,n){super(e,n),this.respondWithPromise=null,this.alreadyResolved=!1}respondWith(e){if(null!==this.respondWithPromise)throw new Error("respondWith has already been called on this event.");if(!0===this.alreadyResolved)throw new Error("You must respond to this event synchronously (you can respond with a Promise)");const n=Promise.resolve(e);this.respondWithPromise=n}}const o=(e,n,t)=>(r,o,s)=>{const a=new i(n+o,{detail:s});t.dispatchEvent(a);const c=async function(e){return e.alreadyResolved=!0,e.respondWithPromise?e.respondWithPromise:Promise.resolve(null)}(a);if(!("onWebCommandResult"in e.NYTG))return c;c.then(n=>{e.NYTG.onWebCommandResult(JSON.stringify({id:r,success:!0,values:n}))}).catch(n=>{e.NYTG.onWebCommandResult(JSON.stringify({id:r,success:!1,error:n.name,errorDetails:n.message}))})},s=(e,n,t)=>{var r,i;const s=null==e||null===(r=e.navigator)||void 0===r||null===(i=r.native)||void 0===i?void 0:i.bridgeCommands,a=((e,n,t,r)=>(i,o)=>{const s=e.NYTG.currentAsyncID;return e.NYTG.currentAsyncID+=1,new Promise((a,c)=>{if(t&&!n.isBridgeCommandAvailable(i,r))throw new Error("[NativeBridge] command ".concat(i," not supported"));try{if(e.NYTG.storedCallbacks[s])throw new Error("Callback already stored in position ".concat(s));e.NYTG.storedCallbacks[s]=e=>{if(!e.success){const n=new Error(e.error);return n.details=e.error.details,c(n)}return a(e)}}catch(e){const n=new Error("Something went wrong creating the callback with ID ".concat(s,". Error: ").concat(JSON.stringify(e)));c(n)}try{var d;e.NYTG.enqueue(JSON.stringify({id:s,type:i,options:o,senderURI:(null===(d=e.asset)||void 0===d?void 0:d.uri)||""}))}catch(e){console.log("[NativeBridge]: Caught error while enqueing: ".concat(e))}})})(e,n,t,s),c=(e=>n=>new Promise((t,r)=>{try{var i,o;const s=null==e||null===(i=e.navigator)||void 0===i||null===(o=i.native)||void 0===o?void 0:o.activeABTestVariants;return void 0===s?r(new Error("root.navigator.native.activeABTestVariants is undefined")):Array.isArray(s)?t(s.indexOf(n)>-1):r(new Error("Variant Array is not an array"))}catch(e){return r(new Error("Something went wrong checking if user is in variant. Error: ".concat(JSON.stringify(e))))}}))(e);(e=>{e.NYTG.onCommandResult||(e.NYTG.onCommandResult=n=>{const t=e.NYTG.storedCallbacks[n.id];t?(t(n),delete e.NYTG.storedCallbacks[n.id]):console.log("Callback with ID ".concat(n.id," not found."))})})(e),n.isBridgeCommandAvailable=e=>((e,n)=>{try{if("__initialize"===e)return!0;const t=n[e];return!1!=!!t&&!!t.enabled}catch(e){return!1}})(e,s),((e,n,t)=>{let r,i="";try{r=new e.EventTarget}catch(n){r=e,i="__nyt_native_bridge:"}e.initializeCommandComplete=!1,n.addEventListener=(n,t,o)=>{e.initializeCommandComplete&&console.warn("You should set NativeBridge listeners immediately on page load to avoid missing events the native side dispatches immediately"),r.addEventListener(i+n,t,o)},n.removeEventListener=(e,n,t)=>r.removeEventListener(i+e,n,t);const s=o(e,i,r);e.NYTG.enqueueWebCommand=({id:e,type:n,options:t})=>s(e,n,t),t("__initialize").then(()=>{e.initializeCommandComplete=!0}).catch(()=>{console.warn("This environment does not support native->web events")})})(e,n,a);const d=(e=>()=>new Promise((n,t)=>{document.addEventListener("DOMContentLoaded",()=>{if(void 0!==e.config)n(e.config);else{const e=new Error("No root config found.");t(e)}})}))(e);return n.hybridConfig=()=>d(),{NativeBridge:n,dispatchNativeBridgeCommandAsync:a,checkIsInVariantAsync:c}},a=(e,n=!0)=>{if(e&&e.NativeBridge)return e.NativeBridge;let t=e&&e.NativeBridge||{};if(void 0===e)return t;e.NYTG=e.NYTG||{},e.NYTG.currentAsyncID=0,e.NYTG.storedCallbacks={};const r=s(e,t,n),{dispatchNativeBridgeCommandAsync:i,checkIsInVariantAsync:o}=r;return t=r.NativeBridge,t.callNativeBridgeCommand=i,t.checkIsInVariant=o,e.NativeBridge=t,t}}]);</script><script defer="" type="text/javascript" src="https://www.nytimes.com/games-assets/v2/foundation.77c5c305818f8e60286e28af5f0869295df7864e.js"></script><script defer="" type="text/javascript" src="https://www.nytimes.com/games-assets/v2/react-bundle.77c5c305818f8e60286e28af5f0869295df7864e.js"></script><script defer="" type="text/javascript" src="https://www.nytimes.com/games-assets/v2/wordle.77c5c305818f8e60286e28af5f0869295df7864e.js"></script><script type="text/javascript">var AdSlot4=function(){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,d=e[Symbol.iterator]();!(i=(a=d.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==d.return||d.return()}finally{if(o)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d,l,b=(d={},l={},{publish:function e(t){var n=t.name,i=void 0===n?"":n,n=t.value,o=void 0===n?{}:n,t=t.scope,t=void 0===t?"page":t;"all"!==t&&e({name:i,value:o,scope:"all"}),d[i]||(d[i]={}),d[i][t]||(d[i][t]=[]),d[i][t].push(o),l[i]&&l[i][t]&&l[i][t].forEach(function(e){e(o)})},subscribe:function(e){var t=e.name,n=void 0===t?"":t,t=e.callback,i=void 0===t?function(){}:t,e=e.scope,o=void 0===e?"page":e;l[n]||(l[n]={}),l[n][o]||(l[n][o]=[]);var r=l[n][o].push(i)-1;return d[n]&&d[n][o]&&d[n][o].length&&d[n][o].forEach(function(e){i(e)}),{remove:function(){return l[n][o].splice(r,1)}}},unsubscribeToAll:function(t){Object.keys(l).forEach(function(e){l[e]&&l[e][t]&&delete l[e][t]}),Object.keys(d).forEach(function(e){d[e]&&d[e][t]&&delete d[e][t]})}});function R(e,t,n,i,o,r){var a=1<arguments.length&&void 0!==t?t:0,d=2<arguments.length&&void 0!==n?n:0,l=3<arguments.length&&void 0!==i?i:0,s=4<arguments.length&&void 0!==o?o:0,u=!(5<arguments.length&&void 0!==r)||r;if(!e||1!==e.nodeType)return!1;var c=e.getBoundingClientRect(),t=c.top-a,n=c.left,i=c.bottom,o=c.right,r=0,e=0,a=window.innerHeight,c=window.innerWidth;return u?r+l*s<=i&&e+d*s<=o&&t<=a-l*s&&n<=c-d*s:r<=t&&i<=a}function w(e,t,n){var i="".concat(e,"-").concat(t);try{performance.mark(i),performance.measure(i,n,i);var o=performance.getEntriesByName(i).find(function(e){return"measure"===e.entryType});return o?Math.round(o.duration):0}catch(e){return 0}}function t(e){return-1!==document.cookie.indexOf(e)}function n(e){var t={PURR_AcceptableTrackers:0,PURR_AdConfiguration:5,PURR_DataSaleOptOutUI:2,PURR_DataProcessingConsentUI:3,PURR_AcceptableTrackers_v2:4,PURR_AdConfiguration_v2:5,PURR_DataProcessingPreferenceUI:6,PURR_DataSaleOptOutUI_v2:7,PURR_CaliforniaNoticesUI:8,PURR_EmailMarketingOptInUI:9,PURR_DeleteIPAddress:10,PURR_AdConfiguration_v3:11},n=function(e){e=("; "+document.cookie).split("; "+e+"=");return 2===e.length?e.pop().split(";").shift():null}(e),i={};return Object.keys(t).forEach(function(e){i[e]=function(e,t){t=new RegExp("^.{"+t+"}(.)"),t=e.match(t);return(null==t?void 0:t[1])||""}(n,t[e])}),E.forEach(function(t){Object.keys(t.valueMapping).forEach(function(e){t.valueMapping[e]===i[t.name]&&(i[t.name]=e)})}),i}function e(){var e;try{return function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent||window.navigator.vendor,t=-1!==e.indexOf("nyt_android"),n=-1!==e.indexOf("nytios"),i=-1!==e.indexOf("nyt_xwords_ios"),e=-1!==e.indexOf("Crosswords");return t||n||i||e}()?null!==(e=null===window||void 0===window?void 0:window.config)&&void 0!==e&&e.PurrDirectives?window.config.PurrDirectives:t("override-purr")?n("override-purr"):m({},h):t("nyt-purr")?n("nyt-purr"):m({},h)}catch(e){return console.warn("can’t get directives from cookie or config",e),m({},h)}}function s(){return function(e){e=e||window.location.search,e=new URLSearchParams(e);return e&&e.get("privacy-override")}()||e().PURR_AdConfiguration_v3||e().PURR_AdConfiguration_v2}var _="message",y="visibilitychange",u="mouseenter",c="mouseleave",D="readystatechange",P="unload",T="slotRequested",I="slotResponseReceived",O="slotRenderEnded",S="slotOnload",L="impressionViewable",U={RESPONSE_START:"responseStart",TIME_DEFINED:"timeDefined",TIME_CALLED:"timeCalled",TIME_CALL_SENT:"timeCallSent",TIME_RECEIVED:"timeReceived",TIME_RENDERED:"timeRendered",TIME_LOADED:"timeLoaded",TIME_VIEWED:"timeViewed"},M={AD_EMPTY:"AdEmpty",AD_BLOCK_ON:"AdBlockOn",AD_DEFINED:"AdDefined",AD_CALLED:"AdCalled",AD_REFRESHED:"AdRefreshed",AD_REQUEST_SENT:"AdRequestSent",AD_RESPONSE:"AdResponse",AD_RENDERED:"AdRendered",AD_LOADED:"AdLoaded",AD_SLOT_READY:"AdSlotReady",AD_VIEWABLE:"AdViewable",AD_ENTERED_VIEWPORT:"AdEnteredViewport",AD_LEFT_VIEWPORT:"AdLeftViewport",AD_MOUSE_ENTER:"AdMouseEnter",AD_MOUSE_LEAVE:"AdMouseLeave"},p="AdBlockOn",C="AdsDisabled",v="GptError",k="pos",f="request_time",m=function(){return(m=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},E=[{name:"PURR_AcceptableTrackers",valueMapping:{controllers:"c",processors:"p"}},{name:"PURR_AdConfiguration",valueMapping:{full:"f",npa:"n","adluce-socrates":"s"}},{name:"PURR_DataSaleOptOutUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_DataProcessingConsentUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_AcceptableTrackers_v2",valueMapping:{controllers:"c",processors:"p",essentials:"e"}},{name:"PURR_AdConfiguration_v2",valueMapping:{full:"f",rdp:"r",npa:"n",adluce:"a","adluce-socrates":"s"}},{name:"PURR_DataProcessingPreferenceUI",valueMapping:{hide:"h","allow-opt-out":"o","allow-opt-in":"i","allow-opt-in-or-out":"a"}},{name:"PURR_DataSaleOptOutUI_v2",valueMapping:{hide:"h",show:"s","show-opted-out":"o"}},{name:"PURR_CaliforniaNoticesUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_EmailMarketingOptInUI",valueMapping:{checked:"c",unchecked:"u"}},{name:"PURR_DeleteIPAddress",valueMapping:{delete:"d",keep:"k"}},{name:"PURR_AdConfiguration_v3",valueMapping:{full:"f",rdp:"r",npa:"n",ltd:"l","adluce-socrates":"s"}}],h={PURR_DataSaleOptOutUI:"hide",PURR_DataSaleOptOutUI_v2:"hide",PURR_CaliforniaNoticesUI:"hide",PURR_DataProcessingConsentUI:"hide",PURR_DataProcessingPreferenceUI:"hide",PURR_AcceptableTrackers_v2:"controllers",PURR_AcceptableTrackers:"controllers",PURR_AdConfiguration_v2:"full",PURR_AdConfiguration:"full",PURR_EmailMarketingOptInUI:"checked",PURR_DeleteIPAddress:"delete",PURR_AdConfiguration_v3:"full"},A="rdp",N="npa",j="ltd",V="adluce-socrates";var z=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;return e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],e.googletag};function x(){var e,t,n,i=function(){window.googletag?z().cmd.push(function(){z()._loadStarted_||b.publish({name:M.AD_EMPTY,value:{type:p}})}):b.publish({name:M.AD_EMPTY,value:{type:v}})},o=s()===j?"https://pagead2.googlesyndication.com/tag/js/gpt.js":"https://securepubads.g.doubleclick.net/tag/js/gpt.js";z().apiReady?i():(e=o,t=i,n=function(){b.publish({name:M.AD_EMPTY,value:{type:v}})},o=document.getElementsByTagName("head")[0],i=document.createElement("script"),t&&(i.onload=t),n&&(i.onerror=n),i.src=e,i.async=!0,o.appendChild(i))}var q=function(e,t){b.publish({name:M.AD_CALLED,scope:e.id,value:i({id:e.id,position:e.position,slot:e.slot},U.TIME_CALLED,t)})};function F(i){z().cmd.push(function(){var e=i.id,t=i.slot,n=w(e,U.TIME_CALLED,U.RESPONSE_START);q(i,n),window.apstag&&window.apstag.setDisplayBids&&window.apstag.setDisplayBids(),t.setTargeting(f,n.toString()),z().display(e)})}var W=function(){b.publish({name:M.AD_REFRESHED,scope:"all"})};function Y(e,t){W(),z().cmd.push(function(){e&&e.forEach(function(e){var t=e.getSlotElementId(),n=w(t,U.TIME_CALLED,U.RESPONSE_START);q(t,e),e.setTargeting(f,n.toString())}),e&&t?z().pubads().refresh(e,t):e?z().pubads().refresh(e):t?z().pubads().refresh(null,t):z().pubads().refresh()})}function B(e,t){var n=e.displayed,i=e.slot;t.isRefresh&&n?(Y([i],t.changeCorrelator?null:{changeCorrelator:!1}),t.changeCorrelator=!1):(F(e),e.displayed=!0)}var K=function(e,t){return!!(e&&t&&t.unobserve&&"function"==typeof t.unobserve)&&(t.unobserve(e),!0)};function $(e,t,n,i){var e=0<arguments.length&&void 0!==e?e:{},o=1<arguments.length?t:void 0,r=2<arguments.length?n:void 0,a=3<arguments.length?i:void 0;if(e.exclusive&&e.div){var d,l=e.div;switch(e.type){case"only-child":!function(e,t){t=1<arguments.length&&void 0!==t?t:{},(e=e&&e.empty||t.unrenderedAds||[]).length&&e.forEach(function(e){K(e.AdSlotElement,e.observer),b.publish({name:M.AD_EMPTY,value:{type:e.id},scope:e.id})}),t.unrenderedAds=[],t.stopAdCalls=!0}({empty:function(t,e){return e=1<arguments.length&&void 0!==e?e:{},Object.values(e).filter(function(e){return t!==e.id})}(l,o)},a);break;case"family-plan":void 0!==(d=o[l]&&o[l].slot&&(o[l].slot.getResponseInformation()||{}).lineItemId)&&r({adv:d,excl:"family"});break;case"blank":b.publish({name:M.AD_EMPTY,value:{type:l},scope:l})}return 1}}function H(e){return!!(e||(t=document.referrer||"",(e=/([a-zA-Z0-9_\-.]+)(@|%40)([a-zA-Z0-9_\-.]+).([a-zA-Z]{2,5})/).test(t)||e.test(window.location.href))||s()===V);var t}function Z(t){return z().pubads().getSlots().find(function(e){return e.getSlotElementId()===t})}function Q(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},t=new IntersectionObserver(function(e,t){e=e[0];n(e,t)},t);return e&&t.observe(e),t}function G(e,t){b.publish({name:t,scope:e.id,value:{id:e.id,position:e.position,creativeId:e.creativeId,lineItemId:e.lineItemId}})}function J(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};t.potentiallyViewable&&(null!==(e=t.viewabilityTimeout)&&void 0!==e||(t.viewabilityTimeout=setTimeout(function(){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};delete e.viewabilityTimeout,delete e.potentiallyViewable,e.viewable=!0,G(e,M.AD_ENTERED_VIEWPORT)}(t)},1e3)))}function X(i,e){return Q(e,{root:null,rootMargin:"0px",threshold:oe},function(e){return n=i,void((t=e).target&&(e=242e3<=t.target.clientWidth*t.target.clientHeight?ie:ne,(e=t.intersectionRatio>=e)||(delete n.potentiallyViewable,clearTimeout(n.viewabilityTimeout),delete n.viewabilityTimeout),t.isIntersecting?!e||n.potentiallyViewable||n.viewable||(n.potentiallyViewable=!0,J(n)):n.viewable&&(G(n,M.AD_LEFT_VIEWPORT),delete n.viewable)));var t,n})}function ee(o,e,r){return Q(o.AdSlotElement,{root:null,rootMargin:"".concat(e,"px"),threshold:0},function(e,t){return n=t,i=o,t=r,void(e.isIntersecting&&(B(i,t),n.unobserve(i.AdSlotElement)));var n,i})}var te={init:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.adsDisabled,n=e.adTargeting,n=void 0===n?{}:n;return(t=t||H())||(z().cmd.push(function(){!function(){switch(s()){case A:z().pubads().setPrivacySettings({restrictDataProcessing:!0});break;case N:z().pubads().setRequestNonPersonalizedAds(1);break;case j:z().pubads().setPrivacySettings({limitedAds:!0})}}()}),n=g(g({},n),{},{purr:s()})),g(g({},e),{},{adTargeting:n,adsDisabled:t})}},ne=.5,ie=.3,oe=[0,ne,ie];function re(e,t,n,i){e.displayed||(e.observer=ee(e,i,n),n.unrenderedAds.push(e)),e.viewabilityObserver=X(e),t[e.id]=e}function ae(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};e.viewabilityTimeout&&(clearTimeout(e.viewabilityTimeout),delete e.viewabilityTimeout),e.viewable&&(delete e.viewable,e.potentiallyViewable=!0,G(e,M.AD_LEFT_VIEWPORT))}function de(e){var t=(e.target.parentNode.id.match(/^google/)?e.target.parentNode:e.target).parentNode.id,n=(i=Z(t)).getTargeting(k),i=(o=i.getResponseInformation()).sourceAgnosticCreativeId,o=o.sourceAgnosticLineItemId;b.publish({name:e.type===u?M.AD_MOUSE_ENTER:M.AD_MOUSE_LEAVE,scope:t,value:{type:e.type===u?"hover_mouse_enter":"hover_mouse_leave",id:t,position:n,creativeId:i,lineItemId:o}})}function le(){return console.warn("::warning:: this function is deprecated")}function se(){return!("undefined"==typeof window||!window.document||!window.document.createElement)&&window.self!==window.top}function ue(e,t,n){return z().defineSlot(e,t,n)}function ce(t,e){return(e=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return!Number.isNaN(Number(e[0]))&&1<e.length}).sort(function(e,t){return t[0]-e[0]})}(e).find(function(e){return e[0]<=t}))&&e[1]||[]}function pe(e){var t=e.observer,n=e.viewabilityObserver,i=e.AdSlotElement;return null!=t&&t.unobserve(i),e.observer=null,delete e.potentiallyViewable,e.viewabilityObserver=(t=n,(n=null==i?void 0:i.querySelector("iframe"))&&(null!=t&&t.unobserve(n),i=c,n.removeEventListener(u,de),n.removeEventListener(i,de)),t),e}function ve(e,t){var n=null==t?void 0:t.querySelector("iframe");return(e=pe(e)).AdSlotElement=t,e.viewabilityObserver=X(e,n),null!=n&&n.addEventListener(u,de),null!=n&&n.addEventListener(c,de),e}function fe(e){return e&&null!=e&&e.getSlotElementId&&null!=e&&e.getTargeting?{id:e.getSlotElementId(),position:e.getTargeting(k)[0]||""}:{}}function ge(e){var t=(i=fe(e.slot)).id,n=i.position,i=w(t,U.TIME_CALL_SENT,U.RESPONSE_START);b.publish({name:M.AD_REQUEST_SENT,value:g(g({},e),{},{id:t,position:n,timeCallSent:i}),scope:t})}function me(e){var t=(i=fe(e.slot)).id,n=i.position,i=w(t,U.TIME_RECEIVED,"".concat(t,"-").concat(U.TIME_CALLED));b.publish({name:M.AD_RESPONSE,value:g(g({},e),{},{id:t,position:n,timeReceived:i}),scope:t})}function Ee(e){var t=(o=fe(e.slot)).id,n=o.position,i=(r=e.slot.getResponseInformation()).sourceAgnosticCreativeId,o=r.sourceAgnosticLineItemId,r=w(t,U.TIME_VIEWED,"".concat(t,"-").concat(U.TIME_CALLED));b.publish({name:M.AD_VIEWABLE,value:g(g({},e),{},{id:t,position:n,creativeId:i,lineItemId:o,timeViewed:r}),scope:t})}function he(e){var t=window.location.href,e=e.replace(/[[]]/g,"\$&"),t=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return t&&t[2]?decodeURIComponent(t[2].replace(/\+/g,"")):""}function Ae(e){var t=he("ad-keywords"),o=g(g({},e),{},{vp:window.matchMedia("(min-width: 970px)").matches?"large":window.matchMedia("(min-width: 728px)").matches?"medium":"small",uap:(e=window.navigator.userAgent).match(/(nyt)[_wd-]*(ios)/i)?"ios":e.match(/(nyt)[_wd-]*(android)/i)?"android":"browser",aid:(e="nyt-a",(document&&document.cookie&&document.cookie.match&&(e=document.cookie.match(new RegExp("".concat(e,"=([^;]+)"))))?e[1]:"")||null)},t?i({},"adv",t):null);return z().cmd.push(function(){var n,t,i=(n=o,t=z().pubads().getTargetingKeys(),Object.keys(n).filter(function(e){return t.indexOf(e)<0}).reduce(function(e,t){return e[t]=n[t],e},{}));Object.keys(i).forEach(function(e){z().pubads().setTargeting(e,i[e])})}),o}function be(e){return function(){Object.values(e()).forEach(function(e){e.viewable&&G(e,M.AD_LEFT_VIEWPORT)})}}function Re(e){return function(){"visible"===document.visibilityState?Object.values(e()).forEach(J):Object.values(e()).forEach(ae)}}var we={default:[[0,[0,0]]]},_e=[[0,[50,50]]];return function(){if(window.AdSlot4&&window.AdSlot4.init)return window.AdSlot4;var t={},m=window.AdSlot4||{};m.events=b,m.getSlot=Z,m.refreshAdsInView=Y,m.getAdsOnPage=function(){return t},m.getAdOnPage=function(e){return t[e]};function p(){return E}var v=[te],E={isRefresh:!1,changeCorrelator:!1,stopAdCalls:!1,unrenderedAds:[]},h=[],A=!0,f=!1;if(m.initializeAd=function(r,e){var t,n;if(!m.props)return m.events.subscribe({name:M.AD_SLOT_READY,callback:function(){return m.initializeAd(r,e)}}),!1;var i,o,a=m.props,d=a.adUnitPath,l=a.sizeMapping,s=a.hideTopAd,u=a.adsDisabled,c=e.id,p=e.position,a=e.sizeKey,v=e.lazyLoad,f=e.truePosition,g=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:we,n=he("unfillAd");return"all"===n||e&&e===n?_e:e in t?t[e]:t.default}(a||p,l);return("top"!==p||!s)&&(u?(m.events.publish({name:M.AD_EMPTY,value:{type:C}}),!1):!c||!d||!g||null!=r&&null!==(t=r.classList)&&void 0!==t&&t.contains("placed-ad")||null!=r&&null!==(n=r.parentNode)&&void 0!==n&&null!==(o=n.classList)&&void 0!==o&&o.contains("placed-ad")||h.includes(c)?(!h.includes(c)||(i=m.getAdsOnPage())&&i[c]&&r!==i[c].AdSlotElement&&re(ve(i[c],r),i,E,m.props.offset),!1):E.stopAdCalls?(m.events.publish({name:M.AD_EMPTY,value:{type:c},scope:c}),!1):(o=h,(i=c)&&o.push(i),z().cmd.push(function(){var e,t,n,e=(e=c,t=d,i=g,se()?o=ue(t,ce(window.outerWidth,i),e):(o=ue(t,["fluid"],e),n=z().sizeMapping(),[].concat(i).forEach(function(e){n.addSize([e[0],0],e[1])}),null!==o&&void 0!==o&&o.defineSizeMapping(n.build())),o),i=f||p;null!=e&&e.setTargeting("div",c),null!=e&&e.setTargeting(k,i),null!=e&&e.setCollapseEmptyDiv(!0),null!=e&&e.addService(z().pubads());var o=ve({id:c,slot:e,position:i,sizes:g,viewabilityObserver:null},r);m.events.publish({name:M.AD_DEFINED,value:{id:c,pos:i,sizes:g,truePosition:f,timeDefined:w(c,U.TIME_DEFINED,U.RESPONSE_START),slot:e},scope:c});i=m.getAdsOnPage();v&&!R(r,0,0,0,0,A)||(i[c]&&i[c].slot?Y([e]):F(o),o.displayed=!0),re(o,i,E,m.props.offset)}),!0))},m.fillPlacements=function(e){return!!m.props&&(!m.props.adsDisabled&&(function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0,i=0;i<e.length;i++){var o=e[i],r=o.id,a=o.dataset,d=a.position,l=a.sizeKey,s=a.lazyLoad,u=void 0===s?"true":s,c=a.slotId,s="false"!==u,a=o,u=d,d=c&&c!==r;(r||c)&&u&&(d&&!t||!d)&&(d&&(u=c,(d=document.createElement("div")).id=c,d.setAttribute("style","display: block; text-align: center; height: 100%"),a=d,o.appendChild(d)),n(a,{id:a.id,position:u,sizeKey:l,lazyLoad:s}),o.classList.add("placed-ad"))}}(document.querySelectorAll(".place-ad:not(.placed-ad)"),e,m.initializeAd),!0))},m.updateAdReq=function(t,n){m.props.adsDisabled||z().cmd.push(function(){var e=n&&m.getAdOnPage(n);m.props.adTargeting=function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length?arguments[2]:void 0,r={};return Object.keys(i).forEach(function(e){var t,n="".concat(i[e]);o?null!==(t=o.setTargeting)&&void 0!==t&&t.call(o,e,n):(r[e]=n,z().pubads().setTargeting(e,n))}),g(g({},e),r)}(t,m.getAdReq(),e)})},m.getAdReq=function(){return m.props&&m.props.adTargeting||{}},m.refreshAds=function(){var i;m.props.adsDisabled||(E.isRefresh=!0,E.changeCorrelator=!0,E.unrenderedAds=[],A=!1,h=[],i=m.getAdsOnPage(),Object.entries(i).forEach(function(e){var t=r(e,2),n=t[0],e=t[1],t=e.displayed;E.unrenderedAds.push(e),t&&(i[n]=pe(e),ae(e),e.observer=ee(e,m.props.offset,E))}),setTimeout(function(){A=!0},2e3))},m.removeAdPlacement=function(n){z().cmd.push(function(){var e,t=Z(n);z().destroySlots([t]),e=n,e=(t=h).indexOf(e),t.splice(e,1)})},m.init=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(m.isAdSlotReady())return!1;var t,n,i,o=e.plugins,r=(v=o||v).reduce(function(e,t){return t.init&&t.init(e)||e},e),a=r.adTargeting,d=void 0===a?{}:a,l=r.adUnitPath,s=void 0===l?"":l,u=r.offset,c=void 0===u?400:u,o=r.lockdownAds,e=void 0!==o&&o,a=r.hideTopAd,l=void 0!==a&&a,u=r.sizeMapping,o=void 0===u?{}:u,a=r.haltDFP,u=r.adsDisabled,r=/^tragedy$/i.test(s),r=a||u||r;return m.props={adTargeting:d,adUnitPath:s,offset:c,sizeMapping:o,hideTopAd:l,adsDisabled:r},r?m.events.publish({name:M.AD_EMPTY,value:{type:C}}):(Ae(d),z().cmd.push(function(){z().enableServices(),m.fillPlacements(!0);function t(){m.fillPlacements()}function n(){return"complete"===document.readyState}var r,a;n()?t():document.addEventListener(D,function e(){n()&&(document.removeEventListener(D,e),t())}),window.addEventListener(P,be),window.document.addEventListener(y,Re),z().pubads().addEventListener(T,ge),z().pubads().addEventListener(I,me),z().pubads().addEventListener(O,(r=m.getAdOnPage,function(e){var t=fe(e.slot),n=t.id,i=t.position,o=w(n,U.TIME_RENDERED,"".concat(n,"-").concat(U.TIME_CALLED)),t=r(n);t&&(t.creativeId=e.sourceAgnosticCreativeId,t.lineItemId=e.sourceAgnosticLineItemId),e.isEmpty?b.publish({name:M.AD_EMPTY,value:g(g({},e),{},{type:n,id:n,position:i,timeRendered:o}),scope:n}):b.publish({name:M.AD_RENDERED,value:g(g({},e),{},{id:n,position:i,timeRendered:o}),scope:n})})),z().pubads().addEventListener(S,(a=m.getAdsOnPage,function(e){var t=fe(e.slot),n=t.id,i=t.position,o=a(),t=o[n];o[n]=ve(t,t.AdSlotElement);t=w(n,U.TIME_LOADED,"".concat(n,"-").concat(U.TIME_CALLED));b.publish({name:M.AD_LOADED,value:g(g({},e),{},{id:n,position:i,timeLoaded:t}),scope:n})})),z().pubads().addEventListener(L,Ee)}),e?z().cmd.push(function(){z().pubads().setForceSafeFrame(!0)}):(t=m.getAdsOnPage,n=m.updateAdReq,i=p,window&&window.addEventListener&&window.addEventListener(_,function(e){!function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return!(!e||!((null===(e=e.location)||void 0===e?void 0:e.origin)===t||null!==(e=t.match)&&void 0!==e&&e.call(t,/(safeframe|tpc).googlesyndication.com$/)))}(window,e.origin)||$(e.data,t(),n,i())},!1)),x()),f=!0,m.events.publish({name:M.AD_SLOT_READY}),f},m.isAdSlotReady=function(){return f},m.cmd)for(;m.cmd.length;)m.cmd.shift()();return m.cmd={length:0,push:function(e){e()}},window.AdSlot4=m,window.AdSlot={placeDynamicAds:m.fillPlacements,getSlot:m.getSlot,setTargeting:function(e,t){var n={};n[e]=t,m.updateAdReq(n)},setSlotTargeting:function(e,t,n){var i={};i[t]=n,m.updateAdReq(i,e.getSlotElementId())},displayAd:F,removeAdPlacement:m.removeAdPlacement,dispatch:le,destroyAdSlots:function(){z().cmd.push(function(){z().destroySlots()})},checkAdsInViewport:function(){E.unrenderedAds=E.unrenderedAds.filter(function(e){var t=e.AdSlotElement,t=R(t,A?m.props.offset:0,0,0,0,A);return(e.potentiallyViewable=t)&&B(e,E),!t})},refresh:m.refreshAds,AdSlotReady:!0,adTargeting:m.props&&m.props.adTargeting||{}},m}()}();var AdSlot4=function(){"use strict";function a(){return window.AdSlot4=window.AdSlot4||{},window.AdSlot4.cmd=window.AdSlot4.cmd||[],window.AdSlot4}function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function t(e){return-1!==document.cookie.indexOf(e)}function o(e){var n={PURR_AcceptableTrackers:0,PURR_AdConfiguration:5,PURR_DataSaleOptOutUI:2,PURR_DataProcessingConsentUI:3,PURR_AcceptableTrackers_v2:4,PURR_AdConfiguration_v2:5,PURR_DataProcessingPreferenceUI:6,PURR_DataSaleOptOutUI_v2:7,PURR_CaliforniaNoticesUI:8,PURR_EmailMarketingOptInUI:9,PURR_DeleteIPAddress:10,PURR_AdConfiguration_v3:11},t=function(e){e=("; "+document.cookie).split("; "+e+"=");return 2===e.length?e.pop().split(";").shift():null}(e),o={};return Object.keys(n).forEach(function(e){o[e]=function(e,n){n=new RegExp("^.{"+n+"}(.)"),n=e.match(n);return(null==n?void 0:n[1])||""}(t,n[e])}),d.forEach(function(n){Object.keys(n.valueMapping).forEach(function(e){n.valueMapping[e]===o[n.name]&&(o[n.name]=e)})}),o}function i(){var e;try{return function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent||window.navigator.vendor,n=-1!==e.indexOf("nyt_android"),t=-1!==e.indexOf("nytios"),o=-1!==e.indexOf("nyt_xwords_ios"),e=-1!==e.indexOf("Crosswords");return n||t||o||e}()?null!==(e=null===window||void 0===window?void 0:window.config)&&void 0!==e&&e.PurrDirectives?window.config.PurrDirectives:t("override-purr")?o("override-purr"):r({},c):t("nyt-purr")?o("nyt-purr"):r({},c)}catch(e){return console.warn("can’t get directives from cookie or config",e),r({},c)}}var r=function(){return(r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},d=[{name:"PURR_AcceptableTrackers",valueMapping:{controllers:"c",processors:"p"}},{name:"PURR_AdConfiguration",valueMapping:{full:"f",npa:"n","adluce-socrates":"s"}},{name:"PURR_DataSaleOptOutUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_DataProcessingConsentUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_AcceptableTrackers_v2",valueMapping:{controllers:"c",processors:"p",essentials:"e"}},{name:"PURR_AdConfiguration_v2",valueMapping:{full:"f",rdp:"r",npa:"n",adluce:"a","adluce-socrates":"s"}},{name:"PURR_DataProcessingPreferenceUI",valueMapping:{hide:"h","allow-opt-out":"o","allow-opt-in":"i","allow-opt-in-or-out":"a"}},{name:"PURR_DataSaleOptOutUI_v2",valueMapping:{hide:"h",show:"s","show-opted-out":"o"}},{name:"PURR_CaliforniaNoticesUI",valueMapping:{hide:"h",show:"s"}},{name:"PURR_EmailMarketingOptInUI",valueMapping:{checked:"c",unchecked:"u"}},{name:"PURR_DeleteIPAddress",valueMapping:{delete:"d",keep:"k"}},{name:"PURR_AdConfiguration_v3",valueMapping:{full:"f",rdp:"r",npa:"n",ltd:"l","adluce-socrates":"s"}}],c={PURR_DataSaleOptOutUI:"hide",PURR_DataSaleOptOutUI_v2:"hide",PURR_CaliforniaNoticesUI:"hide",PURR_DataProcessingConsentUI:"hide",PURR_DataProcessingPreferenceUI:"hide",PURR_AcceptableTrackers_v2:"controllers",PURR_AcceptableTrackers:"controllers",PURR_AdConfiguration_v2:"full",PURR_AdConfiguration:"full",PURR_EmailMarketingOptInUI:"checked",PURR_DeleteIPAddress:"delete",PURR_AdConfiguration_v3:"full"};function e(){return"full"===(e={},n()&&(e=i().PURR_AdConfiguration_v3||i().PURR_AdConfiguration_v2),e);var e}function u(){return!(!!n()&&null!==window.navigator.userAgent.match(/nyt[-_]?(?:ios|android)/i))&&e()}function l(e,n,t){var o=document.getElementsByTagName("head")[0],i=document.createElement("script");n&&(i.onload=n),t&&(i.onerror=t),i.src=e,i.async=!0,o.appendChild(i)}function s(){a().cmd.push(function(){var e="".concat("GeoEdge"," failed to load");a().events.publish({name:h,value:{message:e}})})}function p(){return!window.grumi&&(l("//rumcdn.geoedge.be/b3960cc6-bfd2-4adc-910c-6e917e8a6a0e/grumi-ip.js",null,s),window.grumi={key:"b3960cc6-bfd2-4adc-910c-6e917e8a6a0e",cfg:{advs:v}})}function m(){var e;window.apstag||(e="".concat(_," not loading properly"),console.warn(e))}function f(){a().cmd.push(function(){var e="".concat(_," failed to load");a().events.publish({name:U,value:{type:_,message:e}})})}function w(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;return e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],e.googletag}function g(e){return!(!window.apstag||!window.apstag.fetchBids)&&(window.apstag.fetchBids({slots:e},void(window.apstag&&window.apstag.setDisplayBids&&w().cmd.push(window.apstag.setDisplayBids()))),!0)}var v={32074718:!0,4792640386:!0,21966278:!0,4558311760:!0,4552626466:!0,4400775978:!0,39318518:!0,4874174581:!0,33597638:!0,38636678:!0,38637278:!0,33597998:!0,33613118:!0},h="script_loader_error",_="A9",b=[[300,250],[728,90],[970,90],[970,250]],R="large",P="medium",y="small",U="BidderError",A="AdEmpty",k="AdBlockOn",x="AdDefined",I="AdRefreshed";function C(e,n){var t;return(e=[].concat((t=n,[].concat(e).slice().sort(function(e,n){return n[0]-e[0]}).find(function(e){return!Number.isNaN(e[0])&&e[0]<t}))).pop())&&e.length?e:null}function D(i){return function(){var e,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=n.sizes,o=void 0===t?[]:t,t=n.truePosition,n=n.id,o=C(o,window.innerWidth),o=(e=o,Array.isArray(e)?b.filter(function(n){return e.some(function(e){return e[0]===n[0]&&e[1]===n[1]})}):(console.warn("filterSizes() did not receive an array"),[]));if(0<o.length){o=[{slotID:t||n,slotName:"".concat(t||n,"_").concat(i,"_web"),sizes:o}];return g(o),!0}return!1}}function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function z(t,o){return E.map(function(e){var n=e.id,e=e.sizes;return{slotID:n,slotName:"".concat(n,"_").concat(o,"_web"),sizes:(e=e)[t]||e[y]}})}function S(n,t){a().cmd.push(function(){var e;n&&g(z(740<(e=window.innerWidth)?R:600<e?P:y,t)),a().events.subscribe({name:x,scope:"all",callback:D(t)})})}function j(e,n,t){(function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"apstag",o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window;return o[t]||(e=function(e,n){return o[t]._Q.push([e,n])},o[t]={_Q:[],init:function(){e("i",arguments)},fetchBids:function(){e("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]}}),o[t]})("apstag",window).init({pubID:"3030",adServer:"googletag",params:{si_section:n}}),S(e,t)}function T(e,n){var t;switch(n.includes(H)?H:n){case q:t=e.top;break;case H:t=e.mid;break;case Q:t=e.bottom;break;default:t=e.default}return t}function M(e){var n;switch(e){case"livebl":n="hp";break;case"int":n="art";break;case"coll":n="sf";break;default:n=e}return n in B||(n="default"),n}var E=[{id:"dfp-ad-top",sizes:(O(ce={},R,[[728,90],[970,90],[970,250]]),O(ce,P,[[728,90],[300,250]]),O(ce,y,[[300,250],[300,420]]),ce)},{id:"top",sizes:(O(de={},R,[[728,90],[970,90],[970,250]]),O(de,P,[[728,90],[300,250]]),O(de,y,[[300,250],[300,420]]),de)}],B={art:{id:["top","story-ad-1","story-ad-2","story-ad-3","story-ad-4","story-ad-5","story-ad-6","bottom"],pos:["top","mid1","mid2","mid3","mid4","mid5","mid6","bottom"]},hp:{id:["dfp-ad-top","dfp-ad-mid1","dfp-ad-mid2","dfp-ad-mid3","dfp-ad-bottom"],pos:["top","mid1","mid2","mid3","bottom"]},ss:{id:["right-0","right-1","right-2","right-3"],pos:["mid1","mid1","mid1","mid1"],size:{small:[[300,250]],medium:[[300,250]],large:[[300,250]]}},sf:{id:["top","mid1","mid2"],pos:["top","mid1","mid2"],size:{small:[[300,250],[300,420]],medium:[[300,250],[300,420]],large:[[300,250],[300,420]]}},games:{id:["TopAd","TopAd1"],pos:["top","bottom"]},default:{id:["top","mid1","mid2"],pos:["top","mid1","mid2"],size:{small:[[300,250],[300,420]],medium:[[728,90]],large:[[728,90],[970,90],[970,250]]}}},N={top:2088370,mid:2088372,bottom:2088374,default:2088376},Y={top:544112060,mid:544112063,bottom:544112062,default:544112065},V={top:684296214,mid:190706820,bottom:932254072,default:153468583},F={top:"NYTimes_728x90_970_top_PB",mid:"NYTimes_728x90_970_mid_PB",botom:"NYTimes_728x90_970_bot_PB",default:"NYTimes_728x90_970_mid_PB"},G={buckets:[{max:10,increment:.05},{max:20,increment:.1},{max:50,increment:.5},{max:101,increment:1}]},q="top",H="mid",Q="bottom";function W(o,e,i){var a=M(e),r=B[a].size?a:"default";return B[a].pos.reduce(function(e,n,t){t=B[a].id[t],t={code:t,mediaTypes:{banner:{sizeConfig:[{minViewPort:[970,0],sizes:(i&&i[t]?i[t]:B[r]).size.large},{minViewPort:[728,0],sizes:(i&&i[t]?i[t]:B[r]).size.medium},{minViewPort:[0,0],sizes:B[r].size.small}]}},bids:(t=n,[{bidder:"appnexus",params:{member:3661,invCode:"nyt_".concat(n=o,"_").concat(t)}},{bidder:"medianet",params:{cid:"8CU4WQK98",crid:T(V,t)}},{bidder:"rubicon",params:{accountId:12330,siteId:378266,inventory:{invCode:["nyt_".concat(n,"_").concat(t)]},zoneId:T(N,t)}},{bidder:"openx",params:{unit:T(Y,t),delDomain:"nytimes-d.openx.net",customParams:{invCode:"nyt_".concat(n,"_").concat(t)}}},{bidder:"triplelift",params:{inventoryCode:T(F,t)}}])};return e.push(t),e},[])}function Z(t){window.pbjs=window.pbjs||{},window.pbjs.initAdserverSet||(window.pbjs.initAdserverSet=!0,a().cmd.push(function(){a().events.subscribe({name:x,scope:"all",callback:function(n){w().cmd.push(function(){var e;(e=M(e=t),B[e].id).includes(n.id)&&window.pbjs.setTargetingForGPTAsync([n.id])})}})}))}function K(t,e,n,o){function i(e,n){window.pbjs.initAdserverSet=!1,t.requestBids({bidsBackHandler:function(){Z(e)},timeout:n})}a().cmd.push(function(){t.que.push(function(){t.addAdUnits(W(e,n,o)),i(n,1e4),a().events.subscribe({name:I,scope:"all",callback:function(){i(n,800)}})})})}function L(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;return e.pbjs=e.pbjs||{},e.pbjs.que=e.pbjs.que||[],e.pbjs}(),i=t.priceGranularity,t=t.sizeConfig;o.setConfig({priceGranularity:i||G}),K(o,e,n,t)}function J(){a().cmd.push(function(){var e="".concat("PreBid"," failed to load");a().events.publish({name:U,value:{type:"PreBid",message:e}})})}function X(e,n,t){return!window.pbjs&&(l("https://www.nytimes.com/ads/prebid6.8.0.js",(o=e,i=n,a=t,function(){window.pbjs||console.log("prebid did not load"),L(o,i,a)}),J),!0);var o,i,a}function $(){try{var e=((n=document.createElement("div")).innerHTML=" ",n.className="ad adsbox pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad ad-server",n.style="width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",document.body.prepend(n),document.getElementsByClassName("ad adsbox")[0]),n=!(!(n=e)||0!==n.offsetHeight&&0!==n.clientHeight)||function(e){if(void 0!==window.getComputedStyle){e=window.getComputedStyle(e,null);if(e&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility")))return!0}return!1}(e);return e=e,document.body.removeChild(e),n}catch(e){console.error("ad class check failed",e)}var n;return!1}function ee(){return!(window&&window.AdSlot&&window.AdSlot.AdSlotReady)||(!(window&&window.googletag&&window.googletag.apiReady)||$())}function ne(){var e=window&&window.nyt_et&&window.nyt_et.get_host&&window.nyt_et.get_host();return e?fetch("".concat(e,"/.status"),{credentials:"include",headers:{accept:"*/*","content-type":"text/plain;charset=UTF-8"},mode:"no-cors"}).then(function(){return{success:!0}}).catch(function(e){return console.error("et track blocked",e),{success:!1}}):Promise.resolve({success:!1})}function te(e,n,t){var o=(i="nyt-a",(document&&document.cookie&&document.cookie.match&&(i=document.cookie.match(new RegExp("".concat(i,"=([^;]+)"))))?i[1]:"")||null),i=!!(window&&window.matchMedia&&window.matchMedia("(max-width: 739px)").matches);return"".concat("https://a-reporting.nytimes.com/report.jpg","?mobile=").concat(i,"&block=").concat(t,"&aid=").concat(o,"&pvid=").concat(e,"&et=").concat(n)}function oe(e,n,t){return!!(window&&window.NYTD&&window.NYTD.Abra&&"1_network_detection"===window.NYTD.Abra("DFP_blockDetect_0221"))&&((new Image).src=te(e,n,t),!0)}function ie(e,n){n&&a().cmd.push(function(){var e=a();e.events&&e.events.publish({name:A,value:{type:k}})});var t=!1;return ne().then(function(){t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{success:!1}).success}).catch(function(){}).finally(function(){oe(e,t,n)})}function ae(e){var n;window.addEventListener("load",(n=e,function(){ie(n,ee())}))}var re,de,ce=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(re)return!1;var n=e.loadAmazon,t=void 0===n||n,o=e.loadPrebid,i=void 0===o||o,a=e.setFastFetch,r=void 0!==a&&a,d=e.loadGeoEdge,c=void 0===d||d,s=e.section,n=void 0===s?"none":s,o=e.pageViewId,a=void 0===o?"":o,d=e.pageType,s=void 0===d?"":d,o=e.prebidOverrides,d=void 0===o?{}:o;return e=document.referrer||"",!(o=/([a-zA-Z0-9_\-.]+)(@|%40)([a-zA-Z0-9_\-.]+).([a-zA-Z]{2,5})/).test(e)&&!o.test(window.location.href)&&(u()&&(s=new RegExp(/art/).test(s)?"art":s,c&&p(),t&&(c=r,t=n,r=s,window.apstag||(l("//c.amazon-adsystem.com/aax2/apstag.js",m,f),j(c,t,r))),i&&X(n,s,d)),ae(a),re=!0)};return(de=a()).loadScripts=de.loadScripts||ce,window.AdSlot4=de}();</script><script type="text/javascript">!function(r){var n,t;r=r||self,n=r.Abra,(t=r.Abra=function(){"use strict";var r=Array.isArray,n=function(r,n,t){var e=r(t,n),u=e[0],o=e[1];if(null==u||""===u)return n;for(var i=String(u).split("."),a=0;a<i.length&&(n=n[i[a]]);a++);return null==n&&(n=o),null!=n?n:null},t=function(r,n,t){return r(t,n).reduce((function(r,n){return parseFloat(r)+parseFloat(n)}),0)},e=function(r,n,t){var e=r(t,n);return e[0]/e[1]},u=function(r,n,t){var e=r(t,n);return e[0]%e[1]},o=function(r,n,t){return r(t,n).reduce((function(r,n){return parseFloat(r)*parseFloat(n)}),1)},i=function(r,n,t){var e=r(t,n),u=e[0],o=e[1];return void 0===o?-u:u-o};function a(n){return!(r(n)&&0===n.length||!n)}var f=function(r,n,t){for(var e,u=0;u<t.length;u++)if(!a(e=r(t[u],n)))return e;return e},c=function(r,n,t){var e;for(e=0;e<t.length-1;e+=2)if(a(r(t[e],n)))return r(t[e+1],n);return t.length===e+1?r(t[e],n):null},l=function(r,n,t){return!a(r(t,n)[0])},v=function(r,n,t){for(var e,u=0;u<t.length;u++)if(a(e=r(t[u],n)))return e;return e},d=function(r,n,t){var e=r(t,n);return e[0]===e[1]},s=function(r,n,t){var e=r(t,n);return e[0]!==e[1]},h=function(r,n,t){var e=r(t,n),u=e[0],o=e[1];return!(!o||void 0===o.indexOf)&&-1!==o.indexOf(u)},g=function(r,n,t){var e=r(t,n);return e[0]>e[1]},p=function(r,n,t){var e=r(t,n);return e[0]>=e[1]},b=function(r,n,t){var e=r(t,n),u=e[0],o=e[1],i=e[2];return void 0===i?u<o:u<o&&o<i},w=function(r,n,t){var e=r(t,n),u=e[0],o=e[1],i=e[2];return void 0===i?u<=o:u<=o&&o<=i},y=function(r,n,t){var e=t[0],u=t[1],o=t.slice(2),i=r(e,n);if(!i)return null;if(0===o.length)return null;if(1===o.length)return r(o[0],n);if(4294967295===o[0])return r(o[1],n);for(var a=function(r){var n,t,e,u,o,i=[],a=[t=1732584193,e=4023233417,~t,~e,3285377520],f=[],c=unescape(encodeURI(r))+"\x80",l=c.length;for(f[r=--l/4+2|15]=8*l;~l;)f[l>>2]|=c.charCodeAt(l)<<8*~l--;for(n=l=0;n<r;n+=16){for(t=a;l<80;t=[t[4]+(i[l]=l<16?~~f[n+l]:2*c|c<0)+1518500249+[e&u|~e&o,c=341275144+(e^u^o),882459459+(e&u|e&o|u&o),c+1535694389][l++/5>>2]+((c=t[0])<<5|c>>>27),c,e<<30|e>>>2,u,o])c=i[l-3]^i[l-8]^i[l-14]^i[l-16],e=t[1],u=t[2],o=t[3];for(l=5;l;)a[--l]+=t[l]}return a[0]>>>0}(i+" "+r(u,n));o.length>1;){var f=o.splice(0,2),c=f[0],l=f[1];if(a<=r(c,n))return r(l,n)}return 0===o.length?null:r(o[0],n)},k=function(r,n,t){var e=t[0],u=t[1],o=r(e,n);return null==o?null:new RegExp(u).test(o)};return function(a,m,O,A){void 0===a&&(a={}),void 0===m&&(m={}),void 0===O&&(O={}),void 0===A&&(A=!1);var j=function(){var r={},n=function(n){if(n)for(var t,e=decodeURIComponent(n[1]),u=/(?:^|,)([^,=]+)=([^,]*)/g;t=u.exec(e);){var o=t,i=o[1],a=o[2];r[i]=a||null}};n(document.cookie.match(/(?:^|;) *abra-overrides=([^;]+)/)),n(window.location.search.match(/(?:\?|&)abra-overrides=([^&]+)/));var t=/(?:^|;) *abra-nuke=true(?:;|$)/.test(document.cookie)||/(?:\?|&)abra-nuke=true(?:&|$)/.test(window.location.search);return[r,t]}(),x=j[0],E=j[1];Object.keys(O).forEach((function(r){x[r]=O[r]}));var F,C=A||E,R=(F={var:n,if:c,"===":d,"!==":s,and:f,or:v,"!":l,">":g,">=":p,"<":b,"<=":w,"+":t,"-":i,"*":o,"/":e,"%":u,in:h,abtest_partition:y,regex_match:k,ref:function(r,n,t){var e=r(t,n)[0];return U(e)}},function n(t,e){if(e||(e={}),r(t))return t.map((function(r){return n(r,e)}));if(!function(n){return"object"==typeof n&&null!==n&&!r(n)&&1===Object.keys(n).length}(t))return t;var u=function(r){return Object.keys(r)[0]}(t),o=t[u];r(o)||(o=[o]);var i=F[u];if(!i)throw new Error("Unrecognized operation "+u);return i(n,e,o)}),U=function(r){if(!r)return null;var n=x[r];if(void 0===n){if(!C){if(Object.prototype.hasOwnProperty.call(x,r))throw new Error("circular logic");x[r]=void 0,n=R(a[r],m)}void 0===n&&(n=null),x[r]=n}return n};return U}}()).noConflict=function(){return r.Abra=n,t}}(this);
</script><script id="android-config" type="text/javascript">//[-NYTHYBRIDCONFIG-]</script></body></html>