\n
\n You're watching a daily free preview\n \n
\n Preview expires in 00:00\n \n \n \n Subscribe\n \n \n",OVERLAY_STYLE="\n .freeview-overlay {\n position: absolute;\n top: 20px;\n right: 20px;\n background: rgba(12, 12, 12, 0.9);\n color: #fff;\n z-index: 5;\n display: flex;\n align-items: center;\n padding: 12px 15px;\n border-radius: 4px;\n }\n\n .freeview-overlay__cta {\n background: #f13a3a;\n font-size: 13px;\n line-height: 36px;\n padding: 0 16px;\n text-align: center;\n border-radius: 4px;\n font-weight: bold;\n margin-left: 25px;\n cursor: pointer;\n }\n\n .freeview-overlay__t1-copy, .freeview-overlay__t2-copy {\n margin: 0;\n line-height: 18px;\n }\n\n .freeview-overlay__t1-copy {\n font-weight: bold;\n font-size: 13px;\n }\n\n .freeview-overlay__t2-copy {\n font-size: 12px;\n }\n";module.exports=PreviewOverlay;
}, {"10":10,"11":11,"12":12}];
window.modules["3492"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_objectWithoutProperties2=_interopRequireDefault(require(163)),_excluded=["apiVersion","mediaType","servingHost"],_compact=require(3347),_get=require(1);function addCropAndSizeOptions(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.crop,i=void 0===r?{}:r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.extraCropCommands,u=void 0===c?[]:c,d=[],p=[],s=a.h,l=a.w,h=i.x,m=i.y,v=i.height,_=i.width,g=e.includes("?c="),b=e.includes("?q=")&&!g;b||g||(v&&d.push("h_".concat(v)),_&&d.push("w_".concat(_)),void 0!==h&&d.push("x_".concat(h)),void 0!==m&&d.push("y_".concat(m)),(h||m)&&d.push("c_crop")),s&&p.push("h_".concat(s)),l&&p.push("w_".concat(l)),b||d.length||!p.length||p.push("c_fill");var q=n||_compact([d.join(","),p.join(","),u.join(",")]).join("/")||"",x="?q=";return g?x="&q=":b&&(x="/"),_compact([e,q]).join(x)}function buildUrl(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.ratio,i=void 0===r?"original":r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.servingHost,u=o.damDocumentType,d=o.extraCropCommands,p=_get(e,["data","crops",i],_get(e,["crops",i],{})),s=p.uri||e.uri;return addCropAndSizeOptions(s&&"".concat(c,"/api/v1/").concat(u).concat(s)||e.url||"",{crop:p,ratioSize:a,rawQuery:n,extraCropCommands:d})}function buildUrlFromUri(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.apiVersion,i=void 0===r?"v1":r,t=o.mediaType,a=void 0===t?"images":t,n=o.servingHost,c=(0,_objectWithoutProperties2.default)(o,_excluded);return addCropAndSizeOptions("".concat(n,"/api/").concat(i,"/").concat(a).concat(e),c)}module.exports.buildUrl=buildUrl,module.exports.buildUrlFromUri=buildUrlFromUri;
}, {"1":1,"10":10,"163":163,"3347":3347}];
window.modules["3493"] = [function(require,module,exports){"use strict";const htmlTags=require(3657),basic=/\s?|(]*>|]*>|
]+>)+/i,full=new RegExp(htmlTags.map(t=>`<${t}\\b[^>]*>`).join("|"),"i");module.exports=(t=>basic.test(t)||full.test(t));
}, {"3657":3657}];
window.modules["3499"] = [function(require,module,exports){"use strict";var isFinite=require(3359),isString=require(333),isBoolean=require(3357);function propertyValue(r,e,i){var o,t;if(null==r||null===(o=r.trim)||void 0===o||null===(t=o.call(r))||void 0===t||!t.length)throw new Error("Invalid propertyId provided: (".concat(r,", ").concat(e,")"));if(!isValidPropertyValueArgs(r,e))throw new Error("Invalid propertyValue provided: (".concat(r,", ").concat(e,")"));return{"@type":"PropertyValue",propertyID:r,name:i||r,value:e}}function isValidPropertyValueArgs(r,e){return!!(isFinite(e)||isString(e)||isBoolean(e))}module.exports={isValidPropertyValueArgs:isValidPropertyValueArgs,propertyValue:propertyValue};
}, {"333":333,"3357":3357,"3359":3359}];
window.modules["3500"] = [function(require,module,exports){"use strict";module.exports={of:"Ù",for:"Ù","https://www.cnn.com":"https://arabic.cnn.com","See More Videos":"شاÙد اÙÙ
زÙد","minute read":"Ùراءة دÙÙÙØ©",Published:" ",Updated:" ","Draft - created":"Ù
سÙدة - تÙ
Ø¥ÙشاؤÙا",Clear:"ÙاضØ",Displaying:"عرض","results out of":"اÙÙتائج Ù
Ù","Sort by":"Ùرز Øسب","Sorting by":"اÙÙرز Øسب",Newest:"اÙØ£Øدث",Relevancy:"اÙصÙØ©","Your search for":"بØث٠عÙ","did not match any results":"ÙÙ
تتطاب٠Ù
ع Ø£Ù Ùتائج","A few suggestions":"بعض اÙاÙتراØات","Make sure all words are spelled correctly":"تأÙد Ù
Ù Ùتابة جÙ
Ùع اÙÙÙÙ
ات بشÙ٠صØÙØ","Try different keywords":"جرب ÙÙÙ
ات رئÙسÙØ© Ù
ختÙÙØ©","Try more general keywords":"ØاÙ٠استخداÙ
ÙÙÙ
ات رئÙسÙØ© Ø£Ùثر عÙ
ÙÙ
ÙØ©",Prev:"اÙسابÙ",Next:"اÙتاÙÙ",Everything:"Ù٠شئ",Stories:"Ùصص",Videos:"اÙÙÙدÙÙÙات",Photos:"اÙصÙر",Source:"Ù
صدر","Now playing":"تشغÙ٠اÙØ¢Ù"};
}, {}];
window.modules["3501"] = [function(require,module,exports){"use strict";module.exports={of:"de",for:"para","https://www.cnn.com":"https://cnnespanol.cnn.com","See More Videos":"Ver Más","minute read":"min de lectura",Published:" ",Updated:" ","Draft - created":"Borrador - creado",Clear:"Limpiar búsqueda",Displaying:"Mostrando","results out of":"resultados de","Sort by":"Ordenar por","Sorting by":"Ordenando por",Newest:"Lo más reciente",Relevancy:"Relevancia","Your search for":"Tu búsqueda de","did not match any results":"no coincide con ningún resultado","A few suggestions":"Algunas sugerencias","Make sure all words are spelled correctly":"Asegúrate de que todas las palabras estén escritas correctamente","Try different keywords":"Prueba diferentes palabras clave","Try more general keywords":"Prueba palabras clave más generales",Prev:"Anterior",Next:"Siguiente",Everything:"Todo",Stories:"ArtÃculos",Videos:"Videos",Photos:"Fotos",Source:"Fuente","Now playing":"En curso","Hide description":"Ocultar descripción","Show description":"Mostrar descripción"};
}, {}];
window.modules["3524"] = [function(require,module,exports){"use strict";exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var e=o.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function byteLength(o){var r=getLens(o),e=r[0],t=r[1];return 3*(e+t)/4-t}function _byteLength(o,r,e){return 3*(r+e)/4-e}function toByteArray(o){var r,e,t=getLens(o),n=t[0],u=t[1],p=new Arr(_byteLength(o,n,u)),a=0,h=u>0?n-4:n;for(e=0;e>16&255,p[a++]=r>>8&255,p[a++]=255&r;return 2===u&&(r=revLookup[o.charCodeAt(e)]<<2|revLookup[o.charCodeAt(e+1)]>>4,p[a++]=255&r),1===u&&(r=revLookup[o.charCodeAt(e)]<<10|revLookup[o.charCodeAt(e+1)]<<4|revLookup[o.charCodeAt(e+2)]>>2,p[a++]=r>>8&255,p[a++]=255&r),p}function tripletToBase64(o){return lookup[o>>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[63&o]}function encodeChunk(o,r,e){for(var t,n=[],u=r;up?p:u+16383));return 1===t?(r=o[e-1],n.push(lookup[r>>2]+lookup[r<<4&63]+"==")):2===t&&(r=(o[e-2]<<8)+o[e-1],n.push(lookup[r>>10]+lookup[r>>4&63]+lookup[r<<2&63]+"=")),n.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;
}, {}];
window.modules["3586"] = [function(require,module,exports){exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
}, {}];
window.modules["3656"] = [function(require,module,exports){module.exports=[
"a",
"abbr",
"address",
"area",
"article",
"aside",
"audio",
"b",
"base",
"bdi",
"bdo",
"blockquote",
"body",
"br",
"button",
"canvas",
"caption",
"cite",
"code",
"col",
"colgroup",
"data",
"datalist",
"dd",
"del",
"details",
"dfn",
"dialog",
"div",
"dl",
"dt",
"em",
"embed",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"head",
"header",
"hgroup",
"hr",
"html",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"label",
"legend",
"li",
"link",
"main",
"map",
"mark",
"math",
"menu",
"menuitem",
"meta",
"meter",
"nav",
"noscript",
"object",
"ol",
"optgroup",
"option",
"output",
"p",
"param",
"picture",
"pre",
"progress",
"q",
"rb",
"rp",
"rt",
"rtc",
"ruby",
"s",
"samp",
"script",
"section",
"select",
"slot",
"small",
"source",
"span",
"strong",
"style",
"sub",
"summary",
"sup",
"svg",
"table",
"tbody",
"td",
"template",
"textarea",
"tfoot",
"th",
"thead",
"time",
"title",
"tr",
"track",
"u",
"ul",
"var",
"video",
"wbr"
]
}, {}];
window.modules["3657"] = [function(require,module,exports){"use strict";module.exports=require(3656);
}, {"3656":3656}];
window.modules["footer.client"] = [function(require,module,exports){"use strict";var enableUserConsentLink=function(e){var n=e.querySelector(".footer__links .uclink");window.WM&&window.WM.UserConsent&&0!==window.WM.UserConsent.getLinkTitle().length&&n&&(n.text=window.WM.UserConsent.getLinkTitle(),n.onclick=window.WM.UserConsent.getLinkAction(),n.style.display="block",n.style.textAlign="center")};module.exports=function(e){enableUserConsentLink(e)};
}, {}];
window.modules["headline.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),rest=require(30);module.exports=function(e){var r=e.getAttribute("data-request-headline-data"),t=function(r,t){for(var a in e.classList.add("".concat(e.classList[0],"--updating")),r)if(t){var n=r[a],i=t[n.responseField],o=e.querySelector(n.selector);o&&(o.innerText=i)}};if(r)var a=JSON.parse(r),n=a.endpoint,i=a.elementsToUpdate,o=setInterval((0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var r;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rest.get(n);case 3:(r=e.sent).length&&(t(i,r[0]),clearInterval(o)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching profile data for headline: ".concat(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),5e3)};
}, {"10":10,"24":24,"25":25,"30":30}];
window.modules["live-story.client"] = [function(require,module,exports){(function (__filename){(function (){
"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_assertThisInitialized2=_interopRequireDefault(require(175)),_get2=_interopRequireDefault(require(179)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&this.tagFilter.classList.add("right-scroll"))}},{key:"observeTargetForDelayedRender",value:function(e){this.state.postDelayedRenderObserverationTargets.push(e),this.state.postDelayedRenderObserver.observe(e)}},{key:"unobserveAllTargetsForDelayedRender",value:function(){var e=this;this.state.postDelayedRenderObserver&&(this.state.postDelayedRenderObserverationTargets.forEach(function(t){e.state.postDelayedRenderObserver.unobserve(t)}),this.state.postDelayedRenderObserverationTargets=[])}},{key:"renderPost",value:function(e){swapElementClass(e,LIVE_STORY_POST_HIDDEN_CLASS_NAME,!1),swapElementClass(e,LIVE_STORY_POST_VIEW_CLASS_NAME,!0),swapElementClass(e,LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME,!1),e.style.removeProperty("display")}},{key:"hidePostForDelayedRender",value:function(e){swapElementClass(e,LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME,!0),swapElementClass(e,LIVE_STORY_POST_HIDDEN_CLASS_NAME,!1)}},{key:"hidePost",value:function(e){swapElementClass(e,LIVE_STORY_POST_VIEW_CLASS_NAME,!1),swapElementClass(e,LIVE_STORY_POST_HIDDEN_CLASS_NAME,!0),swapElementClass(e,LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME,!1),e.style.removeProperty("display")}},{key:"handleDelayedRenderIntersection",value:function(e){var t=this;e.map(function(e){try{if(e.isIntersecting&&t.state.postDelayedRenderObserver){t.log("debug","live-story: intersecting delayed render trigger",{target:e.target}),t.unobserveAllTargetsForDelayedRender();var r=Array.from(t.el.querySelectorAll($LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME)),n=r.slice(0,t.state.delayedRenderBatchSize);if(t.log("debug","live-story: showing the next batch (".concat(n.length,")"),{bacth:n}),n.forEach(function(e){return t.renderPost(e)}),r.slice(t.state.delayedRenderBatchSize,2*t.state.delayedRenderBatchSize).length>0){var o=n[t.state.postNumberToTriggerDelayedRender-1];t.log("debug","live-story: observing next batch's trigger",{observerTarget:o}),o&&t.observeTargetForDelayedRender(o)}dispatchUpdateEvent()}}catch(e){t.log("error","failed to handle delayed render observer target ERROR. ".concat(e.message),{stack:e.stack})}})}},{key:"bindDomEvents",value:function(){var e=this;this.bind(".live-story__load-updates","click",function(){return e.handleLoadUpdatesClick()}),this.bind(".live-story__scroll-to-top","click",function(){return e.handleScrollTopClick()}),window.addEventListener("touchstart",this.stopScrollingAnimation),this.bind("#liveStorySorter","change",function(t,r,n){return e.handleLiveStorySortChange(t,r,n)}),window.addEventListener("wheel",this.stopScrollingAnimation),window.addEventListener("expose-live-story-component",function(){return e.exposeComponent()}),window.addEventListener("live-story-post.filtered",function(t){return e.handleFilterPosts(t.detail.tab)}),window.addEventListener("hashchange",function(){e.deepLinkId=null,e.state.isDelayingPostRender=ENABLE_LIVESTORY_DELAYED_RENDER,e.resetPostVisibility()}),this.registerZionOnScreenForPinnedPost(),this.registerZionOnScreenForPosts(),this.registerAdobeOnScreenForPosts(),this.registerAdobeOnScreenForPinnedPost()}},{key:"getZionExtraDataObject",value:function(e){return"post"===e.type?{component_type:e.type,component_id:e.componentId,traits:{liveStorySourceId:e.liveStorySourceId,articleSourceId:e.articleSourceId,pinned:e.pinned,countOfPosts:e.count,ordinalOfThisPost:e.index,articleUrl:"".concat(window.location.pathname,"/index.html"),specificUrl:"".concat(window.location.pathname),headline:e.headline,id:e.id}}:{}}},{key:"registerZionOnScreenForPinnedPost",value:function(){this.pinnedPost&&addOnScreenAnalytics(this.pinnedPost,DEFAULT_OBSERVER_API_SETTINGS,this.getZionExtraDataObject({componentId:this.getComponentId(this.pinnedPost.dataset.uri),liveStorySourceId:this.pinnedPost.dataset.liveStorySourceId,articleSourceId:this.pinnedPost.dataset.articleSourceId,type:"post",count:1,index:0,pinned:!0}))}},{key:"registerAdobeOnScreenForPosts",value:function(){var e=this;this.liveStoryPosts.forEach(function(t,r,n){var o=t.querySelector(".live-story-post__headline").innerText,i=t.getAttribute("data-post-id");addOnScreenAnalytics(t,DEFAULT_OBSERVER_API_SETTINGS,e.processEventData(e.getZionExtraDataObject({headline:o,id:i,componentId:e.getComponentId(t.dataset.uri),liveStorySourceId:e.instanceId,type:"post",count:n.length+1,index:r+1})),adobeEventHandler)})}},{key:"registerAdobeOnScreenForPinnedPost",value:function(){if(this.pinnedPost){var e=this.pinnedPost.querySelector(".live-story-post__headline").innerText,t=this.pinnedPost.getAttribute("data-post-id");addOnScreenAnalytics(this.pinnedPost,DEFAULT_OBSERVER_API_SETTINGS,this.processEventData(this.getZionExtraDataObject({headline:e,id:t,componentId:this.getComponentId(this.pinnedPost.dataset.uri),liveStorySourceId:this.instanceId,type:"post",count:this.liveStoryPosts.length+1,index:0})),adobeEventHandler)}}},{key:"registerZionOnScreenForPosts",value:function(){var e=this;this.liveStoryPosts.forEach(function(t,r,n){return addOnScreenAnalytics(t,DEFAULT_OBSERVER_API_SETTINGS,e.getZionExtraDataObject({componentId:e.getComponentId(t.dataset.uri),liveStorySourceId:t.dataset.liveStorySourceId,articleSourceId:t.dataset.articleSourceId,type:"post",count:n.length,index:r}))})}},{key:"fireZionComponentLoaded",value:function(e,t,r){try{addComponentLoadedAnalytics({componentType:"post",componentId:this.getComponentId(e.dataset.uri),traits:{liveStorySourceId:e.dataset.liveStorySourceId,articleSourceId:e.dataset.articleSourceId,pinned:!1,raw_url:window.location.pathname,cms_id:e.dataset.cmsId,countOfPosts:r,post_ordinal:t,post_publish_time:e.dataset.lastUpdated}})}catch(e){this.log("error","".concat(this.sseName," fireZionComponentLoaded ERROR. ").concat(e.message),{stack:e.stack})}}},{key:"observePostForDelayedRender",value:function(){try{this.unobserveAllTargetsForDelayedRender(),this.state.postDelayedRenderObserver=new IntersectionObserver(this.handleDelayedRenderIntersection.bind(this),DEFAULT_OBSERVER_API_SETTINGS);var e=this.el.querySelectorAll("".concat($LIVE_STORY_POST_VIEW_CLASS_NAME,":not(").concat($LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME,")"))[this.state.postNumberToTriggerDelayedRender-1];e&&(this.observeTargetForDelayedRender(e),this.log("debug","observing post #".concat(this.state.postNumberToTriggerDelayedRender),{target:e}))}catch(e){this.log("error","failed to observe post for delayed render ERROR. ".concat(e.message),{stack:e.stack})}}},{key:"resetPostVisibility",value:function(){var e=new URL(window.location.toString()).searchParams.get("tab");if(e)return this.state.currentDeepLink=null,this.deepLinkId=null,void this.handleFilterClick({filterTag:e});var t=this.deepLinkId;this.deepLinkId||(t=window.location.hash?window.location.hash.replace("#",""):""),t&&this.el.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME,":not(").concat($LIVE_STORY_POST_PINNED_CLASS_NAME,')[data-post-id="').concat(t,'"]'))||(this.state.currentDeepLink=null,this.deepLinkId=null),this.handleScrollToDeepLink(t)}},{key:"revealNextPostBatch",value:function(e){var t=this,r=Math.max(0,e),n=Array.from(this.el.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME,":not(").concat($LIVE_STORY_POST_PINNED_CLASS_NAME,",").concat($NEWEST_SSE_POST_CLASS_NAME,")"))),o=this.state.currentlyActiveTag.toLowerCase();o!==LIVE_STORY_ALL_TAG&&(r=0,n=n.filter(function(e){var r=(e.dataset.filterTag?e.dataset.filterTag.toLowerCase().split(","):[]).includes(o);return r||t.hidePost(e),r}));var i,s=n.slice(0,r),a=_createForOfIteratorHelper(s);try{for(a.s();!(i=a.n()).done;){var l=i.value;this.hidePost(l)}}catch(e){a.e(e)}finally{a.f()}this.state.skippedPostCount=s.length;var c,d=_createForOfIteratorHelper(n.slice(r,r+this.state.delayedRenderBatchSize));try{for(d.s();!(c=d.n()).done;){var u=c.value;this.renderPost(u)}}catch(e){d.e(e)}finally{d.f()}var S,_=_createForOfIteratorHelper(n.slice(r+this.state.delayedRenderBatchSize));try{for(_.s();!(S=_.n()).done;){var h=S.value;this.hidePostForDelayedRender(h)}}catch(e){_.e(e)}finally{_.f()}this.state.isDelayingPostRender&&this.state.minimumPostCountToTriggerDelayedRender>0&&this.el.querySelectorAll($LIVE_STORY_POST_VIEW_CLASS_NAME).length>this.state.minimumPostCountToTriggerDelayedRender?this.observePostForDelayedRender():this.revealPostsHiddenForDelayedRender(),dispatchUpdateEvent(),this.updatePostCount()}},{key:"handleScrollToDeepLink",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Array.from(this.el.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME,":not(").concat($LIVE_STORY_POST_PINNED_CLASS_NAME,")"))),n=r.findIndex(function(e){return!t||e.getAttribute("data-post-id")===t});this.revealNextPostBatch(n);var o=n>=0?r[n]:null,i=this.state.skippedPostCount;if(o&&i>0){if(this.deepLinked(o,n,this.liveStoryPosts.length),window.history.scrollRestoration="manual",o.scrollIntoView(),this.toggleUpdatesButton(!0),this.state.currentDeepLink=t,this.state.manualScrolling=!0,window.innerWidth>500){var s=this.getHeaderAdHeight();o.style.scrollMarginTop=s>0?"".concat(s+70,"px"):"unset"}if(window.innerWidth>500){var a=document.querySelector(".ad-slot-header__container.adSlotHeaderContainer"),l=new ResizeObserver(function(t,r){return e.observeTopAdHeader(t,r)});a&&l.observe(a)}var c="".concat(i.toString()," Newer Post").concat(i>1?"s":"");this.el.querySelector("#button-strong").innerHTML=c;var d=o.querySelector(".live-story-post__header"),u=d&&d.getBoundingClientRect().bottom>window.innerHeight&&window.innerWidth<600;swapElementClass(this.loadUpdatesButton,"fixedBtn",u)}else this.resetStateAfterFilteringPosts()}},{key:"observeTopAdHeader",value:function(e,t){var r,n=null==e?void 0:null===(r=e[0])||void 0===r?void 0:r.target;if(this.loadUpdatesButton&&this.loadUpdatesButton.classList.contains("hidden"))return t.unobserve(n),void t.disconnect();if(document.querySelector(".ad-slot-header__container.adSlotHeaderContainer .ad-slot.adSlotLoaded")){var o,i=Array.from((null===(o=this.liveStoryItemsContainer)||void 0===o?void 0:o.querySelectorAll($LIVE_STORY_POST_CLASS_NAME))||[]).find(function(e){return!e.classList.contains(LIVE_STORY_POST_HIDDEN_CLASS_NAME)&&!e.classList.contains(LIVE_STORY_POST_PINNED_CLASS_NAME)});if(i){var s=getStickyHeaderRect("bottom");i.style.scrollMarginTop=s>0?"".concat(s+70,"px"):"unset",dispatchUpdateEvent(),i.scrollIntoView(),t.unobserve(n)}}}},{key:"stringToHTML",value:function(e){return(new DOMParser).parseFromString(e||"","text/html").body}},{key:"getSliceOfCurrentAndNextDOM",value:function(e,t){return{newDom:e.querySelector(t),currentDom:document.querySelector(t)}}},{key:"setCurrentAndNextPostsCounts",value:function(e){this.state.currentPostsCount=this.el.querySelectorAll($LIVE_STORY_POST_CLASS_NAME).length,this.state.nextPostsCount=e.querySelectorAll(".body ".concat($LIVE_STORY_POST_CLASS_NAME)).length,this.log("debug","".concat(this.sseName," next post count: ").concat(this.state.nextPostsCount,", current post count: ").concat(this.state.currentPostsCount))}},{key:"render",value:function(e){var t=this.stringToHTML(e),r=this.getSliceOfCurrentAndNextDOM(t,this.LIVE_STORY_CONTAINER_SELECTOR),n=r.newDom,o=r.currentDom;return n?(this.setCurrentAndNextPostsCounts(n),this.diffAndUpdateDom(n,o),this.updateTimeStamps(),this.hideNewPosts(),this.displayUpdatesButtonAndUpdateTitle(),!0):(this.log("warn","Live Story Container not found in SSE publish event DOM"),!1)}},{key:"updateTimeStamps",value:function(){try{var e,t=null===(e=this.liveStoryItemsContainer)||void 0===e?void 0:e.querySelectorAll($LIVE_STORY_POST_CLASS_NAME);null==t||t.forEach(function(e){var t=e.querySelector(".live-story-post__timestamp");t&&(t.innerHTML=formatLastUpdated(e.dataset.lastUpdated,!0))}),updatePostsTimestampLive(t)}catch(e){this.log("error","".concat(this.sseName," SSE update timestamp ERROR. ").concat(e.message),{stack:e.stack}),this.requestSSERetry()}}},{key:"hideNewPosts",value:function(){try{var e=Array.from(this.el.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME).concat($SSE_POST_CLASS_NAME).concat($NEWEST_SSE_POST_CLASS_NAME)));if(e.length){this.state.hiddenPostCount=e.length;for(var t=0;t0&&!this.state.sseRetryRequested){var e=this.state.hiddenPostCount+this.state.skippedPostCount,t=this.state.currentDeepLink?"".concat(e.toString()," Newer Post").concat(e>1?"s":""):"".concat(e.toString()," New Update").concat(e>1?"s":"");document.title="(".concat(e,") ").concat(this.savedTitle),this.el.querySelector("#button-strong").innerHTML=t,this.toggleUpdatesButton(!0)}}catch(e){this.log("error","".concat(this.sseName," display update button and update title ERROR. ").concat(e.message),{stack:e.stack}),this.requestSSERetry()}}},{key:"resetSSERetry",value:function(){this.state.sseRetryRequested=!1,this.state.retryCount=0,this.log("debug","".concat(this.sseName," reset retry count"))}},{key:"requestSSERetry",value:function(){this.state.sseRetryRequested=!0,this.log("debug","".concat(this.sseName," SSE retry requested"))}},{key:"incrementSSERetryCount",value:function(){this.state.retryCountwindow.innerHeight&&window.innerWidth<600&&swapElementClass(this.loadUpdatesButton,"fixedBtn",!0),trackMetrics({type:"user-interaction",data:{interaction:"module load",componentName:"live story: new post(s) available",componentStellarId:this.getComponentId(this.el.dataset.uri),newPostCount:this.state.hiddenPostCount+this.state.skippedPostCount}})}else swapElementClass(this.loadUpdatesButton,"hidden",!0),this.scrollTopButton.enabled=!0}},{key:"tryPostComponentsInitialization",value:function(e,t,r,n){var o=this;e.querySelectorAll(t).forEach(function(e){o.tryPostComponentInitialization(r,n,e)})}},{key:"tryPostComponentInitialization",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;try{t(r)}catch(t){this.log("error","".concat(this.sseName," post ").concat(e," component initialization ERROR. ").concat(t.message),{stack:t.stack})}}},{key:"initializePostComponents",value:function(e){var t=this,r=this.log,n=[];e.querySelectorAll("script").forEach(function(e){var o=document.createElement("script");if(o.innerHTML=e.innerHTML,document.head.append(o),e.src){var i=e.src;try{var s=new URL(i);s.searchParams.append("cnn_cb","".concat(Date.now()).concat(Math.random())),i=s.toString()}catch(n){r("error","".concat(t.sseName," post component initialization, failed to update script URL"),{src:e.src})}o.src=i,n.push(new Promise(function(e,n){o.addEventListener("load",function(){r("trace","".concat(t.sseName," post component initialization, script loaded"),{src:o.src}),e()}),o.addEventListener("error",function(){r("error","".concat(t.sseName," post component initialization, failed to load script"),{src:o.src}),n(new Error("".concat(o.src," failed to load.")))})}))}}),Promise.allSettled(n).then(function(){var r;t.tryPostComponentsInitialization(e,".video-resource","video resource",videoComponentResource),t.tryPostComponentsInitialization(e,".video-resource","video player",videoPlayerClient),t.tryPostComponentsInitialization(e,".image_live-story","image",function(e){return new Image(e)}),t.tryPostComponentsInitialization(e,".graphic","image",function(e){return new dailygraphics(e)}),t.tryPostComponentInitialization("social share",socialShareClient,e),t.tryPostComponentsInitialization(e,".twitter-tweet","tweet",null===(r=window.twttr)||void 0===r?void 0:r.widgets.load),t.tryPostComponentsInitialization(e,".facebook","facebook post",function(e){return facebookClientModel(e,!0)}),t.tryPostComponentsInitialization(e,".youtube","youtube video",youtubeClientModel),t.tryPostComponentsInitialization(e,".paragraph","paragraph",paragraphClientModel),t.tryPostComponentsInitialization(e,".list","list",listClientModel),t.tryPostComponentsInitialization(e,".map","map",mapClientModel),t.tryPostComponentsInitialization(e,".product-offer-card","product offer card",productOfferCardClientModel),t.tryPostComponentInitialization("instragram post",function(){var e;return null===(e=window.instgrm)||void 0===e?void 0:e.Embeds.process()})})}},{key:"removeFaveInstances",value:function(e){window.FAVE&&e.querySelectorAll(".video-resource__wrapper").forEach(function(e){var t,r;null===(t=window.FAVE.player)||void 0===t||null===(r=t.instances[e.id])||void 0===r||r.destroy()})}},{key:"diffAndUpdateDom",value:function(e,t){var r=this;try{var n=t.querySelector(".live-story__items-container");if(!n)return;var o=Array.from((null==n?void 0:n.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME,":not(").concat($LIVE_STORY_POST_PINNED_CLASS_NAME,")")))||[]).map(function(e){return e.getAttribute("data-uri")}),i=Array.prototype.slice.call(null==e?void 0:e.querySelectorAll("".concat($LIVE_STORY_POST_CLASS_NAME,":not(").concat($LIVE_STORY_POST_PINNED_CLASS_NAME,")"))).filter(function(e){return!o.includes(e.getAttribute("data-uri"))}).map(function(e){return e.cloneNode(!0)});if(0===i.length)return void this.requestSSERetry();this.state.oldestSSEUpdateInMS||(this.state.oldestSSEUpdateInMS=Date.now()),this.log("debug","".concat(this.sseName," ").concat(i.length," new post(s) in updated content"),{newPostCount:i.length}),i.forEach(function(e){var t,o,i;e.removeAttribute("data-filter-tag"),e.classList.add(SSE_POST_CLASS_NAME),e.classList.add(NEWEST_SSE_POST_CLASS_NAME);var s=null!==(t=null===(o=e.querySelector(".live-story-post__headline"))||void 0===o?void 0:o.innerText)&&void 0!==t?t:"",a=null!==(i=e.getAttribute("data-uri"))&&void 0!==i?i:"";r.log("debug","".concat(r.sseName," new post found"),{title:s,uri:a}),n.prepend(e),r.initializePostComponents(e)}),this.liveStoryPosts=this.el.querySelectorAll($LIVE_STORY_POST_CLASS_NAME)}catch(e){this.log("error","".concat(this.sseName," SSE diff and update DOM ERROR. ").concat(e.message),{stack:e.stack}),this.requestSSERetry()}}},{key:"getComponentId",value:function(e){return e.substring(e.lastIndexOf("/")+1)}},{key:"initSSE",value:function(){var e=this.getComponentId(this.el.dataset.uri);this.startSSE("live-story","".concat(SSE_HOST,"/public/api/sse/live-story/").concat(e))}},{key:"fetchAndRenderNewContent",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var t;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("debug","".concat(this.sseName," count: ").concat(this.state.retryCount," SSE update render(s) ")),e.next=3,this.sseFetchUpdates(this.state.retryCount);case 3:(t=e.sent)&&this.render(t)||this.requestSSERetry();case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"handleSSEUpdates",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchAndRenderNewContent();case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),this.log("error","".concat(this.sseName," SSE update render ERROR. ").concat(e.t0.message),{stack:e.t0.stack}),this.requestSSERetry();case 9:this.state.sseRetryRequested&&(this.incrementSSERetryCount(),this.state.retryCount>0&&(setTimeout(this.handleSSEUpdates.bind(this),SSE_RETRY_DELAY),this.log("debug","".concat(this.sseName," scheduled retry in ").concat(SSE_RETRY_DELAY,"ms"))));case 10:case"end":return e.stop()}},e,this,[[0,5]])}));return function(){return e.apply(this,arguments)}}()},{key:"onSSEPublish",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_get2.default)((0,_getPrototypeOf2.default)(r.prototype),"onSSEPublish",this).call(this);case 2:this.state.sseEventCount++,this.log("debug","".concat(this.sseName," ").concat(this.state.sseEventCount," SSE event(s) in this session so far (since the last click)"),{sseEventCount:this.state.sseEventCount}),this.resetSSERetry(),setTimeout(this.handleSSEUpdates.bind(this),SSE_PUBLISH_DELAY);case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getFirstPostId",value:function(){return this.liveStoryPosts[0].dataset.uri.split("/").pop().split("@").shift()}},{key:"getFirstPostTitle",value:function(){return this.liveStoryPosts[0].querySelector(".live-story-post__headline").textContent}},{key:"throttleScroll",value:function(){var e=this;document.addEventListener("scroll",_throttle(function(){var t,r;if(e.state.manualScrolling)return setTimeout(function(){e.state.manualScrolling=!1},2e3),!1;null!==(t=e.scrollTopButton)&&void 0!==t&&t.enabled&&(r=e.scrollTop,(window.pageYOffset||document.documentElement.scrollTop)<=r&&e.isAbovePageTop(e.el)?swapElementClass(e.scrollTopButton,"hidden",!1):swapElementClass(e.scrollTopButton,"hidden",!0)),e.scrollTop=window.pageYOffset||document.documentElement.scrollTop},100,{leading:!0}))}},{key:"setOmnitureValues",value:function(){window.CNN.omniture=_objectSpread(_objectSpread({},window.CNN.omniture),{},{post_id:this.getFirstPostId(),post_title:this.getFirstPostTitle(),total_post:this.liveStoryPosts.length})}},{key:"revealPostsHiddenForDelayedRender",value:function(){this.el.querySelectorAll($LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME).forEach(function(e){swapElementClass(e,LIVE_STORY_POST_RENDER_DELAYED_CLASS_NAME,!1),e.style.removeProperty("display")})}},{key:"sortPosts",value:function(){var e,t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.liveStoryItemsContainer,o=Array.prototype.slice.call((null===(e=this.liveStoryItemsContainer)||void 0===e?void 0:e.children)||[]),i=o.map(function(e){return e.classList.contains(LIVE_STORY_POST_CLASS_NAME)}),s=o.filter(function(e){return e.classList.contains(LIVE_STORY_POST_CLASS_NAME)});s.sort(function(e,n){var o,i=((null!=r?r:null===(o=t.sortButton)||void 0===o?void 0:o.value)||LATEST)===LATEST?-1:1,s=e.classList.contains(SSE_POST_CLASS_NAME),a=n.classList.contains(SSE_POST_CLASS_NAME);return s&&a?i*(getTimeStampFromLastUpdated(e.getAttribute("data-last-updated"))-getTimeStampFromLastUpdated(n.getAttribute("data-last-updated"))):s?i:a?-i:-i*(parseInt(e.getAttribute("data-post-order-id"),10)-parseInt(n.getAttribute("data-post-order-id"),10))});var a=0;n.innerHTML="";for(var l=0;l500){var r=this.getHeaderAdHeight();this.el.style.scrollMarginTop=r>0?"".concat(r,"px"):"unset"}this.el.scrollIntoView({behavior:"smooth"}),this.state.currentDeepLink=null,this.deepLinkId=null;var n=new URLSearchParams(window.location.search);n.set("t",(new Date).valueOf()),history.replaceState(null,null,"".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname,"?").concat(n.toString())),trackMetrics({type:"refresh_load",data:{headline:this.liveStoryHeadline,post_id:this.getFirstPostId(),post_title:this.getFirstPostTitle(),load_type:"refresh_load",new_post_count:t.numberofNewPostShown}}),this.log("debug","".concat(this.sseName," clicked on red pill ").concat(t.numberofNewPostShown," new post(s) in updated content"),t),this.state.hiddenPostCount=0,this.state.skippedPostCount=0,this.state.sseEventCount=0,this.state.oldestSSEUpdateInMS=null,dispatchUpdateEvent(),document.title=this.savedTitle}},{key:"handleFilterClick",value:function(e){var t,r,n=null===(t=null!==(r=e.filterTag)&&void 0!==r?r:e)||void 0===t?void 0:t.toLowerCase();handleFilterTagClick({filterTag:n,el:this.el},!1),this.state.currentlyActiveTag=n}},{key:"handleFilterPosts",value:function(e){var t=this;this.filterPosts(e),this.el.querySelectorAll("".concat($NEWEST_SSE_POST_CLASS_NAME,", ").concat($SSE_POST_CLASS_NAME)).forEach(function(e){swapElementClass(e,NEWEST_SSE_POST_CLASS_NAME,!1),t.renderPost(e)}),this.sortButton.value=LATEST,this.sortPosts(LATEST),this.revealNextPostBatch(0),this.resetStateAfterFilteringPosts(),document.title=this.savedTitle,dispatchUpdateEvent()}},{key:"filterPosts",value:function(e){this.state.currentlyActiveTag=e}},{key:"handleScrollTopClick",value:function(){var e=this;if(this.tabsContainer){smoothscroll.polyfill();var t=this.tabsContainer.getBoundingClientRect().top+window.pageYOffset+-50;this.state.manualScrolling=!0,window.scrollTo({top:t,behavior:"smooth"}),swapElementClass(this.scrollTopButton,"hidden",!0),window.setTimeout(function(){return e.scrollTopButton.classList.add("hidden")},50)}}},{key:"handleLiveStorySortChange",value:function(e,t,r){var n,o,i=this,s=null!==(n=null==r?void 0:null===(o=r.target)||void 0===o?void 0:o.value)&&void 0!==n?n:LATEST;trackMetrics({type:"user-interaction",data:{interaction:"sort:".concat(s)}}),this.el.querySelectorAll("".concat($NEWEST_SSE_POST_CLASS_NAME,", ").concat($SSE_POST_CLASS_NAME)).forEach(function(e){swapElementClass(e,NEWEST_SSE_POST_CLASS_NAME,!1),i.renderPost(e)}),this.sortPosts(s),this.revealNextPostBatch(0),this.resetStateAfterFilteringPosts(),document.title=this.savedTitle,dispatchUpdateEvent(),this.registerAdobeOnScreenForPosts(),this.registerAdobeOnScreenForPinnedPost()}},{key:"isAbovePageTop",value:function(e){return e.getBoundingClientRect().top<0}},{key:"getHeaderAdHeight",value:function(){return getStickyHeaderRect("bottom")}},{key:"exposeComponent",value:function(){(0,_get2.default)((0,_getPrototypeOf2.default)(r.prototype),"exposeComponent",this).call(this,"live-story",this),this.log("debug","exposed component",{component:this})}},{key:"resetStateAfterFilteringPosts",value:function(){this.toggleUpdatesButton(!1),swapElementClass(this.loadUpdatesButton,"fixedBtn",!1),this.state.hiddenPostCount=0,this.state.skippedPostCount=0,this.state.sseEventCount=0,this.state.oldestSSEUpdateInMS=null}}]),r}(ClientModel);module.exports=initializeOnExec(addLoggerToClient(LiveStoryClient,{componentName:"live-story",file:__filename}));
}).call(this)}).call(this,"/components/live-story/client.js")}, {"5":5,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"18":18,"24":24,"25":25,"28":28,"29":29,"38":38,"72":72,"107":107,"145":145,"167":167,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"video-resource.client":"video-resource.client","video-player.client":"video-player.client","facebook.client":"facebook.client","image.client":"image.client","social-share.client":"social-share.client","youtube.client":"youtube.client","list.client":"list.client","paragraph.client":"paragraph.client","map.client":"map.client","product-offer-card.client":"product-offer-card.client","graphic.client":"graphic.client"}];
window.modules["video-resource.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_assertThisInitialized2=_interopRequireDefault(require(175)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread(e){for(var t=1;t=.5&&i<1&&(r.faveInstance.mute(),r.faveInstance.play(void 0,{autostart:!0}),n.unobserve(a))})},{threshold:.5});"scroll"===e.dataset.autostart&&"tve"!==e.dataset.customExperience&&n.observe(e)})}),(0,_defineProperty2.default)((0,_assertThisInitialized2.default)(r),"playTVEVideo",function(e){var t=_objectSpread(_objectSpread({},e),{},{mediaMetadata:{headline:null==e?void 0:e.assetDescription,mediumId:null==e?void 0:e.assetId,id:null==e?void 0:e.assetId}});return setAnalyticsMetadata(e),r.setPlayerVisibility(!0),authorizeAndPlay(t)}),r.el=e;var n,a=e.dataset.featuredVideo,s=e.dataset.customExperience,o=convertToBoolean(e.dataset.hasVideoPlayer),l=isAuthVideo(s);!a&&!l||o||(!l||null!==(n=window.TOP)&&void 0!==n&&n.Auth||document.getElementById("script-top-auth")?window.FAVE?r.renderPlayer(r.el):window.addEventListener("fave.loaded",function(){r.renderPlayer(r.el)}):(r.loadExternalScript(topAuthSrc,"top-auth"),r.loadExternalScript(topFreeviewSrc,"top-freeview")));if(isPageType(PAGE_TYPES.VIDEO)){var u=e.querySelector(".video-resource__description-toggle"),c=e.querySelector(".video-resource__description");u&&c&&u.addEventListener("click",function(){c.classList.toggle("video-resource__description--hidden"),u.classList.toggle("video-resource__description-toggle--hidden")})}return r.bind(".auth-player-container__back-player-icon-container","click",r.handlePlayerBackClick),r}return(0,_createClass2.default)(i,[{key:"verticalPlaybackRequest",value:function(e){var t=this.faveInstance.getMediaState();e.videoId&&(e.videoId=null),e.muted?this.faveInstance.mute():this.faveInstance.unmute(),"PAUSED"!=t&&"PLAYING"!=t?(this.faveInstance.prepare(),this.faveInstance.play(null,e)):"PLAYING"!=t&&this.faveInstance.resume()}},{key:"handlePlayerBackClick",value:function(){this.setPlayerVisibility(!1),this.faveInstance.stop()}},{key:"setPlayerVisibility",value:function(e){var t;e?(this.el.style.display="block",null===(t=this.el.querySelector(".auth-player-container"))||void 0===t||t.classList.add("fave-player-container_inline-full-bleed"),document.body.style.overflow="hidden"):(this.el.style.display="none",document.body.style.overflow="auto")}}]),i}(ClientModel);module.exports=initializeOnExec(VideoResource);
}, {"5":5,"6":6,"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"29":29,"45":45,"76":76,"154":154,"175":175,"351":351,"407":407,"418":418}];
window.modules["video-player.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_assertThisInitialized2=_interopRequireDefault(require(175)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],i=parseInt(a.getAttribute("data-width"),10),s=t.clientWidth;i!==s&&(a.setAttribute("data-width",s),e&&FB&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(t))},r=function(t,e){i&&clearTimeout(i),i=setTimeout(t,e)};s?(a.setAttribute("data-width","auto"),FB&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(t)):(n(e),window.addEventListener("resize",function(){r(function(){n(!0)},1e3)}))};
}, {}];
window.modules["image.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var l=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(16),ClientModel=_require.ClientModel,initializeOnExec=_require.initializeOnExec,elementResizeObserver=require(68),Image=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;return(0,_classCallCheck2.default)(this,r),i=t.call(this,e),elementResizeObserver.observe(e),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnExec(Image);
}, {"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"68":68}];
window.modules["social-share.client"] = [function(require,module,exports){"use strict";var _require=require(107),trackMetrics=_require.trackMetrics;module.exports=function(e){var t=e.classList.contains("social-share_compact"),c=e.querySelector("[data-type=open]"),a=e.querySelector("[data-type=close]"),r=e.querySelector("[data-type=facebook]"),n=e.querySelector("[data-type=x]"),i=e.querySelector("[data-type=email]"),o=e.querySelector("[data-type=share-links]"),s=e.querySelector("[data-type=copy]"),l=e.querySelector("[data-type=message]"),d=function(){t&&a.click()};s.addEventListener("click",function(){var e=document.createElement("input");e.value=s.dataset.url,s.parentNode.appendChild(e),e.select(),document.execCommand("copy"),s.parentNode.removeChild(e),l.classList.add("show"),u("link","copy"),setTimeout(function(){l.classList.remove("show"),d()},1e3)}),[r,n].forEach(function(e){e.addEventListener("click",function(){window.open(e.dataset.url,"_blank","width=600,height=600,scrollbars=no,resizable=no,noopener,noreferrer"),u(e.dataset.type,"share"),d()})}),i.addEventListener("click",function(){u("email","share"),d()}),c.addEventListener("click",function(){return[c,a,o].forEach(function(e){return e.classList.add("active")})}),a.addEventListener("click",function(){return[c,a,o].forEach(function(e){return e.classList.remove("active")})});var u=function(e,t){try{trackMetrics({type:"social-click",data:{clickObj:{component:"sharing",socialType:e,action:t}}})}catch(e){return}}};
}, {"107":107}];
window.modules["youtube.client"] = [function(require,module,exports){"use strict";function playEmbedVideo(e,t){return function(){new window.YT.Player(t,{videoId:e,playerVars:{playsinline:1,controls:1},events:{onReady:function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.playVideo()}}})}}module.exports=function(e){var t=e.querySelector(".player"),i=t&&t.getAttribute("id")||"",n=t&&t.getAttribute("data-video-id")||"";(document.querySelector('[src="https://www.youtube.com/iframe_api"]')||null)&&n&&i&&t.addEventListener("click",playEmbedVideo(n,i),{once:!0})};
}, {}];
window.modules["list.client"] = [function(require,module,exports){"use strict";var _require=require(166),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)};
}, {"166":166}];
window.modules["paragraph.client"] = [function(require,module,exports){"use strict";var _require=require(166),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)};
}, {"166":166}];
window.modules["map.client"] = [function(require,module,exports){(function (Buffer){(function (){
"use strict";var mapboxgl=require(181),MAPBOX_ORIENTATIONS=["top","left","bottom","right"],MAPBOX_STYLE="mapbox://styles/cnndigital/cl960ytee001215qu1uhorjlx",translateOrientation=function(a){return{class:(a=a.toLowerCase()).replaceAll(" ",""),anchor:a.split(" ").map(function(a){return MAPBOX_ORIENTATIONS[(MAPBOX_ORIENTATIONS.indexOf(a)+2)%4]}).join("-")}};module.exports=function(a){var e=a.dataset,t=e.mapboxEnabled,o=e.longitude,l=e.latitude,n=e.zoom,s=e.mapboxAccessToken,r=e.id,i=JSON.parse(Buffer.from(a.dataset.markers||"","base64").toString("binary"));if(Boolean(t)&&s){mapboxgl.accessToken=s;var c=new mapboxgl.Map({container:r,style:MAPBOX_STYLE,center:[o,l],zoom:n});i.forEach(function(a){if(a.label){var e=new mapboxgl.LngLat(a.longitude,a.latitude),t=translateOrientation(a.alignment||"right"),o="callout"===a.style;new mapboxgl.Popup({closeOnClick:!1,closeButton:!1,className:"map-label-pin-".concat(t.class),anchor:t.anchor,offset:10}).setLngLat(e).setHTML(a.label).addClassName(o?"map-label-callout":"").addTo(c)}})}};
}).call(this)}).call(this,require(182).Buffer)}, {"181":181,"182":182}];
window.modules["product-offer-card.client"] = [function(require,module,exports){"use strict";var _require=require(330),getComponentUri=_require.getComponentUri,_require2=require(38),addOnScreenAnalytics=_require2.addOnScreenAnalytics,DEFAULT_OBSERVER_API_SETTINGS=_require2.DEFAULT_OBSERVER_API_SETTINGS,_require3=require(2),getComponentInstance=_require3.getComponentInstance,_get=require(1);module.exports=function(e){var t,r,n,i,o;t=e.querySelectorAll(".product-offer-card_expanded__images .image"),r=e.querySelectorAll(".product-offer-card_expanded__image .image"),t.forEach(function(e){e.addEventListener("click",function(e){var t=getComponentUri(e.target);r.forEach(function(e){e.style.display=e.getAttribute("data-uri")===t?"inline-block":"none"})})}),e.querySelectorAll(".sticker").forEach(function(t){var r=t.getAttribute("data-component-variation");"true"===t.getAttribute("data-sticker-expired-or-unsupported")?t.style.display="none":e.classList.add("".concat(r,"__sticker-spacing"))}),n=e.querySelector(".offer-link").dataset,i=getComponentInstance(n.zjsStellar_id),o=_get(window,"CNN.contentModel.cmsId",""),addOnScreenAnalytics(e,DEFAULT_OBSERVER_API_SETTINGS,{component_type:"product_offer_card",component_id:i,traits:{stellar_page_uri:o,product_id:n.zjsProduct_id,product_name:n.zjsProduct_name}},void 0,1)};
}, {"1":1,"2":2,"38":38,"330":330}];
window.modules["graphic.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var n=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(16),ClientModel=_require.ClientModel,initializeOnDOMContentLoaded=_require.initializeOnDOMContentLoaded,DailyGraphicsClient=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;function n(){var t=e.querySelector(".graphic__anchor"),r=e.querySelector(".graphic__chart-anchor"),i=function(e,t,r){new window.pym.Parent(e,t,{title:r})};if(null!=r&&r.id){var n=r.id.split("graphic-")[1];window.addEventListener("message",function(t){var r,i;if("string"==typeof t.data&&(null===(r=t.data)||void 0===r?void 0:r.includes("ix.cnn.io/charts/"))&&(null===(i=t.data)||void 0===i?void 0:i.includes(n))){var a=JSON.parse(t.data);e.querySelector("#graphic-".concat(n,"> iframe")).style.height="".concat(a.height,"px")}}),i(r.id,"//ix.cnn.io/charts/".concat(n,"/"),"CNN Chart")}if(null!=t&&t.id){var a=t.dataset.url;i(t.id,a,"CNN Graphic")}}return(0,_classCallCheck2.default)(this,r),i=t.call(this,e),window.pym?n():window.addEventListener("pym-js.loaded",n),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnDOMContentLoaded(DailyGraphicsClient);
}, {"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16}];
window.modules["ad-feedback.client"] = [function(require,module,exports){"use strict";var _require=require(7),AdFeedback=_require.AdFeedback,_require2=require(6),ENABLE_AD_FEEDBACK_DISPLAY_ADS=_require2.ENABLE_AD_FEEDBACK_DISPLAY_ADS,ENABLE_AD_FEEDBACK_VIDEO_ADS=_require2.ENABLE_AD_FEEDBACK_VIDEO_ADS,_require3=require(6),shouldHideAdFeedbackLink=_require3.shouldHideAdFeedbackLink;if((ENABLE_AD_FEEDBACK_DISPLAY_ADS||ENABLE_AD_FEEDBACK_VIDEO_ADS)&&!shouldHideAdFeedbackLink){var adFeedback=new AdFeedback;adFeedback.initialize()}
}, {"6":6,"7":7}];
window.modules["ad-slot-header.client"] = [function(require,module,exports){"use strict";var throttle=require(28),_require=require(17),mediumMaxWidthListener=_require.mediumMaxWidthListener,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,_require3=require(9),AD_VARIANTS=_require3.AD_VARIANTS;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(t){if(t.adVariant===AD_VARIANTS.DEFAULT){var r,i=e.querySelector(".ad-slot"),n=e.querySelector(".adSlotHeaderContainer");if(!i)return;var a=function(){"mobile"===r&&(e.style.height="".concat(i.clientHeight,"px"),n.style.height="".concat(i.clientHeight,"px"))};document.addEventListener("GPTRenderComplete",function(e){var t=e.detail;t&&t.divId===(r&&i&&i.dataset["".concat(r,"SlotId")])&&a()}),function(){var e=document.createElement("iframe");e.className="resizeListenerIframe",e.src="about:blank",e.tabIndex=-1,e.frameBorder=0,e.setAttribute("aria-hidden",!0),i.appendChild(e);try{e.contentDocument.defaultView.addEventListener("resize",throttle(a,100))}catch(e){a()}}(),mediumMaxWidthListener(function(e){r=e?"mobile":"desktop",a()})}})};
}, {"9":9,"16":16,"17":17,"28":28}];
window.modules["header.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_toConsumableArray2=_interopRequireDefault(require(23)),_asyncToGenerator2=_interopRequireDefault(require(24)),HEADER_ICON_IDS=["headerMenuIcon","headerSearchIcon","headerCloseIcon"],MORE_DROPDOWN_LINK_ID="moreDropdown",_require=require(160),calculateNavLeftMaxWidth=_require.calculateNavLeftMaxWidth,isSubscriber=_require.isSubscriber,_require2=require(145),calculatePageStickyThreshold=_require2.calculatePageStickyThreshold,_get=require(1),_require3=require(29),checkGeoCountry=_require3.checkGeoCountry,getCookie=_require3.getCookie,_require4=require(107),trackMetrics=_require4.trackMetrics,_require5=require(97),setAdobeAnalyticsDataForCookie=_require5.setAdobeAnalyticsDataForCookie,EnvVars=require(5),initializeMenu=function(e){var r=e.classList;HEADER_ICON_IDS.map(function(e){return document.getElementById(e)}).filter(function(e){return e}).forEach(function(e){e.addEventListener("click",function(){r.toggle("header--active");var e=window.document.body;if(r.contains("header--active"))e.style.top="-".concat(window.scrollY,"px"),e.classList.toggle("menu-opened");else{e.classList.toggle("menu-opened");var t=e.style.top;e.style.top="",window.scrollTo(0,-1*parseInt(t||"0"))}})})};function fireTrackingMetrics(e){var r=e.interaction,t=e.type;trackMetrics({type:void 0===t?"user-interaction":t,data:{interaction:r}})}var moreDropdownLink,moreSection,moreCaret,hoverStartTime,updateSubscribeView=function(){var e=(0,_asyncToGenerator2.default)(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _regenerator.default.mark(function t(){var n,o;return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=6;break}return t.next=3,isSubscriber();case 3:n=t.sent,e.style.display=n?"none":"block",r&&(o=e.closest(".header"),formatNavBar(o));case 6:case"end":return t.stop()}},t)})()});return function(r){return e.apply(this,arguments)}}(),initializeSubscribeButton=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,n,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.querySelector(".header__subscribe-button"),n=checkGeoCountry("US"),o=getCookie(EnvVars.get("APP_VIEW_COOKIE")),!t||o||!n){e.next=11;break}return r.querySelector(".header__inner").classList.add("header__inner--subscription"),e.next=8,updateSubscribeView(t);case 8:t.addEventListener("click",function(e){var t="".concat(window.location.protocol,"//").concat(window.location.hostname,"/subscription");window.zion_analytics.track(new window.ZION_SDK.GenericLinkClick({href:t,type:e.target.tagName,customAttributes:{Component_id:r.dataset.uri,Component_text:e.target.innerText.trim(),Component_type:"button",Container_type:"navigation"}})),fireTrackingMetrics({interaction:"nav:subscribe"});var n=new URL(t);n.searchParams.append("source","sub_web_nav"),n.searchParams.append("redirect",window.location.href),window.location.href=n.href}),document.addEventListener("login",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)}))),document.addEventListener("logout",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)})));case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}(),initializeAccordion=function(e){e.querySelectorAll(".header__nav-item-accordion").forEach(function(e){e.addEventListener("click",function(){var r;e.classList.toggle("header__nav-item-accordion--open"),null===(r=e.querySelector(".header__nav-item-dropdown"))||void 0===r||r.classList.toggle("header__nav-item-dropdown--open")})})},initializeEditionizers=function(e){var r=e.querySelectorAll(".header__editionizer"),t=e.querySelectorAll(".header__editionizer-button");(0,_toConsumableArray2.default)(t).forEach(function(e){return e.addEventListener("click",function(){e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),(0,_toConsumableArray2.default)(r).forEach(function(e){return e.classList.toggle("header__editionizer--active")})})})},formatNavBar=function(e){var r=e.querySelector(".header__right");if(e.getBoundingClientRect().width<960)r&&(r.style.visibility="visible");else if(!window.location.pathname.startsWith("/webview")){var t=function(e){return e.style.display="block"},n=function(e){return e.style.display="none"},o=function(){return e.querySelector(".header__left").getBoundingClientRect().width},i=function(e){d.querySelectorAll(".header__nav-item:nth-child(n+".concat(d.childElementCount-e,")")).forEach(n)},a=e.querySelector(".header__nav");a&&(a.style.visibility="hidden");var c=e.querySelector(".header__nav-more"),u=e.querySelector(".header__nav-more > .header__nav-item-dropdown"),d=e.querySelector(".header__left .header__nav-container");if(d){d.querySelectorAll(".header__nav-item").forEach(t),u.querySelectorAll(".header__nav-item-dropdown-item").forEach(n),n(c);for(var s=calculateNavLeftMaxWidth(e),l=o(),v=!1,_=1;l>s;)v=!0,i(_),l=o(),_++;v&&(t(c),(l=o())>s&&(i(_),l=o(),_++));var m=d.querySelector(".promotion-link")?0:1;u.querySelectorAll(".header__nav-item-dropdown-item:nth-child(n+".concat(d.childElementCount-_+m,")")).forEach(t),a&&(a.style.visibility="visible"),r&&(r.style.visibility="visible")}}},moreDropdownLinkZJSAttrs={},onMoreDropdownMouseEnter=function(){hoverStartTime=Date.now()},onMoreDropdownMouseLeave=function(){hoverStartTime&&(window.zion_analytics.track(new window.ZION_SDK.GenericHover({traits:{canonical_url:_get(window,"CNN.contentModel.canonicalUrl",null),component_id:moreDropdownLinkZJSAttrs.zjsComponent_id,cms_id:moreDropdownLinkZJSAttrs.zjsContainer_id,component_text:moreDropdownLinkZJSAttrs.zjsComponent_text,component_type:moreDropdownLinkZJSAttrs.zjsComponent_type,hover_time:Date.now()-hoverStartTime}})),hoverStartTime=0)},updateMoreDropdownHoverEvent=function(e){e?(moreDropdownLink.addEventListener("mouseenter",onMoreDropdownMouseEnter,!0),moreDropdownLink.addEventListener("mouseleave",onMoreDropdownMouseLeave,!0)):(moreDropdownLink.removeEventListener("mouseenter",onMoreDropdownMouseEnter,!0),moreDropdownLink.removeEventListener("mouseleave",onMoreDropdownMouseLeave,!0))},mediaQueryHoverNone=window.matchMedia("(any-hover: none)"),convertDatasetToAttributeName=function(e){return"data-".concat(e.split(/(?=[A-Z])/).join("-").toLowerCase())},updateMoreDropdownZJS=function(){var e=mediaQueryHoverNone.matches;if(updateMoreDropdownHoverEvent(!e),e)for(var r=0,t=Object.entries(moreDropdownLinkZJSAttrs);r=u||c===t?(o.classList.remove("hide"),i.classList.remove("header__subnav-mount--scrolled")):(o.classList.add("hide"),i.classList.add("header__subnav-mount--scrolled"))})})}module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.addEventListener("click",setNavigationAdobeAnalytics),initializeMenu(r),e.next=4,initializeSubscribeButton(r);case 4:initializeEditionizers(r),initializeAccordion(r),initializeMoreDropdown(),calculatePageStickyThreshold(),formatNavBar(r),initializeNavBorderStyleUpdate(r),window.addEventListener("resize",function(){formatNavBar(r)});case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();
}, {"1":1,"5":5,"10":10,"23":23,"24":24,"25":25,"29":29,"36":36,"97":97,"107":107,"145":145,"160":160}];
window.modules["bizdev-lending-tree.client"] = [function(require,module,exports){"use strict";var _require=require(17),mediumMaxWidthListener=_require.mediumMaxWidthListener,isVisibleViewport=_require.isVisibleViewport,_require2=require(26),positionElement=_require2.positionElement,ucStates=["data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person"];function initializeLendingTree(e){var i=e.dataset.widgetId,t=document.createElement("iframe"),r=document.createElement("script");t.src="https://widgets.tree.com/widget/".concat(i),t.id="ltWidget_".concat(i),t.width="100%",t.frameBorder="0",r.src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.15/iframeResizer.min.js",r.onload=function(){return window.iFrameResize({checkOrigin:["https://widgets.tree.com"]},t)},e.innerHTML="",e.appendChild(r),e.appendChild(t)}module.exports=function(e){var i=e.dataset,t=i.visibleViewport,r=i.placement;window.WM.UserConsent.inUserConsentState(ucStates)&&(r?positionElement(e,{onPosition:function(e){return initializeLendingTree(e)}}):mediumMaxWidthListener(function(i){isVisibleViewport(t,i)?initializeLendingTree(e):e.innerHTML=""}))};
}, {"17":17,"26":26}];
window.modules["bizdev-outbrain.client"] = [function(require,module,exports){"use strict";var _window$CNN,_window$CNN$contentMo,_require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,_require3=require(26),positionElement=_require3.positionElement,_require4=require(17),mediumMaxWidthListener=_require4.mediumMaxWidthListener,isVisibleViewport=_require4.isVisibleViewport,EnvVars=require(5),ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"],isLiveStory="live-story"===(null===(_window$CNN=window.CNN)||void 0===_window$CNN?void 0:null===(_window$CNN$contentMo=_window$CNN.contentModel)||void 0===_window$CNN$contentMo?void 0:_window$CNN$contentMo.pageType),outBrainLoaded=!1,exitScript=!1;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(i){if(i.adVariant===AD_VARIANTS.DEFAULT){var t=e.dataset,r=t.visibleViewport,n=t.placement,o=EnvVars.get("ENABLE_OUTBRAIN_MOBILE_LIVESTORY");if(mediumMaxWidthListener(function(e){isLiveStory&&e&&!o&&(exitScript=!0)}),exitScript)return;var s=e.innerHTML;outBrainLoaded&&!n&&mediumMaxWidthListener(function(i){e.innerHTML=isVisibleViewport(r,i)?s:""}),n&&positionElement(e,{onRefreshPosition:function(){return window.OBR.extern.reloadWidget()}}),outBrainLoaded||(outBrainLoaded=!0,window.WM.UserConsent.addScript({src:"//widgets.outbrain.com/outbrain.js",async:!0},ucStates),mediumMaxWidthListener(function(){window.OBR&&window.OBR.extern&&window.OBR.extern.reloadWidget()},{last:!0}))}})};
}, {"5":5,"9":9,"16":16,"17":17,"26":26}];
window.modules["ad-slot-client-injector.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(19)),_toConsumableArray2=_interopRequireDefault(require(23)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;tu}).map(function(e){return e>u?e+1:e}),a++)};e.forEach(function(t,l){0===l&&(u(t,0),o=t);var s=e.find(function(e){return e>=o+r});s&&a=l&&bt+f.buffer-1;m&&y&&p.push(b)}s=p}}),q=s,O&&(S(s,r),o&&document.addEventListener("live-story.updated",function(){_(h)})),document.dispatchEvent(new CustomEvent("QuantumPlacementComplete",{detail:{openSlots:q}})))},_=function(e){var t=(null==p?void 0:p.adSlotIdPattern)||"";if("object"===(0,_typeof2.default)(e)&&!Array.isArray(e)&&t){var r=document.querySelectorAll('[data-ad-id^="'.concat(t,'"]'))||[];r.length&&r.forEach(function(e){var t,r;null===(t=window.AdFuel)||void 0===t||t.destroySlots([null===(r=e.dataset)||void 0===r?void 0:r.adId]),e.remove()}),g(e),O&&w().setupIntersectObserver()}};if(b(function(e){m=e?"mobile":"desktop"}),window.CNN.ads&&(window.CNN.ads.quantum={updateAdSlotPositions:_,toggleShowAdsOnDesktop:function(){y=!y,O=!0,w().init()},getOpenSlots:function(){return q}}),"mobile"!==m||"true"!==e.dataset.enabled)return!1;O=!0,w().init()};module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(t){t.adVariant===AD_VARIANTS.DEFAULT&&client(e)})};
}, {"9":9,"10":10,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23}];
window.modules["container.client"] = [function(require,module,exports){"use strict";var _require=require(97),setAdobeAnalyticsCookie=_require.setAdobeAnalyticsCookie,showDomNode=function(e){e.classList.remove("hide")},hideDomNode=function(e){e.classList.add("hide")};module.exports=function(e){["container_headline-carousel","container_ribbon","container_shelf-carousel","container_event-tray"].forEach(function(t){var o=e.querySelector(".".concat(t,"__field-links")),n=e.querySelector(".".concat(t,"__cards-wrapper")),r=document.createElement("div"),i=document.createElement("div");r.classList.add("".concat(t,"__carousel-button-prev"),"hide","carousel-button-prev"),i.classList.add("".concat(t,"__carousel-button-next"),"carousel-button-next");var a=function(e){var n,i,a=o.scrollLeft,c=o.offsetWidth,s=r.offsetWidth,l=c-s,d=o.children[0].offsetWidth,u=parseInt(window.getComputedStyle(o).gap,10)||0;"left"===e?n="container_event-tray"===t?(i=Math.floor(a/(d+u)))*(d+u)-s:((i=Math.floor(a/d))-Math.floor(l/d)+1)*d-s:(i=Math.floor((a+l)/d),n="container_event-tray"===t?a+(d+u-(a+c-i*(d+u)))+3:i*d-s);o.scrollTo({left:n,behavior:"smooth"})};!function(){if(e.classList.contains(t)){if("container_ribbon"===t){var c=e.querySelectorAll(".card");c.forEach(function(e,o){var n=e.querySelector("a[href]"),r={zone_position_number:1,zone_total_number:1,container_position_number:1,container_name:t,container_total_number:1,card_name:n.innerText,card_position_number:o+1,card_total_number:c.length};setAdobeAnalyticsCookie(n,r)})}n.insertBefore(r,n.firstChild),n.appendChild(i),o.addEventListener("scroll",function(){var e,t,n;e=Math.round(o.scrollLeft),t=o.scrollWidth,n=o.clientWidth,0===e?hideDomNode(r):(showDomNode(r),t-n<=e?hideDomNode(i):showDomNode(i))}),r.addEventListener("click",function(){a("left")}),i.addEventListener("click",function(){a("right")}),o.scrollWidth===o.clientWidth?i.classList.add("hide"):"container_ribbon"===t&&(o.style.justifyContent="normal")}}()})};
}, {"97":97}];
window.modules["live-story-post.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_inherits2=_interopRequireDefault(require(13)),_possibleConstructorReturn2=_interopRequireDefault(require(14)),_getPrototypeOf2=_interopRequireDefault(require(15));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var l=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(72),formatLastUpdated=_require.formatLastUpdated,_require2=require(16),ClientModel=_require2.ClientModel,initializeOnLoad=_require2.initializeOnLoad,LiveStoryPostClient=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;return(0,_classCallCheck2.default)(this,r),(i=t.call(this,e)).timeStampEl=e.querySelector(".live-story-post__timestamp"),i.timeStampEl&&(i.timeStampEl.innerHTML=formatLastUpdated(i.el.dataset.lastUpdated,!0)),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnLoad(LiveStoryPostClient);
}, {"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"72":72}];
window.modules["subnav.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_asyncToGenerator2=_interopRequireDefault(require(24));module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,a,n,i,o,u,l,s,c;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={},a={zjsNavigationLocation:"header,footer"},n=0,i=Object.entries(a);n0&&this.tagFilter.classList.add("right-scroll"));this.bindDomEvents()}},{key:"bindDomEvents",value:function(){this.bind(".live-story-filter-tags__tag-filter-btn","click",this.handleFilterClick),this.tagFilter&&this.tagFilter.addEventListener("scroll",this.horizontalTagScroll)}},{key:"horizontalTagScroll",value:function(e){var t=e.target,r=t.scrollLeft,i=t.scrollWidth-t.clientWidth;0===r?t.classList.remove("left-scroll"):r>0&&r=recentLimit&&s=fairlyRecentLimit&&s0?t.length:"",r=e.closest("[data-".concat(DATA_ATTRIBUTE_PREFIX,"-collection]"))||document.body,o=r===document.body?"body":r.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Collection")],i="";o===ZONE_COMPONENT_NAME&&(i=t.indexOf(r));var a=Array.from(r.querySelectorAll('[data-uri*="/_components/"]')),c=a.length;return{collection_type:o,collection_type_index:i,collection_type_length:n,collection_item_index:a.indexOf(e),collection_item_length:c}}function getWordCount(e){return e.innerText?e.innerText.match(/\w+/g).length:0}function getAggregateComponentElement(e){return e.closest("[data-".concat(DATA_ATTRIBUTE_PREFIX,'-aggregate-events="true"]'))}function trackZionEvent(e){window.zion_analytics&&window.zion_analytics.track(e)}function initializeOnOffEvents(){if(EnvVars.get("ENABLE_ZION_ANALYTICS_ON_OFF_EVENTS")){var e=function(e){window.ZION_SDK&&e.forEach(function(e){var t=e.target,n=e.isIntersecting,r=t.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")];if(r===COMPONENT_ON_EVENT&&n||r===COMPONENT_OFF_EVENT&&!n){var o=n?window.ZION_SDK.ComponentOnScreen:window.ZION_SDK.ComponentOffScreen,i=t.dataset.uri,a=function(){return setTimeout(function(){return trackZionEvent(new o({component_type:getComponentName(i),component_id:getComponentInstance(i),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(t)),getOptionalOnOffProperties(t)),{},{word_count:getWordCount(t)})}))},1500)};window.requestIdleCallback?window.requestIdleCallback(a,{timeout:500}):a(),t.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")]=n?COMPONENT_OFF_EVENT:COMPONENT_ON_EVENT}})},t=Object.keys(OBSERVED_COMPONENT_THRESHOLDS).reduce(function(t,n){return _objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},n,new IntersectionObserver(e,{threshold:OBSERVED_COMPONENT_THRESHOLDS[n]})))},{});ZION_ON_OFF_OBSERVED_COMPONENTS.forEach(function(e){document.querySelectorAll('[data-uri*="/_components/'.concat(e,'/"]')).forEach(function(n){n.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")]=COMPONENT_ON_EVENT,t[e]?t[e].observe(n):t.default.observe(n)})})}}function initializeClickEvents(){EnvVars.get("ENABLE_ZION_ANALYTICS_CLICK_EVENTS")&&document.body.addEventListener("click",function(e){var t="",n="",r="",o=e.target,i=o.closest("a[href]"),a=o.closest("[data-uri]"),c=getAggregateComponentElement(o);i&&i.href&&(r=i.href);var _=_objectSpread(_objectSpread({},getCustomProperties(o=c||a)),c?getCustomProperties(a):{}),s=e.target!==o?getCustomProperties(e.target):{};if(o){if(n=o.dataset.uri,"gallery"===(t=getComponentName(n))){var l,E=e.target.classList[0];E.includes("next")?l=_.carousel_item_index===_.carousel_item_length?1:_.carousel_item_index+1:E.includes("prev")&&(l=1===_.carousel_item_index?_.carousel_item_length:_.carousel_item_index-1),_.carousel_item_index=l}ZION_CLICK_OBSERVED_COMPONENTS.includes(t)&&trackZionEvent(new window.ZION_SDK.GenericClick({component_id:getComponentInstance(n),component_type:getComponentName(n),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(o)),_objectSpread(_objectSpread({},s),_)),{},{word_count:getWordCount(o),destination_url:r})}))}})}function initializeAnalyticsEvents(){isPageVariant(ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS)&&(initializeOnOffEvents(),initializeClickEvents())}window.ZION_SDK?initializeAnalyticsEvents():window.addEventListener("zion.loaded",initializeAnalyticsEvents);
}, {"2":2,"5":5,"10":10,"18":18,"44":44,"89":89,"240":240}];
window.modules["bizdev-wunderkind.legacy"] = [function(require,module,exports){"use strict";var _require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,EnvVars=require(5),_require3=require(29),isEditionPage=_require3.isEditionPage,isEspanolPage=_require3.isEspanolPage,_require4=require(427),isEligibleForFocusMode=_require4.isEligibleForFocusMode,ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","measure-ads","measure-market","product-develop"],initWunderkind=function(){var e=isEspanolPage()?EnvVars.get("ENABLE_WUNDERKIND_ES"):EnvVars.get("ENABLE_WUNDERKIND"),i=!!isEspanolPage()&&EnvVars.get("WUNDERKIND_SRC_ES")||(isEditionPage()?EnvVars.get("WUNDERKIND_SRC_EDITION"):EnvVars.get("WUNDERKIND_SRC"));e&&window.WM.UserConsent.addScript({src:i,id:"wunderkind_script",async:!0},ucStates)},waitForAdVariant=function(){subscribe(actions.ADS.SET_AD_VARIANT,function(e){e.adVariant===AD_VARIANTS.DEFAULT&&initWunderkind()})};isEligibleForFocusMode()?waitForAdVariant():initWunderkind();
}, {"5":5,"9":9,"16":16,"29":29,"427":427}];
window.modules["campaign-promo-events.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(44),authClient=_require.authClient,NewsletterClient=require(249),campaignPromos=document.createElement("campaignPromos"),newsletterClient=new NewsletterClient(authClient),trackCampaignPromoEvent=function(e,n){var t=n.campaign_id,r=n.campaign_type,a=n.campaign_name,i=n.campaign_objective;window.zion_analytics.track(new e({component_id:"promo_body",component_type:"".concat(r,"_promo"),traits:{campaign_id:t,campaign_type:r,campaign_name:a,campaign_objective:i}}))};campaignPromos.addEventListener("close",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOffScreen,n)}),campaignPromos.addEventListener("impression",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOnScreen,n)}),campaignPromos.addEventListener("submission",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.GenericSubmit,n)}),campaignPromos.addEventListener("activation",function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentLoaded,n)}),campaignPromos.getSubscribedNewsletters=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,newsletterClient.retrieveSubscriptions({useCache:!0});case 2:return n=e.sent,e.abrupt("return",n.filter(function(e){return e.subscribed}).map(function(e){return e.newsletterName}));case 4:case"end":return e.stop()}},e)})),window.CNN.campaignPromos=campaignPromos,window.dispatchEvent(new CustomEvent("CNN.campaignPromos.loaded"));
}, {"10":10,"24":24,"25":25,"44":44,"249":249}];
window.modules["chartbeat-setup.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_defineProperty2=_interopRequireDefault(require(18)),_require=require(45),isSection=_require.isSection,SECTIONS=_require.SECTIONS,isStrategyRegistered=!1,CnnChartbeatVideoStrategy=function(){function e(t){var i=this;(0,_classCallCheck2.default)(this,e),(0,_defineProperty2.default)(this,"_cbPlayer",null),(0,_defineProperty2.default)(this,"_currentAdPosition",null),(0,_defineProperty2.default)(this,"_ready",!1),(0,_defineProperty2.default)(this,"_strategyName","CNN"),(0,_defineProperty2.default)(this,"_videoPlayed",!1),(0,_defineProperty2.default)(this,"_videoStartTime",null),(0,_defineProperty2.default)(this,"_viewStartTime",this._now()),(0,_defineProperty2.default)(this,"_onPlaybackReady",function(){i._ready=!0}),(0,_defineProperty2.default)(this,"_onVideoPlaying",function(){i._videoPlayed||(i._videoStartTime=i._now(),i._videoPlayed=!0)}),this._cbPlayer=t,this._subscribeEvents()}return(0,_createClass2.default)(e,[{key:"_now",value:function(){return(new Date).getTime()}},{key:"_subscribeEvents",value:function(){this._cbPlayer.readyState>2&&this._onPlaybackReady(),this._cbPlayer.currentTime>0&&!this._cbPlayer.paused&&!this._cbPlayer.ended&&this._onVideoPlaying(),this._cbPlayer.canplay.add(this._onPlaybackReady),this._cbPlayer.playing.add(this._onVideoPlaying)}},{key:"getAdPosition",value:function(){return this._cbPlayer.getAdPosition()}},{key:"getAutoplayType",value:function(){return this._cbPlayer.getAutoplayType()}},{key:"getBitrate",value:function(){return this._cbPlayer.getBitrate()}},{key:"getContentType",value:function(){return this._cbPlayer.getContentType()}},{key:"getCurrentPlayTime",value:function(){return this._cbPlayer.getCurrentPlayTime()}},{key:"getPlayerType",value:function(){return this._cbPlayer.getPlayerType()}},{key:"getSections",value:function(){return this._cbPlayer.getSections()}},{key:"getState",value:function(){return this._cbPlayer.getState()}},{key:"getStrategyName",value:function(){return this._strategyName}},{key:"getThumbnailPath",value:function(){return this._cbPlayer.getThumbnailPath()}},{key:"getTitle",value:function(){return this._cbPlayer.getTitle()}},{key:"getTotalDuration",value:function(){return this._cbPlayer.getTotalDuration()}},{key:"getVideoPath",value:function(){return this._cbPlayer.getVideoPath()}},{key:"getViewAdPlayTime",value:function(){return this.timeElapsed(this._viewStartTime)}},{key:"getViewPlayTime",value:function(){if(this._videoPlayed)return this.timeElapsed(this._viewStartTime)}},{key:"getViewStartTime",value:function(){return this.timeElapsed(this._viewStartTime)||0}},{key:"isReady",value:function(){return this._ready}},{key:"timeElapsed",value:function(e){return void 0===e?0:this._now()-e}}]),e}();function registerChartbeatVideoStrategy(){!0!==isStrategyRegistered&&(window._cbv_strategies=window._cbv_strategies||[],window._cbv_strategies.push(CnnChartbeatVideoStrategy),isStrategyRegistered=!0)}(0,_defineProperty2.default)(CnnChartbeatVideoStrategy,"verify",function(e){return"function"==typeof e.fromFave}),function(){function e(){window.WM.UserConsent.addScript({src:"//static.chartbeat.com/js/chartbeat_video.js",async:!0},["data-store","content-person","measure-content"])}var t=(window.CNN||{}).contentModel||{},i=(window.CNN||{}).omniture||{};registerChartbeatVideoStrategy();var n,r,a,o,l=window._sf_async_config=window._sf_async_config||{};l.uid=37612,l.domain=(o="cnn.com","es"===(null===(n=window.CNN.contentModel)||void 0===n?void 0:n.brandSite)&&(o="cnnespanol.".concat(o)),-1!=window.location.hostname.indexOf("edition")&&(o="edition.".concat(o)),"prod"!=(null===(r=window.CNN)||void 0===r?void 0:null===(a=r.contentModel)||void 0===a?void 0:a.environment)&&(o="dev.".concat(o)),o),l.sections=t.vertical,l.authors=i.cap_author,l.title=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return isSection(SECTIONS.HOMEPAGE)?e.replace(" Desktop","").replace(" Mobile",""):e}(i.headline),l.flickerControl=!1,l.articleBlockSelector="div.card,div.container__item,p.paragraph>a",l.autoDetect=!1,l.path=function(){var e,t,i=window.location.hostname,n=null===(e=(t=document.querySelector("[rel=canonical]")).getAttribute)||void 0===e?void 0:e.call(t,"href");try{return i+new URL(n).pathname}catch(e){return i+document.location.pathname}}(),window.WM.UserConsent?e():window.addEventListener("user-consent.loaded",e)}(),module.exports={CnnChartbeatVideoStrategy:CnnChartbeatVideoStrategy};
}, {"10":10,"11":11,"12":12,"18":18,"45":45}];
window.modules["live-story.legacy"] = [function(require,module,exports){"use strict";var _require=require(173),updatePostsTimestampLive=_require.updatePostsTimestampLive;updatePostsTimestampLive(document.querySelectorAll(".liveStoryPost")),setInterval(function(){return updatePostsTimestampLive(document.querySelectorAll(".liveStoryPost"))},6e4);
}, {"173":173}];
window.modules["relevance-user.legacy"] = [function(require,module,exports){"use strict";var _require=require(420),trackUserViewedContent=_require.trackUserViewedContent;trackUserViewedContent(window.CNN.contentModel);
}, {"420":420}];
window.modules["shared-arkose-newsletters.legacy"] = [function(require,module,exports){"use strict";var nlArkoseEnforcement,daexData,_interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(250),createArkoseScript=_require.createArkoseScript,getDaexData=_require.getDaexData,enforcementOnError=_require.enforcementOnError,MAX_RETRY_COUNT=_require.MAX_RETRY_COUNT,retryCount=0,setupCbName="setupArkoseDualNewsletters",nlLoadedEvent="cnn-nl-arkose-loaded",setArkoseConfig=function(e){var r=e.arkoseOnReady,n=e.arkoseOnCompleted,t=e.arkoseOnError,a=e.setBy;nlArkoseEnforcement.setConfig({data:daexData&&{blob:daexData}||{},onReady:function(){r&&r({enforcement:nlArkoseEnforcement})},onCompleted:n,onError:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return retryCount++,e.next=3,enforcementOnError({enforcementInstance:nlArkoseEnforcement,callbackFnName:setupCbName,retryTimes:retryCount});case 3:retryCount===MAX_RETRY_COUNT&&t&&t();case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),window.arkoseEnforcementCNN.lastSetBy=a,nlArkoseEnforcement.reset()},resetArkoseConfig=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(daexData){e.next=4;break}return e.next=3,getDaexData("NEWSLETTERS");case 3:daexData=e.sent;case 4:nlArkoseEnforcement?setArkoseConfig(r):(createArkoseScript({srcEnvVar:"ARKOSE_NEWSLETTERS_SRC",callbackFnName:setupCbName,id:"arkose-newsletters-script"}),document.addEventListener(nlLoadedEvent,function(){setArkoseConfig(r)}));case 5:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();window.arkoseEnforcementCNN={},window[setupCbName]=function(e){nlArkoseEnforcement=e,document.dispatchEvent(new CustomEvent(nlLoadedEvent))},window.arkoseEnforcementCNN.enforcementSetup=resetArkoseConfig;
}, {"10":10,"24":24,"25":25,"250":250}];
window.modules["zeta.legacy"] = [function(require,module,exports){"use strict";var clientHashKey=window.zeta.client_hash_key,partnerHashKey=window.zeta.partner_hash_key,tagShortName=window.zeta.tag_short_name,siteId=window.zeta.site_id,resourceId=window.CNN.contentModel.sourceId,resourceType=window.CNN.contentModel.pageType,section=window.CNN.contentModel.section,cacheBuster=Date.now(),src="https://live.rezync.com/sync?"+"c=".concat(clientHashKey)+"&p=".concat(partnerHashKey)+"&k=".concat(tagShortName)+"&zmpID=".concat(siteId)+"&custom1=".concat(resourceId)+"&custom2=".concat(resourceType)+"&custom3=".concat(section)+"&cache_buster=".concat(cacheBuster),async=!0,ucStates=["data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"];function init(){window.WM.UserConsent.addScript({src:src,async:async},ucStates)}window.WM.UserConsent?init():window.addEventListener("user-consent.loaded",init);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/))
.forEach((key) => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules)
.filter((key) => typeof key === 'string' && key.match(/\.client$/))
.forEach((key) => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `production` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = 'production';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]