!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof def&&def.amd?def("ph-platform",["exports"],t):t((e.phw=e.phw||{},e.phw.platform={}))}(this,function(e){"use strict";var d=function(){return(d=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=(t.prototype.fecthPhApp=function(){return this.phApp},t.prototype.getDDOFromCache=function(e){var t=this.phApp.ddo,a=this.phApp.pageGroup||{};return t[e]||a[e]},t.prototype.getCsrfToken=function(){var e=document.getElementById("csrfToken");return this.phApp.csrfToken=e&&e.innerText||"",this.phApp.csrfToken||(this.phApp.csrfToken=this.phApp.sessionParams&&this.phApp.sessionParams.csrfToken),this.phApp.csrfToken},t.prototype.getImageUrl=function(){var n=this,i=["cdnUrl","refNum","locale","deviceType"],o="";return i.forEach(function(e,t){var a=n.phApp[e];a&&0<a.trim().length&&(o+=a,"/"!==a[a.length-1]&&i.length-1<t&&(o+="/"))}),o},t.prototype.convertWidgetTagToComponentName=function(e){return e&&e.trim().length?e.substring(e.lastIndexOf("-")+1)+"/"+e.substring(0,e.lastIndexOf("-")):e},t.prototype.getSiteSettings=function(e){var t=this.getDDOFromCache("siteConfig");if(t&&t.data)return e?t.data.siteSettings[e]||t.data[e]:t.data.siteSettings},t.prototype.fetchReqObj=function(){return{deviceType:this.phApp.deviceType,refNum:this.phApp.refNum,lang:this.phApp.locale||"en_us",siteType:this.phApp.siteType,pageId:this.phApp.pageId,pageName:this.phApp.pageName,country:this.phApp.country}},t);function t(){this.phApp=window.phApp||{},this.phApp.ddo=this.phApp.ddo||{}}var n=[{key:"domainName",regex:/{{domainName}}/g,value:""},{key:"linkDomain",regex:/{{linkDomain}}/g,value:""},{key:"imgSrc",regex:/{{imgSrc}}/g,value:""}],y={videowrapper:"video",imagewrapper:"image",linkwrapper:"link"},i=(o.prototype.constructCntReplaceMap=function(){var e=(this.phApp.rootDomain||this.phApp.baseDomain||"").replace("https://","");this.contentReplaceables.domainName=e,this.contentReplaceables.linkDomain=this.phApp.baseUrl,this.contentReplaceables.imgSrc=this.platformUtils.getImageUrl()},o.prototype.applyContextToContentModel=function(t){var a=this;for(var e in t=JSON.stringify(t)||"",this.contentReplaceables){t=(t=t.replace(/&lt;/g,"<")).replace(/&gt;/g,">"),n.forEach(function(e){t=t.replace(e.regex,a.contentReplaceables[e.key])});try{return JSON.parse(t)}catch(e){}}},o.prototype.flattenContentModel=function(e,u,m,t){var h=this;if(!u||!e)return u;var g=e.content||e,f=t||{};m=m||{},Object.keys(g).forEach(function(i){if("_cid"!=i)if("_refType"!=i){var e=g[i]?g[i].type:void 0,o=g[i]?g[i].refType:void 0;if(e){var t=g[i]?g[i].value:void 0;t||"string"!=typeof g[i]||(t=g[i]);var a=typeof t;t||(a="string");var n=m[t];if(n&&(a=typeof n),"dynamictext"==e)u[i]=t;else switch(a){case"object":if(Array.isArray(t)){var s=t;u[i]=[];var r=[];s.forEach(function(e,t){var a={},n=m[e];n&&((u[i][t]=a)._cid=e,a.position=t+1,f&&f.quoteImage&&n&&(n.quoteImage=f.quoteImage),"object"==typeof e&&(n=e,a={}),h.flattenContentModel(n,a,m,f),r.push(a))}),r.forEach(function(e,t){u[i][t]=e})}else{var d=t,c={};u[i]=c;var p=m[d]||{};if(p._cid=d,o&&(p._refType=o),"object"==typeof d&&(p=d||{},c={}),o&&y[o]){var l=m[t]||t||{};l&&(Object.keys(l).forEach(function(e){var t=l[e];if("object"==typeof t&&t.refType==y[o]){var a=m[t.value]||t.value||{};for(var n in a)a.hasOwnProperty(n)&&!l[n]&&(l[n]=a[n]);delete l[e],p=l}}),"videowrapper"===o&&f.playImg&&(l.playImg=f.playImg))}h.flattenContentModel(p,c,m,f),c&&(u[i]=c)}break;default:t&&(u[i]=t)}}}else u[i]=g[i];else u[i]=g[i]})},o.prototype.fillContentBasedOnMapper=function(e,t,a,n,i,o){var s;if(t&&a)if(t.split(".").forEach(function(e){s=s?s[e]:n[e]}),-1!=a.indexOf(".")){var r=a.split(".");if(r&&r.length){var d=r.pop();r.reduce(function(e,t){return e[t]=e[t]||{}},i)[d]=s}}else i[a]=s},o.prototype.mapViewContentModels=function(e){if(e&&e.content){var t=e.content;for(var a in e.origContentItems={},t)if(t.hasOwnProperty(a)){var n=t[a]||{};if(e.origContentItems[a]=JSON.parse(JSON.stringify(n)),n&&n.mappingModel&&"string"==typeof n.mappingModel){var i=n.mappingModel,o=e.modelMappings[i]&&e.modelMappings[i].mapping,s={};if(o){for(var r in o)o.hasOwnProperty(r)&&this.fillContentBasedOnMapper(a,o[r],r,n,s,e);s.mappingModel=o}t[a]=s}}}},o.prototype.compileContentModel=function(a,i){var o=this;return(i=i||{})&&(this.mapViewContentModels(i.data?i.data:i),Object.keys(a||{}).forEach(function(e,t){(a[e]||[]).forEach(function(e){var t={},a=e["data-ph-content-id"],n=i.data&&(i.data.content||i.data);n&&n[a]&&(o.flattenContentModel(n[a],t,n,n[a]),n[a].rawContent=n[a].content,t=o.applyContextToContentModel(t),n[a].content||(n[a].content=t))})})),i},o);function o(){this.contentReplaceables={},this.platformUtils=new a,this.phApp=this.platformUtils.fecthPhApp(),this.constructCntReplaceMap()}var c="X-CSRF-TOKEN",s=(r.prototype.getDDOFromCache=function(e){return this.phApp.ddo[e]},r.prototype.fetchCachedDdo=function(e){return this.getDDOFromCache(e)},r.prototype.fetchEnvironment=function(){var e={};return this.phApp&&(e.componentBase=this.phApp.widgetScriptUrl||this.phApp.cdnUrl+"/common/js/caas-platform/widgets/"),e},r.prototype.formatParams=function(t){return"?"+Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")},r);function r(){var t=this;this.platformUtils=new a,this.makeRequest=function(n,i,e){var o=t.phApp.widgetApiEndpoint,s=new XMLHttpRequest,r=t;return new Promise(function(a,e){var t=r.getDDOFromCache(i);t?a(t):(s.open("POST",o,!0),n.ddoKey=i,s.setRequestHeader("Content-type","application/json"),s.setRequestHeader(c,r.platformUtils.getCsrfToken()),s.onreadystatechange=function(e){if(this.readyState==XMLHttpRequest.DONE||4===this.readyState){if(200==this.status){var t=JSON.parse(s.responseText);(t=t[i])&&500!=t.status&&(t=t[i]||t,r.phApp.loadingPage=!1)}a(t)}},s.send(JSON.stringify(n)))})},this.makeGetRequest=function(n,i,e){var o=n.url||t.phApp.widgetApiEndpoint,s=new XMLHttpRequest,r=t;return delete n.url,new Promise(function(a,e){var t=r.getDDOFromCache(i);t?a(t):(s.open("GET",o+r.formatParams(n),!0),s.setRequestHeader("Content-type","application/json"),s.setRequestHeader(c,r.platformUtils.getCsrfToken()),s.onreadystatechange=function(e){if(this.readyState==XMLHttpRequest.DONE||4===this.readyState){if(200==this.status){var t=JSON.parse(s.responseText);(t=t[i])&&500!=t.status&&(t=t[i]||t,r.phApp.loadingPage=!1)}a(t)}},s.send(null))})},this.phApp=this.platformUtils.fecthPhApp()}var p=["data-ph-id"],l="instance-id",u="data-ph-widget-id",m="instance-id",h=["[",u,"]"].join(""),g="data-ph-content-id",f=["pcs-card-v1","pcs-component-v1"],v=(k.prototype.constructWgtTempElm=function(e){if(!e||"object"==typeof e)return e||document;var t=document.createElement("div");return t.innerHTML=e,t},k.prototype.prepareWidgetBlocks=function(e,t){var a=this.constructWgtTempElm(e),n=a.querySelectorAll(h);!n.length&&a&&a.getAttribute&&a.getAttribute(u)&&(n=[a]);for(var i=n.length,o=0;o<i;o++){var s=n[o];this.prepareWidgetBlock(s,t)}},k.prototype.prepareWidgetBlock=function(e,t){if(!this.handleHideOnDevice(e)){var a=e.getAttribute(u),n=e.getAttribute(m),i=e.getAttribute(g);this.phApp.ddo=this.phApp.ddo||{};var o=this.phApp.ddo.caasPageViews&&this.phApp.ddo.caasPageViews.data,s=o&&o.views&&o.views[a],r=o&&o.aliases&&(o.aliases[t+"-"+n]||o.aliases[n])||{};!Object.keys(r).length&&n&&(o.aliases[n]=[],r=o.aliases[n]);var d=o&&o.settings&&o.settings[n];if(s&&s.html&&r){var c=this.constructWgtTempElm(s.html);r.html=this.addExtraLogicToView(c,r,d,n||t);var p=this.addwidgetElemWithAttr(s,a,n,i,e);this.replacePhWidgetWithCmpt(e,p),this.prepareWidgetBlocks(r.html,t||n)}}},k.prototype.addExtraLogicToView=function(e,i,t,a){for(var o=e.querySelectorAll("[data-ph-content-id]"),n=function(e){var t=o[e],a=t.getAttribute("ph-alias");if(Object.keys(i).length&&a){var n=i.find(function(e){return e.alias==a});n&&n["data-ph-content-id"]&&t.setAttribute("data-ph-content-id",n["data-ph-content-id"]),s.handleElemAttributes(t,a)}},s=this,r=0;r<o.length;r++)n(r);return this.applyInstanceIdsToSettingsBlock(e,a),e.innerHTML},k.prototype.handleElemAttributes=function(e,t){e.removeAttribute("ph-alias");var a={};for(var n in e.attributes)e.attributes[n]&&e.attributes[n].nodeName&&e.attributes[n].nodeValue&&(a[e.attributes[n].nodeName]=[e.attributes[n].nodeValue]);var i=["exposeAliasToTemplate('",t,"','",e.getAttribute("data-ph-content-id"),"')"].join("");for(var o in e.setAttribute("v-bind:alias",i),a)e.removeAttribute(o);for(var s in a)e.setAttribute(s,a[s])},k.prototype.fetchElemBindables=function(e,t){if(t=t||{},e&&e.attributes)for(var a=0;a<Object.keys(e.attributes).length;a++){var n="data-pha-",i=e.attributes[a].name||"";i.startsWith(n)&&-1==p.indexOf(i)&&(t[i=i.replace(n,"")]=e.attributes[a].value)}return t},k.prototype.addwidgetElemWithAttr=function(e,t,a,n,i){var o=e.widgetTag,s=document.createElement(o),r={"data-widget":o,"data-ph-widget-id":t,"widget-id":t,"instance-id":a,"content-id":n,class:[o,e.view,e.theme].join("-")};-1==f.indexOf(o)&&(r.class=r.class+" pcs-widget",s.style.padding="15px");var d=this.fetchElemBindables(i,r);for(var c in d)r.hasOwnProperty(c)&&r[c]&&r[c]&&s.setAttribute(c,r[c]);return o&&-1===this.componentsToLoad.indexOf(o)&&-1===this.widgetTags.indexOf(o)&&this.widgetTags.push(o),s},k.prototype.addWidgetTagsToNestedWidgets=function(e){if(e&&e.views)for(var t in e.views)if(e.views[t]){var a=e.views[t].html,n=a&&this.constructWgtTempElm(a),i=n&&n.querySelectorAll(h);if(i&&i.length){for(var o=0;o<i.length;o++){var s=i[o],r=s.getAttribute(u),d=s.getAttribute(m),c=s.getAttribute(g);if(e.views[r]){var p=this.addwidgetElemWithAttr(e.views[r],r,d,c,s);this.replacePhWidgetWithCmpt(s,p)}}e.views[t].html=n.innerHTML}}},k.prototype.replacePhWidgetWithCmpt=function(e,t){var a=e&&e.nodeName.toLowerCase(),n=t;if(-1==f.indexOf(a)){var i=document.createElement("section");i.classList.add("pcs-widget");var o=e.getAttribute("instance-id"),s=e.getAttribute("data-ph-id");o&&i.setAttribute("instance-id",o),s&&i.setAttribute("data-ph-id",s),i.appendChild(t),n=i}e.parentElement&&e.parentElement.insertBefore(n,e);for(var r=0;r<e.attributes.length;r++)if("class"!=e.attributes[r].name)t.setAttribute(e.attributes[r].name,e.attributes[r].value);else for(var d=e&&e.classList,c=0;c<d.length;c++)t.classList.contains(d[c])||t.classList.add(d[c]);e.parentElement&&e.parentElement.removeChild(e)},k.prototype.applyInstanceIdsToSettingsBlock=function(e,t){if(e){var a=[{key:l,value:t}];this.fetchNestedWidgetsAndApplyInstanceAttrs(e,a)}},k.prototype.fetchNestedWidgetsAndApplyInstanceAttrs=function(e,t){if(e&&t.length)for(var a=e.querySelectorAll("["+l+"]"),n=0;n<a.length;n++)for(var i=a[n],o=0;o<t.length;o++){var s=i.getAttribute(l);t[o].key==l&&s&&t[o].value?(s=t[o].value+"-"+s,i.setAttribute(t[o].key,s)):i.setAttribute(t[o].key,t[o].value)}},k.prototype.handleHideOnDevice=function(e){var t=e.getAttribute("hide-on-mobile"),a=e.getAttribute("hide-on-desktop"),n=this.phApp.deviceType,i=!1;return n&&"mobile"===n&&"true"===t?i=!0:n&&"desktop"===n&&"true"===a&&(i=!0),!!i&&(e.parentElement&&e.parentElement.removeChild&&e.parentElement.removeChild(e),i)},k);function k(){this.widgetTags=[],this.componentsToLoad=[],this.platformUtils=new a,this.phApp=this.platformUtils.fecthPhApp()}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var w,b=(function(e,t){function s(e,t){if(e){var a=p[e];if(c[e]=t,a)for(;a.length;)a[0](e,t),a.splice(0,1)}}function r(e,t){e.call&&(e={success:e}),t.length?(e.error||u)(t):(e.success||u)(e)}function l(a,n,i,o){var s,r,e=document,t=i.async,d=(i.numRetries||0)+1,c=i.before||u,p=a.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(a)?((r=e.createElement("link")).rel="stylesheet",r.href=p,(s="hideFocus"in r)&&r.relList&&(s=0,r.rel="preload",r.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(a)?(r=e.createElement("img")).src=p:((r=e.createElement("script")).src=a,r.async=void 0===t||t),!(r.onload=r.onerror=r.onbeforeload=function(e){var t=e.type[0];if(s)try{r.sheet.cssText.length||(t="e")}catch(e){18!=e.code&&(t="e")}if("e"==t){if((o+=1)<d)return l(a,n,i,o)}else if("preload"==r.rel&&"style"==r.as)return r.rel="stylesheet";n(a,t,e.defaultPrevented)})!==c(a,r)&&e.head.appendChild(r)}function a(e,t,a){var n,i;if(t&&t.trim&&(n=t),i=(n?a:t)||{},n){if(n in d)throw"LoadJS";d[n]=!0}function o(t,a){!function(e,n,t){var a,i,o=(e=e.push?e:[e]).length,s=o,r=[];for(a=function(e,t,a){if("e"==t&&r.push(e),"b"==t){if(!a)return;r.push(e)}--o||n(r)},i=0;i<s;i++)l(e[i],a,t)}(e,function(e){r(i,e),t&&r({success:t,error:a},e),s(n,e)},i)}if(i.returnPromise)return new Promise(o);o()}var u,d,c,p;e.exports=(u=function(){},d={},c={},p={},a.ready=function(e,t){return function(e,a){e=e.push?e:[e];var t,n,i,o=[],s=e.length,r=s;for(t=function(e,t){t.length&&o.push(e),--r||a(o)};s--;)n=e[s],(i=c[n])?t(n,i):(p[n]=p[n]||[]).push(t)}(e,function(e){r(t,e)}),a},a.done=function(e){s(e,[])},a.reset=function(){d={},c={},p={}},a.isDefined=function(e){return e in d},a)}(w={exports:{}},w.exports),w.exports),A=Object.freeze({default:b,__moduleExports:b}),j=[{key:"af",name:"Afrikaans"},{key:"am",name:"Amharic"},{key:"ar-dz",name:"Arabic (Algeria)"},{key:"ar-kw",name:"Arabic (Kuwait)"},{key:"ar-ly",name:"Arabic (Lybia)"},{key:"ar-ma",name:"Arabic (Morocco)"},{key:"ar-sa",name:"Arabic (Saudi Arabia)"},{key:"ar-tn",name:" Arabic (Tunisia)"},{key:"ar",name:"Arabic"},{key:"az",name:"Azerbaijani"},{key:"be",name:"Belarusian"},{key:"bg",name:"Bulgarian"},{key:"bi",name:"Bislama"},{key:"bm",name:"Bambara"},{key:"bn",name:"Bengali"},{key:"bo",name:"Tibetan"},{key:"br",name:"Breton"},{key:"bs",name:"Bosnian"},{key:"ca",name:"Catalan"},{key:"cs",name:"Czech"},{key:"cv",name:"Chuvash"},{key:"cy",name:"Welsh"},{key:"da",name:"Danish"},{key:"de-at",name:"German (Austria)"},{key:"de-ch",name:"German (Switzerland)"},{key:"de",name:"German"},{key:"dv",name:"Maldivian"},{key:"el",name:"Greek"},{key:"en-au",name:"English (Australia)"},{key:"en-ca",name:"English (Canada)"},{key:"en-gb",name:"English (United Kingdom)"},{key:"en-ie",name:"English (Ireland)"},{key:"en-il",name:"English (Israel)"},{key:"en-in",name:"English (India)"},{key:"en-nz",name:"English (New Zealand)"},{key:"en-sg",name:"English (Singapore)"},{key:"en-tt",name:"English (Trinidad & Tobago)"},{key:"en",name:"English"},{key:"eo",name:"Esperanto"},{key:"es-do",name:"Spanish (Dominican Republic)"},{key:"es-pr",name:"Spanish (Puerto Rico)"},{key:"es-us",name:"Spanish (United States)"},{key:"es",name:"Spanish"},{key:"et",name:"Estonian"},{key:"eu",name:"Basque"},{key:"fa",name:"Persian"},{key:"fi",name:"Finnish"},{key:"fo",name:"Faroese"},{key:"fr-ca",name:"French (Canada)"},{key:"fr-ch",name:"French (Switzerland)"},{key:"fr",name:"French"},{key:"fy",name:"Frisian"},{key:"ga",name:"Irish or Irish Gaelic"},{key:"gd",name:"Scottish Gaelic"},{key:"gl",name:"Galician"},{key:"gom-latn",name:"Konkani Latin script"},{key:"gu",name:"Gujarati"},{key:"he",name:"Hebrew"},{key:"hi",name:"Hindi"},{key:"hr",name:"Croatian"},{key:"ht",name:"Haitian Creole (Haiti)"},{key:"hu",name:"Hungarian"},{key:"hy-am",name:"Armenian"},{key:"id",name:"Indonesian"},{key:"is",name:"Icelandic"},{key:"it-ch",name:"Italian (Switzerland)"},{key:"it",name:"Italian"},{key:"ja",name:"Japanese"},{key:"jv",name:"Javanese"},{key:"ka",name:"Georgian"},{key:"kk",name:"Kazakh"},{key:"km",name:"Cambodian"},{key:"kn",name:"Kannada"},{key:"ko",name:"Korean"},{key:"ku",name:"Kurdish"},{key:"ky",name:"Kyrgyz"},{key:"lb",name:"Luxembourgish"},{key:"lo",name:"Lao"},{key:"lt",name:"Lithuanian"},{key:"lv",name:"Latvian"},{key:"me",name:"Montenegrin"},{key:"mi",name:"Maori"},{key:"mk",name:"Macedonian"},{key:"ml",name:"Malayalam"},{key:"mn",name:"Mongolian"},{key:"mr",name:"Marathi"},{key:"ms-my",name:"Malay"},{key:"ms",name:"Malay"},{key:"mt",name:"Maltese (Malta)"},{key:"my",name:"Burmese"},{key:"nb",name:"Norwegian Bokmål"},{key:"ne",name:"Nepalese"},{key:"nl-be",name:"Dutch (Belgium)"},{key:"nl",name:"Dutch"},{key:"nn",name:"Nynorsk"},{key:"oc-lnc",name:"Occitan, lengadocian dialecte"},{key:"pa-in",name:"Punjabi (India)"},{key:"pl",name:"Polish"},{key:"pt-br",name:"Portuguese (Brazil)"},{key:"pt",name:"Portuguese"},{key:"ro",name:"Romanian"},{key:"ru",name:"Russian"},{key:"rw",name:"Kinyarwanda (Rwanda)"},{key:"sd",name:"Sindhi"},{key:"se",name:"Northern Sami"},{key:"si",name:"Sinhalese"},{key:"sk",name:"Slovak"},{key:"sl",name:"Slovenian"},{key:"sq",name:"Albanian"},{key:"sr-cyrl",name:"Serbian Cyrillic"},{key:"sr",name:"Serbian"},{key:"ss",name:"siSwati"},{key:"sv",name:"Swedish"},{key:"sw",name:"Swahili"},{key:"ta",name:"Tamil"},{key:"te",name:"Telugu"},{key:"tet",name:"Tetun Dili (East Timor)"},{key:"tg",name:"Tajik"},{key:"th",name:"Thai"},{key:"tk",name:"Turkmen"},{key:"tl-ph",name:"Tagalog (Philippines)"},{key:"tlh",name:"Klingon"},{key:"tr",name:"Turkish"},{key:"tzl",name:"Talossan"},{key:"tzm-latn",name:"Central Atlas Tamazight Latin"},{key:"tzm",name:"Central Atlas Tamazight"},{key:"ug-cn",name:"Uyghur (China)"},{key:"uk",name:"Ukrainian"},{key:"ur",name:"Urdu"},{key:"uz-latn",name:"Uzbek Latin"},{key:"uz",name:"Uzbek"},{key:"vi",name:"Vietnamese"},{key:"x-pseudo",name:"Pseudo"},{key:"yo",name:"Yoruba Nigeria"},{key:"zh-cn",name:"Chinese (China)"},{key:"zh-hk",name:"Chinese (Hong Kong)"},{key:"zh-tw",name:"Chinese (Taiwan)"},{key:"zh",name:"Chinese"}],T=(S.prototype.observeElem=function(e,t){this.callback=t,this.lazyElemObserver.observe(e)},S);function S(){var a=this;this.lazyElemObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var t=e.target;a.callback(),a.lazyElemObserver.unobserve(t)}})})}var C=window,P=b||A,E=["PCS-FACETS-V1","PCS-SEARCH-RESULTS-V2","PCS-NPS-V1","PCS-HEADER-V1"],O={jquery:"common/js/vendor/jquery-3.6.0.min.js",slick:"common/js/vendor/slick-v3.min.js",plyrPolyfill:"common/js/vendor/polyfill.min.js",plyrScript:"common/js/vendor/plyr.min.3.5.6.js",plyrStyle:"common/js/vendor/plyr.3.5.6.css",hark:"common/js/vendor/hark.bundle-v1.1.0.js",resumable:"common/js/vendor/resumable-v1.1.min.js",dayjs:"common/js/vendor/dayjs/dayjs.min.js",dayjsutc:"common/js/vendor/dayjs/utc.js",dayjstz:"common/js/vendor/dayjs/timezone.js",dayjsDuration:"common/js/vendor/dayjs/duration.js",advancedFormat:"common/js/vendor/dayjs/advancedFormat.js",localizedFormat:"common/js/vendor/dayjs/localizedFormat.js",customParseFormat:"common/js/vendor/dayjs/customParseFormat.js",dayjslocale:"common/js/vendor/dayjs/locale/",mapBoxSdk:"common/js/vendor/mapbox-sdk.js",videojs:"common/js/vendor/video.min.js","videojs-record":"common/js/vendor/videojs.record.js",videjsStyle:"common/js/vendor/video-js.min.css",videojsrecordstyle:"common/js/vendor/videojs.record.min.css",localforage:"common/js/vendor/localforage.min.js",recordRTC:"common/js/vendor/record-rtc.min.js",dropzoneJs:"common/js/vendor/dropzone.min.js",isJs:"common/js/vendor/isjs.js","mobile-detect":"common/js/vendor/mobile-detect.min.js",jszip:"common/js/vendor/jszip.min.js",jsziputils:"common/js/vendor/jszip-utils.min.js",filesaver:"common/js/vendor/filesaver.min.js",ie11CustomProperties:"common/js/vendor/ie11CustomProperties_css_var.min.js",noUiSlider:"common/js/vendor/nouislider.min.js",addToCalender:"common/js/vendor/addToCalendar-v1.6.1.min.js",validate:"/common/js/vendor/validate.min.js"},V=(W.prototype.fetchEagerLoadScriptVersions=function(){var e=this.platformUtils.getDDOFromCache("caasLazyLoadWidgetVersions");e&&e.status&&"success"===e.status&&(this.versionedScripts=e.data||{})},W.prototype.loadLibScripts=function(e,t){var a=this,n={};if(this.phApp&&this.phApp.caasPlatform){n.polyfill=this.phApp.caasPlatform.polyfill||"",n.vendor=this.phApp.caasPlatform.vendor||"",n.common=this.phApp.caasPlatform.common||"";var i=[n.polyfill,n.vendor,n.common];P(i,{success:function(){a.bootstrapWidgets(e,t)},async:!1})}else this.counter<50&&(this.timer=setTimeout(function(){a.counter++,clearTimeout(a.timer),a.bootstrapWidgets(e,t)},150))},W.prototype.bootstrapWidgets=function(e,t){var a=this;if(window.hasOwnProperty("Vue")&&window.hasOwnProperty("PcsCommon"))if(window.hasOwnProperty("phw")&&e.length){var n=[];this.env&&this.env.componentBase&&e.forEach(function(e){window.hasOwnProperty("Vue")&&!C.Vue.options.components[e]&&(a.platformUtils.convertWidgetTagToComponentName(e),n.push(a.versionedScripts[e]||a.env.componentBase+e+".js"))}),P(n,{success:function(){t()},async:!0}),n.length||t()}else t();else this.loadLibScripts(e,t)},W.prototype.initialiseVue=function(e,t){if(e&&(this.elemIntersectionObserver=new T,window.hasOwnProperty("phw")&&window.hasOwnProperty("Vue"))){Object.keys(phw).forEach(function(e){var t=phw[e].default?phw[e].default.component:phw[e].component;t&&(t.options.template="<div></div>",C.Vue.component(t.options.name,t))});var a=e.querySelector("[data-widget]"),n=a&&a.tagName||"",i="internal"==this.phApp.siteType;!C.IntersectionObserver||t||-1!=E.indexOf(n)||i?this.triggerVueElem(e):this.elemIntersectionObserver.observeElem(e,this.triggerVueElem.bind(this,e))}},W.prototype.triggerVueElem=function(e){e&&e.firstElementChild&&(e.firstElementChild.style.padding=null),phw.localVue=new C.Vue({el:e})},W.prototype.initialiseEmbedVue=function(e,t,n){if(window.hasOwnProperty("phw")&&window.hasOwnProperty("Vue")){e.forEach(function(e){var t=phw[e].default?phw[e].default.component:phw[e].component,a=t&&t.options.props;a&&n&&Object.keys(n).forEach(function(e){e&&a[e]&&(t.options.props[e].default=n[e])}),t&&(t.options.template="<div></div>",C.Vue.component(t.options.name,t))});var a='[data-embed-widget-id ="'+t+'"]',i=document.querySelector(a);n=n||{},i&&(phw.localVue=new C.Vue({el:i}))}},W.prototype.loadScriptById=function(i,o,e){var s=this;return void 0===o&&(o=!0),void 0===e&&(e=!0),new Promise(function(e,t){if(P.isDefined(i))P.ready(i,function(){e(!0)});else{"dayjslocale"===i&&(O[i]+=s.dayjsLocale+".js");var a=O[i];if(a){if(!a.startsWith("http")&&!a.startsWith("://")){var n=s.phApp.scriptsBaseUrl||s.phApp.cdnUrl;n&&!n.endsWith("/")&&(n+="/"),a=n+a}P(a,i,{async:o}),P.ready(i,function(){e(!0)})}else e(!1)}})},W.prototype.loadDayJsScripts=function(){var t=this,a=this.phApp.locale||"en";if(a=a.replace("_","-"),this.dayjsLocale=j.find(function(e){return e.key===a}),void 0===this.dayjsLocale)if(1!==(a=a.split("-")).length){var e=j.find(function(e){return e.key===a[0]});this.dayjsLocale=void 0===e?"en":e.key}else this.dayjsLocale=this.dayjsLocale.key;else this.dayjsLocale=this.dayjsLocale.key;var n={dayjs:"dayjs",dayjsutc:"dayjs_plugin_utc",dayjstz:"dayjs_plugin_timezone",dayjsDuration:"dayjs_plugin_duration",advancedFormat:"dayjs_plugin_advancedFormat",localizedFormat:"dayjs_plugin_localizedFormat",customParseFormat:"dayjs_plugin_customParseFormat"};Object.keys(n).forEach(function(e){window[n[e]]||t.loadScriptById(e)})},W.prototype.loadScript=function(e,t,a,n){if(void 0===a&&(a=!0),void 0===n&&(n=!0),!P.isDefined(t))return e.startsWith("http")||e.startsWith("://")||(e=this.phApp.cdnUrl+"/common/js/vendor/"+e),P(e,{returnPromise:!0,async:!0})},W.prototype.loadScripts=function(e,t,a,n){if(void 0===a&&(a=!0),void 0===n&&(n=!0),!P.isDefined(t))return P(e,{returnPromise:!0,async:a})},W);function W(){this.platformUtils=new a,this.serviceUtils=new s,this.domUtils=new v,this.versionedScripts={},this.counter=0,this.env=this.serviceUtils.fetchEnvironment(),this.phApp=this.platformUtils.fecthPhApp(),C.hasOwnProperty("phw")&&(C.phw.scriptsMap=O);var e=this.platformUtils.getSiteSettings("vendorScripts")||{};e&&e.jquery&&(O.jquery="common/js/vendor/"+e.jquery),this.fetchEagerLoadScriptVersions(),this.loadDayJsScripts()}var I,L=window.phApp||{},q=new a,x=new i,M=new s,z=new v,N=new V,D="caasPageViews",R="caasContentV1",B="siteGlobalContent",U="getCaasGlobalWdgtInfo",F="data-ph-widget-id",_=["[",F,"]"].join(""),H="data-aud-widget",J="global-managed-widget",G=0,K=[];function X(){!function e(){var o=q.fecthPhApp();var t=q.getCsrfToken();var a=o.ddo&&o.ddo.caasPageViews&&o.ddo.caasPageViews.status;if((!o.inlinePreview&&"success"!=a&&!o.loadingPage||!t)&&G<50)return void(I=setTimeout(function(){G++,clearTimeout(I),e()},150));var s=q.fetchReqObj();if(o.ddo.caasPageViews&&o.ddo.caasContentV1){if(o.ddo[R]){var n=o.ddo[D],i=n&&n.data&&n.data.aliases||{};x.compileContentModel(i,o.ddo[R])}$(void 0)}else o.loadingPage=!0,M.makeRequest(s,D).then(function(a){o.ddo[D]=a;var e=q.getSiteSettings("navItems"),t=q.getSiteSettings("cdnCaasContent"),n=o.viewsFromPage,i=M.makeRequest;e&&e.hasOwnProperty("cdnCaasContentEnabled")||!t||!t.cdnCaasContentEnabled||(e=t),e&&e.cdnCaasContentEnabled&&e.cdnCaasContentUrl&&n&&((s={refNum:o.refNum,locale:o.locale||"en_us",siteType:o.siteType,pageId:o.pageId,channel:o.deviceType}).url=e.cdnCaasContentUrl,i=M.makeGetRequest),i(s,R).then(function(e){var t=a&&a.data&&a.data.aliases||{};e=x.compileContentModel(t,e)||{},o.ddo[R]=e,$(void 0)})})}();var e=document.querySelector(".ph-page");e&&e.getAttribute("role")||!e||e.setAttribute("role","main")}function $(e){var t=L.ddo.caasPageViews&&L.ddo.caasPageViews.data;z.addWidgetTagsToNestedWidgets(t),z.widgetTags=[];var a=z.constructWgtTempElm(void 0),n=e||a.querySelectorAll(_);!n.length&&a&&a.getAttribute&&a.getAttribute(F)&&(n=[a]);for(var i=n.length,o=0;o<i;o++){var s=n[o];if(!s.hasAttribute(H)&&!s.hasAttribute(J)){var r=s.getAttribute("instance-id");z.widgetTags=[],z.prepareWidgetBlock(s);var d=document.querySelector('[instance-id="'+r+'"]');K.push({tags:z.widgetTags,elem:d})}}ne(!1),Y(),z.widgetTags=[]}function Y(){var f=q.fetchReqObj(),y=document.querySelectorAll("["+H+"],["+J+"]"),v=document.querySelectorAll("[data-audience-block]");if(y.length){window.MSInputMethodContext&&N.loadScriptById("ie11CustomProperties"),f.widgetIds=[],f.contentIds=[];for(var e=0;e<y.length;e++){var t=y[e].getAttribute("data-ph-widget-id"),a=y[e].getAttribute("data-ph-content-id");t&&-1==f.widgetIds.indexOf(t)&&f.widgetIds.push(t),a&&-1==f.contentIds.indexOf(a)&&f.contentIds.push(a)}var n=[];n.push(function(e,t){return M.makeRequest(e,t).then(function(e){return e})}(f,U)),n.push(function(e,t){return M.makeRequest(t,B)}(0,f)),Promise.all(n).then(function(e){var t,a,n=e[0],i=e[1];if(n&&n.data&&(t=n.data.audiences&&n.data.audiences.cssVariables,a=n.data.videoscreening&&n.data.videoscreening.cssVariables),t||a){var o=document.querySelectorAll("["+H+"]"),s=document.querySelectorAll("["+J+"]");if(o.length&&t&&Z(t),s.length&&a&&Z(a),n&&n.data&&n.data.widgets){for(var r={},d={},c=0;c<y.length;c++){var p=y[c].getAttribute("data-ph-content-id"),l=y[c].getAttribute("data-ph-widget-id");(h=y[c].getAttribute("instance-id")||"")&&l&&n.data.widgets[l]&&n.data.widgets[l].settings&&(r[h]=n.data.widgets[l].settings,Q(r,n.data.widgets,l,h)),d[h]=[{"data-ph-content-id":p,alias:"block1"}]}var u={views:n.data.widgets,settings:r,aliases:d};z.addWidgetTagsToNestedWidgets(u),function(e){var t=L.ddo.caasPageViews&&L.ddo.caasPageViews.data||{};for(var a in e.views)t.views[a]=e.views[a],ae(e.views[a].css||""),L.ddo.caasLazyLoadWidgetVersions=L.ddo.caasLazyLoadWidgetVersions||{},L.ddo.caasLazyLoadWidgetVersions.data=L.ddo.caasLazyLoadWidgetVersions.data||{},e.views[a].script&&(L.ddo.caasLazyLoadWidgetVersions.data[e.views[a].widgetTag]=e.views[a].script);for(var n in e.settings)t.settings[n]=e.settings[n]}(u);var m=L.ddo.caasPageViews&&L.ddo.caasPageViews.data||{};for(c=0;c<y.length;c++){p=y[c].getAttribute("data-ph-content-id");var h=y[c].getAttribute("instance-id")||"";m.aliases[h]&&m.aliases[h][0]&&m.aliases[h][0]["data-ph-content-id"]||!v.length||(m.aliases[h]=[{alias:"block1","data-ph-content-id":p}]);var g=y[c].getAttribute("data-ph-widget-id");p&&g&&!y[c].getAttribute("global-managed-widget")&&-1==f.contentIds.indexOf(p)&&f.contentIds.push(p)}document.querySelectorAll("["+H+"]").length&&(ee(y),te(i,u)),document.querySelectorAll("["+J+"]").length&&(ee(y),te(L.ddo[R],u))}}})}}function Z(e){var t=document.createElement("script");t.setAttribute("src",e),t.onload=function(){ae(L.brandVariables.variables,"variables")},document.head.appendChild(t)}function Q(i,o,e,s){var t=document.createElement("div");t.innerHTML=o[e].html;var a=t.querySelectorAll("pcs-widget");(a=Array.from(a)).forEach(function(e){var t=e.getAttribute("instance-id"),a=e.getAttribute("data-ph-widget-id"),n=s+"-"+t;i[n]=o[a].settings,Q(i,o,a,n)})}function ee(e){for(var t=0;t<e.length;t++){var a=e[t].getAttribute("instance-id");z.widgetTags=[],z.prepareWidgetBlock(e[t]);var n=document.querySelector('[instance-id="'+a+'"]');K.push({tags:z.widgetTags,elem:n})}ne(!0),z.widgetTags=[]}function te(e,t){if(e&&e.data){var a=x.compileContentModel(t.aliases,e)||{};for(var n in L.ddo[R]=L.ddo[R]||{},L.ddo[R].data=L.ddo[R].data||{},L.ddo[R].data.content=L.ddo[R].data.content||{},L.ddo[R].data)L.ddo[R].data[n]=d({},L.ddo[R].data[n],a.data[n])}return e}function ae(t,e){void 0===e&&(e=void 0);var a=document.createElement("style");a.setAttribute("type","text/css");var n=t;if("variables"==e){["1151px","767px","480px","340px","848px","366px","1024px","1279px"].forEach(function(e){n+="@media only screen and (max-width: "+e+") {"+t+"}"})}a.innerHTML=n,document.head.appendChild(a)}function ne(e){if(K.length){var t=K.splice(0,1);N.bootstrapWidgets(t[0].tags,function(){N.initialiseVue(t[0].elem,e),ne(!1)})}}function ie(e,t){if(e&&t)for(var a=0,n=e.getAttributeNames();a<n.length;a++){var i=n[a],o=e.getAttribute(i);t.setAttribute(i,o)}}if(!L.isEmbed){var oe=q.getSiteSettings("ignoreCookiePages")||[],se=L.pageName;if(-1==oe.indexOf(se))if(L.loadingPage)var re=setInterval(function(){L.loadingPage||(clearInterval(re),setTimeout(function(){X()},10))},100);else if(L.lazyPage){var de=document.querySelectorAll("[data-ph-widget-id]"),ce=[],pe=L.ddo[D]&&L.ddo[D].data||{};for(var le in pe.views)pe.views[le].widgetTag&&ce.push(pe.views[le].widgetTag);N.bootstrapWidgets(ce,function(){for(var e=0;e<de.length;e++){var t=de[e].getAttribute("data-ph-widget-id"),a=(d=t,void 0,((c=L.ddo[D])&&c.data&&c.data.views||{})[d]),n=pe&&pe.aliases,i=x.compileContentModel(n,L.ddo[R])||{};if(L.ddo[R]=i,a){var o=document.createElement("section");o.setAttribute("instance-id",de[e].getAttribute("instance-id")),o.classList.add("pcs-widget");var s=document.createElement(a.widgetTag);ie(de[e],s),o.appendChild(s);var r=a.widgetTag+"-"+a.view+"-"+a.theme;s.classList.add(r),s.classList.add("pcs-widget"),de[e].parentElement.replaceChild(o,de[e]),N.initialiseVue(o)}}var d,c})}else X()}e.fetchWidgetContent=function(e){var t={};for(var a in e=e||{},t.lang=L.locale||"en_us",t.pageId=e.pageId||L.pageId,t.deviceType=L.deviceType,e)t.hasOwnProperty(a)||(t[a]=e[a]);return M.makeRequest(t,"caasWidgetContent").then(function(e){if(e&&e.status&&"success"===e.status)return e})},e.fetchCaasGetSiteContent=function(e){var t={};for(var a in e=e||{},t.lang=L.locale||"en_us",t.pageId=e.pageId||L.pageId,t.deviceType=L.deviceType,e)t.hasOwnProperty(a)||(t[a]=e[a]);return M.makeRequest(t,"caasGetSiteContent").then(function(e){if(e&&e.status&&"success"===e.status)return e})},e.fetchWidgetView=function(e){var t={};for(var a in e=e||{},t.lang=L.locale||"en_us",t.pageId=L.pageId,t.deviceType=L.deviceType,e)t.hasOwnProperty(a)||(t[a]=e[a]);return M.makeRequest(t,"caasWidgetView").then(function(e){if(e&&e.status&&"success"===e.status)return e})},e.init=X,e.initiateInnerWidgets=function(e){e&&$(e)},e.prepareWidgetBlocks=function(e){return z.prepareWidgetBlocks(e)},e.compileContentModel=function(e,t){return x.compileContentModel(e,t)},e.bootstrapWidgets=function(e){N.bootstrapWidgets(z.widgetTags,e)},e.addWidgetTagsToNestedWidgets=function(e){z.addWidgetTagsToNestedWidgets(e)},e.loadScript=function(e,t,a,n){return void 0===a&&(a=!0),void 0===n&&(n=!0),N.loadScript(e,t,a,n)},e.loadScriptById=function(e,t,a){return void 0===t&&(t=!0),void 0===a&&(a=!0),N.loadScriptById(e,t,a)},e.initiateAudienceWidgets=Y,e.initEmbedWidget=function(e){if(e&&e.target){var t,a=[],n=[];if((t="string"==typeof e.target?document.querySelector(e.target):e.target)&&e.viewData&&e.contentData){var i=e.viewData&&e.viewData.views||{},o=Math.random().toString(36).slice(2);t.setAttribute("data-embed-widget-id",o),L.ddo=L.ddo||{},L.ddo.caasPageViews=L.ddo.caasPageViews||{},L.ddo.caasPageViews.status="success",L.ddo.caasPageViews.data=L.ddo.caasPageViews.data||{},L.ddo.caasPageViews.data.views=L.ddo.caasPageViews.data.views||{},Object.keys(i).forEach(function(e){if(i[e].widgetTag){a.push(i[e].widgetTag);var t=function(e){var t=e.split("-"),a="";return t.forEach(function(e){a+=e[0].toUpperCase()+e.slice(1)}),a}(i[e].widgetTag);n.push(t),L.ddo.caasPageViews.data.views[e]=i[e]}});var s=e.viewData.aliases||{},r=Object.keys(s)&&Object.keys(s)[0];L.ddo.caasPageViews.data.aliases=L.ddo.caasPageViews.data.aliases||{},L.ddo.caasPageViews.data.aliases[r]=e.viewData.aliases[r],console.log("executing embed script"),function(e,t){if(t&&t.content){var a=x.compileContentModel(e,t)||{};L.ddo[R]=L.ddo[R]||{},Object.keys(L.ddo[R]).length&&L.ddo[R].data&&a&&a.data?L.ddo[R].data=d({},L.ddo[R],a.data):L.ddo[R]=a,L.ddo[R].status="success"}else L.ddo[R]=L.ddo[R]||{},L.ddo[R].data=L.ddo[R].data||{},L.ddo[R].status="success"}(s,{data:JSON.parse(JSON.stringify(e.contentData)),content:JSON.parse(JSON.stringify(e.contentData.content)),status:"success"}),z.addWidgetTagsToNestedWidgets(e.viewData),z.prepareWidgetBlock(t),N.bootstrapWidgets(a,function(){N.initialiseEmbedVue(n,o,e.data)})}}},e.initVideoWidget=function(e){var t;if(e&&e.target){if(t="string"==typeof e.target?document.querySelector(e.target):e.target){t.style.display="block";var a=t.getAttribute("data-pcs-type");if(a&&"attr"==a){var n=document.createElement("div"),i={content:{},settings:e};n.setAttribute(t.getAttribute("data-pcs-type-value"),JSON.stringify(i)),t.appendChild(n),new Vue({el:t,data:{content:{}}})}}}else console.log("Invalid payload or missing required parameters ",e)},Object.defineProperty(e,"__esModule",{value:!0})});
