-1}module.exports=listCacheHas;\n}, {\"2977\":2977}];\nwindow.modules[\"2930\"] = [function(require,module,exports){var assocIndexOf=require(2977);function listCacheSet(s,e){var t=this.__data__,a=assocIndexOf(t,s);return a<0?(++this.size,t.push([s,e])):t[a][1]=e,this}module.exports=listCacheSet;\n}, {\"2977\":2977}];\nwindow.modules[\"2931\"] = [function(require,module,exports){var assocIndexOf=require(2977),arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var r=this.__data__,a=assocIndexOf(r,e);return!(a<0)&&(a==r.length-1?r.pop():splice.call(r,a,1),--this.size,!0)}module.exports=listCacheDelete;\n}, {\"2977\":2977}];\nwindow.modules[\"2933\"] = [function(require,module,exports){var getNative=require(2916),root=require(2915),Map=getNative(root,\"Map\");module.exports=Map;\n}, {\"2915\":2915,\"2916\":2916}];\nwindow.modules[\"2934\"] = [function(require,module,exports){var mapCacheClear=require(2939),mapCacheDelete=require(2938),mapCacheGet=require(2935),mapCacheHas=require(2937),mapCacheSet=require(2936);function MapCache(e){var a=-1,p=null==e?0:e.length;for(this.clear();++a-1&&e%1==0&&e0&&r(u)?e>1?baseFlatten(u,e-1,r,t,l):arrayPush(l,u):t||(l[l.length]=u)}return l}module.exports=baseFlatten;\n}, {\"2966\":2966,\"3006\":3006}];\nwindow.modules[\"3006\"] = [function(require,module,exports){var Symbol=require(2951),isArguments=require(2960),isArray=require(446),spreadableSymbol=Symbol?Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}module.exports=isFlattenable;\n}, {\"446\":446,\"2951\":2951,\"2960\":2960}];\nwindow.modules[\"3007\"] = [function(require,module,exports){var createBaseFor=require(3008),baseFor=createBaseFor();module.exports=baseFor;\n}, {\"3008\":3008}];\nwindow.modules[\"3008\"] = [function(require,module,exports){function createBaseFor(e){return function(r,t,a){for(var n=-1,o=Object(r),c=a(r),u=c.length;u--;){var f=c[e?u:++n];if(!1===t(o[f],f,o))break}return r}}module.exports=createBaseFor;\n}, {}];\nwindow.modules[\"3009\"] = [function(require,module,exports){var castPath=require(3010),toKey=require(3011);function baseGet(e,t){for(var a=0,r=(t=castPath(t,e)).length;null!=e&&an))return!1;var f=u.get(e),o=u.get(r);if(f&&o)return f==r&&o==e;var _=-1,s=!0,R=a&COMPARE_UNORDERED_FLAG?new SetCache:void 0;for(u.set(e,r),u.set(r,e);++_-1&&e%1==0&&e<=MAX_SAFE_INTEGER}module.exports=isLength;\n}, {}];\nwindow.modules[\"3038\"] = [function(require,module,exports){var baseMatches=require(3040),baseMatchesProperty=require(3039),identity=require(104),isArray=require(446),property=require(3041);function baseIteratee(e){return\"function\"==typeof e?e:null==e?identity:\"object\"==typeof e?isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}module.exports=baseIteratee;\n}, {\"104\":104,\"446\":446,\"3039\":3039,\"3040\":3040,\"3041\":3041}];\nwindow.modules[\"3039\"] = [function(require,module,exports){var baseIsEqual=require(3023),get=require(1),hasIn=require(3052),isKey=require(3051),isStrictComparable=require(3053),matchesStrictComparable=require(3049),toKey=require(3011),COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,r){return isKey(e)&&isStrictComparable(r)?matchesStrictComparable(toKey(e),r):function(a){var t=get(a,e);return void 0===t&&t===r?hasIn(a,e):baseIsEqual(r,t,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}module.exports=baseMatchesProperty;\n}, {\"1\":1,\"3011\":3011,\"3023\":3023,\"3049\":3049,\"3051\":3051,\"3052\":3052,\"3053\":3053}];\nwindow.modules[\"3040\"] = [function(require,module,exports){var baseIsMatch=require(3029),getMatchData=require(3050),matchesStrictComparable=require(3049);function baseMatches(a){var t=getMatchData(a);return 1==t.length&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(e){return e===a||baseIsMatch(e,a,t)}}module.exports=baseMatches;\n}, {\"3029\":3029,\"3049\":3049,\"3050\":3050}];\nwindow.modules[\"3041\"] = [function(require,module,exports){var baseProperty=require(2970),basePropertyDeep=require(3067),isKey=require(3051),toKey=require(3011);function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}module.exports=property;\n}, {\"2970\":2970,\"3011\":3011,\"3051\":3051,\"3067\":3067}];\nwindow.modules[\"3042\"] = [function(require,module,exports){var isPrototype=require(3043),nativeKeys=require(3044),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var r=[];for(var t in Object(e))hasOwnProperty.call(e,t)&&\"constructor\"!=t&&r.push(t);return r}module.exports=baseKeys;\n}, {\"3043\":3043,\"3044\":3044}];\nwindow.modules[\"3043\"] = [function(require,module,exports){var objectProto=Object.prototype;function isPrototype(o){var t=o&&o.constructor;return o===(\"function\"==typeof t&&t.prototype||objectProto)}module.exports=isPrototype;\n}, {}];\nwindow.modules[\"3044\"] = [function(require,module,exports){var overArg=require(3128),nativeKeys=overArg(Object.keys,Object);module.exports=nativeKeys;\n}, {\"3128\":3128}];\nwindow.modules[\"3045\"] = [function(require,module,exports){var isObject=require(445),isPrototype=require(3043),nativeKeysIn=require(3046),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var r=isPrototype(e),t=[];for(var o in e)(\"constructor\"!=o||!r&&hasOwnProperty.call(e,o))&&t.push(o);return t}module.exports=baseKeysIn;\n}, {\"445\":445,\"3043\":3043,\"3046\":3046}];\nwindow.modules[\"3046\"] = [function(require,module,exports){function nativeKeysIn(n){var e=[];if(null!=n)for(var r in Object(n))e.push(r);return e}module.exports=nativeKeysIn;\n}, {}];\nwindow.modules[\"3048\"] = [function(require,module,exports){var isFunction=require(3031),isLength=require(3037);function isArrayLike(i){return null!=i&&isLength(i.length)&&!isFunction(i)}module.exports=isArrayLike;\n}, {\"3031\":3031,\"3037\":3037}];\nwindow.modules[\"3049\"] = [function(require,module,exports){function matchesStrictComparable(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}module.exports=matchesStrictComparable;\n}, {}];\nwindow.modules[\"3050\"] = [function(require,module,exports){var isStrictComparable=require(3053),keys=require(2982);function getMatchData(r){for(var e=keys(r),t=e.length;t--;){var a=e[t],i=r[a];e[t]=[a,i,isStrictComparable(i)]}return e}module.exports=getMatchData;\n}, {\"2982\":2982,\"3053\":3053}];\nwindow.modules[\"3051\"] = [function(require,module,exports){var isArray=require(446),isSymbol=require(3003),reIsDeepProp=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,reIsPlainProp=/^\\w*$/;function isKey(r,e){if(isArray(r))return!1;var s=typeof r;return!(\"number\"!=s&&\"symbol\"!=s&&\"boolean\"!=s&&null!=r&&!isSymbol(r))||(reIsPlainProp.test(r)||!reIsDeepProp.test(r)||null!=e&&r in Object(e))}module.exports=isKey;\n}, {\"446\":446,\"3003\":3003}];\nwindow.modules[\"3052\"] = [function(require,module,exports){var baseHasIn=require(3017),hasPath=require(3130);function hasIn(a,s){return null!=a&&hasPath(a,s,baseHasIn)}module.exports=hasIn;\n}, {\"3017\":3017,\"3130\":3130}];\nwindow.modules[\"3053\"] = [function(require,module,exports){var isObject=require(445);function isStrictComparable(e){return e==e&&!isObject(e)}module.exports=isStrictComparable;\n}, {\"445\":445}];\nwindow.modules[\"3054\"] = [function(require,module,exports){var Stack=require(2945),assignMergeValue=require(2973),baseFor=require(3007),baseMergeDeep=require(3056),isObject=require(445),keysIn=require(2984),safeGet=require(3055);function baseMerge(e,r,s,a,i){e!==r&&baseFor(r,function(u,b){if(i||(i=new Stack),isObject(u))baseMergeDeep(e,r,b,s,baseMerge,a,i);else{var g=a?a(safeGet(e,b),u,b+\"\",e,r,i):void 0;void 0===g&&(g=u),assignMergeValue(e,b,g)}},keysIn)}module.exports=baseMerge;\n}, {\"445\":445,\"2945\":2945,\"2973\":2973,\"2984\":2984,\"3007\":3007,\"3055\":3055,\"3056\":3056}];\nwindow.modules[\"3055\"] = [function(require,module,exports){function safeGet(t,o){if((\"constructor\"!==o||\"function\"!=typeof t[o])&&\"__proto__\"!=o)return t[o]}module.exports=safeGet;\n}, {}];\nwindow.modules[\"3056\"] = [function(require,module,exports){var assignMergeValue=require(2973),cloneBuffer=require(2991),cloneTypedArray=require(3057),copyArray=require(2989),initCloneObject=require(2994),isArguments=require(2960),isArray=require(446),isArrayLikeObject=require(3059),isBuffer=require(2961),isFunction=require(3031),isObject=require(445),isPlainObject=require(112),isTypedArray=require(2963),safeGet=require(3055),toPlainObject=require(3058);function baseMergeDeep(e,r,i,s,a,t,n){var u=safeGet(e,i),c=safeGet(r,i),y=n.get(c);if(y)assignMergeValue(e,i,y);else{var o=t?t(u,c,i+\"\",e,r,n):void 0,l=void 0===o;if(l){var A=isArray(c),f=!A&&isBuffer(c),b=!A&&!f&&isTypedArray(c);o=c,A||f||b?isArray(u)?o=u:isArrayLikeObject(u)?o=copyArray(u):f?(l=!1,o=cloneBuffer(c,!0)):b?(l=!1,o=cloneTypedArray(c,!0)):o=[]:isPlainObject(c)||isArguments(c)?(o=u,isArguments(u)?o=toPlainObject(u):isObject(u)&&!isFunction(u)||(o=initCloneObject(c))):l=!1}l&&(n.set(c,o),a(o,c,s,t,n),n.delete(c)),assignMergeValue(e,i,o)}}module.exports=baseMergeDeep;\n}, {\"112\":112,\"445\":445,\"446\":446,\"2960\":2960,\"2961\":2961,\"2963\":2963,\"2973\":2973,\"2989\":2989,\"2991\":2991,\"2994\":2994,\"3031\":3031,\"3055\":3055,\"3057\":3057,\"3058\":3058,\"3059\":3059}];\nwindow.modules[\"3057\"] = [function(require,module,exports){var cloneArrayBuffer=require(3091);function cloneTypedArray(r,e){var f=e?cloneArrayBuffer(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}module.exports=cloneTypedArray;\n}, {\"3091\":3091}];\nwindow.modules[\"3058\"] = [function(require,module,exports){var copyObject=require(2981),keysIn=require(2984);function toPlainObject(e){return copyObject(e,keysIn(e))}module.exports=toPlainObject;\n}, {\"2981\":2981,\"2984\":2984}];\nwindow.modules[\"3059\"] = [function(require,module,exports){var isArrayLike=require(3048),isObjectLike=require(3022);function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}module.exports=isArrayLikeObject;\n}, {\"3022\":3022,\"3048\":3048}];\nwindow.modules[\"3061\"] = [function(require,module,exports){function baseUnary(n){return function(r){return n(r)}}module.exports=baseUnary;\n}, {}];\nwindow.modules[\"3065\"] = [function(require,module,exports){var baseGet=require(3009),baseSet=require(3066),castPath=require(3010);function basePickBy(e,a,t){for(var r=-1,s=a.length,b={};++rn?0:n+r),(a=a>n?n:a)<0&&(a+=n),n=r>a?0:a-r>>>0,r>>>=0;for(var o=Array(n);++l=a?e:baseSlice(e,c,i)}module.exports=castSlice;\n}, {\"3076\":3076}];\nwindow.modules[\"3091\"] = [function(require,module,exports){var Uint8Array=require(2952);function cloneArrayBuffer(r){var e=new r.constructor(r.byteLength);return new Uint8Array(e).set(new Uint8Array(r)),e}module.exports=cloneArrayBuffer;\n}, {\"2952\":2952}];\nwindow.modules[\"3092\"] = [function(require,module,exports){var cloneArrayBuffer=require(3091);function cloneDataView(e,r){var f=r?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(f,e.byteOffset,e.byteLength)}module.exports=cloneDataView;\n}, {\"3091\":3091}];\nwindow.modules[\"3093\"] = [function(require,module,exports){var reFlags=/\\w*$/;function cloneRegExp(e){var r=new e.constructor(e.source,reFlags.exec(e));return r.lastIndex=e.lastIndex,r}module.exports=cloneRegExp;\n}, {}];\nwindow.modules[\"3094\"] = [function(require,module,exports){var Symbol=require(2951),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol(o){return symbolValueOf?Object(symbolValueOf.call(o)):{}}module.exports=cloneSymbol;\n}, {\"2951\":2951}];\nwindow.modules[\"3096\"] = [function(require,module,exports){var arrayFilter=require(2958),stubArray=require(3129),objectProto=Object.prototype,propertyIsEnumerable=objectProto.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(r){return null==r?[]:(r=Object(r),arrayFilter(nativeGetSymbols(r),function(e){return propertyIsEnumerable.call(r,e)}))}:stubArray;module.exports=getSymbols;\n}, {\"2958\":2958,\"3129\":3129}];\nwindow.modules[\"3097\"] = [function(require,module,exports){var arrayPush=require(2966),getPrototype=require(3127),getSymbols=require(3096),stubArray=require(3129),nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(r){for(var e=[];r;)arrayPush(e,getSymbols(r)),r=getPrototype(r);return e}:stubArray;module.exports=getSymbolsIn;\n}, {\"2966\":2966,\"3096\":3096,\"3127\":3127,\"3129\":3129}];\nwindow.modules[\"3098\"] = [function(require,module,exports){var root=require(2915),coreJsData=root[\"__core-js_shared__\"];module.exports=coreJsData;\n}, {\"2915\":2915}];\nwindow.modules[\"3100\"] = [function(require,module,exports){var baseRest=require(3071),isIterateeCall=require(3101);function createAssigner(e){return baseRest(function(t,r){var a=-1,i=r.length,s=i>1?r[i-1]:void 0,n=i>2?r[2]:void 0;for(s=e.length>3&&\"function\"==typeof s?(i--,s):void 0,n&&isIterateeCall(r[0],r[1],n)&&(s=i<3?void 0:s,i=1),t=Object(t);++a-1?a[n?r[s]:s]:void 0}}module.exports=createFind;\n}, {\"2982\":2982,\"3038\":3038,\"3048\":3048}];\nwindow.modules[\"3110\"] = [function(require,module,exports){var flatten=require(3120),overRest=require(3073),setToString=require(3072);function flatRest(e){return setToString(overRest(e,void 0,flatten),e+\"\")}module.exports=flatRest;\n}, {\"3072\":3072,\"3073\":3073,\"3120\":3120}];\nwindow.modules[\"3115\"] = [function(require,module,exports){var toNumber=require(3147),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308;function toFinite(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}module.exports=toFinite;\n}, {\"3147\":3147}];\nwindow.modules[\"3116\"] = [function(require,module,exports){var isPlainObject=require(112);function customOmitClone(i){return isPlainObject(i)?void 0:i}module.exports=customOmitClone;\n}, {\"112\":112}];\nwindow.modules[\"3117\"] = [function(require,module,exports){var basePropertyOf=require(3068),deburredLetters={\"\u00c0\":\"A\",\"\u00c1\":\"A\",\"\u00c2\":\"A\",\"\u00c3\":\"A\",\"\u00c4\":\"A\",\"\u00c5\":\"A\",\"\u00e0\":\"a\",\"\u00e1\":\"a\",\"\u00e2\":\"a\",\"\u00e3\":\"a\",\"\u00e4\":\"a\",\"\u00e5\":\"a\",\"\u00c7\":\"C\",\"\u00e7\":\"c\",\"\u00d0\":\"D\",\"\u00f0\":\"d\",\"\u00c8\":\"E\",\"\u00c9\":\"E\",\"\u00ca\":\"E\",\"\u00cb\":\"E\",\"\u00e8\":\"e\",\"\u00e9\":\"e\",\"\u00ea\":\"e\",\"\u00eb\":\"e\",\"\u00cc\":\"I\",\"\u00cd\":\"I\",\"\u00ce\":\"I\",\"\u00cf\":\"I\",\"\u00ec\":\"i\",\"\u00ed\":\"i\",\"\u00ee\":\"i\",\"\u00ef\":\"i\",\"\u00d1\":\"N\",\"\u00f1\":\"n\",\"\u00d2\":\"O\",\"\u00d3\":\"O\",\"\u00d4\":\"O\",\"\u00d5\":\"O\",\"\u00d6\":\"O\",\"\u00d8\":\"O\",\"\u00f2\":\"o\",\"\u00f3\":\"o\",\"\u00f4\":\"o\",\"\u00f5\":\"o\",\"\u00f6\":\"o\",\"\u00f8\":\"o\",\"\u00d9\":\"U\",\"\u00da\":\"U\",\"\u00db\":\"U\",\"\u00dc\":\"U\",\"\u00f9\":\"u\",\"\u00fa\":\"u\",\"\u00fb\":\"u\",\"\u00fc\":\"u\",\"\u00dd\":\"Y\",\"\u00fd\":\"y\",\"\u00ff\":\"y\",\"\u00c6\":\"Ae\",\"\u00e6\":\"ae\",\"\u00de\":\"Th\",\"\u00fe\":\"th\",\"\u00df\":\"ss\",\"\u0100\":\"A\",\"\u0102\":\"A\",\"\u0104\":\"A\",\"\u0101\":\"a\",\"\u0103\":\"a\",\"\u0105\":\"a\",\"\u0106\":\"C\",\"\u0108\":\"C\",\"\u010a\":\"C\",\"\u010c\":\"C\",\"\u0107\":\"c\",\"\u0109\":\"c\",\"\u010b\":\"c\",\"\u010d\":\"c\",\"\u010e\":\"D\",\"\u0110\":\"D\",\"\u010f\":\"d\",\"\u0111\":\"d\",\"\u0112\":\"E\",\"\u0114\":\"E\",\"\u0116\":\"E\",\"\u0118\":\"E\",\"\u011a\":\"E\",\"\u0113\":\"e\",\"\u0115\":\"e\",\"\u0117\":\"e\",\"\u0119\":\"e\",\"\u011b\":\"e\",\"\u011c\":\"G\",\"\u011e\":\"G\",\"\u0120\":\"G\",\"\u0122\":\"G\",\"\u011d\":\"g\",\"\u011f\":\"g\",\"\u0121\":\"g\",\"\u0123\":\"g\",\"\u0124\":\"H\",\"\u0126\":\"H\",\"\u0125\":\"h\",\"\u0127\":\"h\",\"\u0128\":\"I\",\"\u012a\":\"I\",\"\u012c\":\"I\",\"\u012e\":\"I\",\"\u0130\":\"I\",\"\u0129\":\"i\",\"\u012b\":\"i\",\"\u012d\":\"i\",\"\u012f\":\"i\",\"\u0131\":\"i\",\"\u0134\":\"J\",\"\u0135\":\"j\",\"\u0136\":\"K\",\"\u0137\":\"k\",\"\u0138\":\"k\",\"\u0139\":\"L\",\"\u013b\":\"L\",\"\u013d\":\"L\",\"\u013f\":\"L\",\"\u0141\":\"L\",\"\u013a\":\"l\",\"\u013c\":\"l\",\"\u013e\":\"l\",\"\u0140\":\"l\",\"\u0142\":\"l\",\"\u0143\":\"N\",\"\u0145\":\"N\",\"\u0147\":\"N\",\"\u014a\":\"N\",\"\u0144\":\"n\",\"\u0146\":\"n\",\"\u0148\":\"n\",\"\u014b\":\"n\",\"\u014c\":\"O\",\"\u014e\":\"O\",\"\u0150\":\"O\",\"\u014d\":\"o\",\"\u014f\":\"o\",\"\u0151\":\"o\",\"\u0154\":\"R\",\"\u0156\":\"R\",\"\u0158\":\"R\",\"\u0155\":\"r\",\"\u0157\":\"r\",\"\u0159\":\"r\",\"\u015a\":\"S\",\"\u015c\":\"S\",\"\u015e\":\"S\",\"\u0160\":\"S\",\"\u015b\":\"s\",\"\u015d\":\"s\",\"\u015f\":\"s\",\"\u0161\":\"s\",\"\u0162\":\"T\",\"\u0164\":\"T\",\"\u0166\":\"T\",\"\u0163\":\"t\",\"\u0165\":\"t\",\"\u0167\":\"t\",\"\u0168\":\"U\",\"\u016a\":\"U\",\"\u016c\":\"U\",\"\u016e\":\"U\",\"\u0170\":\"U\",\"\u0172\":\"U\",\"\u0169\":\"u\",\"\u016b\":\"u\",\"\u016d\":\"u\",\"\u016f\":\"u\",\"\u0171\":\"u\",\"\u0173\":\"u\",\"\u0174\":\"W\",\"\u0175\":\"w\",\"\u0176\":\"Y\",\"\u0177\":\"y\",\"\u0178\":\"Y\",\"\u0179\":\"Z\",\"\u017b\":\"Z\",\"\u017d\":\"Z\",\"\u017a\":\"z\",\"\u017c\":\"z\",\"\u017e\":\"z\",\"\u0132\":\"IJ\",\"\u0133\":\"ij\",\"\u0152\":\"Oe\",\"\u0153\":\"oe\",\"\u0149\":\"'n\",\"\u017f\":\"s\"},deburrLetter=basePropertyOf(deburredLetters);module.exports=deburrLetter;\n}, {\"3068\":3068}];\nwindow.modules[\"3118\"] = [function(require,module,exports){function mapToArray(r){var a=-1,o=Array(r.size);return r.forEach(function(r,n){o[++a]=[n,r]}),o}module.exports=mapToArray;\n}, {}];\nwindow.modules[\"3119\"] = [function(require,module,exports){function setToArray(r){var o=-1,e=Array(r.size);return r.forEach(function(r){e[++o]=r}),e}module.exports=setToArray;\n}, {}];\nwindow.modules[\"3120\"] = [function(require,module,exports){var baseFlatten=require(3005);function flatten(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}module.exports=flatten;\n}, {\"3005\":3005}];\nwindow.modules[\"3121\"] = [function(require,module,exports){(function (global){(function (){\nvar freeGlobal=\"object\"==typeof global&&global&&global.Object===Object&&global;module.exports=freeGlobal;\n\n}).call(this)}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})}, {}];\nwindow.modules[\"3124\"] = [function(require,module,exports){var isKeyable=require(3125);function getMapData(a,e){var t=a.__data__;return isKeyable(e)?t[\"string\"==typeof e?\"string\":\"hash\"]:t.map}module.exports=getMapData;\n}, {\"3125\":3125}];\nwindow.modules[\"3125\"] = [function(require,module,exports){function isKeyable(e){var o=typeof e;return\"string\"==o||\"number\"==o||\"symbol\"==o||\"boolean\"==o?\"__proto__\"!==e:null===e}module.exports=isKeyable;\n}, {}];\nwindow.modules[\"3126\"] = [function(require,module,exports){function getValue(e,u){return null==e?void 0:e[u]}module.exports=getValue;\n}, {}];\nwindow.modules[\"3127\"] = [function(require,module,exports){var overArg=require(3128),getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype;\n}, {\"3128\":3128}];\nwindow.modules[\"3128\"] = [function(require,module,exports){function overArg(r,e){return function(n){return r(e(n))}}module.exports=overArg;\n}, {}];\nwindow.modules[\"3129\"] = [function(require,module,exports){function stubArray(){return[]}module.exports=stubArray;\n}, {}];\nwindow.modules[\"3130\"] = [function(require,module,exports){var castPath=require(3010),isArguments=require(2960),isArray=require(446),isIndex=require(2962),isLength=require(3037),toKey=require(3011);function hasPath(e,r,t){for(var s=-1,i=(r=castPath(r,e)).length,a=!1;++s0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}module.exports=shortOut;\n}, {}];\nwindow.modules[\"3140\"] = [function(require,module,exports){var rsAstralRange=\"\\\\ud800-\\\\udfff\",rsComboMarksRange=\"\\\\u0300-\\\\u036f\",reComboHalfMarksRange=\"\\\\ufe20-\\\\ufe2f\",rsComboSymbolsRange=\"\\\\u20d0-\\\\u20ff\",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange=\"\\\\ufe0e\\\\ufe0f\",rsAstral=\"[\"+rsAstralRange+\"]\",rsCombo=\"[\"+rsComboRange+\"]\",rsFitz=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",rsModifier=\"(?:\"+rsCombo+\"|\"+rsFitz+\")\",rsNonAstral=\"[^\"+rsAstralRange+\"]\",rsRegional=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",rsSurrPair=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",rsZWJ=\"\\\\u200d\",reOptMod=rsModifier+\"?\",rsOptVar=\"[\"+rsVarRange+\"]?\",rsOptJoin=\"(?:\"+rsZWJ+\"(?:\"+[rsNonAstral,rsRegional,rsSurrPair].join(\"|\")+\")\"+rsOptVar+reOptMod+\")*\",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol=\"(?:\"+[rsNonAstral+rsCombo+\"?\",rsCombo,rsRegional,rsSurrPair,rsAstral].join(\"|\")+\")\",reUnicode=RegExp(rsFitz+\"(?=\"+rsFitz+\")|\"+rsSymbol+rsSeq,\"g\");function unicodeToArray(r){return r.match(reUnicode)||[]}module.exports=unicodeToArray;\n}, {}];\nwindow.modules[\"3141\"] = [function(require,module,exports){var rsAstralRange=\"\\\\ud800-\\\\udfff\",rsComboMarksRange=\"\\\\u0300-\\\\u036f\",reComboHalfMarksRange=\"\\\\ufe20-\\\\ufe2f\",rsComboSymbolsRange=\"\\\\u20d0-\\\\u20ff\",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange=\"\\\\u2700-\\\\u27bf\",rsLowerRange=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",rsMathOpRange=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\",rsNonCharRange=\"\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\",rsPunctuationRange=\"\\\\u2000-\\\\u206f\",rsSpaceRange=\" \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",rsUpperRange=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",rsVarRange=\"\\\\ufe0e\\\\ufe0f\",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos=\"['\u2019]\",rsBreak=\"[\"+rsBreakRange+\"]\",rsCombo=\"[\"+rsComboRange+\"]\",rsDigits=\"\\\\d+\",rsDingbat=\"[\"+rsDingbatRange+\"]\",rsLower=\"[\"+rsLowerRange+\"]\",rsMisc=\"[^\"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+\"]\",rsFitz=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",rsModifier=\"(?:\"+rsCombo+\"|\"+rsFitz+\")\",rsNonAstral=\"[^\"+rsAstralRange+\"]\",rsRegional=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",rsSurrPair=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",rsUpper=\"[\"+rsUpperRange+\"]\",rsZWJ=\"\\\\u200d\",rsMiscLower=\"(?:\"+rsLower+\"|\"+rsMisc+\")\",rsMiscUpper=\"(?:\"+rsUpper+\"|\"+rsMisc+\")\",rsOptContrLower=\"(?:\"+rsApos+\"(?:d|ll|m|re|s|t|ve))?\",rsOptContrUpper=\"(?:\"+rsApos+\"(?:D|LL|M|RE|S|T|VE))?\",reOptMod=rsModifier+\"?\",rsOptVar=\"[\"+rsVarRange+\"]?\",rsOptJoin=\"(?:\"+rsZWJ+\"(?:\"+[rsNonAstral,rsRegional,rsSurrPair].join(\"|\")+\")\"+rsOptVar+reOptMod+\")*\",rsOrdLower=\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",rsOrdUpper=\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji=\"(?:\"+[rsDingbat,rsRegional,rsSurrPair].join(\"|\")+\")\"+rsSeq,reUnicodeWord=RegExp([rsUpper+\"?\"+rsLower+\"+\"+rsOptContrLower+\"(?=\"+[rsBreak,rsUpper,\"$\"].join(\"|\")+\")\",rsMiscUpper+\"+\"+rsOptContrUpper+\"(?=\"+[rsBreak,rsUpper+rsMiscLower,\"$\"].join(\"|\")+\")\",rsUpper+\"?\"+rsMiscLower+\"+\"+rsOptContrLower,rsUpper+\"+\"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join(\"|\"),\"g\");function unicodeWords(r){return r.match(reUnicodeWord)||[]}module.exports=unicodeWords;\n}, {}];\nwindow.modules[\"3144\"] = [function(require,module,exports){var toString=require(3087),upperFirst=require(3145);function capitalize(r){return upperFirst(toString(r).toLowerCase())}module.exports=capitalize;\n}, {\"3087\":3087,\"3145\":3145}];\nwindow.modules[\"3145\"] = [function(require,module,exports){var createCaseFirst=require(3102),upperFirst=createCaseFirst(\"toUpperCase\");module.exports=upperFirst;\n}, {\"3102\":3102}];\nwindow.modules[\"3147\"] = [function(require,module,exports){var baseTrim=require(3079),isObject=require(445),isSymbol=require(3003),NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if(\"number\"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject(e)){var r=\"function\"==typeof e.valueOf?e.valueOf():e;e=isObject(r)?r+\"\":r}if(\"string\"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}module.exports=toNumber;\n}, {\"445\":445,\"3003\":3003,\"3079\":3079}];\nwindow.modules[\"3148\"] = [function(require,module,exports){var root=require(2915),now=function(){return root.Date.now()};module.exports=now;\n}, {\"2915\":2915}];\nwindow.modules[\"3150\"] = [function(require,module,exports){var baseRest=require(3071),eq=require(2975),isIterateeCall=require(3101),keysIn=require(2984),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,defaults=baseRest(function(e,r){e=Object(e);var t=-1,o=r.length,a=o>2?r[2]:void 0;for(a&&isIterateeCall(r[0],r[1],a)&&(o=1);++t-1?u:0,r.charCodeAt(b+1)){case 100:case 102:if(o>=c)break;if(null==e[o])break;u=c)break;if(null==e[o])break;u=c)break;if(void 0===e[o])break;u\",u=b+2,b++;break}s+=a(e[o]),u=b+2,b++;break;case 115:if(o>=c)break;u]*>/i,t=function(e,t){var f,v,d,m,x;void 0===e&&(e=\"\"),void 0===t&&(t=\"1\");var h=0;if(\"0\"===(t=\"number\"==typeof t?t.toString():t.replace(/\\s/g,\"\")))return e;if(\"1\"===t)f=1,v=1,d=1,m=1;else if(\"2\"===t)f=1,v=1,d=2,m=1;else if(\"3\"===t)f=1,v=1,d=3,m=1;else if(\"-1\"===t)x=1;else for(var b=0;b['\"]$/.test(e)&&(n=1,e+=\" \");for(var p=o(e),c=\"\",g=0,l=\"\",s=0;s?@[\\\\]^_`{|}~]\";return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp(\"^'(?=\"+r+\"\\\\B)\"),\"’\")).replace(new RegExp('^\"(?='+r+\"\\\\B)\"),\"”\")).replace(/\"'(?=\\w)/,\"“‘\")).replace(/'\"(?=\\w)/,\"‘“\")).replace(/'(?=\\d\\d)/,\"’\")).replace(new RegExp(\"(\\\\s| |--|&[mn]dash;|–|—|ȁ[34])'(?=\\\\w)\",\"g\"),\"$1‘\")).replace(new RegExp(\"([^\\\\ \\\\t\\\\r\\\\n\\\\[\\\\{\\\\(\\\\-])'\",\"g\"),\"$1’\")).replace(new RegExp(\"([\\\\ \\\\t\\\\r\\\\n\\\\[\\\\{\\\\(\\\\-]?)'(?=\\\\s|s\\\\b)\",\"g\"),\"$1’\")).replace(/'/g,\"‘\")).replace(new RegExp('(\\\\s| |--|&[mn]dash;|–|—|ȁ[34])\"(?=\\\\w)',\"g\"),\"$1“\")).replace(new RegExp('([^\\\\ \\\\t\\\\r\\\\n\\\\[\\\\{\\\\(\\\\-])\"',\"g\"),\"$1”\")).replace(new RegExp('([\\\\ \\\\t\\\\r\\\\n\\\\[\\\\{\\\\(\\\\-]?)\"(?=\\\\s)',\"g\"),\"$1”\")).replace(/\"/g,\"“\")},n=function(e){return e=(e=e.replace(/``/g,\"“\")).replace(/''/g,\"”\")},p=function(e){return e=(e=e.replace(/`/g,\"‘\")).replace(/'/g,\"’\")},c=function(e){return e=e.replace(/--/g,\"—\")},g=function(e){return e=(e=e.replace(/---/g,\"—\")).replace(/--/g,\"–\")},l=function(e){return e=(e=e.replace(/---/g,\"–\")).replace(/--/g,\"—\")},s=function(e){return e=(e=e.replace(/\\.\\.\\./g,\"…\")).replace(/\\. \\. \\./g,\"…\")},i=function(e){return e=(e=(e=(e=(e=(e=(e=e.replace(/–/g,\"-\")).replace(/—/g,\"--\")).replace(/‘/g,\"'\")).replace(/’/g,\"'\")).replace(/“/g,'\"')).replace(/”/g,'\"')).replace(/…/g,\"...\")},u=function(e){return e=(e=(e=(e=(e=(e=e.replace(/\\\\\\\\/g,\"\\")).replace(/\\\\\"/g,\""\")).replace(/\\\\'/g,\"'\")).replace(/\\\\\\./g,\".\")).replace(/\\\\-/g,\"-\")).replace(/\\\\`/g,\"`\")},o=function(e){for(var r=0,t=e.length,a=[],n=/|<\\?.*?\\?>|<[^>]*>/g,p=null;p=n.exec(e);){if(r\":\"akbar-men\",\"\u2211\":\"majmou\",\"\u00a4\":\"omla\"},az:{},ca:{\"\u2206\":\"delta\",\"\u221e\":\"infinit\",\"\u2665\":\"amor\",\"&\":\"i\",\"|\":\"o\",\"<\":\"menys que\",\">\":\"mes que\",\"\u2211\":\"suma dels\",\"\u00a4\":\"moneda\"},cs:{\"\u2206\":\"delta\",\"\u221e\":\"nekonecno\",\"\u2665\":\"laska\",\"&\":\"a\",\"|\":\"nebo\",\"<\":\"mensi nez\",\">\":\"vetsi nez\",\"\u2211\":\"soucet\",\"\u00a4\":\"mena\"},de:{\"\u2206\":\"delta\",\"\u221e\":\"unendlich\",\"\u2665\":\"Liebe\",\"&\":\"und\",\"|\":\"oder\",\"<\":\"kleiner als\",\">\":\"groesser als\",\"\u2211\":\"Summe von\",\"\u00a4\":\"Waehrung\"},dv:{\"\u2206\":\"delta\",\"\u221e\":\"kolunulaa\",\"\u2665\":\"loabi\",\"&\":\"aai\",\"|\":\"noonee\",\"<\":\"ah vure kuda\",\">\":\"ah vure bodu\",\"\u2211\":\"jumula\",\"\u00a4\":\"faisaa\"},en:{\"\u2206\":\"delta\",\"\u221e\":\"infinity\",\"\u2665\":\"love\",\"&\":\"and\",\"|\":\"or\",\"<\":\"less than\",\">\":\"greater than\",\"\u2211\":\"sum\",\"\u00a4\":\"currency\"},es:{\"\u2206\":\"delta\",\"\u221e\":\"infinito\",\"\u2665\":\"amor\",\"&\":\"y\",\"|\":\"u\",\"<\":\"menos que\",\">\":\"mas que\",\"\u2211\":\"suma de los\",\"\u00a4\":\"moneda\"},fa:{\"\u2206\":\"delta\",\"\u221e\":\"bi-nahayat\",\"\u2665\":\"eshgh\",\"&\":\"va\",\"|\":\"ya\",\"<\":\"kamtar-az\",\">\":\"bishtar-az\",\"\u2211\":\"majmooe\",\"\u00a4\":\"vahed\"},fi:{\"\u2206\":\"delta\",\"\u221e\":\"aarettomyys\",\"\u2665\":\"rakkaus\",\"&\":\"ja\",\"|\":\"tai\",\"<\":\"pienempi kuin\",\">\":\"suurempi kuin\",\"\u2211\":\"summa\",\"\u00a4\":\"valuutta\"},fr:{\"\u2206\":\"delta\",\"\u221e\":\"infiniment\",\"\u2665\":\"Amour\",\"&\":\"et\",\"|\":\"ou\",\"<\":\"moins que\",\">\":\"superieure a\",\"\u2211\":\"somme des\",\"\u00a4\":\"monnaie\"},ge:{\"\u2206\":\"delta\",\"\u221e\":\"usasruloba\",\"\u2665\":\"siqvaruli\",\"&\":\"da\",\"|\":\"an\",\"<\":\"naklebi\",\">\":\"meti\",\"\u2211\":\"jami\",\"\u00a4\":\"valuta\"},gr:{},hu:{\"\u2206\":\"delta\",\"\u221e\":\"vegtelen\",\"\u2665\":\"szerelem\",\"&\":\"es\",\"|\":\"vagy\",\"<\":\"kisebb mint\",\">\":\"nagyobb mint\",\"\u2211\":\"szumma\",\"\u00a4\":\"penznem\"},it:{\"\u2206\":\"delta\",\"\u221e\":\"infinito\",\"\u2665\":\"amore\",\"&\":\"e\",\"|\":\"o\",\"<\":\"minore di\",\">\":\"maggiore di\",\"\u2211\":\"somma\",\"\u00a4\":\"moneta\"},lt:{\"\u2206\":\"delta\",\"\u221e\":\"begalybe\",\"\u2665\":\"meile\",\"&\":\"ir\",\"|\":\"ar\",\"<\":\"maziau nei\",\">\":\"daugiau nei\",\"\u2211\":\"suma\",\"\u00a4\":\"valiuta\"},lv:{\"\u2206\":\"delta\",\"\u221e\":\"bezgaliba\",\"\u2665\":\"milestiba\",\"&\":\"un\",\"|\":\"vai\",\"<\":\"mazak neka\",\">\":\"lielaks neka\",\"\u2211\":\"summa\",\"\u00a4\":\"valuta\"},my:{\"\u2206\":\"kwahkhyaet\",\"\u221e\":\"asaonasme\",\"\u2665\":\"akhyait\",\"&\":\"nhin\",\"|\":\"tho\",\"<\":\"ngethaw\",\">\":\"kyithaw\",\"\u2211\":\"paungld\",\"\u00a4\":\"ngwekye\"},mk:{},nl:{\"\u2206\":\"delta\",\"\u221e\":\"oneindig\",\"\u2665\":\"liefde\",\"&\":\"en\",\"|\":\"of\",\"<\":\"kleiner dan\",\">\":\"groter dan\",\"\u2211\":\"som\",\"\u00a4\":\"valuta\"},pl:{\"\u2206\":\"delta\",\"\u221e\":\"nieskonczonosc\",\"\u2665\":\"milosc\",\"&\":\"i\",\"|\":\"lub\",\"<\":\"mniejsze niz\",\">\":\"wieksze niz\",\"\u2211\":\"suma\",\"\u00a4\":\"waluta\"},pt:{\"\u2206\":\"delta\",\"\u221e\":\"infinito\",\"\u2665\":\"amor\",\"&\":\"e\",\"|\":\"ou\",\"<\":\"menor que\",\">\":\"maior que\",\"\u2211\":\"soma\",\"\u00a4\":\"moeda\"},ro:{\"\u2206\":\"delta\",\"\u221e\":\"infinit\",\"\u2665\":\"dragoste\",\"&\":\"si\",\"|\":\"sau\",\"<\":\"mai mic ca\",\">\":\"mai mare ca\",\"\u2211\":\"suma\",\"\u00a4\":\"valuta\"},ru:{\"\u2206\":\"delta\",\"\u221e\":\"beskonechno\",\"\u2665\":\"lubov\",\"&\":\"i\",\"|\":\"ili\",\"<\":\"menshe\",\">\":\"bolshe\",\"\u2211\":\"summa\",\"\u00a4\":\"valjuta\"},sk:{\"\u2206\":\"delta\",\"\u221e\":\"nekonecno\",\"\u2665\":\"laska\",\"&\":\"a\",\"|\":\"alebo\",\"<\":\"menej ako\",\">\":\"viac ako\",\"\u2211\":\"sucet\",\"\u00a4\":\"mena\"},sr:{},tr:{\"\u2206\":\"delta\",\"\u221e\":\"sonsuzluk\",\"\u2665\":\"ask\",\"&\":\"ve\",\"|\":\"veya\",\"<\":\"kucuktur\",\">\":\"buyuktur\",\"\u2211\":\"toplam\",\"\u00a4\":\"para birimi\"},uk:{\"\u2206\":\"delta\",\"\u221e\":\"bezkinechnist\",\"\u2665\":\"lubov\",\"&\":\"i\",\"|\":\"abo\",\"<\":\"menshe\",\">\":\"bilshe\",\"\u2211\":\"suma\",\"\u00a4\":\"valjuta\"},vn:{\"\u2206\":\"delta\",\"\u221e\":\"vo cuc\",\"\u2665\":\"yeu\",\"&\":\"va\",\"|\":\"hoac\",\"<\":\"nho hon\",\">\":\"lon hon\",\"\u2211\":\"tong\",\"\u00a4\":\"tien te\"}},u=[\";\",\"?\",\":\",\"@\",\"&\",\"=\",\"+\",\"$\",\",\",\"/\"].join(\"\"),s=[\";\",\"?\",\":\",\"@\",\"&\",\"=\",\"+\",\"$\",\",\"].join(\"\"),l=[\".\",\"!\",\"~\",\"*\",\"'\",\"(\",\")\"].join(\"\"),r=function(a,r){var m,d,g,k,y,f,p,z,b,A,v,E,O,j,S=\"-\",w=\"\",U=\"\",C=!0,N={},R=\"\";if(\"string\"!=typeof a)return\"\";if(\"string\"==typeof r&&(S=r),p=o.en,z=i.en,\"object\"==typeof r)for(v in m=r.maintainCase||!1,N=r.custom&&\"object\"==typeof r.custom?r.custom:N,g=+r.truncate>1&&r.truncate||!1,k=r.uric||!1,y=r.uricNoSlash||!1,f=r.mark||!1,C=!1!==r.symbols&&!1!==r.lang,S=r.separator||S,k&&(R+=u),y&&(R+=s),f&&(R+=l),p=r.lang&&o[r.lang]&&C?o[r.lang]:C?o.en:{},z=r.lang&&i[r.lang]?i[r.lang]:!1===r.lang||!0===r.lang?{}:i.en,r.titleCase&&\"number\"==typeof r.titleCase.length&&Array.prototype.toString.call(r.titleCase)?(r.titleCase.forEach(function(a){N[a+\"\"]=a+\"\"}),d=!0):d=!!r.titleCase,r.custom&&\"number\"==typeof r.custom.length&&Array.prototype.toString.call(r.custom)&&r.custom.forEach(function(a){N[a+\"\"]=a+\"\"}),Object.keys(N).forEach(function(e){var n;n=e.length>1?new RegExp(\"\\\\b\"+h(e)+\"\\\\b\",\"gi\"):new RegExp(h(e),\"gi\"),a=a.replace(n,N[e])}),N)R+=v;for(R=h(R+=S),O=!1,j=!1,A=0,E=(a=a.replace(/(^\\s+|\\s+$)/g,\"\")).length;A=0?(U+=v,v=\"\"):!0===j?(v=t[U]+e[v],U=\"\"):v=O&&e[v].match(/[A-Za-z0-9]/)?\" \"+e[v]:e[v],O=!1,j=!1):v in t?(U+=v,v=\"\",A===E-1&&(v=t[U]),j=!0):!p[v]||k&&-1!==u.indexOf(v)||y&&-1!==s.indexOf(v)?(!0===j?(v=t[U]+v,U=\"\",j=!1):O&&(/[A-Za-z0-9]/.test(v)||w.substr(-1).match(/A-Za-z0-9]/))&&(v=\" \"+v),O=!1):(v=O||w.substr(-1).match(/[A-Za-z0-9]/)?S+p[v]:p[v],v+=void 0!==a[A+1]&&a[A+1].match(/[A-Za-z0-9]/)?S:\"\",O=!0),w+=v.replace(new RegExp(\"[^\\\\w\\\\s\"+R+\"_-]\",\"g\"),S);return d&&(w=w.replace(/(\\w)(\\S*)/g,function(a,e,n){var t=e.toUpperCase()+(null!==n?n:\"\");return Object.keys(N).indexOf(t.toLowerCase())<0?t:t.toLowerCase()})),w=w.replace(/\\s+/g,S).replace(new RegExp(\"\\\\\"+S+\"+\",\"g\"),S).replace(new RegExp(\"(^\\\\\"+S+\"+|\\\\\"+S+\"+$)\",\"g\"),\"\"),g&&w.length>g&&(b=w.charAt(g)===S,w=w.slice(0,g),b||(w=w.slice(0,w.lastIndexOf(S)))),m||d||(w=w.toLowerCase()),w},m=function(a){return function(e){return r(e,a)}},h=function(a){return a.replace(/[-\\\\^$*+?.()|[\\]{}\\/]/g,\"\\\\$&\")},c=function(a,e){for(var n in e)if(e[n]===a)return!0};if(\"undefined\"!=typeof module&&module.exports)module.exports=r,module.exports.createSlug=m;else if(\"undefined\"!=typeof define&&define.amd)define([],function(){return r});else try{if(a.getSlug||a.createSlug)throw\"speakingurl: globals exists /(getSlug|createSlug)/\";a.getSlug=r,a.createSlug=m}catch(a){}}(this);\n}, {}];\nwindow.modules[\"3260\"] = [function(require,module,exports){\"use strict\";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(27)),_classCallCheck2=_interopRequireDefault(require(9)),_createClass2=_interopRequireDefault(require(11)),AdDataType={DISPLAY:\"display_ad\",VIDEO:\"video\"},AdFuelDataAllowlist=[\"adUnitPath\",\"parentRegistry\",\"response\",\"rktr_ad_id\",\"rktr_slot_id\"],AdData=function(){function e(){(0,_classCallCheck2.default)(this,e),this.adList={},this.registerAdActions={},this.getAdDetailsActions={};for(var t=0,i=Object.values(this.TYPE);t2&&void 0!==arguments[2]&&arguments[2],n=r||this.el;return Array.from(n.querySelectorAll(e)).reduce(function(e,r){return _objectSpread((0,_defineProperty2.default)({},t(unpackDataset(r.dataset)),r),e)},{})}},{key:\"startSSE\",value:function(e,t){this.sseUri=t||this.el.dataset.uri,this.sseName=e,this.connectSSE()}},{key:\"connectSSE\",value:function(){console.log(\"\".concat(this.sseName,\" SSE Connecting...\")),this.sseClient=new EventSource(this.sseUri),this.registerSSEListeners()}},{key:\"registerSSEListeners\",value:function(){var e=this;this.sseClient.addEventListener(\"publish\",function(){var t=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function t(r){return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.onSSEPublish(r);case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log(\"\".concat(e.sseName,\" onSSEPublish ERROR\"),t.t0);case 8:case\"end\":return t.stop()}},t,null,[[0,5]])}));return function(e){return t.apply(this,arguments)}}()),this.sseClient.addEventListener(\"error\",function(t){e.onSSEError(t)}),this.sseClient.addEventListener(\"open\",function(t){e.onSSEOpen(t)})}},{key:\"onSSEOpen\",value:function(){console.log(\"\".concat(this.sseName,\" SSE Open\"))}},{key:\"onSSEReconnecting\",value:function(){var e=this;setTimeout(function(){console.log(\"\".concat(e.sseName,\" SSE Reconnecting...\")),e.connectSSE()},1e3)}},{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:console.log(\"\".concat(this.sseName,\" SSE Publish\"));case 1:case\"end\":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:\"onSSEError\",value:function(e){console.log(\"\".concat(this.sseName,\" An error occurred while attempting to connect.\"),e),this.sseClient.close(),this.onSSEReconnecting()}},{key:\"sseFetchUpdates\",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 t=window.location.pathname+window.location.search,e.abrupt(\"return\",fetch(t).then(function(e){return e.text()}).then(function(e){return e}).catch(function(e){return console.log(e)}));case 2:case\"end\":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}]),e}(),addEventListener=function(e,t,r,n){return e.addEventListener(t,function(e){var t=e.currentTarget;r.call(n,unpackDataset(t.dataset),t,e)})},unpackDataset=function(e){return Object.keys(e).reduce(function(t,r){return r.startsWith(SERIALIZED_DATA_PREFIX)?_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},r.slice(PREFIX_LENGTH),function(){try{return JSON.parse(e[r])}catch(e){}}())):_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},r,e[r]))},{})};module.exports=ClientModel;\n}, {\"9\":9,\"10\":10,\"11\":11,\"21\":21,\"22\":22,\"23\":23,\"3264\":3264}];\nwindow.modules[\"3264\"] = [function(require,module,exports){\"use strict\";var CACHE_SIZE=1,ANY_ACTION=\"_any\",EMPTY=Symbol(\"empty\"),dispatcher=function(){var n={},t={};function i(i,o){if(!i)throw new Error(\"Invalid action format\");n[i]=n[i]||{},n[i][o]=n[i][o]||[],t[i]=t[i]||{},t[i][o]=t[i][o]||new Array(CACHE_SIZE)}return{dispatch:function(o){var r=o.ns,c=o.action,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EMPTY;i(r,c),n[r][c].concat(n[r][ANY_ACTION]||[]).forEach(function(n){setTimeout(function(){n(e,{ns:r,action:c})})}),t[r][c].shift(),t[r][c].push(e)},subscribe:function(o,r){var c=o.ns,e=o.action,a=void 0===e?ANY_ACTION:e,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i(c,a),n[c][a].push(r),u&&t[c][a].filter(function(n){return void 0!==n}).forEach(function(n){setTimeout(function(){r(n)})})},reset:function(){t={},n={}}}}();dispatcher.CACHE_SIZE=CACHE_SIZE,module.exports=dispatcher;\n}, {}];\nwindow.modules[\"3270\"] = [function(require,module,exports){\"use strict\";var _interopRequireDefault=require(10),_defineProperty2=_interopRequireDefault(require(21));function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r|(]*>|]*>|]+>)+/i,full=new RegExp(htmlTags.map(t=>`<${t}\\\\b[^>]*>`).join(\"|\"),\"i\");module.exports=(t=>basic.test(t)||full.test(t));\n}, {\"3456\":3456}];\nwindow.modules[\"3323\"] = [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;\n}, {}];\nwindow.modules[\"3385\"] = [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};\n}, {}];\nwindow.modules[\"3455\"] = [function(require,module,exports){module.exports=[\n\t\"a\",\n\t\"abbr\",\n\t\"address\",\n\t\"area\",\n\t\"article\",\n\t\"aside\",\n\t\"audio\",\n\t\"b\",\n\t\"base\",\n\t\"bdi\",\n\t\"bdo\",\n\t\"blockquote\",\n\t\"body\",\n\t\"br\",\n\t\"button\",\n\t\"canvas\",\n\t\"caption\",\n\t\"cite\",\n\t\"code\",\n\t\"col\",\n\t\"colgroup\",\n\t\"data\",\n\t\"datalist\",\n\t\"dd\",\n\t\"del\",\n\t\"details\",\n\t\"dfn\",\n\t\"dialog\",\n\t\"div\",\n\t\"dl\",\n\t\"dt\",\n\t\"em\",\n\t\"embed\",\n\t\"fieldset\",\n\t\"figcaption\",\n\t\"figure\",\n\t\"footer\",\n\t\"form\",\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\",\n\t\"head\",\n\t\"header\",\n\t\"hgroup\",\n\t\"hr\",\n\t\"html\",\n\t\"i\",\n\t\"iframe\",\n\t\"img\",\n\t\"input\",\n\t\"ins\",\n\t\"kbd\",\n\t\"label\",\n\t\"legend\",\n\t\"li\",\n\t\"link\",\n\t\"main\",\n\t\"map\",\n\t\"mark\",\n\t\"math\",\n\t\"menu\",\n\t\"menuitem\",\n\t\"meta\",\n\t\"meter\",\n\t\"nav\",\n\t\"noscript\",\n\t\"object\",\n\t\"ol\",\n\t\"optgroup\",\n\t\"option\",\n\t\"output\",\n\t\"p\",\n\t\"param\",\n\t\"picture\",\n\t\"pre\",\n\t\"progress\",\n\t\"q\",\n\t\"rb\",\n\t\"rp\",\n\t\"rt\",\n\t\"rtc\",\n\t\"ruby\",\n\t\"s\",\n\t\"samp\",\n\t\"script\",\n\t\"section\",\n\t\"select\",\n\t\"slot\",\n\t\"small\",\n\t\"source\",\n\t\"span\",\n\t\"strong\",\n\t\"style\",\n\t\"sub\",\n\t\"summary\",\n\t\"sup\",\n\t\"svg\",\n\t\"table\",\n\t\"tbody\",\n\t\"td\",\n\t\"template\",\n\t\"textarea\",\n\t\"tfoot\",\n\t\"th\",\n\t\"thead\",\n\t\"time\",\n\t\"title\",\n\t\"tr\",\n\t\"track\",\n\t\"u\",\n\t\"ul\",\n\t\"var\",\n\t\"video\",\n\t\"wbr\"\n]\n}, {}];\nwindow.modules[\"3456\"] = [function(require,module,exports){\"use strict\";module.exports=require(3455);\n}, {\"3455\":3455}];\nwindow.modules[\"alerts.client\"] = [function(require,module,exports){\"use strict\";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(27)),_classCallCheck2=_interopRequireDefault(require(9)),_createClass2=_interopRequireDefault(require(11)),_get=require(1),rest=require(29),STORAGE_KEY=\"CLOSED_ALERTS\",_require=require(15),dispatch=_require.dispatch,_require2=require(28),STICKY_HEADER=_require2.STICKY_HEADER,Alerts=function(){function e(t){var r=this;(0,_classCallCheck2.default)(this,e),_get(window,\"kiln.locals\",!0)&&(this.banner=t,this.check(),setInterval(function(){return r.check()},3e4))}return(0,_createClass2.default)(e,[{key:\"check\",value:function(){var e=this,t=this.storageGet();rest.get(\"/public/api/alerts\").then(function(r){r.alerts.filter(function(e){return!t.includes(e.hash)}).forEach(function(t){e.add(t)}),e.banner.childNodes.length?e.showBanner():e.hideBanner(),dispatch(STICKY_HEADER.RECALCULATE)})}},{key:\"alertExists\",value:function(e){return!!this.banner.querySelector(\"#\".concat(this.instance(e)))}},{key:\"instance\",value:function(e){return e.uri.split(\"/\").pop().split(\"@\").shift()}},{key:\"add\",value:function(e){this.alertExists(e)?e.hash!==this.banner.firstChild.getAttribute(\"data-alert-hash\")&&this.banner.replaceChild(this.create(e),this.banner.firstChild):this.banner.appendChild(this.create(e))}},{key:\"create\",value:function(e){var t=this,r=function(e,t,r){var i=document.createElement(\"div\");return i.className=e,\"string\"==typeof t&&(i.innerHTML=t),\"object\"===(0,_typeof2.default)(t)&&i.appendChild(t),r&&(i.id=r),i},i=r(\"alerts__close\",\"\",this.instance(e)),n=r(\"alerts__container\",i);e.title&&n.appendChild(r(\"alerts__title\",e.title)),n.appendChild(r(\"alerts__content\",e.content));var a=r(\"alerts__item\",n);return a.setAttribute(\"data-alert-hash\",e.hash),i.addEventListener(\"click\",function(r){var i=r.target;return t.close(i.id,e.hash)}),a}},{key:\"showBanner\",value:function(){this.banner.classList.add(\"alerts--visible\")}},{key:\"hideBanner\",value:function(){this.banner.classList.remove(\"alerts--visible\")}},{key:\"close\",value:function(e,t){for(var r=this.banner.querySelector(\"#\".concat(e));\"alerts__item\"!==r.className;)r=r.parentNode;r.parentNode.removeChild(r),this.storageSet(t),dispatch(STICKY_HEADER.RECALCULATE)}},{key:\"storageGet\",value:function(){var e=window.sessionStorage.getItem(STORAGE_KEY);return e?e.split(\",\").filter(function(e){return null!=e&&\"\"!=e}):[]}},{key:\"storageSet\",value:function(e){var t=this.storageGet().join(\",\");window.sessionStorage.setItem(STORAGE_KEY,t.concat(\",\",encodeURIComponent(e)))}}]),e}();module.exports=function(e){return new Alerts(e)};\n}, {\"1\":1,\"9\":9,\"10\":10,\"11\":11,\"15\":15,\"27\":27,\"28\":28,\"29\":29}];\nwindow.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;if(ENABLE_AD_FEEDBACK_DISPLAY_ADS||ENABLE_AD_FEEDBACK_VIDEO_ADS){var adFeedback=new AdFeedback;adFeedback.initialize()}\n}, {\"6\":6,\"7\":7}];\nwindow.modules[\"ad-slot-header.client\"] = [function(require,module,exports){\"use strict\";var throttle=require(25),_require=require(16),mediumMaxWidthListener=_require.mediumMaxWidthListener;module.exports=function(e){var t,i=e.querySelector(\".ad-slot\"),r=e.querySelector(\".adSlotHeaderContainer\");if(i){var n=function(){\"mobile\"===t&&(e.style.height=\"\".concat(i.clientHeight,\"px\"),r.style.height=\"\".concat(i.clientHeight,\"px\"))};document.addEventListener(\"GPTRenderComplete\",function(e){var r=e.detail;r&&r.divId===(t&&i&&i.dataset[\"\".concat(t,\"SlotId\")])&&n()}),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(n,100))}catch(e){n()}}(),mediumMaxWidthListener(function(e){t=e?\"mobile\":\"desktop\",n()})}};\n}, {\"16\":16,\"25\":25}];\nwindow.modules[\"header.client\"] = [function(require,module,exports){\"use strict\";var moreDropdownLink,hoverStartTime,_interopRequireDefault=require(10),_slicedToArray2=_interopRequireDefault(require(26)),_toConsumableArray2=_interopRequireDefault(require(20)),HEADER_ICON_IDS=[\"headerMenuIcon\",\"headerSearchIcon\",\"headerCloseIcon\"],MORE_DROPDOWN_LINK_ID=\"moreDropdown\",_require=require(126),calculateNavLeftMaxWidth=_require.calculateNavLeftMaxWidth,_require2=require(127),calculatePageStickyThreshold=_require2.calculatePageStickyThreshold,_get=require(1),initializeMenu=function(e){var o=e.classList;HEADER_ICON_IDS.map(function(e){return document.getElementById(e)}).filter(function(e){return e}).forEach(function(e){e.addEventListener(\"click\",function(){o.toggle(\"header--active\");var e=window.document.body;if(o.contains(\"header--active\"))e.style.top=\"-\".concat(window.scrollY,\"px\"),e.classList.toggle(\"menu-opened\");else{e.classList.toggle(\"menu-opened\");var r=e.style.top;e.style.top=\"\",window.scrollTo(0,-1*parseInt(r||\"0\"))}})})},initializeAccordion=function(e){e.querySelectorAll(\".header__nav-item-accordion\").forEach(function(e){e.addEventListener(\"click\",function(){var o;e.classList.toggle(\"header__nav-item-accordion--open\"),null===(o=e.querySelector(\".header__nav-item-dropdown\"))||void 0===o||o.classList.toggle(\"header__nav-item-dropdown--open\")})})},initializeEditionizers=function(e){var o=e.querySelectorAll(\".header__editionizer\"),r=e.querySelectorAll(\".header__editionizer-button\");(0,_toConsumableArray2.default)(r).forEach(function(e){return e.addEventListener(\"click\",function(){e.setAttribute(\"aria-expanded\",\"true\"===e.getAttribute(\"aria-expanded\")?\"false\":\"true\"),(0,_toConsumableArray2.default)(o).forEach(function(e){return e.classList.toggle(\"header__editionizer--active\")})})})},formatNavBar=function(e){if(!(e.getBoundingClientRect().width<960)){var o=function(e){return e.style.display=\"block\"},r=function(e){return e.style.display=\"none\"},t=function(){return e.querySelector(\".header__left\").getBoundingClientRect().width},n=function(e){d.querySelectorAll(\".header__nav-item:nth-child(n+\".concat(d.childElementCount-e,\")\")).forEach(r)};e.querySelector(\".header__nav\").style.visibility=\"hidden\";var i=e.querySelector(\".header__nav-more\"),a=e.querySelector(\".header__nav-more > .header__nav-item-dropdown\"),d=e.querySelector(\".header__left .header__nav-container\");d.querySelectorAll(\".header__nav-item\").forEach(o),a.querySelectorAll(\".header__nav-item-dropdown-item\").forEach(r),r(i);for(var l=calculateNavLeftMaxWidth(e),c=t(),u=!1,s=1;c>l;)u=!0,n(s),c=t(),s++;u&&(o(i),(c=t())>l&&(n(s),c=t(),s++));var m=d.querySelector(\".promotion-link\")?0:1;a.querySelectorAll(\".header__nav-item-dropdown-item:nth-child(n+\".concat(d.childElementCount-s+m,\")\")).forEach(o),e.querySelector(\".header__nav\").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 o=0,r=Object.entries(moreDropdownLinkZJSAttrs);o0?t.length:\"\",o=e.closest(\"[data-\".concat(DATA_ATTRIBUTE_PREFIX,\"-collection]\"))||document.body,r=o===document.body?\"body\":o.dataset[\"\".concat(DATA_ATTRIBUTE_PREFIX,\"Collection\")],i=\"\";r===ZONE_COMPONENT_NAME&&(i=t.indexOf(o));var a=Array.from(o.querySelectorAll('[data-uri*=\"/_components/\"]')),c=a.length;return{collection_type:r,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,o=t.dataset[\"\".concat(DATA_ATTRIBUTE_PREFIX,\"Observe\")];if(o===COMPONENT_ON_EVENT&&n||o===COMPONENT_OFF_EVENT&&!n){var r=n?window.ZION_SDK.ComponentOnScreen:window.ZION_SDK.ComponentOffScreen,i=t.dataset.uri,a=function(){return setTimeout(function(){return trackZionEvent(new r({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=\"\",o=\"\",r=e.target,i=r.closest(\"a[href]\"),a=r.closest(\"[data-uri]\"),c=getAggregateComponentElement(r);i&&i.href&&(o=i.href);var _=_objectSpread(_objectSpread({},getCustomProperties(r=c||a)),c?getCustomProperties(a):{}),E=e.target!==r?getCustomProperties(e.target):{};if(r){if(n=r.dataset.uri,\"gallery\"===(t=getComponentName(n))){var s,l=e.target.classList[0];l.includes(\"next\")?s=_.carousel_item_index===_.carousel_item_length?1:_.carousel_item_index+1:l.includes(\"prev\")&&(s=1===_.carousel_item_index?_.carousel_item_length:_.carousel_item_index-1),_.carousel_item_index=s}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(r)),_objectSpread(_objectSpread({},E),_)),{},{word_count:getWordCount(r),destination_url:o})}))}})}function initializeAnalyticsEvents(){(Array.isArray(ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS)?ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS.includes(window.CNN.contentModel.templateType):ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS===window.CNN.contentModel.templateType)&&(initializeOnOffEvents(),initializeClickEvents())}window.ZION_SDK?initializeAnalyticsEvents():window.addEventListener(\"zion.loaded\",initializeAnalyticsEvents);\n}, {\"2\":2,\"5\":5,\"10\":10,\"21\":21,\"119\":119,\"3168\":3168}];\nwindow.modules[\"campaign-promo-events.legacy\"] = [function(require,module,exports){\"use strict\";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(23)),_asyncToGenerator2=_interopRequireDefault(require(22)),_require=require(119),authClient=_require.authClient,NewsletterClient=require(200),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\"));\n}, {\"10\":10,\"22\":22,\"23\":23,\"119\":119,\"200\":200}];\nwindow.modules[\"chartbeat-setup.legacy\"] = [function(require,module,exports){\"use strict\";var registerChartbeatVideoStrategy=require(342).default,_get=require(1);!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||{},n=(window.CNN||{}).omniture||{};registerChartbeatVideoStrategy();var o,i,a,r=window._sf_async_config=window._sf_async_config||{};r.uid=37612,r.domain=(a=\"cnn.com\",-1!=window.location.hostname.indexOf(\"edition\")&&(a=\"edition.\".concat(a)),\"prod\"!=(null===(o=window.CNN)||void 0===o?void 0:null===(i=o.contentModel)||void 0===i?void 0:i.environment)&&(a=\"dev.\".concat(a)),a),r.sections=t.vertical,r.authors=n.cap_author,r.title=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";return\"homepage\"===_get(window,\"CNN.contentModel.section\",\"\")?e.replace(\" Desktop\",\"\").replace(\" Mobile\",\"\"):e}(n.headline),r.flickerControl=!1,r.articleBlockSelector=\"div.card,div.container__item\",r.autoDetect=!1,r.path=function(){var e,t,n=window.location.hostname,o=null===(e=(t=document.querySelector(\"[rel=canonical]\")).getAttribute)||void 0===e?void 0:e.call(t,\"href\");try{return n+new URL(o).pathname}catch(e){return n+document.location.pathname}}(),window.WM.UserConsent?e():window.addEventListener(\"user-consent.loaded\",e)}();\n}, {\"1\":1,\"342\":342}];\nwindow.modules[\"scroll-metrics.legacy\"] = [function(require,module,exports){\"use strict\";var throttle=require(25),_require=require(109),trackMetrics=_require.trackMetrics,METRICS=[{value:25,type:\"article-twentyfive\",data:{interaction:\"content: 25% article viewed\"}},{value:50,type:\"article-fifty\",data:{interaction:\"content: 50% article viewed\"}},{value:75,type:\"article-seventyfive\",data:{interaction:\"content: 75% article viewed\"}},{value:100,type:\"article-complete\",data:{interaction:\"article complete\"}}],TRACK_PERCENTAGES=METRICS.map(function(t){return t.value});function manageMetrics(){var t=[].concat(METRICS),e=function(e){return t.find(function(t){return t.value===e})};return{get:e,track:function(n){var r=e(n),i=r.type,c=r.data;trackMetrics({type:i,data:c}),function(e){t=t.filter(function(t){return t.value!==e})}(n)}}}function getWindowHeight(){return window.innerHeight||(document.documentElement||document.body).clientHeight}function getScrollTop(){return document.documentElement.scrollTop||document.body.scrollTop}function trackPercentageSeen(t){var e=t.offsetTop,n=t.offsetHeight,r=(e+n-(getScrollTop()+getWindowHeight()))/n;return 100-Math.floor(100*r)}window.addEventListener(\"load\",function(){var t=document.querySelector(\".layout__main\"),e=manageMetrics(),n=e.get,r=e.track;t&&(getWindowHeight()>t.getBoundingClientRect().bottom?TRACK_PERCENTAGES.forEach(r):window.addEventListener(\"scroll\",throttle(function(){var e=trackPercentageSeen(t);TRACK_PERCENTAGES.forEach(function(t){if(e>=t){if(!n(t))return;r(t)}})},250)))});\n}, {\"25\":25,\"109\":109}];\nwindow.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=[\"vendor\",\"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);\n}, {}];\nrequire=(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$/))\n .forEach((key) => window.require(key));\n}\n\nfunction tryToMount(fn, el, name) {\n try {\n fn(el); // init the controller\n } catch (e) {\n const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));\n\n console.error(`Error initializing controller for \"${name}\" on \"${elementTag}\"`, e);\n }\n}\n\n/**\n * mount client.js component controllers\n */\nfunction mountComponentModules() {\n Object.keys(window.modules)\n .filter((key) => typeof key === 'string' && key.match(/\\.client$/))\n .forEach((key) => {\n let controllerFn = window.require(key);\n\n if (typeof controllerFn === 'function') {\n const name = key.replace('.client', ''),\n instancesSelector = `[data-uri*=\"_components/${name}/\"]`,\n defaultSelector = `[data-uri$=\"_components${name}\"]`,\n instances = document.querySelectorAll(instancesSelector),\n defaults = document.querySelectorAll(defaultSelector);\n\n for (let el of instances) {\n tryToMount(controllerFn, el, name);\n }\n\n for (let el of defaults) {\n tryToMount(controllerFn, el, name);\n }\n }\n });\n}\n\n// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,\n// services, or components that could require it\n// note: the `production` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js\nwindow.process = window.process || {};\nwindow.process.env = window.process.env || {};\nif (!window.process.env.NODE_ENV) {\n window.process.env.NODE_ENV = 'production';\n}\n\n// note: legacy controllers that require legacy services (e.g. dollar-slice) must\n// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first\nmountLegacyServices();\nmountComponentModules();\n // ]]\n ", "70797e52-de68-4d01", "", "_satellite[\"_runScript1\"](function(event, target, Promise) {\nwindow.wminst = window.wminst || {};\nwminst.Util = function() {\n return {\n loadCustomVariables: function() {\n this.tmsName = \"launch\";\n this.businessName = \"cnn\";\n this.buildVersion = 46; // Build Update Mar 27th 2023\n this.buildEnv = this.getBuildEnv();\n this.buildDate = this.getBuildDate();\n this.debugFlag = \"WMINST_DEBUG\";\n this.logPrefix = \"[WMINST]\";\n window.is_expansion = true;\n wminst.subscribersReady = false;\n wminst.hpt_set = 0;\n wminst.buffer_count = 0;\n wminst.is_podcast = 0;\n wminst.is_scrubbed = false;\n if (window.cnn_metadata) {\n window.is_expansion = false;\n }\n this.setStellarHomepageFlag();\n },\n getBuildEnv: function() {\n return {\n \"development\": \"dev\",\n \"staging\": \"qa\",\n \"production\": \"prod\"\n }[_satellite.environment.stage];\n },\n getBuildDate: function() {\n return _satellite.buildInfo.buildDate.split(\"T\")[0].replace(/-/g, \"\");\n },\n getCNNCodeVersion: function() {\n return [this.tmsName, this.businessName, this.buildEnv, this.buildVersion, this.buildDate].join(\".\");\n },\n setDebug: function(flag) {\n if (flag == true) {\n sessionStorage.setItem(this.debugFlag, true);\n } else {\n sessionStorage.removeItem(this.debugFlag);\n }\n },\n log: function() {\n var logEnabled = sessionStorage.getItem(this.debugFlag);\n if (logEnabled) {\n var args = Array.prototype.slice.call(arguments);\n args.unshift(this.logPrefix);\n console.log.apply(console, args);\n }\n },\n getTagConsentStatesV1: function(name) {\n\t\t\treturn {\n\t\t\t\t\"adobe\" \t: [\"perf-general\"],\n\t\t\t\t\"comscore\" \t: [\"perf-vendor\"],\n\t\t\t\t\"nielsen\"\t\t\t: [\"perf-vendor\"],\n\t\t\t\t\"facebook-pixel\"\t: [\"perf-vendor\", \"social-vendor\"],\n\t\t\t\t\"zion\"\t\t\t\t: [\"perf-general\", \"person-general\"],\n\t\t\t\t\"app-nexus-id\"\t\t: [\"ads-vendor\"],\n\t\t\t\t\"trackonomics\"\t\t: [\"ads-general\", \"ads-vendor\", \"behavior-general\", \"perf-general\", \"person-general\", \"social-general\", \"storage-general\"],\n\t\t\t\t\"skimlinks\"\t\t\t: [\"ads-vendor\"],\n\t\t\t\t\"quantcast\"\t\t\t: [\"ads-vendor\"],\n\t\t\t\t\"amazon\"\t\t\t: [\"ads-vendor\"],\n\t\t\t\t\"bounce-x\"\t\t\t: [\"iab\", \"behavior-vendor\", \"person-vendor\", \"storage-vendor\"],\n\t\t\t\t\"chartbeat\"\t\t\t: [\"perf-general\"],\n\t\t\t\t\"keywee\"\t\t\t: [\"ads-vendor\", \"behavior-vendor\", \"storage-vendor\", \"perf-vendor\"],\n\t\t\t\t\"krux\"\t\t\t\t: [\"ads-vendor\"],\n\t\t\t\t\"stack-sonar\"\t\t: [\"ads-general\"],\n\t\t\t\t\"optimizely\"\t\t: [\"behavior-general\", \"perf-general\", \"person-general\"],\n\t\t\t\t\"bombora\"\t\t\t: [\"iab\"]\n\t\t\t}[name];\n\t\t},\n\t\tgetTagConsentStatesV2: function(name) {\n\t\t\treturn {\n\t\t\t\t\"adobe\"\t\t\t\t: [\"data-store\", \"content-person-prof\", \"content-person\", \"measure-content\", \"measure-market\", \"product-develop\"],\n\t\t\t\t\"comscore\"\t\t\t: [\"vendor\", \"measure-content\"],\n\t\t\t\t\"nielsen\"\t\t\t: [\"vendor\", \"measure-content\", \"data-store\"],\n\t\t\t\t\"facebook-pixel\"\t: [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"vendor\"],\n\t\t\t\t\"zion\"\t\t\t\t: [\"data-store\", \"ads-person-prof\", \"ads-person\", \"content-person-prof\", \"content-person\", \"measure-content\"],\n\t\t\t\t\"app-nexus-id\"\t\t: [\"vendor\"],\n\t\t\t\t\"trackonomics\"\t\t: [\"data-store\", \"measure-ads\", \"vendor\"],\n \"hyphensocial\" : [\"data-store\", \"measure-ads\", \"vendor\"],\n\t\t\t\t\"skimlinks\"\t\t\t: [\"data-store\", \"measure-content\", \"vendor\"],\n\t\t\t\t\"quantcast\"\t\t\t: [\"iab\"],\n\t\t\t\t\"amazon\"\t\t\t: [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"vendor\"],\n\t\t\t\t\"bounce-x\"\t\t\t: [\"iab\"],\n\t\t\t\t\"chartbeat\"\t\t\t: [\"data-store\", \"measure-content\"],\n\t\t\t\t\"keywee\"\t\t\t: [\"data-store\", \"ads-person-prof\", \"ads-person\", \"measure-ads\", \"measure-market\", \"vendor\"],\n\t\t\t\t\"krux\"\t\t\t\t: [\"data-store\", \"ads-person-prof\", \"ads-person\", \"measure-ads\", \"measure-content\", \"measure-market\"],\n\t\t\t\t\"stack-sonar\"\t\t: [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\"],\n\t\t\t\t\"optimizely\"\t\t: [\"data-store\", \"content-person-prof\", \"content-person\", \"measure-ads\", \"measure-content\", \"vendor\"],\n\t\t\t\t\"bombora\"\t\t\t: [\"vendor\", \"data-store\", \"ads-person-prof\", \"measure-ads\", \"measure-content\", \"product-develop\"],\n \"outbrain-pixel\" : [\"ads-person-prof\", \"ads-person\", \"measure-ads\"],\n \"full-story\"\t\t: [\"measure-content\", \"product-develop\"],\n \"iSpot-pixel\" : [\"data-store\", \"measure-ads\", \"measure-content\", \"measure-market\", \"vendor\"]\n\t\t\t}[name];\n\t\t},\n getTagConsentStates: function(name) {\n if (window.WM && WM.UserConsent && WM.UserConsent.getVersion().indexOf(\"1\") === 0) {\n return this.getTagConsentStatesV1(name);\n }\n return this.getTagConsentStatesV2(name);\n },\n isUSRegion: function() {\n if (window.WM && WM.UserConsent) {\n return WM.UserConsent.getGeoCountry() === \"US\";\n } else {\n return _satellite.cookie.get(\"countryCode\") === \"US\";\n }\n },\n usePrismGeoCheck: function() {\n return !_satellite.cookie.get(\"countryCode\") && this.isCNNStorePage();\n },\n isTagConsented: function(name) {\n // Special handling for AppNexus ID, and Quantcast\n if (name == \"app-nexus-id\" && !this.isUSRegion()) {\n return false;\n }\n if (name == \"quantcast\" && this.isUSRegion()) {\n return false;\n } \n var states = this.getTagConsentStates(name);\n if (window.WM && WM.UserConsent) {\n if (WM.UserConsent.isReady() && WM.UserConsent.inUserConsentState(states, {id: name})) {\n return true;\n }\n } else {\n return true;\n }\n return false;\n },\n isPrismEnabled: function() {\n if (window.WM && window.WM.CDP && typeof window.WM.CDP.isIdentityEnabled === \"function\") {\n return window.WM.CDP.isIdentityEnabled();\n }\n return false;\n }, \n inIFrame: function() {\n try {\n return window.self !== window.top;\n } catch (e) {\n return true;\n }\n },\n getQueryParam: function(key, loc) {\n if (!this.params || loc) {\n var search = loc || window.location.search;\n var params = search.replace(/^\\?/, \"\"), paramObj = {};\n params = params.split(\"&\");\n for (var i = 0; i < params.length; i++) {\n var t = params[i].split(\"=\");\n paramObj[t[0]] = t[1]\n }\n if (!loc) {\n this.params = paramObj;\n } else {\n return paramObj[key] || \"\";\n }\n }\n return this.params[key] || \"\";\n },\n isSearchPage: function() {\n return window.location.pathname.indexOf(\"/search\") === 0;\n },\n isRefreshPage: function() {\n return wminst.Util.getQueryParam(\"refresh\");\n },\n isHomepage: function() {\n var dataLayer = (window.CNN || {}).contentModel || {};\n return (dataLayer.sectionName || dataLayer.section) === \"homepage\";\n },\n isTVEPage: function() {\n var dataLayer = (window.CNN || {}).contentModel || {};\n return dataLayer.pageType === \"tve\" || dataLayer.section === \"tv\";\n },\n isNGTVPage: function() {\n var dataLayer = (window.CNN || {}).omniture || {};\n return (dataLayer.friendly_name || \"\").toLowerCase() === \"ngtv\";\n },\n isStellarPage: function() {\n return this.getCNNTechStack() === \"stellar2.0\";\n },\n setStellarHomepageFlag: function() {\n if (this.isHomepage()) {\n sessionStorage.setItem(\"wminst_homepage_stellar\", this.isStellarPage());\n }\n },\n isStellarHomepage: function() {\n return sessionStorage.getItem(\"wminst_homepage_stellar\") == \"true\";\n },\n isUnderscoredPage: function() {\n return (window.CNN && CNN.omniture && CNN.omniture.section && CNN.omniture.section[0] === \"cnn-underscored\");\n }, \n isStylePage: function() {\n return (window.CNN && CNN.omniture && CNN.omniture.section && CNN.omniture.section[0] === \"style\");\n },\n isTravelPage: function() {\n return (window.CNN && CNN.omniture && CNN.omniture.section && CNN.omniture.section[0] === \"travel\");\n },\n isElectionDynamicPage: function() {\n return window.location.pathname.match(/\\/election\\//) !== null && window.location.pathname.match(/20(17|18|19)/) !== null;\n },\n isUserAccountPage: function() {\n return window.location.pathname.match('/account/(register|preferences|confirm|reset-password|log-in|payment)/?.*') !== null;\n },\n isSignupPage: function() {\n return window.location.pathname.match(/\\/signup\\/?$/) !== null;\n },\n isNewsletterHub: function() {\n return window.location.pathname.match(/^\\/newsletters(\\/.*)?$/) !== null;\n },\n isUnderscoredZionPage: function() {\n return window.location.pathname.match(/\\/(pets\\/editors-favorite-pet-products|home\\/women-owned-businesses|fashion\\/best-spring-dresses|reviews\\/best-linen-sheets|reviews\\/best-pillows)\\/?$/) !== null;\n },\n \tisPoliticsExplorer: function() {\n return (window.CNN && CNN.omniture && CNN.omniture.is_explorer);\n },\n isLiveStoryPage: function() {\n return window.location.pathname.indexOf(\"live-news\") !== -1;\n },\n isLiveStoryStellarPage: function() {\n return this.isLiveStoryPage() && this.isStellarPage();\n }, \n isLiveStoryNonStellarPage: function() {\n return this.isLiveStoryPage() && !this.isStellarPage();\n },\n isCNNPlusPage: function() {\n return window.location.hostname.indexOf(\"plus\") !== -1;\n },\n isCNNStorePage: function() {\n return window.location.hostname.indexOf(\"store\") !== -1;\n },\n isSpeedyPage: function() {\n return window.location.hostname.indexOf(\"-m.cnn.com\") !== -1;\n },\n isDynamicPage: function() {\n return this.isSearchPage() || this.isRefreshPage() || this.isElectionDynamicPage() || this.isLiveStoryNonStellarPage() || this.isSpeedyPage();\n },\n isLightweightPage: function() {\n return this.isUserAccountPage() || this.isNewsletterHub();\n },\n isFavePage: function() {\n return window.location.hostname.indexOf(\"fave.api.cnn.io\") !== -1 || window.location.hostname.indexOf(\"fave-api.cnn.com\") !== -1;\n },\n isFBIAPage: function () {\n try {\n if(window.CNN.omniture.fbia && (window.CNN.omniture.fbia === true || window.CNN.omniture.fbia === \"true\")){\n return true;\n } else {\n return false;\n }\n }catch(e){ return false;}\n },\n isLiveStoryTemplateType: function() {\n var templateType = ((window.CNN || {}).omniture || {}).template_type || {};\n return (templateType == \"live story\" || templateType == \"article_livestory\");\n },\n isEmpty: function(obj) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key))\n return false;\n }\n return true;\n },\n isVideoAutoStarted: function(data) {\n return data.isAutoStart === true && (data.isAutostartSuccessful === true || data.is_autoplay_allowed === true);\n },\n getVideoMetadata: function(data) {\n if (!this.isEmpty(data.video)) {\n return data.video;\n } else {\n return data;\n }\n },\n sendImagePixel: function(url) {\n var image = new Image();\n image.src = url;\n image.style.display = \"none\";\n image.width = 1;\n image.height = 1;\n },\n loadScript: function(src, callback) {\n var e = document.createElement('script');\n e.type = 'text/javascript';\n e.async = true;\n e.src = src;\n if (callback) {\n e.addEventListener('load', callback);\n }\n var n = document.getElementsByTagName('script')[0];\n n.parentNode.insertBefore(e, n);\n },\n getCookie: function(name, flag) {\n var r = _satellite.cookie.get(name)|| \"\";\n if (flag === 'c' || flag === 1) {\n _satellite.cookie.set(name, \"-\", -1000);\n }\n return unescape(r);\n },\n removeCookie: function(name) {\n // if cookie is not removed on first attempt, try again with a different method\n _satellite.cookie.remove(name);\n if (_satellite.cookie.get(name)) {\n document.cookie = name + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.cnn.com;\";\n }\n },\n getCNNEvent: function() {\n var rval = wminst.Util.getCNNBrandingPartner();\n var tt = \"\"; var cctype = \"\";\n var pathName = window.location.pathname;\n var pathNameArray = pathName.split(\"/\");\n if(typeof window.CNN !== 'undefined' && typeof window.CNN.omniture !== 'undefined' && typeof window.CNN.omniture.template_type !== 'undefined'){\n tt = window.CNN.omniture.template_type;\n }\n if( typeof window.CNN !== 'undefined' && typeof window.CNN.omniture !== 'undefined' && typeof window.CNN.omniture.cap_content_type !== 'undefined'){\n cctype = window.CNN.omniture.cap_content_type;\n }\n var events = \"\";\n if(rval == \"\" || rval == \"nvs\" || rval == \"no value set\" || rval == \"no-value-set\"){\n events = \"event26\"; \n } else {\n events = \"event21,event26\";\n }\n if(tt == \"article\" || cctype == \"article\"){\n events = events + \",event39\";\n }\n if (tt !== \"error\" && pathNameArray[1] == \"video-day\") {\n events = events + \",event63\";\n }\n if (tt !== \"error\" && pathName.indexOf(\"/account/register\") > -1) {\n events = events + \",event51\";\n }\n return events;\n },\n getCNNBusinessName: function() {\n return \"cnn\";\n },\n getCNNCampaign: function(){\n if (wminst.Util.isFBIAPage()) {\n return \"fbia\";\n }\n return;\n },\n getCNNDomainName: function() {\n var hostname = window.location.hostname.toLowerCase();\n hostname = hostname.replace(\"www.\",\"\");\n return hostname;\n },\n getCNNPageURL: function() { //s.pageURL or g variable\n var rval = window.location.href.toLowerCase(), loc = \"\";\n if (wminst.Util.isFBIAPage()) {\n loc = rval;\n rval = \"\";\n if (loc.indexOf(\"ofs=fbia\") > -1) {\n loc = loc.replace(\"ofs=fbia\", \"csr=fbiacnn\"); //suppressing string which is not expected as per new requirement\n }\n var jj = (loc.indexOf(\"?\") != -1 ? \"&\" : \"?\");\n if (loc.indexOf(\"csr=fbiacnn\") > -1) {\n rval = loc + \"\";\n } else {\n rval = loc + jj + \"csr=fbiacnn\"; // added expected substring\n }\n }\n return rval;\n },\n getCNNPageType: function() {\n var rval = \"\";\n try {\n var title = document.title.toLowerCase();\n if (title.indexOf(\"page not found\") !== -1 || wminst.Util.getCNNTemplateType().includes(\"error\") || title == \"error\") {\n rval = \"errorPage\";\n }\n } catch (err) {}\n return rval;\n },\n getCNNAuthor: function() { //prop2,eVar2 - business.cnn.page.author\n var rval = \"\";\n if (window.is_expansion) {\n try {\n rval = window.cnn_d.omniture.cap_author;\n } catch (e) {}\n try {\n rval = window.CNN.omniture.cap_author.toString();\n } catch (e) {}\n } else {\n try {\n rval = window.cnn_metadata.business.cnn.page.author;\n } catch (e) {}\n if (!rval) {\n if (document.getElementsByName(\"AUTHOR\").item(0)) {\n rval = document.getElementsByName(\"AUTHOR\").item(0).content;\n } else if (document.getElementsByName(\"author\").item(0)) {\n rval = document.getElementsByName(\"author\").item(0).content;\n }\n }\n }\n if (typeof rval === \"undefined\" || rval == \"no-value-set\" || rval == \"nvs\") rval = \"\";\n return rval.toLowerCase();\n },\n getPageAttribution: function() { //prop4,eVar4 - page HPlocation\n var rval = \"\";\n var ishptCookie = false;\n var hptcookie = wminst.Util.getCookie(\"hpt\");\n var linkTrackingCookie = wminst.Util.getCookie(\"linkTracking\");\n var regex = new RegExp(\"^[A-Za-z0-9=]+$\");\n if ((typeof linkTrackingCookie == 'undefined' || linkTrackingCookie == \"\") && typeof hptcookie !== 'undefined') {\n ishptCookie = true;\n }\n var attributionCookie = linkTrackingCookie || hptcookie;\n if ((typeof attributionCookie != \"undefined\" && attributionCookie != \"\" && attributionCookie.indexOf(\"breaking:\") != -1) || !regex.test(attributionCookie)) {\n rval = attributionCookie;\n } else if (document.referrer.indexOf(\"cnn.com\") !== -1) {\n rval = wminst.Util.getQueryParam(\"linkTracking\") || wminst.Util.getQueryParam(\"hpt\");\n try {\n rval = rval.replace(/no\\-value\\-set/g, \"\");\n } catch (e) {}\n var prev_rval = rval;\n try {\n if (attributionCookie) {\n rval = attributionCookie;\n if (attributionCookie.indexOf(\"_\") === -1 && attributionCookie.indexOf(\"|\") === -1 && typeof window.CNN.Utils.b64Decode(attributionCookie) !== 'undefined') {\n rval = window.CNN.Utils.b64Decode(attributionCookie);\n }\n }\n } catch (e) {}\n if (rval) {\n wminst.hpt_set = 1;\n } else {\n rval = prev_rval;\n }\n }\n if (window.is_expansion != 0) {\n if (wminst.Util.getQueryParam(\"cnnapp\") && wminst.Util.getQueryParam(\"cnnapp\") != null) {\n rval = \"cnnapp:\" + wminst.Util.getQueryParam(\"cnnapp\");\n }\n if (wminst.Util.getQueryParam(\"eref\") && wminst.Util.getQueryParam(\"eref\") != null) {\n rval = \"eref:\" + wminst.Util.getQueryParam(\"eref\");\n }\n if (wminst.Util.getQueryParam(\"iref\") && wminst.Util.getQueryParam(\"iref\") != null) {\n rval = \"iref:\" + wminst.Util.getQueryParam(\"iref\");\n }\n if (wminst.Util.getQueryParam(\"refresh\") && wminst.Util.getQueryParam(\"refresh\") != null) {\n rval = \"auto-refresh\";\n }\n }\n if(rval !== \"\") {\n rval = rval.replace(/no-value-set/g, \"nvs\");\n rval = rval.toLowerCase(); \n }\n this.removeCookie(ishptCookie ? \"hpt\" : \"linkTracking\");\n return rval;\n },\n setPageAttribution: function() {\n if (this.isStellarHomepage()) {\n s.eVar105 = this.getPageAttribution();\n } else {\n s.prop4 = this.getPageAttribution();\n }\n },\n getPhotoGalleryName: function(){ //prop6,eVar6 - Photo Gallery name\n var rval = \"\";\n if(typeof window.CNN !== 'undefined' && typeof window.CNN.omniture !== 'undefined' && typeof window.CNN.omniture.gallery_name !== 'undefined'){\n rval = window.CNN.omniture.gallery_name;\n rval = rval.toLowerCase();\n }\n return rval;\n },\n getCNNVisitNumber: function(rollday) { //prop8,eVar8 - visit_number.$30Day \n rollday = rollday || 28; //default rolling day is 28\n var todaydate = new Date().getTime();\n if (typeof(Storage) !== \"undefined\") { //check for web storage support\n if (localStorage.startdate) { //check for start date\n if (sessionStorage.online) { //check for session variable\n var daysinceonline = Math.ceil((todaydate - sessionStorage.online) / 86400000);\n if (daysinceonline > 1) { //if session is older than 24 hours, reset session start time and count as a visit\n localStorage.visittype = \"repeat\"; //set visit type (new vs repeat)\n localStorage.visitnum = Number(localStorage.visitnum) + 1; //increment visit number\n sessionStorage.online = todaydate; //set session variable\n }\n } else { //new session\n localStorage.visittype = \"repeat\"; //set visit type (new vs repeat)\n localStorage.visitnum = Number(localStorage.visitnum) + 1; //increment visit number\n sessionStorage.online = todaydate; //set session variable\n }\n var daysincestart = Math.ceil((todaydate - localStorage.startdate) / 86400000);\n if (daysincestart > Number(rollday)) { //if days since start date is greater than rolling day, set new start date\n localStorage.startdate = todaydate;\n localStorage.visittype = \"new\";\n localStorage.visitnum = 1;\n }\n } else { //first new visit\n localStorage.startdate = todaydate; //set new start date\n localStorage.visittype = \"new\"; //set visit type (new vs repeat)\n localStorage.visitnum = 1; //set visit number\n sessionStorage.online = todaydate; //set session variable\n }\n return localStorage.visittype + \":\" + localStorage.visitnum;\n } else {\n return \"new:1\";\n }\n },\n getCNNCapMediaType: function() {\n var rval = \"nvs\";\n try{\n if (window.CNN && window.CNN.omniture && window.CNN.omniture.cap_media_type) {\n if (window.CNN.omniture.cap_media_type === \"no-value-set\"){\n rval = \"nvs\";\n } else {\n rval = window.CNN.omniture.cap_media_type;\n }\n }\n rval = rval.toLowerCase(); \n } catch(e) {}\n return rval;\n },\n getCNNPublishDate: function() {\n var rval = \"\";\n try {\n rval = window.cnn_metadata.business.cnn.page.publish_date\n } catch (e) {}\n try {\n if (window.CNN && window.CNN.omniture && window.CNN.omniture.publish_date ) {\n rval = window.CNN.omniture.publish_date;\n }\n if (rval && window.CNN && window.CNN.omniture && window.CNN.omniture.last_updated_date) {\n rval = rval + \"|\" + window.CNN.omniture.last_updated_date;\n }\n \n } catch (e) {}\n try {\n if (!rval && window.cnn_d && window.cnn_d.omniture && window.cnn_d.omniture.publish_date) {\n rval = window.cnn_d.omniture.publish_date;\n }\n \n } catch (e) {}\n return rval;\n },\n populatePublishDate: function(){\n var rval = wminst.Util.getCNNPublishDate();\n var etype = [\"content\",\"live story\",\"article_livestory\",\"gallery\"];\n var rttype = wminst.Util.getCNNTemplateType(\"long\");\n var result = false;\n if (typeof rttype !== 'undefined') {\n for(var i in etype){\n if(rttype.indexOf(etype[i]) != -1){\n result = true;\n }\n }\n }\n if (result) {\n return rval;\n } else {\n return \"\";\n }\n },\n getCNNDaysSinceLastPublish: function(d) { //prop10,eVar10 - days_since_publish\n var e = new Date();\n var p;\n var j;\n if (d == 'a') {\n try {\n d = window.cnn_metadata.business.cnn.page.publish_date;\n } catch (err) {}\n try {\n d = window.CNN.omniture.publish_date || d;\n } catch (err) {}\n j = new Date(d);\n } else if (d.toString().indexOf(\"/\") != -1) {\n p = d.split(\"/\");\n if (p[0].length != 4) {\n p[2] = \"20\" + p[2];\n j = new Date(p[2] + \"/\" + p[0] + \"/\" + p[1]);\n } else {\n j = new Date(d);\n }\n } else {\n j = new Date(d);\n }\n var ONE_DAY = 1000 * 60 * 60 * 24;\n var date1_ms = e.getTime();\n var date2_ms = j.getTime();\n var difference_ms = Math.abs(date1_ms - date2_ms)\n var days = Math.round((difference_ms / ONE_DAY))\n if (isNaN(days)) {\n return \"\";\n }\n if (window.is_expansion != 0) {\n return Math.round((difference_ms / ONE_DAY)).toString()\n } else if (window.is_expansion == 0 && typeof window.cnn_metadata.days_since_publish !== \"undefined\") {\n try {\n return window.cnn_metadata.days_since_publish;\n } catch (err) {}\n }\n },\n populateDaysSinceLastPublish: function(){\n var rval = wminst.Util.getCNNDaysSinceLastPublish(\"a\");\n var etype = [\"content:\",\"live story\",\"article_livestory\"];\n var rttype = wminst.Util.getCNNTemplateType(\"long\");\n var result = false;\n if (typeof rttype !== 'undefined') {\n for(var i in etype){\n if (rttype.indexOf(etype[i]) != -1){\n result = true;\n }\n }\n }\n if(result) {\n return rval;\n } else {\n return \"\";\n }\n },\n getCNNBrandingPartner: function() { //prop11,eVar11 - page branding content partner\n var rval = \"\";\n var bp = \"\";\n try {\n rval = (cnn_metadata.business.cnn.page.branding_partner ? cnn_metadata.business.cnn.page.branding_partner : window.cnnOmniPartner || \"\");\n } catch (e) {}\n try {\n if (typeof window.CNN.omniture.branding_content_page != 'undefined') {\n bp = window.CNN.omniture.branding_content_page;\n bp = bp.replace(\"default\", \"\");\n if (bp) {\n rval = \"p:\" + bp;\n }\n }\n } catch (e) {}\n try {\n if (window.CNN.omniture.branding_gallery || (bp && window.CNN.contentModel.analytics.pageTop.type === 'gallery')) {\n rval = \"g:\" + (window.CNN.omniture.branding_gallery ? window.CNN.omniture.branding_gallery : bp);\n }\n } catch (e) {}\n try {\n if (typeof window.CNN.omniture.template_type != 'undefined' && window.CNN.omniture.template_type == \"error\") {\n rval = \"\"; //suppressed branding partner(prop11,eVar11) value for error page\n }\n } catch (e) {}\n return rval.toLowerCase();\n },\n getCNNCapContentType: function (){ //prop13,eVar13 - cap_content_type\n var rval = \"\";\n try {\n if(window.CNN.contentModel && window.CNN.contentModel.analytics.pageTop.type === 'gallery'){\n rval = \"gallery\";\n } else {\n rval = window.CNN.omniture.cap_content_type;\n }\n rval = rval.toLowerCase();\n } catch(e) {\n rval = \"\";\n }\n return rval;\n },\n getCNNCapGenre: function (){ //prop5,eVar5 - cap genre\n var rval = \"\";\n if(window.CNN && window.CNN.omniture && typeof window.CNN.omniture.cap_genre != \"undefined\"){\n if( window.CNN.omniture.cap_genre == \"\" || window.CNN.omniture.cap_genre == \"no-value-set\")\n rval = \"nvs\";\n else\n rval = window.CNN.omniture.cap_genre.toLowerCase();\n } \n return rval;\n },\n getCNNBrandingSocial: function() { //prop14,eVar14 - Branding Social\n var rval = \"\";\n try {\n if (window.CNN && window.CNN.omniture) {\n if (window.CNN.omniture.fbia === true) {\n rval = window.CNN.omniture.branding_social;\n }\n }\n } catch(err) {}\n try {\n if (window.navigator.userAgent && window.navigator.userAgent == \"cnn-mobile-app\") {\n return window.navigator.userAgent;\n }\n } catch(err){}\n var hostName = window.location.hostname;\n if (hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1) {\n var pathName = window.location.pathname;\n if (pathName.indexOf(\"/v1/amp\") != -1) {\n rval = \"google amp\"; //google amp\n }\n if (pathName.indexOf(\"/v1/fav\") != -1) {\n rval = \"embed\"; //embed\n }\n }\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNTrafficPartner: function() { // eVar15 - Traffic Partner\n var rval = \"\";\n try {\n rval = _satellite.cookie.get(\"FastAB\");\n } catch(err) {}\n return rval;\n },\n getIreportgetMember: function() { //prop17,eVar17 - ireport member\n var irptMember = wminst.Util.getCNNAuthenticated(\"authid\", \"displayname\", \"member\", \"anonymous\", \"NonMember\", \"?\");\n if (window.location.host.indexOf(\"politics\") == -1 && window.is_expansion != 0) {\n return irptMember;\n } else {\n return null;\n }\n },\n getCNNPageImpression: function() { //prop18,eVar18 - page impressions\n var rval = window.cnnPSproducts || \"\";\n var hptcookie = wminst.Util.getCookie(\"hpt2\");\n if (document.referrer.indexOf(\"cnn.com\") > -1) {\n try {\n if (hptcookie) {\n rval = hptcookie;\n if (hptcookie.indexOf(\"_\") == -1) {\n rval = CNN.Utils.b64Decode(hptcookie);\n }\n }\n } catch(e) {}\n //document.cookie = \"hpt2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;\";\n } else {\n if (hptcookie) {\n document.cookie = \"hpt2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.cnn.com;\";\n }\n }\n rval = rval.replace(/no-value-set/g, \"nvs\");\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNVideoOpportunity: function() { //eVar22 - video embed count\n var rval = \"0\";\n var ttype = \"\";\n try { rval = window.cnn_metadata.business.cnn.page.video_embed_count; } catch(e) {}\n try { rval = window.CNN.omniture.video_opportunity || \"0\"; } catch(e) {}\n ttype = wminst.Util.getCNNTemplateType();\n if (typeof ttype !== 'undefined' && ttype.indexOf(\"index\") > -1) {\n rval = \"\";\n }\n return rval;\n },\n getCNNPageHeadline: function() { //prop23,eVar23 - page headline\n var rval = \"nvs\", tt = \"\";\n try { \n rval = window.CNN.omniture.headline;\n tt = window.CNN.omniture.template_type;\n } catch(e) {}\n try { \n if(typeof window.cnn_d != \"undefined\" && typeof window.cnn_d.omniture != \"undefined\" && window.cnn_d.omniture.headline != \"undefined\"){\n rval = window.cnn_d.omniture.headline;\n tt = window.cnn_d.omniture.template_type;\n }\n } catch(e) {}\n try {\n if(rval == \"no-value-set\" || tt == \"specials\" || tt == \"section front\" || tt == \"index\") {return null;}\n rval = rval.toLowerCase();\n } catch(e) {rval = \"\";}\n return rval;\n },\n getCNNFullPageName: function(pathname,delimiter) {\n var s_pageName = \"\";\n var templateTypeSmall = \"\";\n if (!delimiter) delimiter = \":\";\n var ttbefore = wminst.Util.getCNNTemplateType(\"long\");\n if (ttbefore) { //default to \"other\" if template type is not defined\n ttbefore = ttbefore.replace(/adbp./,\"\");\n templateTypeSmall = wminst.Util.getADBPTranslateTemplateType(ttbefore, \"short\")\n } else {\n templateTypeSmall = \"o\";\n }\n var buc_p32 = wminst.Util.getCNNBusinessName() + delimiter + templateTypeSmall;\n var thirdLevelDomain = wminst.Util.getADBPURL(\"domain\", 3);\n var fullDomain = wminst.Util.getADBPURL(\"domain\");\n var lastTwoDomain = /(\\.\\w+\\.\\w+)$/.exec(fullDomain);\n if (lastTwoDomain) thirdLevelDomain = fullDomain.replace(lastTwoDomain[0],\"\");\n //if (!pathname) pathname = _jsmd.plugin.gADBPURL(\"path\");\n if (!pathname) {\n var p = window.location.pathname.toLowerCase();\n var a = p.split('/');\n var l = a.length;\n var r = /^index./;\n pathname = (r.test(a[(l-1)])) ? p.replace(/([^\\/]+\\.[^\\/]+$)/,\"\") : p;\n r = /([^\\/]+\\.[^\\/]+$)/;\n if (!r.test(pathname)){\n l = pathname.length;\n if(pathname.charAt(l-1) !== \"/\"){pathname = pathname+\"/\";}\n }\n }\n if (thirdLevelDomain == \"\") {\n s_pageName = buc_p32 + delimiter + pathname;\n }else{\n s_pageName = buc_p32 + delimiter + thirdLevelDomain + delimiter + pathname;\n }\n return s_pageName;\n },\n getCNNPageNameV1: function(pname) { //pageName,eVar26 - page.name\n var rval = wminst.Util.getCNNFullPageName(pname);\n var ttype = \"\";\n try {\n if (typeof window.CNN.omniture !== 'undefined' && typeof window.CNN.omniture.template_type !== 'undefined') {\n ttype = window.CNN.omniture.template_type;\n }\n }catch(e){ttype = \"\";}\n try {\n if (ttype === \"\" && typeof window.cnn_d.omniture === 'undefined' && typeof window.cnn_d.omniture.template_type !== 'undefined') {\n ttype = window.cnn_d.omniture.template_type;\n }\n }catch(e){}\n // www-m.cnn.com = cnn.com; us-m.cnn.com = cnn.com; edition-m.cnn.com = edition.cnn.com\n var arr = rval.split(\":\");\n if (arr.length == 4) {\n arr[2] = arr[2].replace(/-m$/, \"\");\n arr[2] = arr[2].replace(\"www\", \"\");\n if (arr[2] == \"us\") {\n arr[2] = arr[2].replace(\"us\", \"\");\n }\n arr[2] = arr[2].replace(/\\.$/, \"\");\n if (arr[2] === \"\") arr.splice(2, 1);\n }\n rval = arr.join(\":\");\n if (window.is_expansion && rval.match(/cnn:o:/)) {\n var pn = {\n \"index\": \"in\",\n \"video\": \"v\",\n \"videos\": \"v\",\n \"blog\": \"b\",\n \"blogs\": \"b\",\n \"game\": \"g\",\n \"games\": \"g\",\n \"interactive\": \"it\",\n \"content\": \"c\",\n \"error\": \"err\",\n \"section\": \"sf\",\n \"section front\": \"sf\",\n \"gallery\": \"ga\",\n \"show\": \"sh\",\n \"shows\": \"sh\",\n \"special\": \"sp\",\n \"specials\": \"sp\",\n \"topic\": \"t\",\n \"profile\": \"p\",\n \"article\": \"c\"\n } [ttype];\n if (pn) {\n rval = rval.replace(\"cnn:o:\", \"cnn:\" + pn + \":\");\n }\n }\n if (rval && rval.slice(-1) != \"/\") {\n rval = rval + \"/\";\n }\n if (rval && rval.match(/h_[a-z0-9]+\\/$/)) {\n rval = rval.replace(/h_[a-z0-9]+\\/$/, \"\"); //remove last folder ID\n }\n return rval;\n },\n getCNNPageName: function(pathname) { //pageName,eVar26 - page.name\n var rval = pathname || window.location.pathname;\n rval = rval.toLowerCase();\n rval = rval.replace(/^.*\\/\\/[^\\/]+/, \"\"); //remove domain\n rval = rval.replace(\"/index.html\", \"/\"); //remove index.html\n rval = rval.replace(/h_[a-z0-9]+\\/?$/, \"\"); //remove last folder ID\n rval = rval.replace(/\\/?$/, \"/\"); //add trailing slash\n if (rval === \"/\") rval += \"homepage\";\n return rval;\n },\n getCNNBaseURL: function() { //prop26 - Base URL\n var hostname = window.location.hostname;\n var pathname = window.location.pathname;\n pathname = pathname.replace(/([^\\/]+\\.[^\\/]+$)/,\"\");\n return hostname + pathname;\n },\n getCNNSection: function(position) { //channel/eVar27, prop28/eVar28\n var rval = \"\";\n try {\n if (window.is_expansion) {\n for (var i = 0; i <= position; i++) {\n if (i > 0) {\n rval += \":\";\n }\n try {\n var s1 = window.CNN.omniture.section[i];\n if ((s1.indexOf(\":\")) && (s1.indexOf(\"electoral college map\") > -1)) {\n var c1 = s1.split(':');\n rval += c1[0];\n return rval;\n }\n } catch (e) {}\n if (typeof window.CNN != 'undefined' && typeof window.CNN.omniture != 'undefined') {\n if (i == 1 && !window.CNN.omniture.section[1]) { //add default value \"no value set\" for subsection (prop28/eVar28)\n window.CNN.omniture.section[1] = \"no value set\";\n try {\n if (this.isNGTVPage()) {\n window.CNN.omniture.section[1] = \"\";\n }\n } catch (e) {}\n }\n }\n if (window.cnn_d && window.cnn_d.omniture && window.cnn_d.omniture.section[i]) {\n try {\n rval += window.cnn_d.omniture.section[i] || \"\";\n } catch (e) {}\n } else {\n try {\n rval += window.CNN.omniture.section[i] || \"\";\n } catch (e) {}\n }\n }\n try {\n if (typeof window.CNN.omniture !== 'undefined' && window.CNN.omniture.template_type == \"list\" && position == 0 && rval == \"\") { //use first path of URL for list pages\n rval = wminst.Util.getADBPURL(\"path\", 1);\n }\n } catch (e) {}\n } else {\n window.cnn_metadata.section = (typeof window.cnn_metadata.section != \"string\" ? window.cnn_metadata.section : window.JSON.parse(window.cnn_metadata.section));\n rval = (window.cnn_metadata.section[position] ? window.cnn_metadata.section[position] : \"\");\n }\n } catch (e) {}\n return rval;\n },\n getCNNPageFranchise: function() { //prop31,eVar31 - page_franchise\n var rval = \"\";\n try { rval = cnn_metadata.business.cnn.page.broadcast_franchise || rval; } catch(e) {}\n try { rval = CNN.omniture.cap_show_name || rval; } catch(e) {}\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNTemplateType: function(lookupType) { //prop32,eVar32 - page template_type\n var hostName = window.location.hostname;\n var rval = \"\";\n if (window.is_expansion) {\n if (typeof window.CNN !== 'undefined' && typeof window.CNN.omniture !== 'undefined' && typeof window.CNN.omniture.template_type !== 'undefined' && window.CNN.omniture.template_type == 'article') {\n try {\n if (typeof window.CNN.contentModel !== 'undefined' && typeof window.CNN.contentModel.analytics !== 'undefined' && typeof window.CNN.contentModel.analytics.pageTop !== 'undefined' && typeof window.CNN.contentModel.analytics.pageTop.type !== 'undefined' && window.CNN.contentModel.analytics.pageTop.type === 'gallery') {\n rval = \"content: gallery\";\n } else if (typeof window.CNN.contentModel !== 'undefined' && typeof window.CNN.contentModel.analytics !== 'undefined' && typeof window.CNN.contentModel.analytics.pageTop !== 'undefined' && typeof window.CNN.contentModel.analytics.pageTop.type !== 'undefined' && (window.CNN.contentModel.analytics.pageTop.type === 'video' || window.CNN.contentModel.analytics.pageTop.type === 'video360')) {\n if (typeof window.CNN.contentModel !== 'undefined' && window.CNN.contentModel.analytics.isArticleVideoCollection) {\n rval = \"content:video:collection\";\n } else {\n rval = \"content:video:nocollection\";\n }\n } else if (window.CNN.omniture.cap_content_type !== 'undefined' && window.CNN.omniture.cap_content_type === 'gallery') {\n rval = \"content: gallery\";\n } else {\n if (window.CNN.omniture.cap_media_type === 'Video') {\n rval = \"content:video\";\n } else {\n rval = \"content: no media\";\n }\n } \n } catch(e){}\n \n } else if (hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1) {\n rval = \"content\";\n } else if (typeof window.cnn_d !== 'undefined' && typeof window.cnn_d.omniture !== 'undefined') {\n try {\n if (window.cnn_d.omniture.section[0] == \"cnn-underscored\") {\n rval = window.cnn_d.omniture.template_type;\n }\n } catch (e) {}\n } else {\n try {\n rval = window.CNN.omniture.template_type;\n } catch (e) {}\n }\n } else {\n var templateTypeCode = \"\";\n if (typeof CNN != 'undefined' && typeof CNN.omniture != 'undefined' && typeof CNN.omniture.template_type != 'undefined') {\n templateTypeCode = CNN.omniture.template_type;\n } else if (typeof cnn_metadata != 'undefined') {\n templateTypeCode = cnn_metadata.template_type;\n } else if (typeof window.cnn_d != 'undefined' && typeof window.cnn_d.omniture != 'undefined' && typeof window.cnn_d.omniture.template_type != 'undefined') {\n templateTypeCode = window.cnn_d.omniture.template_type;\n }\n rval = [\"o\", \"other\"];\n var lookup = {\n b: \"blog\",\n g: \"game\",\n it: \"interactive\",\n c: \"content\",\n \"in\": \"index\",\n err: \"error\",\n e: \"ecom\",\n s: \"signup\",\n v: \"video\",\n sf: \"section front\",\n sr: \"search results\",\n fm: \"forum\",\n o: \"other\",\n ir: \"ireport\",\n sp: \"specials\",\n pm: \"perfect market\",\n bf: \"blog front\",\n bc: \"blog category\",\n t: \"topic\",\n w: \"weather\",\n el: \"election\"\n },\n lookupRev = {\n \"blog\": \"b\",\n \"game\": \"g\",\n \"interactive\": \"it\",\n \"content\": \"c\",\n \"index\": \"in\",\n \"error\": \"err\",\n \"ecom\": \"e\",\n \"signup\": \"s\",\n \"video\": \"v\",\n \"section front\": \"sf\",\n \"search results\": \"sr\",\n \"forum\": \"fm\",\n \"other\": \"o\",\n \"ireport\": \"ir\",\n \"specials\": \"sp\",\n \"perfect market\": \"pm\",\n \"blog front\": \"bf\",\n \"blog category\": \"bc\",\n \"topic\": \"t\",\n \"weather\": \"w\",\n \"election\": \"el\"\n };\n if (lookup[templateTypeCode] != null) {\n rval = [templateTypeCode, lookup[templateTypeCode]];\n }\n if (lookupRev[templateTypeCode] != null) {\n rval = [lookupRev[templateTypeCode], templateTypeCode];\n }\n if (lookupType == \"short\") {\n rval = rval[0];\n }\n if (lookupType == \"long\") {\n rval = rval[1];\n }\n }\n if(typeof rval == \"string\") { \n\t\t\t\trval = rval.toLowerCase();\n\t\t\t}\n return rval;\n },\n getCNNContentType: function(defaultVal) { //prop33,eVar33 - content_type\n var omnitureRef = (window.cnn_d && window.cnn_d.omniture) || (window.CNN && window.CNN.omniture);\n if (typeof omnitureRef === 'undefined') {\n return defaultVal;\n }\n\n var tt = \"\",\n ct = \"\";\n if (typeof window.cnn_d != 'undefined' && typeof window.cnn_d.omniture != 'undefined' && typeof window.cnn_d.omniture.template_type != 'undefined') {\n tt = window.cnn_d.omniture.template_type;\n ct = \"adbp:\" + window.cnn_d.omniture.content_type;\n\n } else {\n if (typeof window.CNN.omniture !== \"undefined\" && typeof window.CNN.omniture.content_type !== \"undefined\" && window.CNN.omniture.content_type){\n ct = window.CNN.omniture.content_type;\n } else {\n ct = \"adbp:none\";\n }\n if (typeof ct !== 'undefined' && (ct == \"none\" || ct == \"\")) {\n ct = \"adbp:none\";\n }\n tt = window.CNN.omniture && window.CNN.omniture.template_type;\n }\n var l = {\n \"adbp:blog\": [\"blog.read\", \"adbp:blog read\"],\n \"adbp:content\": [\"article.read\", \"adbp:article read\"],\n \"adbp:game\": [\"game.play\", \"adbp:game played\"],\n \"other:ireport\": [\"other.ireport\", \"other:ireport\"],\n \"other:photo wall\": [\"content.interactive\", \"other:photo wall\"]\n } [tt];\n var m = {\n \"adbp:article read\": \"article.read\"\n } [ct];\n if (m !== null) {\n if (typeof ct !== 'undefined' && ct.indexOf(\"pivit\") !== -1) {\n return tt + \":\" + ct;\n } else {\n return ct;\n }\n }\n if (!l) {\n return defaultVal;\n }\n return l[1];\n },\n getCNNAuthenticated: function(c1, c2, truevalue, falsevalue, neutralvalue, flag) { //prop34,eVar34 - user authenticated\n var rValue = 0;\n if (wminst.Util.getCookie(c1, flag)) {\n rValue++;\n }\n if (wminst.Util.getCookie(c2, flag)) {\n rValue++;\n }\n if (rValue == 0) {\n return falsevalue;\n } else if (rValue == 1) {\n return neutralvalue;\n } else {\n return truevalue;\n }\n },\n getCNNKruxID: function() { // eVar36 - KruxID\n var rval = \"\";\n try {\n rval = localStorage.kxkuid;\n } catch (err) {}\n return rval;\n },\n getCNNPlatform: function() { //prop37,eVar37 - page platform\n var rval = \"\";\n if (navigator.userAgent.match(/iPhone/i)) {\n rval = \"smartphone\";\n } else if (navigator.userAgent.match(/iPad/i)) {\n rval = \"tablet\";\n } else if (navigator.userAgent.match(/android/i)) {\n if (navigator.userAgent.match(/mobile/i)) {\n rval = \"smartphone\";\n } else {\n rval = \"tablet\";\n }\n } else {\n rval = \"desktop\";\n }\n return rval ? rval : \"no value set\";\n },\n getCNNSearchInternalKeyword: function() { //prop39,eVar39 - search internal keyword\n var rval = \"\";\n try {\n rval = wminst.Util.getQueryParam(\"query\");\n } catch(e){}\n return rval;\n },\n getLSPostPosition: function() { //eVar45 - Post Position\n var rval = \"\";\n try {\n if (this.isLiveStoryTemplateType()) {\n var post_position = window.CNN.omniture.post_position ? window.CNN.omniture.post_position : 1;\n var total_post = window.CNN.omniture.total_post ? window.CNN.omniture.total_post : 0;\n rval = post_position + \":\" + total_post;\n } \n } catch(e) {}\n return rval;\n },\n getCNNPostID: function() { //prop43 - Post ID\n var rval = null;\n var pathName = window.location.pathname;\n if(window.CNN && window.CNN.omniture && typeof window.CNN.omniture.post_id != 'undefined' && window.CNN.omniture.post_id != \"\") {\n rval = window.CNN.omniture.post_id;\n } else {\n try{\n pathName = pathName.replace(/\\/$/, \"\");\n var path_array = pathName.split(\"/\");\n rval = path_array[path_array.length - 1];\n if(rval.match(/(^h_)[a-z0-9]+$/) === null){\n rval = null;\n }\n } catch(e) {}\n } \n try {\n if (this.isLiveStoryTemplateType()) {\n // Do Nothing\n } else {\n rval = \"\";\n } \n } catch(e) {}\n return rval;\n },\n getCNNPageVertical: function() { //eVar44 - Page Vertical\n var rval = \"\";\n try {\n if(window.CNN && window.CNN.contentModel && window.CNN.contentModel.vertical){\n rval = CNN.contentModel.vertical;\n rval = rval.toLowerCase();\n }\n } catch(e){}\n return rval;\n },\n getCNNSourceID: function(){ //prop44 - Source ID\n var rval = \"\";\n try {\n if(typeof window.CNN != 'undefined' && typeof window.CNN.omniture != 'undefined' && window.CNN.omniture.sourceId) {\n rval = window.CNN.omniture.sourceId;\n } else if(window.CNN && window.CNN.contentModel && window.CNN.contentModel.sourceId){\n rval = window.CNN.contentModel.sourceId;\n }\n rval = rval.toLowerCase();\n } catch(e) {}\n return rval; \n },\n getCNNTransactionID: function() { // prop46,eVar46\n var rval = \"\";\n try {\n if (typeof window.cnnad_transactionID !== 'undefined') {\n rval = window.cnnad_transactionID;\n } else if (typeof window.cnnad_getTransactionID === \"function\") {\n rval = cnnad_getTransactionID();\n } else {\n rval = Math.round((new Date()).getTime() / 1000) + \"\" + Math.floor(Math.random()*9007199254740992);\n }\n } catch (e) {}\n return rval;\n },\n getCNNGUID: function() { // prop47,eVar47\n var rval = \"\";\n try {\n if (typeof window.turner_getGuid === \"function\") {\n rval = turner_getGuid(\"ug\");\n } else {\n rval = _satellite.cookie.get(\"ug\");\n }\n } catch (e) {}\n return rval;\n },\n getAppNexusID: function() {\n var rval = \"\";\n try {\n if (this.isTagConsented(\"app-nexus-id\")) {\n rval = _satellite.cookie.get(\"zwmc\");\n }\n } catch (e) {}\n return rval\n },\n getWMID: function(name) {\n var rval = \"\";\n try {\n if (window.WM) {\n var obj = window.WM.PSM || window.WM.CDP || {};\n var fn = obj[\"get\"+name];\n if (typeof fn === \"function\") {\n rval = fn();\n }\n }\n } catch (e) {}\n return rval;\n },\n getWMUKID: function() {\n var rval = \"\";\n try {\n rval = this.getCookie('WMUKID_STABLE');\n\n if (!rval) {\n var wmukidJSON = wminst.Util.getCookie(\"WMUKID\");\n var wmukidObj = JSON.parse(wmukidJSON);\n rval = wmukidObj.id;\n }\n\n } catch (e) {}\n return rval\n },\n getCNNUID: function() {\n var rval = \"nvs\";\n try {\n var cnnuidJSON = localStorage.getItem(\"zion.cnn_uid\");\n if (cnnuidJSON) {\n cnnuidObj = JSON.parse(cnnuidJSON);\n rval = cnnuidObj.id;\n }\n } catch (e) {}\n return rval;\n },\n setIds: function() {\n try {\n if (!s.linkTrackVars.includes(\"None\") && !s.linkTrackVars.includes(\"eVar106\")) {\n s.linkTrackVars += \",eVar106,eVar195,eVar197,eVar198,eVar199\";\n }\n s.eVar106 = this.getCNNUID();\n s.eVar195 = this.getAppNexusID();\n s.eVar197 = this.getWMUKID();\n s.eVar198 = this.getWMID(\"WMHHID\");\n s.eVar199 = this.getWMID(\"WMINID\");\n } catch (e) {}\n },\n getCNNTechStack: function() { //eVar48 - Site Tech Stack\n var dataLayer = (window.CNN || {}).contentModel || {};\n return (dataLayer.techStack || \"\").toLowerCase();\n },\n getCNNCMSId: function() { //eVar49 - CMS ID\n var rval = \"\";\n try {\n if(window.CNN && window.CNN.contentModel && window.CNN.contentModel.cmsId){\n rval = CNN.contentModel.cmsId;\n }\n } catch(e){}\n return rval;\n },\n getCNNPreviousPageName: function(){ //prop49,eVar49 - Previous PageName\n var rval = \"\";\n try {\n if(this.isTagConsented('adobe')) {\n var pName = window.document.referrer;\n var prevP = s.getPreviousValue(wminst.Util.getCNNPageName(),\"cnprevpage_pn\");\n if (prevP && typeof pName != \"undefined\" && pName != \"\" && pName.indexOf(\".cnn.com\") != -1) {\n return prevP;\n }\n }\n } catch(e) {return rval;}\n return rval;\n },\n getCNNPostTitle: function() { //prop50 - Post Title\n var rval = \"\";\n try{\n if(window.CNN && window.CNN.omniture && window.CNN.omniture.post_title) {\n rval = window.CNN.omniture.post_title;\n } else { \n rval = document.title;\n }\n } catch(e) { rval = document.title; }\n rval = rval.toLowerCase();\n try {\n var dom_obj = $x(\"//script[@type='application/ld+json']\");\n var post_obj = JSON.parse(rval[rval.length - 1]).innerHTML;\n if(post_obj && post_obj.headline){\n rval = post_obj.headline;\n } \n } catch(e) {}\n try {\n if (this.isLiveStoryTemplateType()) {\n // Do Nothing\n } else {\n rval = \"\";\n } \n } catch(e) {}\n if(rval !== \"\") {\n rval = rval.replace(/\\([0-9]+\\)/, \"\").trim();\n }\n return rval;\n },\n getCNNBreakingNewsHP: function(ptt, chnl) {\n var rval = \"\";\n var tt = \"\";\n try {\n if (ptt.indexOf(\":\") != -1) {\n if (ptt.indexOf(\"adbp\") != -1) {\n ptt = ptt.split(\":\");\n tt = ptt[1];\n } else {\n ptt = ptt.split(\":\");\n tt = ptt[0];\n }\n } else {\n tt = ptt;\n }\n var abr = {\n \"index\": \"in\",\n \"video\": \"v\",\n \"videos\": \"v\",\n \"blog\": \"b\",\n \"blogs\": \"b\",\n \"game\": \"g\",\n \"games\": \"g\",\n \"interactive\": \"it\",\n \"content\": \"c\",\n \"error\": \"err\",\n \"section\": \"sf\",\n \"section front\": \"sf\",\n \"gallery\": \"ga\",\n \"show\": \"sh\",\n \"shows\": \"sh\",\n \"special\": \"sp\",\n \"specials\": \"sp\",\n \"topic\": \"t\",\n \"profile\": \"p\",\n \"article\": \"c\"\n } [tt];\n if (chnl && (chnl == \"homepage\" || chnl == \"cnn homepage\")) {\n chnl = \"index\";\n }\n if (tt) {\n rval = \"breaking:\" + chnl + \":\" + abr + \":\";\n }\n return rval;\n } catch (e) {}\n },\n getCNNOrientation: function() { //prop56,eVar56 - page orientation\n var rval = \"no value set\";\n try {\n var x = 0;\n if (self.innerHeight) {\n x = self.innerWidth;\n } else if (document.documentElement && document.documentElement.clientHeight) {\n x = document.documentElement.clientWidth;\n } else if (document.body) {\n x = document.body.clientWidth;\n }\n var y = 0;\n if (self.innerHeight) {\n y = self.innerHeight;\n } else if (document.documentElement && document.documentElement.clientHeight) {\n y = document.documentElement.clientHeight;\n } else if (document.body) {\n y = document.body.clientHeight;\n }\n rval = (y > x) ? \"portrait\" : \"landscape\";\n } catch (e) {}\n return rval;\n },\n getCNNMVPD: function() { //prop57,eVar57 - MVPD\n try {\n var mvpd_store = wminst.Util.getCookie(\"CNNmvpd\");\n if (typeof mvpd_store !== \"undefined\" && mvpd_store !== \"nvs\" && mvpd_store !== \"\") {\n if (mvpd_store !== null && typeof CNN.omniture.mvpd === \"string\") {\n document.cookie = \"CNNmvpd=\" + CNN.omniture.mvpd + \"; domain= .cnn.com ;\";\n mvpd_store = wminst.Util.getCookie(\"CNNmvpd\");\n return mvpd_store;\n } else if (typeof mvpd_store === \"string\" && mvpd_store != \"\") {\n if (typeof CNN.omniture.mvpd === \"string\") {\n document.cookie = \"CNNmvpd=\" + CNN.omniture.mvpd + \"; domain= .cnn.com ;\";\n mvpd_store = wminst.Util.getCookie(\"CNNmvpd\");\n return mvpd_store;\n } else {\n \n return mvpd_store;\n }\n } else if (mvpd_store === null && typeof CNN.omniture.mvpd === \"string\") {\n document.cookie = \"CNNmvpd=\" + CNN.omniture.mvpd + \"; domain= .cnn.com ;\";\n mvpd_store = wminst.Util.getCookie(\"CNNmvpd\");\n return mvpd_store;\n } else {\n return \"no mvpd set\";\n }\n } else {\n return \"no mvpd set\";\n }\n } catch (err) {return \"no mvpd set\";}\n },\n getCNNAdobeID: function() { //prop59,eVar59 - Adobe Harsh ID\n try {\n var adobe_hash_id_store = _satellite.cookie.get(\"adobe_hash_id\");\n if (typeof adobe_hash_id_store !== \"undefined\" && adobe_hash_id_store !== \"nvs\" && adobe_hash_id_store !== \"\") {\n if (adobe_hash_id_store !== null && typeof CNN.omniture.adobe_hash_id === \"string\") {\n document.cookie = \"adobe_hash_id=\" + CNN.omniture.adobe_hash_id + \"; domain= .cnn.com;\";\n adobe_hash_id_store = _satellite.cookie.get(\"adobe_hash_id\");\n return adobe_hash_id_store;\n } else {\n return \"no mvpd set\";\n }\n } else {\n return \"no mvpd set\";\n }\n } catch (err) {}\n },\n getCNNPlayerState: function(video) { //eVar67 player State\n var screenState = video.screen_state || \"nvs\";\n var screenPosition = video.screen_position || \"nvs\";\n var audioState = video.audio_state || \"nvs\";\n var playerState = \"\";\n try {\n if (screenState == \"nvs\" && CNN && CNN.omniture && CNN.omniture.screen_state) {\n screenState = CNN.omniture.screen_state;\n }\n if (audioState == \"nvs\") {\n if (video.muted === true) {\n audioState = \"muted\";\n } else if (video.muted === false) {\n audioState = \"audio on\";\n }\n }\n playerState = screenState + \"|\" + audioState + \"|\" + screenPosition;\n playerState = playerState.toLowerCase();\n } catch (e) {}\n return playerState;\n },\n getCNNVisitorID: function(id) { //eVar73 - page visitorId\n var rval = \"\";\n try {\n rval = _satellite.cookie.get(id);\n rval = rval.replace(/\\[(.+?)\\]/g, \"\");\n rval = rval.split(\"|\")[1];\n rval = rval.toLowerCase();\n } catch (err) {}\n return rval;\n },\n getCNNHierachy: function() { // hier1 - Hierachy\n var rval = \"\";\n /* try {\n var bUnit = wminst.Util.getSiteSpecificSettings(1);\n var channel = wminst.Util.getCNNSection(0);\n var domain = wminst.Util.getADBPURL(\"domain\");\n var section2 = wminst.Util.getCNNSection(1);\n rval = \"news|cnn|\" + bUnit + \"|\" + domain + \"|\" + channel + \"|\" + section2; \n } catch(e){} */\n return rval;\n },\n getCNNUserAuthState: function() { //prop75,eVar75 - User Authentication State\n try {\n var user_auth_state_store = localStorage.getItem(\"user_auth_state\");\n if (user_auth_state_store !== null && typeof window.CNN.omniture.user_auth_state === \"string\") {\n localStorage.setItem(\"user_auth_state\",window.CNN.omniture.user_auth_state);\n user_auth_state_store = localStorage.getItem(\"user_auth_state\");\n return user_auth_state_store;\n } else if (typeof user_auth_state_store === \"string\") {\n if (typeof window.CNN.omniture.user_auth_state === \"string\") {\n \n localStorage.setItem(\"user_auth_state\",window.CNN.omniture.user_auth_state);\n user_auth_state_store = localStorage.getItem(\"user_auth_state\");\n return user_auth_state_store;\n } else {\n \n return user_auth_state_store;\n }\n } else if (user_auth_state_store === null && typeof window.CNN.omniture.user_auth_state === \"string\") {\n localStorage.setItem(\"user_auth_state\",window.CNN.omniture.user_auth_state);\n user_auth_state_store = localStorage.getItem(\"user_auth_state\");\n return user_auth_state_store;\n } else {\n return \"nvs\";\n }\n } catch (err) {return \"\";}\n },\n getCNNUIEngagement: function() { //prop64 - UI Engagement\n var rval = (this.isNGTVPage() || this.isTVEPage()) ? \"ngtv\" : \"cnn news\";\n try { \n if(typeof window.cnn_metadata.friendly_name != 'undefined') {\n rval = window.cnn_metadata.friendly_name;\n }\n } catch(e) {}\n return rval;\n },\n getCNNTopicAvailability: function() {\n var topic_pattern = new RegExp(/^[0-9a-z,]+$/);\n try {\n var rval = wminst.Util.getCNNTopic();\n if(rval == \"\"){\n return \"no topics\";\n } else if(topic_pattern.test(rval)) {\n return \"topics available\";\n } else { \n return \"api request failure\";\n }\n } catch(e) {}\n },\n getCNNTopic: function() {\n var rval = \"\";\n var cap_array = [];\n try {\n if(CNN && CNN.cep_topics && CNN.cep_topics.cep_brsf && CNN.cep_topics.cep_iabt && CNN.cep_topics.cep_sent && CNN.cep_topics.cep_tags) {\n cap_array = cap_array.concat(CNN.cep_topics.cep_brsf, CNN.cep_topics.cep_iabt, CNN.cep_topics.cep_sent, CNN.cep_topics.cep_tags);\n rval = cap_array.toString();\n } else {\n rval = window.CNN.omniture.cap_topic;\n }\n if(typeof rval == \"undefined\" || rval === \"no-value-set\" || rval == \"\" ) {rval = \"\";}\n } catch(e) {}\n return rval.toLowerCase();\n },\n getCEPTopisForVideo: function(data) {\n var rval = \"\";\n try {\n if(typeof data.cepTopics == \"object\") {\n rval = Object.keys(data.cepTopics).toString();\n }\n rval = rval.toLowerCase();\n } catch (e) {}\n return rval;\n },\n \tgetCNNSiteSectionLevel3: function(val) { //prop51 - Site section level 3 for politics\n\t\t\tvar rval = \"\";\n\t\t\ttry {\n\t\t\t\trval = wminst.Util.getCNNSection(1);\n\t\t\t\tif(typeof val != 'undefined') {\n\t\t\t\t\trval += \":\" + val;\n\t\t\t\t} else if(CNN && CNN.omniture && CNN.omniture.section && typeof CNN.omniture.section[2] != 'undefined') {\n\t\t\t\t\trval += \":\" + CNN.omniture.section[2];\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t\treturn rval;\n\t\t},\n getCNNInteractiveState: function(data) { //eVar50 - Interactive State for politics\n var rval = \"\";\n if(typeof data == 'undefined' && window.location.hash === \"#my_election\") {\n rval = \"election center:my election:panel open\";\n return rval;\n }\n if (typeof data == \"object\" && (typeof data.tab != 'undefined' || typeof data.map_state != 'undefined' || typeof data.map_level != 'undefined')) {\n var tab = data.tab || \"nvs\";\n var map_state = data.map_state || \"nvs\";\n if(!wminst.Util.isPoliticsExplorer()) {\n if (typeof data.action != 'undefined') {\n var map_level = data.map_level || \"nvs\";\n var race_type = data.race_type || \"nvs\";\n var overlay_type = data.overlay_type || \"nvs\";\n var show_by = data.show_by || \"nvs\";\n rval = \"ec:\" + race_type + \":\" + map_level + \":\" + overlay_type + \":\" + show_by;\n }\n else\n rval = \"election center:\" + tab + \":\" + map_state;\n } else {\n var year = data.year || \"nvs\";\n var comparison_layer = data.comparison_layer || \"nvs\";\n var e_val = data.election || \"nvs\";\n rval = tab + \":\" + year + \":\" + e_val + \":\" + comparison_layer + \":\" + map_state;\n }\n rval = rval.toLowerCase();\n }\n return rval\n },\n getSiteSpecificSettings: function(type, section) {\n var hostName = window.location.hostname;\n var port = window.location.port;\n var setting;\n var sites = {\n \"cnn\": [\"cnn-adbp-domestic\", \"cnn domestic\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00001\", \"8587204\"],\n \"cnndev\": [\"cnn-adbp-domestic-dev\", \"cnn domestic\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00001\", \"8587204\"],\n \"cnnintl\": [\"cnn-adbp-intl\", \"cnn international\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00002\", \"8587278\"],\n \"cnnintldev\": [\"cnn-adbp-intl-dev\", \"cnn international\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00002\", \"8587278\"],\n \"ireport\": [\"cnnireport-adbp\", \"cnn ireport\", \"cnnireport\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-702210\", \"c01\", \"00001\", \"3002212\"],\n \"ireportdev\": [\"cnnireport-adbp-dev\", \"cnn ireport\", \"cnnireport\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-702210\", \"c01\", \"00001\", \"3002212\"]\n }\n\n var c4 = {\n val1: [\"cnn homepage\", \"8587211\", \"8587278\"],\n val2: [\"crime\", \"8587220\"],\n val3: [\"us\", \"8587228\"],\n val4: [\"world\", \"8587235\"],\n val5: [\"entertainment\", \"8587242\"],\n val6: [\"politics\", \"8587248\"],\n val7: [\"health\", \"8587254\"],\n val8: [\"tech\", \"8587261\"],\n val9: [\"living\", \"8587266\"],\n val10: [\"opinion\", \"8587272\"],\n val11: [\"watch cnn\", \"8587204\"]\n }\n\n if (section && section != \"\") {\n var x = 0;\n for (x in c4) {\n if (c4[x][0] == section) {\n setting = c4[x][1];\n if (section == \"cnn homepage\") {\n if (hostName.indexOf(\"edition.cnn.com\") != -1) {\n setting = c4[x][2];\n } else if (hostName.indexOf(\"jcmsdev8.cnn.com\") != -1 || hostName.indexOf(\"jcmsref.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.cnn.com\") != -1 || hostName.indexOf(\"ref.cnn.com\") != -1 || hostName.indexOf(\"preview.cnn.com\") != -1) {\n if (port.indexOf(\"94\") != -1 || hostName.indexOf(\"edition\") != -1) {\n setting = c4[x][2];\n }\n }\n }\n break;\n }\n }\n } else {\n if (hostName.indexOf(\"ireportqa.cnn.com\") != -1) {\n setting = sites.ireportdev[type];\n } else if (hostName.indexOf(\"jcmsdev8.cnn.com\") != -1 || hostName.indexOf(\"jcmsref.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.cnn.com\") != -1 || hostName.indexOf(\"ref.cnn.com\") != -1 || hostName.indexOf(\"preview.cnn.com\") != -1 || hostName.indexOf(\"dev.cnn.com\") != -1 || hostName.indexOf(\"stage.cnngo.com\") != -1 || hostName.indexOf(\"travel.cnngo.com\") != -1 || hostName.indexOf(\"edition.stage.next.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.turner.com\") != -1 || hostName.indexOf(\"dev.cnnv2.com\") != -1 || hostName.indexOf(\"ref.cnnv2.com\") != -1 || hostName.match(/^(dev|qa|stage).(www|us|edition)-m.cnn.com/) || hostName.indexOf(\"edition.enable.next.cnn.com\") != -1 || hostName.indexOf(\"terra.next.cnn.com\") != -1 || hostName.indexOf(\"politics.next.cnn.com\") !== -1 || hostName.indexOf(\"edition.politics.next.cnn.com\") !== -1) {\n if (port.indexOf(\"94\") != -1 || hostName.indexOf(\"edition\") != -1 || hostName.indexOf(\"cnnespanol\") != -1 || hostName.indexOf(\"stage.cnngo.com\") != -1 || hostName.indexOf(\"travel.cnngo.com\") != -1) {\n setting = sites.cnnintldev[type];\n } else {\n setting = sites.cnndev[type];\n }\n } else if (hostName.indexOf(\"qai.cnn.com\") != -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"cnn.staging.perfectmarket.com\") != -1 || hostName.indexOf(\"cnn.staging2.perfectmarket.com\") != -1 || hostName.indexOf(\"beta-cronkite.cnnlabs.com\") != -1 || hostName.indexOf(\"dev-audioplayer-cnn.s3.amazonaws.com\") != -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"darwin-dev.hope.ui\") != -1 || hostName.indexOf(\"dev-facts-first.cnnlabs.com\")!= -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"int-facts-first.cnnlabs.com\") != -1) {\n setting = sites.cnnintldev[type];\n } else if (hostName.indexOf(\"ireport.cnn.com\") != -1) {\n setting = sites.ireport[type];\n } else if (hostName.indexOf(\"edition.cnn.com\") != -1 || hostName.indexOf(\"cnnespanol.cnn.com\") != -1 || hostName.indexOf(\"backstory.blogs.cnn.com\") != -1 || hostName.indexOf(\"inthefield.blogs.cnn.com\") != -1 || hostName.indexOf(\"securityfiles.blogs.cnn.com\") != -1 || hostName.indexOf(\"thecnnfreedomproject.blogs.cnn.com\") != -1 || hostName.indexOf(\"ukelection.blogs.cnn.com\") != -1 || hostName.indexOf(\"amanpour.blogs.cnn.com\") != -1 || hostName.indexOf(\"screeningroom.blogs.cnn.com\") != -1 || hostName.indexOf(\"internationaldesk.blogs.cnn.com\") != -1 || hostName.indexOf(\"newsstream.blogs.cnn.com\") != -1 || hostName.indexOf(\"prism.blogs.cnn.com\") != -1 || hostName.indexOf(\"thebrief.blogs.cnn.com\") != -1 || hostName.indexOf(\"insidethemiddleeast.blogs.cnn.com\") != -1 || hostName.indexOf(\"connecttheworld.blogs.cnn.com\") != -1 || hostName.indexOf(\"business.blogs.cnn.com\") != -1 || hostName.indexOf(\"questmeansbusiness.blogs.cnn.com\") != -1 || hostName.indexOf(\"goalmouth.blogs.cnn.com\") != -1 || hostName.indexOf(\"olympics.blogs.cnn.com\") != -1 || hostName.indexOf(\"worldsport.blogs.cnn.com\") != -1 || hostName.indexOf(\"bodareal.blogs.cnn.com\") != -1 || hostName.indexOf(\"travel.cnn.com\") != -1 || hostName.indexOf(\"footballclub.cnn.com\") != -1 || hostName.indexOf(\"edition.cnnv2.com\") != -1 || hostName.indexOf(\"edition-m.cnn.com\") != -1) {\n setting = sites.cnnintl[type];\n } else if (hostName.indexOf(\"cnn.com\") != -1 || hostName.indexOf(\"cnnv2.com\") != -1) {\n setting = sites.cnn[type];\n } else if (hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1) {\n setting = sites.cnn[type];\n } else if (hostName.indexOf(\"style.staging.cnn.io\") != -1) {\n setting = sites.cnndev[type];\n } else {\n //default, if any case failed\n setting = sites.cnn[type];\n }\n }\n try {\n if (window.CNNIntlVideo) {\n setting = sites.cnnintl[type];\n }\n } catch (e) {}\n return setting;\n },\n getJObj: function(objectRef, attribute) {\n objectRef = (typeof objectRef == \"string\" ? window[objectRef] : objectRef);\n var rval = (objectRef != null && attribute != null && attribute.indexOf(\".\") == -1 && attribute.indexOf(\"[\") == -1 ? objectRef[attribute] : objectRef);\n if (rval === objectRef && (typeof attribute !== 'undefined' || attribute != null)) {\n var attribs = attribute.split(\".\"),\n len = attribs.length,\n reArray = /([^\\[]+)\\[(\\d+)\\]/,\n t, t2;\n rval = objectRef;\n for (var i = 0; i < len; i++) {\n t = attribs[i];\n if ((t2 = reArray.exec(t)) != null) {\n rval = rval[t2[1]][parseInt(t2[2])];\n } else rval = rval[t];\n }\n }\n return rval;\n },\n getADBPContentType: function(defaultVal) {\n var tt = wminst.Util.getCNNTemplateType(\"long\") || \"\";\n var ct = wminst.Util.getCNNContentType() | \"\";\n var rObj = {};\n var l = {\n \"adbp:blog\": [\"event38\", \"adbp:blog read\"],\n \"adbp:content\": [\"event39\", \"adbp:article read\"]\n } [tt];\n var m = {\n \"adbp:article read\": \"event39\"\n } [ct];\n if (m != null) {\n rObj.events = m;\n rObj.content_type = ct;\n return rObj;\n }\n if (!l) {\n rObj.events = \"\";\n rObj.ct = defaultVal;\n return rObj;\n }\n rObj.events = l[0];\n rObj.ct = l[1];\n return rObj;\n },\n getADBPURL: function(type, lvl) {\n var hostname = window.location.hostname.toLowerCase();\n var pathname = window.location.pathname.toLowerCase();\n var path_array = \"\";\n pathname = pathname.replace(/([^\\/]+\\.[^\\/]+$)/, \"\");\n\n var rval;\n switch (type) {\n case \"domain\":\n hostname = hostname.replace(\"www.\", \"\");\n if (lvl == parseFloat(lvl)) {\n var domain_array = hostname.split(\".\");\n var currentPointer = domain_array.length - lvl;\n var currentDomainLevel = (currentPointer >= 0 ? domain_array[currentPointer] : \"\");\n rval = currentDomainLevel;\n } else {\n rval = hostname;\n }\n break;\n case \"path\":\n var pathname2 = pathname.substring(1);\n path_array = pathname2.split(\"/\");\n if (lvl == parseFloat(lvl) && lvl >= 1) {\n var currentPathname = (path_array.length >= lvl ? path_array[lvl - 1] : \"\");\n rval = currentPathname;\n } else {\n rval = pathname;\n }\n break;\n case \"hier\":\n hostname = hostname.replace(\"www.\", \"\");\n path_array = pathname.substring(1).split(\"/\");\n var h1 = hostname + \"/\" + path_array[0];\n var h2 = h1;\n if (path_array[1]) h2 = h2 + \"/\" + path_array[1];\n rval = [h1, h2];\n break;\n default:\n rval = hostname + pathname;\n }\n return rval;\n },\n getADBPPageName: function(pathname, delimiter) {\n var s_pageName = \"\",\n templateTypeSmall = \"\";\n if (!delimiter) delimiter = \":\";\n var ttbefore = wminst.Util.getCNNTemplateType(\"long\");\n if (ttbefore) { //default to \"other\" if template type is not defined\n ttbefore = ttbefore.replace(/adbp./, \"\");\n templateTypeSmall = wminst.Util.getADBPTranslateTemplateType(ttbefore, \"short\");\n } else {\n templateTypeSmall = \"o\";\n }\n var buc_p32 = wminst.Util.getCNNBusinessName() + delimiter + templateTypeSmall;\n var thirdLevelDomain = wminst.Util.getADBPURL(\"domain\", 3);\n var fullDomain = wminst.Util.getADBPURL(\"domain\");\n var lastTwoDomain = /(\\.\\w+\\.\\w+)$/.exec(fullDomain);\n if (lastTwoDomain) thirdLevelDomain = fullDomain.replace(lastTwoDomain[0], \"\");\n if (!pathname) {\n var p = window.location.pathname.toLowerCase();\n var a = p.split('/');\n var l = a.length;\n var r = /^index./;\n pathname = (r.test(a[(l - 1)])) ? p.replace(/([^\\/]+\\.[^\\/]+$)/, \"\") : p;\n r = /([^\\/]+\\.[^\\/]+$)/;\n if (!r.test(pathname)) {\n l = pathname.length;\n if (pathname.charAt(l - 1) !== \"/\") {\n pathname = pathname + \"/\";\n }\n }\n }\n var pageNameLen, r_len;\n if (thirdLevelDomain == \"\") {\n pageNameLen = buc_p32.length + 1 + pathname.length;\n if (pageNameLen <= 100) {\n s_pageName = buc_p32 + delimiter + pathname;\n } else {\n r_len = pageNameLen - 100;\n s_pageName = buc_p32 + delimiter + pathname.substring(r_len);\n }\n } else {\n pageNameLen = buc_p32.length + 1 + thirdLevelDomain.length + 1 + pathname.length;\n if (pageNameLen <= 100) {\n s_pageName = buc_p32 + delimiter + thirdLevelDomain + delimiter + pathname;\n } else {\n if (thirdLevelDomain.length <= 5) {\n r_len = pageNameLen - 100;\n s_pageName = buc_p32 + delimiter + thirdLevelDomain + delimiter + pathname.substring(r_len);\n } else {\n thirdLevelDomain = thirdLevelDomain.substring(0, 5);\n pageNameLen = buc_p32.length + 1 + thirdLevelDomain.length + 1 + pathname.length;\n if (pageNameLen <= 100) {\n s_pageName = buc_p32 + delimiter + thirdLevelDomain + delimiter + pathname;\n } else {\n r_len = pageNameLen - 100;\n s_pageName = buc_p32 + delimiter + thirdLevelDomain + delimiter + pathname.substring(r_len);\n }\n }\n }\n }\n return s_pageName;\n },\n getCNNVideoSequence : function()\n {\n return \"1\"; \n },\n getCNNVertical : function()\n {\n var rval = \"\";\n try {\n if (window.CNN.contentModel.vertical && window.CNN.contentModel.vertical !== \"\") {\n rval = window.CNN.contentModel.vertical;\n }\n } catch(e){}\n return rval; \n },\n getADBPTranslateTemplateType: function(templateTypeCode, lookupType) {\n var adbpprefix = \"adbp:\",\n rval = [\"o\", \"other\"];\n var lookup = {\n b: \"blog\",\n g: \"game\",\n it: \"interactive\",\n c: \"content\",\n \"in\": \"index\",\n err: \"error\",\n e: \"ecom\",\n s: \"signup\",\n v: \"video\",\n sf: \"section front\",\n o: \"other\"\n },\n lookupRev = {\n \"blog\": \"b\",\n \"game\": \"g\",\n \"interactive\": \"it\",\n \"content\": \"c\",\n \"index\": \"in\",\n \"error\": \"err\",\n \"ecom\": \"e\",\n \"signup\": \"s\",\n \"video\": \"v\",\n \"section front\": \"sf\",\n \"other\": \"o\"\n };\n if (lookup[templateTypeCode] != null) {\n rval = [templateTypeCode, lookup[templateTypeCode]];\n }\n if (lookupRev[templateTypeCode] != null) {\n rval = [lookupRev[templateTypeCode], templateTypeCode];\n }\n rval[1] = adbpprefix + rval[1];\n if (lookupType == \"short\") {\n rval = rval[0];\n }\n if (lookupType == \"long\") {\n rval = rval[1];\n }\n return rval;\n },\n gCNNUserAuthState: function() {\n var userAuthObj = { \n user_login_status:\"\",\n user_account_status: \"\",\n user_registered_status: \"\"};\n try {\n var userLoginState = _satellite.cookie.get(\"_cnn_at\") || _satellite.cookie.get(\"_cnn_at_edition\");// ===> User Logged In\n if (userLoginState && userLoginState !== \"\") {\n userAuthObj.user_login_status = \"logged in\";\n userAuthObj.user_registered_status = \"registered\";\n var userAuthState = window.CNN.Utils.b64Decode(userLoginState);\n if(userAuthState && userAuthState.indexOf(\"cnn.authn\") > -1) { \n userAuthObj.user_account_status = \"account verified\";\n } else { \n userAuthObj.user_account_status = \"account not verified\";\n }\n } else {\n userAuthObj.user_registered_status = \"anonymous\";\n userAuthObj.user_login_status = \"not logged in\";\n userAuthObj.user_account_status = \"account not verified\";\n }\n \n \n } catch(e){}\n return userAuthObj;\n },\n getUserRegisteredStatus: function(){ //prop51,eVar51\n var rval = \"\";\n try {\n rval = wminst.Util.gCNNUserAuthState();\n return rval.user_registered_status;\n }catch(e){}\n return rval;\n },\n getUserAccountStatus: function(){ //prop74,eVar74\n var rval = \"\";\n try {\n rval = wminst.Util.gCNNUserAuthState();\n return rval.user_account_status;\n }catch(e){}\n return rval;\n },\n getUserLoginStatus: function(){ //eVar89\n var rval = \"\";\n try {\n rval = wminst.Util.gCNNUserAuthState();\n return rval.user_login_status;\n }catch(e){}\n return rval;\n },\n getCNNSavedRaces: function() {\n\t\t var rval = \"\";\n\t\t\tif(typeof CNN != 'undefined' && typeof CNN.saved_races == \"number\") {\n\t\t\t\trval = \"election center:save races:\" + CNN.saved_races;\n\t\t\t} else {\n\t\t\t\tif(wminst.Util.getCNNCapContentType()) {\n\t\t\t\t\trval = \"D=c13\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rval;\n\t\t},\n getCNNExploreIndentify: function(data) { //eVar79 for Politics Explorer\n\t\t\tvar rval = \"cnn login not required\";\n\t\t\tif((data.interaction_type == \"year race\" && data.racePremiumContent) || (data.interaction_type == \"add layer\" && data.overlayPremiumContent)) {\n\t\t\t\trval = \"cnn login required\";\n\t\t\t}\n\t\t\treturn rval;\n\t\t}\n }\n}();\nwminst.Util.loadCustomVariables();\n\n});", "_satellite[\"_runScript1\"](function(event, target, Promise) {\nwindow.wminst = window.wminst || {};\nwminst.Util = function() {\n return {\n loadCustomVariables: function() {\n this.tmsName = \"launch\";\n this.businessName = \"cnn\";\n this.buildVersion = 77; // Build Update Oct 1, 2024\n this.buildEnv = this.getBuildEnv();\n this.buildDate = this.getBuildDate();\n this.debugFlag = \"WMINST_DEBUG\";\n this.logPrefix = \"[WMINST]\";\n window.is_expansion = true;\n wminst.subscribersReady = false;\n wminst.hpt_set = 0;\n wminst.buffer_count = 0;\n wminst.is_podcast = 0;\n wminst.is_scrubbed = false;\n if (window.cnn_metadata) {\n window.is_expansion = false;\n }\n },\n getBuildEnv: function() {\n return {\n \"development\": \"dev\",\n \"staging\": \"qa\",\n \"production\": \"prod\"\n }[_satellite.environment.stage];\n },\n getBuildDate: function() {\n return _satellite.buildInfo.buildDate.split(\"T\")[0].replace(/-/g, \"\");\n },\n getCodeVersion: function() {\n return [this.tmsName, this.businessName, this.buildEnv, this.buildVersion, this.buildDate].join(\".\");\n },\n setDebug: function(flag) {\n if (flag == true) {\n sessionStorage.setItem(this.debugFlag, true);\n } else {\n sessionStorage.removeItem(this.debugFlag);\n }\n },\n log: function() {\n var logEnabled = sessionStorage.getItem(this.debugFlag);\n if (logEnabled) {\n var args = Array.prototype.slice.call(arguments);\n args.unshift(this.logPrefix);\n console.log.apply(console, args);\n }\n },\n wait: function(ms) {\n const start = Date.now();\n let now = start;\n while (now - start < ms) {\n now = Date.now();\n }\n },\n getTagConsentStatesV1: function(name) {\n return {\n \"adobe\" : [\"perf-general\"],\n \"comscore\" : [\"perf-vendor\"],\n \"nielsen\" : [\"perf-vendor\"],\n \"facebook-pixel\" : [\"perf-vendor\", \"social-vendor\"],\n \"zion\" : [\"perf-general\", \"person-general\"],\n \"app-nexus-id\" : [\"ads-vendor\"],\n \"trackonomics\" : [\"ads-general\", \"ads-vendor\", \"behavior-general\", \"perf-general\", \"person-general\", \"social-general\", \"storage-general\"],\n \"skimlinks\" : [\"ads-vendor\"],\n \"quantcast\" : [\"ads-vendor\"],\n \"amazon\" : [\"ads-vendor\"],\n \"wunderkind\" : [\"iab\", \"behavior-vendor\", \"person-vendor\", \"storage-vendor\"],\n \"chartbeat\" : [\"perf-general\"],\n \"keywee\" : [\"ads-vendor\", \"behavior-vendor\", \"storage-vendor\", \"perf-vendor\"],\n \"krux\" : [\"ads-vendor\"],\n \"stack-sonar\" : [\"ads-general\"],\n \"optimizely\" : [\"behavior-general\", \"perf-general\", \"person-general\"],\n \"bombora\" : [\"iab\"]\n }[name];\n },\n getTagConsentStatesV2: function(name) {\n return {\n \"adobe\" : [\"data-store\", \"content-person-prof\", \"content-person\", \"measure-content\", \"measure-market\", \"product-develop\"],\n \"comscore\" : [\"vendor\", \"measure-content\"],\n \"nielsen\" : [\"vendor\", \"measure-content\", \"data-store\"],\n \"facebook-pixel\" : [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"vendor\"],\n \"zion\" : [\"data-store\", \"ads-person-prof\", \"ads-person\", \"content-person-prof\", \"content-person\", \"measure-content\"],\n \"app-nexus-id\" : [\"vendor\"],\n \"trackonomics\" : [\"data-store\", \"measure-ads\", \"vendor\"],\n \"hyphensocial\" : [\"data-store\", \"measure-ads\", \"vendor\"],\n \"skimlinks\" : [\"data-store\", \"measure-content\", \"vendor\"],\n \"amazon\" : [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"vendor\"],\n \"quantcast\" : [\"iab\", \"data-share\", \"data-sell\", \"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"measure-content\", \"measure-market\", \"product-develop\"],\n \"wunderkind\" : [\"iab\", \"data-share\", \"data-sell\", \"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\", \"measure-ads\", \"measure-market\", \"product-develop\"],\n \"chartbeat\" : [\"data-store\", \"measure-content\"],\n \"keywee\" : [\"data-store\", \"ads-person-prof\", \"ads-person\", \"measure-ads\", \"measure-market\", \"vendor\"],\n \"krux\" : [\"data-store\", \"ads-person-prof\", \"ads-person\", \"measure-ads\", \"measure-content\", \"measure-market\"],\n \"stack-sonar\" : [\"data-store\", \"ads-contextual\", \"ads-person-prof\", \"ads-person\"],\n \"optimizely\" : [\"data-store\", \"content-person-prof\", \"content-person\", \"measure-ads\", \"measure-content\", \"vendor\"],\n \"bombora\" : [\"vendor\", \"data-store\", \"ads-person-prof\", \"measure-ads\", \"measure-content\", \"product-develop\"],\n \"outbrain-pixel\" : [\"ads-person-prof\", \"ads-person\", \"measure-ads\"],\n \"full-story\" : [\"measure-content\", \"product-develop\"],\n \"iSpot-pixel\" : [\"data-store\", \"measure-ads\", \"measure-content\", \"measure-market\", \"vendor\"]\n }[name];\n },\n getTagConsentStates: function(name) {\n if (window.WM && WM.UserConsent && WM.UserConsent.getVersion().indexOf(\"1\") === 0) {\n return this.getTagConsentStatesV1(name);\n }\n return this.getTagConsentStatesV2(name);\n },\n getCountryCode: function() {\n return this.getCookie(\"countryCode\") || window.WM?.UserConsent?.getGeoCountry();\n },\n isUSRegion: function() {\n return this.getCountryCode() === \"US\";\n },\n isEMEARegion: function() {\n const EMEA_COUNTRIES = [\"AF\",\"AX\",\"AL\",\"DZ\",\"AD\",\"AO\",\"AM\",\"AT\",\"AZ\",\"BH\",\"BE\",\"BJ\",\"BA\",\"BW\",\"BV\",\"BG\",\"BF\",\"BI\",\"CM\",\"CV\",\"CF\",\"TD\",\"KM\",\"CD\",\"CG\",\"CI\",\"HR\",\"CY\",\"CZ\",\"DK\",\"DJ\",\"EG\",\"GQ\",\"ER\",\"EE\",\"ET\",\"FK\",\"FO\",\"FI\",\"FR\",\"GA\",\"GM\",\"GE\",\"DE\",\"GH\",\"GI\",\"GR\",\"GL\",\"GG\",\"GN\",\"GW\",\"VA\",\"HU\",\"IS\",\"IQ\",\"IE\",\"IM\",\"IL\",\"IT\",\"JE\",\"JO\",\"KZ\",\"KE\",\"KW\",\"LV\",\"LB\",\"LS\",\"LR\",\"LY\",\"LI\",\"LT\",\"LU\",\"MK\",\"MG\",\"MW\",\"ML\",\"MT\",\"MR\",\"MU\",\"YT\",\"MD\",\"MC\",\"ME\",\"MA\",\"MZ\",\"NA\",\"NL\",\"NE\",\"NG\",\"NO\",\"OM\",\"PS\",\"PL\",\"PT\",\"QA\",\"RE\",\"RO\",\"RW\",\"SH\",\"SM\",\"ST\",\"SA\",\"SN\",\"RS\",\"SC\",\"SL\",\"SK\",\"SI\",\"SO\",\"ZA\",\"GS\",\"SS\",\"ES\",\"SD\",\"SJ\",\"SZ\",\"SE\",\"CH\",\"SY\",\"TZ\",\"TG\",\"TN\",\"TR\",\"UG\",\"UA\",\"AE\",\"GB\",\"EH\",\"YE\",\"ZM\",\"ZW\"];\n return EMEA_COUNTRIES.includes(this.getCountryCode());\n },\n usePrismGeoCheck: function() {\n return !this.getCookie(\"countryCode\") && this.isCNNStorePage();\n },\n isTagConsented: function(name) {\n // Special handling for AppNexus ID, and Quantcast\n if (name == \"app-nexus-id\" && !this.isUSRegion()) {\n return false;\n }\n if (name == \"quantcast\" && this.isUSRegion()) {\n return false;\n } \n var states = this.getTagConsentStates(name);\n if (window.WM && WM.UserConsent) {\n if (WM.UserConsent.isReady() && WM.UserConsent.inUserConsentState(states, {id: name})) {\n return true;\n }\n } else {\n return true;\n }\n return false;\n },\n isPrismEnabled: function() {\n if (window.WM && window.WM.CDP && typeof window.WM.CDP.isIdentityEnabled === \"function\") {\n return window.WM.CDP.isIdentityEnabled();\n }\n return false;\n }, \n inIFrame: function() {\n try {\n return window.self !== window.top;\n } catch (e) {\n return true;\n }\n },\n isPrismAllowed: function() {\n return !this.inIFrame() && (this.isUSRegion() || this.usePrismGeoCheck());\n },\n getQueryParam: function(key, loc) {\n if (!this.params || loc) {\n var search = loc || window.location.search;\n var params = search.replace(/^\\?/, \"\"), paramObj = {};\n params = params.split(\"&\");\n for (var i = 0; i < params.length; i++) {\n var t = params[i].split(\"=\");\n paramObj[t[0]] = t[1]\n }\n if (!loc) {\n this.params = paramObj;\n } else {\n return paramObj[key] || \"\";\n }\n }\n return this.params[key] || \"\";\n },\n getDataLayerV0: function() {\n return (((window.cnn_metadata || {}).business || {}).cnn || {}).page || {};\n },\n getDataLayerV1: function() {\n return (window.CNN || {}).omniture || {};\n },\n getDataLayerV2: function() {\n return (window.CNN || {}).contentModel || {};\n },\n getDataLayerV3: function() {\n return window.CNN?.metadata?.content || {};\n },\n getSectionValue: function(i) {\n return (this.getDataLayerV1().section || {})[i];\n },\n getDL2PageTop: function(i) {\n return (this.getDataLayerV2().analytics || {}).pageTop || {};\n },\n getDL2Prop: function(key) {\n return this.getDataLayerV2()[key] || \"\";\n },\n commentsEnabled: function() {\n var flag = this.getDataLayerV2().commentsEnabled;\n return flag === \"true\" || flag === true;\n },\n adsSuppressed: function() {\n return window.CNN?.ads?.showAds === false;\n },\n getPartnerName: function() {\n var dataLayer = this.getDataLayerV3();\n return (dataLayer.partner?.name || \"\").toLowerCase();\n },\n isSearchPage: function() {\n return window.location.pathname.indexOf(\"/search\") === 0;\n },\n isRefreshPage: function() {\n return wminst.Util.getQueryParam(\"refresh\");\n },\n isHomepage: function() {\n var dataLayer = this.getDataLayerV2();\n return (dataLayer.sectionName || dataLayer.section) === \"homepage\";\n },\n isTVEPage: function() {\n var dataLayer = this.getDataLayerV2();\n return dataLayer.pageType === \"tve\" || dataLayer.section === \"tv\";\n },\n isNGTVPage: function() {\n var dataLayer = this.getDataLayerV1();\n return (dataLayer.friendly_name || \"\").toLowerCase() === \"ngtv\";\n },\n isStellarPage: function() {\n return this.getCNNTechStack() === \"stellar2.0\";\n },\n isUnderscoredPage: function() {\n return this.getSectionValue(0) === \"cnn-underscored\";\n },\n isStylePage: function() {\n return this.getSectionValue(0) === \"style\";\n },\n isTravelPage: function() {\n return this.getSectionValue(0) === \"travel\";\n },\n isFactsFirstPage: function() {\n return this.getSectionValue(1) === \"facts first\";\n },\n isOnboardingPage: function() {\n return this.getSectionValue(1) === \"onboarding\";\n },\n isSponsoredArticlePage: function() {\n return this.getCNNTemplateType() === \"article_sponsor\";\n },\n isElectionDynamicPage: function() {\n return window.location.pathname.match(/\\/election\\//) !== null && window.location.pathname.match(/20(17|18|19)/) !== null;\n },\n isSignupPage: function() {\n return window.location.pathname.match(/\\/signup\\/?$/) !== null;\n },\n isUserAccountPage: function() {\n return (this.getDataLayerV2().pageType || \"\") === \"user-management\";\n },\n isNewsletterHub: function() {\n return (this.getDataLayerV2().section || \"\").includes(\"newsletter\");\n },\n isUnderscoredZionPage: function() {\n return window.location.pathname.match(/\\/(pets\\/editors-favorite-pet-products|home\\/women-owned-businesses|fashion\\/best-spring-dresses|reviews\\/best-linen-sheets|reviews\\/best-pillows)\\/?$/) !== null;\n },\n isLiveStoryPage: function() {\n return window.location.pathname.indexOf(\"live-news\") !== -1;\n },\n isLiveStoryStellarPage: function() {\n return this.isLiveStoryPage() && this.isStellarPage();\n }, \n isLiveStoryNonStellarPage: function() {\n return this.isLiveStoryPage() && !this.isStellarPage();\n },\n isGamesPage: function() {\n return window.location.pathname.includes(\"games\");\n },\n isCNNPlusPage: function() {\n return window.location.hostname.indexOf(\"plus\") !== -1;\n },\n isCNNStorePage: function() {\n return window.location.hostname.indexOf(\"store\") !== -1;\n },\n isCNNIntlPage: function() {\n return window.location.hostname.indexOf(\"edition\") !== -1;\n },\n isSpeedyPage: function() {\n return window.location.hostname.indexOf(\"-m.cnn.com\") !== -1;\n },\n isDynamicPage: function() {\n return this.isSearchPage() || this.isRefreshPage() || this.isElectionDynamicPage() || this.isLiveStoryNonStellarPage() || this.isSpeedyPage() || this.isOnboardingPage();\n },\n isLightweightPage: function() {\n return this.isUserAccountPage() || this.isNewsletterHub();\n },\n isFavePage: function() {\n var hostName = window.location.hostname; \n return hostName.indexOf(\"fave.api.cnn.io\") !== -1 || hostName.indexOf(\"fave-api.cnn.com\") !== -1;\n },\n isPoliticsExplorer: function() {\n var dataLayer = this.getDataLayerV1();\n return dataLayer.is_explorer === true || dataLayer.is_explorer === \"true\";\n },\n isFBIAPage: function () {\n var dataLayer = this.getDataLayerV1();\n return dataLayer.fbia === true || dataLayer.fbia === \"true\";\n },\n isLiveStoryTemplateType: function() {\n var dataLayer = this.getDataLayerV1();\n return dataLayer.template_type == \"live story\" || dataLayer.template_type === \"article_livestory\";\n },\n isEmpty: function(obj) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key))\n return false;\n }\n return true;\n },\n reverse: function(obj) {\n const ret = {};\n Object.keys(obj).forEach(key => {\n ret[obj[key]] = key;\n });\n return ret;\n },\n isHexString: function(str) {\n const regexExp = /^[A-Fa-f0-9]+$/;\n return regexExp.test(str);\n },\n sendImagePixel: function(url) {\n var image = new Image();\n image.src = url;\n image.style.display = \"none\";\n image.width = 1;\n image.height = 1;\n },\n loadScript: function(src, callback) {\n var e = document.createElement('script');\n e.type = 'text/javascript';\n e.async = true;\n e.src = src;\n if (callback) {\n e.addEventListener('load', callback);\n }\n var n = document.getElementsByTagName('script')[0];\n n.parentNode.insertBefore(e, n);\n },\n getCookie: function(name, flag) {\n var r = _satellite.cookie.get(name)|| \"\";\n if (flag === 'c' || flag === 1) {\n _satellite.cookie.set(name, \"-\", -1000);\n }\n return unescape(r);\n },\n setCookie: function(name, value) {\n _satellite.cookie.set(name, value, { domain: \".cnn.com\" });\n },\n removeCookie: function(name) {\n // if cookie is not removed on first attempt, try again with a different method\n _satellite.cookie.remove(name);\n if (_satellite.cookie.get(name)) {\n document.cookie = name + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.cnn.com;\";\n }\n },\n appendHost: function(key) {\n const domain = window.location.hostname.replace('www.', '');\n const subdomain = domain.substr(0, domain.indexOf('.'));\n let host = '';\n if (!['cnn', 'us', 'edition', 'arabic', 'cnnespanol'].includes(subdomain)) {\n host = \"_\" + (subdomain || domain);\n }\n return key + host;\n },\n base64Decode: function(str) {\n var rval;\n try {\n rval = window.atob(str);\n } catch (e) {}\n return rval;\n },\n getBusinessUnit: function() {\n return this.getSiteSpecificSettings(1);\n },\n addBrandingEvent: function() {\n var bcp = this.getCNNBrandingPartner();\n if (![\"\", \"nvs\", \"no value set\", \"no-value-set\"].includes(bcp)) {\n s.events = \"event21,\" + s.events;\n }\n },\n addArticleEvent: function() {\n var tt = this.getDataLayerV1().template_type || \"\";\n var cctype = this.getDataLayerV1().cap_content_type || \"\";\n if (tt == \"article\" || cctype == \"article\"){\n s.events += \",event39\";\n }\n },\n addCommentsEvent: function() {\n if (this.commentsEnabled()) {\n s.events += \",event118\";\n }\n },\n setPageEvents: function() {\n s.events = \"event26\";\n this.addBrandingEvent();\n this.addArticleEvent();\n var tt = this.getDataLayerV1().template_type || \"\";\n if (tt !== \"error\") {\n var pathName = window.location.pathname;\n if (pathName.includes(\"/account/register\")) {\n s.events += \",event51\";\n }\n if (pathName.split(\"/\")[1] == \"video-day\") {\n s.events += \",event63\";\n }\n }\n this.addCommentsEvent();\n s.linkTrackEvents = s.events;\n },\n getCNNBusinessName: function() {\n return \"cnn\";\n },\n getCNNCampaign: function(){\n if (wminst.Util.isFBIAPage()) {\n return \"fbia\";\n }\n return;\n },\n getCNNDomainName: function() {\n var hostname = window.location.hostname.toLowerCase();\n hostname = hostname.replace(\"www.\",\"\");\n return hostname;\n },\n getCNNPageURL: function() { //s.pageURL or g variable\n var rval = window.location.href.toLowerCase(), loc = \"\";\n if (wminst.Util.isFBIAPage()) {\n loc = rval;\n rval = \"\";\n if (loc.indexOf(\"ofs=fbia\") > -1) {\n loc = loc.replace(\"ofs=fbia\", \"csr=fbiacnn\"); //suppressing string which is not expected as per new requirement\n }\n var jj = (loc.indexOf(\"?\") != -1 ? \"&\" : \"?\");\n if (loc.indexOf(\"csr=fbiacnn\") > -1) {\n rval = loc + \"\";\n } else {\n rval = loc + jj + \"csr=fbiacnn\"; // added expected substring\n }\n }\n return rval;\n },\n getCNNPageType: function() {\n var rval = \"\";\n try {\n var title = document.title.toLowerCase();\n if (title.indexOf(\"page not found\") !== -1 || wminst.Util.getCNNTemplateType().includes(\"error\") || title == \"error\") {\n rval = \"errorPage\";\n }\n } catch (err) {}\n return rval;\n },\n getCNNAuthor: function() { //prop2,eVar2 - business.cnn.page.author\n var rval = \"\";\n if (window.is_expansion) {\n try {\n rval = window.cnn_d.omniture.cap_author;\n } catch (e) {}\n try {\n rval = window.CNN.omniture.cap_author.toString();\n } catch (e) {}\n } else {\n try {\n rval = window.cnn_metadata.business.cnn.page.author;\n } catch (e) {}\n if (!rval) {\n if (document.getElementsByName(\"AUTHOR\").item(0)) {\n rval = document.getElementsByName(\"AUTHOR\").item(0).content;\n } else if (document.getElementsByName(\"author\").item(0)) {\n rval = document.getElementsByName(\"author\").item(0).content;\n }\n }\n }\n if (typeof rval === \"undefined\" || rval == \"no-value-set\" || rval == \"nvs\") rval = \"\";\n return rval.toLowerCase();\n },\n getPageAttribution: function() { //prop4,eVar4 - page HPlocation\n var rval = \"\";\n var ishptCookie = false;\n var hptcookie = wminst.Util.getCookie(\"hpt\");\n var linkTrackingCookie = wminst.Util.getCookie(\"linkTracking\");\n this.log(\"getPageAttribution hptcookie =\", hptcookie, \"linkTrackingCookie =\", linkTrackingCookie);\n var regex = new RegExp(\"^[A-Za-z0-9=]+$\");\n if ((typeof linkTrackingCookie == 'undefined' || linkTrackingCookie == \"\") && typeof hptcookie !== 'undefined') {\n ishptCookie = true;\n }\n var attributionCookie = linkTrackingCookie || hptcookie;\n if ((typeof attributionCookie != \"undefined\" && attributionCookie != \"\" && attributionCookie.indexOf(\"breaking:\") != -1) || !regex.test(attributionCookie)) {\n rval = attributionCookie;\n } else if (document.referrer.indexOf(\"cnn.com\") !== -1) {\n rval = wminst.Util.getQueryParam(\"linkTracking\") || wminst.Util.getQueryParam(\"hpt\");\n try {\n rval = rval.replace(/no\\-value\\-set/g, \"\");\n } catch (e) {}\n var prev_rval = rval;\n try {\n if (attributionCookie) {\n rval = attributionCookie;\n if (attributionCookie.indexOf(\"_\") === -1 && attributionCookie.indexOf(\"|\") === -1 && typeof this.base64Decode(attributionCookie) !== 'undefined') {\n rval = this.base64Decode(attributionCookie);\n }\n }\n } catch (e) {}\n if (rval) {\n wminst.hpt_set = 1;\n } else {\n rval = prev_rval;\n }\n }\n if (window.is_expansion != 0) {\n if (wminst.Util.getQueryParam(\"cnnapp\") && wminst.Util.getQueryParam(\"cnnapp\") != null) {\n rval = \"cnnapp:\" + wminst.Util.getQueryParam(\"cnnapp\");\n }\n if (wminst.Util.getQueryParam(\"eref\") && wminst.Util.getQueryParam(\"eref\") != null) {\n rval = \"eref:\" + wminst.Util.getQueryParam(\"eref\");\n }\n if (wminst.Util.getQueryParam(\"iref\") && wminst.Util.getQueryParam(\"iref\") != null) {\n rval = \"iref:\" + wminst.Util.getQueryParam(\"iref\");\n }\n if (wminst.Util.getQueryParam(\"refresh\") && wminst.Util.getQueryParam(\"refresh\") != null) {\n rval = \"auto-refresh\";\n }\n }\n if(rval !== \"\") {\n rval = rval.replace(/no-value-set/g, \"nvs\");\n rval = rval.toLowerCase(); \n }\n this.removeCookie(ishptCookie ? \"hpt\" : \"linkTracking\");\n return rval;\n },\n setPageAttribution: function() {\n s.eVar105 = this.getPageAttribution();\n },\n getPhotoGalleryName: function(){ //prop6,eVar6 - Photo Gallery name\n var dataLayer = this.getDataLayerV1();\n return (dataLayer.gallery_name || \"\").toLowerCase();\n },\n getCNNVisitNumber: function(rollday) { //prop8,eVar8 - visit_number.$30Day \n rollday = rollday || 28; //default rolling day is 28\n var todaydate = new Date().getTime();\n if (typeof(Storage) !== \"undefined\") { //check for web storage support\n if (localStorage.startdate) { //check for start date\n if (sessionStorage.online) { //check for session variable\n var daysinceonline = Math.ceil((todaydate - sessionStorage.online) / 86400000);\n if (daysinceonline > 1) { //if session is older than 24 hours, reset session start time and count as a visit\n localStorage.visittype = \"repeat\"; //set visit type (new vs repeat)\n localStorage.visitnum = Number(localStorage.visitnum) + 1; //increment visit number\n sessionStorage.online = todaydate; //set session variable\n }\n } else { //new session\n localStorage.visittype = \"repeat\"; //set visit type (new vs repeat)\n localStorage.visitnum = Number(localStorage.visitnum) + 1; //increment visit number\n sessionStorage.online = todaydate; //set session variable\n }\n var daysincestart = Math.ceil((todaydate - localStorage.startdate) / 86400000);\n if (daysincestart > Number(rollday)) { //if days since start date is greater than rolling day, set new start date\n localStorage.startdate = todaydate;\n localStorage.visittype = \"new\";\n localStorage.visitnum = 1;\n }\n } else { //first new visit\n localStorage.startdate = todaydate; //set new start date\n localStorage.visittype = \"new\"; //set visit type (new vs repeat)\n localStorage.visitnum = 1; //set visit number\n sessionStorage.online = todaydate; //set session variable\n }\n return localStorage.visittype + \":\" + localStorage.visitnum;\n } else {\n return \"new:1\";\n }\n },\n getCNNPublishDate: function() {\n var dataLayer = this.getDataLayerV1();\n rval = dataLayer.publish_date || \"\";\n if (dataLayer.last_updated_date) {\n rval += \"|\" + dataLayer.last_updated_date;\n }\n if (!rval) {\n rval = window.cnn_d?.omniture?.publish_date;\n }\n return rval;\n },\n populatePublishDate: function(){\n var rval = wminst.Util.getCNNPublishDate();\n var etype = [\"content\",\"live story\",\"article_livestory\",\"gallery\"];\n var rttype = wminst.Util.getCNNTemplateType(\"long\");\n var result = false;\n if (typeof rttype !== 'undefined') {\n for(var i in etype){\n if(rttype.indexOf(etype[i]) != -1){\n result = true;\n }\n }\n }\n if (result) {\n return rval;\n } else {\n return \"\";\n }\n },\n getCNNDaysSinceLastPublish: function(d) { //prop10,eVar10 - days_since_publish\n var e = new Date();\n var p;\n var j;\n if (d == 'a') {\n try {\n d = window.cnn_metadata.business.cnn.page.publish_date;\n } catch (err) {}\n try {\n d = window.CNN.omniture.publish_date || d;\n } catch (err) {}\n j = new Date(d);\n } else if (d.toString().indexOf(\"/\") != -1) {\n p = d.split(\"/\");\n if (p[0].length != 4) {\n p[2] = \"20\" + p[2];\n j = new Date(p[2] + \"/\" + p[0] + \"/\" + p[1]);\n } else {\n j = new Date(d);\n }\n } else {\n j = new Date(d);\n }\n var ONE_DAY = 1000 * 60 * 60 * 24;\n var date1_ms = e.getTime();\n var date2_ms = j.getTime();\n var difference_ms = Math.abs(date1_ms - date2_ms)\n var days = Math.round((difference_ms / ONE_DAY))\n if (isNaN(days)) {\n return \"\";\n }\n if (window.is_expansion != 0) {\n return Math.round((difference_ms / ONE_DAY)).toString()\n } else if (window.is_expansion == 0 && typeof window.cnn_metadata.days_since_publish !== \"undefined\") {\n try {\n return window.cnn_metadata.days_since_publish;\n } catch (err) {}\n }\n },\n populateDaysSinceLastPublish: function(){\n var rval = wminst.Util.getCNNDaysSinceLastPublish(\"a\");\n var etype = [\"content:\",\"live story\",\"article_livestory\"];\n var rttype = wminst.Util.getCNNTemplateType(\"long\");\n var result = false;\n if (typeof rttype !== 'undefined') {\n for(var i in etype){\n if (rttype.indexOf(etype[i]) != -1){\n result = true;\n }\n }\n }\n if(result) {\n return rval;\n } else {\n return \"\";\n }\n },\n getCNNBrandingPartner: function() { //prop11,eVar11 - page branding content partner\n var dataLayer1 = this.getDataLayerV1();\n var dataLayer2 = this.getDataLayerV2();\n var rval = (dataLayer2.branding || {}).key || dataLayer1.branding_content_page || \"\";\n return rval.toLowerCase();\n },\n getCNNCapContentType: function (){ //prop13,eVar13 - cap_content_type\n var dataLayer1 = this.getDataLayerV1();\n var dl2PageTop = this.getDL2PageTop();\n var rval = dataLayer1.cap_content_type || \"\";\n if (dl2PageTop.type === \"gallery\") {\n rval = \"gallery\";\n }\n return rval.toLowerCase();\n },\n getCNNCapGenre: function (){ //prop5,eVar5 - cap genre\n var dataLayer = this.getDataLayerV1();\n return (dataLayer.cap_genre || \"nvs\").toLowerCase().replace(\"no-value-set\", \"nvs\");\n },\n getCNNCapMediaType: function() {\n var dataLayer = this.getDataLayerV1();\n return (dataLayer.cap_media_type || \"nvs\").toLowerCase().replace(\"no-value-set\", \"nvs\");\n },\n getCNNBrandingSocial: function() { //prop14,eVar14 - Branding Social\n var rval = \"\";\n try {\n if (window.CNN && window.CNN.omniture) {\n if (window.CNN.omniture.fbia === true) {\n rval = window.CNN.omniture.branding_social;\n }\n }\n } catch(err) {}\n try {\n if (window.navigator.userAgent && window.navigator.userAgent == \"cnn-mobile-app\") {\n return window.navigator.userAgent;\n }\n } catch(err){}\n var hostName = window.location.hostname;\n if (hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1) {\n var pathName = window.location.pathname;\n if (pathName.indexOf(\"/v1/amp\") != -1) {\n rval = \"google amp\"; //google amp\n }\n if (pathName.indexOf(\"/v1/fav\") != -1) {\n rval = \"embed\"; //embed\n }\n }\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNTrafficPartner: function() { // eVar15 - Traffic Partner\n var rval = \"\";\n try {\n rval = _satellite.cookie.get(\"FastAB\");\n } catch(err) {}\n return rval;\n },\n getIreportgetMember: function() { //prop17,eVar17 - ireport member\n var irptMember = wminst.Util.getCNNAuthenticated(\"authid\", \"displayname\", \"member\", \"anonymous\", \"NonMember\", \"?\");\n if (window.location.host.indexOf(\"politics\") == -1 && window.is_expansion != 0) {\n return irptMember;\n } else {\n return null;\n }\n },\n getCNNPageImpression: function() { //prop18,eVar18 - page impressions\n var rval = window.cnnPSproducts || \"\";\n var hptcookie = wminst.Util.getCookie(\"hpt2\");\n if (document.referrer.indexOf(\"cnn.com\") > -1) {\n try {\n if (hptcookie) {\n rval = hptcookie;\n if (hptcookie.indexOf(\"_\") == -1) {\n rval = this.base64Decode(hptcookie);\n }\n }\n } catch(e) {}\n //document.cookie = \"hpt2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;\";\n } else {\n if (hptcookie) {\n document.cookie = \"hpt2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.cnn.com;\";\n }\n }\n rval = rval.replace(/no-value-set/g, \"nvs\");\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNVideoOpportunity: function() { //eVar22 - video embed count\n var rval = \"0\";\n var ttype = \"\";\n try { rval = window.cnn_metadata.business.cnn.page.video_embed_count; } catch(e) {}\n try { rval = window.CNN.omniture.video_opportunity || \"0\"; } catch(e) {}\n ttype = wminst.Util.getCNNTemplateType();\n if (typeof ttype !== 'undefined' && ttype.indexOf(\"index\") > -1) {\n rval = \"\";\n }\n return rval;\n },\n getCNNPageHeadline: function() { //prop23,eVar23 - page headline\n var rval = \"nvs\", tt = \"\";\n try { \n rval = window.CNN.omniture.headline;\n tt = window.CNN.omniture.template_type;\n } catch(e) {}\n try { \n if(typeof window.cnn_d != \"undefined\" && typeof window.cnn_d.omniture != \"undefined\" && window.cnn_d.omniture.headline != \"undefined\"){\n rval = window.cnn_d.omniture.headline;\n tt = window.cnn_d.omniture.template_type;\n }\n } catch(e) {}\n try {\n if(rval == \"no-value-set\" || tt == \"specials\" || tt == \"section front\" || tt == \"index\") {return null;}\n rval = rval.toLowerCase();\n } catch(e) {rval = \"\";}\n return rval;\n },\n getCNNPageName: function(pathname) { //pageName,eVar26 - page.name\n var rval = pathname || window.location.pathname;\n rval = rval.toLowerCase();\n rval = rval.replace(/^.*\\/\\/[^\\/]+/, \"\"); //remove domain\n rval = rval.replace(/\\/index(.html)?(\\/)?$/, \"\"); //remove /index/ and /index.html/\n rval = rval.replace(/h_[a-z0-9]+\\/?$/, \"\"); //remove last folder ID\n rval = rval.replace(/\\/?$/, \"/\"); //add trailing slash\n if (rval === \"/\") rval += \"homepage\";\n return rval;\n },\n getCNNBaseURL: function() { //prop26 - Base URL\n var hostname = window.location.hostname;\n var pathname = window.location.pathname;\n pathname = pathname.replace(/([^\\/]+\\.[^\\/]+$)/,\"\");\n return hostname + pathname;\n },\n getCNNSection: function(position) { //channel/eVar27, prop28/eVar28\n var rval = \"\";\n try {\n if (window.is_expansion) {\n for (var i = 0; i <= position; i++) {\n if (i > 0) {\n rval += \":\";\n }\n try {\n var s1 = window.CNN.omniture.section[i];\n if ((s1.indexOf(\":\")) && (s1.indexOf(\"electoral college map\") > -1)) {\n var c1 = s1.split(':');\n rval += c1[0];\n return rval;\n }\n } catch (e) {}\n if (typeof window.CNN != 'undefined' && typeof window.CNN.omniture != 'undefined') {\n if (i == 1 && !window.CNN.omniture.section[1]) { //add default value \"no value set\" for subsection (prop28/eVar28)\n window.CNN.omniture.section[1] = \"no value set\";\n try {\n if (this.isNGTVPage()) {\n window.CNN.omniture.section[1] = \"\";\n }\n } catch (e) {}\n }\n }\n if (window.cnn_d && window.cnn_d.omniture && window.cnn_d.omniture.section[i]) {\n try {\n rval += window.cnn_d.omniture.section[i] || \"\";\n } catch (e) {}\n } else {\n try {\n rval += window.CNN.omniture.section[i] || \"\";\n } catch (e) {}\n }\n }\n try {\n if (typeof window.CNN.omniture !== 'undefined' && window.CNN.omniture.template_type == \"list\" && position == 0 && rval == \"\") { //use first path of URL for list pages\n rval = wminst.Util.getADBPURL(\"path\", 1);\n }\n } catch (e) {}\n } else {\n window.cnn_metadata.section = (typeof window.cnn_metadata.section != \"string\" ? window.cnn_metadata.section : window.JSON.parse(window.cnn_metadata.section));\n rval = (window.cnn_metadata.section[position] ? window.cnn_metadata.section[position] : \"\");\n }\n } catch (e) {}\n return rval;\n },\n getCNNPageFranchise: function() { //prop31,eVar31 - page_franchise\n var rval = \"\";\n try { rval = cnn_metadata.business.cnn.page.broadcast_franchise || rval; } catch(e) {}\n try { rval = CNN.omniture.cap_show_name || rval; } catch(e) {}\n rval = rval.toLowerCase();\n return rval;\n },\n getCNNLeadingMedia: function() { //eVar111 - leading media\n var dataLayer = this.getDataLayerV2();\n var rval = dataLayer.leadingMediaType || \"no media\";\n if (rval == \"video\") {\n rval += \"|\";\n rval += dataLayer.isVideoCollection ? \"collection\" : \"nocollection\"\n }\n return rval;\n },\n getTemplateTypeLookup: function() {\n return {\n b: \"blog\",\n g: \"game\",\n it: \"interactive\",\n c: \"content\",\n in: \"index\",\n err: \"error\",\n e: \"ecom\",\n s: \"signup\",\n v: \"video\",\n sf: \"section front\",\n sr: \"search results\",\n fm: \"forum\",\n o: \"other\",\n ir: \"ireport\",\n sp: \"specials\",\n pm: \"perfect market\",\n bf: \"blog front\",\n bc: \"blog category\",\n t: \"topic\",\n w: \"weather\",\n el: \"election\"\n };\n },\n getCNNTemplateType: function(lookupType) { //prop32,eVar32 - page template_type\n var rval = \"\";\n if (window.is_expansion) {\n var hostName = window.location.hostname;\n var dataLayer1 = this.getDataLayerV1();\n var dataLayer2 = this.getDataLayerV2();\n var dl2PageTop = this.getDL2PageTop();\n if ([\"fave.api.cnn.io\", \"fave-api.cnn.com\"].includes(hostName)) {\n rval = \"content\";\n } else if (dataLayer1.template_type == 'article') {\n try {\n if (dl2PageTop.type === 'gallery' || dataLayer1.cap_content_type === 'gallery') {\n rval = \"content: gallery\";\n } else if (dl2PageTop.type === 'video' || dl2PageTop.type === 'video360') {\n if (dataLayer2.analytics.isArticleVideoCollection) {\n rval = \"content:video:collection\";\n } else {\n rval = \"content:video:nocollection\";\n }\n } else {\n if (dataLayer1.cap_media_type === 'Video') {\n rval = \"content:video\";\n } else {\n rval = \"content: no media\";\n }\n } \n } catch (e) {}\n } else {\n rval = dataLayer1.template_type;\n }\n } else {\n var dataLayer = this.getDataLayerV1() || window.cnn_metadata || window.cnn_d?.omniture || {};\n var templateTypeCode = dataLayer.template_type;\n rval = [\"o\", \"other\"];\n var lookup = this.getTemplateTypeLookup();\n var lookupRev = this.reverse(lookup);\n if (lookup[templateTypeCode] != null) {\n rval = [templateTypeCode, lookup[templateTypeCode]];\n }\n if (lookupRev[templateTypeCode] != null) {\n rval = [lookupRev[templateTypeCode], templateTypeCode];\n }\n if (lookupType == \"short\") {\n rval = rval[0];\n }\n if (lookupType == \"long\") {\n rval = rval[1];\n }\n }\n if (typeof rval == \"string\") {\n rval = rval.toLowerCase();\n }\n return rval;\n },\n getCNNContentType: function(defaultVal) { //prop33,eVar33 - content_type\n var omnitureRef = (window.cnn_d && window.cnn_d.omniture) || (window.CNN && window.CNN.omniture);\n if (typeof omnitureRef === 'undefined') {\n return defaultVal;\n }\n\n var tt = \"\",\n ct = \"\";\n if (typeof window.cnn_d != 'undefined' && typeof window.cnn_d.omniture != 'undefined' && typeof window.cnn_d.omniture.template_type != 'undefined') {\n tt = window.cnn_d.omniture.template_type;\n ct = \"adbp:\" + window.cnn_d.omniture.content_type;\n\n } else {\n if (typeof window.CNN.omniture !== \"undefined\" && typeof window.CNN.omniture.content_type !== \"undefined\" && window.CNN.omniture.content_type){\n ct = window.CNN.omniture.content_type;\n } else {\n ct = \"adbp:none\";\n }\n if (typeof ct !== 'undefined' && (ct == \"none\" || ct == \"\")) {\n ct = \"adbp:none\";\n }\n tt = window.CNN.omniture && window.CNN.omniture.template_type;\n }\n var l = {\n \"adbp:blog\": [\"blog.read\", \"adbp:blog read\"],\n \"adbp:content\": [\"article.read\", \"adbp:article read\"],\n \"adbp:game\": [\"game.play\", \"adbp:game played\"],\n \"other:ireport\": [\"other.ireport\", \"other:ireport\"],\n \"other:photo wall\": [\"content.interactive\", \"other:photo wall\"]\n } [tt];\n var m = {\n \"adbp:article read\": \"article.read\"\n } [ct];\n if (m !== null) {\n if (typeof ct !== 'undefined' && ct.indexOf(\"pivit\") !== -1) {\n return tt + \":\" + ct;\n } else {\n return ct;\n }\n }\n if (!l) {\n return defaultVal;\n }\n return l[1];\n },\n getCNNAuthenticated: function(c1, c2, truevalue, falsevalue, neutralvalue, flag) { //prop34,eVar34 - user authenticated\n var rValue = 0;\n if (wminst.Util.getCookie(c1, flag)) {\n rValue++;\n }\n if (wminst.Util.getCookie(c2, flag)) {\n rValue++;\n }\n if (rValue == 0) {\n return falsevalue;\n } else if (rValue == 1) {\n return neutralvalue;\n } else {\n return truevalue;\n }\n },\n getCNNKruxID: function() { // eVar36 - KruxID\n var rval = \"\";\n try {\n rval = localStorage.kxkuid;\n } catch (err) {}\n return rval;\n },\n getCNNPlatform: function() { //prop37,eVar37 - page platform\n var rval = \"\";\n if (navigator.userAgent.match(/iPhone/i)) {\n rval = \"smartphone\";\n } else if (navigator.userAgent.match(/iPad/i)) {\n rval = \"tablet\";\n } else if (navigator.userAgent.match(/android/i)) {\n if (navigator.userAgent.match(/mobile/i)) {\n rval = \"smartphone\";\n } else {\n rval = \"tablet\";\n }\n } else {\n rval = \"desktop\";\n }\n return rval ? rval : \"no value set\";\n },\n getCNNSearchInternalKeyword: function() { //prop39,eVar39 - search internal keyword\n var rval = \"\";\n try {\n rval = wminst.Util.getQueryParam(\"query\");\n } catch(e){}\n return rval;\n },\n getLSPostPosition: function() { //eVar45 - Post Position\n var rval = \"\";\n try {\n if (this.isLiveStoryTemplateType()) {\n var post_position = window.CNN.omniture.post_position ? window.CNN.omniture.post_position : 1;\n var total_post = window.CNN.omniture.total_post ? window.CNN.omniture.total_post : 0;\n rval = post_position + \":\" + total_post;\n } \n } catch(e) {}\n return rval;\n },\n getCNNPostID: function() { //prop43 - Post ID\n var rval = null;\n var pathName = window.location.pathname;\n if(window.CNN && window.CNN.omniture && typeof window.CNN.omniture.post_id != 'undefined' && window.CNN.omniture.post_id != \"\") {\n rval = window.CNN.omniture.post_id;\n } else {\n try{\n pathName = pathName.replace(/\\/$/, \"\");\n var path_array = pathName.split(\"/\");\n rval = path_array[path_array.length - 1];\n if(rval.match(/(^h_)[a-z0-9]+$/) === null){\n rval = null;\n }\n } catch(e) {}\n } \n try {\n if (this.isLiveStoryTemplateType()) {\n // Do Nothing\n } else {\n rval = \"\";\n } \n } catch(e) {}\n return rval;\n },\n getCNNSourceID: function(){ //prop44 - Source ID\n var rval = \"\";\n try {\n if(typeof window.CNN != 'undefined' && typeof window.CNN.omniture != 'undefined' && window.CNN.omniture.sourceId) {\n rval = window.CNN.omniture.sourceId;\n } else if(window.CNN && window.CNN.contentModel && window.CNN.contentModel.sourceId){\n rval = window.CNN.contentModel.sourceId;\n }\n rval = rval.toLowerCase();\n } catch(e) {}\n return rval; \n },\n getCNNTransactionID: function() { // prop46,eVar46\n var rval = \"\";\n try {\n if (typeof window.cnnad_transactionID !== 'undefined') {\n rval = window.cnnad_transactionID;\n } else if (typeof window.cnnad_getTransactionID === \"function\") {\n rval = cnnad_getTransactionID();\n } else {\n rval = Math.round((new Date()).getTime() / 1000) + \"\" + Math.floor(Math.random()*9007199254740992);\n }\n } catch (e) {}\n return rval;\n },\n getCNNGUID: function() { // prop47,eVar47\n var rval = \"\";\n try {\n if (typeof window.turner_getGuid === \"function\") {\n rval = turner_getGuid(\"ug\");\n } else {\n rval = this.getCookie(\"ug\");\n }\n } catch (e) {}\n return rval;\n },\n getAppNexusID: function() {\n var rval = \"\";\n try {\n if (this.isTagConsented(\"app-nexus-id\")) {\n rval = this.getCookie(\"zwmc\");\n }\n } catch (e) {}\n return rval\n },\n getWMID: function(name) {\n var rval = \"\";\n try {\n if (window.WM) {\n var obj = window.WM.PSM || window.WM.CDP || {};\n var fn = obj[\"get\"+name];\n if (typeof fn === \"function\") {\n rval = fn();\n }\n }\n } catch (e) {}\n return rval;\n },\n getWMUKID: function() {\n var rval = \"\";\n try {\n rval = this.getCookie('WMUKID_STABLE');\n\n if (!rval) {\n var wmukidJSON = this.getCookie(\"WMUKID\");\n var wmukidObj = JSON.parse(wmukidJSON);\n rval = wmukidObj.id;\n }\n\n } catch (e) {}\n return rval\n },\n getCNNUID: function() {\n return this.getCookie(\"_cnn_uid\");\n },\n getEdition: function() {\n var rsid = _satellite.getVar(\"RSID\");\n var hostName = window.location.hostname;\n if (rsid.includes(\"esp\")) {\n return \"espanol\";\n } else if (hostName.includes(\"edition\")) {\n return \"international\";\n } else {\n return \"domestic\";\n }\n },\n getSubsOnlyContent: function() {\n var dataLayer = this.getDataLayerV3();\n return dataLayer.subscriptionContent === true ? \"subscriber exclusive content\" : \"standard content\";\n },\n getFlagState: function(name, text) {\n var dataLayer = this.getDataLayerV3();\n if (dataLayer[name] === true) {\n return text + \" enabled\";\n } else if (dataLayer[name] === false) {\n return text + \" disabled\";\n } else {\n return \"nvs\";\n }\n },\n getPaywallState: function() {\n var val1 = this.getFlagState(\"enablePaywall\", \"paywall\");\n var val2 = this.getFlagState(\"disablePaywall\", \"override\");\n return [val1, val2].join(\":\");\n },\n getRegwallState: function() {\n var val1 = this.getFlagState(\"enableRegwall\", \"regwall\");\n var val2 = this.getFlagState(\"disableRegwall\", \"override\");\n return [val1, val2].join(\":\");\n },\n setLinkTrackVars: function(names) {\n if (s.linkTrackVars == \"None\") return;\n let nameArr = names.split(\",\");\n nameArr.forEach(name => {\n if (!s.linkTrackVars.includes(name)) {\n s.linkTrackVars += \",\" + name;\n }\n });\n },\n mapProp: function(eVarNum) {\n return {\n \"26\": \"pageName\",\n \"27\": \"channel\",\n \"29\": \"server\",\n \"41\": \"prop29\"\n } [eVarNum] || (\"prop\" + eVarNum);\n },\n setProps: function(eVarNums) {\n let eVarNumArr = eVarNums.split(\",\");\n eVarNumArr.forEach(eVarNum => {\n var eVarKey = \"eVar\" + eVarNum;\n var propKey = this.mapProp(eVarNum);\n if (s[eVarKey]) {\n s[propKey] = s[propKey] || s[eVarKey];\n s[eVarKey] = \"D=\" + propKey.replace(\"prop\", \"c\").replace(\"channel\", \"ch\");\n }\n });\n },\n setEVars: function(eVarNums) {\n let eVarNumArr = eVarNums.split(\",\");\n eVarNumArr.forEach(eVarNum => {\n var propKey = this.mapProp(eVarNum);\n var eVarKey = \"eVar\" + eVarNum;\n if (s[propKey]) {\n s[eVarKey] = s[propKey];\n s[propKey] = \"\";\n } else {\n s[eVarKey] = \"\";\n }\n });\n },\n setIds: function() {\n this.setLinkTrackVars(\"eVar106,eVar195,eVar197,eVar198,eVar199\");\n s.eVar106 = this.getCNNUID();\n s.eVar195 = this.getAppNexusID();\n s.eVar197 = this.getWMUKID();\n s.eVar198 = this.getWMID(\"WMHHID\");\n s.eVar199 = this.getWMID(\"WMINID\");\n },\n setUserAuthState: function() {\n this.setLinkTrackVars(\"eVar51,eVar74,eVar89\");\n s.eVar51 = this.getUserAuthState(\"registration\");\n s.eVar74 = this.getUserAuthState(\"verification\");\n s.eVar89 = this.getUserAuthState(\"login\");\n },\n setCommonVars: function(useProps) {\n this.setLinkTrackVars(\"pageName,eVar26,server,eVar29,channel,eVar27,prop11,eVar11,prop28,eVar28,prop32,eVar32,prop33,eVar33\");\n s.eVar26 = s.eVar26 || wminst.Util.getCNNPageName();\n s.eVar29 = wminst.Util.getADBPURL(\"domain\");\n s.eVar27 = wminst.Util.getCNNSection(0);\n s.eVar11 = wminst.Util.getCNNBrandingPartner();\n s.eVar28 = wminst.Util.getCNNSection(1);\n s.eVar32 = s.eVar32 || wminst.Util.getCNNTemplateType(\"long\");\n s.eVar33 = wminst.Util.getCNNContentType();\n this.setLinkTrackVars(\"prop30,eVar30,prop35,eVar35\");\n s.eVar30 = this.getBusinessUnit();\n s.prop35 = this.getCodeVersion();\n s.eVar35 = \"D=c35\"\n this.setLinkTrackVars(\"eVar44\");\n s.eVar44 = this.getDL2Prop(\"vertical\").toLowerCase();\n this.setUserAuthState();\n if (this.isSponsoredArticlePage()) {\n this.setLinkTrackVars(\"eVar77\");\n s.eVar77 = this.getPartnerName();\n }\n this.setLinkTrackVars(\"eVar90,eVar101\");\n s.eVar90 = this.getEdition();\n var subType = this.getSubscriberType();\n s.eVar101 = s.eVar101 || this.modSubscriberType(subType);\n this.setIds();\n this.setLinkTrackVars(\"eVar111\");\n s.eVar111 = this.getCNNLeadingMedia();\n this.setLinkTrackVars(\"eVar112,eVar113,eVar114,eVar132\");\n s.eVar112 = this.getDL2Prop(\"firstCanonicalUrl\");\n s.eVar113 = this.getDL2Prop(\"pageStellarId\");\n s.eVar114 = this.getDL2Prop(\"pageTags\").toLowerCase();\n s.eVar132 = this.getDL2Prop(\"pageType\").toLowerCase();\n this.setLinkTrackVars(\"list1\");\n s.list1 = s.list1 || this.getCNNTopic();\n if (useProps) this.setProps(\"11,26,27,28,29,30,32,33\");\n },\n setPageVars: function() {\n this.setLinkTrackVars(\"eVar48,eVar129,eVar135,eVar136,eVar137,eVar138\");\n s.eVar48 = this.getCNNTechStack();\n s.eVar122 = s.eVar123 = \"\"; // module load\n s.eVar129 = this.commentsEnabled() ? \"comments available\" : \"comments not available\";\n s.eVar135 = this.getSubsOnlyContent();\n s.eVar136 = this.getPaywallState();\n s.eVar137 = this.getRegwallState();\n s.eVar138 = this.getSubsMeterCount();\n },\n setVideoVars: function(data, useProps) {\n this.setLinkTrackVars(\"prop53,eVar53,prop57,eVar57,prop59,eVar59\");\n s.eVar53 = this.getLiveStreamName(data);\n s.eVar57 = this.getMVPD(data) || this.getCNNMVPD();\n s.eVar59 = this.getAdobeID(data) || this.getCNNAdobeID();\n this.setLinkTrackVars(\"eVar104\");\n s.eVar104 = data.videoTitleId || data.title_id || \"\";\n if (data.video_collection) {\n this.setLinkTrackVars(\"eVar116\");\n s.eVar116 = data.video_collection.toLowerCase();\n s.eVar116 += \":\" + (data.total_videos || 1);\n s.eVar116 += \":\" + (data.video_position || 1);\n }\n this.setLinkTrackVars(\"eVar117,eVar118,eVar119,eVar120\");\n s.eVar117 = data.stellarId || \"\";\n s.eVar118 = data.parentStellarId || \"\";\n s.eVar119 = (data.videoTags || []).join(\",\");\n s.eVar120 = (data.videoUrl || \"\");\n this.setLinkTrackVars(\"eVar124,eVar127,eVar130\");\n s.eVar124 = (data.branding || \"\").toLowerCase();\n s.eVar127 = (data.firstPublishSlug || \"\").toLowerCase();\n s.eVar130 = this.getPreviewType(data);\n if (useProps) this.setProps(\"53,57,59\");\n },\n getCNNTechStack: function() { //eVar48 - Site Tech Stack\n return this.getDL2Prop(\"techStack\").toLowerCase();\n },\n getCNNCMSId: function() { //eVar49 - CMS ID\n var rval = \"\";\n try {\n if(window.CNN && window.CNN.contentModel && window.CNN.contentModel.cmsId){\n rval = CNN.contentModel.cmsId;\n }\n } catch(e){}\n return rval;\n },\n getCNNPreviousPageName: function(){ //prop49,eVar49 - Previous PageName\n var rval = \"\";\n try {\n if(this.isTagConsented('adobe')) {\n var pName = window.document.referrer;\n var prevP = s.getPreviousValue(wminst.Util.getCNNPageName(),\"cnprevpage_pn\");\n if (prevP && typeof pName != \"undefined\" && pName != \"\" && pName.indexOf(\".cnn.com\") != -1) {\n return prevP;\n }\n }\n } catch(e) {return rval;}\n return rval;\n },\n getCNNPostTitle: function() { //prop50 - Post Title\n var rval = \"\";\n try{\n if(window.CNN && window.CNN.omniture && window.CNN.omniture.post_title) {\n rval = window.CNN.omniture.post_title;\n } else { \n rval = document.title;\n }\n } catch(e) { rval = document.title; }\n rval = rval.toLowerCase();\n try {\n var dom_obj = $x(\"//script[@type='application/ld+json']\");\n var post_obj = JSON.parse(rval[rval.length - 1]).innerHTML;\n if(post_obj && post_obj.headline){\n rval = post_obj.headline;\n } \n } catch(e) {}\n try {\n if (this.isLiveStoryTemplateType()) {\n // Do Nothing\n } else {\n rval = \"\";\n } \n } catch(e) {}\n if(rval !== \"\") {\n rval = rval.replace(/\\([0-9]+\\)/, \"\").trim();\n }\n return rval;\n },\n getLiveStreamName: function(data) {\n var rval = (data.live_stream_name || data.title || \"\").toLowerCase();\n if (data.id.includes(\"cvpstream\")) {\n rval += \" \" + data.id.substr(-1);\n }\n return data.isLive ? rval : \"\";\n },\n getCNNBreakingNewsHP: function(ptt, chnl) {\n var rval = \"\";\n var tt = \"\";\n try {\n if (ptt.indexOf(\":\") != -1) {\n if (ptt.indexOf(\"adbp\") != -1) {\n ptt = ptt.split(\":\");\n tt = ptt[1];\n } else {\n ptt = ptt.split(\":\");\n tt = ptt[0];\n }\n } else {\n tt = ptt;\n }\n var abr = {\n \"index\": \"in\",\n \"video\": \"v\",\n \"videos\": \"v\",\n \"blog\": \"b\",\n \"blogs\": \"b\",\n \"game\": \"g\",\n \"games\": \"g\",\n \"interactive\": \"it\",\n \"content\": \"c\",\n \"error\": \"err\",\n \"section\": \"sf\",\n \"section front\": \"sf\",\n \"gallery\": \"ga\",\n \"show\": \"sh\",\n \"shows\": \"sh\",\n \"special\": \"sp\",\n \"specials\": \"sp\",\n \"topic\": \"t\",\n \"profile\": \"p\",\n \"article\": \"c\"\n } [tt];\n if (chnl && (chnl == \"homepage\" || chnl == \"cnn homepage\")) {\n chnl = \"index\";\n }\n if (tt) {\n rval = \"breaking:\" + chnl + \":\" + abr + \":\";\n }\n return rval;\n } catch (e) {}\n },\n getCNNOrientation: function() { //prop56,eVar56 - page orientation\n var rval = \"no value set\";\n try {\n var x = 0;\n if (self.innerHeight) {\n x = self.innerWidth;\n } else if (document.documentElement && document.documentElement.clientHeight) {\n x = document.documentElement.clientWidth;\n } else if (document.body) {\n x = document.body.clientWidth;\n }\n var y = 0;\n if (self.innerHeight) {\n y = self.innerHeight;\n } else if (document.documentElement && document.documentElement.clientHeight) {\n y = document.documentElement.clientHeight;\n } else if (document.body) {\n y = document.body.clientHeight;\n }\n rval = (y > x) ? \"portrait\" : \"landscape\";\n } catch (e) {}\n return rval;\n },\n getPreviewType: function(data) {\n return (data.previewType || \"nvs\").toLowerCase();\n },\n getMVPD: function(data) {\n return (data.mvpd || data.mvpd_value || \"\").toLowerCase();\n },\n getAdobeID: function(data) {\n return data.adobe_hash_id || data.adobeHashId || \"\";\n },\n getCookieFromDL: function(cookieName, propName) {\n var propVal = this.getDataLayerV1()[propName];\n if (propVal) {\n this.setCookie(cookieName, propVal);\n }\n return this.getCookie(cookieName) || \"no mvpd set\";\n },\n getLocalStorageFromDL: function(keyName, propName) {\n var propVal = this.getDataLayerV1()[propName];\n if (propVal) {\n localStorage.setItem(keyName, propVal);\n }\n return localStorage.getItem(keyName) || \"nvs\";\n },\n getCNNMVPD: function() {\n return this.getCookieFromDL(\"CNNmvpd\", \"mvpd\");\n },\n getCNNAdobeID: function() {\n return this.getCookieFromDL(\"adobe_hash_id\", \"adobe_hash_id\");\n },\n getCNNUserAuthState: function() {\n return this.getLocalStorageFromDL(\"user_auth_state\", \"user_auth_state\");\n },\n getCNNPlayerState: function(video) { //eVar67 player State\n var screenState = video.screen_state || \"nvs\";\n var screenPosition = video.screen_position || \"nvs\";\n var audioState = video.audio_state || \"nvs\";\n var playerState = \"\";\n try {\n if (screenState == \"nvs\" && CNN && CNN.omniture && CNN.omniture.screen_state) {\n screenState = CNN.omniture.screen_state;\n }\n if (audioState == \"nvs\") {\n if (video.muted === true) {\n audioState = \"muted\";\n } else if (video.muted === false) {\n audioState = \"audio on\";\n }\n }\n playerState = screenState + \"|\" + audioState + \"|\" + screenPosition;\n playerState = playerState.toLowerCase();\n } catch (e) {}\n return playerState;\n },\n getCNNVisitorID: function(id) { //eVar73 - page visitorId\n var rval = \"\";\n try {\n rval = _satellite.cookie.get(id);\n rval = rval.replace(/\\[(.+?)\\]/g, \"\");\n rval = rval.split(\"|\")[1];\n rval = rval.toLowerCase();\n } catch (err) {}\n return rval;\n },\n getCNNHierachy: function() { // hier1 - Hierachy\n var rval = \"\";\n /* try {\n var bUnit = this.getBusinessUnit();\n var channel = this.getCNNSection(0);\n var domain = this.getADBPURL(\"domain\");\n var section2 = this.getCNNSection(1);\n rval = \"news|cnn|\" + bUnit + \"|\" + domain + \"|\" + channel + \"|\" + section2; \n } catch(e){} */\n return rval;\n },\n getCNNUIEngagement: function() { //prop64 - UI Engagement\n var rval = (this.isNGTVPage() || this.isTVEPage()) ? \"ngtv\" : \"cnn news\";\n try { \n if(typeof window.cnn_metadata.friendly_name != 'undefined') {\n rval = window.cnn_metadata.friendly_name;\n }\n } catch(e) {}\n return rval;\n },\n getCNNTopicAvailability: function() {\n var topic_pattern = new RegExp(/^[0-9a-z,]+$/);\n try {\n var rval = wminst.Util.getCNNTopic();\n if(rval == \"\"){\n return \"no topics\";\n } else if(topic_pattern.test(rval)) {\n return \"topics available\";\n } else { \n return \"api request failure\";\n }\n } catch(e) {}\n },\n getCNNTopic: function() {\n let topicObj = (window.CNN || {}).cep_topics || {};\n let topicKeys = [\"cep_brsf\", \"cep_iabt\", \"cep_sent\", \"cep_tags\"];\n let topicVals = [];\n for (let [key, val] of Object.entries(topicObj)) {\n if (topicKeys.includes(key)) topicVals = topicVals.concat(val);\n }\n let topicStr = (window.cna_omniture || {}).topic || \"\";\n return (topicVals.toString() || topicStr).toLowerCase();\n },\n getCEPTopisForVideo: function(data) {\n let topicObj = (data || {}).cepTopics || {};\n let topicKeys = Object.keys(topicObj);\n return topicKeys.toString().toLowerCase();\n },\n getCNNSiteSectionLevel3: function(val) { //prop51 - Site section level 3 for politics\n var rval = \"\";\n try {\n rval = wminst.Util.getCNNSection(1);\n if(typeof val != 'undefined') {\n rval += \":\" + val;\n } else if(CNN && CNN.omniture && CNN.omniture.section && typeof CNN.omniture.section[2] != 'undefined') {\n rval += \":\" + CNN.omniture.section[2];\n }\n } catch (e) {}\n return rval;\n },\n getCNNInteractiveState: function(data) { //eVar50 - Interactive State for politics\n var rval = \"\";\n if(typeof data == 'undefined' && window.location.hash === \"#my_election\") {\n rval = \"election center:my election:panel open\";\n return rval;\n }\n if (typeof data == \"object\" && (typeof data.tab != 'undefined' || typeof data.map_state != 'undefined' || typeof data.map_level != 'undefined')) {\n var tab = data.tab || \"nvs\";\n var map_state = data.map_state || \"nvs\";\n if(!wminst.Util.isPoliticsExplorer()) {\n if (typeof data.action != 'undefined') {\n var map_level = data.map_level || \"nvs\";\n var race_type = data.race_type || \"nvs\";\n var overlay_type = data.overlay_type || \"nvs\";\n var show_by = data.show_by || \"nvs\";\n rval = \"ec:\" + race_type + \":\" + map_level + \":\" + overlay_type + \":\" + show_by;\n }\n else\n rval = \"election center:\" + tab + \":\" + map_state;\n } else {\n var year = data.year || \"nvs\";\n var comparison_layer = data.comparison_layer || \"nvs\";\n var e_val = data.election || \"nvs\";\n rval = tab + \":\" + year + \":\" + e_val + \":\" + comparison_layer + \":\" + map_state;\n }\n rval = rval.toLowerCase();\n }\n return rval\n },\n getSiteSpecificSettings: function(type, section) {\n var hostName = window.location.hostname;\n var port = window.location.port;\n var setting;\n var sites = {\n \"cnn\": [\"cnn-adbp-domestic\", \"cnn domestic\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00001\", \"8587204\"],\n \"cnndev\": [\"cnn-adbp-domestic-dev\", \"cnn domestic\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00001\", \"8587204\"],\n \"cnnintl\": [\"cnn-adbp-intl\", \"cnn international\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00002\", \"8587278\"],\n \"cnnintldev\": [\"cnn-adbp-intl-dev\", \"cnn international\", \"cnn\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-100120\", \"b01\", \"00002\", \"8587278\"],\n \"ireport\": [\"cnnireport-adbp\", \"cnn ireport\", \"cnnireport\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-702210\", \"c01\", \"00001\", \"3002212\"],\n \"ireportdev\": [\"cnnireport-adbp-dev\", \"cnn ireport\", \"cnnireport\", \"metrics.cnn.com\", \"smetrics.cnn.com\", \"us-702210\", \"c01\", \"00001\", \"3002212\"]\n }\n\n var c4 = {\n val1: [\"cnn homepage\", \"8587211\", \"8587278\"],\n val2: [\"crime\", \"8587220\"],\n val3: [\"us\", \"8587228\"],\n val4: [\"world\", \"8587235\"],\n val5: [\"entertainment\", \"8587242\"],\n val6: [\"politics\", \"8587248\"],\n val7: [\"health\", \"8587254\"],\n val8: [\"tech\", \"8587261\"],\n val9: [\"living\", \"8587266\"],\n val10: [\"opinion\", \"8587272\"],\n val11: [\"watch cnn\", \"8587204\"]\n }\n\n if (section && section != \"\") {\n var x = 0;\n for (x in c4) {\n if (c4[x][0] == section) {\n setting = c4[x][1];\n if (section == \"cnn homepage\") {\n if (hostName.indexOf(\"edition.cnn.com\") != -1) {\n setting = c4[x][2];\n } else if (hostName.indexOf(\"jcmsdev8.cnn.com\") != -1 || hostName.indexOf(\"jcmsref.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.cnn.com\") != -1 || hostName.indexOf(\"ref.cnn.com\") != -1 || hostName.indexOf(\"preview.cnn.com\") != -1) {\n if (port.indexOf(\"94\") != -1 || hostName.indexOf(\"edition\") != -1) {\n setting = c4[x][2];\n }\n }\n }\n break;\n }\n }\n } else {\n if (hostName.indexOf(\"ireportqa.cnn.com\") != -1) {\n setting = sites.ireportdev[type];\n } else if (hostName.indexOf(\"jcmsdev8.cnn.com\") != -1 || hostName.indexOf(\"jcmsref.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.cnn.com\") != -1 || hostName.indexOf(\"ref.cnn.com\") != -1 || hostName.indexOf(\"preview.cnn.com\") != -1 || hostName.indexOf(\"dev.cnn.com\") != -1 || hostName.indexOf(\"stage.cnngo.com\") != -1 || hostName.indexOf(\"travel.cnngo.com\") != -1 || hostName.indexOf(\"edition.stage.next.cnn.com\") != -1 || hostName.indexOf(\"cnnpreview.turner.com\") != -1 || hostName.indexOf(\"dev.cnnv2.com\") != -1 || hostName.indexOf(\"ref.cnnv2.com\") != -1 || hostName.match(/^(dev|qa|stage).(www|us|edition)-m.cnn.com/) || hostName.indexOf(\"edition.enable.next.cnn.com\") != -1 || hostName.indexOf(\"terra.next.cnn.com\") != -1 || hostName.indexOf(\"politics.next.cnn.com\") !== -1 || hostName.indexOf(\"edition.politics.next.cnn.com\") !== -1) {\n if (port.indexOf(\"94\") != -1 || hostName.indexOf(\"edition\") != -1 || hostName.indexOf(\"cnnespanol\") != -1 || hostName.indexOf(\"stage.cnngo.com\") != -1 || hostName.indexOf(\"travel.cnngo.com\") != -1) {\n setting = sites.cnnintldev[type];\n } else {\n setting = sites.cnndev[type];\n }\n } else if (hostName.indexOf(\"qai.cnn.com\") != -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"cnn.staging.perfectmarket.com\") != -1 || hostName.indexOf(\"cnn.staging2.perfectmarket.com\") != -1 || hostName.indexOf(\"beta-cronkite.cnnlabs.com\") != -1 || hostName.indexOf(\"dev-audioplayer-cnn.s3.amazonaws.com\") != -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"darwin-dev.hope.ui\") != -1 || hostName.indexOf(\"dev-facts-first.cnnlabs.com\")!= -1) {\n setting = sites.cnndev[type];\n } else if (hostName.indexOf(\"int-facts-first.cnnlabs.com\") != -1) {\n setting = sites.cnnintldev[type];\n } else if (hostName.indexOf(\"ireport.cnn.com\") != -1) {\n setting = sites.ireport[type];\n } else if (hostName.indexOf(\"edition.cnn.com\") != -1 || hostName.indexOf(\"cnnespanol.cnn.com\") != -1 || hostName.indexOf(\"backstory.blogs.cnn.com\") != -1 || hostName.indexOf(\"inthefield.blogs.cnn.com\") != -1 || hostName.indexOf(\"securityfiles.blogs.cnn.com\") != -1 || hostName.indexOf(\"thecnnfreedomproject.blogs.cnn.com\") != -1 || hostName.indexOf(\"ukelection.blogs.cnn.com\") != -1 || hostName.indexOf(\"amanpour.blogs.cnn.com\") != -1 || hostName.indexOf(\"screeningroom.blogs.cnn.com\") != -1 || hostName.indexOf(\"internationaldesk.blogs.cnn.com\") != -1 || hostName.indexOf(\"newsstream.blogs.cnn.com\") != -1 || hostName.indexOf(\"prism.blogs.cnn.com\") != -1 || hostName.indexOf(\"thebrief.blogs.cnn.com\") != -1 || hostName.indexOf(\"insidethemiddleeast.blogs.cnn.com\") != -1 || hostName.indexOf(\"connecttheworld.blogs.cnn.com\") != -1 || hostName.indexOf(\"business.blogs.cnn.com\") != -1 || hostName.indexOf(\"questmeansbusiness.blogs.cnn.com\") != -1 || hostName.indexOf(\"goalmouth.blogs.cnn.com\") != -1 || hostName.indexOf(\"olympics.blogs.cnn.com\") != -1 || hostName.indexOf(\"worldsport.blogs.cnn.com\") != -1 || hostName.indexOf(\"bodareal.blogs.cnn.com\") != -1 || hostName.indexOf(\"travel.cnn.com\") != -1 || hostName.indexOf(\"footballclub.cnn.com\") != -1 || hostName.indexOf(\"edition.cnnv2.com\") != -1 || hostName.indexOf(\"edition-m.cnn.com\") != -1) {\n setting = sites.cnnintl[type];\n } else if (hostName.indexOf(\"cnn.com\") != -1 || hostName.indexOf(\"cnnv2.com\") != -1) {\n setting = sites.cnn[type];\n } else if (hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1) {\n setting = sites.cnn[type];\n } else if (hostName.indexOf(\"style.staging.cnn.io\") != -1) {\n setting = sites.cnndev[type];\n } else {\n //default, if any case failed\n setting = sites.cnn[type];\n }\n }\n try {\n if (window.CNNIntlVideo) {\n setting = sites.cnnintl[type];\n }\n } catch (e) {}\n return setting;\n },\n getADBPURL: function(type, lvl) {\n var hostname = window.location.hostname.toLowerCase();\n var pathname = window.location.pathname.toLowerCase();\n var path_array = \"\";\n pathname = pathname.replace(/([^\\/]+\\.[^\\/]+$)/, \"\");\n\n var rval;\n switch (type) {\n case \"domain\":\n hostname = hostname.replace(\"www.\", \"\");\n if (lvl == parseFloat(lvl)) {\n var domain_array = hostname.split(\".\");\n var currentPointer = domain_array.length - lvl;\n var currentDomainLevel = (currentPointer >= 0 ? domain_array[currentPointer] : \"\");\n rval = currentDomainLevel;\n } else {\n rval = hostname;\n }\n break;\n case \"path\":\n var pathname2 = pathname.substring(1);\n path_array = pathname2.split(\"/\");\n if (lvl == parseFloat(lvl) && lvl >= 1) {\n var currentPathname = (path_array.length >= lvl ? path_array[lvl - 1] : \"\");\n rval = currentPathname;\n } else {\n rval = pathname;\n }\n break;\n case \"hier\":\n hostname = hostname.replace(\"www.\", \"\");\n path_array = pathname.substring(1).split(\"/\");\n var h1 = hostname + \"/\" + path_array[0];\n var h2 = h1;\n if (path_array[1]) h2 = h2 + \"/\" + path_array[1];\n rval = [h1, h2];\n break;\n default:\n rval = hostname + pathname;\n }\n return rval;\n },\n getCNNVideoSequence: function() {\n return \"1\";\n },\n getUserAuthState: function(type) {\n var userAuthToken = this.getCookie(this.appendHost(\"_cnn_at\"));\n var acctVerified = this.base64Decode(userAuthToken).includes(\"cnn.authn\");\n switch (type) {\n case \"registration\" : return userAuthToken ? \"registered\" : \"anonymous\";\n case \"verification\" : return acctVerified ? \"account verified\" : \"account not verified\";\n case \"login\" : return userAuthToken ? \"logged in\" : \"not logged in\";\n default : return \"\";\n }\n },\n getSubscriberType: function() {\n var preauthz = window.localStorage.getItem(this.appendHost(\"preauthz\"));\n if (preauthz) {\n var decodedPreauthz = this.base64Decode(preauthz);\n try {\n var parsedValue = JSON.parse(decodedPreauthz);\n return parsedValue.value[0].entitlement;\n } catch (error) {\n this.log('Error fetching preauthz', error);\n }\n }\n },\n modSubscriberType: function(subType) {\n var subPrefix = subType ? \"subscriber\" : \"not subscriber\";\n return [subPrefix, subType].join(\":\").toLowerCase();\n },\n getSubsMeterCount: function() {\n var paywallText = window.localStorage.getItem(\"cnn_paywall_v2\") || window.localStorage.getItem(\"cnn_dev_paywall_v2\");\n if (paywallText) {\n try {\n var paywallObj = JSON.parse(paywallText);\n return Object.keys(paywallObj.wallStats).length;\n } catch (error) {\n this.log('Error fetching paywall', error);\n }\n }\n },\n getCNNSavedRaces: function() {\n var rval = \"\";\n if(typeof CNN != 'undefined' && typeof CNN.saved_races == \"number\") {\n rval = \"election center:save races:\" + CNN.saved_races;\n } else {\n if(wminst.Util.getCNNCapContentType()) {\n rval = \"D=c13\";\n }\n }\n return rval;\n },\n getCNNExploreIndentify: function(data) { //eVar79 for Politics Explorer\n var rval = \"cnn login not required\";\n if((data.interaction_type == \"year race\" && data.racePremiumContent) || (data.interaction_type == \"add layer\" && data.overlayPremiumContent)) {\n rval = \"cnn login required\";\n }\n return rval;\n }\n }\n}();\nwminst.Util.loadCustomVariables();\n\n});", "_satellite[\"_runScript2\"](function(event, target, Promise) {\n// JSMD Adapter to provide backward compatibility\nwindow._jsmd = window._jsmd || {\n init: function() {\n this.mdata = {\n business: {\n cnn: {\n page: {\n author: wminst.Util.getCNNAuthor(),\n branding_content_partner: wminst.Util.getCNNBrandingPartner(),\n section: [wminst.Util.getCNNSection(0), wminst.Util.getCNNSection(1)]\n }\n }\n }\n };\n return this;\n },\n send: function() {\n },\n trackMetrics: function(action, data, map) {\n setTimeout(function() {\n console.log(\"jsmd adapter trackMetrics action =\" + action + \" window.trackMetrics = \" + typeof window.trackMetrics);\n window.trackMetrics(action, data);\n }, 100);\n },\n plugin: {\n gQuery: function(name) {\n return wminst.Util.getQueryParam(name);\n },\n gCNNVideoCollection: function() {\n return wminst.getCNNMediaCollection();\n }\n }\n};\n});", "_satellite[\"_runScript3\"](function(event, target, Promise) {\n/*! A simple PubSub in JavaScript - v1.0.0 - 2014-01-12\n* https://github.com/bdadam/PubSub\n* The MIT License (MIT)\n* Copyright (c) 2013 Adam Beres-Deak */\n!function(){\"use strict\";function a(a){if(\"[object String]\"!==Object.prototype.toString.call(a))throw new TypeError(\"Event is not a string.\")}function b(a){if(\"function\"!=typeof a)throw new TypeError(\"Handler is not a function\")}var c={},d={};d.publish=d.pub=function(b){if(a(b),c[b])for(var d={event:b,args:Array.prototype.slice.call(arguments,1)},e=0,f=c[b].length;f>e;e++)c[b][e].apply(d,d.args)},d.subscribe=d.sub=function(d,e){a(d),b(e),(c[d]=c[d]||[]).push(e)},d.unsubscribe=d.unsub=function(){var d,e,f,g,h=Array.prototype.slice.call(arguments);if(h.length>=2){if(d=h[0],e=h[1],a(d),b(e),!c[d])return;for(f=0,g=c[d].length;g>f;f++)c[d][f]===e&&c[d].splice(f,1)}else{e=h[0],b(e);for(d in c)for(f=0,g=c[d].length;g>f;f++)c[d][f]===e&&c[d].splice(f,1)}},\"function\"==typeof define&&define.amd?define(function(){return d}):\"object\"==typeof module&&module.exports?module.exports=d:window.PubSub=d}();\n\nwindow.trackMetrics = function(action, data) {\n var realaction = action,\n realdata = data;\n if (typeof(action) == \"object\") {\n if (action.type != null) {\n realaction = action.type;\n }\n if (action.action != null) {\n realaction = action.action;\n }\n if (action.data != null) {\n realdata = action.data;\n }\n }\n if (typeof(realdata) == \"object\") {\n if (realdata.data != null) {\n realdata = realdata.data;\n }\n }\n var counter = 0;\n (function poll() {\n if (wminst.subscribersReady || counter >= 10) {\n wminst.Util.log(\"trackMetrics subscribersReady =\", wminst.subscribersReady, \"counter =\", counter, \"action =\", realaction, \"data =\", realdata);\n PubSub.publish(realaction, realdata);\n return true;\n }\n counter++;\n setTimeout(poll, 100);\n })();\n \n //Handling ComScore Events here\n window.trackCSMetrics(realaction, realdata);\n};\n\nwindow.trackCSMetrics = function (realaction, realdata) {\n if ((window.ns_ || {}).StreamingTag) {\n publishCSEvents(realaction, realdata);\n } else {\n wminst.Util.log(\"trackCSMetrics load comscore streamsense\");\n wminst.Util.loadScript(\"//s.cdn.turner.com/analytics/comscore/streamsense.5.2.0.160629.min.js\", function () {\n publishCSEvents(realaction, realdata);\n });\n }\n\n function publishCSEvents(realaction, realdata) {\n try {\n if ([\"cnnvideo-preroll\", \"cnnvideo-adcreative-start\"].includes(realaction)) {\n PubSub.publish(\"cs_video-preroll\", realdata);\n } else if ([\"cnnvideo-adcomplete\", \"cnnvideo-midroll-complete\"].includes(realaction)) {\n PubSub.publish(\"cs_ad-complete\", realdata);\n } else if ([\"cnnvideo-start\", \"cnnvideo-autostart\", \"cnnvideo-live\", \"cnnvideo-autosegment\", \"cnnvideo-autoepisode\", \"cnnvideo-episode\"].includes(realaction)) {\n PubSub.publish(\"cs_video-play\", realdata);\n } else if (([\"cnnvideo-pause\"].includes(realaction)) && (realdata.video || {}).paused == true) {\n PubSub.publish(\"cs_video-pause\", realdata);\n } else if (([\"cnnvideo-pause\"].includes(realaction)) && (realdata.video || {}).paused == false) {\n PubSub.publish(\"cs_video-resume\", realdata);\n } else if ([\"cnnvideo-complete\"].includes(realaction)) {\n PubSub.publish(\"cs_video-complete\", realdata);\n }\n } catch (e) {}\n }\n}\n\nwindow.setINSTVideoEvent = function(event, data) {\n if (event == \"cnnvideo-pause\" && !data.paused) {\n event = \"cnnvideo-resume\";\n }\n window.instVideoEvent = {\n name: event,\n time: +(new Date())\n };\n};\n\nwindow.trackVideoEvent = function(data, event, playerid) {\n try {\n if (event !== \"cnnvideo-progress\") {\n setINSTVideoEvent(event, data);\n var currVidObj = data;\n currVidObj.playerid = playerid;\n trackMetrics({\n type: event,\n data: {\n video : currVidObj\n }\n });\n }\n } catch (e) {}\n};\n\nwindow.trackVideoProgress = function(vidInfo) {\n try {\n setINSTVideoEvent(\"cnnvideo-progress\", vidInfo);\n trackMetrics({\n type: \"cnnvideo-progress\",\n data: { video: vidInfo }\n });\n } catch (e) {}\n};\n\nwindow.setINSTAudioEvent = function(event, data) {\n if (event == \"audio-pause\" && !data.paused) {\n event = \"audio-resume\";\n }\n window.instAudioEvent = {\n name: event,\n time: +(new Date())\n };\n};\n\nwindow.trackAudioEvent = function(data, event, playerid) {\n try {\n if (event !== \"audio-progress\") {\n setINSTAudioEvent(event, data);\n var currAudObj = data;\n currAudObj.playerid = playerid;\n trackMetrics({\n type: event,\n data: {\n audio : currAudObj\n }\n });\n }\n } catch (e) {}\n};\n\nwindow.trackAudioProgress = function(audInfo) {\n try {\n setINSTAudioEvent(\"audio-progress\", audInfo);\n trackMetrics({\n type: \"audio-progress\",\n data: { audio: audInfo }\n });\n } catch (e) {}\n};\n\nwindow.sendVideoEvent = function(data, event, playerid) {\n try {\n var currVidObj = window.JSON.parse(data);\n currVidObj.playerid = playerid;\n trackMetrics({\n type: event,\n data: {\n video : currVidObj\n }\n });\n } catch (e) {}\n};\n\nwindow.sendAudioEvent = function(data, event, id) {\n try {\n var currAudObj = (typeof data != \"string\"? data: window.JSON.parse(data));\n trackMetrics({\n type: event,\n data: {\n instance: id,\n audio: currAudObj\n }\n });\n } catch (e) {}\n};\n\nwindow.sendInteractionEvent = function(event, data) {\n try {\n trackMetrics({\n type: event,\n data: {\n interaction: data\n }\n });\n } catch (e) {}\n};\n\nwindow.sendHP10Interaction = function (data) {\n sendInteractionEvent(\"hp10-interaction\", \"10minpreview:\"+data);\n};\n\nwindow.sendGameInteraction = function(event,info) {\n try {\n trackMetrics({\n type: event,\n data: {\n value: info\n }\n });\n } catch (e) {}\n};\n\nwindow.sendVideoClick = function(info, event) {\n try {\n trackMetrics({\n type: event,\n data: {\n value: info\n }\n });\n } catch (e) {}\n};\n\nwindow.sendNewsPulse = function(data) {\n try {\n trackMetrics({\n type: \"dynamic-newsPulseOmniCall\",\n data: {\n newspulse: {\n query: data\n }\n }\n });\n } catch (e) {}\n};\n\nwindow.sendHTML5Event = function(data, event) {\n if (data.contentType ==\"audio\") {\n trackMetrics(\"audio-start\",data.headline, \"adbp-audio\");\n } else {\n data.metas= {branding:\"ireport\"};\n try {\n trackMetrics({\n type: event,\n data: {\n video : data\n }\n });\n } catch (e) {}\n }\n};\n\nwindow.sendOpenStoryPerspective = function(data) {\n try {\n trackMetrics({\n type: \"ireport-openstory\",\n data: {\n openstory : data\n }\n });\n } catch (e) {}\n};\n\nwindow.trackExitLinkMetrics = function(action) {\n wminst.Util.log(\"trackExitLinkMetrics action =\", action);\n try {\n PubSub.publish(action,\"\");\n }\n catch (e) {}\n};\n\nif (wminst.Util.isStellarPage() && wminst.Util.isUserAccountPage() && window.ZION_MESSAGE_BUS) {\n ZION_MESSAGE_BUS.subscribe(\"event_published\", function(message) {\n try {\n var msgIndex = message.length - 1;\n var eventObj = message[msgIndex].message.event; \n var eventName = eventObj.name;\n if (eventName == \"PaymentTransactionCompleted\") {\n var billing_cycle = eventObj.props.billing_interval;\n if (billing_cycle == \"monthly\" || billing_cycle == \"annualy\" || billing_cycle == \"yearly\") {\n var httpResp = eventObj.props.http_response;\n wminst.Util.log(\"eventName =\", eventName, \"billing =\", billing_cycle, \"httpResp =\", httpResp);\n if (httpResp == \"success\") {\n window.trackMetrics({\n type: \"site_subscription_success\",\n data: eventObj.props\n });\n }\n }\n }\n } catch (e) {\n console.error(e);\n }\n })\n}\n//DOM scrapping to track retailer clicks clicked on CNN underscroed pages on non CNN links\nvar sendFBRetailClickPixel = function(data) {\n try {\n trackMetrics({\n type: \"facebook-retailer-click\",\n data: data\n });\n } catch (e) {}\n}; \ntry {\n var elements = document.querySelectorAll('[class*=\"offer-link\"]');\n for (var i = 0; i < elements.length; i++) {\n var data = {};\n var linkText = elements[i].innerText ? elements[i].innerText : elements[i].innerHTML;\n if(typeof elements[i] !== 'undefined' && linkText !== '') {\n data.clickedLink = elements[i].href;\n data.clickedText = linkText;\n }\n elements[i].addEventListener('click', function() {sendFBRetailClickPixel(data);}, false);\n }\n} catch (e) {}\n\n});", "_satellite[\"_runScript4\"](function(event, target, Promise) {\nwminst.getVideoMetadata = function(data) {\n return data.video || data;\n}\n\nwminst.getAudioMetadata = function(data) {\n return data.audio || data;\n}\n\nwminst.isAMPVideos = function() {\n var hostName = window.location.hostname;\n return hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1;\n};\n\nwminst.isBusinessVideo = function(v) {\n var sectionName = v.sectionName || v.category || \"\";\n var sectionNameList = [\"media\", \"intl_business\", \"tech\", \"business\", \"business-videos\", \"cars\", \"investing\", \"success\", \"perspectives\", \"homes\"];\n return sectionNameList.includes(sectionName);\n};\n\nwminst.getAMPVideoTimeStamp = function() {\n var pathName = window.location.pathname;\n var ts = \"\";\n if (pathName.indexOf(\"/v1/amp\") != -1 || pathName.indexOf(\"/v1/cnneamp\") != -1 || pathName.indexOf(\"/v1/fbia\") != -1 || pathName.indexOf(\"/v1/fbiaV2\") != -1) {\n ts = new Date().getTime();\n }\n return ts;\n};\n\nvar mediaPlayer = [];\nwminst.getCNNMediaCollection = function() {\n return {\n get: function(i, p) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n return mPlayer[j][p];\n }\n }\n },\n set: function(i, p, v) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n mPlayer[j][p] = v;\n break;\n }\n }\n },\n toggle: function(i, p) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n var v = mPlayer[j][p];\n mPlayer[j][p] = !v;\n break;\n }\n }\n },\n start: function(i, t) {\n var mPlayer = mediaPlayer;\n mPlayer.push(new objMediaPlayer(i,t));\n function objMediaPlayer(cid, mediaTitle) {\n this.containerId = cid;\n this.mediaTitle = mediaTitle;\n this.vidStarted = false;\n this.audStarted = false;\n this.hasScrubbed = false;\n this.isAuto = false;\n this.isTen = false;\n this.isTwentyFive = false;\n this.isHalf = false;\n this.isSeventyFive = false;\n this.isNinety = false;\n this.isBuffering = false;\n this.isPaused = false;\n this.isMidrollStarted = false;\n this.adNumber = 0;\n this.startTime = (new Date()).getTime();\n this.currentTime = (new Date()).getTime();\n this.timeSpent = 0;\n }\n },\n pause: function(i) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n var p = mPlayer[j].isPaused;\n var b = mPlayer[j].isBuffering;\n if (!b) {\n if (p) {\n mPlayer[j].startTime = (new Date()).getTime();\n } else {\n var playedTime = (new Date()).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent;\n mPlayer[j].timeSpent = playedTime;\n }\n }\n mPlayer[j].isPaused = !p;\n break;\n }\n }\n },\n buffer: function(i) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n var p = mPlayer[j].isPaused;\n var b = mPlayer[j].isBuffering;\n if (!p) {\n if (b) {\n mPlayer[j].startTime = (new Date()).getTime();\n } else {\n var playedTime = (new Date()).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent;\n mPlayer[j].timeSpent = playedTime;\n }\n }\n mPlayer[j].isBuffering = !b;\n break;\n }\n }\n },\n progress: function(i) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n mPlayer[j].currentTime = (new Date()).getTime();\n var playedTime = (mPlayer[j].currentTime - mPlayer[j].startTime + mPlayer[j].timeSpent) / 1000;\n mPlayer[j].startTime = (new Date()).getTime();\n mPlayer[j].timeSpent = 0;\n return Math.round(playedTime);\n }\n }\n },\n complete: function(i) {\n var mPlayer = mediaPlayer;\n for (var j = mPlayer.length - 1; j >= 0; j--) {\n if (mPlayer[j].containerId == i) {\n var playedTime = ((new Date()).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent) / 1000;\n mPlayer[j].timeSpent = 0;\n return Math.round(playedTime);\n }\n }\n }\n };\n};\n\nwminst.capCNNTimeSpent = function(timeSpent, trt, liveInterval) {\n try { //check media time spent value\n var timeLimit = 0;\n if ((parseFloat(timeSpent) == parseInt(timeSpent)) && !isNaN(timeSpent)) {\n if (liveInterval && liveInterval > 0) {\n timeLimit = liveInterval; //time limit value set by webdev\n } else {\n timeLimit = 60; //time limit in sec\n if (trt && parseFloat(trt) > 0) {\n timeLimit = parseFloat(trt) * 2;\n }\n }\n if (timeSpent > timeLimit) {\n timeSpent = timeLimit;\n } else if (timeSpent < 0) {\n timeSpent = 0;\n }\n } else {\n timeSpent = 0;\n }\n } catch (e) {\n timeSpent = 0;\n }\n return timeSpent;\n};\n\nwminst.capCNNTimeSpent2 = function(timeSpent, trt) {\n try { //check media time spent value\n if ((parseFloat(timeSpent) == parseInt(timeSpent)) && !isNaN(timeSpent)) { //valid time spent value\n if (trt && !isNaN(trt) && (parseFloat(trt) == parseInt(trt))) { //valid media length\n if (timeSpent > parseFloat(trt) * 2) {\n timeSpent = parseFloat(trt) * 2;\n } else if (timeSpent < 0) {\n timeSpent = 0;\n }\n } else { //invalid media length\n timeSpent = 0;\n }\n } else { //invalid time spent value\n timeSpent = 0;\n }\n } catch (e) {\n timeSpent = 0;\n }\n return timeSpent;\n};\n});", "_satellite[\"_runScript5\"](function(event, target, Promise) {\nwminst.comscorePageBeacon = function() {\n var c_id = \"6035748\";\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var params = {\n c1: \"2\", c2: c_id, cs_ucfr: cs_ucfr,\n options: {\n enableFirstPartyCookie: true\n }\n }\n if (wminst.Util.isFBIAPage() === true) {\n params.options.url_append = \"comscorekw=fbia\";\n }\n var _comscore = window._comscore = _comscore || [];\n _comscore.push(params);\n \n try {\n if (window.COMSCORE) {\n COMSCORE.beacon(_comscore[0]);\n wminst.Util.sendImagePixel(\"//lightning.cnn.com/analytics/cnn/comscore-pageview-candidate.json\");\n } else {\n wminst.Util.loadScript(\"https://sb.scorecardresearch.com/cs/\" + c_id + \"/beacon.js\");\n }\n } catch (e) {}\n};\n\nPubSub.subscribe(\"dynamic-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"tab-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"cnnsearch-results\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"weather-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"picker-pageview\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"cnngallery-click\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"readmore-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"breaking-news\", function(data) {\n if (data.domain && (data.domain == \"cnn.com\" || data.domain == \"us.cnn.com\" || data.domain == \"sweet.next.cnn.com\" || data.domain == \"edition.cnn.com\")) {\n // Do Nothing\n } else {\n wminst.comscorePageBeacon();\n }\n});\n\n\n/* ============== Page Load ============= */\nif (!wminst.Util.isDynamicPage() && !wminst.Util.isFavePage() && !wminst.Util.inIFrame()) { \n wminst.comscorePageBeacon();\n}\n\n});", "_satellite[\"_runScript6\"](function(event, target, Promise) {\nwminst.bomboraStandardVITag = function() {\n if (!window._ml) {\n (function (w,d,t){\n _ml = w._ml || {};\n _ml.nq = w._ml.nq || [];\n _ml.nq.push(['track', '64240', {fp: 'YOUR_USER_ID'}]);\n var s, cd, tag; s = d.getElementsByTagName(t)[0]; cd = new Date();\n tag = d.createElement(t); tag.async = 1;\n tag.src = 'https://cdn.ml314.com/taglw.js';\n s.parentNode.insertBefore(tag, s);\n })(window,document,'script');\n } else {\n _ml.nq = window._ml.nq || [];\n _ml.nq.push(['track', '64240']);\n }\n};\n\nwminst.bomboraRealTimeVITag = function() {\n if (!window._bmb) {\n !function(e,t,c,n,o,a,m){e._bmb||(o=e._bmb=function(){o.x?o.x.apply(o,arguments):o.q.push(arguments)},o.q=[],a=t.createElement(c),a.async=true,a.src=\"https://vi.ml314.com/get?eid=64240&tk=GBYTTE9dUG2OqHj1Rk9DPOaLspvMWfLqV236sdkHgf03d&fp=\"+(e.localStorage&&e.localStorage.getItem(n)||\"\"),m=t.getElementsByTagName(c)[0],m.parentNode.insertBefore(a,m))}(window,document,\"script\",\"_ccmaid\");\n }\n\n window.googletag = window.googletag || {cmd: []};\n googletag.cmd.push(function() {\n _bmb('vi', function(data){\n if (data != null) {\n var tmpSegment = [\n data.industry_id,\n data.revenue_id,\n data.size_id,\n data.functional_area_id,\n data.professional_group_id,\n data.seniority_id,\n data.decision_maker_id,\n data.install_data_id,\n data.topic_id,\n data.interest_group_id,\n data.segment,\n data.b2b_interest_cluster_id\n ].filter(Boolean).join(',');\n\n tmpSegment != '' && googletag.pubads().setTargeting(\"bmb\",tmpSegment.split(','));\n }\n });\n });\n};\n\nwminst.bomboraPageBeacon = function() {\n wminst.bomboraStandardVITag()\n wminst.bomboraRealTimeVITag()\n};\n\nPubSub.subscribe(\"dynamic-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"tab-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"cnnsearch-results\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"weather-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"picker-pageview\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"readmore-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"breaking-news\", function(data) {\n if (data.domain && (data.domain == \"cnn.com\" || data.domain == \"us.cnn.com\" || data.domain == \"sweet.next.cnn.com\" || data.domain == \"edition.cnn.com\")) {\n // Do Nothing\n } else {\n wminst.bomboraPageBeacon();\n }\n});\n\n\n/* ============== Page Load ============= */\nif (!wminst.Util.isDynamicPage() && !wminst.Util.isFavePage() && !wminst.Util.inIFrame()) { \n wminst.bomboraPageBeacon();\n}\n});", "_satellite[\"_runScript7\"](function(event, target, Promise) {\nwminst.initStreamingTag = function () {\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n}\n\nPubSub.subscribe(\"Player_Ready\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n wminst.initStreamingTag();\n});\n\nPubSub.subscribe(\"cs_video-preroll\", function(data) {\n var v = wminst.getVideoMetadata(data);\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n if (!wminst.prev_vid) { //first video\n wminst.initStreamingTag();\n } else if (wminst.prev_vid && wminst.prev_vid !== v.id) { //new video\n wminst.initStreamingTag();\n } else if (wminst.completed_vid && wminst.completed_vid == v.id) {\n wminst.completed_vid = \"\";\n wminst.initStreamingTag();\n }\n wminst.prev_vid = v.id;\n var clength = v.ad_duration || 0;\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_cl: clength || 3000,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.AdType = {\n BrandedOnDemandContent: \"34\",\n BrandedOnDemandLive: \"35\",\n BrandedOnDemandMidRoll: \"32\",\n BrandedOnDemandPostRoll: \"33\",\n BrandedOnDemandPreRoll: \"31\",\n LinearLive: \"21\",\n LinearOnDemandMidRoll: \"12\",\n LinearOnDemandPostRoll: \"13\",\n LinearOnDemandPreRoll: \"11\",\n Other: \"00\"\n };\n }\n var atype = ns_.StreamingTag.AdType.LinearOnDemandPreRoll;\n if (v.adType && v.adType.toLowerCase() === \"midroll\") { atype = ns_.StreamingTag.AdType.LinearOnDemandMidRoll; }\n if (v.adType && v.adType.toLowerCase() === \"postroll\") { atype = ns_.StreamingTag.AdType.LinearOnDemandPostRoll; }\n if (v.isLive && (v.isLive == \"true\" || v.isLive == true)) {\n atype = ns_.StreamingTag.AdType.LinearLive;\n }\n wminst.myStreamingTag.playVideoAdvertisement(metadata, atype);\n});\n\nPubSub.subscribe(\"cs_ad-complete\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\n\nPubSub.subscribe(\"cs_video-play\", function(data) {\n var v = wminst.getVideoMetadata(data);\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n if (!wminst.prev_vid) { //first video\n wminst.initStreamingTag();\n } else if (wminst.prev_vid && wminst.prev_vid !== v.id) { //new video\n wminst.initStreamingTag();\n } else if (wminst.completed_vid && wminst.completed_vid == v.id) {\n wminst.completed_vid = \"\";\n wminst.initStreamingTag();\n }\n wminst.prev_vid = v.id;\n var clength = v.trt || 0;\n var c4 = \"CNN\";\n var c3 = \"*null\";\n var c6 = \"*null\";\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var adate = v.timestamp || \"\";\n try {\n if (adate) {\n adate = new Date(adate);\n adate = adate.toISOString().substring(0, 10);\n }\n } catch (e) {}\n if (window.location.hostname.indexOf(\"edition\") != -1) {\n c4 = \"CNNI\";\n c3 = \"CNNEDITION\";\n }\n if (typeof v.category != 'undefined' && v.category.toLowerCase() === \"spanish\") {\n c4 = \"CNNESPANOL\";\n }\n if (typeof v.category != 'undefined' && v.category.toLowerCase() === \"cnnmoney\") {\n c4 = \"CNNMONEY\";\n }\n var ch = wminst.Util.getCNNSection(0) || \"\";\n var pn = {\n \"entertainment\": \"CNNENT\",\n \"health\": \"CNNHEALTH\",\n \"politics\": \"CNNPOLITICS\",\n \"tech\": \"CNNTECH\",\n \"travel\": \"CNNTRAVEL\",\n \"us\": \"CNNUS\",\n \"world\": \"CNNWORLD\",\n \"opinions\": \"CNNOPINION\",\n \"living\": \"CNNLIVING\",\n \"cnn homepage\": \"CNNHOME\",\n \"ireport\": \"IREPORT\",\n \"justice\": \"CNNJUSTICE\",\n \"elections\": \"CNNPOLITICS\",\n \"style\": \"CNNSTYLE\"\n }[ch];\n if (pn) { c4 = pn; }\n if(pn && ch == \"elections\"){ c6 = \"ELECTION\";}\n if (wminst.isBusinessVideo(data)) {\n c4 = \"CNNBUSINESS\";\n c6 = \"BUSINESS\";\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_ci: v.id,\n ns_st_cl: clength,\n ns_st_st: \"*null\",\n ns_st_pu: \"CNN\",\n ns_st_pr: v.subcategory || \"*null\",\n ns_st_ep: v.headline || \"*null\",\n ns_st_sn: \"*null\",\n ns_st_en: \"*null\",\n ns_st_ge: v.category || \"*null\",\n ns_st_ia: \"0\",\n ns_st_ce: \"0\",\n ns_st_ddt: \"*null\",\n ns_st_tdt: adate || \"*null\",\n c3: c3,\n c4: c4,\n c6: c6,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.ContentType = {\n Bumper: \"99\",\n Live: \"13\",\n LongFormOnDemand: \"12\",\n Other: \"00\",\n ShortFormOnDemand: \"11\",\n UserGeneratedLive: \"23\",\n UserGeneratedLongFormOnDemand: \"22\",\n UserGeneratedShortFormOnDemand: \"21\"\n };\n }\n var vtype = ns_.StreamingTag.ContentType.ShortFormOnDemand;\n if (v.content_type && v.content_type == \"episode\") {\n vtype = ns_.StreamingTag.ContentType.LongFormOnDemand;\n }\n if (v.id && v.id.indexOf(\"cvplive\") != -1) {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n if (v.isLive && v.isLive == \"true\") {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n wminst.myStreamingTag.playVideoContentPart(metadata, vtype);\n});\nPubSub.subscribe(\"cs_video-pause\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\nPubSub.subscribe(\"cs_video-resume\", function(data) {\n var v = wminst.getVideoMetadata(data);\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n\n var clength = v.trt || 0;\n var c4 = \"CNN\";\n var c3 = \"*null\";\n var c6 = \"*null\";\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var adate = v.timestamp || \"\";\n try {\n if (adate) {\n adate = new Date(adate);\n adate = adate.toISOString().substring(0, 10);\n }\n } catch (e) {}\n if (window.location.hostname.indexOf(\"edition\") != -1) {\n c4 = \"CNNI\";\n c3 = \"CNNEDITION\";\n }\n if (typeof v.category != 'undefined' && v.category.toLowerCase() === \"spanish\") {\n c4 = \"CNNESPANOL\";\n }\n if (typeof v.category != 'undefined' && v.category.toLowerCase() === \"cnnmoney\") {\n c4 = \"CNNMONEY\";\n }\n var ch = wminst.Util.getCNNSection(0) || \"\";\n var pn = {\n \"entertainment\": \"CNNENT\",\n \"health\": \"CNNHEALTH\",\n \"politics\": \"CNNPOLITICS\",\n \"tech\": \"CNNTECH\",\n \"travel\": \"CNNTRAVEL\",\n \"us\": \"CNNUS\",\n \"world\": \"CNNWORLD\",\n \"opinions\": \"CNNOPINION\",\n \"living\": \"CNNLIVING\",\n \"cnn homepage\": \"CNNHOME\",\n \"ireport\": \"IREPORT\",\n \"justice\": \"CNNJUSTICE\",\n \"elections\": \"CNNPOLITICS\",\n \"style\": \"CNNSTYLE\"\n }[ch];\n if (pn) { c4 = pn; }\n if(pn && ch == \"elections\"){ c6 = \"ELECTION\";}\n if (wminst.isBusinessVideo(data)) {\n c4 = \"CNNBUSINESS\";\n c6 = \"BUSINESS\";\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_ci: v.id,\n ns_st_cl: clength,\n ns_st_st: \"*null\",\n ns_st_pu: \"CNN\",\n ns_st_pr: v.subcategory || \"*null\",\n ns_st_ep: v.headline || \"*null\",\n ns_st_sn: \"*null\",\n ns_st_en: \"*null\",\n ns_st_ge: v.category || \"*null\",\n ns_st_ia: \"0\",\n ns_st_ce: \"0\",\n ns_st_ddt: \"*null\",\n ns_st_tdt: adate || \"*null\",\n c3: c3,\n c4: c4,\n c6: c6,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.ContentType = {\n Bumper: \"99\",\n Live: \"13\",\n LongFormOnDemand: \"12\",\n Other: \"00\",\n ShortFormOnDemand: \"11\",\n UserGeneratedLive: \"23\",\n UserGeneratedLongFormOnDemand: \"22\",\n UserGeneratedShortFormOnDemand: \"21\"\n };\n }\n var vtype = ns_.StreamingTag.ContentType.ShortFormOnDemand;\n if (v.content_type && v.content_type == \"episode\") {\n vtype = ns_.StreamingTag.ContentType.LongFormOnDemand;\n }\n if (v.id && v.id.indexOf(\"cvplive\") != -1) {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n if (v.isLive && v.isLive == \"true\") {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n wminst.myStreamingTag.playVideoContentPart(metadata, vtype);\n});\n\nPubSub.subscribe(\"cs_video-complete\", function(data) {\n var v = wminst.getVideoMetadata(data);\n wminst.completed_vid = v.id;\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\n\nPubSub.subscribe(\"Video_Completed\", function(data) {\n var v = wminst.getVideoMetadata(data);\n wminst.completed_vid = v.id;\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\n});", "_satellite[\"_runScript8\"](function(event, target, Promise) {\nwminst.nielsenPageBeacon = function() {\n var ci, si, rp, random;\n ci = \"us-204044h\";\n si = escape(window.location.href);\n rp = escape(document.referrer);\n random = +(new Date());\n wminst.Util.sendImagePixel(\"//secure-us.imrworldwide.com/cgi-bin/m?ci=\" + ci + \"&cg=0&cc=1&si=\" + si + \"&rp=\" + rp +\"&ts=compact&rnd=\" + random);\n};\n\nif (!wminst.Util.isRefreshPage() && !wminst.Util.inIFrame()) {\n wminst.nielsenPageBeacon();\n}\n});", "_satellite[\"_runScript9\"](function(event, target, Promise) {\nwminst.nielsenVideoBeacon = function(state, data, cg) {\n var v = wminst.getVideoMetadata(data);\n var ci, c6, tl, random, url;\n ci = \"us-100120\";\n c6 = (v.category && (v.category == \"cnnmoney\" || v.category == \"business\")) ? \"vc,c02\" : \"vc,b01\";\n tl = state + \"-\" + v.id;\n random = +(new Date());\n url = \"//secure-us.imrworldwide.com/cgi-bin/m?ci=\" + ci + \"&c6=\" + c6 + \"&cc=1&tl=\" + tl + \"&rnd=\" + random;\n if (cg) url += \"&cg=\" + cg;\n wminst.Util.sendImagePixel(url);\n};\n\nPubSub.subscribe(\"cnnvideo-start\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-autostart\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-live\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data, \"live\");\n});\n\nPubSub.subscribe(\"cnnvideo-episode\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-complete\", function(data) {\n wminst.nielsenVideoBeacon(\"dav2\", data);\n});\n});", "f167c5af-6adf-45f3", "", "baf29482-8757-4843", "", "_satellite[\"_runScript3\"](function(event, target, Promise) {\n/*! A simple PubSub in JavaScript - v1.0.0 - 2014-01-12\n* https://github.com/bdadam/PubSub\n* The MIT License (MIT)\n* Copyright (c) 2013 Adam Beres-Deak */\n!function(){\"use strict\";function a(a){if(\"[object String]\"!==Object.prototype.toString.call(a))throw new TypeError(\"Event is not a string.\")}function b(a){if(\"function\"!=typeof a)throw new TypeError(\"Handler is not a function\")}var c={},d={};d.publish=d.pub=function(b){if(a(b),c[b])for(var d={event:b,args:Array.prototype.slice.call(arguments,1)},e=0,f=c[b].length;f>e;e++)c[b][e].apply(d,d.args)},d.subscribe=d.sub=function(d,e){a(d),b(e),(c[d]=c[d]||[]).push(e)},d.unsubscribe=d.unsub=function(){var d,e,f,g,h=Array.prototype.slice.call(arguments);if(h.length>=2){if(d=h[0],e=h[1],a(d),b(e),!c[d])return;for(f=0,g=c[d].length;g>f;f++)c[d][f]===e&&c[d].splice(f,1)}else{e=h[0],b(e);for(d in c)for(f=0,g=c[d].length;g>f;f++)c[d][f]===e&&c[d].splice(f,1)}},\"function\"==typeof define&&define.amd?define(function(){return d}):\"object\"==typeof module&&module.exports?module.exports=d:window.PubSub=d}();\n\nwindow.setJSMDVideoEvent = function(event, data) {\n\tif (event == \"cnnvideo-pause\" && !data.paused) {\n\t\tevent = \"cnnvideo-resume\";\n\t}\n\twindow.jsmdVideoEvent = {\n\t\tname: event,\n\t\ttime: +(new Date())\n\t};\n};\n\nwindow.trackAudioProgress = function(audInfo) {\n try {\n trackMetrics({\n type: \"audio-progress\",\n data: audInfo});\n } catch (e) {}\n};\n\nwindow.trackVideoProgress = function(vidInfo) {\n\ttry {\n\t\tsetJSMDVideoEvent(\"cnnvideo-progress\", vidInfo);\n\t\ttrackMetrics({\n\t\t\ttype: \"cnnvideo-progress\",\n\t\t\tdata: { video: vidInfo }\n\t\t});\n\t} catch(e){}\n};\n\nwindow.trackMetrics = function(action, data) {\n var realaction = action,\n realdata = data;\n if (typeof(action) == \"object\") {\n if (action.type != null) {\n realaction = action.type;\n }\n if (action.action != null) {\n realaction = action.action;\n }\n if (action.data != null) {\n realdata = action.data;\n }\n }\n if (typeof(realdata) == \"object\") {\n if (realdata.data != null) {\n realdata = realdata.data;\n }\n }\n var counter = 0;\n (function poll() {\n setTimeout(function() {\n if (wminst.subscribersReady || counter >= 10) {\n wminst.Util.log(\"trackMetrics subscribersReady =\", wminst.subscribersReady, \"counter =\", counter, \"action =\", realaction, \"data =\", realdata);\n PubSub.publish(realaction, realdata);\n } else {\n counter++;\n poll();\n }\n }, 100);\n })();\n \n //Handling ComScore Events here\n try {\n if(realaction == \"cnnvideo-preroll\" || realaction == \"cnnvideo-adcreative-start\"){\n\t \t \tPubSub.publish(\"cs_video-preroll\", realdata.video);\n \t} else if(realaction == \"cnnvideo-adcomplete\" || realaction == \"cnnvideo-midroll-complete\"){\n\t \tPubSub.publish(\"cs_ad-complete\", realdata.video);\n\t } else if(realaction == \"cnnvideo-start\" || realaction == \"cnnvideo-autostart\" || realaction == \"cnnvideo-live\" || realaction == \"cnnvideo-autosegment\" || realaction == \"cnnvideo-autoepisode\" || realaction == \"cnnvideo-episode\"){\n\t \t\t PubSub.publish(\"cs_video-play\", realdata.video);\n \t} else if(realaction == \"cnnvideo-pause\" && typeof realdata.video.paused !== 'undefined' && realdata.video.paused == true){\n\t \tPubSub.publish(\"cs_video-pause\", realdata.video);\n \t} else if(realaction == \"cnnvideo-pause\" && typeof realdata.video.paused !== 'undefined' && realdata.video.paused == false){\n\t \tPubSub.publish(\"cs_video-resume\", realdata.video);\n \t} else if(realaction == \"cnnvideo-complete\"){\n\t \tPubSub.publish(\"cs_video-complete\", realdata.video);\n \t }\n } catch(e){}\n\n};\n\nwindow.trackVideoEvent = function(data, event, playerid){\n\ttry {\n\t\tif (event !== \"cnnvideo-progress\") {\n\t\t\tsetJSMDVideoEvent(event, data);\n\t\t\tvar currVidObj = data;\n\t\t\tcurrVidObj.playerid = playerid;\n\t\t\ttrackMetrics({\n\t\t\t\ttype: event,\n\t\t\t\tdata: {\n\t\t\t\t\tvideo : currVidObj\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} catch(e){}\n};\n\nwindow.sendInteractionEvent = function(event, data){\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: event,\n\t\t\tdata: {\n\t\t\t\tinteraction: data\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendHP10Interaction = function (data){\n\tsendInteractionEvent(\"hp10-interaction\", \"10minpreview:\"+data);\n};\n\nwindow.sendGameInteraction = function(event,info){\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: event,\n\t\t\tdata: {\n\t\t\t\tvalue: info\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendVideoClick = function(info, event){\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: event,\n\t\t\tdata: {\n\t\t\t\tvalue: info\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendVideoEvent = function(data, event, playerid){\n\ttry {\n\t\tvar currVidObj = window.JSON.parse(data);\n\t\tcurrVidObj.playerid = playerid;\n\t\ttrackMetrics({\n\t\t\ttype: event,\n\t\t\tdata: {\n\t\t\t\tvideo : currVidObj\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendVideo2Event = function(data, event, playerid){\n\ttry {\n\t\tvar currVidObj = data;\n\t\tcurrVidObj.playerid = playerid;\n\t\ttrackMetrics({\n\t\t\ttype: event,\n\t\t\tdata: {\n\t\t\t\tvideo : currVidObj\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendAudioEvent = function(data, event, id) {\n try {\n\t\tvar currAudObj = (typeof data != \"string\"? data: window.JSON.parse(data));\n\t\t\ttrackMetrics({\n\t\t\t\ttype: event,\n\t\t\t\tdata: {\n\t\t\t\t\tinstance: id,\n\t\t\t\t\taudio: currAudObj\n\t\t\t\t}\n\t\t\t});\n\t} catch(e){}\n}; \n\nwindow.sendNewsPulse = function(data){\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: \"dynamic-newsPulseOmniCall\",\n\t\t\tdata: {\n\t\t\t\tnewspulse: {\n\t\t\t\t\tquery: data\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.sendHTML5Event = function(data, event){\n\tif (data.contentType ==\"audio\") {\n\t\ttrackMetrics(\"audio-start\",data.headline, \"adbp-audio\");\n\t} else {\n\t\tdata.metas= {branding:\"ireport\"};\n\t\ttry {\n\t\t\ttrackMetrics({\n\t\t\t\ttype: event,\n\t\t\t\tdata: {\n\t\t\t\t\tvideo : data\n\t\t\t\t}\n\t\t\t});\n\t\t} catch(e){}\n\t}\n};\n\nwindow.sendOpenStoryPerspective = function(data){\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: \"ireport-openstory\",\n\t\t\tdata: {\n\t\t\t\topenstory : data\n\t\t\t}\n\t\t});\n\t} catch(e){}\n};\n\nwindow.trackExitLinkMetrics = function(action){\n try{\n PubSub.publish(action,\"\");\n }\n catch(e){}\n};\n\nif (wminst.Util.isStellarPage() && wminst.Util.isUserAccountPage() && window.ZION_MESSAGE_BUS) {\n ZION_MESSAGE_BUS.subscribe(\"event_published\", function(message) {\n try {\n var msgIndex = message.length - 1;\n var eventObj = message[msgIndex].message.event; \n var eventName = eventObj.name;\n if (eventName == \"GenericSubmit\") {\n var compId = eventObj.props.component_id;\n if (compId == \"create_account\" || \"log_in\") {\n var actionId = (compId == \"create_account\") ? \"registration\" : \"login\";\n var httpResp = eventObj.props.traits.http_response;\n wminst.Util.log(\"eventName =\", eventName, \"compId =\", compId, \"httpResp =\", httpResp);\n if (httpResp == \"success\") {\n window.trackMetrics({\n type: \"site_\" + actionId + \"_success\",\n data: {action: compId}\n });\n }\n }\n }\n if (eventName == \"PaymentTransactionCompleted\") {\n\t\t\t\tvar billing_cycle = eventObj.props.billing_interval;\n\t\t\t\tif (billing_cycle == \"monthly\" || billing_cycle == \"annualy\" || billing_cycle == \"yearly\") {\n\t\t\t\t\tvar httpResp = eventObj.props.http_response;\n\t\t\t\t\twminst.Util.log(\"eventName =\", eventName, \"billing =\", billing_cycle, \"httpResp =\", httpResp);\n\t\t\t\t\tif (httpResp == \"success\") {\n\t\t\t\t\t\twindow.trackMetrics({\n\t\t\t\t\t\t\ttype: \"site_subscription_success\",\n\t\t\t\t\t\t\tdata: eventObj.props\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n } catch (e) {\n console.error(e);\n }\n })\n}\n//DOM scrapping to track retailer clicks clicked on CNN underscroed pages on non CNN links\nvar sendFBRetailClickPixel = function(data) {\n\ttry {\n\t\ttrackMetrics({\n\t\t\ttype: \"facebook-retailer-click\",\n\t\t\tdata: data\n\t\t});\n\t} catch(e){}\n}; \ntry{\n\tvar elements = document.querySelectorAll('[class*=\"offer-link\"]');\n\tfor (var i = 0; i < elements.length; i++) {\n\t\tvar data = {};\n\t\tvar linkText = elements[i].innerText ? elements[i].innerText : elements[i].innerHTML;\n\t\tif(typeof elements[i] !== 'undefined' && linkText !== ''){\n\t\t data.clickedLink = elements[i].href;\n\t\t data.clickedText = linkText;\n\t\t}\n\t\telements[i].addEventListener('click', function() {sendFBRetailClickPixel(data);}, false);\n\t}\n} catch(ex){}\n\n});", "13193ab4-b8b9-4ba6", "", "_satellite[\"_runScript4\"](function(event, target, Promise) {\nwminst.isAMPVideos = function() {\n var hostName = window.location.hostname;\n return hostName.indexOf(\"fave.api.cnn.io\") != -1 || hostName.indexOf(\"fave-api.cnn.com\") != -1;\n};\n\nwminst.isMoneyVideo = function(v) {\n var sectionName = v.sectionName || v.category || \"\";\n var sectionNameList = [\"media\", \"intl_business\", \"tech\", \"business\", \"business-videos\", \"cars\", \"investing\", \"success\", \"perspectives\", \"homes\"];\n return sectionNameList.includes(sectionName);\n};\n\nwminst.getAMPVideoTimeStamp = function() {\n var pathName = window.location.pathname;\n var ts = \"\";\n if (pathName.indexOf(\"/v1/amp\") != -1 || pathName.indexOf(\"/v1/cnneamp\") != -1 || pathName.indexOf(\"/v1/fbia\") != -1 || pathName.indexOf(\"/v1/fbiaV2\") != -1) {\n ts = new Date().getTime();\n }\n return ts;\n};\nvar mediaPlayer = new Array;\nwminst.getCNNMediaCollection = function() {\n\treturn {\n\t\tget: function(i, p) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\treturn mPlayer[j][p];\n\t\t\t\t}\t\n\t\t\t}\n\t\t},\n\t\tset: function(i, p, v) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tmPlayer[j][p] = v;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t},\n\t\ttoggle: function(i, p) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tvar v = mPlayer[j][p];\n\t\t\t\t\tmPlayer[j][p] = !v;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t},\t\t\n\t\tstart: function(i, t) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tmPlayer.push(new objMediaPlayer(i,t));\n\t\t\tfunction objMediaPlayer(cid, mediaTitle) {\n\t\t\t\tthis.containerId = cid;\n\t\t\t\tthis.mediaTitle = mediaTitle;\n\t\t\t\tthis.vidStarted = false;\n\t\t\t\tthis.audStarted = false;\n\t\t\t\tthis.hasScrubbed = false;\n\t\t\t\tthis.isAuto = false;\n\t\t\t\tthis.isTen = false;\n\t\t\t\tthis.isTwentyFive = false;\n\t\t\t\tthis.isHalf = false;\n\t\t\t\tthis.isSeventyFive = false;\n\t\t\t\tthis.isBuffering = false;\n\t\t\t\tthis.isPaused = false;\n\t\t\t\tthis.isMidrollStarted = false;\n\t\t\t\tthis.adNumber = 0;\n\t\t\t\tthis.startTime = (new Date).getTime();\n\t\t\t\tthis.currentTime = (new Date).getTime();\n\t\t\t\tthis.timeSpent = 0;\n\t\t\t}\n\t\t},\n\t\tpause: function(i) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tvar p = mPlayer[j].isPaused;\n\t\t\t\t\tvar b = mPlayer[j].isBuffering;\n\t\t\t\t\tif (!b) {\n\t\t\t\t\t\tif (p) {\n\t\t\t\t\t\t\tmPlayer[j].startTime = (new Date).getTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar playedTime = (new Date).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent;\n\t\t\t\t\t\t\tmPlayer[j].timeSpent = playedTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmPlayer[j].isPaused = !p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t},\n\t\tbuffer: function(i) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tvar p = mPlayer[j].isPaused;\n\t\t\t\t\tvar b = mPlayer[j].isBuffering;\n\t\t\t\t\tif (!p) {\n\t\t\t\t\t\tif (b) {\n\t\t\t\t\t\t\tmPlayer[j].startTime = (new Date).getTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar playedTime = (new Date).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent;\n\t\t\t\t\t\t\tmPlayer[j].timeSpent = playedTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t\tmPlayer[j].isBuffering = !b;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tprogress: function(i) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tmPlayer[j].currentTime = (new Date).getTime();\n\t\t\t\t\tvar playedTime = (mPlayer[j].currentTime - mPlayer[j].startTime + mPlayer[j].timeSpent) / 1000;\n\t\t\t\t\tmPlayer[j].startTime = (new Date).getTime();\n\t\t\t\t\tmPlayer[j].timeSpent = 0;\n\t\t\t\t\treturn Math.round(playedTime);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t},\n\t\tcomplete: function(i) {\n\t\t\tvar mPlayer = mediaPlayer;\n\t\t\tfor (var j = mPlayer.length - 1; j >= 0; j--) {\n\t\t\t\tif (mPlayer[j].containerId == i) {\n\t\t\t\t\tvar playedTime = ((new Date).getTime() - mPlayer[j].startTime + mPlayer[j].timeSpent) / 1000;\n\t\t\t\t\tmPlayer[j].timeSpent = 0;\n\t\t\t\t\treturn Math.round(playedTime);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t};\n};\n\n\nwminst.capCNNTimeSpent = function(timeSpent, trt, liveInterval) {\n try { //check media time spent value\n var timeLimit = 0;\n if ((parseFloat(timeSpent) == parseInt(timeSpent)) && !isNaN(timeSpent)) {\n if (liveInterval && liveInterval > 0) {\n timeLimit = liveInterval; //time limit value set by webdev\n } else {\n timeLimit = 60; //time limit in sec\n if (trt && parseFloat(trt) > 0) {\n timeLimit = parseFloat(trt) * 2;\n }\n }\n if (timeSpent > timeLimit) {\n timeSpent = timeLimit;\n } else if (timeSpent < 0) {\n timeSpent = 0;\n }\n } else {\n timeSpent = 0;\n }\n } catch (e) {\n timeSpent = 0;\n }\n return timeSpent;\n};\n\nwminst.capCNNTimeSpent2 = function(timeSpent, trt) {\n try { //check media time spent value\n if ((parseFloat(timeSpent) == parseInt(timeSpent)) && !isNaN(timeSpent)) { //valid time spent value\n if (trt && !isNaN(trt) && (parseFloat(trt) == parseInt(trt))) { //valid media length\n if (timeSpent > parseFloat(trt) * 2) {\n timeSpent = parseFloat(trt) * 2;\n } else if (timeSpent < 0) {\n timeSpent = 0;\n }\n } else { //invalid media length\n timeSpent = 0;\n }\n } else { //invalid time spent value\n timeSpent = 0;\n }\n } catch (e) {\n timeSpent = 0;\n }\n return timeSpent;\n};\n});", "27f618c0-0a33-4ce8", "", "_satellite[\"_runScript5\"](function(event, target, Promise) {\nPubSub.subscribe(\"site_registration_success\", function(data) {\n s.manageVars(\"clearVars\");\n s.linkTrackVars = \"events,server,channel,pageName,eVar26,eVar27,prop28,eVar28,eVar29,prop30,eVar30,prop32,eVar32,prop33,eVar33,prop35,eVar35,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\";\n s.linkTrackEvents = \"event52,event76\";\n s.events = s.linkTrackEvents;\n s.server = wminst.Util.getADBPURL(\"domain\");\n s.channel = wminst.Util.getCNNSection(0);\n s.pageName = wminst.Util.getCNNPageName();\n s.prop28 = wminst.Util.getCNNSection(1);\n s.prop30 = wminst.Util.getSiteSpecificSettings(1);\n s.prop32 = wminst.Util.getCNNTemplateType(\"long\");\n s.prop33 = wminst.Util.getCNNContentType(\"adbp:none\");\n s.prop35 = wminst.Util.getCNNCodeVersion();\n s.eVar36 = wminst.Util.getCNNKruxID();\n s.prop59 = wminst.Util.getCNNAdobeID();\n try {\n s.prop69 = \"user:account created\";\n } catch (e) {}\n try {\n\twminst.Util.setIds();\n\ts.tl(this, \"o\", \"site_registration_success\");\n } catch (e) {}\n s.clearVars();\n});\nPubSub.subscribe(\"site_login_success\", function(data) {\n s.manageVars(\"clearVars\");\n s.linkTrackVars = \"events,server,channel,pageName,eVar26,eVar27,prop28,eVar28,eVar29,prop30,eVar30,prop32,eVar32,prop33,eVar33,prop35,eVar35,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,eVar89,list2\";\n s.linkTrackEvents = \"event54,event76\";\n s.events = s.linkTrackEvents;\n s.server = wminst.Util.getADBPURL(\"domain\");\n s.channel = wminst.Util.getCNNSection(0);\n s.pageName = wminst.Util.getCNNPageName();\n s.prop28 = wminst.Util.getCNNSection(1);\n s.prop30 = wminst.Util.getSiteSpecificSettings(1);\n s.prop32 = wminst.Util.getCNNTemplateType(\"long\");\n s.prop33 = wminst.Util.getCNNContentType(\"adbp:none\");\n s.prop35 = wminst.Util.getCNNCodeVersion();\n s.eVar36 = wminst.Util.getCNNKruxID();\n s.prop59 = wminst.Util.getCNNAdobeID();\n try {\n s.prop69 = \"user:login success\";\n } catch (e) {}\n var userObj = wminst.Util.gCNNUserAuthState();\n s.eVar89 = userObj.user_login_status;\n try {\n\twminst.Util.setIds();\n\ts.tl(this, \"o\", \"site_login_success\");\n } catch (e) {}\n s.clearVars();\n});\n\nPubSub.subscribe(\"site_subscription_success\", function(data) {\n s.manageVars(\"clearVars\");\n s.linkTrackVars = \"events,pageName,channel,server,eVar27,prop28,eVar28,eVar29,prop30,eVar30,prop32,eVar32,prop33,eVar33,prop35,eVar35,prop69,eVar69,eVar102\";\n s.linkTrackEvents = \"event76,event108\";\n s.events = s.linkTrackEvents;\n s.pageName = wminst.Util.getCNNPageName();\n s.server = wminst.Util.getADBPURL(\"domain\");\n s.channel = wminst.Util.getCNNSection(0);\n s.prop28 = wminst.Util.getCNNSection(1);\n s.prop30 = wminst.Util.getSiteSpecificSettings(1);\n s.prop32 = wminst.Util.getCNNTemplateType(\"long\");\n s.prop33 = wminst.Util.getCNNContentType(\"adbp:none\") || \"adbp:none\";\n s.prop35 = wminst.Util.getCNNCodeVersion();\n if (data.billing_interval && data.billing_interval !== \"\") {\n\ts.eVar102 = data.billing_interval;\n }\n var interaction_type = \"cnn plus: subscription success\";\n s.prop69 = interaction_type; s.eVar69 = \"D=c69\";\n try {\n\twminst.Util.setIds();\n\ts.tl(this, \"o\", \"site_subscription_success\");\n } catch (e) {}\n s.clearVars();\n});\n});", "e8bec7a9-213b-44f6", "", "_satellite[\"_runScript6\"](function(event, target, Promise) {\nPubSub.subscribe(\"cnnvideo-start\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-autostart\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-live\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data, \"live\");\n});\n\nPubSub.subscribe(\"cnnvideo-episode\", function(data) {\n wminst.nielsenVideoBeacon(\"dav0\", data);\n});\n\nPubSub.subscribe(\"cnnvideo-complete\", function(data) {\n wminst.nielsenVideoBeacon(\"dav2\", data);\n});\n\nwminst.nielsenVideoBeacon = function(state, data, cg) {\n var v = wminst.Util.getVideoMetadata(data);\n var ci, c6, tl, random, url;\n ci = \"us-100120\";\n c6 = (v.category && (v.category == \"cnnmoney\" || v.category == \"business\")) ? \"vc,c02\" : \"vc,b01\";\n tl = state + \"-\" + v.id;\n random = +(new Date());\n url = \"//secure-us.imrworldwide.com/cgi-bin/m?ci=\" + ci + \"&c6=\" + c6 + \"&cc=1&tl=\" + tl + \"&rnd=\" + random;\n if (cg) url += \"&cg=\" + cg;\n wminst.Util.sendImagePixel(url);\n};\n});", "47d51a69-0d3a-4e0d", "", "_satellite[\"_runScript7\"](function(event, target, Promise) {\nwminst.bomboraPageBeacon = function() {\n if (!window._ml) {\n (function (w,d,t){\n _ml = w._ml || {};\n _ml.nq = w._ml.nq || [];\n _ml.nq.push(['track', '64240', {fp: 'YOUR_USER_ID'}]);\n var s, cd, tag; s = d.getElementsByTagName(t)[0]; cd = new Date();\n tag = d.createElement(t); tag.async = 1;\n tag.src = 'https://cdn.ml314.com/taglw.js';\n s.parentNode.insertBefore(tag, s);\n })(window,document,'script');\n } else {\n _ml.nq = window._ml.nq || [];\n _ml.nq.push(['track', '64240']);\n }\n};\n\nPubSub.subscribe(\"dynamic-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"tab-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"cnnsearch-results\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"weather-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"picker-pageview\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"readmore-page\", function(data) {\n wminst.bomboraPageBeacon();\n});\n\nPubSub.subscribe(\"breaking-news\", function(data) {\n if (data.domain && (data.domain == \"cnn.com\" || data.domain == \"us.cnn.com\" || data.domain == \"sweet.next.cnn.com\" || data.domain == \"edition.cnn.com\")) {\n // Do Nothing\n } else {\n wminst.bomboraPageBeacon();\n }\n});\n\n\n/* ============== Page Load ============= */\nif (!wminst.Util.isDynamicPage() && !wminst.Util.isFavePage() && !wminst.Util.inIFrame()) { \n wminst.bomboraPageBeacon();\n}\n});", "776f2e3c-a211-4b44", "", "105d744c-4f1f-4eed", "", "_satellite[\"_runScript9\"](function(event, target, Promise) {\ntry {\n requirejs([\"//i.cdn.turner.com/analytics/comscore/streamsense.5.2.0.160629.min.js\"], function() {});\n} catch (e) {\n wminst.Util.loadScript(\"//s.cdn.turner.com/analytics/comscore/streamsense.5.2.0.160629.min.js\");\n}\n\nPubSub.subscribe(\"Player_Ready\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n});\nPubSub.subscribe(\"cs_video-preroll\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n if (!wminst.prev_vid) { //first video\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n } else if (wminst.prev_vid && wminst.prev_vid !== data.id) { //new video\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n } else if (wminst.completed_vid && wminst.completed_vid == data.id) {\n wminst.completed_vid = \"\";\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n }\n wminst.prev_vid = data.id;\n var clength = data.ad_duration || 0;\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_cl: clength || 3000,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.AdType = {\n BrandedOnDemandContent: \"34\",\n BrandedOnDemandLive: \"35\",\n BrandedOnDemandMidRoll: \"32\",\n BrandedOnDemandPostRoll: \"33\",\n BrandedOnDemandPreRoll: \"31\",\n LinearLive: \"21\",\n LinearOnDemandMidRoll: \"12\",\n LinearOnDemandPostRoll: \"13\",\n LinearOnDemandPreRoll: \"11\",\n Other: \"00\"\n };\n }\n var atype = ns_.StreamingTag.AdType.LinearOnDemandPreRoll;\n if (data.adType && data.adType.toLowerCase() === \"midroll\") { atype = ns_.StreamingTag.AdType.LinearOnDemandMidRoll; } \n if (data.adType && data.adType.toLowerCase() === \"postroll\") { atype = ns_.StreamingTag.AdType.LinearOnDemandPostRoll; } \n if (data.isLive && (data.isLive == \"true\" || data.isLive == true)) {\n atype = ns_.StreamingTag.AdType.LinearLive;\n }\n wminst.myStreamingTag.playVideoAdvertisement(metadata, atype);\n});\nPubSub.subscribe(\"cs_ad-complete\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\nPubSub.subscribe(\"cs_video-play\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n if (!wminst.prev_vid) { //first video\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n } else if (wminst.prev_vid && wminst.prev_vid !== data.id) { //new video\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n } else if (wminst.completed_vid && wminst.completed_vid == data.id) {\n wminst.completed_vid = \"\";\n wminst.myStreamingTag = new ns_.StreamingTag({\n customerC2: \"6035748\"\n });\n }\n wminst.prev_vid = data.id;\n var clength = data.trt || 0;\n\tvar c4 = \"CNN\";\n\tvar c3 = \"*null\";\n\tvar c6 = \"*null\";\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var adate = data.timestamp || \"\";\n try {\n if (adate) {\n adate = new Date(adate);\n adate = adate.toISOString().substring(0, 10);\n }\n } catch (e) {}\n if (window.location.hostname.indexOf(\"edition\") != -1) {\n c4 = \"CNNI\";\n\t\tc3 = \"CNNEDITION\";\n }\n if (typeof data.category != 'undefined' && data.category.toLowerCase() === \"spanish\") {\n c4 = \"CNNESPANOL\";\n }\n if (typeof data.category != 'undefined' && data.category.toLowerCase() === \"cnnmoney\") {\n c4 = \"CNNMONEY\";\n }\n\tvar ch = wminst.Util.getCNNSection(0) || \"\";\n\tvar pn = {\n\t\t\t\"entertainment\":\t\"CNNENT\",\n\t\t\t\"health\":\t\t \"CNNHEALTH\",\n\t\t\t\"politics\":\t\t \"CNNPOLITICS\",\n\t\t\t\"tech\":\t\t\t \"CNNTECH\",\n\t\t\t\"travel\":\t\t \"CNNTRAVEL\",\n\t\t\t\"us\":\t\t\t \"CNNUS\",\n\t\t\t\"world\":\t\t \"CNNWORLD\",\n\t\t\t\"opinions\":\t\t \"CNNOPINION\",\n\t\t\t\"living\":\t\t \"CNNLIVING\",\n\t\t\t\"cnn homepage\":\t \"CNNHOME\",\n\t\t\t\"ireport\": \"IREPORT\",\n\t\t\t\"justice\": \"CNNJUSTICE\",\n\t\t\t\"elections\": \"CNNPOLITICS\",\n\t\t\t\"style\":\t\t\t \"CNNSTYLE\"\n\t\t} [ch];\n\tif (pn) { c4 = pn; }\n\tif(pn && ch == \"elections\"){ c6 = \"ELECTION\";}\n if (wminst.isMoneyVideo(data)) {\n \t\tc4 = \"CNNBUSINESS\";\n \t\tc6 = \"BUSINESS\";\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_ci: data.id,\n ns_st_cl: clength,\n ns_st_st: \"*null\",\n ns_st_pu: \"CNN\",\n ns_st_pr: data.subcategory || \"*null\",\n ns_st_ep: data.headline || \"*null\",\n ns_st_sn: \"*null\",\n ns_st_en: \"*null\",\n ns_st_ge: data.category || \"*null\",\n ns_st_ia: \"0\",\n ns_st_ce: \"0\",\n ns_st_ddt: \"*null\",\n ns_st_tdt: adate || \"*null\",\n c3: c3,\n c4: c4,\n c6: c6,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.ContentType = {\n Bumper: \"99\",\n Live: \"13\",\n LongFormOnDemand: \"12\",\n Other: \"00\",\n ShortFormOnDemand: \"11\",\n UserGeneratedLive: \"23\",\n UserGeneratedLongFormOnDemand: \"22\",\n UserGeneratedShortFormOnDemand: \"21\"\n };\n }\n var vtype = ns_.StreamingTag.ContentType.ShortFormOnDemand;\n if (data.content_type && data.content_type == \"episode\") {\n vtype = ns_.StreamingTag.ContentType.LongFormOnDemand;\n }\n if (data.id && data.id.indexOf(\"cvplive\") != -1 ) {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n if (data.isLive && data.isLive == \"true\") {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n wminst.myStreamingTag.playVideoContentPart(metadata, vtype);\n});\nPubSub.subscribe(\"cs_video-pause\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\nPubSub.subscribe(\"cs_video-resume\", function(data) {\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n\n var clength = data.trt || 0;\n\tvar c4 = \"CNN\";\n\tvar c3 = \"*null\";\n\tvar c6 = \"*null\";\n try {\n clength = parseInt(clength);\n if (clength % 1000 !== 0) {\n clength = clength * 1000;\n }\n } catch (e) {\n clength = 0;\n }\n var adate = data.timestamp || \"\";\n try {\n if (adate) {\n adate = new Date(adate);\n adate = adate.toISOString().substring(0, 10);\n }\n } catch (e) {}\n if (window.location.hostname.indexOf(\"edition\") != -1) {\n c4 = \"CNNI\";\n\t\tc3 = \"CNNEDITION\";\n }\n if (typeof data.category != 'undefined' && data.category.toLowerCase() === \"spanish\") {\n c4 = \"CNNESPANOL\";\n }\n if (typeof data.category != 'undefined' && data.category.toLowerCase() === \"cnnmoney\") {\n c4 = \"CNNMONEY\";\n }\n\tvar ch = wminst.Util.getCNNSection(0) || \"\";\n\tvar pn = {\n\t\t\t\"entertainment\":\t\"CNNENT\",\n\t\t\t\"health\":\t\t \"CNNHEALTH\",\n\t\t\t\"politics\":\t\t \"CNNPOLITICS\",\n\t\t\t\"tech\":\t\t\t \"CNNTECH\",\n\t\t\t\"travel\":\t\t \"CNNTRAVEL\",\n\t\t\t\"us\":\t\t\t \"CNNUS\",\n\t\t\t\"world\":\t\t \"CNNWORLD\",\n\t\t\t\"opinions\":\t\t \"CNNOPINION\",\n\t\t\t\"living\":\t\t \"CNNLIVING\",\n\t\t\t\"cnn homepage\":\t \"CNNHOME\",\n\t\t\t\"ireport\": \"IREPORT\",\n\t\t\t\"justice\": \"CNNJUSTICE\",\n\t\t\t\"elections\": \"CNNPOLITICS\",\n\t\t\t\"style\":\t\t\t \"CNNSTYLE\"\n\t\t} [ch];\n\tif (pn) { c4 = pn; }\n\tif(pn && ch == \"elections\"){ c6 = \"ELECTION\";}\n if (wminst.isMoneyVideo(data)) {\n \t\tc4 = \"CNNBUSINESS\";\n \t\tc6 = \"BUSINESS\";\n }\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var metadata = {\n ns_st_ci: data.id,\n ns_st_cl: clength,\n ns_st_st: \"*null\",\n ns_st_pu: \"CNN\",\n ns_st_pr: data.subcategory || \"*null\",\n ns_st_ep: data.headline || \"*null\",\n ns_st_sn: \"*null\",\n ns_st_en: \"*null\",\n ns_st_ge: data.category || \"*null\",\n ns_st_ia: \"0\",\n ns_st_ce: \"0\",\n ns_st_ddt: \"*null\",\n ns_st_tdt: adate || \"*null\",\n c3: c3,\n c4: c4,\n c6: c6,\n cs_ucfr: cs_ucfr\n };\n if (ns_) {\n ns_.StreamingTag.ContentType = {\n Bumper: \"99\",\n Live: \"13\",\n LongFormOnDemand: \"12\",\n Other: \"00\",\n ShortFormOnDemand: \"11\",\n UserGeneratedLive: \"23\",\n UserGeneratedLongFormOnDemand: \"22\",\n UserGeneratedShortFormOnDemand: \"21\"\n };\n }\n var vtype = ns_.StreamingTag.ContentType.ShortFormOnDemand;\n if (data.content_type && data.content_type == \"episode\") {\n vtype = ns_.StreamingTag.ContentType.LongFormOnDemand;\n }\n if ( data.id && data.id.indexOf(\"cvplive\") != -1 ){\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n if (data.isLive && data.isLive == \"true\") {\n vtype = ns_.StreamingTag.ContentType.Live;\n }\n wminst.myStreamingTag.playVideoContentPart(metadata, vtype);\n});\nPubSub.subscribe(\"cs_video-complete\", function(data) {\n wminst.completed_vid = data.id;\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\nPubSub.subscribe(\"Video_Completed\", function(data) {\n wminst.completed_vid = data.id;\n if (typeof wminst.myStreamingTag != \"undefined\") {\n wminst.myStreamingTag.stop();\n }\n});\n});", "8fff4f94-b3a0-49f4", "", "_satellite[\"_runScript10\"](function(event, target, Promise) {\nwminst.comscorePageBeacon = function() {\n var c_id = \"6035748\";\n var cs_ucfr = wminst.Util.isTagConsented(\"comscore\") ? \"1\" : \"0\";\n var _comscore = window._comscore = _comscore || [];\n if (wminst.Util.isFBIAPage() === true) {\n var comscorekw = \"fbia\";\n _comscore.push({ c1: \"2\", c2: c_id, cs_ucfr: cs_ucfr, options:{url_append: \"comscorekw=fbia\"}});\n } else {\n _comscore.push({ c1: \"2\", c2: c_id, cs_ucfr: cs_ucfr });\n }\n \n try {\n if (window.COMSCORE) {\n COMSCORE.beacon(_comscore[0]);\n wminst.Util.sendImagePixel(\"//cdn.cnn.com/analytics/cnn/comscore-pageview-candidate.json\");\n } else {\n var protocol = document.location.protocol == \"https:\" ? \"https://sb\" : \"http://b\";\n wminst.Util.loadScript(protocol + \".scorecardresearch.com/beacon.js\");\n }\n } catch (e) {}\n};\n\nPubSub.subscribe(\"dynamic-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"tab-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"cnnsearch-results\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"weather-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"picker-pageview\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"cnngallery-click\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"readmore-page\", function(data) {\n wminst.comscorePageBeacon();\n});\n\nPubSub.subscribe(\"breaking-news\", function(data) {\n if (data.domain && (data.domain == \"cnn.com\" || data.domain == \"us.cnn.com\" || data.domain == \"sweet.next.cnn.com\" || data.domain == \"edition.cnn.com\")) {\n // Do Nothing\n } else {\n wminst.comscorePageBeacon();\n }\n});\n\n\n/* ============== Page Load ============= */\nif (!wminst.Util.isDynamicPage() && !wminst.Util.isFavePage() && !wminst.Util.inIFrame()) { \n wminst.comscorePageBeacon();\n}\n\n\n});", "eb13f682-6922-4e4f", "", "_satellite[\"_runScript11\"](function(event, target, Promise) {\nvar _qevents = _qevents || [];\n\n(function() {\n var elem = document.createElement('script');\n elem.src = (document.location.protocol == \"https:\" ? \"https://secure\" : \"http://edge\") + \".quantserve.com/quant.js\";\n elem.async = true;\n elem.type = \"text/javascript\";\n elem.onload = function() {\n window._qevents.push({\n qacct:\"p-D1yc5zQgjmqr5\"\n });\n }\n var scpt = document.getElementsByTagName('script')[0];\n scpt.parentNode.insertBefore(elem, scpt);\n})();\n});", "8340dd39-40c5-4fa2", "", "_satellite[\"_runScript12\"](function(event, target, Promise) {\nvar script = document.createElement('script');\nscript.type = 'text/javascript';\nscript.src = '//tag.bounceexchange.com/340/i.js';\nscript.async = true;\ndocument.head.appendChild(script);\n});", "https://signal-beacon.s-onetag.com/cnn-beacon.min.js?affiliateId=276894", "5914ba5e-9b7b-4207", "", "_satellite[\"_runScript10\"](function(event, target, Promise) {\nfunction checkUserAuthentication(){var e=\"\";return window.is_expansion||(e=void 0!==s.prop32&&s.prop32.includes(\"interactive\")?wminst.Util.getCNNAuthenticated(\"authid\",\"displayname\",\"reg:logged in\",\"requires authentication\",\"reg:not logged in\",\"?\"):void 0!==s.prop28&&\"watch cnn:activation\"==s.prop28?wminst.Util.getCNNAuthenticated(\"authid\",\"displayname\",\"reg:logged in\",\"does not require authentication\",\"reg:not logged in\",\"?\"):wminst.Util.getCNNAuthenticated(\"authid\",\"displayname\",\"reg:logged in\",\"anonymous\",\"reg:not logged in\",\"?\")),e}wminst.trackPage=function(){wminst.Util.setCommonVars(!0),wminst.Util.setPageVars(),s.t()},wminst.trackLink=function(e){wminst.Util.setCommonVars(!1),s.tl(this,\"o\",e)},wminst.getSocialClick=function(e){var t=e.interaction||e.clickObj||{},r=\"string\"==typeof t?t:t.socialType||\"\";return(r=r.replace(\": \",\":\")).startsWith(\"social\")||(r=\"social:\"+r),r.endsWith(\"click\")||(r+=\"_click\"),wminst.Util.isFactsFirstPage()&&(r=r.replace(\"social:\",\"facts first:share:\")),t.isMainNav&&(r+=\":global\"),t.component&&t.socialType&&t.action&&(r=t.component+\":\"+t.socialType+\":\"+t.action),r},wminst.getInteractionType=function(e){var t=\"\";return\"priceless xi\"==e.branding_social?t=\"priceless xi\":\"politics:submit debate topics\"==e.interaction?t=\"debate topic submission\":s.prop69&&(t=s.prop69),t},wminst.waitAfterInteraction=function(e){\"account nav:topics you can follow\"==e.interaction&&wminst.Util.wait(50)},wminst.setBounceX=function(e){if(e.bouncex&&(s.prop62=e.bouncex.toLowerCase(),s.linkTrackEvents=s.linkTrackEvents+\",event20\",s.events=s.linkTrackEvents,\"\"!==s.prop62)){let e=s.events.split(\",\");for(let t=0;t<=e.length;t++)\"event26\"!==e[t]&&\"event39\"!==e[t]&&\"event76\"!==e[t]&&\"event21\"!==e[t]||(e.splice(t,1),t=0);s.linkTrackEvents=e.toString(),s.events=s.linkTrackEvents,s.linkTrackVars=\"events,campaign,eVar36,eVar59,prop59,prop62,eVar62,eVar73,prop73,list2\"}},wminst.setDynamicPageHeadline=function(e){if(e.headline)try{window.CNN=window.CNN||{},window.CNN.omniture=window.CNN.omniture||{},window.CNN.omniture.section=e.section,window.CNN.omniture.template_type=e.template_type,window.CNN.omniture.branding_content_page=e.branding_content_page,window.CNN.omniture.branding_social=e.branding_social,window.CNN.omniture.cap_author=e.cap_author,window.CNN.omniture.cap_genre=e.cap_genre,window.CNN.omniture.cap_content_type=e.cap_content_type,window.CNN.omniture.cap_topic=e.cap_topic,window.CNN.contentModel=window.CNN.contentModel||{},window.CNN.contentModel.analytics=window.CNN.contentModel.analytics||{},window.CNN.contentModel.analytics.pageTop=e.page_top||{},window.CNN.contentModel.analytics.isArticleVideoCollection=e.is_article_video_collection||!1,window.CNN.omniture.user_auth_state=e.user_auth_state,s.prop10=wminst.Util.getCNNDaysSinceLastPublish(e.publish_date),s.prop14=e.branding_social,s.prop14&&\"\"!==s.prop14&&(s.events=\"event24,\"+s.events),wminst.Util.addBrandingEvent(),s.linkTrackEvents=s.events,s.prop16=e.publish_date,s.prop23=e.headline.toLowerCase(),s.channel=e.section[0],s.prop28=e.section[0]+\":\"+(e.section[1]?e.section[1]:\"nvs\"),wminst.Util.addArticleEvent(),s.linkTrackEvents=s.events,e.load_type&&\"lazy_load\"==e.load_type&&(s.events=\"event26,event72\",s.linkTrackEvents=s.events),e.load_type&&\"refresh_load\"==e.load_type&&(s.events=\"event26,event71\",s.linkTrackEvents=s.events)}catch(e){}},wminst.setOnboardingPageName=function(e){\"onboarding\"==e.page&&(s.pageName=s.pageName||wminst.Util.getCNNPageName(),e.pathName&&(s.pageName+=e.pathName),e.viewName&&(s.pageName+=\"/\"+e.viewName))},wminst.setOnboardingInteraction=function(e,t){\"onboarding\"==e.page&&(s.pageName=t,s.prop69=\"registration onboarding\",e.interaction&&(s.prop69+=\":\"+e.interaction),e.newsletter&&(s.prop69+=\":\"+e.newsletter))},wminst.setModuleLoad=function(e){if(\"module load\"==e.interaction){wminst.Util.setLinkTrackVars(\"eVar122,eVar123\"),s.linkTrackEvents=\"event117\";let r=(e.componentName||\"\").toLowerCase();if(r.includes(\"follow topic\")){s.linkTrackEvents=\"event116\";let t=e.followTopicNames||[];for(let e=0;e{t.push(e.message?.toLowerCase())})),e.errorMessage&&t.push(e.errorMessage.toLowerCase()),t.join()},wminst.getLSPostInteraction=function(e){var t=e.isDeepLink?\"deeplink\":\"not deeplink\";return[\"live story\",e.postNumber,e.totalPosts,e.tabView,e.sortType,e.postType,t].join(\":\").toLowerCase()},wminst.getSubscriptionInfo=function(e){if(\"subscription cancel success\"==e.action&&(e.subModify=\"cancelled\"),e.subCurrent&&e.subModify)return[e.subCurrent,e.subModify].join(\":\").toLowerCase()},wminst.trackArticleViewed=function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\";var t={\"article start\":\"event43\",\"article 25\":\"event44\",\"article 50\":\"event46\",\"article 75\":\"event47\",\"article complete\":\"event57\"}[e.interaction];t&&(s.linkTrackEvents=t+\",event76\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop69=wminst.Util.getCNNTemplateType(\"long\")+\":\"+e.interaction,wminst.trackLink(e.interaction),s.clearVars())},wminst.trackUserAccount=function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2,eVar101,eVar131,eVar133,eVar134\";var t={\"account created\":\"event52\",\"logged in\":\"event54\",\"logged out\":\"event101\",\"login failure\":\"event102\",\"registration failure\":\"event103\",\"subscription success\":\"event108\",\"subscription failure\":\"event127\"}[e.action];if(t){parseInt(t.substr(5))<76?s.linkTrackEvents=t+\",event76\":s.linkTrackEvents=\"event76,\"+t,s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop69=\"cnn account:\"+e.action,e.method&&(s.prop69+=\":\"+e.method.toLowerCase());var r=wminst.getErrorMessage(e);r&&(s.prop69+=\":\"+r),s.eVar101=wminst.Util.modSubscriberType(e.subType),s.eVar131=(e.method||\"\").toLowerCase(),s.eVar133=wminst.getSubscriptionInfo(e),s.eVar134=(e.productId||\"\").toLowerCase(),wminst.trackLink(s.prop69),s.clearVars()}},wminst.trackLiveStoryPost=function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop43,prop50,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event121\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop43=e.postId||\"\",s.prop50=(e.postTitle||\"\").toLowerCase(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop69=wminst.getLSPostInteraction(e.interaction),wminst.trackLink(s.prop69),s.clearVars()},PubSub.subscribe(\"dynamic-autoRefresh\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,eVar37,prop44,eVar45,prop46,eVar46,prop47,eVar47,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event60\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.eVar37=wminst.Util.getCNNPlatform(),s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop69=e,s.prop73=wminst.Util.getCNNVisitorID(\"s_vi\"),wminst.trackLink(\"auto-refresh\"),s.clearVars()})),PubSub.subscribe(\"dynamic-page\",(function(e){if((wminst.Util.isTravelPage()||wminst.Util.isStylePage())&&!wminst.Util.isLiveStoryPage())return wminst.trackPage();s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,hier1,prop2,eVar2,prop4,eVar4,prop5,eVar5,prop14,eVar14,prop15,eVar15,eVar22,prop23,eVar23,prop43,prop44,eVar45,prop48,prop50,eVar50,prop51,prop64,eVar64,eVar65,prop73,eVar73,prop75,eVar75,eVar79,eVar105,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents;var t=e.clickObj||{};if(t.socialType){var r=s.pageName;if(r.match(/\\s\\[.+\\]$/)){var a=/(.+)\\s\\[.+\\]$/.exec(r);a&&(r=a[1])}s.pageName=r+\" [\"+t.socialType+\"]\"}if(e.pageURL){try{e.pageURL.split(\"/\")[2].replace(\"www.\",\"\"),e.pageURL=e.pageURL.toLowerCase(),e.pageURL=e.pageURL.replace(/^.*\\/\\/[^\\/]+/,\"\"),e.pageURL=e.pageURL.replace(\"/index.html\",\"/\"),s.pageName=wminst.Util.getCNNPageName(e.pageURL)}catch(e){}}void 0!==window.CNN&&void 0!==window.CNN.omniture&&void 0!==window.CNN.omniture.section&&\"facts first\"==window.CNN.omniture.section[1]&&(s.linkTrackEvents=s.linkTrackEvents+\",event59\",s.events=s.linkTrackEvents),s.pageURL=wminst.Util.getCNNPageURL();try{var i=\"\",n=\"\",o=\"\";n=wminst.Util.getCNNPublishDate(),i=wminst.Util.getCNNDaysSinceLastPublish(\"a\");var p=[\"content:\",\"live story\"];o=wminst.Util.getCNNTemplateType(\"long\");var c=!1;if(o&&void 0!==o){for(var l in p)-1!=o.indexOf(p[l])&&(c=!0);c?(s.prop10=i,s.prop16=n):(s.prop10=\"\",s.prop16=\"\")}if(void 0!==window.CNN.omniture&&void 0!==window.CNN.omniture.branding_social)try{s.prop14=window.CNN.omniture.branding_social||\"\"}catch(e){}s.prop23=wminst.Util.getCNNPageHeadline(),\"ngtv\"==wminst.Util.getCNNUIEngagement()&&(s.prop57=e.mvpd,s.prop59=e.adobe_hash_id)}catch(e){}wminst.setDynamicPageHeadline(e);try{s.prop64=wminst.Util.getCNNUIEngagement(),s.prop2=wminst.Util.getCNNAuthor(),wminst.Util.setPageAttribution(),s.prop5=wminst.Util.getCNNCapGenre(),s.prop8=wminst.Util.getCNNVisitNumber(),s.eVar15=wminst.Util.getCNNTrafficPartner(),s.eVar22=wminst.Util.getCNNVideoOpportunity(),s.prop26=wminst.Util.getCNNBaseURL(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),s.prop43=wminst.Util.getCNNPostID(),s.prop44=wminst.Util.getCNNSourceID(),s.eVar45=wminst.Util.getLSPostPosition(),s.prop48=wminst.Util.getCNNTopicAvailability(),s.prop50=wminst.Util.getCNNPostTitle(),s.prop51=wminst.Util.getCNNSiteSectionLevel3(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop49=wminst.Util.getCNNPreviousPageName(),s.prop56=wminst.Util.getCNNOrientation(),s.prop57=wminst.Util.getCNNMVPD(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop75=wminst.Util.getCNNUserAuthState(),s.hier1=wminst.Util.getCNNHierachy()}catch(e){}try{if(wminst.Util.isPoliticsExplorer()&&(s.eVar50=wminst.Util.getCNNInteractiveState(e),s.prop51=wminst.Util.getCNNSiteSectionLevel3(\"explorer\"),s.eVar79=wminst.Util.getCNNExploreIndentify(e)),e.interaction_type&&-1!=e.interaction_type.indexOf(\"road-to-270\")){var m=e.interaction_type.split(\":\");s.pageName=s.pageName+\"[\"+m[2].toLowerCase()+\"]\",s.prop51=wminst.Util.getCNNSiteSectionLevel3(\"road-to-270\")}}catch(e){}wminst.setOnboardingPageName(e),wminst.trackPage()})),PubSub.subscribe(\"refresh_load\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,hier1,prop2,eVar2,prop4,eVar4,prop5,eVar5,prop14,eVar14,prop15,eVar15,eVar22,prop23,eVar23,prop43,prop44,eVar45,prop48,prop50,eVar50,prop51,prop64,eVar64,eVar65,prop73,eVar73,prop75,eVar75,eVar79,eVar105,list2\",s.events=\"event26,event71\",s.linkTrackEvents=s.events,s.prop2=wminst.Util.getCNNAuthor(),wminst.Util.setPageAttribution(),s.prop5=wminst.Util.getCNNCapGenre(),s.prop8=wminst.Util.getCNNVisitNumber(),s.prop10=wminst.Util.getCNNDaysSinceLastPublish(\"a\"),s.eVar15=wminst.Util.getCNNTrafficPartner(),s.prop16=wminst.Util.getCNNPublishDate(),s.eVar22=wminst.Util.getCNNVideoOpportunity(),s.prop26=wminst.Util.getCNNBaseURL(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),s.prop44=wminst.Util.getCNNSourceID(),s.eVar45=wminst.Util.getLSPostPosition(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop48=wminst.Util.getCNNTopicAvailability(),s.prop49=wminst.Util.getCNNPreviousPageName(),s.prop51=wminst.Util.getCNNSiteSectionLevel3(),s.prop56=wminst.Util.getCNNOrientation(),s.prop57=wminst.Util.getCNNMVPD(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop64=wminst.Util.getCNNUIEngagement(),s.prop75=wminst.Util.getCNNUserAuthState(),s.hier1=wminst.Util.getCNNHierachy();try{s.prop23=e.headline.toLowerCase(),s.prop43=e.post_id,s.prop50=e.post_title.toLowerCase()}catch(e){}wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"dynamic-link\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,wminst.trackLink(e.link_name),s.clearVars()})),PubSub.subscribe(\"tab-page\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop44,prop51,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,s.prop44=wminst.Util.getCNNSourceID(),s.prop51=wminst.Util.getCNNSiteSectionLevel3();try{s.pageName=\"cnn:v:/video/\"+e}catch(e){}s.pageURL=wminst.Util.getCNNPageURL(),wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"cnnsearch-results\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop8,eVar8,eVar15,eVar22,prop26,prop27,eVar36,prop37,eVar37,prop39,eVar39,prop44,prop46,eVar46,prop47,eVar47,prop59,eVar59,prop64,eVar64,prop73,eVar73,prop75,eVar75,hier1,list2\",s.linkTrackEvents=\"event26,event27\",s.events=s.linkTrackEvents,s.prop8=wminst.Util.getCNNVisitNumber(28),s.eVar15=wminst.Util.getCNNTrafficPartner(),s.eVar22=wminst.Util.getCNNVideoOpportunity(),s.prop26=wminst.Util.getCNNBaseURL(),s.prop27=e.search_results_count+\"\",s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform();try{e.search_term=e.search_term.replace(/\\+/g,\" \"),e.search_term=e.search_term.trim(),e.search_term=e.search_term.toLowerCase()||\"empty search\"}catch(e){}s.prop39=e.search_term,s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop49=wminst.Util.getCNNPreviousPageName(),s.prop56=wminst.Util.getCNNOrientation(),s.prop57=wminst.Util.getCNNMVPD(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop64=wminst.Util.getCNNUIEngagement(),s.prop75=wminst.Util.getCNNUserAuthState(),s.hier1=wminst.Util.getCNNHierachy(),s.pageURL=wminst.Util.getCNNPageURL(),wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"weather-page\",(function(){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop44,list2\",s.linkTrackEvents=\"event62\",s.events=s.linkTrackEvents,s.prop44=wminst.Util.getCNNSourceID(),s.pageURL=wminst.Util.getCNNPageURL(),wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"dynamic-impressions\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop18,eVar18,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents;try{s.prop18=e.value}catch(e){}s.eVar18=\"D=c18\";try{wminst.trackLink(e.link_name+\"\")}catch(e){}s.clearVars()})),PubSub.subscribe(\"breaking-news\",(function(e){s.linkTrackVars=\"events,prop4,eVar4,prop8,eVar8,prop16,eVar16,eVar22,eVar36,prop37,eVar37,prop46,eVar46,prop47,eVar47,prop56,eVar56,prop57,eVar57,prop59,eVar59,prop64,eVar64,prop69,eVar69,prop73,eVar73,prop75,eVar75,list2\";var t=wminst.Util.getCNNBreakingNewsHP(s.prop32,s.channel);s.pageURL=wminst.Util.getCNNPageURL(),s.prop4=t+e.headline.toLowerCase(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop69=e.item,s.manageVars(\"clearVars\",\"prop16,eVar16,prop44,prop55,eVar55\",1),!e.domain||\"cnn.com\"!=e.domain&&\"us.cnn.com\"!=e.domain&&\"sweet.next.cnn.com\"!=e.domain&&\"edition.cnn.com\"!=e.domain?(s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,wminst.trackPage()):(s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents),s.clearVars()})),PubSub.subscribe(\"picker-pageview\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,campaign,heir1,prop8,eVar8,prop26,prop34,evar34,eVar36,prop37,eVar37,prop44,prop46,eVar46,prop47,eVar47,eVar49,eVar49,prop56,eVar56,prop59,eVar59,eVar72,prop75,eVar75,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,s.prop1=s.eVar1=s.prop2=s.eVar2=s.prop3=s.eVar3=s.prop4=s.eVar4=s.prop6=s.eVar6=s.eVar10=s.prop16=s.eVar16=s.prop18=s.eVar18=s.prop31=s.eVar31=s.eVar41=s.eVar53=s.eVar54=s.prop64=s.eVar64=s.prop67=s.eVar67=s.prop68=s.eVar68=s.prop69=s.eVar69=s.prop73=s.eVar73=\"\",s.pageName=\"cnn:o:[\"+(e.page_name||\"\")+\"]\",s.channel=\"tve\",s.pageURL=wminst.Util.getCNNPageURL(),s.prop8=wminst.Util.getCNNVisitNumber(28),s.prop26=wminst.Util.getCNNBaseURL(),s.prop28=\"tve:picker\",s.prop34=checkUserAuthentication(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop49=wminst.Util.getCNNPreviousPageName(),s.prop56=wminst.Util.getCNNOrientation(),s.prop59=wminst.Util.getCNNAdobeID();try{s.prop72=e.free_preview}catch(e){}s.prop32=\"none\",s.eVar72=s.prop72,s.prop72=\"\",\"cnn:o:[tve: successful login]\"==s.pageName?(s.prop7=s.eVar7=s.prop10=s.eVar10=s.eVar22=s.prop23=s.eVar23=s.prop25=s.eVar25=s.eVar65=\"\",s.linkTrackEvents=\"event37\",s.events=s.linkTrackEvents,s.eVar56=s.prop56,s.prop56=\"\",s.eVar57=s.prop57,s.prop57=\"\",s.eVar59=s.prop59,s.prop59=\"\",s.hier1=\"\"):(s.prop57=s.eVar57=\"\",s.prop59=s.eVar59=\"\");try{s.prop75=wminst.Util.getCNNUserAuthState()}catch(e){}wminst.setinterval_id&&clearInterval(wminst.setinterval_id),wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"picker-click\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop14,eVar14,prop34,eVar34,eVar36,prop37,eVar37,prop46,eVar46,prop47,eVar47,eVar56,eVar57,eVar59,prop69,eVar69,eVar72,prop75,eVar75,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.eVar26=\"cnn:o:[\"+(e.page_name||\"\")+\"]\",s.channel=\"tve\",s.prop28=\"tve:picker\",s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.eVar56=wminst.Util.getCNNOrientation(),s.prop56=\"\";try{s.eVar57=e.tve_mvpd.toLowerCase(),s.prop69=\"tve:picker:\"+e.tve_mvpd.toLowerCase()}catch(e){}s.eVar59=\"no mvpd set\";try{s.eVar72=e.free_preview}catch(e){}s.prop73=s.eVar73=\"\";try{s.prop75=wminst.Util.getCNNUserAuthState()}catch(e){}wminst.trackLink(\"picker-click:\"+e.tve_mvpd.toLowerCase()),s.clearVars()})),PubSub.subscribe(\"social-click\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop14,eVar14,eVar36,prop43,prop50,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop43=wminst.Util.getCNNPostID(),s.prop50=(e.clickObj?.headline||\"\").toLowerCase(),s.prop14=(e.clickObj||{}).branding_ad,s.eVar14=\"\",s.prop59=wminst.Util.getCNNAdobeID(),s.prop69=wminst.getSocialClick(e);var t=s.prop69.replace(\"social:\",\"\");wminst.trackLink(\"social-click:\"+t),s.clearVars()})),PubSub.subscribe(\"cnngallery-click\",(function(e){if(s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop2,eVar2,prop4,eVar4,prop5,eVar5,prop6,eVar6,prop8,eVar8,prop10,eVar10,eVar15,eVar22,prop23,eVar23,prop25,eVar25,prop26,eVar36,prop37,eVar37,prop44,prop46,eVar46,prop47,eVar47,prop54,eVar54,prop56,eVar56,prop57,eVar57,prop59,eVar59,prop64,eVar64,prop73,eVar73,prop75,eVar75,hier1,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,s.prop2=wminst.Util.getCNNAuthor(),void 0!==e.hpt){var t=e.hpt;try{-1==t.indexOf(\"_\")&&(t=wminst.Util.base64Decode(t))}catch(e){}t=(t=t.replace(/no-value-set/g,\"nvs\")).toLowerCase(),s.prop4=t}if(s.prop5=wminst.Util.getCNNCapGenre(),s.prop8=wminst.Util.getCNNVisitNumber(28),s.eVar15=wminst.Util.getCNNTrafficPartner(),s.eVar22=wminst.Util.getCNNVideoOpportunity(),s.prop23=wminst.Util.getCNNPageHeadline(),s.prop26=wminst.Util.getCNNBaseURL(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),void 0!==e.hpt2){var r=e.hpt2;try{-1==r.indexOf(\"_\")&&(r=wminst.Util.base64Decode(r))}catch(e){}r=r.replace(/no-value-set/g,\"nvs\"),s.prop18=r}s.prop6=(e.gallery_name||\"\").toLowerCase(),s.prop25=(e.gallery_name||\"nvs\").toLowerCase().replace(/(no-value-set|no value set)/g,\"nvs\"),s.prop54=\"photo gallery:\";var a=0;if(void 0!==e.gallery_type&&(s.prop33=e.gallery_type,\"carousel\"==e.gallery_type)){a=1,s.prop6=\"\",s.eVar6=\"\",s.prop25=\"\",s.eVar25=\"\";var i=\"\";try{i=e.content_type.replace(\"carousel_\",\"\")}catch(e){}void 0!==e.carousel_type||\"jumbotron\"==e.carousel_type?(s.prop33=\"jumbotron\",s.prop54=\"jumbotron:\"+i):s.prop54=\"carousel:\"+i}if(void 0!==e.pageURL){try{e.pageURL=e.pageURL.toLowerCase(),e.pageURL=e.pageURL.replace(/^.*\\/\\/[^\\/]+/,\"\"),e.pageURL=e.pageURL.replace(\"/index.html\",\"/\")}catch(e){}s.pageName=wminst.Util.getCNNPageName(e.pageURL)}if(void 0!==e.initial_page&&1==e.initial_page?s.prop25=s.eVar25=\"\":1==a?(s.linkTrackEvents=\"event26,event67\",s.events=s.linkTrackEvents):(s.linkTrackEvents=\"event5,event26\",s.events=s.linkTrackEvents),wminst.Util.addBrandingEvent(),s.linkTrackEvents=s.events,s.prop57=\"no mvpd set\",s.prop59=s.prop57,s.prop64=wminst.Util.getCNNUIEngagement(),\"ngtv\"==s.prop64){s.linkTrackEvents=\"\",s.events=\"\",s.prop32=\"gallery\";try{s.prop57=e.mvpd}catch(e){}try{s.prop57=e.adobe_hash_id}catch(e){}}var n=e.publish_date||\"a\";s.prop10=wminst.Util.getCNNDaysSinceLastPublish(n),s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop56=wminst.Util.getCNNOrientation(),s.prop75=wminst.Util.getCNNUserAuthState(),wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"photo-page\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop4,eVar4,prop6,eVar6,prop8,eVar8,eVar15,eVar22,prop23,eVar23,prop25,eVar25,prop26,eVar36,prop37,eVar37,prop44,prop46,eVar46,prop47,eVar47,prop54,eVar54,prop56,eVar56,prop57,eVar57,prop59,eVar59,prop64,eVar64,prop73,eVar73,prop75,eVar75,eVar105,hier1,list2\",s.linkTrackEvents=\"event26\",wminst.Util.setPageAttribution(),s.events=s.linkTrackEvents;var t=\"\";try{t=window.cnn_metadata.business.cnn.page.photo_gallery}catch(e){}try{t=window.CNN.omniture.gallery_name||t}catch(e){}if(t&&(t=t.replace(/%20/g,\" \")),s.prop6=t,s.prop8=wminst.Util.getCNNVisitNumber(28),s.eVar15=wminst.Util.getCNNTrafficPartner(),s.eVar22=wminst.Util.getCNNVideoOpportunity(),s.prop23=wminst.Util.getCNNPageHeadline(),s.prop26=wminst.Util.getCNNBaseURL(),s.eVar36=wminst.Util.getCNNKruxID(),s.prop37=wminst.Util.getCNNPlatform(),s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop56=wminst.Util.getCNNOrientation(),s.prop57=\"no mvpd set\",s.prop59=wminst.Util.getCNNAdobeID(),s.prop64=wminst.Util.getCNNUIEngagement(),s.prop75=wminst.Util.getCNNUserAuthState(),1==wminst.isInit)s.prop25=\"\",wminst.isInit=!1;else{s.linkTrackEvents=null,s.events=s.linkTrackEvents,s.eVar6=\"\";try{e.img=e.img+\"\"}catch(e){}try{e.before=e.before+\"\"}catch(e){}e.img?(s.prop25=e.img+\"\",s.linkTrackEvents=\"event5\",s.events=s.linkTrackEvents,0):e.before&&(s.prop25=e.before+\"\",s.linkTrackEvents=\"event5\",s.events=s.linkTrackEvents,0),s.prop33=\"other:gallery\"}s.prop25=s.prop25.toLowerCase(),s.eVar1=s.eVar7=s.eVar61=s.eVar68=s.eVar71=s.eVar41=\"\",e.title?wminst.trackLink(\"photo-page:\"+e.title):e.caption&&wminst.trackLink(\"photo-page:\"+e.caption),s.clearVars()})),PubSub.subscribe(\"ngtv-interaction\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,campaign,eVar34,eVar36,eVar37,prop46,eVar46,prop47,eVar47,prop55,eVar55,eVar57,prop59,eVar59,eVar64,prop69,eVar69,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.campaign=wminst.Util.getQueryParam(\"cid\"),s.eVar32=\"interactive\";try{s.eVar34=e.auth_state}catch(e){}s.evar36=wminst.Util.getCNNKruxID(),s.eVar37=wminst.Util.getCNNPlatform(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID();try{s.eVar57=e.mvpd}catch(e){}s.prop59=wminst.Util.getCNNAdobeID(),s.eVar64=s.prop64,s.prop64=\"\";try{s.prop69=e.interaction}catch(e){}wminst.trackLink(\"ngtv-interaction:\"+e.interaction),s.clearVars()})),PubSub.subscribe(\"user-interaction\",(function(e){var t=s.pageName;if(s.manageVars(\"clearVars\"),s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,s.prop28&&-1!=s.prop28.indexOf(\"electoral college map\")?s.prop69=e.interaction+\"_click\":\"comment-click:cronkite\"==e.interaction?s.prop69=\"time shift: on comment\":\"Go-Live:cronkite\"==e.interaction?s.prop69=\"time shift: go live\":\"time shift: on video\"==e.interaction?s.prop69=\"time shift: on video\":\"video carousel\"===e.interaction?s.prop69=e.interaction+\":click\":s.prop69=e.interaction.toLowerCase(),s.prop14=e.branding_social||\"\",s.campaign=wminst.Util.getQueryParam(\"cid\"),s.eVar36=wminst.Util.getCNNKruxID(),s.eVar37=wminst.Util.getCNNPlatform(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop59=wminst.Util.getCNNAdobeID(),e.pageURL){try{e.pageURL.split(\"/\")[2].replace(\"www.\",\"\"),e.pageURL=e.pageURL.toLowerCase(),e.pageURL=e.pageURL.replace(/^.*\\/\\/[^\\/]+/,\"\"),e.pageURL=e.pageURL.replace(\"/index.html\",\"/\")}catch(e){}s.pageName=wminst.Util.getCNNPageName(e.pageURL)}if(null!==e.interaction.match(/^(travel|style):gallery:(open|viewall)$/)?(s.linkTrackEvents=s.linkTrackEvents+\",event30\",s.events=s.linkTrackEvents):(s.linkTrackEvents=s.linkTrackEvents+\",event76\",s.events=s.linkTrackEvents),\"politics:submit debate topics\"==e.interaction&&(s.prop69=e.interaction),void 0!==s.prop69&&\"\"!==s.prop69){s.eVar69=\"D=c69\",-1!==s.prop69.indexOf(\"subscribe\")?s.linkTrackVars=\"events,eVar69,prop69,list2\":-1!==s.prop28.indexOf(\"electoral college map\")?s.linkTrackVars=\"events,campaign,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\":-1!==s.prop28.indexOf(\"general elections 2016\")?s.linkTrackVars=\"events,campaign,eVar36,prop69,eVar69,list2\":-1!==s.prop69.indexOf(\"style:menu\")?s.linkTrackVars=\"events,campaign,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\":-1!==s.prop69.indexOf(\"style:gallery:open\")?s.linkTrackVars=\"events,campaign,prop16,eVar16,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\":s.linkTrackVars=\"events,campaign,eVar23,eVar36,prop69,eVar69,prop73,eVar73,list2\";let e=s.events.split(\",\");for(let t=0;t<=e.length;t++)\"event26\"!==e[t]&&\"event21\"!==e[t]&&\"event39\"!==e[t]||(e.splice(t,1),t=0);s.linkTrackEvents=e.toString(),s.events=s.linkTrackEvents}wminst.setBounceX(e),wminst.setOnboardingInteraction(e,t),wminst.setModuleLoad(e),wminst.setFollowTopic(e),wminst.trackLink(\"user interaction:\"+wminst.getInteractionType(e)),wminst.waitAfterInteraction(e),s.clearVars()})),PubSub.subscribe(\"election-click\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar13,eVar50,prop51,prop69,eVar69,eVar79,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.pageURL=wminst.Util.getCNNPageURL();var t=void 0!==e.interaction_type?e.interaction_type:\"election center:\"+e.section,r=void 0!==e.interaction_type?e.interaction_type:\"election center:\";e.interaction_type&&(r=t=e.interaction_type),void 0!==e.tab&&\"\"!=e.tab&&(t=t+\":\"+e.tab,r+=\"tab click\"),void 0!==e.area&&\"\"!=e.area&&(t=t+\":\"+e.area+\":click\",r=\"election center:map click\"),void 0!==e.action&&\"\"!=e.action&&(-1!=e.action.indexOf(\"timeline\")?(t+=\":timeline\",r=\"election center:timeline\"):-1!=e.action.indexOf(\"expanded\")&&void 0!==e.issue&&\"\"!=e.issue&&(t=t+\":\"+e.issue,r=\"election center:issues\")),void 0!==e.button&&\"\"!=e.button&&(t=t+\":\"+e.button+\":click\",r=\"election center:\"+e.button+\" click\");try{void 0!==e.race_type&&void 0!==e.action&&(\"map click\"==e.action||\"breadcrumb\"==e.action?(s.eVar50=wminst.Util.getCNNInteractiveState(e),t=\"ec:\"+e.race_type+\":\"+e.state+\":\"+(e.county||\"nvs\")+\":\"+e.action):t=\"follow\"==e.action||\"unfollow\"==e.action?\"ec:\"+e.race_type+\":\"+e.state+\":\"+e.action:\"ec:\"+e.race_type+\":\"+e.action,r=t.toLowerCase()),wminst.Util.isPoliticsExplorer()&&(s.eVar50=wminst.Util.getCNNInteractiveState(e),s.prop51=wminst.Util.getCNNSiteSectionLevel3(\"explorer\"),s.eVar79=wminst.Util.getCNNExploreIndentify(e),r=t=\"year race\"===e.interaction_type?\"explorer:\"+e.tab+\":\"+e.interaction_type+\":\"+e.electionId+\":click\":\"explorer:\"+e.tab+\":\"+e.interaction_type+\":click\"),e.interaction_type&&-1!=t.indexOf(\"road-to-270\")&&(r=t=e.interaction_type,s.prop51=wminst.Util.getCNNSiteSectionLevel3(\"road-to-270\"))}catch(e){}try{\"undefined\"==typeof CNN||\"number\"!=typeof CNN.saved_races||!e.interaction_type||-1==t.indexOf(\"ec:my election: close panel\")&&-1==t.indexOf(\"ec:my election: open panel\")||(s.eVar13=\"election center: save races:\"+t.split(\":\")[3])}catch(e){}\"race-ratings\"!=e.page&&\"results\"!=e.page||(t=\"ec:\"+e.page+\":\",e.state&&(t+=e.state+\":\"),r=(t+=e.race+\":\"+e.action+\":\"+e.action_detail).toLowerCase());try{s.prop69=t.toLowerCase()}catch(e){}s.eVar69=\"D=c69\",wminst.trackLink(r.toLowerCase()),s.clearVars()})),PubSub.subscribe(\"election-hover\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar50,prop51,prop69,eVar69,eVar79,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.pageURL=wminst.Util.getCNNPageURL();var t=void 0!==e.section?e.section:\"\",r=void 0!==e.tab?e.tab:\"\",a=void 0!==e.area?e.area:\"\",i=\"election center:\"+t+\":\"+r+\":\"+(void 0!==e.stateCode?e.stateCode:\"\")+\":\"+a+\":hover\",n=\"election center:hover\";try{void 0!==e.tab&&void 0!==e.map_type&&(n=(i=\"ec:\"+e.tab+\":\"+e.map_type+\":\"+e.state+\":\"+(\"\"==e.county?\"nvs\":e.county)+\":hover\").toLowerCase()),wminst.Util.isPoliticsExplorer()&&(s.eVar50=wminst.Util.getCNNInteractiveState(e),s.prop51=wminst.Util.getCNNSiteSectionLevel3(\"explorer\"),s.eVar79=wminst.Util.getCNNExploreIndentify(e),n=(i=\"explorer:\"+e.tab+\":\"+e.state+\":\"+(\"\"==e.county?\"nvs\":e.county)+\":hover\").toLowerCase())}catch(e){}try{s.prop69=i.toLowerCase(),s.prop69?s.eVar69=\"D=c69\":s.prop69=s.evar69=\"\"}catch(e){}wminst.trackLink(n),s.clearVars()})),PubSub.subscribe(\"quiz-interaction\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop69,eVar69,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents;var t=e.clickObj||{};s.prop32=\"interactive\",s.prop33=\"other:quiz\",s.prop69=t.action,wminst.trackLink(\"quiz-interaction:\"+s.prop69),s.clearVars()})),PubSub.subscribe(\"hp10-interaction\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop56,eVar56,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop56=wminst.Util.getCNNOrientation();try{s.prop69=e.interaction}catch(e){}try{wminst.trackLink(\"hp10-interaction:\"+s.prop69)}catch(e){}s.clearVars()})),PubSub.subscribe(\"trackExitLink-click\",(function(){s.manageVars(\"clearVars\"),s.events=\"event61\",s.linkTrackEvents=s.events,s.linkTrackVars=\"events,eVar36,prop47,eVar47\",s.eVar36=wminst.Util.getCNNKruxID(),s.prop47=wminst.Util.getCNNGUID(),s.eVar47=\"D=c47\",wminst.Util.setCommonVars(!1)})),PubSub.subscribe(\"readmore-click\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar23,eVar36,prop56,eVar56,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event76\",s.eVar23=s.prop23,s.prop23=\"\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop56=wminst.Util.getCNNOrientation(),s.prop59=wminst.Util.getCNNAdobeID();try{s.prop69=e.interaction,e.interaction&&\"\"!=e.interaction&&\"facts first:click:read more\"==e.interaction&&(s.linkTrackVars=\"events,eVar23,eVar36,prop56,eVar56,prop59,eVar59,prop69,eVar69,prop73,eVar73,eVar84,eVar85,list2\",s.eVar84=e.factcheck_id.toLowerCase()||\"\",s.eVar85=e.factcheck_headline.toLowerCase()||\"\")}catch(e){}try{wminst.trackLink(\"readmore-click:\"+s.prop69),s.eVar84=s.eVar85=\"\"}catch(e){}void 0!==window.CNN&&void 0!==window.CNN.omniture&&\"facts first\"!==window.CNN.omniture.section[1]&&window.sendInteractionEvent(\"readmore-page\",e.interaction),s.clearVars()})),PubSub.subscribe(\"readmore-page\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop2,eVar2,prop4,evar4,prop8,eVar8,eVar15,prop16,eVar16,prop44,prop46,eVar46,prop47,eVar47,prop56,eVar56,prop57,eVar57,prop59,eVar59,prop64,eVar64,prop69,eVar69,prop73,eVar73,prop75,eVar75,eVar105,list2\",s.linkTrackEvents=\"event26\",s.events=s.linkTrackEvents,s.prop2=wminst.Util.getCNNAuthor(),wminst.Util.setPageAttribution(),s.prop8=wminst.Util.getCNNVisitNumber(28),s.eVar15=wminst.Util.getCNNTrafficPartner(),wminst.Util.addArticleEvent(),s.linkTrackEvents=s.events,s.pageURL=wminst.Util.getCNNPageURL(),s.prop44=wminst.Util.getCNNSourceID(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCNNGUID(),s.prop56=wminst.Util.getCNNOrientation(),s.prop57=wminst.Util.getCNNMVPD(),s.prop59=wminst.Util.getCNNAdobeID(),s.prop64=wminst.Util.getCNNUIEngagement(),s.prop75=wminst.Util.getCNNUserAuthState(),s.eVar3=s.eVar7=s.prop34=s.eVar34=s.eVar41=s.eVar42=s.eVar66=s.eVar67=s.eVar68=s.prop70=s.eVar70=s.eVar71=\"\";try{s.prop69=e.interaction\n}catch(e){}wminst.trackPage(),s.clearVars()})),PubSub.subscribe(\"ribbon-interaction\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event76,event72\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop59=wminst.Util.getCNNAdobeID();var t=e.interaction;try{s.prop69=e.interaction}catch(e){}try{\"string\"==typeof t&&(t=t.replace(\":\",\" \")),wminst.trackLink(t)}catch(e){}s.clearVars()})),PubSub.subscribe(\"site-registration_verification\",(function(e){PubSub.publish(\"site-registration\",e)})),PubSub.subscribe(\"site-registration\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.eVar36=wminst.Util.getCNNKruxID(),s.prop59=wminst.Util.getCNNAdobeID(),void 0!==e.action&&(e.action.indexOf(\"account not successfully\")>-1?(s.prop69=\"user:\"+e.action,s.linkTrackEvents=\"event58,event76\",s.events=s.linkTrackEvents,wminst.trackLink(e.action)):e.action.indexOf(\"account verified\")>-1&&(s.prop69=\"user:\"+e.action,s.linkTrackEvents=\"event53,event76\",s.events=s.linkTrackEvents,wminst.trackLink(e.action))),s.clearVars()})),PubSub.subscribe(\"article-start\",(function(e){wminst.trackArticleViewed(e)})),PubSub.subscribe(\"article-twentyfive\",(function(e){wminst.trackArticleViewed(e)})),PubSub.subscribe(\"article-fifty\",(function(e){wminst.trackArticleViewed(e)})),PubSub.subscribe(\"article-seventyfive\",(function(e){wminst.trackArticleViewed(e)})),PubSub.subscribe(\"article-complete\",(function(e){wminst.trackArticleViewed(e)})),PubSub.subscribe(\"user-account\",(function(e){wminst.trackUserAccount(e)})),PubSub.subscribe(\"live-story-post\",(function(e){wminst.trackLiveStoryPost(e)})),PubSub.subscribe(\"click-interaction\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,eVar36,prop59,eVar59,prop69,eVar69,prop73,eVar73,list2\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents,s.eVar36=wminst.Util.getCNNKruxID(),s.prop59=wminst.Util.getCNNAdobeID();try{s.prop69=e.interaction.toLowerCase(),-1!==s.prop69.indexOf(\"topics:\")&&\"topics:overlay:closed\"!==s.prop69&&\"topics:topics-tray-close\"!==s.prop69&&\"topics:topics-tray-expand\"!==s.prop69&&(s.linkTrackVars=s.linkTrackVars+\",prop4,eVar4,eVar105\",wminst.Util.setPageAttribution())}catch(e){}try{wminst.trackLink(e.interaction.toLowerCase())}catch(e){}s.clearVars()})),PubSub.subscribe(\"sortpost-click\",(function(e){s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop23,eVar23,eVar36,prop69,eVar69\",s.linkTrackEvents=\"event76\",s.events=s.linkTrackEvents;try{s.prop23=e.headline.toLowerCase()||wminst.Util.getCNNPageHeadline()}catch(e){s.prop23=wminst.Util.getCNNPageHeadline()}s.eVar36=wminst.Util.getCNNKruxID();try{s.prop69=e.interaction}catch(e){}try{var t=e.interaction;\"string\"==typeof t&&(t=t.replace(\": \",\" \")),wminst.trackLink(t)}catch(e){}s.clearVars()})),wminst.subscribersReady=!0;\n});", "_satellite[\"_runScript11\"](function(event, target, Promise) {\nwminst.isLiveVid=!1,wminst.live_interval=0,wminst.setinterval_id=0,wminst.isAd=!1,wminst.adVidId=\"\",wminst.adRange=\"\",wminst.is_autoplay=!1,wminst.isLivePaused=!1,wminst.isTVEEpisodePaused=!1,wminst.is_preroll_occur=!1,wminst.trackLinkVideo=function(e,t){var i=[\"cnnvideo-autostart\",\"cnnvideo-start\",\"cnnvideo-live\"].includes(e);wminst.Util.setCommonVars(i),wminst.Util.setVideoVars(t,i),s.tl(this,\"o\",e+\":\"+(t.title||t.headline||\"\").toLowerCase())},wminst.isTVEAuth=function(e){return\"\"!==wminst.Util.getMVPD(e)||wminst.isFreePreview(e)||wminst.isEventBasedPreview(e)},wminst.isFreePreview=function(e){return\"freeview\"==wminst.Util.getPreviewType(e)||\"temppass_cnn10min\"==wminst.Util.getMVPD(e)},wminst.isEventBasedPreview=function(e){return\"ebp\"==wminst.Util.getPreviewType(e)||\"eventpreview\"==wminst.Util.getMVPD(e)},wminst.isFASTContent=function(e){return\"fast\"==wminst.getVCType4(e)||\"livec76319f599742ab668c8b3ba6dcfed3ce7e817ad\"==e.id||\"livedbcedb554833b248c3ce8374acd2bbcd3983d7dd\"==e.id},wminst.isNGTVContent=function(e){return void 0!==e.id&&-1!=e.id.indexOf(\"cvplive/cnngo\")},wminst.isTVEContent=function(e){return wminst.Util.isTVEPage()||wminst.isTVEAuth(e)},wminst.isTVETrailer=function(e){return wminst.isTVEContent(e)&&(\"trailer\"==e.video_type||\"clip\"==e.video_type)},wminst.isTVEEpisode=function(e){return wminst.isTVEContent(e)&&(\"episode\"==e.video_type||\"film\"==e.video_type)},wminst.isTVELive=function(e){return wminst.isTVEContent(e)&&\"live\"==e.playerType},wminst.isVideoLive=function(e){return 1==e.isLive||\"true\"==e.isLive},wminst.isVideoAutoStarted=function(e){return!0===e.isAutoStart&&(!0===e.isAutostartSuccessful||!0===e.is_autoplay_allowed)},wminst.getVCType4=function(e){return(e.video_type||\"\").toLowerCase().replace(\"_\",\"-\")},wminst.startVideoProgressTimer=function(e){wminst.setinterval_id=setInterval((function(){window.trackVideoProgress(e)}),6e4)},wminst.stopVideoProgressTimer=function(){wminst.setinterval_id&&clearInterval(wminst.setinterval_id)},wminst.setVideoLinkTrackVars=function(){s.linkTrackVars=\"events,products,eVar1,eVar3,eVar4,eVar7,eVar8,eVar10,eVar14,eVar16,eVar20,eVar22,eVar23,eVar41,prop31,eVar31,eVar34,eVar36,eVar37,eVar42,prop43,prop44,prop46,eVar46,prop47,eVar47,eVar48,prop50,eVar52,eVar54,eVar56,eVar60,eVar64,eVar66,eVar67,eVar68,eVar70,eVar71,eVar72,prop73,eVar73,prop75,eVar75,eVar103,list2\"},wminst.setVideoEVars=function(){wminst.Util.setEVars(\"1,3,4,7,8,10,14,16,20,23,31,34,37,41,52,54,56,60,64,66,68,70,71,72\")},wminst.updateAutoStartType=function(){\"string\"==typeof s.prop70&&\"\"!==s.prop70&&(s.prop70=s.prop70.replace(\"noautostart\",\"autostart\"))},wminst.updateVideoVars=function(){!0===wminst.is_autoplay&&wminst.updateAutoStartType(),wminst.setVideoEVars(),s.prop43||(s.prop50=\"\")},wminst.setVideoPlayerType=function(e){var t=\"vod player\",i=wminst.Util.getDataLayerV1();(i.video_player_type?t=i.video_player_type:(wminst.isVideoLive(e)||e.player_type&&\"live\"==(t=e.player_type))&&(t=\"live player\"),wminst.Util.isFavePage())&&(-1!=window.location.pathname.indexOf(\"/v1/synacor\")&&(t=\"synacor player\"));s.prop1=t,s.eVar1=\"D=c1\"},wminst.setPublishDate=function(e){var t=(e.dateCreated||{}).text||\"\",i=(e.lastModified||{}).text||\"\",n=\"\"!=t?t.split(\"/\"):\"\";\"\"!=n&&4!=n[0].length&&(t=\"20\"+n[2]+\"/\"+n[0]+\"/\"+n[1]),s.prop10=wminst.Util.getCNNDaysSinceLastPublish(t),s.eVar10=\"D=c10\",s.prop16=t||i?t+\"|\"+i:\"\",s.eVar16=\"D=c16\"},wminst.setBrandingSocial=function(){if(wminst.Util.isFavePage()){var e=window.location.pathname;-1!=e.indexOf(\"/v1/amp\")&&(s.prop14=\"google amp\"),-1!=e.indexOf(\"/v1/fav\")&&(s.prop14=\"embed\"),-1!=e.indexOf(\"/v1/synacor\")&&(s.prop14=\"synacor player\")}wminst.Util.isFBIAPage()&&(s.prop14=window.CNN.omniture.branding_social),s.prop14&&(s.eVar14=\"D=c14\")},wminst.setVideoTitle=function(e){try{e.id;var t=(e.title||e.headline||\"\").toLowerCase(),i=(e.show_name||\"\").toLowerCase();wminst.isTVEContent(e)?s.prop29=(i?i+\"|\":\"\")+t:s.prop29=t,s.eVar41=\"D=c29\"}catch(e){}},wminst.setAuthenticationState=function(e){s.prop34=\"does not require authentication\",wminst.isTVEAuth(e)?s.prop34=\"requires authentication\":e.auth_state&&(s.prop34=e.auth_state),s.eVar34=\"D=c34\"},wminst.setContentTypeLevel2=function(e){var t=\"vod\",i=\"non tve\",n=\"clip\",r=wminst.getVCType4(e)||\"clip\";s.prop1.includes(\"live\")&&(t=\"live\",i=\"requires authentication\"==s.prop34?\"tve\":\"non tve\",n=\"live\",r=wminst.isFASTContent(e)?\"fast\":\"live\"),(s.prop1.includes(\"tve\")||wminst.isTVELive(e)||\"tve\"==e.auth_type)&&(t=\"live\",i=\"tve\",n=\"live\",r=\"live\"),wminst.isTVETrailer(e)?(t=\"vod\",i=\"tve\",n=\"clip\",r=\"trailer\"):wminst.isTVEEpisode(e)&&(t=\"vod\",i=\"tve\",n=e.video_type,r=e.video_type);var a=wminst.isAd?\"ad\":\"content\";s.prop54=\"video:\"+t+\":\"+i+\":\"+n+\":\"+r+\":\"+a,s.eVar54=\"D=c54\"},wminst.setNGTVVars=function(e){s.prop1=\"ngtv\",s.eVar1=\"D=c1\",s.prop2=e.author,s.eVar2=\"D=c2\",\"live\"!=e.content_type2&&\"dvr\"!=e.content_type2||(s.prop7=s.eVar7=\"\");try{if(e.dateCreated){var t=wminst.Util.gCNNDaysSinceLastPublish(e.dateCreated);s.prop10=t+\"\",s.eVar10=\"D=c10\",s.prop16=e.dateCreated,s.eVar16=\"D=c16\"}}catch(e){}s.prop14=s.eVar14=\"\",e.show_name=e.show_name||\"\",e.episode_title=e.episode_title||\"\",e.segment_name=e.segment_name||\"\",\"tve\"==e.content_type1&&(e.title=e.show_name+\":\"+e.episode_title+\":\"+e.segment_name,e.live_stream_name&&\"hln news\"==e.live_stream_name&&(e.title=\"hln news\"),s.prop29=e.title,s.prop32=\"video\"),s.prop31=e.show_name,s.eVar31=\"D=c31\",s.prop33=\"adbp:video start\",s.eVar42=e.id,void 0!==e.isBreakingNews&&1==e.isBreakingNews&&(s.eVar43=\"ngtv:breaking_news\"),e.segment_type&&(s.eVar43=e.segment_type),e.content_type1=e.content_type1||\"\",e.content_type2=e.content_type2||\"\",e.content_type3=e.content_type3||\"\",e.content_type4=e.content_type4||\"\",e.content_type5=wminst.isAd?\"ad\":\"content\",s.prop54=\"video:\"+v.content_type2+\":\"+v.content_type1+\":\"+v.content_type3+\":\"+v.content_type4+\":\"+v.content_type5,e.content_type3&&\"episode\"!=e.content_type3&&(s.prop58=s.eVar58=\"\"),s.prop60=s.eVar60=\"\",s.prop61=s.eVar61=\"\",s.prop64=s.eVar64=\"\",\"non tve\"==e.content_type1&&\"vod\"==e.content_type2&&\"clip\"==e.content_type3||(s.prop68=s.eVar68=\"\",s.prop71=s.eVar71=\"\"),s.prop70=autoStartType+\":cnngo\",s.eVar70=\"D=c70\"},wminst.setVideoCommonData=function(e){s.manageVars(\"clearVars\"),s.prop33=\"adbp:video start\",e.video_player&&\"undefined\"!==e.video_player&&\"\"!==e.video_player&&(s.prop52=e.video_player,s.eVar52=\"D=c52\"),e.video_player&&-1!==e.video_player.indexOf(\"theo\")&&(!0===e.isVr?(s.prop52=\"theo360\",s.eVar52=\"D=c52\",s.prop33=\"adbp:video:360\"):(s.prop52=e.video_player,s.eVar52=\"D=c52\")),s.prop37=wminst.Util.getCNNPlatform(),s.prop37&&\"\"!=s.prop37&&(s.eVar37=\"D=c37\"),void 0!==e.id&&\"\"!=e.id&&-1!=e.id.indexOf(\"invalid-id-video-player\")&&(s.prop43=wminst.Util.getCNNPostID(),s.prop50=wminst.Util.getCNNPostTitle()),s.list1=wminst.Util.getCEPTopisForVideo(e),s.prop72=e.free_preview||\"\",s.eVar72=\"D=c72\",void 0!==e.video_focus&&(s.prop66=e.video_focus,s.eVar66=\"D=c66\"),e.player_type&&\"\"!=e.player_type&&(\"van\"==e.player_type?(s.prop31=\"van\",s.eVar31=\"D=c31\",s.prop32=\"video\",s.server=e.consumer||\"\",s.prop71=e.source.toLowerCase()||\"\",s.eVar71=\"D=c71\"):\"tve\"!=e.player_type&&\"live\"!=e.player_type&&\"live player\"!=e.player_type||(s.prop3=e.category||\"\",s.eVar3=\"D=c3\",s.prop31=\"van\",s.eVar31=\"D=c31\")),wminst.setVideoPlayerType(e);try{(window.location.href.indexOf(\"fave.api.cnn.io\")>-1||window.location.href.indexOf(\"fave-api.cnn.com\")>-1)&&e.video_player&&-1!==e.video_player.indexOf(\"theo\")&&(s.prop32=\"content:video:nocollection\",void 0!==window.CNN.omniture.template_type&&\"live-story\"==window.CNN.omniture.template_type&&(s.prop32=\"live story\")),s.prop2=window.CNN.omniture.cap_author||\"\",s.eVar2=\"D=c2\",s.prop3=e.category||\"\",s.eVar3=\"D=c3\",s.prop7=e.trt||\"\",s.eVar7=\"D=c7\"}catch(e){}s.prop8=wminst.Util.getCNNVisitNumber(28),wminst.setPublishDate(e),wminst.setBrandingSocial();try{if(wminst.Util.isFBIAPage()){var t=CNN.omniture.vpage_name;s.pageName=wminst.Util.getCNNPageName(t)}}catch(e){}s.eVar22=wminst.Util.getCNNVideoOpportunity(),wminst.setVideoTitle(e);try{s.prop31=(window.CNN.omniture.cap_show_name||\"\").toLowerCase(),s.eVar31=\"D=c31\"}catch(e){}wminst.setAuthenticationState(e),s.eVar36||(s.eVar36=wminst.Util.getCNNKruxID()),s.eVar42=e.id,s.prop44||(s.prop44=wminst.Util.getCNNSourceID()),s.prop46=wminst.Util.getCNNTransactionID(),wminst.setContentTypeLevel2(e),s.prop56=wminst.Util.getCNNOrientation();try{if(e.dateAired){var i=wminst.Util.gCNNDaysSinceLastPublish(e.dateAired);s.prop58=i+\"\",s.eVar58=\"D=c58\"}}catch(e){}var n=wminst.isVideoAutoStarted(e)?\"autostart\":\"noautostart\";try{window.CNN&&window.CNN.omniture&&\"article\"==window.CNN.omniture.cap_content_type?(s.prop70=n+\":editorial\",s.eVar70=\"D=c70\"):!e.isLive||1!=e.isLive&&\"true\"!=e.isLive?(s.prop70=n+\":vod\",s.eVar70=\"D=c70\"):(s.prop70=n+\":live\",s.eVar70=\"D=c70\")}catch(e){}try{if(window.location.pathname.match(/video\\/playlists\\/./)){var r=/video\\/playlists\\/(.+)/.exec(window.location.pathname);s.prop60=r[1].replace(/\\//g,\"\"),s.eVar60=\"D=c60\",s.prop70=n+\":collection\",s.eVar70=\"D=c70\"}\"player-one-tap-video\"!=e.playerid&&(window.CNN.omniture.video_collection&&(s.prop60=window.CNN.omniture.video_collection,s.eVar60=\"D=c60\",s.prop70=n+\":collection\",s.eVar70=\"D=c70\"),window.video_collection&&(s.prop70=n+\":collection:sunrise\",s.eVar70=\"D=c70\")),e.video_collection&&(s.prop60=e.video_collection,s.eVar60=\"D=c60\",s.prop70=n+\":collection\",s.eVar70=\"D=c70\"),\"\"!=s.prop60&&void 0!==s.prop60||window.CNN.contentModel.analytics.pageTop.collectionHeadline&&(s.prop60=window.CNN.contentModel.analytics.pageTop.collectionHeadline,s.eVar60=\"D=c60\"),\"\"!==s.prop60&&(s.prop60=s.prop60.toLowerCase())}catch(e){}try{if(e.iscmsIIimport){var a=\"true\"==e.iscmsIIimport?\"secondary\":\"primary\";s.prop61=a,s.eVar61=\"D=c61\"}e.source&&(s.prop71=e.source.toLowerCase(),s.eVar71=\"D=c71\")}catch(e){}try{e.ad_duration?(wminst.adRange=Math.round(e.ad_duration).toString(),s.prop68=wminst.adRange,s.eVar68=\"D=c68\"):(s.prop68=\"no ad present\",s.eVar68=\"D=c68\")}catch(e){}try{wminst.isNGTVContent(e)||wminst.isTVEContent(e)?s.prop64=\"ngtv\":s.prop64=wminst.Util.getCNNUIEngagement()}catch(e){}e.content_type2&&wminst.setNGTVVars(e),e.headline&&(s.prop23=e.headline.toLowerCase(),s.eVar23=\"D=c23\"),s.list1=wminst.Util.getCEPTopisForVideo(e),s.eVar67=wminst.Util.getCNNPlayerState(e);try{window.CNN.omniture.gallery_name=\"\"}catch(e){}try{window.CNN&&\"undefined\"!=window.CNN.omniture&&1==window.CNN.omniture.is_vision&&(s.prop71=\"cnn:vision\",s.eVar71=\"D=c71\")}catch(e){}try{wminst.Util.setPageAttribution(),s.prop46=wminst.Util.getCNNTransactionID(),s.prop47=wminst.Util.getCookie(\"ug\"),s.eVar48=wminst.Util.getCNNTechStack(),s.prop26=wminst.Util.getCNNBaseURL(),s.prop75=wminst.Util.getCNNUserAuthState()}catch(e){}s.eVar103=e.auth_type||\"\"},wminst.trackVideoStart=function(e){wminst.isAd=!1,wminst.isLiveVid=!1;var t,i=wminst.getVideoMetadata(e);wminst.setVideoCommonData(i),s.linkTrackVars=\"events,products,prop1,eVar1,prop3,eVar3,prop4,eVar4,prop7,eVar7,prop8,eVar8,prop10,eVar10,prop14,eVar14,prop16,eVar16,prop20,eVar20,eVar21,eVar22,prop23,eVar23,prop29,prop31,eVar31,prop34,eVar34,eVar36,prop37,eVar37,eVar41,eVar42,prop43,prop44,prop46,eVar46,prop47,eVar47,eVar48,prop49,eVar49,prop50,prop52,eVar52,prop54,eVar54,prop56,eVar56,prop60,eVar60,eVar61,prop64,eVar64,prop66,eVar66,eVar67,prop68,eVar68,prop70,eVar70,prop71,eVar71,prop72,eVar72,prop73,eVar73,prop75,eVar75,eVar103,eVar105,list2\",wminst.isVideoAutoStarted(i)?(t=\"cnnvideo-autostart\",s.linkTrackEvents=\"event32,event34\",s.events=\"event32,event34\",wminst.is_autoplay=!0,wminst.updateAutoStartType()):(t=\"cnnvideo-start\",s.linkTrackEvents=\"event32\",s.events=\"event32\"),i.subcategory,i.subcategory&&\"\"!=i.subcategory&&(s.linkTrackEvents=\"event23,\"+s.linkTrackEvents,s.events=s.linkTrackEvents),void 0!==i.metas&&i.metas.branding&&\"\"!=i.metas.branding&&(s.linkTrackEvents=\"event22,\"+s.linkTrackEvents,s.events=s.linkTrackEvents),wminst.adVidId==i.id&&wminst.adRange>0&&(s.linkTrackEvents=\"event3,\"+s.linkTrackEvents,s.events=s.linkTrackEvents,wminst.adVidId=\"\"),s.prop7&&null!==s.prop7&&(s.linkTrackEvents=s.linkTrackEvents+\",event85\",s.events=s.linkTrackEvents,s.products=\";;;;event85=\"+s.prop7),wminst.is_preroll_occur||(s.linkTrackEvents=s.linkTrackEvents+\",event90\",s.events=s.linkTrackEvents);var n=new wminst.getCNNMediaCollection;n.start(i.playerid,i.title?i.title:i.headline),s.prop4?s.eVar4=\"D=c4\":s.eVar4=\"\",s.eVar21=wminst.Util.getCNNVideoSequence(),s.prop72=s.eVar72=\"\",s.prop31?s.prop31=s.prop31.toLowerCase():s.eVar31=\"\",s.prop43||(s.prop50=\"\"),s.eVar47=\"D=c47\",s.eVar60=s.prop60,s.prop60=\"\",s.prop64=\"\",s.eVar64=wminst.Util.getCNNUIEngagement(),wminst.isTVEEpisode(i)&&(wminst.stopVideoProgressTimer(),wminst.startVideoProgressTimer(i)),wminst.trackLinkVideo(t,i),n.set(i.playerid,\"vidStarted\",!0),s.manageVars(\"clearVars\")},wminst.trackVideoScrub=function(e){var t=wminst.getVideoMetadata(e),i=new wminst.getCNNMediaCollection;i.get(t.playerid,\"hasScrubbed\")||(i.set(t.playerid,\"hasScrubbed\",!0),wminst.setVideoCommonData(t),s.events=\"event119\",wminst.setVideoLinkTrackVars(),s.linkTrackEvents=s.events,wminst.updateVideoVars(),wminst.trackLinkVideo(\"cnnvideo-scrub\",t),s.manageVars(\"clearVars\"))},wminst.trackVideoPause=function(e){var t=wminst.getVideoMetadata(e),i=\"true\"==t.paused||1==t.paused,n=new wminst.getCNNMediaCollection,r=n.get(t.playerid,\"isPaused\");i!=r&&(n.pause(t.playerid),(1==wminst.isLiveVid||1==t.isLive||\"true\"==t.isLive||wminst.isTVEEpisode(t))&&(wminst.isLivePaused=wminst.isTVEEpisodePaused=i,wminst.stopVideoProgressTimer(),r&&wminst.startVideoProgressTimer(t))),wminst.setVideoCommonData(t);var a=i?\"pause\":\"resume\";s.events=i?\"event55\":\"event56\",wminst.setVideoLinkTrackVars(),s.linkTrackEvents=s.events,wminst.updateVideoVars(),wminst.trackLinkVideo(\"cnnvideo-\"+a,t),s.manageVars(\"clearVars\")},wminst.trackVideoMute=function(e){var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t);var i=t.muted?\"mute\":\"unmute\";s.events=t.muted?\"event111\":\"event112\",wminst.setVideoLinkTrackVars(),s.linkTrackEvents=s.events,wminst.updateVideoVars(),wminst.trackLinkVideo(\"cnnvideo-\"+i,t),s.manageVars(\"clearVars\")},wminst.trackVideoMilestone=function(e,t){var i={10:[\"isTen\",\"event40\",\"cnnvideo-ten\"],25:[\"isTwentyFive\",\"event41\",\"cnnvideo-twentyfive\"],50:[\"isHalf\",\"event2\",\"cnnvideo-fifty\"],75:[\"isSeventyFive\",\"event42\",\"cnnvideo-seventyfive\"],90:[\"isNinety\",\"event59\",\"cnnvideo-ninety\"]},n=i[t][0],r=i[t][1],a=i[t][2];wminst.isAd=!1;var o=wminst.getVideoMetadata(e);if(!wminst.isTVEEpisode(o)){var p=new wminst.getCNNMediaCollection;if(!p.get(o.playerid,n)&&!p.get(o.playerid,\"hasScrubbed\")){p.set(o.playerid,n,!0);var d=p.progress(o.playerid);wminst.setVideoCommonData(o),wminst.setVideoLinkTrackVars(),s.linkTrackEvents=r,s.events=r,s.products=\"\",(d=wminst.capCNNTimeSpent(d,o.trt,wminst.live_interval))>0&&(s.linkTrackEvents=r+\",event36\",s.events=r+\",event36\",s.products=\";;;;event36=\"+d),wminst.updateVideoVars(),wminst.trackLinkVideo(a,o),s.manageVars(\"clearVars\")}}},wminst.trackVideoEnd=function(e,t){wminst.isAd=!1;var i=wminst.getVideoMetadata(e),n=new wminst.getCNNMediaCollection,r=n.complete(i.playerid);wminst.setVideoCommonData(i),wminst.setVideoLinkTrackVars();var a={complete:\"event33\",stop:\"event110\"}[t];s.linkTrackEvents=a,s.events=s.linkTrackEvents,s.products=\"\",(r=wminst.capCNNTimeSpent(r,i.trt,wminst.live_interval))>0&&(s.linkTrackEvents=a+\",event36\",s.events=s.linkTrackEvents,s.products=\";;;;event36=\"+r),wminst.updateVideoVars(),(wminst.isVideoLive(i)||wminst.isTVEEpisode(i))&&wminst.stopVideoProgressTimer(),wminst.trackLinkVideo(\"cnnvideo-\"+t,i),n.set(i.playerid,\"vidStarted\",!1),n.set(i.playerid,\"hasScrubbed\",!1),n.set(i.playerid,\"isPaused\",!1),n.set(i.playerid,\"isBuffering\",!1),n.set(i.playerid,\"isHalf\",!1),n.set(i.playerid,\"isTen\",!1),n.set(i.playerid,\"isTwentyFive\",!1),n.set(i.playerid,\"isSeventyFive\",!1),n.set(i.playerid,\"isNinety\",!1),s.manageVars(\"clearVars\")},PubSub.subscribe(\"cnnvideo-preroll\",(function(e){wminst.isAd=!0;var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),wminst.adVidId=t.id,wminst.setVideoLinkTrackVars(),s.linkTrackEvents=\"event35\",s.events=\"event35\",\"string\"==typeof t.adType&&\"midroll\"==t.adType.toLowerCase()&&(s.linkTrackEvents=\"event25\",s.events=\"event25\"),\"string\"==typeof t.adType&&\"preroll\"==t.adType.toLowerCase()&&(s.linkTrackEvents=s.linkTrackEvents+\",event90\",s.events=s.linkTrackEvents,wminst.is_preroll_occur=!0),\"string\"==typeof t.adType&&\"postroll\"==t.adType.toLowerCase()&&(s.linkTrackEvents=\"event82\",s.events=\"event82\"),(t.category&&\"live\"!==t.category||\"true\"!==t.isLive||!0!==t.isLive)&&(wminst.isLiveVid=!1),wminst.isVideoAutoStarted(t)&&(wminst.is_autoplay=!0,wminst.updateAutoStartType()),wminst.setVideoEVars(),s.prop43||(s.prop50=\"\"),(wminst.isTVEEpisode(t)||1==wminst.isLiveVid||1==t.isLive||\"true\"==t.isLive)&&t.adType&&\"midroll\"==t.adType.toLowerCase()&&wminst.stopVideoProgressTimer(),wminst.trackLinkVideo(\"cnnvideo-\"+t.adType.toLowerCase(),t);try{(t.content_type1&&\"tve\"==t.content_type1||wminst.isTVEEpisode(t)||wminst.isTVELive(t))&&wminst.startVideoProgressTimer(t)}catch(e){}s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-adcomplete\",(function(e){var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),s.linkTrackVars=\"events,prop44\",s.linkTrackEvents=\"event50\",(\"midroll\"==t.adType.toLowerCase()||1==wminst.isLiveVid&&\"preroll\"==t.adType.toLowerCase())&&(!t.player_type||\"tve\"!=t.player_type&&\"live player\"!=t.player_type&&\"true\"!=t.isLive||(s.prop33=\"adbp:none\",wminst.trackLinkVideo(\"cnnvideo-adcomplete\",t)),(wminst.isTVEEpisode(t)||wminst.isTVELive(t)||t.content_type1&&\"tve\"==t.content_type1||!0===t.isLive||\"true\"==t.isLive)&&(wminst.stopVideoProgressTimer(),wminst.startVideoProgressTimer(t))),wminst.isAd=!1,s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-midroll-complete\",(function(e){var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),s.linkTrackVars=\"events,prop44\",s.linkTrackEvents=\"event50\",s.events=\"event50\",(\"midroll\"==t.adType.toLowerCase()||1==wminst.isLiveVid&&\"preroll\"==t.adType.toLowerCase())&&(!t.player_type||\"tve\"!=t.player_type&&\"live player\"!=t.player_type&&\"true\"!=t.isLive&&!0!==t.isLive||(s.prop33=\"adbp:none\",wminst.trackLinkVideo(\"cnnvideo-adcomplete\",t))),wminst.stopVideoProgressTimer(),wminst.startVideoProgressTimer(t),wminst.isAd=!1,s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-start\",(function(e){wminst.trackVideoStart(e)})),PubSub.subscribe(\"cnnvideo-autostart\",(function(e){wminst.trackVideoStart(e)})),PubSub.subscribe(\"cnnvideo-live\",(function(e){wminst.isAd=!1,wminst.isLiveVid=!0,wminst.isLivePaused=!1;var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),s.linkTrackVars=\"events,prop1,eVar1,prop3,eVar3,prop4,eVar4,prop7,eVar7,prop8,eVar8,prop14,evar14,prop20,eVar20,evar21,eVar22,prop29,prop31,eVar31,prop34,eVar34,eVar36,prop37,eVar37,eVar41,eVar42,prop43,prop44,prop46,eVar46,prop47,eVar47,eVar48,prop50,prop52,eVar52,prop54,eVar54,prop56,eVar56,prop64,prop66,eVar66,eVar67,prop68,eVar68,prop70,eVar70,prop71,eVar71,prop72,eVar72,prop73,eVar73,prop75,eVar75,eVar103,eVar105,list2\",s.linkTrackEvents=\"event1,event32\",s.events=\"event1,event32\";var i=new wminst.getCNNMediaCollection;if(i.start(t.playerid,t.title?t.title:t.headline),wminst.isVideoAutoStarted(t)&&(wminst.is_autoplay=!0,wminst.updateAutoStartType()),t.content_type2);else try{void 0!==t.isAutoStart&&1==t.isAutoStart&&(!0===t.isAutoplayAllowed&&!1!==isAutostartSuccessful||!0===t.is_autoplay_allowed&&!1!==t.is_autoplay_successful)&&(s.linkTrackEvents=s.linkTrackEvents+\",event34\",s.events=s.linkTrackEvents)}catch(e){}wminst.is_preroll_occur||(s.linkTrackEvents+=\",event90\",s.events=s.linkTrackEvents),wminst.isFASTContent(t)&&(s.linkTrackEvents+=\",event109\",s.events=s.linkTrackEvents),s.prop31?s.prop31=s.prop31.toLowerCase():s.eVar31=\"\";try{if(void 0!==window.CNN.omniture.user_auth_state){var n=t.user_auth_state?t.user_auth_state:window.CNN.omniture.user_auth_state;s.prop75=n}else void 0===t.mvpd||\"temppass_cnn10min\"!=t.mvpd&&\"TempPass_CNN10min\"!=t.mvpd||(s.prop75=\"new_temppass_go\")}catch(e){}void 0!==wminst.adVidId&&wminst.adVidId==t.id&&wminst.adRange>0&&(s.linkTrackEvents=s.linkTrackEvents+\",event3\",s.events=s.linkTrackEvents,wminst.adVidId=\"\"),s.eVar23=s.prop23=\"\",s.prop43||(s.prop50=\"\"),wminst.isVideoLive(t)&&(wminst.stopVideoProgressTimer(),wminst.startVideoProgressTimer(t)),s.prop72=s.eVar72=\"\",wminst.trackLinkVideo(\"cnnvideo-live\",t),i.set(t.playerid,\"vidStarted\",!0),s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-episode\",(function(e){wminst.isAd=!1;var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),s.linkTrackVars=\"events,list2\",s.linkTrackEvents=\"event48\",s.events=\"event48\";var i=new wminst.getCNNMediaCollection;i.start(t.playerid,t.title?t.title:t.headline),wminst.trackLinkVideo(\"cnnvideo-episode\",t),i.set(t.playerid,\"vidStarted\",!0),s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-autosegment\",(function(e){wminst.isAd=!1;var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t),s.linkTrackVars=\"events,list2\",s.linkTrackEvents=\"event65\";var i=new wminst.getCNNMediaCollection;i.start(t.playerid,t.title?t.title:t.headline),wminst.trackLinkVideo(\"cnnvideo-autosegment\",t),i.set(t.playerid,\"vidStarted\",!0),s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-buffer\",(function(e){var t=wminst.getVideoMetadata(e),i=void 0!==t.buffering&&t.buffering,s=new wminst.getCNNMediaCollection,n=s.get(t.playerid,\"isBuffering\");i!=n&&(s.buffer(t.playerid),(1==wminst.isLiveVid||1==t.isLive||\"true\"==t.isLive||wminst.isTVEEpisode(t))&&(wminst.stopVideoProgressTimer(),n&&wminst.startVideoProgressTimer(t)))})),PubSub.subscribe(\"cnnvideo-progress\",(function(e){var t=wminst.getVideoMetadata(e);wminst.setVideoCommonData(t);var i=(new wminst.getCNNMediaCollection).progress(t.playerid);wminst.live_interval=60,i=wminst.capCNNTimeSpent(i,t.trt,wminst.live_interval),wminst.setVideoLinkTrackVars(),s.linkTrackEvents=\"event36\",s.events=\"event36\",wminst.updateVideoVars(),s.products=\";;;;\"+s.events+\"=\"+i,60!=i||wminst.isLivePaused&&wminst.isTVEEpisodePaused||wminst.trackLinkVideo(\"cnnvideo-progress\",t),s.manageVars(\"clearVars\")})),PubSub.subscribe(\"cnnvideo-scrub\",(function(e){wminst.trackVideoScrub(e)})),PubSub.subscribe(\"cnnvideo-pause\",(function(e){wminst.trackVideoPause(e)})),PubSub.subscribe(\"cnnvideo-mute\",(function(e){wminst.trackVideoMute(e)})),PubSub.subscribe(\"cnnvideo-ten\",(function(e){wminst.trackVideoMilestone(e,10)})),PubSub.subscribe(\"cnnvideo-twentyfive\",(function(e){wminst.trackVideoMilestone(e,25)})),PubSub.subscribe(\"cnnvideo-fifty\",(function(e){wminst.trackVideoMilestone(e,50)})),PubSub.subscribe(\"cnnvideo-seventyfive\",(function(e){wminst.trackVideoMilestone(e,75)})),PubSub.subscribe(\"cnnvideo-ninety\",(function(e){wminst.trackVideoMilestone(e,90)})),PubSub.subscribe(\"cnnvideo-stop\",(function(e){wminst.trackVideoEnd(e,\"stop\")})),PubSub.subscribe(\"cnnvideo-complete\",(function(e){wminst.trackVideoEnd(e,\"complete\")}));try{let e=function(e){return\"span.\"+e+\"-container__back-player-icon-container\"},t=e(\"player\")+\",\"+e(\"fave-player\");document.querySelector(t).addEventListener(\"click\",(function(){wminst.Util.log(\"Back button was clicked. Stop video progress.\"),wminst.stopVideoProgressTimer()}))}catch(e){}\n});", "_satellite[\"_runScript12\"](function(event, target, Promise) {\nwminst.isAudioInitiated=!1,wminst.setAudioInterval_id=0,wminst.liveAudioInterval=0,wminst.trackLinkAudio=function(e,t){wminst.Util.setUserAuthState(),wminst.Util.setIds(),s.tl(this,\"o\",e+\": \"+t.title.toLowerCase())},wminst.startAudioProgressTimer=function(e){wminst.setAudioInterval_id=setInterval((function(){window.trackAudioProgress(e)}),6e4)},wminst.stopAudioProgressTimer=function(){wminst.setAudioInterval_id&&clearInterval(wminst.setAudioInterval_id)},wminst.audioCommonData=function(e){var t,r,a=\"audio\";try{r=\"aod\",void 0===(t=e||{}).isLive||!t.isLive&&\"true\"!=t.isLive||(r=\"live\"),s.trackingServer=wminst.Util.getSiteSpecificSettings(3),s.trackingServerSecure=wminst.Util.getSiteSpecificSettings(4),s.account=_satellite.getVar(\"RSID\"),s.prop1=t.type,t.author&&\"\"!==t.author&&(s.prop2=t.author.toLowerCase()),s.prop7=t.length+\"\",s.eVar7=\"D=c7\",t.title&&\"\"!==t.title&&(s.prop29=t.title.toLowerCase(),s.eVar41=\"D=c29\"),s.eVar33=\"adbp:audio\",s.prop33=\"\",s.prop35=wminst.Util.getCodeVersion(),s.eVar42=t.id,s.eVar45=t.playlist_position+\"\",s.prop45=\"\",s.eVar54=a+\"|\"+r+\"|\"+t.type,s.prop54=\"\",s.eVar67=t.state+\"|\"+(t.status?t.status:\"no value set\")+\"|\"+(t.position?t.position:\"inline\"),s.prop67=\"\",s.eVar82=t.rate+\"\",s.prop82=\"\"}catch(e){}},PubSub.subscribe(\"audio-preroll\",(function(e){s.manageVars(\"clearVars\");var t=wminst.getAudioMetadata(e);s.linkTrackVars=\"events,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.events=\"event91,event92\",s.linkTrackEvents=s.events,wminst.isAudioInitiated=!0,wminst.audioCommonData(t),wminst.trackLinkAudio(\"audio-preroll\",t),wminst.startAudioProgressTimer(t),s.clearVars()})),PubSub.subscribe(\"audio-start\",(function(e){s.manageVars(\"clearVars\");var t=wminst.getAudioMetadata(e),r=new wminst.getCNNMediaCollection;r.start(t.playerid,t.title),s.linkTrackVars=\"events,products,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.events=\"event11\",wminst.audioCommonData(t),wminst.isAudioInitiated||(s.events+=\",event92\"),s.prop7&&null!==s.prop7&&(s.events=s.events+\",event64\",s.products=\";;;;event64=\"+s.prop7),s.linkTrackEvents=s.events,wminst.trackLinkAudio(\"audio-start\",t),wminst.isAudioInitiated=!1,r.set(t.playerid,\"audStarted\",!0),wminst.stopAudioProgressTimer(),wminst.startAudioProgressTimer(t),s.clearVars()})),PubSub.subscribe(\"audio-autostart\",(function(e){s.manageVars(\"clearVars\");var t=wminst.getAudioMetadata(e),r=new wminst.getCNNMediaCollection;r.start(t.playerid,t.title),s.linkTrackVars=\"events,products,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.events=\"event11\",wminst.audioCommonData(t),wminst.isAudioInitiated||(s.events+=\",event92\"),s.prop7&&null!==s.prop7&&(s.events=s.events+\",event64\",s.products=\";;;;event64=\"+s.prop7),s.linkTrackEvents=s.events,wminst.trackLinkAudio(\"audio-autostart\",t),wminst.isAudioInitiated=!1,r.set(t.playerid,\"audStarted\",!0),wminst.stopAudioProgressTimer(),wminst.startAudioProgressTimer(t),s.clearVars()})),PubSub.subscribe(\"audio-complete\",(function(e){s.manageVars(\"clearVars\");var t=wminst.getAudioMetadata(e),r=new wminst.getCNNMediaCollection,a=r.complete(t.playerid);s.linkTrackVars=\"events,products,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.linkTrackEvents=\"event97,event98\",s.events=s.linkTrackEvents,wminst.audioCommonData(t),a>0&&(s.products=\";;;;event98=\"+a),wminst.stopAudioProgressTimer(),wminst.trackLinkAudio(\"audio-complete\",t),r.set(t.playerid,\"audStarted\",!1),r.set(t.playerid,\"hasScrubbed\",!1),r.set(t.playerid,\"isPaused\",!1),r.set(t.playerid,\"isBuffering\",!1),r.set(t.playerid,\"isHalf\",!1),r.set(t.playerid,\"isTen\",!1),r.set(t.playerid,\"isTwentyFive\",!1),r.set(t.playerid,\"isSeventyFive\",!1),s.clearVars()})),PubSub.subscribe(\"audio-pause\",(function(e){var t=wminst.getAudioMetadata(e),r=void 0!==t.pause&&t.pause,a=new wminst.getCNNMediaCollection;a.get(t.playerid,\"audStarted\")&&(s.manageVars(\"clearVars\"),s.linkTrackVars=\"events,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.events=\"event100\",r&&(s.events=\"event99\"),s.linkTrackEvents=s.events,wminst.audioCommonData(t),wminst.trackLinkAudio(r?\"audio-pause\":\"audio-resume\",t));var i=a.get(t.playerid,\"isPaused\");r!=i&&(a.pause(t.playerid),wminst.stopAudioProgressTimer(),i&&wminst.startAudioProgressTimer(t)),s.manageVars(\"clearVars\")})),PubSub.subscribe(\"audio-buffer\",(function(e){var t=wminst.getAudioMetadata(e),s=void 0!==t.buffering&&t.buffering,r=new wminst.getCNNMediaCollection,a=r.get(t.playerid,\"isBuffering\");s!=a&&(r.buffer(t.playerid),wminst.stopAudioProgressTimer(),a&&wminst.startAudioProgressTimer(t))})),PubSub.subscribe(\"audio-scrub\",(function(e){var t=wminst.getAudioMetadata(e);(new wminst.getCNNMediaCollection).set(t.playerid,\"hasScrubbed\",!0)})),PubSub.subscribe(\"audio-progress\",(function(e){var t=wminst.getAudioMetadata(e),r=new wminst.getCNNMediaCollection;s.linkTrackVars=\"events,products,prop1,eVar1,prop2,eVar2,prop7,eVar7,prop29,eVar33,prop35,eVar35,eVar41,eVar42,eVar45,eVar54,eVar67,eVar82\",s.events=\"event98\",s.linkTrackEvents=s.events,wminst.audioCommonData(t);var a=r.progress(t.playerid);a>60&&(wminst.liveAudioInterval=60),(a=wminst.capCNNTimeSpent(a,t.length,wminst.liveAudioInterval))>0&&(s.products=\";;;;event98=\"+a),60==a&&wminst.trackLinkAudio(\"audio-progress\",t),s.manageVars(\"clearVars\")}));\n});", "_satellite[\"_runScript13\"](function(event, target, Promise) {\nwminst.Util.loadScript(\"//www.i.cdn.cnn.com/zion/zion-mb.min.js\",(function(){try{if(\"undefined\"!=typeof s){var i=ZionMessageBus.getInstance(),e=s.visitor.getMarketingCloudVisitorID(),n=s.visitor.getAnalyticsVisitorID();i.publish(\"id_found\",{type:\"adobe_ecid\",value:e}),i.publish(\"id_found\",{type:\"adobe_vi\",value:n})}}catch(i){console.error(i)}}));\n});", "1C61C789E3B28013F186C98A8671478B", "55D6466089213C4314813171029707FC", "E2DF3BC2197E77881A7CD294B6B54CA3", "15F1BED652A3DB8D3D530BE0B95794CA", "\n\nvar allowedOrigins = [[\"^http://edition\\\\.cnn\\\\.com/$\", \"\"], [\".*.cnn.com\", \"i\"], [\"^https?://(.+\\\\.)?cnnespanol\\\\.cnn\\\\.com$\", \"\"]];\nvar blockedOrigins = [];\n\n!function(){\"use strict\";var d,l,r,c;try{d=window.localStorage}catch(e){l=e}function u(e){return!c||0!==e.indexOf(c.origin)}function v(e,i){return new RegExp(i[0],i[1]).test(e)}function p(e){if(!r){var i={id:\"iframeerror\",type:\"ERROR\",response:\"Error accessing localStorage: \"+(r=e?e.toString():\"Localstorage is undefined\")};0,event.source.postMessage(JSON.stringify(i),event.origin)}}window.addEventListener(\"message\",function(e){var i,r,t,n,o,s=!1;for(o=0;o