!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8a3a30ed-ade5-418b-9026-583b8142ec49",e._sentryDebugIdIdentifier="sentry-dbid-8a3a30ed-ade5-418b-9026-583b8142ec49")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"cnet-neutron@cnet.prod.254f83"},(window.webpackJsonp=window.webpackJsonp||[]).push([[327],{1760:function(e,t,o){var content=o(2433);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(305).default)("398f5216",content,!0,{sourceMap:!1})},2430:function(e,t,o){var n=o(2431);o(42),o(45),o(21),o(8),o(49),o(17),o(174),o(60);var d,l={},r=!1;function c(e,t,o,n,d,l){return new Promise((function(c,m){var y;if(0==document.querySelectorAll('script[src="https://www.youtube.com/iframe_api"]').length){var h=document.createElement("script");h.src="https://www.youtube.com/iframe_api";var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(h,f)}void 0!==(null===(y=window.YT)||void 0===y?void 0:y.Player)?c(v(e,t,o,n,d,l)):(window.addEventListener("youtube_ready",(function(){c(v(e,t,o,n,d,l))})),window.onYouTubeIframeAPIReady=function(){window.YT.ready((function(){r=!0;var e=new Event("youtube_ready");window.dispatchEvent(e)}))}),setTimeout((function(){r||(r=!0,m(new Error("Iframe is not ready")))}),1e4)}))}function v(t,o,n,d,r,c){return null==l[t]&&(l[t]={target:null,lastEvent:{},timeWatched:0,eventTypes:n,interval:null,percentWatched:0,lastVol:0,muted:!1,inView:!1,autostart:r,isFullscreen:!1,placement:d,adsEnabled:c}),o?new YT.Player("iframe-".concat(t),{playerVars:{listType:"playlist",list:t,rel:0},host:"https://www.youtube.com",events:{onReady:m,onStateChange:y}}):new YT.Player("iframe-".concat(t),{videoId:t,playerVars:{modestbranding:1,rel:0},host:"https://www.youtube.com",events:{onReady:m,onStateChange:y}}),["","webkit","moz","ms"].forEach((function(e){return document.addEventListener(e+"fullscreenchange",(function(){null===document.fullscreenElement?l[t].isFullscreen=!1:document.fullscreenElement.id.includes(t)&&(l[t].isFullscreen=!l[t].isFullscreen)}),!1)})),window.onscroll=function(){for(var t in l)if(l[t].target){var o=document.getElementById("iframe-".concat(t)),n=o.getBoundingClientRect();n.top-n.height<=0&&n.top+n.height>0&&!1===l[t].inView?(l[t].inView=!0,o.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core.videoViewed.v1",videoContext:e.exports.getVideoContext(l[t].target)}}}))):(n.top+n.height<=0||n.top-n.height>0)&&!0===l[t].inView&&(l[t].inView=!1)}},document.getElementById("iframe-".concat(t))}function m(t){var o,n,d,r=null!==(o=t.target)&&void 0!==o&&o.getPlaylistId()?null===(n=t.target)||void 0===n?void 0:n.getPlaylistId():null===(d=t.target)||void 0===d||null===(d=d.getVideoData())||void 0===d?void 0:d.video_id,c=document.getElementById("iframe-".concat(r));l[r].target=t.target,l[r].autostart&&t.target.playVideo(),c.dispatchEvent(new CustomEvent("stateChange-".concat(r),{detail:{payload:{"@type":"core.videoLoaded.v1",videoContext:e.exports.getVideoContext(t.target)}}}))}function y(t){null===(o=t.target.playerInfo)||void 0===o||o.currentTime;var o,n,d,r,c,v,m=null!==(n=t.target)&&void 0!==n&&n.getPlaylistId()?null===(d=t.target)||void 0===d?void 0:d.getPlaylistId():null===(r=t.target)||void 0===r||null===(r=r.getVideoData())||void 0===r?void 0:r.video_id,y=document.getElementById("iframe-".concat(m)),h=l[m].eventTypes,f=l[m].lastEvent;if(1!==t.data&&null!==l[m].interval&&clearInterval(l[m].interval),0===t.data&&h.includes("completed"))c="videoCompleted";else if(1===t.data){var C,x;l[m].lastVol=null===(C=t.target.playerInfo)||void 0===C?void 0:C.volume,l[m].muted=t.target.isMuted(),l[m].interval=setInterval((function(){!function(t,o){var n,d=document.getElementById("iframe-".concat(o));if(l[o].eventTypes.includes("watched")){var r,c;l[o].timeWatched+=1;var v=null===(r=t.target.playerInfo)||void 0===r?void 0:r.duration,m=null===(c=t.target.playerInfo)||void 0===c?void 0:c.currentTime;m>=v-3&&l[o].percentWatched<100?(d.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:100,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=100):m>=v*(3/4)&&l[o].percentWatched<75?(d.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:75,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=75):m>=v/2&&l[o].percentWatched<50?(d.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:50,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=50):m>=v/4&&l[o].percentWatched<25&&(d.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getVideoContext(t.target),videoWatched:25,videoWatchedTime:Math.floor(l[o].timeWatched)}}})),l[o].percentWatched=25)}if(l[o].eventTypes.includes("volume")&&(l[o].muted!==t.target.isMuted()||l[o].lastVol!==(null===(n=t.target.playerInfo)||void 0===n?void 0:n.volume))){var y;d.dispatchEvent(new CustomEvent("stateChange-".concat(o),{detail:{payload:{"@type":"core.videoVolumeChanged.v1",videoContext:e.exports.getVideoContext(t.target),videoMuted:t.target.isMuted()}}})),l[o].lastVol=null===(y=t.target.playerInfo)||void 0===y?void 0:y.volume,l[o].muted=t.target.isMuted()}}(t,m)}),1e3),"videoSeekStarted"===f.type||(null===(x=t.target.playerInfo)||void 0===x?void 0:x.currentTime)-f.videoTime>1&&h.includes("seek")?(l[m].timeWatched-f.videoTime>0&&(l[m].timeWatched=l[m].timeWatched-(l[m].timeWatched-f.videoTime)),c="videoSeekCompleted"):h.includes("playing")&&(c="notStarted"===l[m].lastEvent.type?"videoStarted":"videoPlayed")}else if(2===t.data){var P;0!=f.eventTime&&Math.abs(.001*(Date.now()-f.eventTime)-((null===(P=t.target.playerInfo)||void 0===P?void 0:P.currentTime)-f.videoTime))<2&&h.includes("paused")?c="videoPaused":h.includes("seek")&&(c="videoSeekStarted")}else if(3===t.data)"notStarted"!==f.type&&"videoSeekStarted"!==f.type&&(c="videoInterrupted");else if(-1===t.data){var V;l[m].lastEvent={type:"notStarted",eventTime:Date.now(),videoTime:null===(V=t.target.playerInfo)||void 0===V?void 0:V.currentTime}}void 0!==c&&(l[m].lastEvent={type:c,eventTime:Date.now(),videoTime:null===(v=t.target.playerInfo)||void 0===v?void 0:v.currentTime},y.dispatchEvent(new CustomEvent("stateChange-".concat(m),{detail:{payload:{"@type":"core."+c+".v1",videoContext:e.exports.getVideoContext(t.target)}}})),"videoCompleted"===c&&(l[m].timeWatched=0,l[m].interval=null,l[m].percentWatched=0,l[m].lastEvent={}))}function h(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoVolumeChanged.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}function f(t,o,n){var d=window.uvpjs.getVideoManager().VCIs[t];if(d&&t===(null==n?void 0:n.target)){var r={"@type":"core.".concat(o),videoContext:e.exports.getUVPVideoContext(t)},c=o.toLowerCase();c.includes("videoad")&&(null!=l[t].adData.videoAdTitle?(r.videoAdContext={videoAdId:l[t].adData.videoAdId,videoAdTitle:l[t].adData.videoAdTitle,adRollPosition:l[t].adData.adRollPosition},null!=l[t].adData.adSkippable?r.videoAdContext.adSkippable=l[t].adData.adSkippable:null!=n&&null!=n.payload.adData&&null!=n.payload.imaAdData&&(l[t].adData.adSkippable=n.payload.imaAdData.skipTimeOffset>-1,r.videoAdContext.adSkippable=n.payload.imaAdData.skipTimeOffset>-1)):null!=n&&null!=n.payload.adData&&(r.videoAdContext={videoAdId:n.payload.adData.adVideoId?n.payload.adData.adVideoId:null,videoAdTitle:n.payload.adData.adVideoTitle?n.payload.adData.adVideoTitle:null,adRollPosition:n.payload.adData.adType?n.payload.adData.adType.charAt(0).toUpperCase()+n.payload.adData.adType.slice(1):null},null!=n.payload.imaAdData&&(r.videoAdContext.adSkippable=n.payload.imaAdData.skipTimeOffset>-1),l[t].adData=r.videoAdContext)),c.includes("volume")?(c.includes("videoad")?r.videoAdMuted=d.getPlayerMuted():r.videoMuted=d.getPlayerMuted(),r.previousVolumeLevel=l[t].previousVolumeLevel,l[t].previousVolumeLevel=d.getPlayerMuted()?0:Math.round(100*d.getVolume())):c.includes("interrupted")?r.method=n.payload.errorInfo.message?n.payload.errorInfo.message:"":c.includes("paused")?(r.pauseType=n.payload.autoPause?"auto":"manual",c.includes("videoAd")&&(r.autostart=d._autoPlay)):c.includes("played")||c.includes("seekstarted")&&(r.videoContext.playheadPosition=Math.ceil(n.payload.seekFromTime)),document.getElementById(t).dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:r}}))}}function C(e){var t=window.uvpjs.getVideoManager().VCIs[e];l[e]={timeSkipped:0,interval:null,percentWatched:0,previousVolumeLevel:t.getPlayerMuted()?0:Math.round(100*t.getVolume()),metadata:{},adData:{},isAd:!1,isContextual:!!l[e].isContextual&&l[e].isContextual,initialVideoId:l[e].initialVideoId?l[e].initialVideoId:null,location:l[e].location?l[e].location:null,articlePlacement:l[e].articlePlacement?l[e].articlePlacement:null}}e.exports.createVideoPlayer=function(){var e=n(regeneratorRuntime.mark((function e(t,o,n,d,l,r){var v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 0==n.length&&(n=["playing","paused","completed","seek","volume","watched","interrupted","ad"]),e.next=3,c(t,o,n,d,l,r);case 3:return v=e.sent,e.abrupt("return",v);case 5:case"end":return e.stop()}}),e)})));return function(t,o,n,d,l,r){return e.apply(this,arguments)}}(),e.exports.getVideoContext=function(e){var t,o,n,d,r,c,v,m,y,h,f,C,x,P,V=null!=e&&e.getPlaylistId()?null==e?void 0:e.getPlaylistId():null==e||null===(t=e.getVideoData())||void 0===t?void 0:t.video_id;return{videoId:null===(o=e.playerInfo)||void 0===o?void 0:o.videoData.video_id,videoTitle:null===(n=e.playerInfo)||void 0===n?void 0:n.videoData.title,sequenceType:null!==(d=e.playerInfo)&&void 0!==d&&d.playlistId?"playlist":"single",playlistId:null!==(r=e.playerInfo)&&void 0!==r&&r.playlistId?null===(c=e.playerInfo)||void 0===c||null===(c=c.videoData)||void 0===c?void 0:c.playlistId:"",playlistTitle:null!==(v=e.playerInfo)&&void 0!==v&&v.playlistTitle?null===(m=e.playerInfo)||void 0===m||null===(m=m.videoData)||void 0===m?void 0:m.playlistTitle:"",playlistIndex:null!==(y=e.playerInfo)&&void 0!==y&&y.playlistIndex?null===(h=e.playerInfo)||void 0===h?void 0:h.playlistIndex:0,videoPlayer:"Youtube",videoLength:Math.round(null===(f=e.playerInfo)||void 0===f?void 0:f.duration),playheadPosition:Math.round(null===(C=e.playerInfo)||void 0===C?void 0:C.currentTime),volumeLevel:e.isMuted()?0:null===(x=e.playerInfo)||void 0===x?void 0:x.volume,videoQuality:null===(P=e.playerInfo)||void 0===P?void 0:P.playbackQuality,fullScreenEnabled:l[V].isFullscreen,adEnabled:!(!l[V].adsEnabled||l[V].autostart),brand:l[V].placement.brand?l[V].placement.brand:"",category:l[V].placement.category?l[V].placement.category:"",productId:l[V].placement.productId?l[V].placement.productId:"",location:l[V].placement.location?l[V].placement.location:"UNKNOWN",articlePlacement:l[V].placement.articlePlacement?l[V].placement.articlePlacement:"",autoplay:l[V].autostart,name:l[V].placement.name?l[V].placement.name:""}},e.exports.trackJWPlayer=function(t,o,n,d,r){0==o.length&&(o=["playing","paused","completed","seek","volume","watched","interrupted","ad"]),t.on("beforePlay",(function(e){var o=t.getPlaylistItem().mediaid;null==l[o]&&(l[o]={type:"",timeWatched:0,percentWatched:0,autostart:d,placement:n,quality:null,timeSkipped:0,seekStart:0,lastEvent:"",adsEnabled:r})})),t.on("playlistItem",(function(o){var c=t.getPlaylistItem().mediaid;null==l[c]&&(l[c]={type:"",timeWatched:0,percentWatched:0,autostart:d,placement:n,quality:null,timeSkipped:0,seekStart:0,lastEvent:"",adsEnabled:r}),function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoLoaded.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("playing")&&t.on("play",(function(o){!function(t){l[t.getPlaylistItem().mediaid].lastEvent="play",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoPlayed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("paused")&&t.on("pause",(function(o){!function(t){l[t.getPlaylistItem().mediaid].lastEvent="pause",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoPaused.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("completed")&&t.on("complete",(function(o){!function(t){l[t.getPlaylistItem().mediaid].lastEvent="completed",t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoCompleted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),o.includes("seek")&&(t.on("seek",(function(o){!function(t){l[t.getPlaylistItem().mediaid].lastEvent="seek",l[t.getPlaylistItem().mediaid].seekStart=t.getPosition(),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoSeekStarted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("seeked",(function(o){!function(t){l[t.getPlaylistItem().mediaid].lastEvent="seek",l[t.getPlaylistItem().mediaid].timeSkipped=Math.round(t.getPosition()-l[t.getPlaylistItem().mediaid].seekStart),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoSeekCompleted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))),o.includes("volume")&&(t.on("mute",(function(e){h(t)})),t.on("volume",(function(e){h(t)}))),o.includes("watched")&&t.on("time",(function(o){!function(t){var o=t.getPlaylistItem().mediaid,n=t.getPlaylistItem().feedid,d=t.getDuration(),r=t.getPosition();r>=d-3&&l[o].percentWatched<100?(l[o].percentWatched=100,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(n),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:100,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.75*d&&l[o].percentWatched<75?(l[o].percentWatched=75,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(n),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:75,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.5*d&&l[o].percentWatched<50?(l[o].percentWatched=50,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(n),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:50,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}}))):r>=.25*d&&l[t.getPlaylistItem().mediaid].percentWatched<25&&(l[o].percentWatched=25,t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(n),{detail:{payload:{"@type":"core.videoWatched.v1",videoContext:e.exports.getJWVideoContext(t),videoWatched:25,videoWatchedTime:Math.round(r-l[o].timeSkipped)}}})))}(t)})),o.includes("interrupted")&&t.on("firstFrame",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoStarted.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t),t.on("buffer",(function(o){!function(t,o){var n=l[t.getPlaylistItem().mediaid].lastEvent;"play"===n&&t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoInterrupted.v1",videoContext:e.exports.getJWVideoContext(t),method:o.reason}}}))}(t,o)}))})),o.includes("ad")&&(t.on("adRequest",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdRequested.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adStarted",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdStarted.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adPause",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdPaused.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adComplete",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdCompleted.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adSkipped",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdSkipped.v2",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adTime",(function(o){!function(t){t.on("viewable",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdViewed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("volume",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdVolumeChanged.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdWatched.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)})),t.on("adSchedule",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoAdLoaded.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))),t.on("visualQuality",(function(e){l[t.getPlaylistItem().mediaid].quality=t.getVisualQuality()})),t.on("viewable",(function(o){!function(t){t.getContainer().dispatchEvent(new CustomEvent("stateChange-".concat(t.getPlaylistItem().feedid),{detail:{payload:{"@type":"core.videoViewed.v1",videoContext:e.exports.getJWVideoContext(t)}}}))}(t)}))},e.exports.getJWVideoContext=function(e){var t=e.getPlaylistItem(),o=t.mediaid;return{videoId:o,videoTitle:t.title,sequenceType:t.feedData.feedid?"playlist":"single",playlistId:t.feedData.feedid?t.feedData.feedid:"",playlistTitle:t.feedData.feedid?t.feedData.title:"",playlistIndex:e.getPlaylistIndex(),videoPlayer:e.getProvider().name,videoLength:t.duration,playheadPosition:Math.round(e.getPosition()),volumeLevel:e.getMute()?0:e.getVolume(),videoQuality:null!=e.getVisualQuality()?e.getVisualQuality().level.label:l[o].quality,fullScreenEnabled:e.getFullscreen(),adEnabled:!l[o].adsEnabled,brand:l[o].placement.brand?l[o].placement.brand:"",category:l[o].placement.category?l[o].placement.category:"",productId:l[o].placement.productId?l[o].placement.productId:"",location:l[o].placement.location?l[o].placement.location:"",articlePlacement:l[o].placement.articlePlacement?l[o].placement.articlePlacement:"",name:l[o].placement.name?l[o].placement.name:"",bitRate:null!=e.getVisualQuality()?e.getVisualQuality().level.bitrate:l[o].quality}},e.exports.trackUVP=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=window.uvpjs.getVideoManager().VCIs[t];l[t]={timeSkipped:0,interval:null,percentWatched:0,previousVolumeLevel:n.getPlayerMuted()?0:Math.round(100*n.getVolume()),metadata:{},adData:{},isAd:!1,isContextual:!!o.isContextual&&o.isContextual,initialVideoId:o.initialVideoId?o.initialVideoId:null,location:o.location?o.location:null,articlePlacement:o.articlePlacement?o.articlePlacement:null},function(e){d=new IntersectionObserver((function(t,o){t.forEach((function(t){t.isIntersecting&&(l[e].isAd?f(e,"videoAdViewed.v2"):f(e,"videoViewed.v1"))}))}));var t=document.getElementById(e);d.observe(t)}(t),n.addEventListener("contextMetadata.trackUVP"+t,(function(e){l[t].metadata=e.payload.contextMetadata})),n.addEventListener("onAdRequest.trackUVP"+t,(function(e){f(t,"videoAdRequested.v1",e)})),n.addEventListener("onAdLoaded.trackUVP"+t,(function(e){f(t,"videoAdLoaded.v2",e)})),n.addEventListener("onAdStart.trackUVP"+t,(function(e){l[t].isAd=!0,f(t,"videoAdStarted.v3",e)})),n.addEventListener("onAdSkipped.trackUVP"+t,(function(e){f(t,"videoAdSkipped.v3",e)})),n.addEventListener("onAdEnd.trackUVP"+t,(function(e){!function(e,t){clearInterval(l[t].interval),100===l[t].percentWatched&&f(t,"videoAdCompleted.v3",e);C(t)}(e,t)})),n.addEventListener("onStateChange.trackUVP"+t,(function(o){switch(1!==o.payload.newState&&null!==l[t].interval&&clearInterval(l[t].interval),o.payload.newState){case 0:o.payload.isAd||(f(t,"videoCompleted.v1",o),C(t));break;case 1:l[t].interval=setInterval((function(){!function(t,o){var n=document.getElementById(t),d=window.uvpjs.getVideoManager().VCIs[t],r="videoWatched",c={};o&&(r="videoAdWatched",c=l[t].adData);var v=d.getCurrentPlaybackState().duration,m=d.getCurrentPlaybackState().currentTime,y=l[t].timeSkipped>0?d.getCurrentPlaybackState().currentTime-l[t].timeSkipped:d.getCurrentPlaybackState().currentTime;m>=v-3&&l[t].percentWatched<100?(o?n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:100,videoAdWatchedTime:Math.floor(y)}}})):n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:100,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=100):m>=v*(3/4)&&l[t].percentWatched<75?(o?n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:75,videoAdWatchedTime:Math.floor(y)}}})):n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:75,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=75):m>=v/2&&l[t].percentWatched<50?(o?n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:50,videoAdWatchedTime:Math.floor(y)}}})):n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:50,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=50):m>=v/4&&l[t].percentWatched<25&&(o?n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v2",videoContext:e.exports.getUVPVideoContext(t),videoAdContext:c,videoAdWatched:25,videoAdWatchedTime:Math.floor(y)}}})):n.dispatchEvent(new CustomEvent("stateChange-".concat(t),{detail:{payload:{"@type":"core."+r+".v1",videoContext:e.exports.getUVPVideoContext(t),videoWatched:25,videoWatchedTime:Math.floor(y)}}})),l[t].percentWatched=25)}(t,o.payload.isAd)}),1e3),o.payload.isAd||f(t,"videoPlayed.v1",o)}})),n.addEventListener("seekDone.trackUVP"+t,(function(e){!function(e,t){l[t].timeSkipped+=e.payload.seekToTime-e.payload.seekFromTime,f(t,"videoSeekStarted.v1",e),f(t,"videoSeekCompleted.v1",e)}(e,t)})),n.addEventListener("videoPlaybackError.trackUVP"+t,(function(e){f(t,"videoInterrupted.v1",e)})),n.addEventListener("onContentStart.trackUVP"+t,(function(e){l[t].isAd=!1,f(t,"videoStarted.v1",e)})),n.addEventListener("onContentDataLoaded.trackUVP"+t,(function(e){f(t,"videoLoaded.v1",e)})),n.addEventListener("controlPause.trackUVP"+t,(function(e){l[t].isAd?f(t,"videoAdPaused.v3",e):f(t,"videoPaused.v1",e)})),n.addEventListener("controlVolumeChange.trackUVP"+t,(function(e){f(t,"videoVolumeChanged.v1",e)})),n.addEventListener("onAdVolumeChange.trackUVP"+t,(function(e){f(t,"videoAdVolumeChanged.v2",e)}))},e.exports.getUVPVideoContext=function(e){var t,o=window.uvpjs.getVideoManager().VCIs[e],n=null===(t=window.uvpjs)||void 0===t||null===(t=t.getVideoManager())||void 0===t||null===(t=t.VCIs[e])||void 0===t?void 0:t.getContentVideoData(),d=null==n?void 0:n.cmsRefGuid,r=[];return void 0!==window.utag_data&&Array.isArray(window.utag_data.tagSlugs)&&window.utag_data.tagSlugs.forEach((function(e){r.push({key:"utag",value:e})})),{videoId:d,videoTitle:null==n?void 0:n.videoTitle,sequenceType:o.rcoIdIndex>1?"playlist":"single",videoPlayer:"UVP",videoLength:Math.ceil(o.getContentVideoData().duration),playheadPosition:Math.ceil(o.getCurrentPlaybackState().currentTime),volumeLevel:o.getPlayerMuted()?0:Math.round(100*o.getVolume()),fullScreenEnabled:!(!document.fullscreenElement||!document.fullscreenElement.classList.contains("uvpjs")),livestream:o.getCurrentPlaybackState().isPlayingLive,brand:l[e].metadata.topicPrimaryId?l[e].metadata.topicPrimaryId:"",category:l[e].metadata.siteHier?l[e].metadata.siteHier:"",location:l[e].location?l[e].location:"UNKNOWN",articlePlacement:l[e].articlePlacement?l[e].articlePlacement:null,bitRate:o.getCurrentPlaybackState().facadeState?o.getCurrentPlaybackState().facadeState.currentBitrate:null,frameRate:o.getCurrentPlaybackState().facadeState?o.getCurrentPlaybackState().facadeState.playbackFramerate:null,autoplay:o._autoPlay,tags:r.length>0?r:null,isContextual:l[e].isContextual&&d==l[e].initialVideoId}},e.exports.removeUVPTracking=function(e){var t=window.uvpjs.getVideoManager().VCIs[e];clearInterval(l[e].interval),d.disconnect();["contextMetadata.trackUVP","onAdRequest.trackUVP","onAdLoaded.trackUVP","onAdStart.trackUVP","onAdSkipped.trackUVP","onAdEnd.trackUVP","onStateChange.trackUVP","seekDone.trackUVP","videoPlaybackError.trackUVP","onContentStart.trackUVP","onContentDataLoaded.trackUVP","controlPause.trackUVP","controlVolumeChange.trackUVP","onAdVolumeChange.trackUVP"].forEach((function(o){t.removeEventListener(o+e)}))}},2431:function(e,t){function o(e,t,o,n,d,l,r){try{var c=e[l](r),v=c.value}catch(e){return void o(e)}c.done?t(v):Promise.resolve(v).then(n,d)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(d,l){var r=e.apply(t,n);function c(e){o(r,d,l,c,v,"next",e)}function v(e){o(r,d,l,c,v,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},2432:function(e,t,o){"use strict";o(1760)},2433:function(e,t,o){var n=o(304)((function(i){return i[1]}));n.push([e.i,".c-shortcodeYoutubeVideo{height:0;margin-bottom:2rem;overflow:hidden;padding-bottom:56.25%;position:relative;text-align:center;width:100%}.c-shortcodeYoutubeVideo iframe{height:100%;left:0;position:absolute;top:0;width:100%}",""]),n.locals={},e.exports=n},3259:function(e,t,o){"use strict";o.r(t);o(20),o(31);var n=o(27),d=o(2430),l=o.n(d),r=Object(n.defineComponent)({name:"ShortcodeYoutubeVideo",inheritAttrs:!1,props:{autoplay:{default:"",type:String},float:{default:"",type:String},fs:{default:"",type:String},loop:{default:"",type:String},oembed:{default:"",type:String},rel:{default:"",type:String},size:{default:"",type:String},start:{default:"",type:String},url:{default:"",type:String}},data:function(){return{pattern:/^https?:\/\/(?:www.)?youtu(?:\.be\/|be\.com\/(?:embed\/|live\/|shorts\/|watch\?v=|watch\?.+?&v=|v\/|playlist\?list=))([^(?|&|$|#|\n)]+)/,player:null}},computed:{youtubeTitle:function(){try{var e=this.oembed?JSON.parse(this.oembed):null;return(null==e?void 0:e.title)||""}catch(e){return""}},iframeLabelId:function(){var e=this.pattern.exec(this.url),t=(null==e?void 0:e.length)>1?e[1]:"";return"iframe-".concat(t)},videoId:function(){return this.url?this.pattern.exec(this.url)[1]:""}},beforeMount:function(){this.$store.dispatch("tracking/setPageComponents",{vo02:!0})},mounted:function(){var e=this;this.player=l.a.createVideoPlayer(this.videoId,!1,["loaded","started","playing","paused","completed","watched","viewed","seek"],{articlePlacement:"Youtube Embed",location:"CONTENTBLOCK"},!1,!1),this.player.then((function(t){null==t||t.addEventListener("stateChange-".concat(e.videoId),(function(e){window.tagular("beam",e.detail.payload)}))})),this.$store.commit("reviews/setHasVideo",this.iframeLabelId)},methods:{}}),c=(o(2432),o(150)),component=Object(c.a)(r,(function(){var e=this,t=e._self._c;e._self._setupProxy;return e.$services.isFeatureEnabled("youtube")?t("div",{staticClass:"c-shortcodeYoutubeVideo"},[t("div",{attrs:{id:e.iframeLabelId,title:e.youtubeTitle}})]):e._e()}),[],!1,null,null,null);t.default=component.exports}}]);