Here are 26 tips and everything you need to store your holiday decorations



-1}module.exports=listCacheHas;
}, {“2312”:2312}];
window.modules[“2269″] = [function(require,module,exports){var getNative=require(2252),root=require(2251),Map=getNative(root,”Map”);module.exports=Map;
}, {“2251″:2251,”2252”:2252}];
window.modules[“2270”] = [function(require,module,exports){var mapCacheClear=require(2275),mapCacheDelete=require(2271),mapCacheGet=require(2274),mapCacheHas=require(2272),mapCacheSet=require(2273);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;
}, {“2301″:2301,”2340”:2340}];
window.modules[“2340”] = [function(require,module,exports){var Symbol=require(2287),isArguments=require(2295),isArray=require(315),spreadableSymbol=Symbol?Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}module.exports=isFlattenable;
}, {“315″:315,”2287″:2287,”2295”:2295}];
window.modules[“2341”] = [function(require,module,exports){var createBaseFor=require(2342),baseFor=createBaseFor();module.exports=baseFor;
}, {“2342”:2342}];
window.modules[“2342”] = [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;
}, {}];
window.modules[“2343”] = [function(require,module,exports){var castPath=require(2344),toKey=require(2345);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&&en?0:n+r),(a=a>n?n:a)a?0:a-r>>>0,r>>>=0;for(var o=Array(n);++l1?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-1?a[n?r[s]:s]:void 0}}module.exports=createFind;
}, {“2315″:2315,”2372″:2372,”2382”:2382}];
window.modules[“2443″] = [function(require,module,exports){var flatten=require(2453),overRest=require(2407),setToString=require(2406);function flatRest(e){return setToString(overRest(e,void 0,flatten),e+””)}module.exports=flatRest;
}, {“2406″:2406,”2407″:2407,”2453”:2453}];
window.modules[“2448”] = [function(require,module,exports){var toNumber=require(2479),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308;function toFinite(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}module.exports=shortOut;
}, {}];
window.modules[“2474″] = [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=”[‘’]”,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;
}, {}];
window.modules[“2479”] = [function(require,module,exports){var baseTrim=require(2413),isObject=require(314),isSymbol=require(2337),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;
}, {“314″:314,”2337″:2337,”2413”:2413}];
window.modules[“2480”] = [function(require,module,exports){var root=require(2251),now=function(){return root.Date.now()};module.exports=now;
}, {“2251”:2251}];
window.modules[“2482”] = [function(require,module,exports){var baseRest=require(2405),eq=require(2310),isIterateeCall=require(2434),keysIn=require(2317),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(/'(?=dd)/,”’”)).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”,”∑”:”majmou”,”¤”:”omla”},az:{},ca:{“∆”:”delta”,”∞”:”infinit”,”♥”:”amor”,”&”:”i”,”|”:”o”,””:”mes que”,”∑”:”suma dels”,”¤”:”moneda”},cs:{“∆”:”delta”,”∞”:”nekonecno”,”♥”:”laska”,”&”:”a”,”|”:”nebo”,””:”vetsi nez”,”∑”:”soucet”,”¤”:”mena”},de:{“∆”:”delta”,”∞”:”unendlich”,”♥”:”Liebe”,”&”:”und”,”|”:”oder”,””:”groesser als”,”∑”:”Summe von”,”¤”:”Waehrung”},dv:{“∆”:”delta”,”∞”:”kolunulaa”,”♥”:”loabi”,”&”:”aai”,”|”:”noonee”,””:”ah vure bodu”,”∑”:”jumula”,”¤”:”faisaa”},en:{“∆”:”delta”,”∞”:”infinity”,”♥”:”love”,”&”:”and”,”|”:”or”,””:”greater than”,”∑”:”sum”,”¤”:”currency”},es:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amor”,”&”:”y”,”|”:”u”,””:”mas que”,”∑”:”suma de los”,”¤”:”moneda”},fa:{“∆”:”delta”,”∞”:”bi-nahayat”,”♥”:”eshgh”,”&”:”va”,”|”:”ya”,””:”bishtar-az”,”∑”:”majmooe”,”¤”:”vahed”},fi:{“∆”:”delta”,”∞”:”aarettomyys”,”♥”:”rakkaus”,”&”:”ja”,”|”:”tai”,””:”suurempi kuin”,”∑”:”summa”,”¤”:”valuutta”},fr:{“∆”:”delta”,”∞”:”infiniment”,”♥”:”Amour”,”&”:”et”,”|”:”ou”,””:”superieure a”,”∑”:”somme des”,”¤”:”monnaie”},ge:{“∆”:”delta”,”∞”:”usasruloba”,”♥”:”siqvaruli”,”&”:”da”,”|”:”an”,””:”meti”,”∑”:”jami”,”¤”:”valuta”},gr:{},hu:{“∆”:”delta”,”∞”:”vegtelen”,”♥”:”szerelem”,”&”:”es”,”|”:”vagy”,””:”nagyobb mint”,”∑”:”szumma”,”¤”:”penznem”},it:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amore”,”&”:”e”,”|”:”o”,””:”maggiore di”,”∑”:”somma”,”¤”:”moneta”},lt:{“∆”:”delta”,”∞”:”begalybe”,”♥”:”meile”,”&”:”ir”,”|”:”ar”,””:”daugiau nei”,”∑”:”suma”,”¤”:”valiuta”},lv:{“∆”:”delta”,”∞”:”bezgaliba”,”♥”:”milestiba”,”&”:”un”,”|”:”vai”,””:”lielaks neka”,”∑”:”summa”,”¤”:”valuta”},my:{“∆”:”kwahkhyaet”,”∞”:”asaonasme”,”♥”:”akhyait”,”&”:”nhin”,”|”:”tho”,””:”kyithaw”,”∑”:”paungld”,”¤”:”ngwekye”},mk:{},nl:{“∆”:”delta”,”∞”:”oneindig”,”♥”:”liefde”,”&”:”en”,”|”:”of”,””:”groter dan”,”∑”:”som”,”¤”:”valuta”},pl:{“∆”:”delta”,”∞”:”nieskonczonosc”,”♥”:”milosc”,”&”:”i”,”|”:”lub”,””:”wieksze niz”,”∑”:”suma”,”¤”:”waluta”},pt:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amor”,”&”:”e”,”|”:”ou”,””:”maior que”,”∑”:”soma”,”¤”:”moeda”},ro:{“∆”:”delta”,”∞”:”infinit”,”♥”:”dragoste”,”&”:”si”,”|”:”sau”,””:”mai mare ca”,”∑”:”suma”,”¤”:”valuta”},ru:{“∆”:”delta”,”∞”:”beskonechno”,”♥”:”lubov”,”&”:”i”,”|”:”ili”,””:”bolshe”,”∑”:”summa”,”¤”:”valjuta”},sk:{“∆”:”delta”,”∞”:”nekonecno”,”♥”:”laska”,”&”:”a”,”|”:”alebo”,””:”viac ako”,”∑”:”sucet”,”¤”:”mena”},sr:{},tr:{“∆”:”delta”,”∞”:”sonsuzluk”,”♥”:”ask”,”&”:”ve”,”|”:”veya”,””:”buyuktur”,”∑”:”toplam”,”¤”:”para birimi”},uk:{“∆”:”delta”,”∞”:”bezkinechnist”,”♥”:”lubov”,”&”:”i”,”|”:”abo”,””:”bilshe”,”∑”:”suma”,”¤”:”valjuta”},vn:{“∆”:”delta”,”∞”:”vo cuc”,”♥”:”yeu”,”&”:”va”,”|”:”hoac”,””:”lon hon”,”∑”:”tong”,”¤”:”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())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);
}, {}];
window.modules[“2590”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(7),_regenerator=_interopRequireDefault(require(30)),_asyncToGenerator2=_interopRequireDefault(require(29)),_defineProperty2=_interopRequireDefault(require(24)),_classCallCheck2=_interopRequireDefault(require(9)),_createClass2=_interopRequireDefault(require(10));function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;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;
}, {“7″:7,”9″:9,”10″:10,”24″:24,”29″:29,”30″:30,”2591”:2591}];
window.modules[“2591”] = [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;
}, {}];
window.modules[“2596”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(7),_defineProperty2=_interopRequireDefault(require(24));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=>`]*>`).join(“|”),”i”);module.exports=(t=>basic.test(t)||full.test(t));
}, {“2782”:2782}];
window.modules[“2649”] = [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)]>4,p[a++]=255&r),1===u&&(r=revLookup[o.charCodeAt(e)]>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>10]+lookup[r>>4&63]+lookup[r>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1>=-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=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=p0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
}, {}];
window.modules[“2781”] = [function(require,module,exports){module.exports=[
“a”,
“abbr”,
“address”,
“area”,
“article”,
“aside”,
“audio”,
“b”,
“base”,
“bdi”,
“bdo”,
“blockquote”,
“body”,
“br”,
“button”,
“canvas”,
“caption”,
“cite”,
“code”,
“col”,
“colgroup”,
“data”,
“datalist”,
“dd”,
“del”,
“details”,
“dfn”,
“dialog”,
“div”,
“dl”,
“dt”,
“em”,
“embed”,
“fieldset”,
“figcaption”,
“figure”,
“footer”,
“form”,
“h1”,
“h2”,
“h3”,
“h4”,
“h5”,
“h6”,
“head”,
“header”,
“hgroup”,
“hr”,
“html”,
“i”,
“iframe”,
“img”,
“input”,
“ins”,
“kbd”,
“label”,
“legend”,
“li”,
“link”,
“main”,
“map”,
“mark”,
“math”,
“menu”,
“menuitem”,
“meta”,
“meter”,
“nav”,
“noscript”,
“object”,
“ol”,
“optgroup”,
“option”,
“output”,
“p”,
“param”,
“picture”,
“pre”,
“progress”,
“q”,
“rb”,
“rp”,
“rt”,
“rtc”,
“ruby”,
“s”,
“samp”,
“script”,
“section”,
“select”,
“slot”,
“small”,
“source”,
“span”,
“strong”,
“style”,
“sub”,
“summary”,
“sup”,
“svg”,
“table”,
“tbody”,
“td”,
“template”,
“textarea”,
“tfoot”,
“th”,
“thead”,
“time”,
“title”,
“tr”,
“track”,
“u”,
“ul”,
“var”,
“video”,
“wbr”
]
}, {}];
window.modules[“2782”] = [function(require,module,exports){“use strict”;module.exports=require(2781);
}, {“2781”:2781}];
window.modules[“header.client”] = [function(require,module,exports){“use strict”;var moreDropdownLink,hoverStartTime,_interopRequireDefault=require(7),_slicedToArray2=_interopRequireDefault(require(23)),_toConsumableArray2=_interopRequireDefault(require(25)),HEADER_ICON_IDS=[“headerMenuIcon”,”headerSearchIcon”,”headerCloseIcon”],MORE_DROPDOWN_LINK_ID=”moreDropdown”,_require=require(113),calculateNavLeftMaxWidth=_require.calculateNavLeftMaxWidth,_require2=require(114),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 .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);oe?o.classList.add(“show”):o.classList.remove(“show”)}o.addEventListener(“click”,function(){window.scrollTo({top:0,behavior:”smooth”})}),window.addEventListener(“scroll”,n),window.addEventListener(“load”,n)};
}, {}];
window.modules[“bizdev-outbrain.client”] = [function(require,module,exports){“use strict”;var _require=require(20),positionElement=_require.positionElement,_require2=require(21),mediumMaxWidthListener=_require2.mediumMaxWidthListener,isVisibleViewport=_require2.isVisibleViewport,ucStates=[“iab”,”data-store”,”ads-contextual”,”ads-person-prof”,”ads-person”,”content-person-prof”,”content-person”,”measure-ads”,”measure-content”,”measure-market”,”product-develop”,”vendor”],addScript=!0;module.exports=function(e){var i=e.dataset,t=i.visibleViewport,r=i.placement,n=e.innerHTML;addScript&&(addScript=!1,window.WM.UserConsent.addScript({src:”//widgets.outbrain.com/outbrain.js”,async:!0},ucStates),mediumMaxWidthListener(function(){window.OBR&&window.OBR.extern&&window.OBR.extern.reloadWidget()},{last:!0})),r?positionElement(e,{onRefreshPosition:function(){return window.OBR.extern.reloadWidget()}}):mediumMaxWidthListener(function(i){e.innerHTML=isVisibleViewport(t,i)?n:””})};
}, {“20″:20,”21”:21}];
window.modules[“newsletter.client”] = [function(require,module,exports){“use strict”;var _require=require(19),validateInput=_require.validateInput;module.exports=function(e){var t=e.querySelector(“.newsletter__form”),n=e.querySelector(“.newsletter__status”),r=t.querySelector(“.newsletter__email-input”),i=t.getAttribute(“data-subsection”),s=e.querySelector(“.newsletter__container”),u=e.querySelector(“.newsletter__success”);function a(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(s.classList.add(“hide”),u.classList.remove(“hide”)):(s.classList.remove(“hide”),u.classList.add(“hide”))}var o=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=validateInput(e,{type:”email”,required:!0,customMsg:”Enter a valid email address”});if(n){if(!t&&!e.length)return n;if(e.length)return n}return!1},c=function(){var e=r.value;o(e)||(n.innerHTML=””)},l=function(e){n.innerHTML=e,n.classList.add(“newsletter__status-invalid”)};t.addEventListener(“focusout”,function(e){e.preventDefault(),c()}),r.addEventListener(“input”,function(e){e.preventDefault(),c()}),t.addEventListener(“focusin”,function(e){e.preventDefault();var t=o(r.value);t&&l(t)}),t.addEventListener(“submit”,function(e){e.preventDefault(),function(){var e=r.value,t=o(e,!1);if(e.length&&!t){var s={user_id:e.toLowerCase(),email:e,underscored:!0,underscored_source:”underscored”.concat(i?”_”.concat(i):””),underscored_subscribe:new Date};bt(“updateUser”,s,{onFailure:function(){n.innerHTML=”Something went wrong sign in, try again later”},onSuccess:function(){a(!0),r.value=””,setTimeout(function(){a(!1)},7e3)}})}else l(t)}()})};
}, {“19”:19}];
window.modules[“image.client”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(7),_createClass2=_interopRequireDefault(require(10)),_classCallCheck2=_interopRequireDefault(require(9)),_inherits2=_interopRequireDefault(require(12)),_possibleConstructorReturn2=_interopRequireDefault(require(13)),_getPrototypeOf2=_interopRequireDefault(require(14));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var l=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if(“undefined”==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(“function”==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(15),ClientModel=_require.ClientModel,initializeOnExec=_require.initializeOnExec,elementResizeObserver=require(50),Image=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;return(0,_classCallCheck2.default)(this,r),i=t.call(this,e),elementResizeObserver.observe(e),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnExec(Image);
}, {“7″:7,”9″:9,”10″:10,”12″:12,”13″:13,”14″:14,”15″:15,”50”:50}];
window.modules[“paragraph.client”] = [function(require,module,exports){“use strict”;var _require=require(123),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)};
}, {“123”:123}];
window.modules[“product-card.client”] = [function(require,module,exports){“use strict”;var _require=require(67),getComponentUri=_require.getComponentUri;module.exports=function(e){var t,r;t=e.querySelectorAll(“.product-card_expanded__images .image”),r=e.querySelectorAll(“.product-card_expanded__image .image”),t.forEach(function(e){e.addEventListener(“click”,function(e){var t=getComponentUri(e.target);r.forEach(function(e){e.style.display=e.getAttribute(“data-uri”)===t?”inline-block”:”none”})})}),e.querySelectorAll(“.sticker”).forEach(function(t){var r=t.getAttribute(“data-component-variation”);”true”===t.getAttribute(“data-sticker-expired-or-unsupported”)?t.style.display=”none”:e.classList.add(“”.concat(r,”__sticker-spacing”))})};
}, {“67”:67}];
window.modules[“list.client”] = [function(require,module,exports){“use strict”;var _require=require(123),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)};
}, {“123”:123}];
window.modules[“social-share.client”] = [function(require,module,exports){“use strict”;module.exports=function(e){var t=e.classList.contains(“social-share_compact”),a=e.querySelector(“[data-type=open]”),c=e.querySelector(“[data-type=close]”),r=e.querySelector(“[data-type=facebook]”),n=e.querySelector(“[data-type=twitter]”),o=e.querySelector(“[data-type=email]”),i=e.querySelector(“[data-type=share-links]”),s=e.querySelector(“[data-type=copy]”),d=e.querySelector(“[data-type=message]”),l=function(){t&&c.click()};s.addEventListener(“click”,function(){var e=document.createElement(“input”);e.value=s.dataset.url,s.parentNode.appendChild(e),e.select(),document.execCommand(“copy”),s.parentNode.removeChild(e),d.classList.add(“show”),setTimeout(function(){d.classList.remove(“show”),l()},1e3)}),[r,n].forEach(function(e){e.addEventListener(“click”,function(){window.open(e.dataset.url,”_blank”,”width=600,height=600,scrollbars=no,resizable=no,noopener,noreferrer”),l()})}),o.addEventListener(“click”,l),a.addEventListener(“click”,function(){return[a,c,i].forEach(function(e){return e.classList.add(“active”)})}),c.addEventListener(“click”,function(){return[a,c,i].forEach(function(e){return e.classList.remove(“active”)})})};
}, {}];
window.modules[“table-of-contents.client”] = [function(require,module,exports){“use strict”;var _require=require(21),VIEWPORT_MEDIUM_WIDTH=_require.VIEWPORT_MEDIUM_WIDTH;module.exports=function(e){var t=e.dataset.componentVariation||”table-of-contents”,n=e.querySelector(“.”.concat(t,”__title-wrapper”)),i=document.querySelector(“.layout-with-rail__rail”),r=document.querySelector(“.layout-with-rail__top”),o=document.querySelector(“.ad-slot-top”);function c(){e.classList.toggle(“expand”)}function a(){window.innerWidthVIEWPORT_MEDIUM_WIDTH?i&&i.prepend(e):r&&(o.style.display=”none”,r.append(e))}a(),l(),window.addEventListener(“resize”,function(){n.removeEventListener(“click”,c),a(),l()})};
}, {“21”:21}];
window.modules[“ad-slot.client”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(7),_slicedToArray2=_interopRequireDefault(require(23)),_toConsumableArray2=_interopRequireDefault(require(25)),_defineProperty2=_interopRequireDefault(require(24));function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t0?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);
}, {“2″:2,”7″:7,”17″:17,”24″:24,”104″:104,”2502”:2502}];
window.modules[“campaign-promo-events.legacy”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(7),_regenerator=_interopRequireDefault(require(30)),_asyncToGenerator2=_interopRequireDefault(require(29)),_require=require(104),authClient=_require.authClient,NewsletterClient=require(179),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”));
}, {“7″:7,”29″:29,”30″:30,”104″:104,”179”:179}];
window.modules[“scroll-metrics.legacy”] = [function(require,module,exports){“use strict”;var throttle=require(22),_require=require(94),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)))});
}, {“22″:22,”94”:94}];
window.modules[“zeta.legacy”] = [function(require,module,exports){“use strict”;var clientHashKey=window.zeta.client_hash_key,partnerHashKey=window.zeta.partner_hash_key,tagShortName=window.zeta.tag_short_name,siteId=window.zeta.site_id,resourceId=window.CNN.contentModel.sourceId,resourceType=window.CNN.contentModel.pageType,section=window.CNN.contentModel.section,cacheBuster=Date.now(),src=”https://live.rezync.com/sync?”+”c=”.concat(clientHashKey)+”&p=”.concat(partnerHashKey)+”&k=”.concat(tagShortName)+”&zmpID=”.concat(siteId)+”&custom1=”.concat(resourceId)+”&custom2=”.concat(resourceType)+”&custom3=”.concat(section)+”&cache_buster=”.concat(cacheBuster),scriptTag=document.createElement(“script”);scriptTag.async=!0,scriptTag.src=src,document.head.appendChild(scriptTag),scriptTag.onload=function(){window.dispatchEvent(new CustomEvent(“zeta.loaded”))},scriptTag.onerror=function(){window.dispatchEvent(new CustomEvent(“zeta.error”))};
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”function”&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(“Cannot find module ‘”+o+”‘”);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==”function”&&require;for(var o=0;o typeof key === ‘string’ && key.match(/.legacy$/))
.forEach((key) => window.require(key));
}

function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));

console.error(`Error initializing controller for “${name}” on “${elementTag}”`, e);
}
}

/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules)
.filter((key) => typeof key === ‘string’ && key.match(/.client$/))
.forEach((key) => {
let controllerFn = window.require(key);

if (typeof controllerFn === ‘function’) {
const name = key.replace(‘.client’, ”),
instancesSelector = `[data-uri*=”_components/${name}/”]`,
defaultSelector = `[data-uri$=”_components${name}”]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);

for (let el of instances) {
tryToMount(controllerFn, el, name);
}

for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}

// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `production` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = ‘production’;
}

// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]



Shared From Source link Breaking News

Leave a Reply

Your email address will not be published.